5ed267e3931f4d9db703a29f407cfe2e82d28085
[gnulib.git] / ChangeLog
1 2011-07-31  Bruno Haible  <bruno@clisp.org>
2
3         sys_utsname: Add support for Minix.
4         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
5         <sys/utsname.h>.
6         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
7         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
8
9 2011-07-31  Bruno Haible  <bruno@clisp.org>
10
11         strings: Add support for Minix.
12         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
13         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
14         * doc/posix-headers/strings.texi: Document the Minix problem.
15
16 2011-07-31  Bruno Haible  <bruno@clisp.org>
17
18         wctype-h: Add support for Minix.
19         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
20         REPLACE_TOWLOWER.
21         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
22         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
23         REPLACE_ISWCNTRL.
24
25 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
26
27         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
28         This is a performance improvement for 64-bit hosts: it causes the
29         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
30
31 2011-07-31  Bruno Haible  <bruno@clisp.org>
32
33         stdioext: Add support for Minix.
34         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
35         * lib/fpurge.c (fpurge): Likewise.
36         * lib/freadahead.c (freadahead): Likewise.
37         * lib/freadable.c (freadable): Likewise.
38         * lib/freading.c (freading): Likewise.
39         * lib/freadptr.c (freadptr): Likewise.
40         * lib/freadseek.c (freadptrinc): Likewise.
41         * lib/fseeko.c (rpl_fseeko): Likewise.
42         * lib/fseterr.c (fseterr): Likewise.
43         * lib/fwritable.c (fwritable): Likewise.
44         * lib/fwriting.c (fwriting): Likewise.
45         * lib/fflush.c (clear_ungetc_buffer): Update comment.
46         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
47
48 2011-07-31  Bruno Haible  <bruno@clisp.org>
49
50         errno: Port to Minix.
51         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
52         ECONNABORTED are defined.
53         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
54         GNULIB_defined_ECONNABORTED): New macros.
55         * lib/strerror-override.h (strerror_override): Test also
56         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
57         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
58         ECONNABORTED.
59         * doc/posix-headers/errno.texi: Mention the Minix problem.
60
61 2011-07-31  Bruno Haible  <bruno@clisp.org>
62
63         Work around declaration collisions on Minix.
64         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
65         defined, set REPLACE_MBSINIT.
66         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
67         defined, set REPLACE_MBRTOWC.
68         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
69         set REPLACE_MBRLEN.
70         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
71         defined, set REPLACE_MBSRTOWCS.
72         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
73         defined, set REPLACE_WCRTOMB.
74         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
75         defined, set REPLACE_WCSRTOMBS.
76
77 2011-07-31  Bruno Haible  <bruno@clisp.org>
78
79         Add support for Minix with ACK compiler.
80         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
81         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
82         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
83
84 2011-07-31  Bruno Haible  <bruno@clisp.org>
85
86         Documentation about Minix.
87         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
88         * doc/glibc-headers/*.texi: Likewise.
89         * doc/posix-functions/*.texi: Likewise.
90         * doc/glibc-functions/*.texi: Likewise.
91
92 2011-07-31  Bruno Haible  <bruno@clisp.org>
93
94         snippet/warn-on-use: Fix indentation.
95         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
96
97 2011-07-25  Jim Meyering  <meyering@redhat.com>
98
99         tests: test-update-copyright.sh: remove unnecessary "rm" commands
100         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
101         commands.
102
103 2011-07-27  Jim Meyering  <meyering@redhat.com>
104
105         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
106         * top/maint.mk (gl_extract_significant_defines_): Now that
107         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
108         gnulib/lib/signal.in.h, and now that we recommend to
109         define-if-undefined those two symbols in application code,
110         we must filter them out of the "significant" list.
111         This avoids a "make syntax-check" failure in coreutils.
112
113 2011-07-26  Eric Blake  <eblake@redhat.com>
114
115         warnings: add comments about previous patch
116         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
117         * m4/include_next.m4: Likewise.
118         * m4/warn-on-use.m4: Likewise.
119         * m4/warnings.m4: Likewise, and simplify use.
120         Suggested by Stefano Lattarini.
121
122         include-next, warnings: support older autoconf
123         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
124         AS_VAR_PUSHDEF in a way that works with older autoconf.
125         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
126         Reported by Daniel P. Berrange.
127
128 2011-07-25  Bruno Haible  <bruno@clisp.org>
129
130         fseek, ftell: Fix doc.
131         * doc/posix-functions/fseek.texi: Reword statement about
132         AC_SYS_LARGEFILE.
133         * doc/posix-functions/ftell.texi: Likewise.
134
135 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
136             Bruno Haible  <bruno@clisp.org>
137
138         Add dependencies to the 'largefile' module.
139         * modules/fopen (Depends-on): Add 'largefile'.
140         * modules/freopen (Depends-on): Likewise.
141         * modules/fseeko (Depends-on): Likewise.
142         * modules/ftello (Depends-on): Likewise.
143         * modules/glob (Depends-on): Likewise.
144         * modules/lseek (Depends-on): Likewise.
145         * modules/lstat (Depends-on): Likewise.
146         * modules/mkostemp (Depends-on): Likewise.
147         * modules/mkostemps (Depends-on): Likewise.
148         * modules/mkstemp (Depends-on): Likewise.
149         * modules/mkstemps (Depends-on): Likewise.
150         * modules/open (Depends-on): Likewise.
151         * modules/openat (Depends-on): Likewise.
152         * modules/pread (Depends-on): Likewise.
153         * modules/pwrite (Depends-on): Likewise.
154         * modules/scandir (Depends-on): Likewise.
155         * modules/stat (Depends-on): Likewise.
156         * modules/tmpfile (Depends-on): Likewise.
157         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
158         since the containing module now depends on the largefile module.
159         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
160         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
161         off_t is fixed by gnulib.
162         * doc/posix-functions/freopen.texi: Likewise.
163         * doc/posix-functions/fseeko.texi: Likewise.
164         * doc/posix-functions/fstatat.texi: Likewise.
165         * doc/posix-functions/ftello.texi: Likewise.
166         * doc/posix-functions/glob.texi: Likewise.
167         * doc/posix-functions/lseek.texi: Likewise.
168         * doc/posix-functions/lstat.texi: Likewise.
169         * doc/posix-functions/mkstemp.texi: Likewise.
170         * doc/posix-functions/open.texi: Likewise.
171         * doc/posix-functions/openat.texi: Likewise.
172         * doc/posix-functions/pread.texi: Likewise.
173         * doc/posix-functions/pwrite.texi: Likewise.
174         * doc/posix-functions/scandir.texi: Likewise.
175         * doc/posix-functions/stat.texi: Likewise.
176         * doc/posix-functions/tmpfile.texi: Likewise.
177         * doc/glibc-functions/mkostemp.texi: Likewise.
178         * doc/glibc-functions/mkostemps.texi: Likewise.
179         * doc/glibc-functions/mkstemps.texi: Likewise.
180
181 2011-07-25  Bruno Haible  <bruno@clisp.org>
182
183         fcntl: Move AC_LIBOBJ invocation to module description.
184         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
185         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
186
187         fcntl: Remove call-in from fchdir.m4.
188         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
189         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
190
191         dup3: Remove potential call-in from fchdir.m4.
192         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
193         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
194
195         dup2: Move AC_LIBOBJ invocation to module description.
196         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
197         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
198         Don't invoke AC_LIBOBJ.
199         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
200
201         dup2: Remove call-in from fchdir.m4.
202         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
203         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
204
205         fclose: Move AC_LIBOBJ invocation to module description.
206         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
207         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
208         to 1.
209         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
210
211         fclose: Remove call-in from close.m4.
212         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
213         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
214
215         close: Move AC_LIBOBJ invocation to module description.
216         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
217         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
218         1.
219         * modules/close (configure.ac): Invoke AC_LIBOBJ.
220
221         close: Remove call-in from fchdir.m4.
222         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
223         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
224
225         open: Move AC_LIBOBJ invocation to module description.
226         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
227         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
228         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
229
230         open: Remove call-in from fchdir.m4.
231         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
232         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
233
234         fchdir: Start to remove gl_REPLACE_* idiom.
235         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
236         (gl_FUNC_FCHDIR): Invoke it.
237
238 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
239
240         * lib/ftell.c (ftell): Comment out cast.
241
242         close: use gl_REPLACE_FCLOSE only if defined
243         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
244         is defined.  The close module doesn't depend on the fclose module
245         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
246         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
247         I reproduced the problem with "./gnulib-tool --test close sys_socket".
248
249 2011-07-24  Jim Meyering  <meyering@redhat.com>
250
251         test-select.h: avoid warning when using gcc's -Wmissing-declarations
252         * tests/test-select.h (test_function): Declare as "static".
253
254 2011-07-24  Bruno Haible  <bruno@clisp.org>
255
256         doc: Mention the effects of AC_SYS_LARGEFILE.
257         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
258         on this function.
259         * doc/posix-functions/aio_error.texi: Likewise.
260         * doc/posix-functions/aio_fsync.texi: Likewise.
261         * doc/posix-functions/aio_read.texi: Likewise.
262         * doc/posix-functions/aio_return.texi: Likewise.
263         * doc/posix-functions/aio_suspend.texi: Likewise.
264         * doc/posix-functions/aio_write.texi: Likewise.
265         * doc/posix-functions/fgetpos.texi: Likewise.
266         * doc/posix-functions/fopen.texi: Likewise.
267         * doc/posix-functions/freopen.texi: Likewise.
268         * doc/posix-functions/fsetpos.texi: Likewise.
269         * doc/posix-functions/fstatvfs.texi: Likewise.
270         * doc/posix-functions/ftruncate.texi: Likewise.
271         * doc/posix-functions/ftw.texi: Likewise.
272         * doc/posix-functions/getrlimit.texi: Likewise.
273         * doc/posix-functions/glob.texi: Likewise.
274         * doc/posix-functions/lio_listio.texi: Likewise.
275         * doc/posix-functions/lockf.texi: Likewise.
276         * doc/posix-functions/mkstemp.texi: Likewise.
277         * doc/posix-functions/mmap.texi: Likewise.
278         * doc/posix-functions/nftw.texi: Likewise.
279         * doc/posix-functions/openat.texi: Likewise.
280         * doc/posix-functions/opendir.texi: Likewise.
281         * doc/posix-functions/posix_fadvise.texi: Likewise.
282         * doc/posix-functions/posix_fallocate.texi: Likewise.
283         * doc/posix-functions/pread.texi: Likewise.
284         * doc/posix-functions/pwrite.texi: Likewise.
285         * doc/posix-functions/readdir.texi: Likewise.
286         * doc/posix-functions/readdir_r.texi: Likewise.
287         * doc/posix-functions/rewinddir.texi: Likewise.
288         * doc/posix-functions/scandir.texi: Likewise.
289         * doc/posix-functions/seekdir.texi: Likewise.
290         * doc/posix-functions/setrlimit.texi: Likewise.
291         * doc/posix-functions/statvfs.texi: Likewise.
292         * doc/posix-functions/telldir.texi: Likewise.
293         * doc/posix-functions/tmpfile.texi: Likewise.
294         * doc/posix-functions/truncate.texi: Likewise.
295         * doc/glibc-functions/fallocate.texi: Likewise.
296         * doc/glibc-functions/fstatfs.texi: Likewise.
297         * doc/glibc-functions/fts_children.texi: Likewise.
298         * doc/glibc-functions/fts_read.texi: Likewise.
299         * doc/glibc-functions/getdirentries.texi: Likewise.
300         * doc/glibc-functions/mkostemp.texi: Likewise.
301         * doc/glibc-functions/mkostemps.texi: Likewise.
302         * doc/glibc-functions/mkstemps.texi: Likewise.
303         * doc/glibc-functions/preadv.texi: Likewise.
304         * doc/glibc-functions/pwritev.texi: Likewise.
305         * doc/glibc-functions/sendfile.texi: Likewise.
306         * doc/glibc-functions/statfs.texi: Likewise.
307
308 2011-07-24  Bruno Haible  <bruno@clisp.org>
309
310         doc: Fix typo.
311         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
312
313 2011-07-24  Bruno Haible  <bruno@clisp.org>
314
315         doc: Mention fsusage.
316         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
317
318 2011-07-24  Bruno Haible  <bruno@clisp.org>
319
320         doc: Mention new glibc headers and functions.
321         * doc/glibc-headers/gshadow.texi: New file.
322         * doc/glibc-functions/endsgent.texi: New file.
323         * doc/glibc-functions/fgetsgent.texi: New file.
324         * doc/glibc-functions/fgetsgent_r.texi: New file.
325         * doc/glibc-functions/getsgent.texi: New file.
326         * doc/glibc-functions/getsgent_r.texi: New file.
327         * doc/glibc-functions/getsgnam.texi: New file.
328         * doc/glibc-functions/getsgnam_r.texi: New file.
329         * doc/glibc-functions/putsgent.texi: New file.
330         * doc/glibc-functions/setsgent.texi: New file.
331         * doc/glibc-functions/sgetsgent.texi: New file.
332         * doc/glibc-functions/sgetsgent_r.texi: New file.
333         * doc/glibc-functions/malloc_info.texi: New file.
334         * doc/glibc-functions/preadv.texi: New file.
335         * doc/glibc-functions/pwritev.texi: New file.
336         * doc/glibc-functions/register_printf_modifier.texi: New file.
337         * doc/glibc-functions/register_printf_specifier.texi: New file.
338         * doc/glibc-functions/register_printf_type.texi: New file.
339         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
340         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
341         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
342         * doc/glibc-functions/pthread_getname_np.texi: New file.
343         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
344         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
345         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
346         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
347         * doc/glibc-functions/pthread_setname_np.texi: New file.
348         * doc/glibc-functions/pthread_sigqueue.texi: New file.
349         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
350         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
351         * doc/glibc-functions/qsort_r.texi: New file.
352         * doc/glibc-functions/quick_exit.texi: New file.
353         * doc/glibc-functions/syncfs.texi: New file.
354         * doc/gnulib.texi: Include them.
355         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
356         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
357         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
358         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
359         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
360         * doc/glibc-functions/execvpe.texi: Likewise.
361
362 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
363
364         ftell: don't include <unistd.h>
365         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
366         guaranteed to define off_t, and the ftell module depends on the
367         stdio module.
368
369         ftell: do not assume wraparound signed arithmetic
370         * lib/ftell.c: Include <limits.h>.
371         (ftell): Don't assume wraparound signed arithmetic.
372
373 2011-07-24  Bruno Haible  <bruno@clisp.org>
374
375         close: No longer depend on module 'fclose'.
376         * modules/close (Depends-on): Remove fclose.
377         * NEWS: Mention the change.
378         Suggested by Sam Steingold <sds@gnu.org>.
379
380 2011-07-24  Bruno Haible  <bruno@clisp.org>
381
382         fsusage: Enable large volume support on AIX >= 5.2.
383         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
384         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
385         instead of STAT_STATVFS.
386         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
387
388         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
389         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
390         f_blocks field only on MacOS X.
391
392         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
393         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
394         * modules/fsusage (Depends-on): Add largefile.
395
396 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
397
398         * README: Modernize discussion of signed integers.
399         Assuming overflow wraparound is no longer safe.
400         Mention ones' complement and signed magnitude.
401
402 2011-07-22  Bruno Haible  <bruno@clisp.org>
403
404         select tests, pselect tests: Refactor.
405         * tests/test-select.h: New file, extracted from tests/test-select.c.
406         (select_fn): New type.
407         (test, do_select, do_select_nowait, do_select_wait, test_tty,
408         test_connect_first, test_accept_first, test_pair, test_socket_pair,
409         test_pipe): Add my_select argument.
410         (test_function): Renamed from main. Add my_select argument.
411         * tests/test-select.c: Move most code to tests/test-select.h. Include
412         test-select.h.
413         * modules/select-tests (Files): Add tests/test-select.h.
414         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
415         (my_select, main): New functions.
416         * modules/pselect-tests (Files): Add tests/test-select.h,
417         tests/macros.h, tests/signature.h.
418         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
419         (configure.ac): Check for <sys/wait.h>.
420
421 2011-07-22  Bruno Haible  <bruno@clisp.org>
422
423         sys_select tests: Check the signature of FD_*.
424         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
425         signature tests from here...
426         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
427         here.
428         * modules/sys_select-tests (Files): Add tests/signature.h.
429
430 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
431
432         largefile: new module, replacing large-inode
433         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
434         * MODULES.html.sh: Add largefile, remove large-inode.
435         * modules/largefile, m4/largefile.m4: New files.
436         * modules/large-inode, m4/large-inode.m4: Remove.
437
438         fsusage: port to MacOS X 10.7 with 4 TiB file systems
439         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
440         implementations that use only 32 bits to count blocks.
441         On typical hosts with 1024-byte blocks, this fails with file
442         systems as small as 4 TiB.  Problem reported by Herb Wartens
443         <http://debbugs.gnu.org/9140> and this should also fix a similar
444         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
445
446         large-inode: New module
447         * MODULES.html.sh: Add it.
448         * modules/large-inode, m4/large-inode.m4: New files.
449
450         extensions: Enable extensions on MacOS X 10.5 and later.
451         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
452
453 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
454
455         file-has-acl: use acl_extended_file_nofollow if available
456         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
457         (acl_extended_file): New macro.
458         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
459         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
460
461 2011-07-21  Bruno Haible  <bruno@clisp.org>
462
463         Declare system functions in a way that works with C++.
464         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
465         declare fdopendir as extern "C".
466         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
467         declare frexpl as extern "C".
468         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
469         declare gai_strerror as extern "C".
470         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
471         programs, declare gai_strerror as extern "C".
472         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
473         declare getlogin_r as extern "C".
474         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
475         as extern "C".
476         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
477         declare ldexpl as extern "C".
478         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
479         as extern "C".
480         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
481         program, declare getmntinfo as extern "C".
482         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
483         stpncpy as extern "C".
484         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
485         program, declare __xpg_strerror_r as extern "C".
486         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
487         strndup as extern "C".
488         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
489         declare memset and bzero as extern "C".
490         Reported by Sam Steingold <sds@gnu.org>.
491
492 2011-07-12  Jim Meyering  <meyering@redhat.com>
493
494         maint.mk: prohibit inclusion of "verify.h" without use
495         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
496
497 2011-07-19  Pádraig Brady  <P@draigBrady.com>
498
499         timer-time: A new module to check for timer_settime()
500         * m4/timer_time.m4: Check for the posix function.
501         * modules/timer-time: Add the new module.
502         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
503         Mention it.
504
505 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
506             Bruno Haible  <bruno@clisp.org>
507
508         pthread_sigmask: assume POSIX threads if --avoid=threadlib
509         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
510         not defined, assume POSIX threads and look for pthread_sigmask in
511         $LIBS, without changing $CPPFLAGS.
512
513 2011-07-19  Bruno Haible  <bruno@clisp.org>
514
515         strstr: Update cross-compilation guess.
516         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
517         CPUs, guess no, in view of glibc
518         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
519         Suggested by Eric Blake. Reported by Reuben Thomas.
520
521 2011-07-19  Pádraig Brady  <P@draigBrady.com>
522
523         getopt-gnu: suppress core dumps from detection code
524         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
525         to suppress core dumps that may well occur on glibc systems.
526         * modules/getopt-gnu: Depend on nocrash.
527
528 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
529
530         pthread_sigmask: ensure usleep is declared
531         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
532         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
533
534 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
535
536         doc: Document NonStop portability issues.
537         * doc/posix-functions/sigaction.texi (sigaction):
538         * doc/posix-headers/signal.texi (signal.h):
539         Document NonStop.  See Joachim Schmitz in
540         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
541
542 2011-07-15  Bruno Haible  <bruno@clisp.org>
543
544         ffsl, ffsll: Avoid unportable behaviour.
545         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
546
547 2011-07-15  Bruno Haible  <bruno@clisp.org>
548
549         ffs: More tests.
550         * tests/test-ffs.c (NBITS): New macro.
551         (main): Add more tests.
552         * tests/test-ffsl.c (NBITS): New macro.
553         (main): Add more tests.
554         * tests/test-ffsll.c (NBITS): New macro.
555         (main): Add more tests.
556
557 2011-07-15  Eric Blake  <eblake@redhat.com>
558
559         ffsl, ffsll: new modules
560         * modules/ffsl: New file.
561         * modules/ffsll: Likewise.
562         * m4/ffsl.m4: Likewise.
563         * m4/ffsll.m4: Likewise.
564         * lib/ffsl.c: Likewise.
565         * lib/ffsl.h: Likewise.
566         * lib/ffsll.c: Likewise.
567         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
568         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
569         * modules/string (Makefile.am): Substitute witnesses.
570         * lib/strings.in.h (ffsl, ffsll): Declare.
571         * modules/ffsl-tests: New test file.
572         * modules/ffsll-tests: Likewise.
573         * tests/test-ffsl.c: Likewise.
574         * tests/test-ffsll.c: Likewise.
575         * MODULES.html.sh (Integer arithmetic functions): Mention it.
576         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
577         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
578
579         ffs: fix m4 prerequisite
580         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
581
582         ffs: avoid undefined behavior
583         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
584         * tests/test-ffs.c (naive, main): Avoid signed shifts.
585         Reported by Bruno Haible.
586
587 2011-07-12  Bruno Haible  <bruno@clisp.org>
588
589         pthread_sigmask: Rely on module 'threadlib'.
590         * modules/pthread_sigmask (Depends-on): Add threadlib.
591         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
592         is defined.
593
594 2011-07-12  Bruno Haible  <bruno@clisp.org>
595
596         regex: Depend on module 'strcase'.
597         * modules/regex (Depends-on): Add strcase, for strcasecmp().
598
599 2011-07-12  Jim Meyering  <meyering@redhat.com>
600
601         warn-on-use: fix typo in file name
602         * modules/snippet/warn-on-use (Files): Correct file name:
603         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
604
605 2011-07-12  Bruno Haible  <bruno@clisp.org>
606
607         strings: Document module.
608         * doc/posix-headers/strings.texi: Mention module 'strings'.
609
610 2011-07-12  Bruno Haible  <bruno@clisp.org>
611
612         Rename module '_Noreturn' to 'snippet/_Noreturn'.
613         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
614         (Files, Makefile.am): Update.
615         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
616         * modules/stdlib (Depends-on): Update.
617
618 2011-07-12  Bruno Haible  <bruno@clisp.org>
619
620         * NEWS: Mention the changes.
621
622         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
623         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
624         (Files, Makefile.am): Update.
625         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
626         * modules/arpa_inet (Depends-on): Update.
627         * modules/ctype (Depends-on): Update.
628         * modules/dirent (Depends-on): Update.
629         * modules/fcntl-h (Depends-on): Update.
630         * modules/glob (Depends-on): Update.
631         * modules/iconv-h (Depends-on): Update.
632         * modules/inttypes-incomplete (Depends-on): Update.
633         * modules/langinfo (Depends-on): Update.
634         * modules/locale (Depends-on): Update.
635         * modules/math (Depends-on): Update.
636         * modules/netdb (Depends-on): Update.
637         * modules/poll-h (Depends-on): Update.
638         * modules/pty (Depends-on): Update.
639         * modules/search (Depends-on): Update.
640         * modules/signal (Depends-on): Update.
641         * modules/spawn (Depends-on): Update.
642         * modules/stdio (Depends-on): Update.
643         * modules/stdlib (Depends-on): Update.
644         * modules/string (Depends-on): Update.
645         * modules/strings (Depends-on): Update.
646         * modules/sys_file (Depends-on): Update.
647         * modules/sys_ioctl (Depends-on): Update.
648         * modules/sys_select (Depends-on): Update.
649         * modules/sys_socket (Depends-on): Update.
650         * modules/sys_stat (Depends-on): Update.
651         * modules/sys_time (Depends-on): Update.
652         * modules/sys_times (Depends-on): Update.
653         * modules/sys_utsname (Depends-on): Update.
654         * modules/sys_wait (Depends-on): Update.
655         * modules/termios (Depends-on): Update.
656         * modules/time (Depends-on): Update.
657         * modules/unistd (Depends-on): Update.
658         * modules/wchar (Depends-on): Update.
659         * modules/wctype-h (Depends-on): Update.
660         * MODULES.html.sh (Support for building libraries and executables):
661         Update.
662
663         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
664         * modules/snippet/unused-parameter: Renamed from
665         modules/unused-parameter.
666         (Files, Makefile.am): Update.
667         * build-aux/snippet/unused-parameter.h: Renamed from
668         build-aux/unused-parameter.h.
669         * modules/selinux-h (Depends-on): Update.
670         * modules/unistr/base (Depends-on): Update.
671         * MODULES.html.sh (Core language properties): Update.
672
673         Rename module 'link-warning' to 'snippet/link-warning'.
674         * modules/snippet/link-warning: Renamed from modules/link-warning.
675         (Files, Makefile.am): Update.
676         * build-aux/snippet/link-warning.h: Renamed from
677         build-aux/link-warning.h.
678         * MODULES.html.sh (Support for building libraries and executables):
679         Update.
680
681         Rename module 'c++defs' to 'snippet/c++defs'.
682         * modules/snippet/c++defs: Renamed from modules/c++defs.
683         (Files, Makefile.am): Update.
684         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
685         * modules/arpa_inet (Depends-on): Update.
686         * modules/ctype (Depends-on): Update.
687         * modules/dirent (Depends-on): Update.
688         * modules/fcntl-h (Depends-on): Update.
689         * modules/glob (Depends-on): Update.
690         * modules/iconv-h (Depends-on): Update.
691         * modules/langinfo (Depends-on): Update.
692         * modules/locale (Depends-on): Update.
693         * modules/math (Depends-on): Update.
694         * modules/netdb (Depends-on): Update.
695         * modules/poll-h (Depends-on): Update.
696         * modules/pty (Depends-on): Update.
697         * modules/search (Depends-on): Update.
698         * modules/signal (Depends-on): Update.
699         * modules/spawn (Depends-on): Update.
700         * modules/stdio (Depends-on): Update.
701         * modules/stdlib (Depends-on): Update.
702         * modules/string (Depends-on): Update.
703         * modules/strings (Depends-on): Update.
704         * modules/sys_ioctl (Depends-on): Update.
705         * modules/sys_select (Depends-on): Update.
706         * modules/sys_socket (Depends-on): Update.
707         * modules/sys_stat (Depends-on): Update.
708         * modules/sys_time (Depends-on): Update.
709         * modules/sys_wait (Depends-on): Update.
710         * modules/termios (Depends-on): Update.
711         * modules/time (Depends-on): Update.
712         * modules/unistd (Depends-on): Update.
713         * modules/wchar (Depends-on): Update.
714         * modules/wctype-h (Depends-on): Update.
715
716         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
717         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
718         (Files, Makefile.am): Update.
719         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
720         * modules/argv-iter (Depends-on): Update.
721         * modules/arpa_inet (Depends-on): Update.
722         * modules/dirent (Depends-on): Update.
723         * modules/fcntl-h (Depends-on): Update.
724         * modules/fnmatch (Depends-on): Update.
725         * modules/getopt-posix (Depends-on): Update.
726         * modules/glob (Depends-on): Update.
727         * modules/iconv-h (Depends-on): Update.
728         * modules/inttypes-incomplete (Depends-on): Update.
729         * modules/locale (Depends-on): Update.
730         * modules/math (Depends-on): Update.
731         * modules/netdb (Depends-on): Update.
732         * modules/search (Depends-on): Update.
733         * modules/signal (Depends-on): Update.
734         * modules/spawn (Depends-on): Update.
735         * modules/stdio (Depends-on): Update.
736         * modules/stdlib (Depends-on): Update.
737         * modules/string (Depends-on): Update.
738         * modules/strings (Depends-on): Update.
739         * modules/sys_socket (Depends-on): Update.
740         * modules/sys_stat (Depends-on): Update.
741         * modules/sys_time (Depends-on): Update.
742         * modules/sys_times (Depends-on): Update.
743         * modules/sys_utsname (Depends-on): Update.
744         * modules/time (Depends-on): Update.
745         * modules/unistd (Depends-on): Update.
746         * modules/wchar (Depends-on): Update.
747         * MODULES.html.sh (Support for building libraries and executables):
748         Update.
749
750 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
751
752         Improvements on _Noreturn and related modules.
753
754         modules/_Exit-tests: test _Noreturn too
755         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
756         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
757         (main): Use them.
758
759         stdnoreturn, stdnoreturn-tests: remove modules
760         They're not needed here and a bit premature for use elsewhere.  See
761         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
762         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
763         * tests/test-stdnoreturn.c: Remove files.
764         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
765         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
766         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
767         and using noreturn.
768         * modules/openat, modules/sigpipe-die, modules/xalloc:
769         * modules/xmemdup0, modules/xstrtol:
770         Remove dependency on stdnoreturn.
771
772         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
773         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
774         Reparenthesize to avoid GCC warning.
775         Support Microsoft's syntax.
776         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
777
778         _Noreturn-tests: remove module
779         * modules/_Noreturn-tests: Remove.
780         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
781         * tests/test-_Noreturn.c: Remove.
782         * tests/test-stdnoreturn.c: Merge from the old
783         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
784
785 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
786
787         _Noreturn, stdnoreturn, and related modules.
788
789         * top/maint.mk: Adjust to new noreturn support.
790         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
791         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
792
793         xalloc: use stdnoreturn.h
794         * lib/xalloc.h: Include <stdnoreturn.h>.
795         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
796         * modules/xalloc (Depends-on): Add stdnoreturn.
797
798         xstrtol: use stdnoreturn.h
799         * lib/xstrtol.h: Include <stdnoreturn.h>.
800         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
801         * modules/xstrtol (Depends-on): Add stdnoreturn.
802
803         xmemdup0: use stdnoreturn.h
804         * lib/xmemdup0.h: Include <stdnoreturn.h>.
805         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
806         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
807
808         sigpipe-die: use stdnoreturn.h
809         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
810         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
811         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
812
813         openat: use stdnoreturn.h
814         * lib/openat.h: Include <stdnoreturn.h>.
815         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
816         * modules/openat (Depends-on): Add stdnoreturn.
817
818         * lib/openat-die.c (openat_save_fail): Modernize comment.
819
820         * lib/xalloc-die.c (xalloc_die): Modernize comment.
821
822         * lib/glthread/thread.h: Modernize comment.
823
824         obstack: use _Noreturn
825         * lib/obstack.c (__attribute__): Remove macro.
826         (print_and_abort): Use _Noreturn.
827
828         c-stack: use _Noreturn
829         * lib/c-stack.c (die, overflow_handler, segv_handler):
830         Use _Noreturn rather than __attribute__((noreturn)).
831
832         argmatch-tests, exclude_tests: use _Noreturn
833         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
834         Remove.
835         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
836
837         stdlib: use _Noreturn
838         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
839         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
840         * modules/stdlib (Depends-on): Add _Noreturn.
841         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
842
843         stdnoreturn-tests: new module
844         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
845
846         stdnoreturn: new module
847         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
848         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
849
850         _Noreturn-tests: new module
851         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
852
853         _Noreturn: new module
854         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
855         New section, mentioning it.
856         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
857
858         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
859
860 2011-07-11  Eric Blake  <eblake@redhat.com>
861
862         ffs: new module
863         * modules/ffs: New file.
864         * m4/ffs.m4: Likewise.
865         * lib/ffs.c: Likewise.
866         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
867         * modules/strings (Makefile.am): Substitute witness.
868         (Depends-on): Add c++defs.
869         * lib/strings.in.h (ffs): Declare.
870         * modules/ffs-tests: New test file.
871         * tests/test-ffs.c: Test new module.
872         * MODULES.html.sh (Integer arithmetic functions): Mention it.
873         * doc/posix-functions/ffs.texi (ffs): Likewise.
874
875         regex: avoid compiler warning
876         * lib/regex.c (includes): Include <strings.h>, for use of
877         strcasecmp in regcomp.c.
878         Reported by Joachim Schmitz.
879
880 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
881
882         stdint: respect system's intmax_t if INTMAX_MAX
883         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
884         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
885         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
886         long but int64_t is long long, and where we will clash with the
887         system intmax_t if we override it.  See
888         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
889         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
890         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
891         similarly for UINTMAX_C.
892
893 2011-07-08  Bruno Haible  <bruno@clisp.org>
894
895         pthread_sigmask tests: Avoid a compiler warning.
896         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
897         non-zero.
898
899         sigprocmask tests: A better way to avoid a compiler warning.
900         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
901         (main): Complain if system() returns non-zero.
902         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
903
904 2011-07-08  Bruno Haible  <bruno@clisp.org>
905
906         pthread_sigmask: Work around IRIX bug.
907         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
908         bug.
909         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
910         there may be unblocked pending signals.
911         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
912
913 2011-07-08  Bruno Haible  <bruno@clisp.org>
914
915         pthread_sigmask: Work around Cygwin bug.
916         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
917         bug.
918         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
919         the system's pthread_sigmask function.
920         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
921
922 2011-07-08  Bruno Haible  <bruno@clisp.org>
923
924         pthread_sigmask: Work around bug in single-threaded implementation.
925         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
926         FreeBSD, HP-UX, Solaris bug.
927         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
928         * lib/pthread_sigmask.c: Include <stddef.h>.
929         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
930         the system's pthread_sigmask function.
931         * modules/pthread_sigmask (configure.ac): Invoke
932         gl_PREREQ_PTHREAD_SIGMASK.
933         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
934         HP-UX, Solaris.
935
936 2011-07-08  Eric Blake  <eblake@redhat.com>
937
938         test-sigprocmask: avoid compiler warning
939         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
940         * tests/test-sigprocmask.c (main): Use it to silence warning.
941         Reported by Jim Meyering.
942
943         test-snprintf: avoid compiler warning
944         * tests/test-snprintf.c (main): Avoid shadowed declaration.
945         * tests/test-vsnprintf.c (main): Likewise.
946         Reported by Jim Meyering.
947
948 2011-07-08  Bruno Haible  <bruno@clisp.org>
949
950         Tests for module 'pthread_sigmask'.
951         * modules/pthread_sigmask-tests: New file.
952         * tests/test-pthread_sigmask1.c: New file, based on
953         tests/test-sigprocmask.c.
954         * tests/test-pthread_sigmask2.c: New file.
955
956 2011-07-08  Jim Meyering  <meyering@redhat.com>
957
958         test-getopt.h: avoid warning about an unused variable
959         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
960
961 2011-07-07  Jim Meyering  <meyering@redhat.com>
962
963         maint: reduce list of files exempt from sc_prohibit_leading_TABs
964         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
965         now that it no longer contains leading TABs.
966         Remove unused "url=FIXME" statement.
967
968 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
969
970         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
971         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
972         When gl_THREADLIB is not in use, assume that the POSIX sematics
973         are desired.  This is better for Emacs, which uses POSIX semantics
974         on GNUish and/or POSIXish platforms, and does not use threads at
975         all otherwise.
976
977         pthread_sigmask: fix typo when testing for libraries
978         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
979         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
980
981 2011-07-08  Eric Blake  <eblake@redhat.com>
982
983         fts: introduce FTS_NOATIME
984         * lib/fts_.h (FTS_NOATIME): New bit flag.
985         (FTS_OPTIONMASK): Adjust.
986         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
987         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
988
989 2011-07-08  Bruno Haible  <bruno@clisp.org>
990
991         Tests for module 'thread'.
992         * modules/thread-tests: New file.
993         * tests/test-thread_self.c: New file.
994         * tests/test-thread_create.cc: New file.
995
996 2011-07-08  Bruno Haible  <bruno@clisp.org>
997
998         thread: Avoid gcc warnings when using gl_thread_self().
999         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
1000         'void *'.
1001         (gl_thread_self_pointer): Update.
1002
1003 2011-07-07  Bruno Haible  <bruno@clisp.org>
1004
1005         signal-c++-tests: Check declaration of pthread_sigmask.
1006         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
1007         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
1008         $(LIB_PTHREAD_SIGMASK).
1009
1010 2011-07-07  Bruno Haible  <bruno@clisp.org>
1011
1012         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
1013         * lib/signal.in.h (pthread_sigmask): Override if
1014         REPLACE_PTHREAD_SIGMASK is 1.
1015         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
1016         REPLACE_PTHREAD_SIGMASK.
1017         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
1018         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
1019         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
1020         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
1021         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
1022
1023 2011-07-07  Bruno Haible  <bruno@clisp.org>
1024
1025         pthread_sigmask: Ensure declaration in <signal.h>.
1026         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
1027         include <pthread.h>.
1028         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
1029         problem.
1030
1031 2011-07-07  Bruno Haible  <bruno@clisp.org>
1032
1033         pthread_sigmask: Document the module.
1034         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
1035
1036 2011-07-07  Bruno Haible  <bruno@clisp.org>
1037
1038         pthread_sigmask: Follow gnulib conventions.
1039         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
1040         gl_PTHREAD_SIGMASK.
1041         * modules/pthread_sigmask (configure.ac): Update.
1042
1043 2011-07-07  Bruno Haible  <bruno@clisp.org>
1044
1045         pthread_sigmask: Make declaration C++ safe.
1046         * lib/signal.in.h: In two special conditions, just do an #include_next.
1047         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
1048         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
1049         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
1050         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
1051         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
1052         not REPLACE_PTHREAD_MASK.
1053         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
1054         not REPLACE_PTHREAD_MASK.
1055         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
1056
1057 2011-07-07  Bruno Haible  <bruno@clisp.org>
1058
1059         pthread_sigmask: Fix return value.
1060         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
1061         * lib/pthread_sigmask.c: New file.
1062         * modules/pthread_sigmask (Files): Add it.
1063         (configure.ac): Invoke AC_LIBOBJ.
1064
1065 2011-07-07  Eric Blake  <eblake@redhat.com>
1066
1067         getopt: more portable argv creation
1068         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
1069         const, use char arrays rather than strings.
1070         Suggested by Paul Eggert.
1071
1072 2011-07-07  Bruno Haible  <bruno@clisp.org>
1073
1074         Tests for module 'sigprocmask'.
1075         * modules/sigprocmask-tests: New file.
1076         * tests/test-sigprocmask.c: New file.
1077
1078 2011-07-07  Bruno Haible  <bruno@clisp.org>
1079
1080         float tests: Tweak.
1081         * tests/test-float.c (main): Tweak skip message.
1082
1083 2011-07-07  Eric Blake  <eblake@redhat.com>
1084
1085         getopt: avoid compiler warning during configure
1086         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
1087         assigning string literals to non-const pointer.
1088
1089         getopt-gnu: avoid crash in glibc getopt
1090         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
1091         * tests/test-getopt.h (test_getopt): Enhance test.
1092         * tests/test-getopt_long.h (test_getopt_long): Likewise.
1093         * doc/posix-functions/getopt.texi (getopt): Document it.
1094         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
1095         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
1096         Likewise.
1097
1098 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
1099
1100         getopt: handle W; without long options in getopt [BZ #12922]
1101         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
1102         but no long options are defined, just return 'W'.
1103
1104 2011-07-07  Bruno Haible  <bruno@clisp.org>
1105
1106         Avoid literal tabs.
1107         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
1108         variable containing a tab instead of a literal tab.
1109         Reported by Jim Meyering.
1110
1111 2011-07-07  Bruno Haible  <bruno@clisp.org>
1112
1113         Comments.
1114         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
1115
1116 2011-07-06  Bruno Haible  <bruno@clisp.org>
1117
1118         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
1119         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
1120         <winsock2.h>.
1121         (rpl_fd_isset, FD_ISSET): New definitions, copied from
1122         lib/sys_socket.in.h.
1123         (close, gethostname): Hide declarations from <winsock2.h>.
1124         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
1125         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
1126         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
1127         (select): Don't override if gnulib's <sys/select.h> was already
1128         included.
1129         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
1130         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
1131         setsockopt, shutdown, select): Tweak indentation.
1132
1133 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
1134
1135         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
1136         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
1137         in an application that does not use the sys_select module.
1138
1139 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
1140
1141         poll: do not return 0 on timeout=-1
1142         * lib/poll.c: Loop with yield if no events occured
1143
1144 2011-07-06  Eric Blake  <eblake@redhat.com>
1145
1146         pthread_sigmask: always replace when not using pthread
1147         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
1148         replacement when using some threading other than pthread.  Fix
1149         logic bug.
1150
1151 2011-07-06  Bruno Haible  <bruno@clisp.org>
1152
1153         Comments.
1154         * m4/printf.m4: Update comments about mingw.
1155
1156 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
1157
1158         sys_select: define sigset_t more portably
1159         * lib/sys_select.in.h: Always include <sys/types.h>, since
1160         we now need sigset_t and mingw defines it there.
1161         Include <signal.h> before split inclusion guard, to avoid
1162         mishaps on Solaris, whose <signal.h> eventually includes us.
1163         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
1164         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
1165         which come from ...
1166         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
1167         gl_CHECK_TYPE_SIGSET_T.
1168         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
1169         does the real work.
1170         * modules/sys_select (Depends-on): Add 'signal'.
1171
1172         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
1173         Suggested by Bruno Haible.
1174
1175         pselect: Use pthread_sigmask, not sigprocmask.
1176         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
1177         multithreaded apps better than sigprocmask does.
1178         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
1179         sigprocmask directly.
1180
1181 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
1182
1183         * lib/pselect.c (pselect): Use plain name, without "rpl_".
1184         Don't #undef,  since we don't need any underlying pselect.
1185         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
1186         (Depends-on): Add select.
1187         (Link): Add $(LIBSOCKET).
1188         These changes suggested by Bruno Haible.
1189
1190         pselect: document better
1191         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
1192         * doc/posix-functions/pselect.texi (pselect): Document new module.
1193
1194         pthread_sigmask: new module
1195         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
1196         * doc/posix-functions/pthread_sigmask.texi: Document new module.
1197         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
1198         This is done only as a macro; I don't know how well that'll
1199         work for C++.  Move <sys/types.h> include before the include_next,
1200         to avoid mishap on Solaris.
1201         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
1202         * modules/signal (Makefile.am): Substitute the check's results.
1203         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
1204
1205         test-pselect: new module
1206         * modules/pselect-tests, tests/test-pselect.c: New files.
1207         * tests/test-select.c, tests/test-sys_select-c++.cc:
1208         If TEST_PSELECT is defined, test pselect instead of testing select.
1209
1210         * tests/test-sys_select.c (sigset_t): Test for it, too.
1211         Suggested by Bruno Haible.
1212
1213 2011-07-05  Eric Blake  <eblake@redhat.com>
1214
1215         snprintf: guarantee %1$d, for libintl
1216         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
1217         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
1218         * doc/posix-functions/snprintf.texi (snprintf): Update.
1219         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
1220         * tests/test-snprintf.c (main): Enhance test.
1221         * tests/test-vsnprintf.c (main): Likewise.
1222
1223 2011-07-05  Jim Meyering  <meyering@redhat.com>
1224
1225         maint: exempt stdio-read.c and stdio-write.c from the cppi check
1226         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
1227         per Bruno's request, to accommodate this idiom (no space after "#")
1228         even when the function is inside an #if block:
1229         char *
1230         gets (char *s)
1231         #undef gets
1232         {
1233           ...
1234         }
1235
1236 2011-07-04  Jim Meyering  <meyering@redhat.com>
1237
1238         maint: indent with spaces, not TABs, and add a rule to check this
1239         * tests/test-userspec.c: Indent with spaces, not TABs.
1240         * tests/test-argp.c: Likewise.
1241         * tests/test-c-stack2.sh: Likewise.
1242         * tests/test-parse-duration.sh: Likewise
1243         * m4/strtod.m4: Likewise.
1244         * m4/alloca.m4: Likewise.
1245         * m4/pselect.m4: Likewise.
1246         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
1247
1248 2011-07-03  Jim Meyering  <meyering@redhat.com>
1249
1250         maint.mk: correct omissions in prohibit_argmatch_without_use check
1251         This rule would mistakenly report that argmatch.h is included without
1252         use even when both the argmatch and invalid_arg macro were used.
1253         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
1254         of argmatch and invalid_arg.
1255
1256 2011-07-03  Bruno Haible  <bruno@clisp.org>
1257
1258         Comments about EINTR.
1259         * lib/safe-read.h: Explain the purpose of this module.
1260         * lib/safe-write.h: Likewise.
1261         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
1262         module.
1263         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
1264         module.
1265         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
1266
1267 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
1268
1269         xnanosleep: Rewrite to use new dtotimespec module.
1270         It has the conversion code that used to be in xnanosleep.
1271         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
1272         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
1273         (TIME_T_MAX): Remove.
1274         (xnanosleep): Rewrite in terms of dtotimespec.
1275         * modules/xnanosleep (Depends-on): Add dtotimespec.
1276         Remove intprops, stdbool.
1277
1278         timespec-add, timespec-sub: new modules
1279         * lib/timespec.h (timespec_add, timespec_sub): New decls.
1280         * lib/timespec-add.c, lib/timespec-sub.c:
1281         * modules/timespec-add, modules/timespec-sub: New files.
1282
1283         dtotimespec: new module
1284         * lib/timespec.h (dtotimespec): New decl.
1285         * lib/dtotimespec.c, modules/dtotimespec: New files.
1286
1287         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
1288
1289         pselect: new module
1290         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
1291         (pselect): New decls.
1292         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
1293         since the standard pselect decl uses 'restrict'.
1294         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
1295         HAVE_PSELECT, REPLACE_PSELECT.
1296         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
1297         HAVE_PSELECT, REPLACE_PSELECT.
1298         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
1299
1300         sys_select: don't depend on sys_socket
1301         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
1302         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
1303         This fix works on GNU and GNU-like platforms, but has not been tested
1304         on native Windows.
1305         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
1306         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
1307         gl_HEADER_SYS_SOCKET.
1308         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
1309         gl_PREREQ_SYS_H_WINSOCK2.
1310
1311 2011-06-29  Eric Blake  <eblake@redhat.com>
1312
1313         pipe2: fix C89 compile problem
1314         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
1315         Reported by Bruno Haible.
1316
1317         pipe, pipe2: don't corrupt fd on error
1318         * lib/pipe.c (pipe): Leave fd unchanged on error.
1319         * lib/pipe2.c (pipe2): Likewise.
1320         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
1321         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
1322
1323 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
1324
1325         mmap-anon: do not use regular expressions inadvertently
1326         * m4/mmap-anon.m4: Remove trailing period from strings sought
1327         in the output.
1328
1329 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
1330
1331         nanosleep: fix integer overflow problem
1332         * lib/nanosleep.c (my_usleep): Don't assume signed integer
1333         arithmetic wraps around on overflow.
1334
1335         nanosleep: simplify carrying
1336         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
1337         first call to the underyling nanosleep, not for the last one.
1338         This doesn't fix any bugs, but it simplifies the computation of
1339         the remaining delay.  Found while auditing integer overflow issues.
1340
1341         dup2: remove test for existence of fcntl
1342         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
1343         "#if HAVE_FCNTL", in the configure-time test program.
1344         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
1345         and therefore speeds up "configure" a bit.  Found while
1346         adding the dup2 module to Emacs.
1347
1348 2011-06-24  Eric Blake  <eblake@redhat.com>
1349
1350         maint.mk: enhance useless header checks
1351         * top/maint.mk (_sc_header_without_use): Check both include
1352         styles.
1353         (sc_prohibit_assert_without_use)
1354         (sc_prohibit_close_stream_without_use)
1355         (sc_prohibit_getopt_without_use)
1356         (sc_prohibit_quotearg_without_use)
1357         (sc_prohibit_quote_without_use)
1358         (sc_prohibit_long_options_without_use)
1359         (sc_prohibit_inttostr_without_use)
1360         (sc_prohibit_ignore_value_without_use)
1361         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
1362         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
1363         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
1364         (sc_prohibit_hash_pjw_without_use)
1365         (sc_prohibit_safe_read_without_use)
1366         (sc_prohibit_argmatch_without_use)
1367         (sc_prohibit_canonicalize_without_use)
1368         (sc_prohibit_root_dev_ino_without_use)
1369         (sc_prohibit_openat_without_use)
1370         (sc_prohibit_c_ctype_without_use)
1371         (sc_prohibit_signal_without_use)
1372         (sc_prohibit_stdio--_without_use)
1373         (sc_prohibit_stdio-safer_without_use)
1374         (sc_prohibit_strings_without_use)
1375         (sc_prohibit_intprops_without_use)
1376         (sc_prohibit_stddef_without_use)
1377         (sc_prohibit_xfreopen_without_use): Update clients.
1378
1379 2011-06-24  Jim Meyering  <meyering@redhat.com>
1380
1381         syntax-check: keep one maint.mk rule in sync with its header
1382         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
1383         of the bug Eric has just fixed, with today's commit 25e4c2ec.
1384         I prefer to avoid temporary files here, so use <(...), but that
1385         is not supported by /bin/sh, so...
1386         (SHELL): Define to /bin/bash.
1387
1388 2011-06-24  Eric Blake  <eblake@redhat.com>
1389
1390         maint.mk: update sc_prohibit_intprops_without_use
1391         * top/maint.mk (_intprops_names): Match recent changes.
1392
1393 2011-06-24  Bruno Haible  <bruno@clisp.org>
1394
1395         strerror-override: No-op tweak.
1396         * lib/strerror-override.h (strerror_override): Reorder conditions,
1397         for consistency with lib/strerror-override.c.
1398
1399 2011-06-23  Eric Blake  <eblake@redhat.com>
1400
1401         maint.mk: test further PATH_MAX issues
1402         * top/maint.mk (sc_prohibit_path_max_array): Rename...
1403         (sc_prohibit_path_max_allocation): ...and also test alloca.
1404         Suggested by Jim Meyering.
1405
1406 2011-06-22  Eric Blake  <eblake@redhat.com>
1407
1408         maint.mk: add syntax-check to avoid char[PATH_MAX]
1409         * top/maint.mk (sc_prohibit_path_max_array): New rule.
1410
1411         stat: be robust to PATH_MAX definition
1412         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
1413         * modules/stat (Depends-on): Add verify.
1414
1415         link: work around IRIX bug
1416         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
1417         * lib/link.c (rpl_link): Work around it.
1418         * tests/test-link.h (test_link): Enhance test.
1419         * doc/posix-functions/link.texi (link): Document the bug.
1420
1421         getopt: silence clang warning
1422         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
1423         dereference.
1424         Reported by Gustavo Martin Domato.
1425
1426 2011-06-22  Jim Meyering  <meyering@redhat.com>
1427
1428         bootstrap: do not insert a blank line into each .gitignore file
1429         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
1430
1431 2011-06-21  Eric Blake  <eblake@redhat.com>
1432
1433         perror: test for output mismatch
1434         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
1435         perror on IRIX.
1436
1437         strerror_r: fix OpenBSD behavior on out-of-range
1438         * lib/strerror_r.c (strerror_r): Always use maximal string.
1439         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
1440
1441         strerror_r: fix OpenBSD behavior on 0
1442         * lib/strerror-override.c (strerror_override): Also override 0
1443         when needed.
1444         * lib/strerror-override.h (strerror_override): Likewise.
1445         * lib/strerror.c (strerror): Simplify, now that 0 override is done
1446         earlier.
1447         * lib/strerror_r.c (strerror_r): Likewise.
1448         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
1449         behavior...
1450         (gl_FUNC_STRERROR_0): ...into new macro.
1451         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
1452         is overridden.
1453         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
1454         * modules/strerror-override (Files): Add strerror.m4.
1455         (configure.ac): Also provide override for 0 when needed.
1456         * doc/posix-functions/strerror.texi (strerror): Document this.
1457         * doc/posix-functions/perror.texi (perror): Likewise.
1458
1459         perror: adjust array size
1460         * modules/perror (Depends-on): Add strerror-override.
1461         * lib/perror.c (perror): Use it to avoid magic number.
1462
1463         strerror-override: reduce size
1464         * lib/strerror-override.c (strerror_override): Use fewer lines.
1465
1466 2011-06-20  Bruno Haible  <bruno@clisp.org>
1467
1468         pathmax: Ensure correct value for PATH_MAX on HP-UX.
1469         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
1470
1471 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
1472
1473         alloca: port to compilers that can optimize like GCC 4.6.0
1474         * lib/alloca.c (find_stack_direction): New signature, taken from
1475         Autoconf git.  This works with GCC 4.6.0.  This code should never
1476         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
1477         be used with other compilers that optimize as well as GCC 4.6.0 does.
1478         (alloca): Adjust to new signature.
1479         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
1480         New macro, which patches Autoconf in a similar way.
1481
1482         c-stack: stop worrying about stack direction
1483         * lib/c-stack.c (find_stack_direction): Remove.
1484         (segv_handler): Don't worry about stack direction growth, as it's
1485         too much of a pain to configure this correctly, given how compilers
1486         are optimizing-away our stack-growth detection code.  Instead, assume
1487         that any access to just before or just after the stack is OK.
1488         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
1489         Don't require AC_FUNC_ALLOCA; no longer needed.
1490
1491 2011-06-20  Eric Blake  <eblake@redhat.com>
1492
1493         test-stat: don't allocate PATH_MAX bytes
1494         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
1495         PATH_MAX-sized buffer.
1496         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
1497         * modules/stat-tests (Depends-on): Likewise.
1498         * tests/test-fstatat.c (includes): Drop pathmax.h.
1499         * tests/test-stat.c (includes): Likewise.
1500         Reported by Bruno Haible.
1501
1502 2011-06-20  Bruno Haible  <bruno@clisp.org>
1503
1504         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
1505         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
1506         * lib/float.c: New file.
1507         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
1508         REPLACE_FLOAT_LDBL.
1509         * modules/float (Files): Add lib/float.c.
1510         (configure.ac): Invoke AC_LIBOBJ.
1511         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
1512
1513 2011-06-20  Bruno Haible  <bruno@clisp.org>
1514
1515         Tests for module 'float'.
1516         * modules/float-tests: New file.
1517         * tests/test-float.c: New file.
1518
1519 2011-06-19  Bruno Haible  <bruno@clisp.org>
1520
1521         isinf: Coding style.
1522         * lib/isinf.c: Use GNU coding style.
1523
1524 2011-06-19  Bruno Haible  <bruno@clisp.org>
1525
1526         linkat test: Avoid test failure on AIX 7.1.
1527         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
1528         * tests/test-link.h (test_link): Likewise.
1529
1530 2011-06-19  Bruno Haible  <bruno@clisp.org>
1531
1532         pread test: Avoid test failure on OpenBSD 4.9.
1533         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
1534
1535 2011-06-19  Bruno Haible  <bruno@clisp.org>
1536
1537         sprintf-posix: Fix test failure on AIX 7.1.
1538         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
1539         * doc/posix-functions/dprintf.texi: Mention limited precision problem
1540         on AIX.
1541         * doc/posix-functions/fprintf.texi: Likewise.
1542         * doc/posix-functions/printf.texi: Likewise.
1543         * doc/posix-functions/snprintf.texi: Likewise.
1544         * doc/posix-functions/sprintf.texi: Likewise.
1545         * doc/posix-functions/vdprintf.texi: Likewise.
1546         * doc/posix-functions/vfprintf.texi: Likewise.
1547         * doc/posix-functions/vprintf.texi: Likewise.
1548         * doc/posix-functions/vsnprintf.texi: Likewise.
1549         * doc/posix-functions/vsprintf.texi: Likewise.
1550
1551 2011-06-19  Bruno Haible  <bruno@clisp.org>
1552
1553         roundl-ieee: Fix test failure on AIX 7.1.
1554         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
1555         * doc/posix-functions/roundl.texi: Mention problem with negative
1556         arguments.
1557
1558 2011-06-19  Bruno Haible  <bruno@clisp.org>
1559
1560         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
1561         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
1562         * doc/posix-functions/round.texi: Mention problem with negative
1563         arguments.
1564         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
1565
1566 2011-06-19  Bruno Haible  <bruno@clisp.org>
1567
1568         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
1569         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
1570         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
1571         * doc/posix-functions/roundf.texi: Mention problem with negative
1572         arguments.
1573         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
1574
1575 2011-06-19  Bruno Haible  <bruno@clisp.org>
1576
1577         ceilf-ieee: Work around bug on MacOS X 10.5.
1578         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
1579
1580         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
1581         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
1582         IEEE compliant, avoid compiler optimizations.
1583         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
1584         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
1585         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
1586         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
1587         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
1588         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
1589         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
1590         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
1591         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
1592         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
1593
1594 2011-06-19  Bruno Haible  <bruno@clisp.org>
1595
1596         ceilf-ieee: Work around bug on AIX 7.1.
1597         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
1598         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
1599
1600 2011-06-19  Bruno Haible  <bruno@clisp.org>
1601
1602         ceil-ieee: Work around bug on AIX 7.1.
1603         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
1604         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
1605
1606 2011-06-18  Bruno Haible  <bruno@clisp.org>
1607
1608         fsync test: Avoid test failure on MacOS X and AIX.
1609         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
1610         EINVAL.
1611
1612 2011-06-18  Bruno Haible  <bruno@clisp.org>
1613
1614         openat, fdopendir tests: Fix link errors.
1615         * modules/openat-tests (Depends-on): Add progname.
1616         * modules/fdopendir-tests (Depends-on): Likewise.
1617         * tests/test-fchownat.c: Include progname.h.
1618         (main): Call set_program_name.
1619         * tests/test-fstatat.c: Include progname.h.
1620         (main): Call set_program_name.
1621         * tests/test-mkdirat.c: Include progname.h.
1622         (main): Call set_program_name.
1623         * tests/test-openat.c: Include progname.h.
1624         (main): Call set_program_name.
1625         * tests/test-unlinkat.c: Include progname.h.
1626         (main): Call set_program_name.
1627         * tests/test-fdopendir.c: Include progname.h.
1628         (main): Call set_program_name.
1629
1630 2011-06-18  Bruno Haible  <bruno@clisp.org>
1631
1632         Doc update.
1633         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
1634         HP-UX.
1635         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
1636
1637 2011-06-18  Bruno Haible  <bruno@clisp.org>
1638
1639         getcwd tests: Avoid compilation error on HP-UX 11.31.
1640         * modules/getcwd-tests (Depends-on): Add pathmax.
1641         * tests/test-getcwd.c: Include pathmax.h.
1642
1643 2011-06-18  Bruno Haible  <bruno@clisp.org>
1644
1645         isfinite, isinf: Fix link error on AIX 6 and 7.
1646         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
1647         needed, also test the macro with a 'float' argument.
1648         * m4/isinf.m4 (gl_ISINF): Likewise.
1649
1650 2011-06-18  Bruno Haible  <bruno@clisp.org>
1651
1652         getloadavg: Don't clobber LIBS. Regression from previous commit.
1653         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
1654         AC_CHECK_LIB from here...
1655         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
1656         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
1657         gl_func_getloadavg_done.
1658         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1659
1660 2011-06-18  Bruno Haible  <bruno@clisp.org>
1661
1662         clean-temp: Improve documentation.
1663         * lib/clean-temp.h: Explain better how to use this module.
1664         Reported by John Darrington <john@darrington.wattle.id.au>.
1665
1666 2011-06-17  Bruno Haible  <bruno@clisp.org>
1667
1668         pread, pwrite: Avoid cc warning on AIX.
1669         * lib/unistd.in.h (pread): Undefine before defining as a macro.
1670         (pwrite): Likewise.
1671
1672 2011-06-17  Bruno Haible  <bruno@clisp.org>
1673
1674         spawn-pipe tests: Fix link error.
1675         * tests/test-spawn-pipe-child.c: Undefine fprintf.
1676         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1677
1678 2011-06-17  Bruno Haible  <bruno@clisp.org>
1679
1680         Tests: Remove unnecessary dependency.
1681         * modules/canonicalize-tests (Depends-on): Remove progname.
1682         * modules/chown-tests (Depends-on): Likewise.
1683         * modules/dirname-tests (Depends-on): Likewise.
1684         * modules/fdopendir-tests (Depends-on): Likewise.
1685         * modules/fdutimensat-tests (Depends-on): Likewise.
1686         * modules/hash-tests (Depends-on): Likewise.
1687         * modules/lchown-tests (Depends-on): Likewise.
1688         * modules/linkat-tests (Depends-on): Likewise.
1689         * modules/renameat-tests (Depends-on): Likewise.
1690         * modules/spawn-pipe-tests (Depends-on): Likewise.
1691         * modules/utimensat-tests (Depends-on): Likewise.
1692
1693 2011-06-17  Bruno Haible  <bruno@clisp.org>
1694
1695         spawn-pipe tests: Fix link error.
1696         * tests/test-spawn-pipe-child.c: Undefine fflush.
1697
1698 2011-06-17  Bruno Haible  <bruno@clisp.org>
1699
1700         Fix tests link errors.
1701         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
1702         * modules/chown-tests (Makefile.am): Don't link test-chown with
1703         LIBINTL.
1704         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
1705         LIBINTL.
1706         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
1707         LIBINTL.
1708         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
1709         LIBINTL.
1710
1711 2011-06-16  Bruno Haible  <bruno@clisp.org>
1712
1713         crypto/gc-sha1: Fix recent regression.
1714         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
1715         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
1716
1717         crypto/gc-md5: Fix recent regression.
1718         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
1719
1720         crypto/gc-md4: Fix recent regression.
1721         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
1722         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
1723
1724         crypto/gc-arctwo: Fix recent regression.
1725         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
1726         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
1727
1728         crypto/gc-rijndael: Fix recent regression.
1729         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
1730         (configure.ac): Invoke AC_LIBOBJ here.
1731         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
1732         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1733
1734         crypto/gc-hmac-sha1: Fix recent regression.
1735         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
1736         (configure.ac): Invoke AC_LIBOBJ here.
1737         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
1738         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1739
1740         crypto/gc-hmac-md5: Fix recent regression.
1741         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
1742         (configure.ac): Invoke AC_LIBOBJ here.
1743         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
1744         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1745
1746         crypto/gc-des: Fix recent regression.
1747         * modules/crypto/gc-des (Files): Remove m4/des.m4.
1748         (configure.ac): Invoke AC_LIBOBJ here.
1749         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
1750         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1751
1752         crypto/gc-arcfour: Fix recent regression.
1753         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
1754         (configure.ac): Invoke AC_LIBOBJ here.
1755         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
1756         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1757
1758 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
1759
1760         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
1761         After the 2011-05-21 change, this macro requires
1762         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
1763         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
1764
1765 2011-06-16  Bruno Haible  <bruno@clisp.org>
1766
1767         fprintftime: Move AC_LIBOBJ invocations to module description.
1768         * m4/fprintftime.m4: Remove file.
1769         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
1770         (configure.ac): Remove gl_FPRINTFTIME call.
1771         (Makefile.am): Augment lib_SOURCES.
1772         Reported by Jim Meyering.
1773
1774 2011-06-16  Bruno Haible  <bruno@clisp.org>
1775
1776         tmpfile-safer: Finish 2011-05-23 commit.
1777         * m4/stdio-safer.m4: Really remove file.
1778         Reported by Jim Meyering.
1779
1780 2011-06-16  Bruno Haible  <bruno@clisp.org>
1781
1782         syntax-check: Fix typo.
1783         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
1784         printf-posix.m4.
1785         Reported by Jim Meyering.
1786
1787 2011-06-13  Jim Meyering  <meyering@redhat.com>
1788
1789         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
1790         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
1791
1792 2011-05-23  Bruno Haible  <bruno@clisp.org>
1793
1794         yesno: Move AC_LIBOBJ invocations to module description.
1795         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
1796         * modules/yesno (Makefile.am): Augment lib_SOURCES.
1797
1798 2011-05-23  Bruno Haible  <bruno@clisp.org>
1799
1800         xstrtol: Move AC_LIBOBJ invocations to module description.
1801         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
1802         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
1803
1804 2011-05-23  Bruno Haible  <bruno@clisp.org>
1805
1806         xstrtold: Move AC_LIBOBJ invocations to module description.
1807         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
1808         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
1809
1810 2011-05-23  Bruno Haible  <bruno@clisp.org>
1811
1812         xstrtod: Move AC_LIBOBJ invocations to module description.
1813         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
1814         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
1815
1816 2011-05-23  Bruno Haible  <bruno@clisp.org>
1817
1818         xnanosleep: Move AC_LIBOBJ invocations to module description.
1819         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
1820         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
1821
1822 2011-05-23  Bruno Haible  <bruno@clisp.org>
1823
1824         xgetcwd: Move AC_LIBOBJ invocations to module description.
1825         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
1826         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
1827
1828 2011-05-23  Bruno Haible  <bruno@clisp.org>
1829
1830         xalloc: Move AC_LIBOBJ invocations to module description.
1831         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
1832         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
1833
1834 2011-05-23  Bruno Haible  <bruno@clisp.org>
1835
1836         write-any-file: Move AC_LIBOBJ invocations to module description.
1837         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
1838         invocation.
1839         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
1840
1841 2011-05-23  Bruno Haible  <bruno@clisp.org>
1842
1843         utimens: Move AC_LIBOBJ invocations to module description.
1844         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
1845         * modules/utimens (Makefile.am): Augment lib_SOURCES.
1846
1847 2011-05-23  Bruno Haible  <bruno@clisp.org>
1848
1849         utimecmp: Move AC_LIBOBJ invocations to module description.
1850         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
1851         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
1852
1853 2011-05-23  Bruno Haible  <bruno@clisp.org>
1854
1855         userspec: Move AC_LIBOBJ invocations to module description.
1856         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
1857         * modules/userspec (Makefile.am): Augment lib_SOURCES.
1858
1859 2011-05-23  Bruno Haible  <bruno@clisp.org>
1860
1861         unlinkdir: Move AC_LIBOBJ invocations to module description.
1862         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
1863         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
1864
1865 2011-05-23  Bruno Haible  <bruno@clisp.org>
1866
1867         unistd-safer: Move AC_LIBOBJ invocations to module description.
1868         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
1869         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
1870
1871 2011-05-23  Bruno Haible  <bruno@clisp.org>
1872
1873         tempname: Move AC_LIBOBJ invocations to module description.
1874         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
1875         * modules/tempname (Makefile.am): Augment lib_SOURCES.
1876
1877 2011-05-23  Bruno Haible  <bruno@clisp.org>
1878
1879         strftime: Move AC_LIBOBJ invocations to module description.
1880         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
1881         * modules/strftime (Makefile.am): Augment lib_SOURCES.
1882
1883 2011-05-23  Bruno Haible  <bruno@clisp.org>
1884
1885         stdlib-safer: Move AC_LIBOBJ invocations to module description.
1886         * m4/stdlib-safer.m4: Remove file.
1887         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
1888         (configure.ac): Remove gl_STDLIB_SAFER call.
1889         (Makefile.am): Augment lib_SOURCES.
1890
1891 2011-05-23  Bruno Haible  <bruno@clisp.org>
1892
1893         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
1894         * m4/stdio-safer.m4: Remove file.
1895         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
1896         (configure.ac): Remove gl_TMPFILE_SAFER call.
1897         (Makefile.am): Augment lib_SOURCES.
1898
1899 2011-05-23  Bruno Haible  <bruno@clisp.org>
1900
1901         popen-safer: Move AC_LIBOBJ invocations to module description.
1902         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
1903         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
1904         (configure.ac): Remove gl_POPEN_SAFER call.
1905         (Makefile.am): Augment lib_SOURCES.
1906
1907 2011-05-23  Bruno Haible  <bruno@clisp.org>
1908
1909         freopen-safer: Move AC_LIBOBJ invocations to module description.
1910         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
1911         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
1912         (configure.ac): Remove gl_FREOPEN_SAFER call.
1913         (Makefile.am): Augment lib_SOURCES.
1914
1915 2011-05-23  Bruno Haible  <bruno@clisp.org>
1916
1917         fopen-safer: Move AC_LIBOBJ invocations to module description.
1918         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
1919         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
1920         (configure.ac): Remove gl_FOPEN_SAFER call.
1921         (Makefile.am): Augment lib_SOURCES.
1922
1923 2011-05-23  Bruno Haible  <bruno@clisp.org>
1924
1925         crypto/sha512: Move AC_LIBOBJ invocations to module description.
1926         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
1927         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
1928
1929 2011-05-23  Bruno Haible  <bruno@clisp.org>
1930
1931         crypto/sha256: Move AC_LIBOBJ invocations to module description.
1932         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
1933         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
1934
1935 2011-05-23  Bruno Haible  <bruno@clisp.org>
1936
1937         crypto/sha1: Move AC_LIBOBJ invocations to module description.
1938         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
1939         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
1940
1941 2011-05-23  Bruno Haible  <bruno@clisp.org>
1942
1943         settime: Move AC_LIBOBJ invocations to module description.
1944         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
1945         * modules/settime (Makefile.am): Augment lib_SOURCES.
1946
1947 2011-05-23  Bruno Haible  <bruno@clisp.org>
1948
1949         savedir: Move AC_LIBOBJ invocations to module description.
1950         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
1951         * modules/savedir (Makefile.am): Augment lib_SOURCES.
1952
1953 2011-05-23  Bruno Haible  <bruno@clisp.org>
1954
1955         save-cwd: Move AC_LIBOBJ invocations to module description.
1956         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
1957         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
1958
1959 2011-05-23  Bruno Haible  <bruno@clisp.org>
1960
1961         same: Move AC_LIBOBJ invocations to module description.
1962         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
1963         * modules/same (Makefile.am): Augment lib_SOURCES.
1964
1965 2011-05-23  Bruno Haible  <bruno@clisp.org>
1966
1967         safe-write: Move AC_LIBOBJ invocations to module description.
1968         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
1969         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
1970         instead of gl_SAFE_WRITE.
1971         (Makefile.am): Augment lib_SOURCES.
1972
1973 2011-05-23  Bruno Haible  <bruno@clisp.org>
1974
1975         safe-read: Move AC_LIBOBJ invocations to module description.
1976         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
1977         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
1978         of gl_SAFE_READ.
1979         (Makefile.am): Augment lib_SOURCES.
1980
1981 2011-05-23  Bruno Haible  <bruno@clisp.org>
1982
1983         safe-alloc: Move AC_LIBOBJ invocations to module description.
1984         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
1985         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
1986
1987 2011-05-23  Bruno Haible  <bruno@clisp.org>
1988
1989         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
1990         * m4/rijndael.m4: Remove file.
1991         * modules/crypto/rijndael (Files): Remove it.
1992         (configure.ac): Remove gl_RIJNDAEL call.
1993         (Makefile.am): Augment lib_SOURCES.
1994
1995 2011-05-23  Bruno Haible  <bruno@clisp.org>
1996
1997         readtokens: Move AC_LIBOBJ invocations to module description.
1998         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
1999         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
2000
2001 2011-05-23  Bruno Haible  <bruno@clisp.org>
2002
2003         read-file: Move AC_LIBOBJ invocations to module description.
2004         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
2005         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
2006         of gl_FUNC_READ_FILE.
2007         (Makefile.am): Augment lib_SOURCES.
2008
2009 2011-05-23  Bruno Haible  <bruno@clisp.org>
2010
2011         quotearg: Move AC_LIBOBJ invocations to module description.
2012         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
2013         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
2014
2015 2011-05-23  Bruno Haible  <bruno@clisp.org>
2016
2017         quote: Move AC_LIBOBJ invocations to module description.
2018         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
2019         * modules/quote (Makefile.am): Augment lib_SOURCES.
2020
2021 2011-05-23  Bruno Haible  <bruno@clisp.org>
2022
2023         posixver: Move AC_LIBOBJ invocations to module description.
2024         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
2025         * modules/posixver (Makefile.am): Augment lib_SOURCES.
2026
2027 2011-05-23  Bruno Haible  <bruno@clisp.org>
2028
2029         posixtm: Move AC_LIBOBJ invocations to module description.
2030         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
2031         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
2032
2033 2011-05-23  Bruno Haible  <bruno@clisp.org>
2034
2035         physmem: Move AC_LIBOBJ invocations to module description.
2036         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
2037         * modules/physmem (Makefile.am): Augment lib_SOURCES.
2038
2039 2011-05-23  Bruno Haible  <bruno@clisp.org>
2040
2041         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
2042         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
2043         invocation.
2044         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
2045
2046 2011-05-23  Bruno Haible  <bruno@clisp.org>
2047
2048         mpsort: Move AC_LIBOBJ invocations to module description.
2049         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
2050         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
2051
2052 2011-05-23  Bruno Haible  <bruno@clisp.org>
2053
2054         modechange: Move AC_LIBOBJ invocations to module description.
2055         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
2056         * modules/modechange (Makefile.am): Augment lib_SOURCES.
2057
2058 2011-05-23  Bruno Haible  <bruno@clisp.org>
2059
2060         mkdir-p: Move AC_LIBOBJ invocations to module description.
2061         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
2062         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
2063
2064 2011-05-23  Bruno Haible  <bruno@clisp.org>
2065
2066         mkancesdirs: Move AC_LIBOBJ invocations to module description.
2067         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
2068         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
2069
2070 2011-05-23  Bruno Haible  <bruno@clisp.org>
2071
2072         mgetgroups: Move AC_LIBOBJ invocations to module description.
2073         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
2074         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
2075
2076 2011-05-23  Bruno Haible  <bruno@clisp.org>
2077
2078         memxor: Move AC_LIBOBJ invocations to module description.
2079         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
2080         * modules/memxor (Makefile.am): Augment lib_SOURCES.
2081
2082 2011-05-23  Bruno Haible  <bruno@clisp.org>
2083
2084         memcoll: Move AC_LIBOBJ invocations to module description.
2085         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
2086         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
2087
2088 2011-05-23  Bruno Haible  <bruno@clisp.org>
2089
2090         memcasecmp: Move AC_LIBOBJ invocations to module description.
2091         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
2092         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
2093
2094 2011-05-23  Bruno Haible  <bruno@clisp.org>
2095
2096         crypto/md5: Move AC_LIBOBJ invocations to module description.
2097         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
2098         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
2099
2100 2011-05-23  Bruno Haible  <bruno@clisp.org>
2101
2102         crypto/md4: Move AC_LIBOBJ invocations to module description.
2103         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
2104         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
2105
2106 2011-05-23  Bruno Haible  <bruno@clisp.org>
2107
2108         crypto/md2: Move AC_LIBOBJ invocations to module description.
2109         * m4/md2.m4: Remove file.
2110         * modules/crypto/md2 (Files): Remove it.
2111         (configure.ac): Remove gl_MD2 call.
2112         (Makefile.am): Augment lib_SOURCES.
2113
2114 2011-05-23  Bruno Haible  <bruno@clisp.org>
2115
2116         long-options: Move AC_LIBOBJ invocations to module description.
2117         * m4/long-options.m4: Remove file.
2118         * modules/long-options (Files): Remove it.
2119         (configure.ac): Remove gl_LONG_OPTIONS call.
2120         (Makefile.am): Augment lib_SOURCES.
2121
2122 2011-05-23  Bruno Haible  <bruno@clisp.org>
2123
2124         i-ring: Move AC_LIBOBJ invocations to module description.
2125         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
2126         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
2127
2128 2011-05-23  Bruno Haible  <bruno@clisp.org>
2129
2130         idcache: Move AC_LIBOBJ invocations to module description.
2131         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
2132         * modules/idcache (Makefile.am): Augment lib_SOURCES.
2133
2134 2011-05-23  Bruno Haible  <bruno@clisp.org>
2135
2136         human: Move AC_LIBOBJ invocations to module description.
2137         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
2138         * modules/human (Makefile.am): Augment lib_SOURCES.
2139
2140 2011-05-23  Bruno Haible  <bruno@clisp.org>
2141
2142         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
2143         * m4/hmac-sha1.m4: Remove file.
2144         * modules/crypto/hmac-sha1 (Files): Remove it.
2145         (configure.ac): Remove gl_HMAC_SHA1 call.
2146         (Makefile.am): Augment lib_SOURCES.
2147
2148 2011-05-23  Bruno Haible  <bruno@clisp.org>
2149
2150         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
2151         * m4/hmac-md5.m4: Remove file.
2152         * modules/crypto/hmac-md5 (Files): Remove it.
2153         (configure.ac): Remove gl_HMAC_MD5 call.
2154         (Makefile.am): Augment lib_SOURCES.
2155
2156 2011-05-23  Bruno Haible  <bruno@clisp.org>
2157
2158         hash: Move AC_LIBOBJ invocations to module description.
2159         * m4/hash.m4: Remove file.
2160         * modules/hash (Files): Remove it.
2161         (configure.ac): Remove gl_HASH call.
2162         (Makefile.am): Augment lib_SOURCES.
2163
2164 2011-05-23  Bruno Haible  <bruno@clisp.org>
2165
2166         hard-locale: Move AC_LIBOBJ invocations to module description.
2167         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
2168         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
2169
2170 2011-05-23  Bruno Haible  <bruno@clisp.org>
2171
2172         getugroups: Move AC_LIBOBJ invocations to module description.
2173         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
2174         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
2175
2176 2011-05-23  Bruno Haible  <bruno@clisp.org>
2177
2178         gettime: Move AC_LIBOBJ invocations to module description.
2179         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
2180         * modules/gettime (Makefile.am): Augment lib_SOURCES.
2181
2182 2011-05-23  Bruno Haible  <bruno@clisp.org>
2183
2184         getndelim2: Move AC_LIBOBJ invocations to module description.
2185         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
2186         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
2187
2188 2011-05-23  Bruno Haible  <bruno@clisp.org>
2189
2190         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
2191         * m4/gc-pbkdf2-sha1.m4: Remove file.
2192         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
2193         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
2194         (Makefile.am): Augment lib_SOURCES.
2195
2196 2011-05-23  Bruno Haible  <bruno@clisp.org>
2197
2198         fts: Move AC_LIBOBJ invocations to module description.
2199         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
2200         * modules/fts (configure.ac): ... to here.
2201
2202 2011-05-23  Bruno Haible  <bruno@clisp.org>
2203
2204         file-type: Move AC_LIBOBJ invocations to module description.
2205         * m4/file-type.m4: Remove file.
2206         * modules/file-type (Files): Remove it.
2207         (configure.ac): Remove gl_FILE_TYPE call.
2208         (Makefile.am): Augment lib_SOURCES.
2209
2210 2011-05-23  Bruno Haible  <bruno@clisp.org>
2211
2212         filenamecat*: Respect rules for use of AC_LIBOBJ.
2213         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
2214         Remove AC_LIBOBJ invocation.
2215         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
2216         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
2217
2218 2011-05-23  Bruno Haible  <bruno@clisp.org>
2219
2220         filemode: Move AC_LIBOBJ invocations to module description.
2221         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
2222         * modules/filemode (Makefile.am): Augment lib_SOURCES.
2223
2224 2011-05-23  Bruno Haible  <bruno@clisp.org>
2225
2226         openat-safer: Move AC_LIBOBJ invocations to module description.
2227         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
2228         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
2229
2230 2011-05-23  Bruno Haible  <bruno@clisp.org>
2231
2232         fcntl-safer: Move AC_LIBOBJ invocations to module description.
2233         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
2234         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
2235
2236 2011-05-23  Bruno Haible  <bruno@clisp.org>
2237
2238         exclude: Move AC_LIBOBJ invocations to module description.
2239         * m4/exclude.m4: Remove file.
2240         * modules/exclude (Files): Remove it.
2241         (configure.ac): Remove gl_EXCLUDE call.
2242         (Makefile.am): Augment lib_SOURCES.
2243
2244 2011-05-23  Bruno Haible  <bruno@clisp.org>
2245
2246         dirname*: Respect rules for use of AC_LIBOBJ.
2247         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
2248         invocations.
2249         * modules/dirname (Makefile.am): Augment lib_SOURCES.
2250         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
2251
2252 2011-05-23  Bruno Haible  <bruno@clisp.org>
2253
2254         dirent-safer: Move AC_LIBOBJ invocations to module description.
2255         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
2256         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
2257
2258 2011-05-23  Bruno Haible  <bruno@clisp.org>
2259
2260         crypto/des: Move AC_LIBOBJ invocations to module description.
2261         * m4/des.m4: Remove file.
2262         * modules/crypto/des (Files): Remove it.
2263         (configure.ac): Remove gl_DES call.
2264         (Makefile.am): Augment lib_SOURCES.
2265
2266 2011-05-23  Bruno Haible  <bruno@clisp.org>
2267
2268         cycle-check: Move AC_LIBOBJ invocations to module description.
2269         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
2270         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
2271
2272 2011-05-23  Bruno Haible  <bruno@clisp.org>
2273
2274         c-strtold: Move AC_LIBOBJ invocations to module description.
2275         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
2276         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
2277
2278 2011-05-23  Bruno Haible  <bruno@clisp.org>
2279
2280         c-strtod: Move AC_LIBOBJ invocations to module description.
2281         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
2282         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
2283
2284 2011-05-23  Bruno Haible  <bruno@clisp.org>
2285
2286         crc: Move AC_LIBOBJ invocations to module description.
2287         * m4/crc.m4: Remove file.
2288         * modules/crc (Files): Remove it.
2289         (configure.ac): Remove gl_CRC call.
2290         (Makefile.am): Augment lib_SOURCES.
2291
2292 2011-05-23  Bruno Haible  <bruno@clisp.org>
2293
2294         close-stream: Move AC_LIBOBJ invocations to module description.
2295         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
2296         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
2297
2298 2011-05-23  Bruno Haible  <bruno@clisp.org>
2299
2300         closeout: Move AC_LIBOBJ invocations to module description.
2301         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
2302         * modules/closeout (Makefile.am): Augment lib_SOURCES.
2303
2304 2011-05-23  Bruno Haible  <bruno@clisp.org>
2305
2306         closein: Move AC_LIBOBJ invocations to module description.
2307         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
2308         * modules/closein (Makefile.am): Augment lib_SOURCES.
2309
2310 2011-05-23  Bruno Haible  <bruno@clisp.org>
2311
2312         cloexec: Move AC_LIBOBJ invocations to module description.
2313         * m4/cloexec.m4: Remove file.
2314         * modules/cloexec (Files): Remove it.
2315         (configure.ac): Remove gl_CLOEXEC call.
2316         (Makefile.am): Augment lib_SOURCES.
2317
2318 2011-05-23  Bruno Haible  <bruno@clisp.org>
2319
2320         check-version: Move AC_LIBOBJ invocations to module description.
2321         * m4/check-version.m4: Remove file.
2322         * modules/check-version (Files): Remove it.
2323         (configure.ac): Remove gl_CHECK_VERSION call.
2324         (Makefile.am): Augment lib_SOURCES.
2325
2326 2011-05-23  Bruno Haible  <bruno@clisp.org>
2327
2328         chdir-safer: Move AC_LIBOBJ invocations to module description.
2329         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
2330         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
2331
2332 2011-05-23  Bruno Haible  <bruno@clisp.org>
2333
2334         canonicalize: Move AC_LIBOBJ invocations to module description.
2335         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
2336         AC_LIBOBJ invocation.
2337         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
2338
2339 2011-05-23  Bruno Haible  <bruno@clisp.org>
2340
2341         canon-host: Move AC_LIBOBJ invocations to module description.
2342         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
2343         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
2344         instead of gl_CANON_HOST.
2345         (Makefile.am): Augment lib_SOURCES.
2346
2347 2011-05-23  Bruno Haible  <bruno@clisp.org>
2348
2349         backupfile: Move AC_LIBOBJ invocations to module description.
2350         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
2351         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
2352
2353 2011-05-23  Bruno Haible  <bruno@clisp.org>
2354
2355         argmatch: Move AC_LIBOBJ invocations to module description.
2356         * m4/argmatch.m4: Remove file.
2357         * modules/argmatch (Files): Remove it.
2358         (configure.ac): Remove gl_ARGMATCH call.
2359         (Makefile.am): Augment lib_SOURCES.
2360
2361 2011-05-23  Bruno Haible  <bruno@clisp.org>
2362
2363         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
2364         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
2365         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
2366
2367 2011-05-23  Bruno Haible  <bruno@clisp.org>
2368
2369         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
2370         * m4/arcfour.m4: Remove file.
2371         * modules/crypto/arcfour (Files): Remove it.
2372         (configure.ac): Remove gl_ARCFOUR call.
2373         (Makefile.am): Augment lib_SOURCES.
2374
2375 2011-05-22  Bruno Haible  <bruno@clisp.org>
2376
2377         write: Move AC_LIBOBJ invocations to module description.
2378         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
2379         * modules/write (configure.ac): ... to here.
2380
2381 2011-05-22  Bruno Haible  <bruno@clisp.org>
2382
2383         wmemset: Move AC_LIBOBJ invocations to module description.
2384         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
2385         here...
2386         * modules/wmemset (configure.ac): ... to here.
2387
2388 2011-05-22  Bruno Haible  <bruno@clisp.org>
2389
2390         wmemmove: Move AC_LIBOBJ invocations to module description.
2391         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
2392         here...
2393         * modules/wmemmove (configure.ac): ... to here.
2394
2395 2011-05-22  Bruno Haible  <bruno@clisp.org>
2396
2397         wmemcpy: Move AC_LIBOBJ invocations to module description.
2398         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
2399         here...
2400         * modules/wmemcpy (configure.ac): ... to here.
2401
2402 2011-05-22  Bruno Haible  <bruno@clisp.org>
2403
2404         wmemcmp: Move AC_LIBOBJ invocations to module description.
2405         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
2406         here...
2407         * modules/wmemcmp (configure.ac): ... to here.
2408
2409 2011-05-22  Bruno Haible  <bruno@clisp.org>
2410
2411         wmemchr: Move AC_LIBOBJ invocations to module description.
2412         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
2413         here...
2414         * modules/wmemchr (configure.ac): ... to here.
2415
2416 2011-05-22  Bruno Haible  <bruno@clisp.org>
2417
2418         wcswidth: Move AC_LIBOBJ invocations to module description.
2419         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
2420         here...
2421         * modules/wcswidth (configure.ac): ... to here.
2422
2423 2011-05-22  Bruno Haible  <bruno@clisp.org>
2424
2425         wcwidth: Respect rules for use of AC_LIBOBJ.
2426         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
2427         invocation from here...
2428         * modules/wcwidth (configure.ac): ... to here.
2429         (Depends-on): Update conditions.
2430
2431 2011-05-22  Bruno Haible  <bruno@clisp.org>
2432
2433         wctype: Move AC_LIBOBJ invocations to module description.
2434         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
2435         invocation from here...
2436         * modules/wctype (configure.ac): ... to here.
2437         (Depends-on): Update conditions.
2438
2439 2011-05-22  Bruno Haible  <bruno@clisp.org>
2440
2441         wctrans: Move AC_LIBOBJ invocations to module description.
2442         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
2443         invocation from here...
2444         * modules/wctrans (configure.ac): ... to here.
2445
2446 2011-05-22  Bruno Haible  <bruno@clisp.org>
2447
2448         wctomb: Move AC_LIBOBJ invocations to module description.
2449         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
2450         invocations from here...
2451         * modules/wctomb (configure.ac): ... to here.
2452
2453 2011-05-22  Bruno Haible  <bruno@clisp.org>
2454
2455         wctob: Move AC_LIBOBJ invocations to module description.
2456         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
2457         gl_PREREQ_WCTOB invocations from here...
2458         * modules/wctob (configure.ac): ... to here.
2459         (Depends-on): Update conditions.
2460
2461 2011-05-22  Bruno Haible  <bruno@clisp.org>
2462
2463         wcsxfrm: Move AC_LIBOBJ invocations to module description.
2464         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
2465         here...
2466         * modules/wcsxfrm (configure.ac): ... to here.
2467
2468 2011-05-22  Bruno Haible  <bruno@clisp.org>
2469
2470         wcstok: Move AC_LIBOBJ invocations to module description.
2471         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
2472         * modules/wcstok (configure.ac): ... to here.
2473
2474 2011-05-22  Bruno Haible  <bruno@clisp.org>
2475
2476         wcsstr: Move AC_LIBOBJ invocations to module description.
2477         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
2478         * modules/wcsstr (configure.ac): ... to here.
2479
2480 2011-05-22  Bruno Haible  <bruno@clisp.org>
2481
2482         wcsspn: Move AC_LIBOBJ invocations to module description.
2483         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
2484         * modules/wcsspn (configure.ac): ... to here.
2485
2486 2011-05-22  Bruno Haible  <bruno@clisp.org>
2487
2488         wcsrtombs: Move AC_LIBOBJ invocations to module description.
2489         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
2490         gl_PREREQ_WCSRTOMBS invocations from here...
2491         * modules/wcsrtombs (configure.ac): ... to here.
2492
2493 2011-05-22  Bruno Haible  <bruno@clisp.org>
2494
2495         wcsrchr: Move AC_LIBOBJ invocations to module description.
2496         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
2497         here...
2498         * modules/wcsrchr (configure.ac): ... to here.
2499
2500 2011-05-22  Bruno Haible  <bruno@clisp.org>
2501
2502         wcspbrk: Move AC_LIBOBJ invocations to module description.
2503         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
2504         here...
2505         * modules/wcspbrk (configure.ac): ... to here.
2506
2507 2011-05-22  Bruno Haible  <bruno@clisp.org>
2508
2509         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
2510         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
2511         gl_PREREQ_WCSNRTOMBS invocations from here...
2512         * modules/wcsnrtombs (configure.ac): ... to here.
2513
2514 2011-05-22  Bruno Haible  <bruno@clisp.org>
2515
2516         wcsnlen: Move AC_LIBOBJ invocations to module description.
2517         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
2518         here...
2519         * modules/wcsnlen (configure.ac): ... to here.
2520
2521 2011-05-22  Bruno Haible  <bruno@clisp.org>
2522
2523         wcsncpy: Move AC_LIBOBJ invocations to module description.
2524         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
2525         here...
2526         * modules/wcsncpy (configure.ac): ... to here.
2527
2528 2011-05-22  Bruno Haible  <bruno@clisp.org>
2529
2530         wcsncmp: Move AC_LIBOBJ invocations to module description.
2531         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
2532         here...
2533         * modules/wcsncmp (configure.ac): ... to here.
2534
2535 2011-05-22  Bruno Haible  <bruno@clisp.org>
2536
2537         wcsncat: Move AC_LIBOBJ invocations to module description.
2538         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
2539         here...
2540         * modules/wcsncat (configure.ac): ... to here.
2541
2542 2011-05-22  Bruno Haible  <bruno@clisp.org>
2543
2544         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
2545         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
2546         from here...
2547         * modules/wcsncasecmp (configure.ac): ... to here.
2548
2549 2011-05-22  Bruno Haible  <bruno@clisp.org>
2550
2551         wcslen: Move AC_LIBOBJ invocations to module description.
2552         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
2553         * modules/wcslen (configure.ac): ... to here.
2554
2555 2011-05-22  Bruno Haible  <bruno@clisp.org>
2556
2557         wcsdup: Move AC_LIBOBJ invocations to module description.
2558         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
2559         * modules/wcsdup (configure.ac): ... to here.
2560
2561 2011-05-22  Bruno Haible  <bruno@clisp.org>
2562
2563         wcscspn: Move AC_LIBOBJ invocations to module description.
2564         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
2565         here...
2566         * modules/wcscspn (configure.ac): ... to here.
2567
2568 2011-05-22  Bruno Haible  <bruno@clisp.org>
2569
2570         wcscpy: Move AC_LIBOBJ invocations to module description.
2571         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
2572         * modules/wcscpy (configure.ac): ... to here.
2573
2574 2011-05-22  Bruno Haible  <bruno@clisp.org>
2575
2576         wcscoll: Move AC_LIBOBJ invocations to module description.
2577         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
2578         here...
2579         * modules/wcscoll (configure.ac): ... to here.
2580
2581 2011-05-22  Bruno Haible  <bruno@clisp.org>
2582
2583         wcscmp: Move AC_LIBOBJ invocations to module description.
2584         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
2585         * modules/wcscmp (configure.ac): ... to here.
2586
2587 2011-05-22  Bruno Haible  <bruno@clisp.org>
2588
2589         wcschr: Move AC_LIBOBJ invocations to module description.
2590         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
2591         * modules/wcschr (configure.ac): ... to here.
2592
2593 2011-05-22  Bruno Haible  <bruno@clisp.org>
2594
2595         wcscat: Move AC_LIBOBJ invocations to module description.
2596         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
2597         * modules/wcscat (configure.ac): ... to here.
2598
2599 2011-05-22  Bruno Haible  <bruno@clisp.org>
2600
2601         wcscasecmp: Move AC_LIBOBJ invocations to module description.
2602         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
2603         here...
2604         * modules/wcscasecmp (configure.ac): ... to here.
2605
2606 2011-05-22  Bruno Haible  <bruno@clisp.org>
2607
2608         wcrtomb: Move AC_LIBOBJ invocations to module description.
2609         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
2610         invocations from here...
2611         * modules/wcrtomb (configure.ac): ... to here.
2612
2613 2011-05-22  Bruno Haible  <bruno@clisp.org>
2614
2615         wcpncpy: Move AC_LIBOBJ invocations to module description.
2616         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
2617         here...
2618         * modules/wcpncpy (configure.ac): ... to here.
2619
2620 2011-05-22  Bruno Haible  <bruno@clisp.org>
2621
2622         wcpcpy: Move AC_LIBOBJ invocations to module description.
2623         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
2624         * modules/wcpcpy (configure.ac): ... to here.
2625
2626 2011-05-22  Bruno Haible  <bruno@clisp.org>
2627
2628         waitpid: Move AC_LIBOBJ invocations to module description.
2629         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
2630         invocation from here...
2631         * modules/waitpid (configure.ac): ... to here.
2632
2633 2011-05-22  Bruno Haible  <bruno@clisp.org>
2634
2635         utimensat: Move AC_LIBOBJ invocations to module description.
2636         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
2637         here...
2638         * modules/utimensat (configure.ac): ... to here.
2639
2640 2011-05-22  Bruno Haible  <bruno@clisp.org>
2641
2642         usleep: Move AC_LIBOBJ invocations to module description.
2643         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
2644         here...
2645         * modules/usleep (configure.ac): ... to here.
2646
2647 2011-05-22  Bruno Haible  <bruno@clisp.org>
2648
2649         unlockpt: Move AC_LIBOBJ invocations to module description.
2650         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
2651         gl_PREREQ_UNLOCKPT invocations from here...
2652         * modules/unlockpt (configure.ac): ... to here.
2653
2654 2011-05-22  Bruno Haible  <bruno@clisp.org>
2655
2656         unlink: Respect rules for use of AC_LIBOBJ.
2657         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
2658         * modules/unlink (configure.ac): ... to here.
2659
2660 2011-05-22  Bruno Haible  <bruno@clisp.org>
2661
2662         uname: Move AC_LIBOBJ invocations to module description.
2663         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
2664         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
2665         here...
2666         * modules/uname (configure.ac): ... to here.
2667
2668 2011-05-22  Bruno Haible  <bruno@clisp.org>
2669
2670         ttyname_r: Move AC_LIBOBJ invocations to module description.
2671         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
2672         gl_PREREQ_TTYNAME_R invocations from here...
2673         * modules/ttyname_r (configure.ac): ... to here.
2674
2675 2011-05-22  Bruno Haible  <bruno@clisp.org>
2676
2677         tsearch: Move AC_LIBOBJ invocations to module description.
2678         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
2679         invocations from here...
2680         * modules/tsearch (configure.ac): ... to here.
2681
2682 2011-05-22  Bruno Haible  <bruno@clisp.org>
2683
2684         towctrans: Move AC_LIBOBJ invocations to module description.
2685         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
2686         AC_LIBOBJ invocation from here...
2687         * modules/towctrans (configure.ac): ... to here.
2688
2689 2011-05-22  Bruno Haible  <bruno@clisp.org>
2690
2691         tmpfile: Move AC_LIBOBJ invocations to module description.
2692         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
2693         invocations from here...
2694         * modules/tmpfile (configure.ac): ... to here.
2695
2696 2011-05-22  Bruno Haible  <bruno@clisp.org>
2697
2698         times: Move AC_LIBOBJ invocations to module description.
2699         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
2700         * modules/times (configure.ac): ... to here.
2701
2702 2011-05-22  Bruno Haible  <bruno@clisp.org>
2703
2704         time_r: Move AC_LIBOBJ invocations to module description.
2705         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
2706         invocations from here...
2707         * modules/time_r (configure.ac): ... to here.
2708
2709 2011-05-22  Bruno Haible  <bruno@clisp.org>
2710
2711         timegm: Move AC_LIBOBJ invocations to module description.
2712         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
2713         invocations from here...
2714         * modules/timegm (configure.ac): ... to here.
2715
2716 2011-05-22  Bruno Haible  <bruno@clisp.org>
2717
2718         tcgetsid: Move AC_LIBOBJ invocations to module description.
2719         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
2720         and gl_PREREQ_TCGETSID invocations from here...
2721         * modules/tcgetsid (configure.ac): ... to here.
2722         (Depends-on): Update conditions.
2723
2724 2011-05-22  Bruno Haible  <bruno@clisp.org>
2725
2726         symlinkat: Move AC_LIBOBJ invocations to module description.
2727         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
2728         here...
2729         * modules/symlinkat (configure.ac): ... to here.
2730
2731 2011-05-22  Bruno Haible  <bruno@clisp.org>
2732
2733         symlink: Move AC_LIBOBJ invocations to module description.
2734         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
2735         here...
2736         * modules/symlink (configure.ac): ... to here.
2737
2738 2011-05-22  Bruno Haible  <bruno@clisp.org>
2739
2740         strverscmp: Move AC_LIBOBJ invocations to module description.
2741         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
2742         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
2743         from here...
2744         * modules/strverscmp (configure.ac): ... to here.
2745
2746 2011-05-22  Bruno Haible  <bruno@clisp.org>
2747
2748         strtok_r: Move AC_LIBOBJ invocations to module description.
2749         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
2750         and gl_PREREQ_STRTOK_R invocations from here...
2751         * modules/strtok_r (configure.ac): ... to here.
2752         (Depends-on): Update conditions.
2753
2754 2011-05-22  Bruno Haible  <bruno@clisp.org>
2755
2756         strtoumax: Move AC_LIBOBJ invocations to module description.
2757         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
2758         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
2759         from here...
2760         * modules/strtoumax (configure.ac): ... to here.
2761
2762 2011-05-22  Bruno Haible  <bruno@clisp.org>
2763
2764         strtoimax: Move AC_LIBOBJ invocations to module description.
2765         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
2766         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
2767         from here...
2768         * modules/strtoimax (configure.ac): ... to here.
2769
2770 2011-05-22  Bruno Haible  <bruno@clisp.org>
2771
2772         strtoull: Move AC_LIBOBJ invocations to module description.
2773         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
2774         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
2775         from here...
2776         * modules/strtoull (configure.ac): ... to here.
2777
2778 2011-05-22  Bruno Haible  <bruno@clisp.org>
2779
2780         strtoll: Move AC_LIBOBJ invocations to module description.
2781         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
2782         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
2783         here...
2784         * modules/strtoll (configure.ac): ... to here.
2785
2786 2011-05-22  Bruno Haible  <bruno@clisp.org>
2787
2788         strtoul: Move AC_LIBOBJ invocations to module description.
2789         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
2790         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
2791         * modules/strtoul (configure.ac): ... to here.
2792
2793 2011-05-22  Bruno Haible  <bruno@clisp.org>
2794
2795         strtol: Move AC_LIBOBJ invocations to module description.
2796         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
2797         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
2798         * modules/strtol (configure.ac): ... to here.
2799
2800 2011-05-22  Bruno Haible  <bruno@clisp.org>
2801
2802         strtod: Move AC_LIBOBJ invocations to module description.
2803         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
2804         invocations from here...
2805         * modules/strtod (configure.ac): ... to here.
2806
2807 2011-05-22  Bruno Haible  <bruno@clisp.org>
2808
2809         strstr*: Move AC_LIBOBJ invocations to module description.
2810         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
2811         invocations from here...
2812         * modules/strstr-simple (configure.ac): ... to here.
2813         * modules/strstr (configure.ac): ... and here.
2814
2815 2011-05-22  Bruno Haible  <bruno@clisp.org>
2816
2817         strsignal: Move AC_LIBOBJ invocations to module description.
2818         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
2819         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
2820         * modules/strsignal (configure.ac): ... to here.
2821         (Depends-on): Update conditions.
2822
2823 2011-05-22  Bruno Haible  <bruno@clisp.org>
2824
2825         strsep: Move AC_LIBOBJ invocations to module description.
2826         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
2827         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
2828         here...
2829         * modules/strsep (configure.ac): ... to here.
2830
2831 2011-05-22  Bruno Haible  <bruno@clisp.org>
2832
2833         strptime: Move AC_LIBOBJ invocations to module description.
2834         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
2835         gl_PREREQ_STRPTIME invocations from here...
2836         * modules/strptime (configure.ac): ... to here.
2837
2838 2011-05-22  Bruno Haible  <bruno@clisp.org>
2839
2840         strpbrk: Move AC_LIBOBJ invocations to module description.
2841         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
2842         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
2843         here...
2844         * modules/strpbrk (configure.ac): ... to here.
2845
2846 2011-05-22  Bruno Haible  <bruno@clisp.org>
2847
2848         strnlen: Move AC_LIBOBJ invocations to module description.
2849         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
2850         invocations from here...
2851         * modules/strnlen (configure.ac): ... to here.
2852
2853 2011-05-22  Bruno Haible  <bruno@clisp.org>
2854
2855         strndup: Move AC_LIBOBJ invocations to module description.
2856         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
2857         invocations from here...
2858         * modules/strndup (configure.ac): ... to here.
2859         (Depends-on): Update conditions.
2860
2861 2011-05-22  Bruno Haible  <bruno@clisp.org>
2862
2863         strncat: Move AC_LIBOBJ invocations to module description.
2864         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
2865         invocations from here...
2866         * modules/strncat (configure.ac): ... to here.
2867
2868 2011-05-22  Bruno Haible  <bruno@clisp.org>
2869
2870         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
2871         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
2872         invocations from here...
2873         * modules/strdup (configure.ac): ... to here.
2874         * modules/strdup-posix (configure.ac): ... and here.
2875
2876 2011-05-22  Bruno Haible  <bruno@clisp.org>
2877
2878         strcspn: Move AC_LIBOBJ invocations to module description.
2879         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
2880         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
2881         here...
2882         * modules/strcspn (configure.ac): ... to here.
2883
2884 2011-05-22  Bruno Haible  <bruno@clisp.org>
2885
2886         strchrnul: Move AC_LIBOBJ invocations to module description.
2887         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
2888         gl_PREREQ_STRCHRNUL invocations from here...
2889         * modules/strchrnul (configure.ac): ... to here.
2890
2891 2011-05-22  Bruno Haible  <bruno@clisp.org>
2892
2893         strcasestr*: Move AC_LIBOBJ invocations to module description.
2894         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
2895         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
2896         * modules/strcasestr-simple (configure.ac): ... to here.
2897         * modules/strcasestr (configure.ac): ... and here.
2898
2899 2011-05-22  Bruno Haible  <bruno@clisp.org>
2900
2901         strcase: Move AC_LIBOBJ invocations to module description.
2902         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
2903         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
2904         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
2905         gl_PREREQ_STRNCASECMP invocations from here...
2906         * modules/strcase (configure.ac): ... to here.
2907
2908 2011-05-22  Bruno Haible  <bruno@clisp.org>
2909
2910         stpncpy: Move AC_LIBOBJ invocations to module description.
2911         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
2912         here...
2913         * modules/stpncpy (configure.ac): ... to here.
2914
2915 2011-05-22  Bruno Haible  <bruno@clisp.org>
2916
2917         stpcpy: Move AC_LIBOBJ invocations to module description.
2918         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
2919         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
2920         here...
2921         * modules/stpcpy (configure.ac): ... to here.
2922
2923 2011-05-21  Bruno Haible  <bruno@clisp.org>
2924
2925         stat: Move AC_LIBOBJ invocations to module description.
2926         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
2927         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
2928         here...
2929         * modules/stat (configure.ac): ... to here.
2930
2931 2011-05-21  Bruno Haible  <bruno@clisp.org>
2932
2933         sleep: Move AC_LIBOBJ invocations to module description.
2934         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
2935         * modules/sleep (configure.ac): ... to here.
2936
2937 2011-05-21  Bruno Haible  <bruno@clisp.org>
2938
2939         signbit: Move AC_LIBOBJ invocations to module description.
2940         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
2941         * modules/signbit (configure.ac): ... to here.
2942
2943 2011-05-21  Bruno Haible  <bruno@clisp.org>
2944
2945         sigprocmask: Move AC_LIBOBJ invocations to module description.
2946         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
2947         gl_PREREQ_SIGPROMASK invocations from here...
2948         * modules/sigprocmask (configure.ac): ... to here.
2949
2950 2011-05-21  Bruno Haible  <bruno@clisp.org>
2951
2952         sigaction: Move AC_LIBOBJ invocations to module description.
2953         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
2954         gl_PREREQ_SIGACTION invocations from here...
2955         * modules/sigaction (configure.ac): ... to here.
2956
2957 2011-05-21  Bruno Haible  <bruno@clisp.org>
2958
2959         sig2str: Move AC_LIBOBJ invocations to module description.
2960         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
2961         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
2962         here...
2963         * modules/sig2str (configure.ac): ... to here.
2964
2965 2011-05-21  Bruno Haible  <bruno@clisp.org>
2966
2967         setlocale: Move AC_LIBOBJ invocations to module description.
2968         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
2969         gl_PREREQ_SETLOCALE invocations from here...
2970         * modules/setlocale (configure.ac): ... to here.
2971
2972 2011-05-21  Bruno Haible  <bruno@clisp.org>
2973
2974         unsetenv: Move AC_LIBOBJ invocations to module description.
2975         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
2976         and gl_PREREQ_UNSETENV invocations from here...
2977         * modules/unsetenv (configure.ac): ... to here.
2978         (Depends-on): Update.
2979
2980 2011-05-21  Bruno Haible  <bruno@clisp.org>
2981
2982         setenv: Move AC_LIBOBJ invocations to module description.
2983         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
2984         here...
2985         * modules/setenv (configure.ac): ... to here.
2986
2987 2011-05-21  Bruno Haible  <bruno@clisp.org>
2988
2989         selinux-h: Move AC_LIBOBJ invocations to module description.
2990         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
2991         AC_LIBOBJ invocation from here...
2992         * modules/selinux-h (configure.ac): ... to here.
2993
2994 2011-05-21  Bruno Haible  <bruno@clisp.org>
2995
2996         select: Respect rules for use of AC_LIBOBJ.
2997         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
2998         here...
2999         * modules/select (configure.ac): ... to here.
3000
3001 2011-05-21  Bruno Haible  <bruno@clisp.org>
3002
3003         scandir: Move AC_LIBOBJ invocations to module description.
3004         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
3005         invocations from here...
3006         * modules/scandir (configure.ac): ... to here.
3007
3008 2011-05-21  Bruno Haible  <bruno@clisp.org>
3009
3010         rpmatch: Move AC_LIBOBJ invocations to module description.
3011         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
3012         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
3013         here...
3014         * modules/rpmatch (configure.ac): ... to here.
3015
3016 2011-05-21  Bruno Haible  <bruno@clisp.org>
3017
3018         rmdir: Respect rules for use of AC_LIBOBJ.
3019         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
3020         * modules/rmdir (configure.ac): ... to here.
3021
3022 2011-05-21  Bruno Haible  <bruno@clisp.org>
3023
3024         renameat: Move AC_LIBOBJ invocations to module description.
3025         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
3026         here...
3027         * modules/renameat (configure.ac): ... to here.
3028
3029 2011-05-21  Bruno Haible  <bruno@clisp.org>
3030
3031         rename: Respect rules for use of AC_LIBOBJ.
3032         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
3033         here...
3034         * modules/rename (configure.ac): ... to here.
3035
3036 2011-05-21  Bruno Haible  <bruno@clisp.org>
3037
3038         remove: Move AC_LIBOBJ invocations to module description.
3039         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
3040         here...
3041         * modules/remove (configure.ac): ... to here.
3042
3043 2011-05-21  Bruno Haible  <bruno@clisp.org>
3044
3045         relocatable-lib: Move AC_LIBOBJ invocations to module description.
3046         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
3047         macro.
3048         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
3049         * modules/relocatable-lib (configure.ac): ... to here.
3050         * modules/relocatable-prog-wrapper (configure.ac): Invoke
3051         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
3052
3053 2011-05-21  Bruno Haible  <bruno@clisp.org>
3054
3055         relocatable-prog: Move AC_LIBOBJ invocations to module description.
3056         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
3057         here...
3058         * modules/relocatable-prog (configure.ac): ... to here.
3059
3060 2011-05-21  Bruno Haible  <bruno@clisp.org>
3061
3062         regex: Move AC_LIBOBJ invocations to module description.
3063         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
3064         invocations from here...
3065         * modules/regex (configure.ac): ... to here.
3066
3067 2011-05-21  Bruno Haible  <bruno@clisp.org>
3068
3069         realloc-*: Move AC_LIBOBJ invocations to module description.
3070         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
3071         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
3072         AC_LIBOBJ invocations from here...
3073         * modules/realloc-gnu (configure.ac): ... to here.
3074         * modules/realloc-posix (configure.ac): ... and here.
3075
3076 2011-05-21  Bruno Haible  <bruno@clisp.org>
3077
3078         readutmp: Move AC_LIBOBJ invocations to module description.
3079         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
3080         * modules/readutmp (configure.ac): ... to here.
3081
3082 2011-05-21  Bruno Haible  <bruno@clisp.org>
3083
3084         readlinkat: Move AC_LIBOBJ invocations to module description.
3085         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
3086         here...
3087         * modules/readlinkat (configure.ac): ... to here.
3088
3089 2011-05-21  Bruno Haible  <bruno@clisp.org>
3090
3091         readlink: Move AC_LIBOBJ invocations to module description.
3092         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
3093         gl_PREREQ_READLINK invocations from here...
3094         * modules/readlink (configure.ac): ... to here.
3095
3096 2011-05-21  Bruno Haible  <bruno@clisp.org>
3097
3098         readline: Move AC_LIBOBJ invocations to module description.
3099         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
3100         gl_PREREQ_READLINE invocations from here...
3101         * modules/readline (configure.ac): ... to here.
3102
3103 2011-05-21  Bruno Haible  <bruno@clisp.org>
3104
3105         read: Move AC_LIBOBJ invocations to module description.
3106         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
3107         * modules/read (configure.ac): ... to here.
3108
3109 2011-05-21  Bruno Haible  <bruno@clisp.org>
3110
3111         rawmemchr: Move AC_LIBOBJ invocations to module description.
3112         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
3113         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
3114         from here...
3115         * modules/rawmemchr (configure.ac): ... to here.
3116
3117 2011-05-21  Bruno Haible  <bruno@clisp.org>
3118
3119         random_r: Move AC_LIBOBJ invocations to module description.
3120         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
3121         gl_PREREQ_RANDOM_R invocations from here...
3122         * modules/random_r (configure.ac): ... to here.
3123
3124 2011-05-21  Bruno Haible  <bruno@clisp.org>
3125
3126         pwrite: Move AC_LIBOBJ invocations to module description.
3127         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
3128         * modules/pwrite (configure.ac): ... to here.
3129
3130 2011-05-21  Bruno Haible  <bruno@clisp.org>
3131
3132         putenv: Move AC_LIBOBJ invocations to module description.
3133         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
3134         * modules/putenv (configure.ac): ... to here.
3135
3136 2011-05-21  Bruno Haible  <bruno@clisp.org>
3137
3138         login_tty: Move AC_LIBOBJ invocations to module description.
3139         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
3140         * modules/login_tty (configure.ac): ... to here.
3141
3142 2011-05-21  Bruno Haible  <bruno@clisp.org>
3143
3144         openpty: Move AC_LIBOBJ invocations to module description.
3145         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
3146         * modules/openpty (configure.ac): ... to here.
3147
3148 2011-05-21  Bruno Haible  <bruno@clisp.org>
3149
3150         forkpty: Move AC_LIBOBJ invocations to module description.
3151         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
3152         * modules/forkpty (configure.ac): ... to here.
3153
3154 2011-05-21  Bruno Haible  <bruno@clisp.org>
3155
3156         ptsname: Move AC_LIBOBJ invocations to module description.
3157         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
3158         invocations from here...
3159         * modules/ptsname (configure.ac): ... to here.
3160
3161 2011-05-21  Bruno Haible  <bruno@clisp.org>
3162
3163         pread: Move AC_LIBOBJ invocations to module description.
3164         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
3165         * modules/pread (configure.ac): ... to here.
3166
3167 2011-05-21  Bruno Haible  <bruno@clisp.org>
3168
3169         posix_spawn*: Move AC_LIBOBJ invocations to module description.
3170         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
3171         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
3172         * modules/posix_spawn (configure.ac): ... to here.
3173         * modules/posix_spawnp (configure.ac): ... and here.
3174
3175 2011-05-21  Bruno Haible  <bruno@clisp.org>
3176
3177         popen: Move AC_LIBOBJ invocations to module description.
3178         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
3179         invocations from here...
3180         * modules/popen (configure.ac): ... to here.
3181
3182 2011-05-21  Bruno Haible  <bruno@clisp.org>
3183
3184         poll: Move AC_LIBOBJ invocations to module description.
3185         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
3186         invocations from here...
3187         * modules/poll (configure.ac): ... to here.
3188
3189 2011-05-21  Bruno Haible  <bruno@clisp.org>
3190
3191         pipe-posix: Move AC_LIBOBJ invocations to module description.
3192         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
3193         * modules/pipe-posix (configure.ac): ... to here.
3194
3195 2011-05-21  Bruno Haible  <bruno@clisp.org>
3196
3197         openat: Respect rules for use of AC_LIBOBJ.
3198         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
3199         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
3200         * modules/openat (configure.ac): ... to here.
3201
3202 2011-05-21  Bruno Haible  <bruno@clisp.org>
3203
3204         obstack-printf*: Move AC_LIBOBJ invocations to module description.
3205         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
3206         invocation from here...
3207         * modules/obstack-printf (configure.ac): ... to here.
3208         * modules/obstack-printf-posix (configure.ac): ... and here.
3209
3210 2011-05-21  Bruno Haible  <bruno@clisp.org>
3211
3212         nl_langinfo: Move AC_LIBOBJ invocations to module description.
3213         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
3214         from here...
3215         * modules/nl_langinfo (configure.ac): ... to here.
3216
3217 2011-05-21  Bruno Haible  <bruno@clisp.org>
3218
3219         nanosleep: Move AC_LIBOBJ invocations to module description.
3220         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
3221         gl_PREREQ_NANOSLEEP invocations from here...
3222         * modules/nanosleep (configure.ac): ... to here.
3223
3224 2011-05-21  Bruno Haible  <bruno@clisp.org>
3225
3226         mountlist: Move AC_LIBOBJ invocations to module description.
3227         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
3228         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
3229         * modules/mountlist (configure.ac): ... to here.
3230
3231 2011-05-21  Bruno Haible  <bruno@clisp.org>
3232
3233         mktime: Respect rules for use of AC_LIBOBJ.
3234         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
3235         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
3236         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
3237         (gl_FUNC_MKTIME_INTERNAL): ... and here...
3238         * modules/mktime (configure.ac): ... to here.
3239         * modules/mktime-internal (configure.ac): ... and here.
3240         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
3241
3242 2011-05-21  Bruno Haible  <bruno@clisp.org>
3243
3244         mkstemps: Move AC_LIBOBJ invocations to module description.
3245         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
3246         here...
3247         * modules/mkstemps (configure.ac): ... to here.
3248
3249 2011-05-21  Bruno Haible  <bruno@clisp.org>
3250
3251         mkstemp: Move AC_LIBOBJ invocations to module description.
3252         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
3253         gl_PREREQ_MKSTEMP invocations from here...
3254         * modules/mkstemp (configure.ac): ... to here.
3255
3256 2011-05-21  Bruno Haible  <bruno@clisp.org>
3257
3258         mkostemps: Move AC_LIBOBJ invocations to module description.
3259         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
3260         here...
3261         * modules/mkostemps (configure.ac): ... to here.
3262
3263 2011-05-21  Bruno Haible  <bruno@clisp.org>
3264
3265         mkostemp: Move AC_LIBOBJ invocations to module description.
3266         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
3267         gl_PREREQ_MKOSTEMP invocations from here...
3268         * modules/mkostemp (configure.ac): ... to here.
3269
3270 2011-05-21  Bruno Haible  <bruno@clisp.org>
3271
3272         mknod: Move AC_LIBOBJ invocations to module description.
3273         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
3274         * modules/mknod (configure.ac): ... to here.
3275
3276 2011-05-21  Bruno Haible  <bruno@clisp.org>
3277
3278         mkfifoat: Move AC_LIBOBJ invocations to module description.
3279         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
3280         here...
3281         * modules/mkfifoat (configure.ac): ... to here.
3282
3283 2011-05-21  Bruno Haible  <bruno@clisp.org>
3284
3285         mkfifo: Respect rules for use of AC_LIBOBJ.
3286         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
3287         here...
3288         * modules/mkfifo (configure.ac): ... to here.
3289
3290 2011-05-21  Bruno Haible  <bruno@clisp.org>
3291
3292         mkdtemp: Move AC_LIBOBJ invocations to module description.
3293         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
3294         invocations from here...
3295         * modules/mkdtemp (configure.ac): ... to here.
3296
3297 2011-05-21  Bruno Haible  <bruno@clisp.org>
3298
3299         mkdir: Move AC_LIBOBJ invocations to module description.
3300         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
3301         * modules/mkdir (configure.ac): ... to here.
3302
3303 2011-05-21  Bruno Haible  <bruno@clisp.org>
3304
3305         memset: Move AC_LIBOBJ invocations to module description.
3306         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
3307         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
3308         here...
3309         * modules/memset (configure.ac): ... to here.
3310
3311 2011-05-21  Bruno Haible  <bruno@clisp.org>
3312
3313         memrchr: Move AC_LIBOBJ invocations to module description.
3314         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
3315         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
3316         here...
3317         * modules/memrchr (configure.ac): ... to here.
3318
3319 2011-05-21  Bruno Haible  <bruno@clisp.org>
3320
3321         mempcpy: Move AC_LIBOBJ invocations to module description.
3322         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
3323         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
3324         here...
3325         * modules/mempcpy (configure.ac): ... to here.
3326
3327 2011-05-21  Bruno Haible  <bruno@clisp.org>
3328
3329         memmove: Move AC_LIBOBJ invocations to module description.
3330         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
3331         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
3332         here...
3333         * modules/memmove (configure.ac): ... to here.
3334
3335 2011-05-21  Bruno Haible  <bruno@clisp.org>
3336
3337         memmem*: Move AC_LIBOBJ invocations to module description.
3338         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
3339         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
3340         here...
3341         (gl_FUNC_MEMMEM): ... and here...
3342         * modules/memmem-simple (configure.ac): ... to here.
3343         * modules/memmem (configure.ac): ... and here.
3344
3345 2011-05-21  Bruno Haible  <bruno@clisp.org>
3346
3347         memcpy: Move AC_LIBOBJ invocations to module description.
3348         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
3349         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
3350         here...
3351         * modules/memcpy (configure.ac): ... to here.
3352
3353 2011-05-21  Bruno Haible  <bruno@clisp.org>
3354
3355         memcmp: Simplify autoconf macro.
3356         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
3357         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
3358         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
3359
3360 2011-05-21  Bruno Haible  <bruno@clisp.org>
3361
3362         memcmp: Move AC_LIBOBJ invocations to module description.
3363         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
3364         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
3365         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
3366         * modules/memcmp (configure.ac): ... to here.
3367         (Depends-on): Update conditions.
3368
3369 2011-05-21  Bruno Haible  <bruno@clisp.org>
3370
3371         memchr: Respect rules for use of AC_LIBOBJ.
3372         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
3373         invocations from here...
3374         * modules/memchr (configure.ac): ... to here.
3375
3376 2011-05-21  Bruno Haible  <bruno@clisp.org>
3377
3378         mbtowc: Move AC_LIBOBJ invocations to module description.
3379         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
3380         invocations from here...
3381         * modules/mbtowc (configure.ac): ... to here.
3382
3383 2011-05-21  Bruno Haible  <bruno@clisp.org>
3384
3385         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
3386         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
3387         gl_PREREQ_MBSRTOWCS invocations from here...
3388         * modules/mbsrtowcs (configure.ac): ... to here.
3389
3390 2011-05-21  Bruno Haible  <bruno@clisp.org>
3391
3392         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
3393         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
3394         gl_PREREQ_MBSNRTOWCS invocations from here...
3395         * modules/mbsnrtowcs (configure.ac): ... to here.
3396
3397 2011-05-21  Bruno Haible  <bruno@clisp.org>
3398
3399         mbsinit: Move AC_LIBOBJ invocations to module description.
3400         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
3401         invocations from here...
3402         * modules/mbsinit (configure.ac): ... to here.
3403
3404 2011-05-21  Bruno Haible  <bruno@clisp.org>
3405
3406         mbrlen: Move AC_LIBOBJ invocations to module description.
3407         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
3408         invocations from here...
3409         * modules/mbrlen (configure.ac): ... to here.
3410
3411 2011-05-21  Bruno Haible  <bruno@clisp.org>
3412
3413         mbrtowc: Respect rules for use of AC_LIBOBJ.
3414         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
3415         invocations from here...
3416         * modules/mbrtowc (configure.ac): ... to here.
3417
3418 2011-05-21  Bruno Haible  <bruno@clisp.org>
3419
3420         malloc-*: Move AC_LIBOBJ invocations to module description.
3421         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
3422         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
3423         AC_LIBOBJ invocations from here...
3424         * modules/malloc-gnu (configure.ac): ... to here.
3425         * modules/malloc-posix (configure.ac): ... and here.
3426
3427 2011-05-21  Bruno Haible  <bruno@clisp.org>
3428
3429         lstat, openat: Respect rules for use of AC_LIBOBJ.
3430         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
3431         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
3432         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
3433         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
3434         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
3435         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
3436         here.
3437         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
3438
3439 2011-05-21  Bruno Haible  <bruno@clisp.org>
3440
3441         lseek: Move AC_LIBOBJ invocations to module description.
3442         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
3443         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
3444         * modules/lseek (configure.ac): ... to here.
3445
3446 2011-05-21  Bruno Haible  <bruno@clisp.org>
3447
3448         linkat: Move AC_LIBOBJ invocations to module description.
3449         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
3450         here...
3451         * modules/linkat (configure.ac): ... to here.
3452
3453 2011-05-21  Bruno Haible  <bruno@clisp.org>
3454
3455         link: Respect rules for use of AC_LIBOBJ.
3456         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
3457         * modules/link (configure.ac): ... to here.
3458
3459 2011-05-21  Bruno Haible  <bruno@clisp.org>
3460
3461         lchown: Move AC_LIBOBJ invocations to module description.
3462         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
3463         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
3464         * modules/lchown (configure.ac): ... to here.
3465
3466 2011-05-21  Bruno Haible  <bruno@clisp.org>
3467
3468         iswctype: Move AC_LIBOBJ invocations to module description.
3469         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
3470         here...
3471         * modules/iswctype (configure.ac): ... to here.
3472
3473 2011-05-21  Bruno Haible  <bruno@clisp.org>
3474
3475         iswblank: Move AC_LIBOBJ invocations to module description.
3476         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
3477         here...
3478         * modules/iswblank (configure.ac): ... to here.
3479
3480 2011-05-21  Bruno Haible  <bruno@clisp.org>
3481
3482         atanl: Move AC_LIBOBJ invocations to module description.
3483         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
3484         * modules/atanl (configure.ac): ... to here.
3485
3486 2011-05-21  Bruno Haible  <bruno@clisp.org>
3487
3488         acosl: Move AC_LIBOBJ invocations to module description.
3489         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
3490         * modules/acosl (configure.ac): ... to here.
3491
3492 2011-05-21  Bruno Haible  <bruno@clisp.org>
3493
3494         asinl: Respect rules for use of AC_LIBOBJ.
3495         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
3496         * modules/asinl (configure.ac): ... to here.
3497
3498 2011-05-21  Bruno Haible  <bruno@clisp.org>
3499
3500         tanl: Move AC_LIBOBJ invocations to module description.
3501         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
3502         * modules/tanl (configure.ac): ... to here.
3503
3504 2011-05-21  Bruno Haible  <bruno@clisp.org>
3505
3506         cosl: Move AC_LIBOBJ invocations to module description.
3507         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
3508         * modules/cosl (configure.ac): ... to here.
3509
3510 2011-05-21  Bruno Haible  <bruno@clisp.org>
3511
3512         sinl: Move AC_LIBOBJ invocations to module description.
3513         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
3514         * modules/sinl (configure.ac): ... to here.
3515
3516 2011-05-21  Bruno Haible  <bruno@clisp.org>
3517
3518         logl: Move AC_LIBOBJ invocations to module description.
3519         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
3520         * modules/logl (configure.ac): ... to here.
3521
3522 2011-05-21  Bruno Haible  <bruno@clisp.org>
3523
3524         expl: Move AC_LIBOBJ invocations to module description.
3525         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
3526         * modules/expl (configure.ac): ... to here.
3527
3528 2011-05-21  Bruno Haible  <bruno@clisp.org>
3529
3530         roundl: Move AC_LIBOBJ invocations to module description.
3531         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
3532         * modules/roundl (configure.ac): ... to here.
3533
3534 2011-05-21  Bruno Haible  <bruno@clisp.org>
3535
3536         round: Move AC_LIBOBJ invocations to module description.
3537         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
3538         * modules/round (configure.ac): ... to here.
3539
3540 2011-05-21  Bruno Haible  <bruno@clisp.org>
3541
3542         roundf: Move AC_LIBOBJ invocations to module description.
3543         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
3544         * modules/roundf (configure.ac): ... to here.
3545
3546 2011-05-21  Bruno Haible  <bruno@clisp.org>
3547
3548         truncl: Move AC_LIBOBJ invocations to module description.
3549         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
3550         * modules/truncl (configure.ac): ... to here.
3551
3552 2011-05-21  Bruno Haible  <bruno@clisp.org>
3553
3554         trunc: Move AC_LIBOBJ invocations to module description.
3555         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
3556         * modules/trunc (configure.ac): ... to here.
3557
3558 2011-05-21  Bruno Haible  <bruno@clisp.org>
3559
3560         truncf: Move AC_LIBOBJ invocations to module description.
3561         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
3562         * modules/truncf (configure.ac): ... to here.
3563
3564 2011-05-21  Bruno Haible  <bruno@clisp.org>
3565
3566         ceill: Move AC_LIBOBJ invocations to module description.
3567         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
3568         * modules/ceill (configure.ac): ... to here.
3569
3570 2011-05-21  Bruno Haible  <bruno@clisp.org>
3571
3572         ceil: Move AC_LIBOBJ invocations to module description.
3573         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
3574         * modules/ceil (configure.ac): ... to here.
3575
3576 2011-05-21  Bruno Haible  <bruno@clisp.org>
3577
3578         ceilf: Move AC_LIBOBJ invocations to module description.
3579         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
3580         * modules/ceilf (configure.ac): ... to here.
3581
3582 2011-05-21  Bruno Haible  <bruno@clisp.org>
3583
3584         floorl: Respect rules for use of AC_LIBOBJ.
3585         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
3586         * modules/floorl (configure.ac): ... to here.
3587
3588 2011-05-21  Bruno Haible  <bruno@clisp.org>
3589
3590         floor: Respect rules for use of AC_LIBOBJ.
3591         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
3592         * modules/floor (configure.ac): ... to here.
3593
3594 2011-05-21  Bruno Haible  <bruno@clisp.org>
3595
3596         floorf: Move AC_LIBOBJ invocations to module description.
3597         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
3598         * modules/floorf (configure.ac): ... to here.
3599
3600 2011-05-20  Bruno Haible  <bruno@clisp.org>
3601
3602         sqrtl: Respect rules for use of AC_LIBOBJ.
3603         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
3604         * modules/sqrtl (configure.ac): ... to here.
3605
3606 2011-05-20  Bruno Haible  <bruno@clisp.org>
3607
3608         ldexpl: Respect rules for use of AC_LIBOBJ.
3609         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
3610         * modules/ldexpl (configure.ac): ... to here.
3611
3612 2011-05-20  Bruno Haible  <bruno@clisp.org>
3613
3614         frexpl*: Respect rules for use of AC_LIBOBJ.
3615         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
3616         invocation from here...
3617         * modules/frexpl (configure.ac): ... to here.
3618         * modules/frexpl-nolibm (configure.ac): ... and here.
3619
3620 2011-05-20  Bruno Haible  <bruno@clisp.org>
3621
3622         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
3623         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
3624         invocation from here...
3625         * modules/frexp (configure.ac): ... to here.
3626         * modules/frexp-nolibm (configure.ac): ... and here.
3627
3628 2011-05-20  Bruno Haible  <bruno@clisp.org>
3629
3630         isnan: Respect rules for use of AC_LIBOBJ.
3631         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
3632         invocations here.
3633         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
3634         REPLACE_ISNAN.
3635         * modules/isnand (configure.ac): Likewise.
3636         * modules/isnanl (configure.ac): Likewise.
3637
3638 2011-05-20  Bruno Haible  <bruno@clisp.org>
3639
3640         isnanl*: Respect rules for use of AC_LIBOBJ.
3641         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
3642         invocation from here...
3643         * modules/isnanl (configure.ac): ... to here.
3644         * modules/isnanl-nolibm (configure.ac): ... and here.
3645
3646 2011-05-20  Bruno Haible  <bruno@clisp.org>
3647
3648         isnand*: Move AC_LIBOBJ invocations to module description.
3649         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
3650         invocation from here...
3651         * modules/isnand (configure.ac): ... to here.
3652         * modules/isnand-nolibm (configure.ac): ... and here.
3653
3654 2011-05-20  Bruno Haible  <bruno@clisp.org>
3655
3656         isnanf*: Move AC_LIBOBJ invocations to module description.
3657         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
3658         invocation from here...
3659         * modules/isnanf (configure.ac): ... to here.
3660         * modules/isnanf-nolibm (configure.ac): ... and here.
3661
3662 2011-05-20  Bruno Haible  <bruno@clisp.org>
3663
3664         isnan*: Separate the AC_LIBOBJ invocations.
3665         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
3666         AC_LIBOBJ invocation.
3667         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
3668         here.
3669         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
3670         AC_LIBOBJ invocation.
3671         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
3672         here.
3673         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
3674         AC_LIBOBJ invocation.
3675         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
3676         here.
3677         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
3678
3679 2011-05-08  Bruno Haible  <bruno@clisp.org>
3680
3681         isinf: Move AC_LIBOBJ invocations to module description.
3682         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
3683         * modules/isinf (configure.ac): ... to here.
3684
3685 2011-05-08  Bruno Haible  <bruno@clisp.org>
3686
3687         isfinite: Move AC_LIBOBJ invocations to module description.
3688         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
3689         * modules/isfinite (configure.ac): ... to here.
3690
3691 2011-05-08  Bruno Haible  <bruno@clisp.org>
3692
3693         isblank: Move AC_LIBOBJ invocations to module description.
3694         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
3695         here...
3696         * modules/isblank (configure.ac): ... to here.
3697
3698 2011-05-08  Bruno Haible  <bruno@clisp.org>
3699
3700         isapipe: Move AC_LIBOBJ invocations to module description.
3701         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
3702         gl_PREREQ_ISAPIPE invocations from here...
3703         * modules/isapipe (configure.ac): ... to here.
3704         (Depends-on): Update condition.
3705
3706 2011-05-08  Bruno Haible  <bruno@clisp.org>
3707
3708         ioctl: Move AC_LIBOBJ invocations to module description.
3709         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
3710         invocations from here...
3711         * modules/ioctl (configure.ac): ... to here.
3712         (Depends-on): Update condition.
3713
3714 2011-05-08  Bruno Haible  <bruno@clisp.org>
3715
3716         imaxdiv: Move AC_LIBOBJ invocations to module description.
3717         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
3718         invocations from here...
3719         * modules/imaxdiv (configure.ac): ... to here.
3720
3721 2011-05-08  Bruno Haible  <bruno@clisp.org>
3722
3723         imaxabs: Move AC_LIBOBJ invocations to module description.
3724         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
3725         invocations from here...
3726         * modules/imaxabs (configure.ac): ... to here.
3727
3728 2011-05-08  Bruno Haible  <bruno@clisp.org>
3729
3730         getaddrinfo: Move AC_LIBOBJ invocations to module description.
3731         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
3732         AC_LIBOBJ invocations from here...
3733         * modules/getaddrinfo (configure.ac): ... to here.
3734         (Depends-on): Add conditions.
3735
3736 2011-05-08  Bruno Haible  <bruno@clisp.org>
3737
3738         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
3739         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
3740         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
3741         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
3742         (gl_PREREQ_INET_PTON): ... from here.
3743         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
3744         gl_PREREQ_INET_PTON here.
3745         (Depends-on): Update condition.
3746
3747 2011-05-08  Bruno Haible  <bruno@clisp.org>
3748
3749         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
3750         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
3751         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
3752         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
3753         (gl_PREREQ_INET_NTOP): ... from here.
3754         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
3755         gl_PREREQ_INET_NTOP here.
3756         (Depends-on): Update condition.
3757
3758 2011-05-08  Bruno Haible  <bruno@clisp.org>
3759
3760         iconv_open: Move AC_LIBOBJ invocations to module description.
3761         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
3762         AC_LIBOBJ invocations from here...
3763         * modules/iconv_open (configure.ac): ... to here.
3764
3765 2011-05-08  Bruno Haible  <bruno@clisp.org>
3766
3767         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
3768         If module 'iconv_open' is among the main modules and module
3769         'iconv_open-utf' is among the tests dependencies, then
3770         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
3771         return the special iconv_t values. Therefore iconv() and iconv_close()
3772         must support these special iconv_t values, already in lib, not only in
3773         tests.
3774         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
3775         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
3776         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
3777         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
3778         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
3779         (Depends-on): Add the dependencies of iconv_open-utf.
3780         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
3781         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
3782         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
3783
3784 2011-05-08  Bruno Haible  <bruno@clisp.org>
3785
3786         group-member: Move AC_LIBOBJ invocations to module description.
3787         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
3788         gl_PREREQ_GROUP_MEMBER invocations from here...
3789         * modules/group-member (configure.ac): ... to here.
3790
3791 2011-05-08  Bruno Haible  <bruno@clisp.org>
3792
3793         grantpt: Move AC_LIBOBJ invocations to module description.
3794         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
3795         invocations from here...
3796         * modules/grantpt (configure.ac): ... to here.
3797
3798 2011-05-08  Bruno Haible  <bruno@clisp.org>
3799
3800         glob: Move AC_LIBOBJ invocations to module description.
3801         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
3802         from here...
3803         * modules/glob (configure.ac): ... to here.
3804
3805 2011-05-08  Bruno Haible  <bruno@clisp.org>
3806
3807         getusershell: Move AC_LIBOBJ invocations to module description.
3808         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
3809         Move AC_LIBOBJ invocation from here...
3810         * modules/getusershell (configure.ac): ... to here.
3811         (Depends-on): Update condition.
3812
3813 2011-05-08  Bruno Haible  <bruno@clisp.org>
3814
3815         gettimeofday: Move AC_LIBOBJ invocations to module description.
3816         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
3817         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
3818         gl_PREREQ_GETTIMEOFDAY invocations from here...
3819         * modules/gettimeofday (configure.ac): ... to here.
3820
3821 2011-05-08  Bruno Haible  <bruno@clisp.org>
3822
3823         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
3824         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
3825         just gl_FUNC_TZSET.
3826         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
3827         (gl_FUNC_TZSET_CLOBBER): Remove actions.
3828         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
3829         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
3830
3831 2011-05-08  Bruno Haible  <bruno@clisp.org>
3832
3833         getsubopt: Move AC_LIBOBJ invocations to module description.
3834         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
3835         gl_PREREQ_GETSUBOPT invocations from here...
3836         * modules/getsubopt (configure.ac): ... to here.
3837
3838 2011-05-08  Bruno Haible  <bruno@clisp.org>
3839
3840         getpass-gnu: Move AC_LIBOBJ invocations to module description.
3841         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
3842         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
3843         * modules/getpass-gnu (configure.ac): ... to here.
3844
3845 2011-05-08  Bruno Haible  <bruno@clisp.org>
3846
3847         getpass: Move AC_LIBOBJ invocations to module description.
3848         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
3849         gl_PREREQ_GETPASS invocations from here...
3850         * modules/getpass (configure.ac): ... to here.
3851
3852 2011-05-08  Bruno Haible  <bruno@clisp.org>
3853
3854         getpagesize: Move AC_LIBOBJ invocations to module description.
3855         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
3856         from here...
3857         * modules/getpagesize (configure.ac): ... to here.
3858
3859 2011-05-08  Bruno Haible  <bruno@clisp.org>
3860
3861         getopt: Move AC_LIBOBJ invocations to module description.
3862         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
3863         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
3864         invocations from here...
3865         * modules/getopt-gnu (configure.ac): ... to here.
3866         * modules/getopt-posix (configure.ac): ... and here.
3867         (Depends-on): Update condition.
3868
3869 2011-05-08  Bruno Haible  <bruno@clisp.org>
3870
3871         getopt, argp: Respect rules for use of AC_LIBOBJ.
3872         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
3873         (gl_REPLACE_GETOPT_ALWAYS): New macro.
3874         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
3875         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
3876
3877 2011-05-08  Bruno Haible  <bruno@clisp.org>
3878
3879         getlogin_r: Move AC_LIBOBJ invocations to module description.
3880         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
3881         gl_PREREQ_GETLOGIN_R invocations from here...
3882         * modules/getlogin_r (configure.ac): ... to here.
3883
3884 2011-05-08  Bruno Haible  <bruno@clisp.org>
3885
3886         getlogin: Move AC_LIBOBJ invocations to module description.
3887         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
3888         here...
3889         * modules/getlogin (configure.ac): ... to here.
3890
3891 2011-05-08  Bruno Haible  <bruno@clisp.org>
3892
3893         getloadavg: Move AC_LIBOBJ invocations to module description.
3894         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
3895         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
3896         * modules/getloadavg (configure.ac): ... to here.
3897
3898 2011-05-08  Bruno Haible  <bruno@clisp.org>
3899
3900         gethrxtime: Move AC_LIBOBJ invocations to module description.
3901         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
3902         LIB_GETHRXTIME from here...
3903         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
3904         invocations from here...
3905         * modules/gethrxtime (configure.ac): ... to here.
3906
3907 2011-05-08  Bruno Haible  <bruno@clisp.org>
3908
3909         gethostname: Move AC_LIBOBJ invocations to module description.
3910         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
3911         gl_PREREQ_GETHOSTNAME invocations from here...
3912         * modules/gethostname (configure.ac): ... to here.
3913
3914 2011-05-08  Bruno Haible  <bruno@clisp.org>
3915
3916         getgroups: Move AC_LIBOBJ invocations to module description.
3917         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
3918         here...
3919         * modules/getgroups (configure.ac): ... to here.
3920
3921 2011-05-08  Bruno Haible  <bruno@clisp.org>
3922
3923         getdtablesize: Move AC_LIBOBJ invocations to module description.
3924         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
3925         invocation from here...
3926         * modules/getdtablesize (configure.ac): ... to here.
3927
3928 2011-05-08  Bruno Haible  <bruno@clisp.org>
3929
3930         getdomainname: Move AC_LIBOBJ invocations to module description.
3931         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
3932         gl_PREREQ_GETDOMAINNAME invocations from here...
3933         * modules/getdomainname (configure.ac): ... to here.
3934
3935 2011-05-08  Bruno Haible  <bruno@clisp.org>
3936
3937         getline: Move AC_LIBOBJ invocations to module description.
3938         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
3939         invocations from here...
3940         * modules/getline (configure.ac): ... to here.
3941
3942 2011-05-08  Bruno Haible  <bruno@clisp.org>
3943
3944         getline: Simplify.
3945         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
3946         It's already handled through the module dependency.
3947
3948 2011-05-08  Bruno Haible  <bruno@clisp.org>
3949
3950         getdelim: Move AC_LIBOBJ invocations to module description.
3951         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
3952         and gl_PREREQ_GETDELIM invocations from here...
3953         * modules/getdelim (configure.ac): ... to here.
3954         (Depends-on): Fix condition.
3955
3956 2011-05-08  Bruno Haible  <bruno@clisp.org>
3957
3958         getcwd: Move AC_LIBOBJ invocations to module description.
3959         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
3960         invocations from here...
3961         * modules/getcwd (configure.ac): ... to here.
3962
3963 2011-05-08  Bruno Haible  <bruno@clisp.org>
3964
3965         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
3966         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
3967         here...
3968         * modules/getcwd-lgpl (configure.ac): ... to here.
3969
3970 2011-05-07  Bruno Haible  <bruno@clisp.org>
3971
3972         crypto/gc: Move AC_LIBOBJ invocations to module description.
3973         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
3974         * modules/crypto/gc (configure.ac): ... to here.
3975
3976 2011-05-07  Bruno Haible  <bruno@clisp.org>
3977
3978         fwriting: Move AC_LIBOBJ invocations to module description.
3979         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
3980         here...
3981         * modules/fwriting (configure.ac): ... to here.
3982
3983 2011-05-07  Bruno Haible  <bruno@clisp.org>
3984
3985         fwritable: Move AC_LIBOBJ invocations to module description.
3986         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
3987         here...
3988         * modules/fwritable (configure.ac): ... to here.
3989
3990 2011-05-07  Bruno Haible  <bruno@clisp.org>
3991
3992         futimens: Move AC_LIBOBJ invocations to module description.
3993         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
3994         here...
3995         * modules/futimens (configure.ac): ... to here.
3996
3997 2011-05-07  Bruno Haible  <bruno@clisp.org>
3998
3999         ftruncate: Move AC_LIBOBJ invocations to module description.
4000         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
4001         gl_PREREQ_FTRUNCATE invocations from here...
4002         * modules/ftruncate (configure.ac): ... to here.
4003
4004 2011-05-07  Bruno Haible  <bruno@clisp.org>
4005
4006         fsync: Move AC_LIBOBJ invocations to module description.
4007         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
4008         invocations from here...
4009         * modules/fsync (configure.ac): ... to here.
4010
4011 2011-05-07  Bruno Haible  <bruno@clisp.org>
4012
4013         fsusage: Move AC_LIBOBJ invocations to module description.
4014         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
4015         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
4016         * modules/fsusage (configure.ac): ... to here.
4017
4018 2011-05-07  Bruno Haible  <bruno@clisp.org>
4019
4020         freopen: Move AC_LIBOBJ invocations to module description.
4021         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
4022         invocations from here...
4023         * modules/freopen (configure.ac): ... to here.
4024
4025 2011-05-07  Bruno Haible  <bruno@clisp.org>
4026
4027         free: Move AC_LIBOBJ invocations to module description.
4028         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
4029         invocations from here...
4030         * modules/free (configure.ac): ... to here.
4031
4032 2011-05-07  Bruno Haible  <bruno@clisp.org>
4033
4034         freadable: Move AC_LIBOBJ invocations to module description.
4035         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
4036         here...
4037         * modules/freadable (configure.ac): ... to here.
4038
4039 2011-05-07  Bruno Haible  <bruno@clisp.org>
4040
4041         fpurge: Move AC_LIBOBJ invocations to module description.
4042         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
4043         invocations from here...
4044         * modules/fpurge (configure.ac): ... to here.
4045
4046 2011-05-07  Bruno Haible  <bruno@clisp.org>
4047
4048         fpending: Move AC_LIBOBJ invocations to module description.
4049         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
4050         gl_FUNC_FPENDING.
4051         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
4052         invocations from here...
4053         * modules/fpending (configure.ac): ... to here.
4054
4055 2011-05-07  Bruno Haible  <bruno@clisp.org>
4056
4057         fopen: Move AC_LIBOBJ invocations to module description.
4058         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
4059         invocations from here...
4060         * modules/fopen (configure.ac): ... to here.
4061
4062 2011-05-07  Bruno Haible  <bruno@clisp.org>
4063
4064         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
4065         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
4066         gl_FUNC_FNMATCH_POSIX.
4067         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
4068         invocations from here...
4069         * modules/fnmatch (configure.ac): ... to here.
4070         * modules/fnmatch-gnu (configure.ac): ... and here.
4071
4072 2011-05-07  Bruno Haible  <bruno@clisp.org>
4073
4074         flock: Move AC_LIBOBJ invocations to module description.
4075         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
4076         invocations from here...
4077         * modules/flock (configure.ac): ... to here.
4078
4079 2011-05-07  Bruno Haible  <bruno@clisp.org>
4080
4081         fileblocks: Move AC_LIBOBJ invocations to module description.
4082         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
4083         gl_PREREQ_FILEBLOCKS invocations from here...
4084         * modules/fileblocks (configure.ac): ... to here.
4085
4086 2011-05-06  Bruno Haible  <bruno@clisp.org>
4087
4088         fflush: Move AC_LIBOBJ invocations to module description.
4089         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
4090         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
4091         invocations from here...
4092         * modules/fflush (configure.ac): ... to here.
4093
4094 2011-05-06  Bruno Haible  <bruno@clisp.org>
4095
4096         fdopendir: Move AC_LIBOBJ invocations to module description.
4097         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
4098         here...
4099         * modules/fdopendir (configure.ac): ... to here.
4100         (Depends-on): Improve conditions.
4101
4102 2011-05-06  Bruno Haible  <bruno@clisp.org>
4103
4104         _Exit: Move AC_LIBOBJ invocations to module description.
4105         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
4106         invocations from here...
4107         * modules/_Exit (configure.ac): ... to here.
4108
4109 2011-05-21  Bruno Haible  <bruno@clisp.org>
4110
4111         euidaccess: Respect rules for use of AC_LIBOBJ.
4112         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
4113         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
4114         from here...
4115         * modules/euidaccess (configure.ac): ... to here.
4116
4117 2011-05-06  Bruno Haible  <bruno@clisp.org>
4118
4119         error: Move AC_LIBOBJ invocations to module description.
4120         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
4121         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
4122         invocations from here...
4123         * modules/error (configure.ac): ... to here.
4124
4125 2011-05-06  Bruno Haible  <bruno@clisp.org>
4126
4127         duplocale: Move AC_LIBOBJ invocations to module description.
4128         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
4129         gl_PREREQ_DUPLOCALE invocations from here...
4130         * modules/duplocale (configure.ac): ... to here.
4131
4132 2011-05-05  Bruno Haible  <bruno@clisp.org>
4133
4134         dirfd: Move AC_LIBOBJ invocations to module description.
4135         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
4136         gl_FUNC_DIRFD.
4137         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
4138         here...
4139         * modules/dirfd (configure.ac): ... to here.
4140         (Depends-on): Fix condition.
4141
4142 2011-05-05  Bruno Haible  <bruno@clisp.org>
4143
4144         chown: Respect rules for use of AC_LIBOBJ.
4145         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
4146         * modules/chown (configure.ac): ... to here.
4147
4148 2011-05-05  Bruno Haible  <bruno@clisp.org>
4149
4150         chdir-long: Move AC_LIBOBJ invocations to module description.
4151         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
4152         gl_PREREQ_CHDIR_LONG invocations from here...
4153         * modules/chdir-long (configure.ac): ... to here.
4154
4155 2011-05-05  Bruno Haible  <bruno@clisp.org>
4156
4157         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
4158         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
4159         from here...
4160         * modules/canonicalize-lgpl (configure.ac): ... to here.
4161
4162 2011-05-05  Bruno Haible  <bruno@clisp.org>
4163
4164         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
4165         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
4166         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
4167         REPLACE_CALLOC.
4168         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
4169         * modules/calloc-gnu (configure.ac): Likewise.
4170
4171 2011-05-05  Bruno Haible  <bruno@clisp.org>
4172
4173         btowc: Move AC_LIBOBJ invocations to module description.
4174         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
4175         invocations from here...
4176         * modules/btowc (configure.ac): ... to here.
4177
4178 2011-05-21  Bruno Haible  <bruno@clisp.org>
4179
4180         atexit: Move AC_LIBOBJ invocations to module description.
4181         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
4182         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
4183         here...
4184         * modules/atexit (configure.ac): ... to here.
4185
4186 2011-05-05  Bruno Haible  <bruno@clisp.org>
4187
4188         atoll: Move AC_LIBOBJ invocations to module description.
4189         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
4190         invocations from here...
4191         * modules/atoll (configure.ac): ... to here.
4192
4193 2011-05-05  Bruno Haible  <bruno@clisp.org>
4194
4195         argz: Move AC_LIBOBJ invocations to module description.
4196         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
4197         * modules/argz (configure.ac): ... to here.
4198
4199 2011-05-05  Bruno Haible  <bruno@clisp.org>
4200
4201         alphasort: Move AC_LIBOBJ invocations to module description.
4202         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
4203         gl_PREREQ_ALPHASORT invocations from here...
4204         * modules/alphasort (configure.ac): ... to here.
4205
4206 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
4207
4208         verify: new macro verify_expr; verify_true deprecated
4209         * NEWS: Mention this.
4210         * doc/verify.texi (Compile-time Assertions): Document this.
4211         * lib/verify.h (verify_true): Deprecate.
4212         (verify_expr): New macro.
4213         * tests/test-verify.c (function): Test verify_expr.
4214
4215 2011-06-14  Jim Meyering  <meyering@redhat.com>
4216
4217         init.sh: give more portable redirection-related advice in a comment
4218         * tests/init.sh (stderr_fileno_): Update the advice in comments.
4219         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
4220         for lots of discussion.  Stefano Lattarini suggested the solution
4221         of putting "9>&2" after the command.  Reported by Bruno Haible.
4222
4223 2011-06-13  Bruno Haible  <bruno@clisp.org>
4224
4225         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
4226         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
4227         'none'.
4228
4229 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
4230
4231         ftoastr: use strtof only if HAVE_STRTOF
4232         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
4233         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
4234         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
4235         * modules/ftoastr (configure.ac): Check for strtof.
4236
4237 2011-06-13  Bruno Haible  <bruno@clisp.org>
4238
4239         gnulib-tool: Addendum to 2011-06-08 commit.
4240         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
4241         and --witness-c-macro have been given, augment AM_CPPFLAGS.
4242
4243 2011-06-13  Bruno Haible  <bruno@clisp.org>
4244
4245         fseeko: Provide a non-inline replacement of fseek().
4246         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
4247         * modules/fseeko (Depends-on): Add fseek.
4248         * modules/fseek (License): Change to LGPLv2+.
4249
4250 2011-06-13  Bruno Haible  <bruno@clisp.org>
4251
4252         ftello: Provide a non-inline replacement of ftell().
4253         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
4254         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
4255         not have ftello() (such as on mingw).
4256         * modules/ftello (Depends-on): Add ftell.
4257         * modules/ftell (License): Change to LGPLv2+.
4258
4259 2011-05-07  Bruno Haible  <bruno@clisp.org>
4260
4261         ftell: Move AC_LIBOBJ invocations to module description.
4262         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
4263         * modules/ftell (configure.ac): ... to here.
4264
4265 2011-05-07  Bruno Haible  <bruno@clisp.org>
4266
4267         ftello: Respect rules for use of AC_LIBOBJ.
4268         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
4269         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
4270         here...
4271         * modules/ftello (configure.ac): ... to here.
4272
4273 2011-05-07  Bruno Haible  <bruno@clisp.org>
4274
4275         fseeko: Simplify.
4276         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
4277         (gl_FUNC_FSEEKO): Inline it here.
4278
4279 2011-05-07  Bruno Haible  <bruno@clisp.org>
4280
4281         fseek: Move AC_LIBOBJ invocations to module description.
4282         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
4283         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
4284         * modules/fseek (configure.ac): ... to here.
4285
4286 2011-05-07  Bruno Haible  <bruno@clisp.org>
4287
4288         fseek: Respect rules for use of AC_LIBOBJ.
4289         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
4290         here...
4291         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
4292
4293 2011-05-07  Bruno Haible  <bruno@clisp.org>
4294
4295         fseeko: Respect rules for use of AC_LIBOBJ.
4296         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
4297         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
4298         here...
4299         * modules/fseeko (configure.ac): ... to here.
4300
4301 2011-06-13  Bruno Haible  <bruno@clisp.org>
4302
4303         gnulib-tool: Allow comments in the 'Depends-on' section.
4304         * doc/gnulib.texi (Module description): Mention comment syntax in the
4305         Depends-on section.
4306         * gnulib-tool (func_get_dependencies): Filter out comment lines.
4307
4308 2011-06-13  Bruno Haible  <bruno@clisp.org>
4309
4310         file-set.h: guard __attibute__ use, now that it's not always defined
4311         * lib/file-set.h (record_file): Use __attribute__ only with compiler
4312         versions that support it.  This fixes a coreutils build failure with
4313         the vendor cc on HP-UX 11.31.
4314
4315 2011-06-12  Bruno Haible  <bruno@clisp.org>
4316
4317         acl: Add support for HP-UX >= 11.11 JFS ACLs.
4318         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
4319         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
4320         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
4321         (acl, aclsort): New declarations.
4322         (aclv_nontrivial): New declaration.
4323         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
4324         (file_has_acl): Read also the second kind of HP-UX ACLs.
4325         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
4326         kind of HP-UX ACLs if the first kind fails.
4327         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
4328         second kind of HP-UX ACLs.
4329         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
4330         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
4331         agree.
4332         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
4333         hpuxjfs.
4334         Handle hpuxjfs.
4335         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
4336         hpuxjfs.
4337         Handle hpuxjfs.
4338         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
4339         (func_test_same_acls): Use both lsacl and getacl.
4340         Handle hpuxjfs.
4341         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
4342         (func_test_same_acls): Use both lsacl and getacl.
4343         Handle hpuxjfs.
4344
4345 2011-06-12  Bruno Haible  <bruno@clisp.org>
4346
4347         acl: Complete the 2010-08-10 fix.
4348         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
4349         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
4350         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
4351         explicitly.
4352         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
4353         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
4354
4355 2011-06-12  Bruno Haible  <bruno@clisp.org>
4356
4357         spawn-pipe tests: Comments.
4358         * tests/test-spawn-pipe-child.c (main): Update comment.
4359         Reported by James Youngman <jay@gnu.org>.
4360
4361 2011-06-11  James Youngman  <jay@gnu.org>
4362
4363         New module 'stat-size'.
4364         * modules/stat-size: New module.  Provides macros for accessing
4365         file size information in instances of struct stat.  Depends on the
4366         fileblocks module because it calls st_blocks.
4367         * lib/stat-size.h: New file, adapted from coreutils' system.h.
4368         * doc/gnulib.texi: Include stat-size.texi.
4369         * doc/stat-size.texi: Documentation for this module.
4370         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
4371         * m4/fileblocks.m4: Mention that stat-size depends on the call to
4372         AC_STRUCT_ST_BLOCKS.
4373
4374 2011-06-09  Bruno Haible  <bruno@clisp.org>
4375
4376         thread: Support pthreads-win32.
4377         * lib/glthread/thread.h (gl_thread_self): Define differently on
4378         pthreads-win32.
4379         (gl_null_thread): New declaration.
4380         (gl_thread_self_pointer): New macro.
4381         * lib/glthread/thread.c (gl_null_thread): New constant.
4382         * tests/test-lock.c: Use gl_thread_self_pointer instead of
4383         gl_thread_self.
4384         * tests/test-tls.c: Likewise.
4385         Suggested by Paul Eggert. Reported by Eric Blake.
4386
4387 2011-06-09  Bruno Haible  <bruno@clisp.org>
4388
4389         thread: Fix confusion between NULL and 0.
4390         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
4391         Reported by Paul Eggert.
4392
4393 2011-06-09  Bruno Haible  <bruno@clisp.org>
4394
4395         spawn-pipe tests: Avoid test failure on HP-UX 11.
4396         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
4397         is closed.
4398
4399 2011-06-09  Bruno Haible  <bruno@clisp.org>
4400
4401         acl tests: Fix compilation error on HP-UX 11.
4402         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
4403
4404 2011-06-09  Bruno Haible  <bruno@clisp.org>
4405
4406         rmdir: Avoid test failure on HP-UX 10.20.
4407         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
4408         EEXIST.
4409
4410 2011-06-08  Eric Blake  <eblake@redhat.com>
4411
4412         perror: fix test on mingw
4413         * modules/perror-tests (Depends-on): Add dup2.
4414
4415         strerror_r-posix: fix on MacOS
4416         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
4417         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
4418         logic bug.
4419         * lib/strerror_r.c (strerror_r): Fix the bug.
4420         * lib/strerror.c (strerror): Likewise.
4421         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
4422         problem.
4423         * doc/posix-functions/strerror.texi (strerror): Likewise.
4424         * doc/posix-functions/perror.texi (perror): Likewise.
4425         * tests/test-strerror.c (main): Enhance test.
4426         * tests/test-strerror_r.c (main): Likewise.
4427
4428 2011-06-08  Bruno Haible  <bruno@clisp.org>
4429
4430         gnulib-tool: Better isolation between different gnulib-tool invocations.
4431         * gnulib-tool: New option --witness-c-macro.
4432         (witness_c_macro): New variable.
4433         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
4434         AM_CPPFLAGS define it as a C macro.
4435         (func_emit_tests_Makefile_am): Likewise.
4436         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
4437         read it from there.
4438         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
4439         m4_define, not AC_DEFUN.
4440         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
4441         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
4442         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
4443         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
4444         s|...|...|, to substitute the values of the GNULIB_* module indicator
4445         variables.
4446         * modules/dirent (Makefile.am): Likewise.
4447         * modules/fcntl-h (Makefile.am): Likewise.
4448         * modules/iconv-h (Makefile.am): Likewise.
4449         * modules/langinfo (Makefile.am): Likewise.
4450         * modules/locale (Makefile.am): Likewise.
4451         * modules/math (Makefile.am): Likewise.
4452         * modules/netdb (Makefile.am): Likewise.
4453         * modules/poll-h (Makefile.am): Likewise.
4454         * modules/pty (Makefile.am): Likewise.
4455         * modules/search (Makefile.am): Likewise.
4456         * modules/signal (Makefile.am): Likewise.
4457         * modules/spawn (Makefile.am): Likewise.
4458         * modules/stdio (Makefile.am): Likewise.
4459         * modules/stdlib (Makefile.am): Likewise.
4460         * modules/string (Makefile.am): Likewise.
4461         * modules/sys_ioctl (Makefile.am): Likewise.
4462         * modules/sys_select (Makefile.am): Likewise.
4463         * modules/sys_socket (Makefile.am): Likewise.
4464         * modules/sys_stat (Makefile.am): Likewise.
4465         * modules/sys_times (Makefile.am): Likewise.
4466         * modules/sys_utsname (Makefile.am): Likewise.
4467         * modules/sys_wait (Makefile.am): Likewise.
4468         * modules/termios (Makefile.am): Likewise.
4469         * modules/time (Makefile.am): Likewise.
4470         * modules/unistd (Makefile.am): Likewise.
4471         * modules/wchar (Makefile.am): Likewise.
4472
4473 2011-06-08  Eric Blake  <eblake@redhat.com>
4474
4475         strerror: simplify replacement
4476         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
4477         * modules/strerror (configure.ac): No prereqs needed here...
4478         * modules/strerror-override (configure.ac): ...but this needs it.
4479         (Files): Add file for needed prereq macro.
4480
4481 2011-06-08  Bruno Haible  <bruno@clisp.org>
4482
4483         strerror_r-posix: Tweaks.
4484         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
4485         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
4486         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
4487         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
4488         (gl_FUNC_STRERROR_R): ... to here.
4489         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
4490
4491 2011-06-07  Eric Blake  <eblake@redhat.com>
4492
4493         perror: document fixed bugs
4494         * doc/posix-functions/perror.texi (perror): Document recent
4495         patches.
4496
4497 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
4498
4499         stat-time: get_stat_birthtime failure is better-defined
4500         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
4501         return a timestamp whose tv_sec and tv_nsec values are both -1.
4502         Previously, the spec said only that the tv_nsec value was negative.
4503         This upward-compatible change simplifies GNU tar a bit.
4504
4505 2011-06-07  Eric Blake  <eblake@redhat.com>
4506
4507         strerror_r-posix: work around cygwin 1.7.9
4508         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
4509         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
4510         bug without replacing strerror_r.
4511         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
4512         strerror_r is buggy, but without requiring strerror_r compilation.
4513         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
4514
4515         test-perror: relax test to ignore cygwin bug
4516         * tests/test-perror2.c (main): Relax test on requiring detection
4517         of stream errors, and use unbuffered stream.
4518         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
4519         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
4520         * doc/posix-functions/fputc.texi (fputc): Likewise.
4521         * doc/posix-functions/fputs.texi (fputs): Likewise.
4522         * doc/posix-functions/fputws.texi (fputws): Likewise.
4523         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
4524         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
4525         * doc/posix-functions/getopt.texi (getopt): Likewise.
4526         * doc/posix-functions/perror.texi (perror): Likewise.
4527         * doc/posix-functions/printf.texi (printf): Likewise.
4528         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
4529         * doc/posix-functions/psignal.texi (psignal): Likewise.
4530         * doc/posix-functions/putc.texi (putc): Likewise.
4531         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
4532         Likewise.
4533         * doc/posix-functions/putchar.texi (putchar): Likewise.
4534         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
4535         Likewise.
4536         * doc/posix-functions/puts.texi (puts): Likewise.
4537         * doc/posix-functions/putwc.texi (putwc): Likewise.
4538         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
4539         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
4540         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
4541         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
4542         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
4543         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
4544         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
4545         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
4546
4547 2011-05-22  Bruno Haible  <bruno@clisp.org>
4548
4549         strerror: Move AC_LIBOBJ invocations to module description.
4550         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
4551         gl_PREREQ_STRERROR invocations from here...
4552         * modules/strerror (configure.ac): ... to here.
4553
4554 2011-05-21  Bruno Haible  <bruno@clisp.org>
4555
4556         perror: Use common idiom.
4557         * modules/perror (configure.ac): Reorder statements.
4558
4559 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
4560
4561         tests: fix usage message in 'mktempd_'
4562         * tests/init.sh (mktempd_): In the usage message, use literal
4563         'mktempd_', not '$ME' (which is even undefined), as the name of
4564         the subroutine.
4565
4566 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
4567
4568         tests init: new function 'fatal_', for hard errors
4569         Before this patch, the only way offered by tests/init.sh to
4570         properly signal a hard error was the `framework_failure_'
4571         function.  But the error message issued by that function,
4572         as its name would suggest, refers to a set-up failure in the
4573         testsuite, while hard errors can obviously also be due to
4574         other reasons.  The best way to fix this inconsistency is to
4575         introduce a new function with a more general error message.
4576         * tests/init.sh (fatal_): New function.
4577
4578 2011-06-06  Eric Blake  <eblake@redhat.com>
4579
4580         canonicalize-lgpl: use common idiom
4581         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
4582         over newer POSIX -Rf.
4583         Reported by Bruno Haible.
4584
4585         canonicalize-lgpl: work around AIX realpath bug
4586         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
4587         * doc/posix-functions/realpath.texi (realpath): Document it.
4588         Reported by Bruno Haible.
4589
4590         strerror: work around FreeBSD bug
4591         * lib/strerror.c (strerror): Special case 0.
4592         Reported by Bruno Haible.
4593
4594         strerror-override: avoid bloating errno module
4595         * modules/errno (Files, configure.ac): Move replacement strings...
4596         * modules/strerror-override: ...to new module.
4597         * modules/strerror (Depends-on): Add strerror-override.
4598         * modules/strerror_r-posix (Depends-on): Likewise.
4599         * MODULES.html.sh: Document new module.
4600         Reported by Bruno Haible.
4601
4602 2011-06-06  Bruno Haible  <bruno@clisp.org>
4603
4604         spawn-pipe tests: Rename program.
4605         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
4606         * tests/test-spawn-pipe-child.c: Update comment.
4607         * tests/test-spawn-pipe.sh: Update.
4608         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
4609
4610         spawn-pipe tests: Link the child program only against libc.
4611         * tests/test-spawn-pipe-child.c: New file, extracted from
4612         tests/test-spawn-pipe.c.
4613         (main): Expect only one argument.
4614         (is_open): New function, copied from tests/test-pipe.c.
4615         * tests/test-spawn-pipe.c: Don't include <errno.h>.
4616         (child_main): Remove function.
4617         (test_pipe): Pass only one argument to the child program.
4618         (main): Remove child process code. Expect the child program's name as
4619         first argument.
4620         * tests/test-spawn-pipe.sh: Pass the child program's name as first
4621         argument.
4622         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
4623         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
4624         test-spawn-pipe-child against no libraries.
4625
4626 2011-06-06  Bruno Haible  <bruno@clisp.org>
4627
4628         careadlinkat: Avoid mismatch between ssize_t and int.
4629         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
4630         * lib/careadlinkat.c (careadlinkatcwd): Define always.
4631
4632 2011-06-06  Jim Meyering  <meyering@redhat.com>
4633
4634         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
4635         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
4636         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
4637
4638 2011-06-05  Bruno Haible  <bruno@clisp.org>
4639
4640         ansi-c++-opt: Interoperability with libtool.
4641         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
4642         set the variable to "no", not to ":".
4643         * NEWS: Mention the change.
4644
4645 2011-06-05  Bruno Haible  <bruno@clisp.org>
4646
4647         acl: Fix test failure on AIX 7.
4648         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
4649         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
4650
4651 2011-06-05  Bruno Haible  <bruno@clisp.org>
4652
4653         pipe-filter-ii: Fix test failure on AIX and IRIX.
4654         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
4655         with EAGAIN, retry with a smaller buffer size.
4656
4657 2011-06-05  Bruno Haible  <bruno@clisp.org>
4658
4659         localename: Fix link dependencies.
4660         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
4661         * modules/localename-tests (Makefile.am): Link test-localename with
4662         $(LIBTHREAD).
4663
4664 2011-06-05  Bruno Haible  <bruno@clisp.org>
4665
4666         error: Avoid gcc warning.
4667         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
4668
4669 2011-06-05  Bruno Haible  <bruno@clisp.org>
4670
4671         unsetenv: Avoid gcc warning.
4672         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
4673
4674 2011-06-05  Bruno Haible  <bruno@clisp.org>
4675
4676         setenv: Avoid gcc warning.
4677         * lib/setenv.c (setenv): Provide declaration if system lacks it.
4678
4679 2011-06-05  Bruno Haible  <bruno@clisp.org>
4680
4681         sys_select: Ensure memset is declared also on AIX 7.
4682         * lib/sys_select.in.h: Include <string.h> also on AIX.
4683         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
4684         self-contained also on AIX 7.1.
4685
4686 2011-06-04  Jim Meyering  <meyering@redhat.com>
4687
4688         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
4689         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
4690         function name, "error".
4691         (_gl_translatable_diag_func_re): New configurable variable.
4692
4693 2011-06-04  Bruno Haible  <bruno@clisp.org>
4694
4695         getopt: Avoid gcc warning.
4696         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
4697
4698 2011-06-04  Bruno Haible  <bruno@clisp.org>
4699
4700         strerror_r: Fix comments.
4701         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
4702         commit.
4703
4704 2011-06-04  Bruno Haible  <bruno@clisp.org>
4705
4706         perror: Fix compilation error.
4707         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
4708         Undefine fprintf, not sprintf.
4709         * modules/perror (Depends-on): Remove intprops, verify.
4710
4711 2011-06-04  Bruno Haible  <bruno@clisp.org>
4712
4713         setlocale: Enable replacement on Cygwin 1.5.
4714         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
4715         Cygwin 1.5.x.
4716         * doc/posix-functions/setlocale.texi: Mention that the problem with the
4717         LC_CTYPE category also exists on Cygwin 1.5.x.
4718
4719 2011-06-04  Bruno Haible  <bruno@clisp.org>
4720
4721         strerror-override: Don't disable symbol renamings.
4722         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
4723         * lib/strerror-override.c: Include config.h.
4724         (strerror_override): Don't undefine.
4725
4726 2011-06-03  Bruno Haible  <bruno@clisp.org>
4727
4728         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
4729         * lib/localename.h: Update copyright header.
4730         * lib/localename.c: Likewise.
4731         * lib/relocatable.h: Likewise.
4732         * lib/relocatable.c: Likewise.
4733
4734 2011-06-02  Bruno Haible  <bruno@clisp.org>
4735
4736         doc: Fix a module name.
4737         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
4738
4739 2011-06-02  Bruno Haible  <bruno@clisp.org>
4740
4741         pipe2: Remove dependency on 'nonblocking' module.
4742         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
4743         O_NONBLOCK is defined by gnulib.
4744         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
4745         is zero.
4746         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
4747         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
4748         defined by gnulib.
4749         (get_nonblocking_flag): New function.
4750         (main): Test O_NONBLOCK flag only if it is nonzero.
4751         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
4752
4753 2011-06-03  Jim Meyering  <meyering@redhat.com>
4754
4755         maint: three new prohibit-header-without-use rules
4756         Prohibit use of cloexec.h, posixver.h, same.h without use.
4757         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
4758         (sc_prohibit_posixver_without_use): Likewise.
4759         (sc_prohibit_same_without_use): Likewise.
4760
4761 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
4762
4763         allocator: 'die' routine is now given requested size
4764         * lib/allocator.h (struct allocator.die): New size arg.
4765         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
4766         If the actual problem is an ssize_t limitation, not a size_t or
4767         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
4768
4769 2011-06-01  Eric Blake  <eblake@redhat.com>
4770
4771         strerror: drop strerror_r dependency
4772         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
4773         * lib/strerror-override.c (strerror_override): ...to new file.
4774         * lib/strerror-override.h: Add prototype.
4775         * lib/strerror-impl.h: Delete.
4776         * lib/strerror.c (strerror): New implementation.
4777         * modules/errno (Files): Add new files.
4778         (configure.ac): Compile new file as appropriate.
4779         * modules/strerror (Files): Drop unused file.
4780         (Depends-on): Drop strerror_r-posix.
4781         * MODULES.html.sh: Document strerror_r-posix.
4782         Requested by Sam Steingold.
4783
4784         perror: call strerror_r directly
4785         * modules/perror (Files): Drop strerror-impl.h.
4786         * lib/perror.c (perror): Use our own stack buffer, rather than
4787         calling a wrapper that uses static storage.
4788         * doc/posix-functions/perror.texi (perror): Document a limitation
4789         of our replacement.
4790
4791         strerror_r: fix includes for FreeBSD
4792         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
4793         since we use abort on some platforms.
4794         Reported by Matthias Bolte.
4795
4796 2011-05-31  Bruno Haible  <bruno@clisp.org>
4797
4798         Fix link errors in tests: openat-die uses gettext-h.
4799         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
4800         against $(LIBINTL).
4801         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
4802         against $(LIBINTL).
4803         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
4804         $(LIBINTL).
4805         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
4806         against $(LIBINTL).
4807         * modules/linkat-tests (Makefile.am): Link test-linkat against
4808         $(LIBINTL).
4809         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
4810         $(LIBINTL).
4811         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
4812         against $(LIBINTL).
4813         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
4814         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
4815         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
4816         $(LIBINTL).
4817         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
4818         $(LIBINTL).
4819         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
4820         $(LIBINTL).
4821         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
4822
4823 2011-05-31  Bruno Haible  <bruno@clisp.org>
4824
4825         Fix link errors in tests: wait-process uses gettext-h.
4826         * modules/nonblocking-pipe-tests (Makefile.am): Set
4827         test_nonblocking_pipe_main_LDADD.
4828         * modules/nonblocking-socket-tests (Makefile.am): Link
4829         test-nonblocking-socket-main against $(LIBINTL).
4830         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
4831
4832 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
4833
4834         assert-h: work around 'verify' incompatibility
4835         * lib/verify.h: Use @...@ directives, not ifdef.
4836         * modules/assert-h (assert.h): Implement the directives.
4837         (assert.h): Substitute the symbol-prefix more consistently.
4838
4839 2011-05-29  Jim Meyering  <meyering@redhat.com>
4840
4841         trim: remove three superfluous assignments
4842         * lib/trim.c (trim2): Remove three superfluous assignments
4843         and correct brace positioning.
4844
4845 2011-05-29  Bruno Haible  <bruno@clisp.org>
4846
4847         wctype-h: Avoid namespace pollution on Solaris 2.6.
4848         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
4849         identifiers.
4850         * doc/posix-headers/wctype.texi: Mention the problem.
4851         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
4852
4853 2011-05-28  Jim Meyering  <meyering@redhat.com>
4854
4855         parse-datetime.y: accommodate -Wstrict-overflow
4856         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
4857         placate -Wstrict-overflow.
4858
4859         trim: avoid a warning from -O2 -Wstrict-overflow
4860         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
4861
4862 2011-05-29  Bruno Haible  <bruno@clisp.org>
4863
4864         gnulib-tool: Fix bug in yesterday's commit.
4865         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
4866         twice.
4867
4868 2011-05-29  Bruno Haible  <bruno@clisp.org>
4869
4870         Allow multiple gnulib generated include files to be combined.
4871         * gnulib-tool (func_compute_include_guard_prefix): New function.
4872         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
4873         ${gl_include_guard_prefix} references.
4874         (func_import, func_create_testdir): Invoke
4875         func_compute_include_guard_prefix.
4876         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
4877         * lib/ctype.in.h: Likewise.
4878         * lib/dirent.in.h: Likewise.
4879         * lib/errno.in.h: Likewise.
4880         * lib/fcntl.in.h: Likewise.
4881         * lib/float.in.h: Likewise.
4882         * lib/getopt.in.h: Likewise.
4883         * lib/iconv.in.h: Likewise.
4884         * lib/langinfo.in.h: Likewise.
4885         * lib/locale.in.h: Likewise.
4886         * lib/math.in.h: Likewise.
4887         * lib/netdb.in.h: Likewise.
4888         * lib/netinet_in.in.h: Likewise.
4889         * lib/poll.in.h: Likewise.
4890         * lib/pthread.in.h: Likewise.
4891         * lib/pty.in.h: Likewise.
4892         * lib/sched.in.h: Likewise.
4893         * lib/se-selinux.in.h: Likewise.
4894         * lib/search.in.h: Likewise.
4895         * lib/signal.in.h: Likewise.
4896         * lib/spawn.in.h: Likewise.
4897         * lib/stdarg.in.h: Likewise.
4898         * lib/stddef.in.h: Likewise.
4899         * lib/stdint.in.h: Likewise.
4900         * lib/stdio.in.h: Likewise.
4901         * lib/stdlib.in.h: Likewise.
4902         * lib/string.in.h: Likewise.
4903         * lib/strings.in.h: Likewise.
4904         * lib/sys_file.in.h: Likewise.
4905         * lib/sys_ioctl.in.h: Likewise.
4906         * lib/sys_select.in.h: Likewise.
4907         * lib/sys_socket.in.h: Likewise.
4908         * lib/sys_stat.in.h: Likewise.
4909         * lib/sys_time.in.h: Likewise.
4910         * lib/sys_times.in.h: Likewise.
4911         * lib/sys_uio.in.h: Likewise.
4912         * lib/sys_utsname.in.h: Likewise.
4913         * lib/sys_wait.in.h: Likewise.
4914         * lib/sysexits.in.h: Likewise.
4915         * lib/termios.in.h: Likewise.
4916         * lib/time.in.h: Likewise.
4917         * lib/unistd.in.h: Likewise.
4918         * lib/wchar.in.h: Likewise.
4919         * lib/wctype.in.h: Likewise.
4920         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
4921         * modules/ctype (Makefile.am): Likewise.
4922         * modules/dirent (Makefile.am): Likewise.
4923         * modules/errno (Makefile.am): Likewise.
4924         * modules/fcntl-h (Makefile.am): Likewise.
4925         * modules/float (Makefile.am): Likewise.
4926         * modules/getopt-posix (Makefile.am): Likewise.
4927         * modules/iconv-h (Makefile.am): Likewise.
4928         * modules/langinfo (Makefile.am): Likewise.
4929         * modules/locale (Makefile.am): Likewise.
4930         * modules/math (Makefile.am): Likewise.
4931         * modules/netdb (Makefile.am): Likewise.
4932         * modules/netinet_in (Makefile.am): Likewise.
4933         * modules/poll-h (Makefile.am): Likewise.
4934         * modules/pthread (Makefile.am): Likewise.
4935         * modules/pty (Makefile.am): Likewise.
4936         * modules/sched (Makefile.am): Likewise.
4937         * modules/search (Makefile.am): Likewise.
4938         * modules/selinux-h (Makefile.am): Likewise.
4939         * modules/signal (Makefile.am): Likewise.
4940         * modules/spawn (Makefile.am): Likewise.
4941         * modules/stdarg (Makefile.am): Likewise.
4942         * modules/stddef (Makefile.am): Likewise.
4943         * modules/stdint (Makefile.am): Likewise.
4944         * modules/stdio (Makefile.am): Likewise.
4945         * modules/stdlib (Makefile.am): Likewise.
4946         * modules/string (Makefile.am): Likewise.
4947         * modules/strings (Makefile.am): Likewise.
4948         * modules/sys_file (Makefile.am): Likewise.
4949         * modules/sys_ioctl (Makefile.am): Likewise.
4950         * modules/sys_select (Makefile.am): Likewise.
4951         * modules/sys_socket (Makefile.am): Likewise.
4952         * modules/sys_stat (Makefile.am): Likewise.
4953         * modules/sys_time (Makefile.am): Likewise.
4954         * modules/sys_times (Makefile.am): Likewise.
4955         * modules/sys_uio (Makefile.am): Likewise.
4956         * modules/sys_utsname (Makefile.am): Likewise.
4957         * modules/sys_wait (Makefile.am): Likewise.
4958         * modules/sysexits (Makefile.am): Likewise.
4959         * modules/termios (Makefile.am): Likewise.
4960         * modules/time (Makefile.am): Likewise.
4961         * modules/unistd (Makefile.am): Likewise.
4962         * modules/wchar (Makefile.am): Likewise.
4963         * modules/wctype-h (Makefile.am): Likewise.
4964         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
4965
4966 2011-05-29  Bruno Haible  <bruno@clisp.org>
4967
4968         assert-h: Allow multiple gnulib generated replacements to coexist.
4969         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
4970
4971 2011-05-29  Bruno Haible  <bruno@clisp.org>
4972
4973         argp: Allow coexistence with strerror_r-posix module.
4974         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
4975         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
4976         by gnulib's <string.h> replacement), assume it has the POSIX signature,
4977         not the glibc signature.
4978
4979 2011-05-28  Bruno Haible  <bruno@clisp.org>
4980
4981         gnulib-tool: Alternative structure of testdirs, similar to --import.
4982         * gnulib-tool: New option --single-configure.
4983         (func_usage): Document it.
4984         (single_configure): New variable.
4985         (func_modules_transitive_closure_separately,
4986         func_modules_transitive_closure_separately,
4987         func_determine_use_libtests, func_modules_add_dummy_separately,
4988         func_modules_to_filelist_separately): New functions, extracted from
4989         func_import.
4990         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
4991         (func_import): Use the new functions.
4992         (func_create_testdir): Set final_modules. Handle $single_configure =
4993         true case.
4994
4995 2011-05-28  Bruno Haible  <bruno@clisp.org>
4996
4997         getloadavg: Remove an unreliable safety check.
4998         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
4999         getloadavg.c is in place.
5000         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
5001         Reported by Sam Steingold <sds@gnu.org>.
5002
5003 2011-05-28  Bruno Haible  <bruno@clisp.org>
5004
5005         doc: Cleanup yet another file produced by texinfo.tex.
5006         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
5007
5008 2011-05-28  Bruno Haible  <bruno@clisp.org>
5009
5010         Finish the conditional dependencies mechanism.
5011         * gnulib-tool: New option --no-conditional-dependencies.
5012         (func_usage): Document it. Don't mark --conditional-dependencies as
5013         experimental.
5014         (cond_dependencies): The possible values can now be true, false, empty.
5015         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
5016         (func_import): Store setting in gnulib-cache.m4 and read it from there.
5017         * doc/gnulib-tool.texi (Conditional dependencies): New section.
5018
5019 2011-05-28  Bruno Haible  <bruno@clisp.org>
5020
5021         doc: Use a recent texinfo.tex.
5022         * doc/Makefile (tex_opts): New variable.
5023         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
5024
5025 2011-05-28  Jim Meyering  <meyering@redhat.com>
5026
5027         intprops.h: adjust comment to match code change
5028         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
5029         only once, it *may* have side effects.  Also fix an unrelated typo.
5030         (_GL_INT_SIGNED): Likewise.
5031
5032 2011-05-26  Simon Josefsson  <simon@josefsson.org>
5033
5034         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
5035
5036 2011-05-26  Bruno Haible  <bruno@clisp.org>
5037
5038         mbsrchr: Avoid collision with system function on Interix.
5039         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
5040         Reported by Markus Duft <mduft@gentoo.org>.
5041
5042 2011-05-15  James Youngman  <jay@gnu.org>
5043
5044         getopt: for ambiguous options, enumerate the possibilities.
5045         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
5046         the ambiguous options when an ambiguous prefix is given. This was
5047         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
5048         glibc change was
5049         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
5050
5051 2011-05-25  Eric Blake  <eblake@redhat.com>
5052
5053         getcwd: work around mingw bug
5054         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
5055         * doc/posix-functions/getcwd.texi (getcwd): Document it.
5056         Reported by Matthias Bolte.
5057
5058 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
5059
5060         test-intprops: disable -Wtype-limits diagnostics
5061         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
5062         diagnostics.  Otherwise, the integer overflow macros generate many
5063         diagnostics.  Reported by Jim Meyering in
5064         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
5065
5066         intprops: shorten, to pacify gcc -Woverlength-strings
5067         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
5068         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
5069         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
5070         likely to run afoul of C compiler limits for string constant lengths.
5071         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
5072
5073 2011-05-24  Eric Blake  <eblake@redhat.com>
5074
5075         docs: document recently fixed glibc printf bug
5076         * doc/posix-functions/fprintf.texi (fprintf): Document it.
5077         * doc/posix-functions/printf.texi (printf): Likewise.
5078         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
5079         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
5080
5081         closein-tests: convert to init.sh
5082         * modules/closein-tests (Files): Add init.sh
5083         * tests/test-closein.sh Use it.
5084
5085         yesno-tests: convert to init.sh
5086         * modules/yesno-tests (Files): Add init.sh.
5087         * tests/test-yesno.sh: Use it.
5088
5089         atexit-tests: ensure reliable exit status
5090         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
5091         Reported by Bruno Haible.
5092
5093 2011-05-24  Bruno Haible  <bruno@clisp.org>
5094
5095         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
5096         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
5097         gl_PREREQ_STRERROR_R invocations from here...
5098         * modules/strerror_r-posix (configure.ac): ... to here.
5099
5100 2011-05-24  Eric Blake  <eblake@redhat.com>
5101
5102         strerror_r: fix missing header
5103         * lib/strerror_r.c: Avoid compiler warning about snprintf.
5104
5105         strerror_r: fix AIX test failures
5106         * lib/strerror_r.c (strerror_r): Convert silent truncation to
5107         ERANGE failure.
5108
5109         strerror_r: fix Solaris test failures
5110         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
5111         failures.
5112         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
5113
5114         strerror_r: enforce POSIX recommendations
5115         * lib/strerror_r.c (safe_copy): New helper method.
5116         (strerror_r): Guarantee a non-empty string.
5117         * tests/test-strerror_r.c (main): Enhance tests to incorporate
5118         recent POSIX rulings and to match our strerror guarantees.
5119         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
5120
5121 2011-05-24  Jim Meyering  <meyering@redhat.com>
5122
5123         test-perror2.c: avoid warning about unused variable
5124         * tests/test-perror2.c (main): Remove declaration of unused "fp".
5125
5126 2011-05-24  Eric Blake  <eblake@redhat.com>
5127
5128         perror: avoid spurious test failure on HP-UX
5129         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
5130
5131         tests: fix logic bug in init.sh
5132         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
5133         shell.
5134
5135 2011-05-24  Jim Meyering  <meyering@redhat.com>
5136
5137         utimensat: do not reference an out-of-scope buffer
5138         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
5139         declared in an inner scope, yet "times" would be dereferenced outside
5140         the scope in which "ts" was valid.
5141         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
5142         of ts[2] "out/up", so that the use of aliased "times" (via
5143         "times = ts;") does not end up referencing an out-of-scope "ts"
5144
5145         opendir-safer.c: don't clobber errno; don't close negative FD
5146         * lib/opendir-safer.c (opendir_safer):
5147         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
5148         file descriptor, and more importantly, don't clobber the
5149         offending errno value with EINVAL.  Before, upon failure
5150         of dup_safer, we would pass the negative file descriptor to
5151         fdopendir, which would clobber errno.
5152
5153 2011-05-23  Bruno Haible  <bruno@clisp.org>
5154
5155         idcache: Fix module description.
5156         * modules/idcache (Include): Set to "idcache.h".
5157
5158 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
5159
5160         gnulib-tool: fix portability problem with MacOS sed
5161         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
5162         before the "}".  Problem reported by Leo in
5163         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
5164         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
5165         sed_extract_condition1, sed_extract_condition2.
5166
5167 2011-05-23  Bruno Haible  <bruno@clisp.org>
5168
5169         hash: Simplify autoconf macro.
5170         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
5171
5172 2011-05-23  Bruno Haible  <bruno@clisp.org>
5173
5174         getugroups: Fix module description.
5175         * modules/getugroups (Include): Set to "getugroups.h".
5176
5177 2011-05-23  Bruno Haible  <bruno@clisp.org>
5178
5179         linkat: Simplify autoconf macro.
5180         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
5181
5182 2011-05-23  Bruno Haible  <bruno@clisp.org>
5183             Eric Blake  <eblake@redhat.com>
5184
5185         linkat, renameat: Update dependencies.
5186         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
5187         * modules/linkat (Depends-on): Likewise. Remove also readlink,
5188         symlinkat.
5189
5190 2011-05-23  Jim Meyering  <meyering@redhat.com>
5191
5192         maint.mk: more tight_scope improvements
5193         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
5194         (_gl_TS_headers): Define only in if-0'd block.
5195         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
5196         sometimes we must *not* use it.  Adjust uses accordingly.
5197         (sc_tight_scope): Use much simpler grep-based test to determine
5198         whether we skip this rule.
5199
5200         maint.mk: generalize/improve the tight-scope rule
5201         * top/maint.mk: Emit a warning when the test is skipped.
5202         (_gl_TS_dir): Add $(srcdir)/ prefix.
5203         (_gl_TS_function_match): Simplify, rather than trying
5204         to enumerate common types.  Otherwise, it would fail to match an
5205         "extern unsigned char const *" declaration in idutils.
5206         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
5207         a way to support use of that type of macro.
5208         (_gl_TS_var_match): Simplify regexp.
5209         (_gl_TS_obj_files): New configurable variable.
5210         (_gl_TS_headers): Likewise.
5211
5212 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
5213
5214         verify: fix bug when gnulib <assert.h> is also included
5215         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
5216         is defined, not if _GL_STATIC_ASSERT_H is not defined.
5217         Perhaps there's a better way, but this fixes the immediate problem.
5218         Problem reported by Bruno Haible in
5219         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
5220
5221 2011-05-22  Bruno Haible  <bruno@clisp.org>
5222
5223         xgetcwd: Simplify autoconf macro.
5224         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
5225
5226 2011-05-22  Bruno Haible  <bruno@clisp.org>
5227
5228         New module 'mktime-internal'.
5229         * modules/mktime-internal: New file.
5230         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
5231         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
5232         mktime_internal as a C macro if libc has __mktime_internal.
5233         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
5234         conditions.
5235         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
5236
5237 2011-05-22  Bruno Haible  <bruno@clisp.org>
5238
5239         timegm: Correct mktime replacement statements.
5240         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
5241         defining mktime as a C macro. This completes a 2009-07-28 commit.
5242
5243 2011-05-22  Bruno Haible  <bruno@clisp.org>
5244
5245         timegm: Simplify autoconf macro.
5246         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
5247
5248 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
5249
5250         clock-time: change to LGPLv2+.
5251         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
5252         BSD-like but we have no mark for that; this is good enough for now.
5253
5254 2011-05-21  Bruno Haible  <bruno@clisp.org>
5255
5256         strerror_r: Fix comments.
5257         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
5258
5259 2011-05-21  Bruno Haible  <bruno@clisp.org>
5260
5261         relocatable-prog-wrapper: Fix possible link error.
5262         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
5263         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
5264         (gl_FUNC_SETENV): ... to here.
5265         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
5266         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
5267
5268 2011-05-21  Bruno Haible  <bruno@clisp.org>
5269
5270         relocatable-prog-wrapper: Assume strerror() exists.
5271         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
5272         m4/strerror.m4.
5273         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
5274         * lib/relocwrapper.c: Remove mention of strerror module.
5275         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
5276         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
5277         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
5278         C macro.
5279
5280 2011-05-21  Bruno Haible  <bruno@clisp.org>
5281
5282         select: Simplify replacement idiom.
5283         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
5284         Win32 platforms.
5285         * lib/sys_select.in.h (select): Simplify accordingly.
5286         * modules/select (Depends-on): Likewise.
5287
5288 2011-05-21  Bruno Haible  <bruno@clisp.org>
5289
5290         mkdir-p: Simplify autoconf macro.
5291         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
5292         gl_FUNC_LCHOWN.
5293
5294 2011-05-21  Eric Blake  <eblake@redhat.com>
5295
5296         strerror_r: avoid clobbering strerror on cygwin
5297         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
5298         fall back instead to sys_errlist.
5299         * modules/strerror (configure.ac): Add witness.
5300         * tests/test-strerror_r.c (main): Enhance test.
5301         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
5302         * tests/test-perror2.c (main): Free memory before exit.
5303
5304 2011-05-21  Bruno Haible  <bruno@clisp.org>
5305
5306         mkdtemp: Use gnulib naming conventions.
5307         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
5308         * modules/mkdtemp (configure.ac): Update.
5309
5310 2011-05-20  Eric Blake  <eblake@redhat.com>
5311
5312         strerror_r: avoid corrupting errno on Solaris
5313         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
5314         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
5315
5316         strerror_r: avoid compiler warning
5317         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
5318
5319         strerror_r: simplify AIX code
5320         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
5321
5322         test-perror: avoid spurious failure on FreeBSD
5323         * modules/perror-tests (Depends-on): Add strerror, now that
5324         strerror_r no longer pulls it in.
5325
5326 2011-05-20  Bruno Haible  <bruno@clisp.org>
5327
5328         strerror_r-posix: Remove unused dependencies.
5329         * modules/strerror_r-posix (Depends-on): Remove strerror.
5330         Reported by Eric Blake.
5331
5332 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
5333
5334         intprops: remove assumption about A|B representation
5335         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
5336         is a valid integer if both A and B are.  Although this is true for
5337         all known practical hosts, the C standard doesn't guarantee it,
5338         and the code need not assume it.  Also, this change may work around
5339         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
5340         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
5341
5342 2011-05-20  Eric Blake  <eblake@redhat.com>
5343
5344         perror: work around FreeBSD bug
5345         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
5346         is broken.  Move AC_LIBOBJ...
5347         * modules/perror (configure.ac): Here.
5348         * doc/posix-functions/perror.texi (perror): Document this.
5349         * tests/test-perror2.c (main): Enhance test.
5350
5351         test-perror: check for strerror interactions
5352         * tests/macros.h (STREQ): Add macro.
5353         * modules/perror-tests (Files): Add second test.
5354         * tests/test-perror2.c (main): New file.
5355         * doc/posix-functions/perror.texi (perror): Document glibc bug.
5356
5357         test-perror: rewrite to use init script
5358         * modules/perror-tests (Files): Add init.sh.
5359         * tests/test-perror.sh: Use temporary directory.
5360
5361 2011-05-20  Jim Meyering  <meyering@redhat.com>
5362
5363         maint: replace misused "a" with "an"
5364         * doc/intprops.texi: "a integer"
5365         * doc/regex.texi: "a explanation"
5366         * lib/alignof.h: "a object"
5367         * lib/argmatch.h: "a explanation"
5368         * lib/argp-help.c: "a option" and "a OPTION_DOC"
5369         * lib/stdint.in.h: "a integer"
5370         * lib/userspec.c: "a owner"
5371         * doc/gnulib.texi: Fix "a idea", and reword.
5372
5373 2011-05-19  Jim Meyering  <meyering@redhat.com>
5374
5375         maint: correct misuse of "a" and "an"
5376         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
5377         * lib/argp-help.c: "an docum...": s/an/a/
5378         * lib/argp-parse.c: "An vector": s/An/A/
5379         * lib/execute.c: "an native": s/an/a/
5380         * lib/spawn-pipe.c: Likewise.
5381         * lib/gc.h: "an Gc_rc": s/an/a/
5382         * lib/unigbrk.in.h: "an grapheme": s/an/a/
5383         * lib/fts.c: "an stat.st_dev": s/an/a/
5384
5385 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
5386
5387         intprops-tests: work around HP-UX 11.23 cc bug with constants
5388         * tests/test-intprops.c (VERIFY): New macro.
5389         (main): Use it, instead of verify, to work around the compiler bug; see
5390         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
5391
5392         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
5393         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
5394         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
5395         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
5396         (_GL_REMAINDER_OVERFLOW): Use it.
5397
5398         intprops-tests: revert unsigned part of previous change
5399         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
5400         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
5401         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
5402         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
5403
5404 2011-05-19  Bruno Haible  <bruno@clisp.org>
5405
5406         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
5407         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
5408         strerror_r() returned without filling the buffer.
5409         Reported by Eric Blake.
5410
5411 2011-05-19  Eric Blake  <eblake@redhat.com>
5412
5413         strerror_r: guarantee unchanged errno
5414         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
5415         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
5416         failure.
5417         * tests/test-strerror_r.c (main): Enhance test.
5418
5419 2011-05-19  Bruno Haible  <bruno@clisp.org>
5420
5421         strerror_r: Reorder #if blocks.
5422         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
5423         for consistency with the previous commit.
5424
5425 2011-05-19  Bruno Haible  <bruno@clisp.org>
5426
5427         perror: Avoid clobbering the strerror buffer when possible.
5428         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
5429         * lib/strerror.c: Include it.
5430         * modules/strerror (Files): Add lib/strerror-impl.h.
5431         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
5432         (my_strerror): New function, defined through lib/strerror-impl.h.
5433         (perror): Use it instead of strerror.
5434         * modules/perror (Files): Add lib/strerror-impl.h.
5435         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
5436
5437 2011-05-19  Eric Blake  <eblake@redhat.com>
5438
5439         strerror_r: fix on newer cygwin
5440         * lib/strerror_r.c (strerror_r): Cygwin now has
5441         __xpg_strerror_r, use it.
5442
5443 2011-05-19  Bruno Haible  <bruno@clisp.org>
5444
5445         strerror_r: Avoid clobbering the strerror buffer when possible.
5446         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
5447         (sys_nerr, sys_errlist): New declarations.
5448         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
5449         HP-UX, native Win32, IRIX, and 32-bit Solaris.
5450         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
5451
5452 2011-05-19  Bruno Haible  <bruno@clisp.org>
5453
5454         strerror_r: Fix test failure on mingw.
5455         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
5456         EXTEND_STRERROR_R.
5457         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
5458         macros from errno.in.h instead.
5459
5460 2011-05-19  Eric Blake  <eblake@redhat.com>
5461
5462         strerror: relax test for Solaris
5463         * tests/test-strerror.c (main): Permit Solaris behavior.
5464         * tests/test-strerror_r.c (main): Likewise.
5465
5466         strerror: enforce POSIX ruling on strerror(0)
5467         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
5468         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
5469         * lib/strerror_r.c (rpl_strerror_r): Work around it.
5470         * doc/posix-functions/strerror.texi (strerror): Document it.
5471         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
5472         * tests/test-strerror.c (main): Strengthen test.
5473         * tests/test-strerror_r.c (main): Likewise.
5474
5475 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
5476
5477         intprop-tests: port to older and more-pedantic compilers
5478         * modules/intprops-tests (Files): Add tests/macros.h.
5479         * tests/test-intprops.c: Include macros.h.
5480         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
5481         it's no longer documented to expand to an integer constant expression.
5482         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
5483         argument is floating point, as it's no longer documented to expand
5484         to an integer constant expression in that case.
5485         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
5486         compiler bugs reported by Bruno Haible.  See
5487         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
5488         (U0, U1): New constants, to work around the same bugs.  Also,
5489         in tests, use e.g., "(unsigned int) 39" rather than "39u".
5490
5491         intprops: work around C compiler bugs
5492         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
5493         bug in Sun C 5.11 2010/08/13 and other compilers; see
5494         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
5495
5496         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
5497         * doc/intprops.texi (Integer Type Determination): Fix
5498         documentation for TYPE_IS_INTEGER: it returns an constant
5499         expression, not an integer constant expression.  Fix doc for
5500         TYPE_SIGNED: it returns an integer constant expression only if its
5501         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
5502         hardly worth documented that way....)
5503
5504 2011-05-18  Bruno Haible  <bruno@clisp.org>
5505
5506         strerror_r: Avoid clobbering the strerror buffer when possible.
5507         * lib/strerror_r.c (strerror_r): Merge the three implementations.
5508         Handle gnulib defined errno values here. When strerror() returns NULL
5509         or an empty string, return EINVAL.
5510         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
5511         gnulib defined errno values here.
5512         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
5513
5514 2011-05-18  Eric Blake  <eblake@redhat.com>
5515
5516         fnmatch: avoid compiler warning
5517         * lib/fnmatch_loop.c (FCT): Use correct type.
5518         Reported by Matthias Bolte.
5519
5520 2011-05-13  Jim Meyering  <meyering@redhat.com>
5521
5522         maint.mk: three new prohibit_<HDR>_without_use rules
5523         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
5524         (sc_prohibit_stdio-safer_without_use): Likewise.
5525         (sc_prohibit_xfreopen_without_use): Likewise.
5526
5527 2011-05-17  Jim Meyering  <meyering@redhat.com>
5528
5529         announce-gen: fail if the NEWS delta is empty
5530         If there's nothing noteworthy in NEWS, then either you forgot
5531         or you shouldn't be releasing.
5532         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
5533
5534 2011-05-17  Pádraig Brady <P@draigBrady.com>
5535
5536         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
5537         reserved symbols starting with double underscore from the check.
5538
5539 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
5540
5541         intprops: add doc
5542         * doc/intprops.texi: New file, documenting intprops.
5543         * doc/gnulib.texi (Particular Modules): Include it.
5544
5545         verify: add doc to gnulib manual and fix example
5546         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
5547         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
5548         (Compile-time Assertions): Fix example so it can't overflow.
5549
5550 2011-05-17  Jim Meyering  <meyering@redhat.com>
5551
5552         warnings.m4: don't usurp save_CPPFLAGS variable name
5553         * m4/warnings.m4: Prefix local temporary variable name with gl_.
5554
5555         doc: fix typo
5556         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
5557
5558 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
5559             Bruno Haible  <bruno@clisp.org>
5560
5561         doc: Tweak recent change.
5562         * README (Portability guidelines): Tweak new text.
5563         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
5564         Interix 6.1.
5565
5566 2011-05-16  Eric Blake  <eblake@redhat.com>
5567
5568         inttypes: avoid autoconf warning
5569         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
5570         * m4/stdint.m4 (gl_STDINT_H): Likewise.
5571
5572 2011-05-16  Sam Steingold <sds@gnu.org>
5573         and Eric Blake  <eblake@redhat.com>
5574
5575         vc-list-files: accept multiple directory operands
5576         * build-aux/vc-list-files: Iterate over all remaining operands.
5577
5578 2011-05-16  Bruno Haible  <bruno@clisp.org>
5579
5580         Fix confusion regarding deprecated modules.
5581         * modules/calloc (Status, Notice): Mark module as deprecated, not
5582         obsolete.
5583         * modules/fnmatch-posix (Status, Notice): Likewise.
5584         * modules/getdate (Status, Notice): Likewise.
5585         * modules/getopt (Status, Notice): Likewise.
5586         * modules/malloc (Status, Notice): Likewise.
5587         * modules/pipe (Status, Notice): Likewise.
5588         * modules/realloc (Status, Notice): Likewise.
5589         * modules/rename-dest-slash (Status, Notice): Likewise.
5590         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
5591         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
5592         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
5593         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
5594         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
5595
5596 2011-05-16  Bruno Haible  <bruno@clisp.org>
5597
5598         doc: List the target platforms.
5599         * doc/gnulib-intro.texi (Target Platforms): New section.
5600         * doc/gnulib.texi (Introduction): Update menu.
5601         * README (Portability guidelines): Refer to the new section. Update
5602         statement about oldest supported environment. Remove rationale why
5603         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
5604         unportable C89 function.
5605         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
5606         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
5607
5608 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
5609
5610         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
5611
5612 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
5613
5614         intprops-tests: new module
5615         * modules/intprops-tests, tests/test-intprops.c: New files.
5616
5617         intprops: add safe, portable integer overflow checking
5618         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
5619         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
5620         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
5621         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
5622         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
5623         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
5624         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
5625         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
5626         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
5627         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
5628         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
5629
5630 2011-05-12  James Youngman  <jay@gnu.org>
5631
5632         Add a test for glibc's Bugzilla bug #12378.
5633         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
5634         doesn't allow the literal matching of a lone "[" (which is
5635         required by POSIX).
5636         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
5637
5638 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
5639
5640         Sync glibc change fixing Bugzilla bug #12378.
5641         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
5642         beginning and fall back to matching as normal character if the
5643         string ends before the matching ']' is found.  This is what POSIX
5644         requires.
5645
5646 2011-05-13  Eric Blake  <eblake@redhat.com>
5647
5648         getcwd-lgpl: relax test for FreeBSD
5649         * doc/posix-functions/getcwd.texi (getcwd): Document portability
5650         issue.
5651         * tests/test-getcwd-lgpl.c (main): Relax test.
5652         Reported by Matthias Bolte.
5653
5654 2011-05-11  Eric Blake  <eblake@redhat.com>
5655
5656         test-fflush: silence compiler warning
5657         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
5658
5659 2011-05-11  Bruno Haible  <bruno@clisp.org>
5660
5661         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
5662         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
5663         * modules/canonicalize (Depends-on): Add 'nocrash'.
5664         * modules/canonicalize-lgpl (Depends-on): Likewise.
5665         * doc/posix-functions/realpath.texi: Update platforms list.
5666         Reported by Ryan Schmidt <ryandesign@macports.org>.
5667
5668 2011-05-11  Bruno Haible  <bruno@clisp.org>
5669
5670         group-member: Declare function in <unistd.h>.
5671         * lib/unistd.in.h (group_member): New declaration.
5672         * lib/group-member.h: Remove file.
5673         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
5674         * tests/test-unistd-c++.cc: Check signature of group_member.
5675         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
5676         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
5677         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
5678         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
5679         HAVE_GROUP_MEMBER.
5680         * modules/group-member (Files): Remove lib/group-member.h.
5681         (Depends-on): Add unistd. Specify conditions.
5682         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
5683         (Include): Change to <unistd.h>.
5684         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
5685         HAVE_GROUP_MEMBER.
5686         * NEWS: Mention the change.
5687         * lib/euidaccess.c: Don't include group-member.h.
5688
5689 2011-05-11  Bruno Haible  <bruno@clisp.org>
5690
5691         group-member: Document module.
5692         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
5693         module.
5694
5695 2011-05-11  Bruno Haible  <bruno@clisp.org>
5696
5697         fclose: Fix mistake earlier today.
5698         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
5699
5700 2011-05-11  Eric Blake  <eblake@redhat.com>
5701
5702         fclose: preserve fflush errors
5703         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
5704         Reported by Jim Meyering.
5705
5706         bootstrap: support a prereq of 'rpcgen -' on RHEL5
5707         * build-aux/bootstrap (check_versions): When no specific version
5708         is required, merely check that the app produces an exit status
5709         that indicates its existence.
5710
5711         maint.mk: drop redundant check
5712         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
5713         the same but better.
5714
5715 2011-05-11  Bruno Haible  <bruno@clisp.org>
5716
5717         fclose: Fix possible link error.
5718         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
5719         unregister_shadow_fd. Improve comments.
5720         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
5721         Eric Blake.
5722
5723 2011-05-11  Jim Meyering  <meyering@redhat.com>
5724
5725         maint.mk: improve "can not" detection and generalize rule name
5726         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
5727         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
5728         Use the same technique as in sc_prohibit_doubled_word, so that
5729         we recognize "can not" also when the words are separated by a newline.
5730         Suggested by Eric Blake.
5731         (perl_filename_lineno_text_): Define.  Factored out of...
5732         (prohibit_doubled_word_): ...here.  Use the new definition.
5733         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
5734         (prohibit_undesirable_word_seq_RE_): New overridable variable.
5735         (ignore_undesirable_word_sequence_RE_): New overridable variable.
5736
5737 2011-05-10  Eric Blake  <eblake@redhat.com>
5738
5739         fclose: avoid double close race when possible
5740         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
5741         all but WINDOWS_SOCKETS.
5742
5743 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
5744
5745         openat: correct new comment
5746         * lib/openat-proc.c (openat_proc_name): Correct the comment.
5747
5748 2011-05-10  Jim Meyering  <meyering@redhat.com>
5749
5750         openat: add comments
5751         * lib/openat-proc.c (openat_proc_name): Add comments,
5752         mostly from Eric Blake.
5753
5754 2011-05-09  Eric Blake  <eblake@redhat.com>
5755
5756         openat: reduce syscalls in first probe of /proc
5757         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
5758         be a directory.  Simplify the probe for .. bugs.
5759         * modules/openat (Depends-on): Drop same-inode.
5760         Reported by Bastien ROUCARIES.
5761
5762 2011-05-09  Jim Meyering  <meyering@redhat.com>
5763
5764         maint.mk: change semantics/name of tight_scope variables
5765         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
5766         Rename variables to align with semantics that make them more useful.
5767
5768         maint.mk: tweak new rule's name not to impinge
5769         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
5770         (sc_tight_scope): Use new rule name rather than $@-0.
5771
5772         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
5773         * top/maint.mk (sc_tight_scope): New rule.
5774         (sc_tight_scope-0): New rule, ifdef'd out.
5775         (_gl_TS_dir): Default.
5776         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
5777         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
5778
5779 2011-05-09  Simon Josefsson  <simon@josefsson.org>
5780
5781         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
5782         Haible <bruno@clisp.org>.
5783
5784 2011-05-08  Bruno Haible  <bruno@clisp.org>
5785
5786         Comments.
5787         * m4/isnanf.m4: Add comment.
5788         * m4/isnanl.m4: Likewise.
5789
5790 2011-05-08  Bruno Haible  <bruno@clisp.org>
5791
5792         glob: Remove obsolete macro.
5793         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
5794
5795 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
5796
5797         intprops: Sun C 5.11 supports __typeof__
5798         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
5799         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
5800         which is new.
5801         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
5802
5803         intprops: switch to usual gnulib indenting and naming
5804         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
5805         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
5806
5807         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
5808
5809 2011-05-08  Jim Meyering  <meyering@redhat.com>
5810
5811         maint.mk: suppress "Entering/Leaving directory" diag in announcement
5812         * top/maint.mk (release-prep): Use make's --no-print-directory
5813         option when generating the announcement.  This eliminates the
5814         pesky "make[2]: Entering/Leaving directory" diagnostics in the
5815         generated announcement template.
5816
5817 2011-05-08  Bruno Haible  <bruno@clisp.org>
5818
5819         tzset: Fix gettimeofday wrapper on Solaris 2.6.
5820         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
5821         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
5822
5823 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
5824
5825         ignore-value, verify: Omit include files from lib_SOURCES.
5826         * modules/ignore-value, modules/verify (Makefile.am):
5827         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
5828         that leads Automake to duplicate use of am__objects_... variables
5829         in Makefile.in.  See
5830         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
5831
5832 2011-05-07  Bruno Haible  <bruno@clisp.org>
5833
5834         fclose: Simplify autoconf macro.
5835         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
5836         defined.
5837
5838 2011-05-07  Bruno Haible  <bruno@clisp.org>
5839
5840         canonicalize-lgpl: Fix autoconf macro ordering bug.
5841         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
5842         gl_STDLIB_H_DEFAULTS.
5843
5844 2011-05-06  Eric Blake  <eblake@redhat.com>
5845
5846         maintainer-makefile: make sc_po_check easier to tune
5847         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
5848         to probe for strings, such as an alternate location for gnulib.
5849
5850         fclose: guarantee behavior on seekable stdin
5851         * modules/fclose (Depends-on): Add fflush.
5852         * doc/posix-functions/fclose.texi (fclose): Document this.
5853         * tests/test-fclose.c (main): Make test for this unconditional.
5854
5855 2011-05-06  Bruno Haible  <bruno@clisp.org>
5856
5857         fflush, fpurge: Relicense under LGPLv2+.
5858         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
5859         * modules/fpurge (License): Likewise.
5860         With permission from Eric Blake and Jim Meyering.
5861         Suggested by Eric Blake.
5862
5863 2011-05-06  Karl Berry  <karl@gnu.org>
5864
5865         * MODULES.html.sh (func_all_modules): remove exit.
5866
5867 2011-05-06  Jim Meyering  <meyering@redhat.com>
5868
5869         maint.mk: use info-gnu@ as the default only for a stable release
5870         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
5871         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
5872         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
5873         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
5874
5875 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
5876
5877         assert-h: new module, which supports C1X-style static_assert
5878         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
5879         * lib/verify.h: Revamp so that this can be copied into assert.h,
5880         while retaining the ability to use it standalone as before.
5881         Rename private identifiers so as not to encroach on the
5882         standard C namespace, since this is now used by assert.h.
5883         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
5884         the old verify_true.
5885         (_GL_VERIFY_TRUE): New macro, with much of the contents of
5886         the old verify_true.  Use _GL_VERIFY_TYPE.
5887         (_GL_VERIFY): New macro, with much of the contents of the old verify.
5888         (static_assert): New macro, if _GL_STATIC_ASSERT_H
5889         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
5890         defined when this file is copied into the replacement assert.h.
5891         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
5892         and _Static_assert is not built in.
5893         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
5894         defined, and use the new macros mentioned above.
5895         * doc/posix-headers/assert.texi: Document this.
5896
5897 2011-05-05  Bruno Haible  <bruno@clisp.org>
5898
5899         fclose, fflush: Respect rules for use of AC_LIBOBJ.
5900         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
5901         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
5902         gl_REPLACE_FCLOSE here.
5903         * modules/fflush (Depends-on): Remove fclose.
5904         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
5905         combination with module 'fclose'.
5906
5907 2011-05-05  Bruno Haible  <bruno@clisp.org>
5908
5909         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
5910         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
5911         gl_FUNC_FFLUSH.
5912         (gl_FUNC_FFLUSH): Use it.
5913         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
5914         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
5915         gl_REPLACE_FSEEKO here.
5916
5917 2011-05-05  Bruno Haible  <bruno@clisp.org>
5918
5919         tzset: Relicense under LGPL.
5920         * modules/tzset (License): Change to LGPL.
5921         No agreement needed; it's a no-op.
5922
5923         strtoimax, strtoumax: Relicense under LGPL.
5924         * modules/strtoimax (License): Change to LGPL.
5925         * modules/strtoumax (License): Likewise.
5926         With permission from Jim Meyering, Paul Eggert:
5927         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
5928         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
5929
5930         getgroups: Relicense under LGPL.
5931         * modules/getgroups (License): Change to LGPL.
5932         With permission from Jim Meyering, Paul Eggert, Eric Blake:
5933         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
5934         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
5935         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
5936
5937         nanosleep: Relicense under LGPL.
5938         * modules/nanosleep (License): Change to LGPL.
5939         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
5940         Haible:
5941         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
5942         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
5943         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
5944         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
5945
5946         futimens: Relicense under LGPL.
5947         * modules/futimens (License): Change to LGPL.
5948         With permission from Eric Blake:
5949         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
5950
5951         fflush: Relicense under LGPL.
5952         * modules/fflush (License): Change to LGPL.
5953         With permission from Eric Blake, Bruno Haible, Jim Meyering:
5954         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
5955         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
5956         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
5957
5958         tmpfile: Relicense under LGPL.
5959         * modules/tmpfile (License): Change to LGPL.
5960         With permission from Ben Pfaff:
5961         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
5962
5963         isfinite: Relicense under LGPL.
5964         * modules/isfinite (License): Change to LGPL.
5965         With permission from Ben Pfaff, Bruno Haible:
5966         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
5967         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
5968
5969         acosl..tanl: Relicense under LGPL.
5970         * modules/acosl (License): Change to LGPL.
5971         * modules/asinl (License): Likewise.
5972         * modules/atanl (License): Likewise.
5973         * modules/cosl (License): Likewise.
5974         * modules/expl (License): Likewise.
5975         * modules/logl (License): Likewise.
5976         * modules/sinl (License): Likewise.
5977         * modules/sqrtl (License): Likewise.
5978         * modules/tanl (License): Likewise.
5979         Source code originally from glibc and Paolo Bonzini. Agreements:
5980         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
5981         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
5982
5983 2011-05-05  Bruno Haible  <bruno@clisp.org>
5984
5985         signal: Define sighandler_t.
5986         * lib/signal.in.h (sighandler_t): New type.
5987         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
5988         whether sighandler_t is defined.
5989         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
5990         * modules/signal (Depends-on): Add extensions.
5991         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
5992         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
5993         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
5994
5995 2011-05-05  Eric Blake  <eblake@redhat.com>
5996
5997         maint: remove useless REPLACE_*_H macros
5998         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
5999         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
6000         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
6001         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
6002         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
6003         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
6004         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
6005         * m4/btowc.m4: Update callers.
6006         * m4/dirfd.m4: Likewise.
6007         * m4/duplocale.m4: Likewise.
6008         * m4/fchdir.m4: Likewise.
6009         * m4/fdopendir.m4: Likewise.
6010         * m4/inet_ntop.m4: Likewise.
6011         * m4/inet_pton.m4: Likewise.
6012         * m4/ioctl.m4: Likewise.
6013         * m4/mbrlen.m4: Likewise.
6014         * m4/mbrtowc.m4: Likewise.
6015         * m4/mbsinit.m4: Likewise.
6016         * m4/mbsnrtowcs.m4: Likewise.
6017         * m4/mbsrtowcs.m4: Likewise.
6018         * m4/poll.m4: Likewise.
6019         * m4/setlocale.m4: Likewise.
6020         * m4/wcrtomb.m4: Likewise.
6021         * m4/wcsnrtombs.m4: Likewise.
6022         * m4/wcsrtombs.m4: Likewise.
6023         * m4/wctob.m4: Likewise.
6024         * m4/wcwidth.m4: Likewise.
6025         * modules/posix_spawn: Likewise.
6026         * modules/posix_spawn_file_actions_addclose: Likewise.
6027         * modules/posix_spawn_file_actions_adddup2: Likewise.
6028         * modules/posix_spawn_file_actions_addopen: Likewise.
6029         * modules/posix_spawn_file_actions_destroy: Likewise.
6030         * modules/posix_spawn_file_actions_init: Likewise.
6031         * modules/posix_spawnattr_destroy: Likewise.
6032         * modules/posix_spawnattr_getflags: Likewise.
6033         * modules/posix_spawnattr_getpgroup: Likewise.
6034         * modules/posix_spawnattr_getschedparam: Likewise.
6035         * modules/posix_spawnattr_getschedpolicy: Likewise.
6036         * modules/posix_spawnattr_getsigdefault: Likewise.
6037         * modules/posix_spawnattr_getsigmask: Likewise.
6038         * modules/posix_spawnattr_init: Likewise.
6039         * modules/posix_spawnattr_setflags: Likewise.
6040         * modules/posix_spawnattr_setpgroup: Likewise.
6041         * modules/posix_spawnattr_setschedparam: Likewise.
6042         * modules/posix_spawnattr_setschedpolicy: Likewise.
6043         * modules/posix_spawnattr_setsigdefault: Likewise.
6044         * modules/posix_spawnattr_setsigmask: Likewise.
6045         * modules/posix_spawnp: Likewise.
6046
6047 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
6048
6049         Add option to do-release-commit-and-tag to specify branch.
6050         * build-aux/do-release-commit-and-tag: Add --branch.
6051
6052 2011-05-03  Bruno Haible  <bruno@clisp.org>
6053
6054         Avoid unnecessary compilation units, through conditional dependencies.
6055         * modules/accept (Depends-on): Add conditions to the dependencies.
6056         * modules/acosl (Depends-on): Likewise.
6057         * modules/argz (Depends-on): Likewise.
6058         * modules/asinl (Depends-on): Likewise.
6059         * modules/atanl (Depends-on): Likewise.
6060         * modules/atoll (Depends-on): Likewise.
6061         * modules/bind (Depends-on): Likewise.
6062         * modules/btowc (Depends-on): Likewise.
6063         * modules/canonicalize-lgpl (Depends-on): Likewise.
6064         * modules/ceil (Depends-on): Likewise.
6065         * modules/ceilf (Depends-on): Likewise.
6066         * modules/ceill (Depends-on): Likewise.
6067         * modules/chdir-long (Depends-on): Likewise.
6068         * modules/chown (Depends-on): Likewise.
6069         * modules/close (Depends-on): Likewise.
6070         * modules/connect (Depends-on): Likewise.
6071         * modules/cosl (Depends-on): Likewise.
6072         * modules/dirfd (Depends-on): Likewise.
6073         * modules/dprintf (Depends-on): Likewise.
6074         * modules/dprintf-posix (Depends-on): Likewise.
6075         * modules/error (Depends-on): Likewise.
6076         * modules/euidaccess (Depends-on): Likewise.
6077         * modules/expl (Depends-on): Likewise.
6078         * modules/faccessat (Depends-on): Likewise.
6079         * modules/fchdir (Depends-on): Likewise.
6080         * modules/fclose (Depends-on): Likewise.
6081         * modules/fcntl (Depends-on): Likewise.
6082         * modules/fdopendir (Depends-on): Likewise.
6083         * modules/fflush (Depends-on): Likewise.
6084         * modules/floor (Depends-on): Likewise.
6085         * modules/floorf (Depends-on): Likewise.
6086         * modules/floorl (Depends-on): Likewise.
6087         * modules/fnmatch (Depends-on): Likewise.
6088         * modules/fopen (Depends-on): Likewise.
6089         * modules/fprintf-posix (Depends-on): Likewise.
6090         * modules/frexp (Depends-on): Likewise.
6091         * modules/frexp-nolibm (Depends-on): Likewise.
6092         * modules/frexpl (Depends-on): Likewise.
6093         * modules/frexpl-nolibm (Depends-on): Likewise.
6094         * modules/fseek (Depends-on): Likewise.
6095         * modules/fsusage (Depends-on): Likewise.
6096         * modules/ftell (Depends-on): Likewise.
6097         * modules/ftello (Depends-on): Likewise.
6098         * modules/futimens (Depends-on): Likewise.
6099         * modules/getcwd (Depends-on): Likewise.
6100         * modules/getcwd-lgpl (Depends-on): Likewise.
6101         * modules/getdelim (Depends-on): Likewise.
6102         * modules/getdomainname (Depends-on): Likewise.
6103         * modules/getgroups (Depends-on): Likewise.
6104         * modules/gethostname (Depends-on): Likewise.
6105         * modules/getline (Depends-on): Likewise.
6106         * modules/getlogin_r (Depends-on): Likewise.
6107         * modules/getopt-posix (Depends-on): Likewise.
6108         * modules/getpeername (Depends-on): Likewise.
6109         * modules/getsockname (Depends-on): Likewise.
6110         * modules/getsockopt (Depends-on): Likewise.
6111         * modules/getsubopt (Depends-on): Likewise.
6112         * modules/getusershell (Depends-on): Likewise.
6113         * modules/glob (Depends-on): Likewise.
6114         * modules/grantpt (Depends-on): Likewise.
6115         * modules/iconv_open (Depends-on): Likewise.
6116         * modules/iconv_open-utf (Depends-on): Likewise.
6117         * modules/inet_ntop (Depends-on): Likewise.
6118         * modules/inet_pton (Depends-on): Likewise.
6119         * modules/ioctl (Depends-on): Likewise.
6120         * modules/isapipe (Depends-on): Likewise.
6121         * modules/isfinite (Depends-on): Likewise.
6122         * modules/isinf (Depends-on): Likewise.
6123         * modules/lchown (Depends-on): Likewise.
6124         * modules/ldexpl (Depends-on): Likewise.
6125         * modules/link (Depends-on): Likewise.
6126         * modules/linkat (Depends-on): Likewise.
6127         * modules/listen (Depends-on): Likewise.
6128         * modules/logl (Depends-on): Likewise.
6129         * modules/lstat (Depends-on): Likewise.
6130         * modules/mbrlen (Depends-on): Likewise.
6131         * modules/mbrtowc (Depends-on): Likewise.
6132         * modules/mbsinit (Depends-on): Likewise.
6133         * modules/mbsnrtowcs (Depends-on): Likewise.
6134         * modules/mbsrtowcs (Depends-on): Likewise.
6135         * modules/mbtowc (Depends-on): Likewise.
6136         * modules/memcmp (Depends-on): Likewise.
6137         * modules/mkdir (Depends-on): Likewise.
6138         * modules/mkdtemp (Depends-on): Likewise.
6139         * modules/mkfifo (Depends-on): Likewise.
6140         * modules/mkfifoat (Depends-on): Likewise.
6141         * modules/mknod (Depends-on): Likewise.
6142         * modules/mkostemp (Depends-on): Likewise.
6143         * modules/mkostemps (Depends-on): Likewise.
6144         * modules/mkstemp (Depends-on): Likewise.
6145         * modules/mkstemps (Depends-on): Likewise.
6146         * modules/mktime (Depends-on): Likewise.
6147         * modules/nanosleep (Depends-on): Likewise.
6148         * modules/open (Depends-on): Likewise.
6149         * modules/openat (Depends-on): Likewise.
6150         * modules/perror (Depends-on): Likewise.
6151         * modules/poll (Depends-on): Likewise.
6152         * modules/popen (Depends-on): Likewise.
6153         * modules/posix_spawn (Depends-on): Likewise.
6154         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
6155         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
6156         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
6157         * modules/posix_spawnp (Depends-on): Likewise.
6158         * modules/pread (Depends-on): Likewise.
6159         * modules/printf-posix (Depends-on): Likewise.
6160         * modules/ptsname (Depends-on): Likewise.
6161         * modules/putenv (Depends-on): Likewise.
6162         * modules/pwrite (Depends-on): Likewise.
6163         * modules/readline (Depends-on): Likewise.
6164         * modules/readlink (Depends-on): Likewise.
6165         * modules/readlinkat (Depends-on): Likewise.
6166         * modules/recv (Depends-on): Likewise.
6167         * modules/recvfrom (Depends-on): Likewise.
6168         * modules/regex (Depends-on): Likewise.
6169         * modules/remove (Depends-on): Likewise.
6170         * modules/rename (Depends-on): Likewise.
6171         * modules/renameat (Depends-on): Likewise.
6172         * modules/rmdir (Depends-on): Likewise.
6173         * modules/round (Depends-on): Likewise.
6174         * modules/roundf (Depends-on): Likewise.
6175         * modules/roundl (Depends-on): Likewise.
6176         * modules/rpmatch (Depends-on): Likewise.
6177         * modules/select (Depends-on): Likewise.
6178         * modules/send (Depends-on): Likewise.
6179         * modules/sendto (Depends-on): Likewise.
6180         * modules/setenv (Depends-on): Likewise.
6181         * modules/setlocale (Depends-on): Likewise.
6182         * modules/setsockopt (Depends-on): Likewise.
6183         * modules/shutdown (Depends-on): Likewise.
6184         * modules/sigaction (Depends-on): Likewise.
6185         * modules/signbit (Depends-on): Likewise.
6186         * modules/sigprocmask (Depends-on): Likewise.
6187         * modules/sinl (Depends-on): Likewise.
6188         * modules/sleep (Depends-on): Likewise.
6189         * modules/snprintf (Depends-on): Likewise.
6190         * modules/snprintf-posix (Depends-on): Likewise.
6191         * modules/socket (Depends-on): Likewise.
6192         * modules/sprintf-posix (Depends-on): Likewise.
6193         * modules/sqrtl (Depends-on): Likewise.
6194         * modules/stat (Depends-on): Likewise.
6195         * modules/strchrnul (Depends-on): Likewise.
6196         * modules/strdup-posix (Depends-on): Likewise.
6197         * modules/strerror (Depends-on): Likewise.
6198         * modules/strerror_r-posix (Depends-on): Likewise.
6199         * modules/strndup (Depends-on): Likewise.
6200         * modules/strnlen (Depends-on): Likewise.
6201         * modules/strptime (Depends-on): Likewise.
6202         * modules/strsep (Depends-on): Likewise.
6203         * modules/strsignal (Depends-on): Likewise.
6204         * modules/strstr-simple (Depends-on): Likewise.
6205         * modules/strtod (Depends-on): Likewise.
6206         * modules/strtoimax (Depends-on): Likewise.
6207         * modules/strtok_r (Depends-on): Likewise.
6208         * modules/strtoumax (Depends-on): Likewise.
6209         * modules/symlink (Depends-on): Likewise.
6210         * modules/symlinkat (Depends-on): Likewise.
6211         * modules/tanl (Depends-on): Likewise.
6212         * modules/tcgetsid (Depends-on): Likewise.
6213         * modules/tmpfile (Depends-on): Likewise.
6214         * modules/trunc (Depends-on): Likewise.
6215         * modules/truncf (Depends-on): Likewise.
6216         * modules/truncl (Depends-on): Likewise.
6217         * modules/uname (Depends-on): Likewise.
6218         * modules/unlink (Depends-on): Likewise.
6219         * modules/unlockpt (Depends-on): Likewise.
6220         * modules/unsetenv (Depends-on): Likewise.
6221         * modules/usleep (Depends-on): Likewise.
6222         * modules/utimensat (Depends-on): Likewise.
6223         * modules/vasprintf (Depends-on): Likewise.
6224         * modules/vdprintf (Depends-on): Likewise.
6225         * modules/vdprintf-posix (Depends-on): Likewise.
6226         * modules/vfprintf-posix (Depends-on): Likewise.
6227         * modules/vprintf-posix (Depends-on): Likewise.
6228         * modules/vsnprintf (Depends-on): Likewise.
6229         * modules/vsnprintf-posix (Depends-on): Likewise.
6230         * modules/vsprintf-posix (Depends-on): Likewise.
6231         * modules/wcrtomb (Depends-on): Likewise.
6232         * modules/wcscasecmp (Depends-on): Likewise.
6233         * modules/wcscspn (Depends-on): Likewise.
6234         * modules/wcsdup (Depends-on): Likewise.
6235         * modules/wcsncasecmp (Depends-on): Likewise.
6236         * modules/wcsnrtombs (Depends-on): Likewise.
6237         * modules/wcspbrk (Depends-on): Likewise.
6238         * modules/wcsrtombs (Depends-on): Likewise.
6239         * modules/wcsspn (Depends-on): Likewise.
6240         * modules/wcsstr (Depends-on): Likewise.
6241         * modules/wcstok (Depends-on): Likewise.
6242         * modules/wcswidth (Depends-on): Likewise.
6243         * modules/wctob (Depends-on): Likewise.
6244         * modules/wctomb (Depends-on): Likewise.
6245         * modules/wctype (Depends-on): Likewise.
6246         * modules/wcwidth (Depends-on): Likewise.
6247         * modules/write (Depends-on): Likewise.
6248
6249 2011-05-03  Bruno Haible  <bruno@clisp.org>
6250
6251         Support for conditional dependencies.
6252         * doc/gnulib.texi (Module description): Document the syntax of
6253         conditional dependencies.
6254         * gnulib-tool: New option --conditional-dependencies.
6255         (func_usage): Document it.
6256         (cond_dependencies): New variable.
6257         (func_get_automake_snippet_conditional,
6258         func_get_automake_snippet_unconditional): New functions, extracted from
6259         func_get_automake_snippet.
6260         (func_get_automake_snippet): Use them.
6261         (sed_first_32_chars): New variable.
6262         (func_module_shellfunc_name): New function.
6263         (func_module_shellvar_name): New function.
6264         (func_module_conditional_name): New function.
6265         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
6266         func_cond_module_condition): New functions.
6267         (func_modules_transitive_closure): Add support for conditional
6268         dependencies.
6269         (func_emit_lib_Makefile_am): For a conditional module, enclose the
6270         conditional automake snippet in an automake conditional.
6271         (func_emit_autoconf_snippets): Emit shell functions that contain the
6272         code for conditional modules.
6273         (func_import, func_create_testdir): Update specification.
6274
6275 2011-05-03  Eric Blake  <eblake@redhat.com>
6276
6277         test-getaddrinfo: report error information
6278         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
6279
6280 2011-05-03  Jim Meyering  <meyering@redhat.com>
6281
6282         bootstrap: avoid build failure when $GZIP is set
6283         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
6284         program name.  If defined at all, it is supposed to list gzip options.
6285         Reported by Alan Curry in http://debbugs.gnu.org/8609
6286
6287 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
6288
6289         readme-release: new module with release instructions
6290         * modules/readme-release: New module.
6291         * top/README-release: New file, from coreutils, grep, diffutils.
6292         * MODULES.html.sh (Support for maintaining and releasing): Add it.
6293
6294 2011-05-02  Eric Blake  <eblake@redhat.com>
6295
6296         fflush: also replace fclose when fixing fflush
6297         * modules/fflush (Depends-on): Add fclose.
6298         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
6299         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
6300         memstreams with no backing fd.
6301         * doc/posix-functions/fclose.texi (fclose): Document the use of
6302         fflush module to fix the bug.
6303         * tests/test-fclose.c (main): Relax test when fclose is used in
6304         isolation.
6305
6306         fclose: add some tests
6307         * modules/fclose-tests: New test module.
6308         * tests/test-fclose.c: New file.
6309         * doc/posix-functions/fclose.texi (fclose): Document the bug.
6310
6311         fclose: reduced dependencies
6312         * modules/fclose (Depends-on): Switch from fflush/fseeko to
6313         simpler lseek.
6314         * lib/fclose.c (rpl_fclose): Likewise.
6315         Reported by Simon Josefsson.
6316
6317         exit: drop remaining clients
6318         * modules/argmatch (Depends-on): Replace exit with stdlib.
6319         * modules/copy-file (Depends-on): Likewise.
6320         * modules/execute (Depends-on): Likewise.
6321         * modules/exitfail (Depends-on): Likewise.
6322         * modules/obstack (Depends-on): Likewise.
6323         * modules/pagealign_alloc (Depends-on): Likewise.
6324         * modules/pipe-filter-gi (Depends-on): Likewise.
6325         * modules/pipe-filter-ii (Depends-on): Likewise.
6326         * modules/savewd (Depends-on): Likewise.
6327         * modules/spawn-pipe (Depends-on): Likewise.
6328         * modules/wait-process (Depends-on): Likewise.
6329         * modules/xsetenv (Depends-on): Likewise.
6330         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
6331         * modules/git-merge-changelog (Depends-on): Likewise.
6332         * modules/long-options (Depends-on): Likewise.
6333         * modules/pt_chown (Depends-on): Likewise.
6334         * modules/sysexits (Depends-on): Likewise.
6335
6336         freading: relax license from LGPLv3+ to LGPLv2+
6337         * modules/freading (License): Relax LGPL version.
6338
6339 2011-05-02  Bruno Haible  <bruno@clisp.org>
6340
6341         fchdir: Remove unused dependencies.
6342         * modules/fchdir (Depends-on): Remove include_next.
6343
6344 2011-05-02  Bruno Haible  <bruno@clisp.org>
6345
6346         gnulib-tool: Refactor.
6347         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
6348         from func_emit_autoconf_snippets.
6349         (func_emit_autoconf_snippets): Use it.
6350
6351 2011-05-02  Simon Josefsson  <simon@josefsson.org>
6352
6353         * NEWS: Document removal of 'exit'.
6354         * modules/exit: Remove file.
6355
6356 2011-05-01  Bruno Haible  <bruno@clisp.org>
6357
6358         Update DEPENDENCIES.
6359         * DEPENDENCIES (gettext): Recommend the newest release.
6360         Reported by Simon Josefsson.
6361
6362 2011-05-01  Bruno Haible  <bruno@clisp.org>
6363
6364         gnulib-tool: Reduce code duplication.
6365         * gnulib-tool (func_emit_autoconf_snippets): New function.
6366         (func_import, func_create_testdir): Use it.
6367
6368 2011-04-30  Eric Blake  <eblake@redhat.com>
6369
6370         fclose: don't fail on non-seekable input stream
6371         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
6372         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
6373         since fflush is allowed to fail in that case.
6374
6375 2011-04-30  Bruno Haible  <bruno@clisp.org>
6376
6377         dup3: cleanup
6378         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
6379
6380 2011-04-30  Bruno Haible  <bruno@clisp.org>
6381
6382         netdb: Make it work in C++ mode.
6383         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
6384         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
6385         module.
6386         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
6387         gl_MODULE_INDICATOR_FOR_TESTS.
6388         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
6389         * modules/netdb-c++-tests: New file.
6390         * tests/test-netdb-c++.cc: New file.
6391
6392 2011-04-30  Bruno Haible  <bruno@clisp.org>
6393
6394         New modules 'vfscanf', 'vscanf'.
6395         * modules/vfscanf: New file.
6396         * modules/vscanf: New file.
6397         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
6398         here.
6399         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
6400         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
6401
6402 2011-04-30  Bruno Haible  <bruno@clisp.org>
6403
6404         passfd: Add comments.
6405         * lib/passfd.c: Add comments about platforms.
6406
6407 2011-04-30  Bruno Haible  <bruno@clisp.org>
6408
6409         sys_uio: Make <sys/uio.h> self-contained.
6410         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
6411         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
6412
6413 2011-04-30  Bruno Haible  <bruno@clisp.org>
6414
6415         sys_socket: Ensure 'struct iovec' definition.
6416         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
6417         <sys/socket.h>.
6418         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
6419
6420 2011-04-30  Bruno Haible  <bruno@clisp.org>
6421
6422         sys_uio: Protect definition of 'struct iovec'.
6423         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
6424         it as a C struct.
6425
6426 2011-04-30  Bruno Haible  <bruno@clisp.org>
6427
6428         manywarnings: fix indentation
6429         * m4/manywarnings.m4: Indent by 2 spaces consistently.
6430
6431 2011-04-30  Pádraig Brady <P@draigBrady.com>
6432
6433         manywarnings: add -Wno-missing-field-initializers if needed.
6434         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
6435         option if it's needed to allow initialization with { 0, }
6436
6437 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
6438
6439         announce-gen: cosmetic improvement
6440         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
6441
6442 2011-04-29  Jim Meyering  <meyering@redhat.com>
6443
6444         vc-list-files: indent with spaces, not TABs
6445         * build-aux/vc-list-files: Convert leading TABs to spaces,
6446         to match the style of most other files in gnulib.
6447
6448         announce-gen: indent with spaces, not TABs
6449         * build-aux/announce-gen: Convert all TABs to spaces, to match
6450         the style of most other files in gnulib.
6451
6452 2011-04-29  Eric Blake  <eblake@redhat.com>
6453
6454         quotearg: avoid uninitialized variable use
6455         * lib/quotearg.c (quoting_options_from_style): Initialize
6456         remaining fields, and ensure that custom styles are only used via
6457         quoting_options rather than quoting_style.
6458
6459 2011-04-29  Jim Meyering  <meyering@redhat.com>
6460
6461         maint.mk: remove unused VC-tag variable
6462         * top/maint.mk (VC-tag): Remove unused variable.
6463
6464 2011-04-29  Bruno Haible  <bruno@clisp.org>
6465
6466         netdb: fix gai_strerror replacements
6467         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
6468         * modules/netdb: Substitute it.
6469
6470 2011-04-29  Jim Meyering  <meyering@redhat.com>
6471
6472         test-getcwd.c: avoid new set-but-not-used warning
6473         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
6474         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
6475         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
6476         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
6477
6478         test-hash.c: avoid a new shadowing warning
6479         * tests/test-hash.c (main): Don't shadow "dup".
6480
6481 2011-04-28  Eric Blake  <eblake@redhat.com>
6482
6483         getaddrinfo: fix gai_strerror signature
6484         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
6485         and work around mingw with UNICODE defined.
6486         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
6487         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
6488         * modules/netdb (Makefile.am): Substitute it.
6489         * lib/netdb.in.h (gai_strerror): Declare replacement.
6490         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
6491         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
6492         the fix.
6493
6494         getsockopt: avoid compiler warning
6495         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
6496         Reported by Matthias Bolte.
6497
6498         tests: drop unused link dependency
6499         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
6500         * modules/dirent-safer-tests (Makefile.am): Likewise.
6501         * modules/fdopendir-tests (Makefile.am): Likewise.
6502         * modules/mkfifoat-tests (Makefile.am): Likewise.
6503         * modules/openat-safer-tests (Makefile.am): Likewise.
6504         * modules/openat-tests (Makefile.am): Likewise.
6505         * modules/readlinkat-tests (Makefile.am): Likewise.
6506         * modules/symlinkat-tests (Makefile.am): Likewise.
6507         * modules/linkat-tests (Makefile.am): Likewise.
6508         (Depends-on): Switch to filenamecat-lgpl.
6509         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
6510         LIBINTL.
6511         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
6512         * tests/test-linkat.c (main): Don't require xalloc.
6513
6514         hash, mgetgroups: drop xalloc dependency
6515         * lib/hash.c (includes): Adjust includes.
6516         * lib/mgetgroups.c (includes): Likewise.
6517         (xgetgroups): Move...
6518         * lib/xgetgroups.c: ...to new file.
6519         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
6520         * modules/xgetgroups: New file, split from...
6521         * modules/mgetgroups: ...here.
6522         (Depends-on): Add xalloc-oversized.
6523         * modules/hash (Depends-on): Likewise.
6524         * modules/hash-tests (Depends-on): Drop xalloc.
6525         (test_hash_LDADD): Drop unused library.
6526         * tests/test-hash.c (main): Break xalloc dependency.
6527         (includes): Drop unused include.
6528
6529         xalloc-oversized: new module
6530         * modules/xalloc-oversized: New module.
6531         * modules/xalloc (Depends-on): Add it.
6532         * lib/xalloc.h (xalloc_oversized): Move...
6533         * lib/xalloc-oversized.h: ...into new file.
6534
6535         utimecmp: drop dependency on xmalloc
6536         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
6537         due to memory pressure.
6538         * modules/utimecmp (Depends-on): Drop xalloc.
6539
6540 2011-04-27  Eric Blake  <eblake@redhat.com>
6541
6542         getcwd: fix mingw bugs
6543         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
6544         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
6545         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
6546
6547 2011-04-27  Bruno Haible  <bruno@clisp.org>
6548
6549         mkstemps: Ensure declaration on MacOS X 10.5.
6550         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
6551         * doc/glibc-functions/mkstemps.texi: Document header file problem on
6552         MacOS X.
6553
6554 2011-04-27  Bruno Haible  <bruno@clisp.org>
6555
6556         mkstemp: More documentation.
6557         * doc/posix-functions/mkstemp.texi: Document header file problem on
6558         MacOS X.
6559
6560 2011-04-27  Bruno Haible  <bruno@clisp.org>
6561
6562         mkstemp: Tweak configure message when cross-compiling.
6563         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
6564         result as a guess.
6565
6566 2011-04-27  Bruno Haible  <bruno@clisp.org>
6567
6568         clean-temp: Clarify what it does.
6569         * lib/clean-temp.h: Add more comments.
6570         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
6571         module.
6572         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
6573         * doc/glibc-functions/mkstemps.texi: Likewise.
6574         * doc/glibc-functions/mkostemps.texi: Likewise.
6575
6576 2011-04-27  Eric Blake  <eblake@redhat.com>
6577
6578         fchdir: avoid extra chdir and fix test
6579         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
6580         getcwd-lgpl.
6581         * lib/fchdir.c (get_name): Any absolute name will do; it does not
6582         have to be canonical.
6583         (canonicalize_file_name): Drop unused macro.
6584         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
6585
6586         filenamecat-lgpl: fix licence
6587         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
6588         when it was first created.
6589
6590         linkat, renameat: add missing dependency
6591         * modules/linkat (Depends-on): Require getcwd-lgpl.
6592         * modules/renameat (Depends-on): Likewise.
6593
6594         tests: reduce dependencies
6595         * tests/test-linkat.c (main): Use lighter-weight getcwd.
6596         * tests/test-renameat.c (main): Likewise.
6597         * modules/linkat-tests (Depends-on): Relax dependency.
6598         * modules/renameat-tests (Depends-on): Likewise.
6599         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
6600         dependency explicit.
6601
6602         save-cwd: reduce default dependency
6603         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
6604         * lib/save-cwd.c: Update comments.
6605         * NEWS: Document the semantic change.
6606
6607         getcwd: enhance tests
6608         * tests/test-getcwd-lgpl.c: New file, taken from...
6609         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
6610         repeat long path stress tests from m4 probe.
6611         * modules/getcwd-lgpl-tests: New module.
6612         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
6613         * m4/getcwd-abort-bug.m4: Update comment.
6614         * m4/getcwd-path-max.m4: Likewise.
6615
6616         getcwd-lgpl: new module
6617         * modules/getcwd-lgpl: New module.
6618         * lib/getcwd-lgpl.c: New file.
6619         * doc/posix-functions/getcwd.texi (getcwd): Document it.
6620         * MODULES.html.sh (lacking POSIX:2008): Likewise.
6621         * modules/getcwd (configure.ac): Set C witness.
6622         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
6623
6624         getcwd: tweak comments
6625         * m4/getcwd-abort-bug.m4: Fix comments.
6626         * m4/getcwd-path-max.m4: Likewise.
6627         * m4/getcwd.m4: Likewise.
6628
6629 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
6630         and Eric Blake  <eblake@redhat.com>
6631
6632         mkstemp: replace if system version uses wrong permissions
6633         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
6634         read/write mode bits set in file created by mkstemp.
6635         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
6636
6637 2011-04-27  Eric Blake  <eblake@redhat.com>
6638
6639         passfd: avoid compiler warning
6640         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
6641         Reported by Laine Stump.
6642
6643 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
6644
6645         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
6646         required by the NetBSD (and perhaps other 4.4BSD derived) join.
6647
6648 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
6649         and Eric Blake  <eblake@redhat.com>
6650
6651         mkstemp: mention clean-temp module
6652         * lib/mkstemp.c: Add comment.
6653         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
6654
6655 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
6656
6657         inttypes: also provide default values for 32-bit tests
6658         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
6659         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
6660
6661 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
6662
6663         strtoumax: remove dependency on strtoimax
6664         This is like the strtoull change of yesterday.
6665         * modules/strtoumax (Files): Add lib/strtoimax.c.
6666         (Depends-on): Remove strtoimax and add verify.
6667
6668         inttypes-incomplete: new module
6669         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
6670         all but the PRI* and SCN* parts of gl_INTTYPES_H.
6671         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
6672         of gl_INTTYPES_H.
6673         (gl_INTTYPES_H): Rewrite in terms of these new macros.
6674         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
6675         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
6676         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
6677         * modules/strtoumax, modules/xstrtol (Depends-on):
6678         Depend on inttypes-incomplete, not inttypes.
6679         * modules/inttypes-incomplete: New module, containing the contents
6680         of the old modules/inttypes module, except that the Files: section
6681         omits m4/inttypes-pri.m4, and the configure.ac section invokes
6682         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
6683         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
6684         (Depends-on): Depend only on inttypes-incomplete.
6685         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
6686
6687         inttypes: omit now-redundant strtoimax and strtoumax work
6688         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
6689         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
6690
6691         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
6692         This supports apps that need pointers to strtoimax and strtoumax,
6693         and ports to HP-UX 11.00 64.bit, which has macros that expand to
6694         nonexistent functions.  See
6695         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
6696         et seq.
6697         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
6698         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
6699         a macro.
6700         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
6701
6702 2011-04-25  Simon Josefsson  <simon@josefsson.org>
6703
6704         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
6705
6706 2011-04-25  Bruno Haible  <bruno@clisp.org>
6707
6708         strtol, strtoul: Mark modules as obsolete.
6709         * modules/strtol (Status, Notice): New sections.
6710         * modules/strtoul (Status, Notice): New sections.
6711
6712 2011-04-25  Bruno Haible  <bruno@clisp.org>
6713
6714         strtod: Remove check for strtod, unless supporting old platforms.
6715         * modules/strtod-obsolete: New file.
6716         * m4/strtod-obsolete.m4: New file.
6717         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
6718         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
6719         * modules/strtod (Depends-on): Add strtod-obsolete.
6720         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
6721
6722 2011-04-25  Bruno Haible  <bruno@clisp.org>
6723
6724         strcase: Make module obsolete.
6725         * modules/strcase (Status, Notice): New sections.
6726
6727 2011-04-25  Bruno Haible  <bruno@clisp.org>
6728
6729         dup2: Remove check for dup2, unless supporting old obsolete platforms.
6730         * modules/dup2-obsolete: New file.
6731         * m4/dup2-obsolete.m4: New file.
6732         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
6733         gl_FUNC_DUP2_OBSOLETE is not also defined.
6734         * modules/dup2 (Depends-on): Add dup2-obsolete.
6735         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
6736
6737 2011-04-25  Bruno Haible  <bruno@clisp.org>
6738
6739         strnlen: Avoid memchr related link error on old obsolete platforms.
6740         * modules/memchr-obsolete: New file.
6741         * m4/memchr-obsolete.m4: New file.
6742         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
6743         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
6744         * modules/memchr (Depends-on): Add memchr-obsolete.
6745         * modules/strnlen (Depends-on): Likewise.
6746         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
6747
6748 2011-04-25  Jim Meyering  <meyering@redhat.com>
6749
6750         maint.mk: makefile_at_at_check extend and clean up
6751         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
6752         in addition to */Makefile.am.
6753         Exempt legitimate uses of @VAR@ notation, e.g.,
6754         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
6755         Remove obsolete coreutils-specific comment.
6756         Prompted by discussion here:
6757         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
6758
6759 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
6760
6761         strtoul: remove dependency on strtol
6762         This is so that 'configure' need not check for strtol merely because
6763         the application needs strtoul.
6764         * modules/strtoul (Files): Add lib/strtol.c.
6765         (Depends-on): Remove strtol.
6766
6767         strtoull: remove dependency on strtoul
6768         This is like the strtoll change.
6769         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
6770         (Depends-on): Remove strtoul.
6771
6772         strtoll: remove dependency on strtol
6773         This is so that 'configure' need not check for strtol merely because
6774         the application needs strtoll.
6775         * modules/strtoll (Files): Add lib/strtol.c.
6776         (Depends-on): Remove strtol.
6777
6778 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
6779
6780         inttypes: Move some configure check to module 'imaxdiv'.
6781         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
6782         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
6783         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
6784
6785 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
6786
6787         inttypes: Move some configure check to module 'imaxabs'.
6788         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
6789         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
6790         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
6791
6792 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
6793
6794         inttypes: Remove configure tests that are not needed since 2009-12-31.
6795         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
6796         gl_cv_header_working_inttypes_h.
6797
6798 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
6799
6800         * modules/strnlen (Depends-on): Remove memchr.
6801         The strnlen implementation doesn't need the memchr module's fixes; see
6802         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
6803
6804         strtol: remove dependency on wchar
6805         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
6806         * modules/strtol (Depends-on): Remove wchar.
6807
6808 2011-04-21  Eric Blake  <eblake@redhat.com>
6809
6810         passfd: fix test regression on Linux
6811         * modules/passfd-tests (configure.ac): Correct socketpair check.
6812
6813         passfd: speed up configure and drop unused code
6814         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
6815         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
6816         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
6817         Instead of probing at configure for unix_scm_rights_bsd44_way,
6818         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
6819         check to a struct member probe.
6820         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
6821         (sendfd, recvfd): Update preprocessor checks.
6822         * modules/passfd (Files): Reflect rename, and drop unused file.
6823         (Depends-on): Drop unused dependency.
6824
6825         passfd: allow compilation on mingw
6826         * modules/sys_socket (Depends-on): Add sys_uio.
6827         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
6828         iovec and a minimal struct msghdr.
6829         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
6830         * tests/test-sys_socket.c (main): Enhance test.
6831         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
6832         guaranteed to provide what we need.
6833         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
6834         * modules/passfd-tests (Depends-on): Add sys_wait.
6835         * tests/test-passfd.c (main): Skip test on mingw, for now.
6836         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
6837         partial 'struct msghdr' implementation.
6838
6839         sys_uio: new module
6840         * modules/sys_uio: New module.
6841         * modules/sys_uio-tests: Likewise.
6842         * lib/sys_uio.in.h: New file.
6843         * m4/sys_uio_h.m4: Likewise.
6844         * tests/test-sys_uio.c: Likewise.
6845         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
6846         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
6847
6848 2011-04-20  Jim Meyering  <meyering@redhat.com>
6849
6850         useless-if-before-free: avoid false-positive
6851         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
6852         disjunct so that it too requires a terminating ";".  Without that,
6853         this script would identify as useless one statement from gcc that
6854         was not:
6855           if (aligned_ptr)
6856             free (((void **) aligned_ptr) [-1]);
6857
6858 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
6859
6860         doc: update users.txt.
6861         * users.txt: Add barcode.
6862
6863 2011-04-19  Bruno Haible  <bruno@clisp.org>
6864
6865         ioctl: Remove link dependency on native Windows.
6866         * lib/fd-hook.h: Renamed from lib/close-hook.h.
6867         (gl_close_fn, gl_ioctl_fn): New types.
6868         (struct fd_hook): Renamed from struct close_hook. Change type of
6869         private_close_fn field. Add private_ioctl_fn field.
6870         (close_hook_fn): Add parameter for primary close method.
6871         (execute_close_hooks, execute_all_close_hooks): Likewise.
6872         (ioctl_hook_fn): New type.
6873         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
6874         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
6875         argument.
6876         (unregister_fd_hook): Renamed from unregister_close_hook.
6877         * lib/fd-hook.c: Renamed from lib/close-hook.c.
6878         Don't include <unistd.h>.
6879         (close): Remove undef.
6880         (anchor): Update.
6881         (execute_close_hooks): Add argument for primary close method.
6882         (execute_all_close_hooks): Likewise.
6883         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
6884         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
6885         argument. Allow each argument to be NULL.
6886         (unregister_fd_hook): Renamed from unregister_close_hook.
6887         * lib/close.c (rpl_close): Pass 'close' function pointer to
6888         execute_all_close_hooks.
6889         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
6890         (primary_ioctl): New function.
6891         (ioctl): Don't call ioctlsocket here. Instead, call
6892         execute_all_ioctl_hooks.
6893         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
6894         close method.
6895         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
6896         (fd_sockets_hook): Renamed from close_sockets_hook.
6897         (gl_sockets_startup, gl_sockets_cleanup): Update.
6898         * modules/fd-hook: Renamed from modules/close-hook. Update.
6899         * modules/close (Depends-on): Add fd-hook, remove close-hook.
6900         * modules/sockets (Depends-on): Likewise.
6901         * modules/ioctl (Depends-on): Add fd-hook.
6902         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
6903         GNULIB_SOCKET.
6904
6905 2011-04-19  Bruno Haible  <bruno@clisp.org>
6906
6907         Move the support of O_NONBLOCK in open() to the 'open' module.
6908         * modules/nonblocking (Depends-on): Remove 'open'.
6909         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
6910         gl_cv_have_open_O_NONBLOCK.
6911         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
6912         O_NONBLOCK support.
6913         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
6914
6915 2011-04-17  Bruno Haible  <bruno@clisp.org>
6916
6917         pipe2: Simplify code.
6918         * lib/pipe2.c (pipe2): Reduce code duplication.
6919
6920 2011-04-17  Bruno Haible  <bruno@clisp.org>
6921
6922         nonblocking: Add comment.
6923         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
6924
6925 2011-04-17  Bruno Haible  <bruno@clisp.org>
6926
6927         nonblocking: Add tests for sockets.
6928         * tests/test-nonblocking-socket.sh: New file.
6929         * tests/test-nonblocking-socket-main.c: New file.
6930         * tests/test-nonblocking-socket-child.c: New file.
6931         * tests/test-nonblocking-socket.h: New file.
6932         * tests/socket-server.h: New file.
6933         * tests/socket-client.h: New file.
6934         * modules/nonblocking-socket-tests: New file.
6935         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
6936
6937 2011-04-17  Bruno Haible  <bruno@clisp.org>
6938
6939         nonblocking: Add tests for pipes.
6940         * tests/test-nonblocking-pipe.sh: New file.
6941         * tests/test-nonblocking-pipe-main.c: New file.
6942         * tests/test-nonblocking-pipe-child.c: New file.
6943         * tests/test-nonblocking-pipe.h: New file.
6944         * tests/test-nonblocking-writer.h: New file.
6945         * tests/test-nonblocking-reader.h: New file.
6946         * tests/test-nonblocking-misc.h: New file.
6947         * modules/nonblocking-pipe-tests: New file.
6948         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
6949
6950 2011-04-16  Bruno Haible  <bruno@clisp.org>
6951
6952         gettext: Clarify the needed programmer actions.
6953         * modules/gettext (Notice): New field.
6954         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
6955
6956 2011-04-16  Bruno Haible  <bruno@clisp.org>
6957
6958         strchrnul: Tweak last commit.
6959         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
6960         bug.
6961         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
6962         as in _GL_FUNCDECL_SYS.
6963         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
6964         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
6965
6966 2011-04-15  Eric Blake  <eblake@redhat.com>
6967
6968         strchrnul: work around cygwin bug
6969         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
6970         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
6971         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
6972         * modules/string (Makefile.am): Substitute it.
6973         * lib/string.in.h (strchrnul): Use it.
6974
6975 2011-04-15  Bruno Haible  <bruno@clisp.org>
6976
6977         Don't require lib/stdio-write.c when only module 'stdio' is used.
6978         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
6979         invocation.
6980         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
6981
6982 2011-04-14  Bruno Haible  <bruno@clisp.org>
6983
6984         Support non-blocking pipe I/O in read() on native Windows.
6985         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
6986         (read): New declaration.
6987         * lib/read.c: New file.
6988         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
6989         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
6990         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
6991         vscanf): New declarations.
6992         * lib/stdio-read.c: New file.
6993         * m4/read.m4: New file.
6994         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
6995         REPLACE_READ.
6996         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
6997         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
6998         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
6999         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
7000         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
7001         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
7002         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
7003         * modules/read: New file.
7004         * modules/nonblocking (Files): Add lib/stdio-read.c.
7005         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
7006         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
7007         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
7008         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
7009         * modules/pread (Depends-on): Add read.
7010         * modules/safe-read (Depends-on): Likewise.
7011         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
7012         gets, scanf, vfscanf, vscanf): Verify signatures.
7013         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
7014         problem with non-blocking pipes.
7015         * doc/posix-functions/fgetc.texi: Likewise.
7016         * doc/posix-functions/fgets.texi: Likewise.
7017         * doc/posix-functions/fread.texi: Likewise.
7018         * doc/posix-functions/fscanf.texi: Likewise.
7019         * doc/posix-functions/getc.texi: Likewise.
7020         * doc/posix-functions/getchar.texi: Likewise.
7021         * doc/posix-functions/gets.texi: Likewise.
7022         * doc/posix-functions/scanf.texi: Likewise.
7023         * doc/posix-functions/vfscanf.texi: Likewise.
7024         * doc/posix-functions/vscanf.texi: Likewise.
7025
7026 2011-04-14  Bruno Haible  <bruno@clisp.org>
7027
7028         Support non-blocking pipe I/O in write() on native Windows.
7029         * lib/write.c (rpl_write): Split a write request that failed merely
7030         because the byte count was larger than the pipe buffer's size.
7031         * doc/posix-functions/write.texi: Mention the problem with large byte
7032         counts.
7033
7034 2011-04-14  Bruno Haible  <bruno@clisp.org>
7035
7036         wchar: Ensure that wchar_t gets defined on uClibc.
7037         * lib/wchar.in.h: On uClibc, include <stddef.h>.
7038         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
7039
7040 2011-04-13  Bruno Haible  <bruno@clisp.org>
7041
7042         safe-write, full-read: Avoid unnecessary compilation units.
7043         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
7044         (Depends-on): Remove safe-read. Add ssize_t.
7045         * modules/full-read (Files): Add lib/full-write.c.
7046         (Depends-on): Add full-write.
7047
7048 2011-04-13  Bruno Haible  <bruno@clisp.org>
7049
7050         Support non-blocking pipe I/O and SIGPIPE in pwrite().
7051         * modules/pwrite (Depends-on): Add 'write'.
7052
7053 2011-04-13  Bruno Haible  <bruno@clisp.org>
7054
7055         Support non-blocking pipe I/O in write() on native Windows.
7056         * lib/unistd.in.h (write): Enable replacement also if
7057         GNULIB_UNISTD_H_NONBLOCKING is 1.
7058         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
7059         (rpl_write): When failing to write on a non-blocking pipe, change
7060         errno from ENOSPC to EAGAIN.
7061         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
7062         putchar, puts, vfprintf, vprintf): Enable replacement also if
7063         GNULIB_STDIO_H_NONBLOCKING is 1.
7064         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
7065         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
7066         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
7067         CALL_WITH_SIGPIPE_EMULATION.
7068         (CALL_WITH_SIGPIPE_EMULATION): Use them.
7069         * m4/nonblocking.m4: New file.
7070         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
7071         for non-blocking I/O support.
7072         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
7073         GNULIB_UNISTD_H_NONBLOCKING.
7074         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
7075         required for non-blocking I/O support.
7076         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
7077         * modules/nonblocking (Files): Add m4/nonblocking.m4,
7078         lib/stdio-write.c, m4/asm-underscore.m4.
7079         (Depends-on): Add stdio, unistd.
7080         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
7081         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
7082         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
7083         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
7084         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
7085         problem with non-blocking pipes.
7086         * doc/posix-functions/fputc.texi: Likewise.
7087         * doc/posix-functions/fputs.texi: Likewise.
7088         * doc/posix-functions/fwrite.texi: Likewise.
7089         * doc/posix-functions/printf.texi: Likewise.
7090         * doc/posix-functions/putc.texi: Likewise.
7091         * doc/posix-functions/putchar.texi: Likewise.
7092         * doc/posix-functions/puts.texi: Likewise.
7093         * doc/posix-functions/vfprintf.texi: Likewise.
7094         * doc/posix-functions/vprintf.texi: Likewise.
7095         * doc/posix-functions/write.texi: Likewise.
7096
7097 2011-04-10  Jim Meyering  <meyering@redhat.com>
7098
7099         maint.mk: prohibit doubled words
7100         Detect them also when they're separated by a newline.
7101         There are 3 ways to customize it:
7102           - disable the test on a per file basis, as usual with rules using
7103             $(VC_LIST_EXCEPT)
7104           - replace the default doubled-word-selecting regexp (affects all files)
7105           - ignore a particular file-vs-doubled-word match
7106         I nearly used that last one to ignore the "is is" match in
7107         coreutils' NEWS file, since the text was "ls -is is ..."
7108         To do that, I would have added this line to cfg.mk:
7109           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
7110         but it would have ignored any "is is" match in NEWS.
7111         Low probability, but still...
7112         Instead, I changed the text, slightly:
7113           -  ls -is is now consistent with ls -lis in ignoring values returned
7114           +  "ls -is" is now consistent with ls -lis in ignoring values returned
7115         * top/maint.mk (prohibit_double_word_RE_): Provide default.
7116         (prohibit_doubled_word_): Define.
7117         (sc_prohibit_doubled_word): New rule.
7118         (sc_prohibit_the_the): Remove.  Subsumed by the above.
7119
7120 2011-04-10  Jim Meyering  <meyering@redhat.com>
7121
7122         maint: fix doubled-word typo in comment
7123         * m4/gethostname.m4: s/is is/it is/
7124         * m4/getdomainname.m4: Likewise.
7125
7126 2011-04-10  Jim Meyering  <meyering@redhat.com>
7127
7128         maint: remove doubled word: s/it it/it/
7129         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
7130
7131 2011-04-10  Jim Meyering  <meyering@redhat.com>
7132
7133         maint.mk: remove useless semicolon and backslash
7134         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
7135         semicolon and backslash.
7136
7137 2011-04-10  Bruno Haible  <bruno@clisp.org>
7138
7139         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
7140         * modules/stdint-tests (Depends-on): Add wchar.
7141
7142 2011-04-10  Jim Meyering  <meyering@redhat.com>
7143
7144         maint: remove doubled words in comments, e.g., s/a a/a/
7145         * lib/strptime.c (day_of_the_week): s/the the/the/
7146         * tests/test-chown.h (test_chown): s/a a/a/
7147
7148         test-chown.h: correct a cast
7149         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
7150         when the destination is a stat.st_gid.
7151
7152 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
7153
7154         getaddrinfo: Fix test for sa_len member.
7155         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
7156         include <sys/types.h> before <sys/socket.h>.
7157
7158 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
7159
7160         maint: change "can not" to "cannot"
7161         * doc/posix-functions/iconv.texi (iconv): This one crossed line
7162         boundaries.
7163
7164 2011-04-09  Jim Meyering  <meyering@redhat.com>
7165
7166         maint: change "a a" to "a"
7167         * tests/test-lchown.h (test_lchown): s/a a/a/
7168
7169         maint.mk: prohibit \<the the\>
7170         * top/maint.mk (sc_prohibit_the_the): New rule.
7171
7172         maint: fix "the the" in comment
7173         * lib/count-one-bits.h: s/the the/the/
7174
7175         maint: change "can not" to "cannot"
7176         But do not change the occurrences in maintain.texi or in
7177         build-aux/po/Makefile.in.in, which I presume comes from gettext.
7178         * doc/gnulib-tool.texi: s/can not/cannot/
7179         * doc/posix-functions/accept.texi (accept): Likewise.
7180         * doc/posix-functions/socket.texi (socket): Likewise.
7181         * lib/mbrtowc.c: Likewise.
7182
7183         maint.mk: prohibit use of "can not"
7184         * top/maint.mk (sc_prohibit_can_not): New rule.
7185         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
7186
7187 2011-04-09  Bruno Haible  <bruno@clisp.org>
7188
7189         careadlinkat: Guard against misuse of careadlinkatcwd.
7190         * lib/careadlinkat.c: Include <stdlib.h>.
7191         (careadlinkatcwd): Check that the fd argument is as expected.
7192
7193 2011-04-09  Bruno Haible  <bruno@clisp.org>
7194
7195         careadlinkat: Use common coding style.
7196         * lib/careadlinkat.c: Move gnulib includes after system includes.
7197
7198 2011-04-09  Bruno Haible  <bruno@clisp.org>
7199
7200         careadlinkat: Clarify specification.
7201         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
7202         (careadlinkatcwd): Add comment.
7203         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
7204
7205 2011-04-09  Bruno Haible  <bruno@clisp.org>
7206
7207         areadlinkat: Avoid link error on many platforms.
7208         * modules/areadlinkat (Depends-on): Add areadlink.
7209
7210 2011-04-09  Bruno Haible  <bruno@clisp.org>
7211
7212         allocator, careadlinkat: Fix double-inclusion guard.
7213         * lib/allocator.h: Fix double-inclusion guard.
7214         * lib/careadlinkat.h: Likewise.
7215
7216 2011-04-09  Bruno Haible  <bruno@clisp.org>
7217
7218         relocatable-prog-wrapper: Update after module 'areadlink' changed.
7219         * lib/relocwrapper.c: Update dependencies hierarchy.
7220         * build-aux/install-reloc: Update list of files to be compiled.
7221         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
7222         lib/allocator.[hc].
7223
7224 2011-04-08  Eric Blake  <eblake@redhat.com>
7225
7226         strftime: silence gnulib-tool warning
7227         * modules/strftime-tests (Depends-on): Drop automatic dependency.
7228
7229 2011-04-08  Bruno Haible  <bruno@clisp.org>
7230
7231         verify: Fix syntax error with GCC 4.6 in C++ mode.
7232         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
7233         (HAVE_STATIC_ASSERT): New macro.
7234         (verify_true, verify): Use 'static_assert' if it is supported and
7235         '_Static_assert' is not supported.
7236
7237 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
7238
7239         allocator: New module.
7240         * modules/allocator, lib/allocator.c: New files.
7241         * lib/allocator.h (stdlib_allocator): New decl.
7242         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
7243         Remove.  Do not include <stdlib.h>.
7244         (careadlinkat): Use stdlib_allocator instead of rolling our own.
7245         * modules/careadlinkat (Files): Remove lib/allocator.h.
7246         (Depends-on): Add allocator.
7247
7248         stdlib: let modules use system malloc, realloc
7249         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
7250         if !_GL_USE_STDLIB_ALLOC.
7251         (malloc, realloc): Limit this change to a smaller scope.
7252
7253         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
7254         (malloc, realloc): Don't #undef; no longer needed.
7255         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
7256         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
7257         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
7258         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
7259         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
7260         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
7261         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
7262         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
7263
7264         careadlinkat: rename members to avoid problem
7265         * lib/allocator.h (struct allocator): Rename members from
7266         malloc/realloc to allocate/reallocate, to avoid problems if malloc
7267         and realloc are #define'd.  Reported by Eric Blake in
7268         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
7269         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
7270
7271 2011-04-08  Eric Blake  <eblake@redhat.com>
7272
7273         nonblocking: reduce dependency
7274         * tests/test-nonblocking.c: Only test sockets when in use.
7275         * modules/nonblocking-tests (Depends-on): Drop socket.
7276         (Makefile.am): Link even if sockets are not present.
7277         * modules/pipe2-tests (Makefile.am): Likewise.
7278         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
7279
7280         pipe2: fix O_NONBLOCK support on mingw
7281         * modules/pipe2 (Depends-on): Add nonblocking.
7282         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
7283         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
7284         * tests/test-nonblocking.c (main): Likewise.
7285         * modules/pipe2-tests (Makefile.am): Avoid link failure.
7286
7287         fcntl-h: fix O_ACCMODE on cygwin
7288         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
7289         * lib/fcntl.in.h (O_ACCMODE): Fix it.
7290
7291         pipe-filter: drop O_NONBLOCK workarounds
7292         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
7293         * modules/pipe-filter-ii (Depends-on): Likewise.
7294         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
7295
7296         nonblocking: provide O_NONBLOCK for mingw
7297         * modules/nonblocking (Depends-on): Add open.
7298         (configure.ac): Set new witness macro.
7299         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
7300         * modules/fcntl-h (Makefile.am): Substitute it.
7301         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
7302         nonblocking module is in use.
7303         * lib/nonblocking.c: Adjust portability test.
7304         * lib/open.c (open): Don't let native open see gnulib flag.
7305         * tests/test-fcntl-h.c (main): Enhance test.
7306         * tests/test-open.h (test_open): Likewise.
7307         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
7308
7309         careadlinkat: fix compilation error on mingw
7310         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
7311         within struct allocator.
7312
7313 2011-04-06  Eric Blake  <eblake@redhat.com>
7314
7315         binary-io: relicense under LGPLv2+
7316         * modules/binary-io (License): Relax to LGPLv2+.
7317         Requested for libvirt, and required by pipe2.
7318
7319 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
7320
7321         verify: use _Static_assert if available
7322         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
7323         (verify_true, verify): Use it if available.  This generates better
7324         diagnostics with GCC 4.6.0 and later.
7325
7326 2011-04-05  Bruno Haible  <bruno@clisp.org>
7327
7328         Remove leftover generated .h files after config.status changed.
7329
7330         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
7331         GL_GENERATE_ALLOCA_H.
7332         * modules/alloca-opt (Makefile.am): Remove alloca.h if
7333         GL_GENERATE_ALLOCA_H evaluates to false.
7334
7335         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
7336         GL_GENERATE_ARGZ_H.
7337         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
7338         evaluates to false.
7339
7340         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
7341         GL_GENERATE_BYTESWAP_H.
7342         * modules/byteswap (Makefile.am): Remove byteswap.h if
7343         GL_GENERATE_BYTESWAP_H evaluates to false.
7344
7345         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
7346         GL_GENERATE_ERRNO_H.
7347         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
7348         evaluates to false.
7349
7350         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
7351         GL_GENERATE_FLOAT_H.
7352         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
7353         evaluates to false.
7354
7355         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
7356         GL_GENERATE_FNMATCH_H.
7357         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
7358         GL_GENERATE_FNMATCH_H evaluates to false.
7359
7360         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
7361         GL_GENERATE_GLOB_H.
7362         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
7363         evaluates to false.
7364
7365         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
7366         automake conditional GL_GENERATE_ICONV_H.
7367         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
7368         evaluates to false.
7369
7370         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
7371         GL_GENERATE_NETINET_IN_H.
7372         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
7373         GL_GENERATE_NETINET_IN_H evaluates to false.
7374
7375         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
7376         conditional GL_GENERATE_PTHREAD_H.
7377         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
7378         * modules/pthread (Makefile.am): Remove pthread.h if
7379         GL_GENERATE_PTHREAD_H evaluates to false.
7380
7381         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
7382         GL_GENERATE_SCHED_H.
7383         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
7384         evaluates to false.
7385
7386         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
7387         conditional GL_GENERATE_SELINUX_CONTEXT_H.
7388         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
7389         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
7390
7391         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
7392         GL_GENERATE_STDARG_H.
7393         * modules/stdarg (Makefile.am): Remove stdarg.h if
7394         GL_GENERATE_STDARG_H evaluates to false.
7395
7396         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
7397         GL_GENERATE_STDBOOL_H.
7398         * modules/stdbool (Makefile.am): Remove stdbool.h if
7399         GL_GENERATE_STDBOOL_H evaluates to false.
7400
7401         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
7402         conditional GL_GENERATE_STDDEF_H.
7403         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
7404         * modules/stddef (Makefile.am): Remove stddef.h if
7405         GL_GENERATE_STDDEF_H evaluates to false.
7406
7407         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
7408         GL_GENERATE_STDINT_H.
7409         * modules/stdint (Makefile.am): Remove stdint.h if
7410         GL_GENERATE_STDINT_H evaluates to false.
7411
7412         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
7413         GL_GENERATE_SYSEXITS_H.
7414         * modules/sysexits (Makefile.am): Remove sysexits.h if
7415         GL_GENERATE_SYSEXITS_H evaluates to false.
7416
7417         Reported by Karl Berry and Ralf Wildenhues.
7418
7419 2011-04-05  Bruno Haible  <bruno@clisp.org>
7420
7421         Ensure to rebuild generated .h files when config.status has changed.
7422         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
7423         config.status.
7424         * modules/ctype (Makefile.am): Likewise.
7425         * modules/dirent (Makefile.am): Likewise.
7426         * modules/errno (Makefile.am): Likewise.
7427         * modules/fcntl-h (Makefile.am): Likewise.
7428         * modules/float (Makefile.am): Likewise.
7429         * modules/getopt-posix (Makefile.am): Likewise.
7430         * modules/glob (Makefile.am): Likewise.
7431         * modules/iconv-h (Makefile.am): Likewise.
7432         * modules/inttypes (Makefile.am): Likewise.
7433         * modules/langinfo (Makefile.am): Likewise.
7434         * modules/locale (Makefile.am): Likewise.
7435         * modules/math (Makefile.am): Likewise.
7436         * modules/netdb (Makefile.am): Likewise.
7437         * modules/netinet_in (Makefile.am): Likewise.
7438         * modules/poll-h (Makefile.am): Likewise.
7439         * modules/pthread (Makefile.am): Likewise.
7440         * modules/pty (Makefile.am): Likewise.
7441         * modules/sched (Makefile.am): Likewise.
7442         * modules/search (Makefile.am): Likewise.
7443         * modules/selinux-h (Makefile.am): Likewise.
7444         * modules/signal (Makefile.am): Likewise.
7445         * modules/spawn (Makefile.am): Likewise.
7446         * modules/stdarg (Makefile.am): Likewise.
7447         * modules/stdbool (Makefile.am): Likewise.
7448         * modules/stddef (Makefile.am): Likewise.
7449         * modules/stdint (Makefile.am): Likewise.
7450         * modules/stdio (Makefile.am): Likewise.
7451         * modules/stdlib (Makefile.am): Likewise.
7452         * modules/string (Makefile.am): Likewise.
7453         * modules/strings (Makefile.am): Likewise.
7454         * modules/sys_file (Makefile.am): Likewise.
7455         * modules/sys_ioctl (Makefile.am): Likewise.
7456         * modules/sys_select (Makefile.am): Likewise.
7457         * modules/sys_socket (Makefile.am): Likewise.
7458         * modules/sys_stat (Makefile.am): Likewise.
7459         * modules/sys_time (Makefile.am): Likewise.
7460         * modules/sys_times (Makefile.am): Likewise.
7461         * modules/sys_utsname (Makefile.am): Likewise.
7462         * modules/sys_wait (Makefile.am): Likewise.
7463         * modules/sysexits (Makefile.am): Likewise.
7464         * modules/termios (Makefile.am): Likewise.
7465         * modules/time (Makefile.am): Likewise.
7466         * modules/unistd (Makefile.am): Likewise.
7467         * modules/wchar (Makefile.am): Likewise.
7468         * modules/wctype-h (Makefile.am): Likewise.
7469         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
7470
7471 2011-04-05  Bruno Haible  <bruno@clisp.org>
7472
7473         pipe2: Relicense under LGPLv2+.
7474         * modules/pipe2 (License): Change to LGPLv2+.
7475         Requested by Eric Blake, for libvirt.
7476
7477 2011-04-05  Bruce Korb  <bkorb@gnu.org>
7478
7479         bootstrap: compute gnulib_extra_files after updating build_aux
7480         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
7481         change build_aux or also supply gnulib_extra_files.  Handle correctly.
7482
7483 2011-04-05  Eric Blake  <eblake@redhat.com>
7484
7485         bootstrap: preserve git whitelist item sorting
7486         * build-aux/bootstrap (sort_patterns): New function.
7487         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
7488
7489 2011-04-05  Simon Josefsson  <simon@josefsson.org>
7490
7491         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
7492         sc_space_tab check.
7493
7494 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
7495
7496         areadlink, areadlinkat: rewrite in terms of careadlinkat
7497         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
7498         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
7499         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
7500         (malloc, realloc): Remove #undefs.
7501         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
7502         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
7503         readlink, ssize_t, stdint, unistd.
7504         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
7505         areadlink, stdint.
7506
7507         careadlinkat: new module
7508         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
7509         * modules/careadlinkat: New files, written by me with
7510         a review and feedback from Ben Pfaff in
7511         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
7512
7513 2011-04-01  Bruno Haible  <bruno@clisp.org>
7514
7515         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
7516         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
7517         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
7518         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
7519         Reported by Bruce Korb <bruce.korb@gmail.com>.
7520
7521 2011-04-01  Bruno Haible  <bruno@clisp.org>
7522
7523         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
7524         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
7525         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
7526         * modules/wcpcpy (Depends-on): Add extensions.
7527         * modules/wcpncpy (Depends-on): Likewise.
7528         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
7529         systems.
7530         * doc/posix-functions/wcpncpy.texi: Likewise.
7531         * doc/posix-functions/wcwidth.texi: Likewise.
7532
7533 2011-03-31  Eric Blake  <eblake@redhat.com>
7534
7535         nonblocking: fix mingw test failures
7536         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
7537         non-blocking flag on regular file.
7538         (get_nonblocking_flag): Set errno on invalid fd.
7539         * tests/test-nonblocking.c (main): Avoid test failure on
7540         directories if fchdir is not active.
7541         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
7542
7543 2011-03-31  Bruno Haible  <bruno@clisp.org>
7544
7545         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
7546         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
7547         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
7548         Reported by Simon Josefsson <simon@josefsson.org>.
7549
7550 2011-03-31  Bruno Haible  <bruno@clisp.org>
7551         and Eric Blake  <eblake@redhat.com>
7552
7553         nonblocking: new module
7554         * modules/nonblocking: New module.
7555         * modules/nonblocking-tests: Likewise.
7556         * lib/nonblocking.h: New file.
7557         * lib/nonblocking.c: Likewise.
7558         * tests/test-nonblocking.c: New test.
7559         * lib/ioctl.c (ioctl) [mingw]: Update comment.
7560
7561 2011-03-30  Bruno Haible  <bruno@clisp.org>
7562
7563         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
7564         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
7565         instead of 'printf' format for GCC >= 4.4.
7566         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
7567         (fprintf, printf, vfprintf, vprintf): Declare with
7568         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
7569         the system's vfprintf() function.
7570         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
7571
7572 2011-03-30  Eric Blake  <eblake@redhat.com>
7573
7574         passfd: fix scoping bug
7575         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
7576         before sendmsg/recvmsg.
7577
7578         passfd: standardize coding conventions
7579         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
7580         can be learned at compile time.
7581         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
7582         ifdefs.
7583         (sendfd, recvfd): Follow gnulib code conventions.
7584
7585         passfd: fix incorrect sendmsg arguments
7586         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
7587         incorrect msg_controllen value.
7588         * modules/passfd-tests (Depends-on): Check for alarm.
7589         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
7590         Reported by Bastien ROUCARIES.
7591
7592 2011-03-30  Bruno Haible  <bruno@clisp.org>
7593
7594         c-strcasestr: Relicense under LGPLv2+.
7595         * modules/c-strcasestr (License): Change to LGPLv2+.
7596         Requested by Eric Blake, for libvirt.
7597
7598 2011-03-30  Simon Josefsson  <simon@josefsson.org>
7599
7600         * users.txt: Add libidn2.  Fix libtasn1 link.
7601
7602 2011-03-30  Jim Meyering  <meyering@redhat.com>
7603
7604         tests: readlink* ("",... fails with EINVAL on newer kernels
7605         readlink and readlinkat have typically failed with ENOENT for
7606         the invalid, empty file name,  "".  However, with the advent
7607         of linux-2.6.39, they fail with EINVAL.
7608         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
7609         when operating on the empty file name.
7610         * tests/test-readlink.h (test_readlink): Likewise.
7611
7612 2011-03-29  Bruno Haible  <bruno@clisp.org>
7613
7614         Relicense some modules under LGPLv2+, for libidn2.
7615         * modules/array-mergesort (License): Change to LGPLv2+.
7616         * modules/c-strcaseeq (License): Likewise.
7617         * modules/striconveh (License): Likewise.
7618         * modules/striconveha (License): Likewise.
7619         * modules/uniconv/base (License): Likewise.
7620         * modules/uniconv/u8-conv-from-enc (License): Likewise.
7621         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
7622         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
7623         * modules/unictype/base (License): Likewise.
7624         * modules/unictype/bidiclass-of (License): Likewise.
7625         * modules/unictype/category-M (License): Likewise.
7626         * modules/unictype/category-none (License): Likewise.
7627         * modules/unictype/category-of (License): Likewise.
7628         * modules/unictype/category-test (License): Likewise.
7629         * modules/unictype/category-test-withtable (License): Likewise.
7630         * modules/unictype/combining-class (License): Likewise.
7631         * modules/unictype/joiningtype-of (License): Likewise.
7632         * modules/unictype/scripts (License): Likewise.
7633         * modules/uninorm/base (License): Likewise.
7634         * modules/uninorm/canonical-decomposition (License): Likewise.
7635         * modules/uninorm/composition (License): Likewise.
7636         * modules/uninorm/decompose-internal (License): Likewise.
7637         * modules/uninorm/decomposition-table (License): Likewise.
7638         * modules/uninorm/nfc (License): Likewise.
7639         * modules/uninorm/nfd (License): Likewise.
7640         * modules/uninorm/u32-normalize (License): Likewise.
7641         * modules/unistr/base (License): Likewise.
7642         * modules/unistr/u32-cpy (License): Likewise.
7643         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
7644         * modules/unistr/u32-to-u8 (License): Likewise.
7645         * modules/unistr/u32-uctomb (License): Likewise.
7646         * modules/unistr/u8-check (License): Likewise.
7647         * modules/unistr/u8-mblen (License): Likewise.
7648         * modules/unistr/u8-mbtouc (License): Likewise.
7649         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
7650         * modules/unistr/u8-mbtoucr (License): Likewise.
7651         * modules/unistr/u8-prev (License): Likewise.
7652         * modules/unistr/u8-strlen (License): Likewise.
7653         * modules/unistr/u8-to-u32 (License): Likewise.
7654         * modules/unistr/u8-uctomb (License): Likewise.
7655         * modules/unitypes (License): Likewise.
7656         Requested by Simon Josefsson.
7657
7658 2011-03-29  Simon Josefsson  <simon@josefsson.org>
7659
7660         lib-symbol-visibility: Add a notice.
7661         * modules/lib-symbol-visibility (Notice): New field.
7662
7663 2011-03-29  Bruno Haible  <bruno@clisp.org>
7664
7665         getaddrinfo: Doc fix.
7666         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
7667         section "fixed in Gnulib".
7668
7669 2011-03-28  Simon Josefsson  <simon@josefsson.org>
7670
7671         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
7672         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
7673
7674 2011-03-26  Bruno Haible  <bruno@clisp.org>
7675
7676         unictype/property-byname: Reduce the number of load-time relocations.
7677         * lib/unictype/pr_byname.c: Include <stdlib.h>.
7678         (UC_PROPERTY_INDEX_*): New enumeration values.
7679         (uc_property_byname): Convert an index from the lookup table to an
7680         uc_property_t.
7681         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
7682         values.
7683
7684 2011-03-26  Bruno Haible  <bruno@clisp.org>
7685
7686         unictype/property-byname: Allow omitted word separators and aliases.
7687         * lib/unictype/pr_byname.gperf: Add property names without word
7688         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
7689         for 'space'.
7690
7691 2011-03-26  Bruno Haible  <bruno@clisp.org>
7692
7693         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
7694         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
7695         also hyphens to space.
7696         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
7697         without spaces.
7698         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
7699
7700 2011-03-26  Bruno Haible  <bruno@clisp.org>
7701
7702         unictype/joiningtype-byname: Recognize long names as well.
7703         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
7704         a long name.
7705         * lib/unictype/joiningtype_byname.c: Include <string.h>,
7706         unictype/joiningtype_byname.h.
7707         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
7708         * lib/unictype/joiningtype_byname.gperf: New file.
7709         * modules/unictype/joiningtype-byname (Files): Add
7710         lib/unictype/joiningtype_byname.gperf.
7711         (Depends-on): Add gperf.
7712         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
7713         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
7714         long names.
7715
7716         Tests for module 'unictype/joiningtype-longname'.
7717         * modules/unictype/joiningtype-longname-tests: New file.
7718         * tests/unictype/test-joiningtype_longname.c: New file.
7719
7720         New module 'unictype/joiningtype-longname'.
7721         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
7722         * lib/unictype/joiningtype_longname.c: New file.
7723         * modules/unictype/joiningtype-longname: New file.
7724         * modules/unictype/joiningtype-all (Depends-on): Add
7725         unictype/joiningtype-longname.
7726
7727 2011-03-26  Bruno Haible  <bruno@clisp.org>
7728
7729         unictype/bidiclass-byname: Recognize long names as well.
7730         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
7731         name.
7732         * lib/unictype/bidi_byname.c: Include <string.h>,
7733         unictype/bidi_byname.h.
7734         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
7735         * lib/unictype/bidi_byname.gperf: New file.
7736         * modules/unictype/bidiclass-byname (Files): Add
7737         lib/unictype/bidi_byname.gperf.
7738         (Depends-on): Add gperf.
7739         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
7740         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
7741         long names.
7742
7743         Tests for module 'unictype/bidiclass-longname'.
7744         * modules/unictype/bidiclass-longname-tests: New file.
7745         * tests/unictype/test-bidi_longname.c: New file.
7746
7747         New module 'unictype/bidiclass-longname'.
7748         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
7749         * lib/unictype/bidi_longname.c: New file.
7750         * modules/unictype/bidiclass-longname: New file.
7751         * modules/unictype/bidiclass-all (Depends-on): Add
7752         unictype/bidiclass-longname.
7753
7754 2011-03-26  Bruno Haible  <bruno@clisp.org>
7755
7756         unictype/bidi*: Rename modules.
7757         * modules/unictype/bidiclass-all: Renamed from
7758         modules/unictype/bidicategory-all.
7759         * modules/unictype/bidiclass-name: Renamed from
7760         modules/unictype/bidiclass-name.
7761         (Description): Update.
7762         * modules/unictype/bidiclass-name-tests: Renamed from
7763         modules/unictype/bidicategory-name-tests.
7764         * modules/unictype/bidiclass-byname: Renamed from
7765         modules/unictype/bidicategory-byname.
7766         (Description): Update.
7767         * modules/unictype/bidiclass-byname-tests: Renamed from
7768         modules/unictype/bidicategory-byname-tests.
7769         * modules/unictype/bidiclass-of: Renamed from
7770         modules/unictype/bidicategory-of.
7771         (Description): Update.
7772         * modules/unictype/bidiclass-of-tests: Renamed from
7773         modules/unictype/bidicategory-of-tests.
7774         * modules/unictype/bidiclass-test: Renamed from
7775         modules/unictype/bidicategory-test.
7776         (Description): Update.
7777         * modules/unictype/bidiclass-test-tests: Renamed from
7778         modules/unictype/bidicategory-test-tests.
7779         * modules/unictype/bidicategory-all: New file, a simple redirection.
7780         * modules/unictype/bidicategory-name: Likewise.
7781         * modules/unictype/bidicategory-byname: Likewise.
7782         * modules/unictype/bidicategory-of: Likewise.
7783         * modules/unictype/bidicategory-test: Likewise.
7784         * modules/unictype/property-bidi-* (Dependencies): Update.
7785         * lib/unictype/bidi_*.c: Update comment.
7786
7787 2011-03-26  Bruno Haible  <bruno@clisp.org>
7788
7789         unictype/bidi*: Rename functions, part 2.
7790         * modules/unictype/bidicategory-name (configure.ac): Update required
7791         libunistring version.
7792         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
7793
7794 2011-03-25  Bruno Haible  <bruno@clisp.org>
7795
7796         New module 'unictype/combining-class-all'.
7797         * modules/unictype/combining-class-all: New file.
7798
7799         Tests for module 'unictype/combining-class-byname'.
7800         * modules/unictype/combining-class-byname-tests: New file.
7801         * tests/unictype/test-combiningclass_byname.c: New file.
7802
7803         New module 'unictype/combining-class-byname'.
7804         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
7805         * lib/unictype/combiningclass_byname.c: New file.
7806         * lib/unictype/combiningclass_byname.gperf: New file.
7807         * modules/unictype/combining-class-byname: New file.
7808
7809         Tests for module 'unictype/combining-class-longname'.
7810         * modules/unictype/combining-class-longname-tests: New file.
7811         * tests/unictype/test-combiningclass_longname.c: New file.
7812
7813         New module 'unictype/combining-class-longname'.
7814         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
7815         * lib/unictype/combiningclass_longname.c: New file.
7816         * modules/unictype/combining-class-longname: New file.
7817
7818         Tests for module 'unictype/combining-class-name'.
7819         * modules/unictype/combining-class-name-tests: New file.
7820         * tests/unictype/test-combiningclass_name.c: New file.
7821
7822         New module 'unictype/combining-class-name'.
7823         * lib/unictype.in.h (uc_combining_class_name): New declaration.
7824         * lib/unictype/combiningclass_name.c: New file.
7825         * modules/unictype/combining-class-name: New file.
7826
7827 2011-03-25  Bruno Haible  <bruno@clisp.org>
7828
7829         unictype/combining-class: Rename source files.
7830         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
7831         of unictype/combining.h.
7832         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
7833         Update.
7834         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
7835         * modules/unictype/combining-class (Description): Fix.
7836         (Files, Makefile.am): Update.
7837         * tests/unictype/test-combiningclass.c: Renamed from
7838         tests/unictype/test-combining.c.
7839         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
7840
7841 2011-03-25  Bruno Haible  <bruno@clisp.org>
7842
7843         unictype: Update list of canonical combining classes.
7844         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
7845
7846 2011-03-25  Bruno Haible  <bruno@clisp.org>
7847
7848         unictype/category-byname: Recognize long names as well.
7849         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
7850         a long name.
7851         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
7852         unictype/categ_byname.h.
7853         (UC_CATEGORY_INDEX_*): New enumeration values.
7854         (uc_general_category_byname): Use uc_general_category_lookup and
7855         convert from index to value.
7856         * lib/unictype/categ_byname.gperf: New file.
7857         * modules/unictype/category-byname (Files): Add
7858         lib/unictype/categ_byname.gperf.
7859         (Depends-on): Add gperf.
7860         (Makefile.am): Add rule for generating unictype/categ_byname.h.
7861         * tests/unictype/test-categ_byname.c (main): Test the recognition of
7862         long names.
7863
7864         Tests for module 'unictype/category-longname'.
7865         * modules/unictype/category-longname-tests: New file.
7866         * tests/unictype/test-categ_longname.c: New file.
7867
7868         New module 'unictype/category-longname'.
7869         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
7870         * lib/unictype/categ_longname.c: New file.
7871         * modules/unictype/category-longname: New file.
7872         * modules/unictype/category-all (Depends-on): Add it.
7873
7874 2011-03-25  Bruno Haible  <bruno@clisp.org>
7875
7876         Tests for module 'unictype/category-LC'.
7877         * modules/unictype/category-LC-tests: New file.
7878         * tests/unictype/test-categ_LC.c: New file, automatically generated.
7879
7880         New module 'unictype/category-LC'.
7881         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
7882         (UC_CATEGORY_LC): New declaration.
7883         (UC_CASED_LETTER): New macro.
7884         * lib/gen-uni-tables.c (is_category_LC): New function.
7885         (output_categories): Also handle category LC.
7886         (UC_CATEGORY_MASK_LC): New enumeration value.
7887         (general_category_byname): Also handle category LC.
7888         * lib/unictype/categ_LC.c: New file.
7889         * lib/unictype/categ_LC.h: New file, automatically generated.
7890         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
7891         category LC.
7892         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
7893         * modules/unictype/category-LC: New file.
7894         * modules/unictype/category-byname (Depends-on): Add
7895         unictype/category-LC.
7896         * modules/unictype/category-all (Depends-on): Likewise.
7897
7898 2011-03-25  Eric Blake  <eblake@redhat.com>
7899
7900         xmalloc: revert yesterday's regression
7901         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
7902         realloc's underlying behavior (allowing allocation of zero-size
7903         objects, especially if malloc-gnu is also in use).
7904
7905 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
7906
7907         maint.mk: add missing version to VC-tag
7908         * top/maint.mk: git tag was missing actual tag name; add it.
7909
7910         valgrind: do leak checking, and exit with code 1 on error (not 0)
7911         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
7912         to VALGRIND.
7913
7914 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
7915
7916         posix-modules: say what it does.
7917         * posix-modules: Add a line to the --help output saying what it does.
7918
7919 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
7920
7921         xmalloc: Do not leak if underlying realloc is C99 compatible.
7922         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
7923         This avoids a leak on C99-based systems.  See
7924         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
7925
7926 2011-03-24  Eric Blake  <eblake@redhat.com>
7927
7928         realloc: document portability problem
7929         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
7930         passing 0 size to realloc.
7931
7932 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
7933
7934         doc: update users.txt
7935         * users.txt: Add cvsps, tmpwatch
7936
7937 2011-03-23  Matt Rice  <ratmice@gmail.com>
7938
7939         doc: update users.txt
7940         * users.txt: Add gdb.
7941
7942 2011-03-23  Jim Meyering  <meyering@redhat.com>
7943
7944         doc: update users.txt
7945         Looking through matches up to the following URL (there are still
7946         several more pages), I found several projects that use gnulib:
7947         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
7948         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
7949         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
7950
7951 2011-03-22  Bruno Haible  <bruno@clisp.org>
7952
7953         unictype/bidi*: Rename functions.
7954         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
7955         uc_bidi_class, uc_is_bidi_class): New declarations.
7956         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
7957         uc_bidi_category_byname.
7958         (uc_bidi_category_byname): New function.
7959         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
7960         u_bidi_category_name.
7961         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
7962         (uc_bidi_category_name): New function.
7963         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
7964         uc_bidi_category.
7965         (uc_bidi_category): New function.
7966         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
7967         uc_is_bidi_category. Invoke uc_bidi_class.
7968         (uc_is_bidi_category): New function.
7969         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
7970         instead of uc_bidi_category_byname.
7971         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
7972         instead of uc_bidi_category_name.
7973         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
7974         uc_bidi_category.
7975         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
7976         instead of uc_is_bidi_category.
7977
7978 2011-03-21  Bruno Haible  <bruno@clisp.org>
7979
7980         New module 'unictype/joininggroup-all'.
7981         * modules/unictype/joininggroup-all: New file.
7982
7983         Tests for module 'unictype/joininggroup-of'.
7984         * modules/unictype/joininggroup-of-tests: New file.
7985         * tests/unictype/test-joininggroup_of.c: New file.
7986         * tests/unictype/test-joininggroup_of.h: New file, automatically
7987         generated by gen-uni-tables.
7988
7989         New module 'unictype/joininggroup-of'.
7990         * modules/unictype/joininggroup-of: New file.
7991         * lib/unictype/joininggroup_of.c: New file.
7992         * lib/unictype/joininggroup_of.h: New file, automatically generated by
7993         gen-uni-tables.
7994
7995         Tests for module 'unictype/joininggroup-byname'.
7996         * modules/unictype/joininggroup-byname-tests: New file.
7997         * tests/unictype/test-joininggroup_byname.c: New file.
7998
7999         New module 'unictype/joininggroup-byname'.
8000         * modules/unictype/joininggroup-byname: New file.
8001         * lib/unictype/joininggroup_byname.c: New file.
8002         * lib/unictype/joininggroup_byname.gperf: New file.
8003
8004         Tests for module 'unictype/joininggroup-name'.
8005         * modules/unictype/joininggroup-name-tests: New file.
8006         * tests/unictype/test-joininggroup_name.c: New file.
8007
8008         New module 'unictype/joininggroup-name'.
8009         * modules/unictype/joininggroup-name: New file.
8010         * lib/unictype/joininggroup_name.c: New file.
8011         * lib/unictype/joininggroup_name.h: New file.
8012
8013         New module 'unictype/joiningtype-all'.
8014         * modules/unictype/joiningtype-all: New file.
8015
8016         Tests for module 'unictype/joiningtype-of'.
8017         * modules/unictype/joiningtype-of-tests: New file.
8018         * tests/unictype/test-joiningtype_of.c: New file.
8019         * tests/unictype/test-joiningtype_of.h: New file, automatically
8020         generated by gen-uni-tables.
8021
8022         New module 'unictype/joiningtype-of'.
8023         * modules/unictype/joiningtype-of: New file.
8024         * lib/unictype/joiningtype_of.c: New file.
8025         * lib/unictype/joiningtype_of.h: New file, automatically generated by
8026         gen-uni-tables.
8027
8028         Tests for module 'unictype/joiningtype-byname'.
8029         * modules/unictype/joiningtype-byname-tests: New file.
8030         * tests/unictype/test-joiningtype_byname.c: New file.
8031
8032         New module 'unictype/joiningtype-byname'.
8033         * modules/unictype/joiningtype-byname: New file.
8034         * lib/unictype/joiningtype_byname.c: New file.
8035
8036         Tests for module 'unictype/joiningtype-name'.
8037         * modules/unictype/joiningtype-name-tests: New file.
8038         * tests/unictype/test-joiningtype_name.c: New file.
8039
8040         New module 'unictype/joiningtype-name'.
8041         * modules/unictype/joiningtype-name: New file.
8042         * lib/unictype/joiningtype_name.c: New file.
8043
8044         unictype: Add support for Arabic shaping properties.
8045         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
8046         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
8047         declarations.
8048         (UC_JOINING_GROUP_*): New enumeration values.
8049         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
8050         declarations.
8051         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
8052         (unicode_joining_type): New variable.
8053         (UC_JOINING_GROUP_*): New enumeration values.
8054         (unicode_joining_group): New variable.
8055         (fill_arabicshaping, joining_type_as_c_identifier,
8056         output_joining_type_test, output_joining_type,
8057         joining_group_as_c_identifier, output_joining_group_test,
8058         output_joining_group): New functions.
8059         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
8060         fill_arabicshaping and output_joining_type_test, output_joining_type,
8061         output_joining_group_test, output_joining_group.
8062         Reported by Simon Josefsson.
8063
8064 2011-03-21  Jim Meyering  <meyering@redhat.com>
8065
8066         strftime: fix a bug in yesterday's change
8067         * lib/strftime.c (add): Accommodate width's initial value of -1.
8068         Otherwise, nstrftime would copy uninitialized data into
8069         the result buffer.
8070
8071 2011-03-21  Jim Meyering  <meyering@redhat.com>
8072
8073         tests: add strftime-tests module
8074         * tests/test-strftime.c: New file.
8075         * modules/strftime-tests: New module.
8076
8077 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
8078
8079         strftime: don't assume a byte count fits in 'int'
8080         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
8081         found this problem by static analysis, using gcc -Wstrict-overflow
8082         (GCC 4.5.2, x86-64).  This reported an optimization that depended
8083         on an integer overflow having undefined behavior, but it turns out
8084         that the argument is a size, which might not fit in 'int' anyway,
8085
8086 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
8087
8088         stdio: don't require ignore_value around fwrite
8089
8090         This patch works around libc bug 11959
8091         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
8092         Without this patch, applications must often write
8093         ignore_value (fwrite (...)) even though the ignore_value is
8094         not helpful here.  It's common to write many objects, using
8095         fwrite/printf/etc., and then use ferror to detect output error.
8096
8097         I considered making this patch optional, but decided against it,
8098         because libc is obviously being inconsistent here: there is no
8099         reason libc should insist that user code must inspect fwrite
8100         return's value without also insisting that it inspect printf's,
8101         putchar's, etc.  If user code wants to have a strict style where
8102         all these functions' values are checked (so that ferror need not
8103         be checked), we could add support for that style in a new gnulib
8104         module, but in the meantime it's better to be consistent and to
8105         support common usage.
8106
8107         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
8108         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
8109         that we are compiling in checking mode, and if not C++, and
8110         if not already wrapping fwrite for some other reason.
8111         (fwrite): #define to rpl_fwrite if the latter is defined.
8112
8113 2011-03-20  Bruno Haible  <bruno@clisp.org>
8114
8115         verror: Fix compilation error introduced on 2011-02-13.
8116         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
8117         instead of __attribute__.
8118         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8119
8120 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
8121             Bruno Haible  <bruno@clisp.org>
8122
8123         socklen: do not depend on sys_socket
8124         While trying to modify Emacs to use gnulib's socklen module,
8125         I discovered a circular dependency: socklen depends on sys_socket
8126         and vice versa.  Emacs can use socklen, but it does not need
8127         sys_socket because it has its own substitute for sys/socket.h.
8128         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
8129         gl_TYPE_SOCKLEN_T.
8130         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
8131         gl_PREREQ_SYS_H_SOCKET.
8132         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
8133         gl_PREREQ_SYS_H_SOCKET.
8134         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
8135         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
8136         * modules/socklen (Depends-on): Do not depend on sys_socket.
8137         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
8138
8139 2011-03-20  Jim Meyering  <meyering@redhat.com>
8140
8141         maint.mk: sort file names *after* new transformation
8142         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
8143         prefix would have led to an unwarranted failure in GNU parted.
8144         Sort after that transformation.
8145
8146 2011-03-19  Jim Meyering  <meyering@redhat.com>
8147
8148         maint.mk: fix po-file syntax-check rule
8149         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
8150         Patch by Bruno Haible.
8151
8152 2011-03-19  Bruno Haible  <bruno@clisp.org>
8153
8154         socklen: Update comment.
8155         * m4/socklen.m4: Update comment about platforms.
8156
8157 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
8158             Bruno Haible  <bruno@clisp.org>
8159
8160         inet_ntop, inet_pton: Simplify.
8161         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
8162         documented to provide socklen_t and we already depend on sys_socket.
8163         * modules/inet_pton (Depends-on): Likewise.
8164         * lib/arpa_inet.in.h: Adjust comment.
8165
8166 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
8167             Bruno Haible  <bruno@clisp.org>
8168
8169         netdb: Simplify.
8170         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
8171         documented to provide socklen_t and we already depend on sys_socket.
8172         * lib/netdb.in.h: Adjust comment.
8173
8174 2011-03-19  Bruno Haible  <bruno@clisp.org>
8175
8176         sys_socket, netdb: Document problem with socklen_t.
8177         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
8178         platforms.
8179         * doc/posix-headers/netdb.texi: Likewise.
8180
8181 2011-03-18  Eric Blake  <eblake@redhat.com>
8182
8183         maint.mk: let po check work in VPATH build
8184         * top/maint.mk (po_file): Allow cfg.mk override.
8185         (sc_po_check): Allow VPATH use.
8186         Reported by Jiri Denemark.
8187
8188 2011-03-16  Jim Meyering  <meyering@redhat.com>
8189
8190         maint.mk: allow fine-grained syntax-check exclusion via Make variables
8191         Before, you would have had to create one .x-sc_ file per rule in order
8192         to exempt offending files.  Now, you may instead use a Make variable --
8193         usually defined in cfg.mk -- whose name identifies the affected rule.
8194         * top/maint.mk (_sc_excl): Define.
8195         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
8196         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
8197
8198 2011-03-13  Bruno Haible  <bruno@clisp.org>
8199
8200         ignore-value tests: Avoid warnings.
8201         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
8202         empty for gcc < 3.4.
8203
8204 2011-03-13  Bruno Haible  <bruno@clisp.org>
8205
8206         passfd: Fix link error on Solaris.
8207         * modules/passfd (Description): Correct.
8208         (Depends-on): Add socketlib.
8209         (Link): New section.
8210         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
8211
8212 2011-03-13  Bruno Haible  <bruno@clisp.org>
8213
8214         passfd: Fix link error on AIX 5.2.
8215         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
8216
8217 2011-03-13  Bruno Haible  <bruno@clisp.org>
8218
8219         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
8220         * lib/sys_socket.in.h: Include <stddef.h>.
8221         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
8222         CMSG_FIRSTHDR. Remove unused variable.
8223
8224 2011-03-13  Bruno Haible  <bruno@clisp.org>
8225
8226         passfd: Fix compilation error on OpenBSD.
8227         * lib/passfd.c: Include <sys/uio.h>.
8228
8229 2011-03-13  Bruno Haible  <bruno@clisp.org>
8230
8231         passfd test: Fix warnings.
8232         * tests/test-passfd.c: Include <sys/wait.h>.
8233         (main): Fix typo.
8234
8235 2011-03-13  Bruno Haible  <bruno@clisp.org>
8236
8237         passfd module, part 4, tweaks.
8238         * tests/test-passfd.c: Reorder includes.
8239         (main): Fix perror and printf calls.
8240
8241 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
8242
8243         passfd module, part 4.
8244         * modules/passfd-tests: New file.
8245         * tests/test-passfd.c: New file.
8246
8247 2011-03-13  Jim Meyering  <meyering@redhat.com>
8248
8249         Makefile: rely on GNU make; derive syntax-check rule names
8250         Rather than requiring that each sc_ rule be listed as a dependent
8251         of "check", use features of GNU make to derive the list.
8252         * Makefile (syntax-check-rules): Define.
8253         (check): Depend on the new variable, not the hard-coded list.
8254
8255 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
8256             Bruno Haible  <bruno@clisp.org>
8257
8258         passfd module, part 3.
8259         * lib/passfd.h (recvfd): Add a flags argument.
8260         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
8261         (recvfd): Add a flags argument.
8262         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
8263         exists.
8264         * modules/passfd (Depends-on): Add cloexec.
8265         Suggested by Eric Blake.
8266
8267 2011-03-13  Bruno Haible  <bruno@clisp.org>
8268
8269         passfd module, part 2, tweaks.
8270         * modules/passfd (Files): Reorder.
8271         (Depends-on): Remove errno.
8272         (Include): Remove <sys/socket.h>, <sys/un.h>.
8273         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
8274         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
8275         specification header. Include <sys/socket.h> always. Don't include
8276         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
8277         (sendfd): Clarify that it sets errno when it fails.
8278         (recvfd): Fix specification.
8279
8280 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
8281
8282         passfd module, part 2.
8283         * modules/passfd: New file.
8284         * lib/passfd.h: New file.
8285         * lib/passfd.c: New file.
8286
8287 2011-03-12  Bruno Haible  <bruno@clisp.org>
8288
8289         wcswidth, mbswidth: Avoid integer overflow.
8290         * lib/wcswidth.c: Include <limits.h>.
8291         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
8292         * lib/mbswidth.c: Include <limits.h>.
8293         (mbsnwidth): Avoid 'int' overflow.
8294         Reported by Jim Meyering.
8295
8296 2011-03-12  Bruno Haible  <bruno@clisp.org>
8297
8298         futimens, utimensat: Avoid endless recursion on Solaris 10.
8299         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
8300         Solaris.
8301         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
8302         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
8303
8304 2011-03-11  Jim Meyering  <meyering@redhat.com>
8305
8306         maint.mk: relax a regexp to accommodate other formatting styles
8307         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
8308         between "ngettext" and the following "(".
8309
8310 2011-03-11  Pádraig Brady <P@draigBrady.com>
8311
8312         maint.mk: suppress a false positive warning
8313         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
8314         diagnostics are marked with ngettext.
8315
8316 2011-03-10  Eric Blake  <eblake@redhat.com>
8317
8318         wchar: add explicit dependencies, for Tru64
8319         * modules/mbmemcasecoll (Depends-on): Add wchar.
8320         * modules/mbtowc (Depends-on): Likewise.
8321         * modules/vasnprintf (Depends-on): Likewise.
8322         * modules/unistdio/u-printf-args (Depends-on): Likewise.
8323         * modules/wctomb (Depends-on): Likewise.
8324         Reported by Peter O'Gorman.
8325
8326 2011-03-08  Bruno Haible  <bruno@clisp.org>
8327
8328         passfd module, part 1, tweaks.
8329         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
8330         Improve indentation. Improve AC_MSG_CHECKING messages.
8331         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
8332         gl_SOCKET_FAMILIES.
8333
8334 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
8335
8336         passfd module, part 1.
8337         * m4/afunix.m4: New file.
8338         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
8339         sockets.
8340
8341 2011-03-08  Bruno Haible  <bruno@clisp.org>
8342
8343         regex-quote: New API.
8344         * lib/regex-quote.h: Include <stdbool.h>.
8345         (struct regex_quote_spec): New type.
8346         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
8347         New declarations.
8348         (regex_quote_length, regex_quote_copy, regex_quote): Take a
8349         'const struct regex_quote_spec *' argument.
8350         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
8351         (pcre_special): New constant.
8352         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
8353         New functions.
8354         (regex_quote_length, regex_quote_copy, regex_quote): Take a
8355         'const struct regex_quote_spec *' argument.
8356         * modules/regex-quote (Depends-on): Add stdbool.
8357         * tests/test-regex-quote.c (check): Update for new API. Add test for
8358         anchored results.
8359         * NEWS: Mention the API change.
8360         Reported by Reuben Thomas and Eric Blake.
8361
8362 2011-03-06  Bruno Haible  <bruno@clisp.org>
8363
8364         regex-quote: Fix creation of POSIX extended regular expressions.
8365         * lib/regex-quote.c (ere_special): Add grouping and alternation
8366         operators.
8367
8368 2011-03-05  Bruno Haible  <bruno@clisp.org>
8369
8370         doc: Improve doc regarding autopoint vs. gnulib.
8371         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
8372         disable autopoint while running autoreconf.
8373         Suggested by Ralf Wildenhues.
8374
8375 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8376
8377         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
8378         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
8379
8380 2011-03-03  Bruce Korb  <bkorb@gnu.org>
8381
8382         parse-duration: remove xalloc.h dependency
8383         * lib/parse-duration.c (parse_period): handle NULL return from
8384         strdup instead of calling xstrdup().
8385         * modules/parse-duration: remove "xalloc" dependency
8386
8387 2011-03-03  Matthew Booth  <mbooth@redhat.com>
8388
8389         bootstrap: honor m4_base when running aclocal
8390         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
8391
8392 2011-03-02  Jim Meyering  <meyering@redhat.com>
8393
8394         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
8395         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
8396         on request from Matt Booth.
8397
8398 2011-03-01  Eric Blake  <eblake@redhat.com>
8399
8400         test-link: work on Hurd
8401         * tests/test-link.h (test_link): Hurd rejects linking directories
8402         with EISDIR instead of the POSIX-mandated EPERM.
8403
8404 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
8405
8406         stdio: simplify by moving files to printf-posix, sigpipe
8407         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
8408         since this symbol is needed only if printf is replaced.
8409         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
8410         Require gl_ASM_SYMBOL_PREFIX.
8411         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
8412         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
8413         (Depends-on): Add 'raise'.
8414         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
8415         * modules/stdio (Files): Remove lib/stdio-write.c,
8416         m4/asm-underscore.m4.
8417         (Depends-on): Remove 'raise'.
8418
8419         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
8420         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
8421         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
8422         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
8423
8424 2011-02-28  Bruno Haible  <bruno@clisp.org>
8425
8426         localcharset: Assume ANSI C behaviour of free().
8427         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
8428         calling free().
8429         Suggested by Simon Josefsson <simon@josefsson.org>.
8430
8431 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
8432             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
8433             Bruno Haible  <bruno@clisp.org>  (tiny change)
8434
8435         On Cygwin, use /proc file system instead of win32 API.
8436         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
8437         Win32 file names.
8438         (DllMain): Simplify by removing Cygwin specific code.
8439         (find_shared_library_fullname): Use Linux specific implementation also
8440         for Cygwin.
8441         (get_shared_library_fullname): Update accordingly.
8442         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
8443         Win32 file names.
8444         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
8445         Cygwin specific code.
8446
8447 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
8448             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
8449
8450         Fix OpenMP flag detection for various Fortran compilers.
8451         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
8452         OpenMP-conditional compilation construct, to force compile
8453         failure with missing OpenMP flag.
8454         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
8455
8456 2011-02-25  Eric Blake  <eblake@redhat.com>
8457
8458         strstr: expand test coverage
8459         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
8460         compilation.
8461         * tests/test-memmem.c (main): Duplicate tests.
8462         * tests/test-strcasestr.c (main): Likewise.
8463         * tests/test-c-strcasestr.c (main): Likewise.
8464
8465 2011-02-25  Jim Meyering  <meyering@redhat.com>
8466
8467         maint.mk: detect missing-NL-at-EOF, too
8468         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
8469         it also detects when a file lacks a newline at EOF.
8470         (require_exactly_one_NL_at_EOF_): Renamed from
8471         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
8472         since people may well have .x-sc_... file names tied to the
8473         existing name.  Suggested by Eric Blake.
8474
8475 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
8476
8477         dirname: move m4/dos.m4 functionality into lib/dosname.h
8478
8479         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
8480         extracts symbols from it, puts them into config.h; but it's much
8481         easier to use the symbols directly.  filename.h already does this,
8482         but it disagrees with dos.m4 in some respects.  This patch
8483         introduces a different include file dosname.h that packages up
8484         dos.m4, and then later we can work on merging filename.h and
8485         dosname.h.  Applications that need only the easy-to-configure
8486         symbols should consider including dosname.h rather than dirname.h.
8487         * NEWS: Mention incompatible changes.
8488         * m4/dos.m4: Remove.
8489         * lib/dosname.h, modules/dosname: New files.
8490         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
8491         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
8492         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
8493         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
8494         Include dosname.h, not dirname.h.
8495         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
8496         Include dosname.h, for definitions of symbols like ISSLASH
8497         that used to be in config.h.
8498         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
8499         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
8500         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
8501         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
8502         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
8503         * modules/rmdir (Files): Likewise.
8504         * modules/stat (Files): Likewise.
8505         * modules/unlink (Files): Likewise.
8506         * modules/dirname-lgpl (Depends-on): Add dosname.
8507         * modules/lstat (Depends-on): Likewise.
8508         * modules/openat (Depends-on): Likewise.
8509         * modules/rmdir (Depends-on): Likewise.
8510         * modules/savewd (Depends-on): Likewise.
8511         * modules/stat (Depends-on): Likewise.
8512         * modules/unlink (Depends-on): Likewise.
8513         * modules/openat (Depends-on): Remove dirname-lgpl.
8514         * modules/savewd (Depends-on): Likewise.
8515         * tests/test-dirname.c: Do not use removed symbols like
8516         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
8517         the remaining symbols, e.g., ISSLASH ('\\').
8518
8519 2011-02-25  Eric Blake  <eblake@redhat.com>
8520
8521         strstr: revert patches that introduced bug and pessimization
8522         * lib/str-two-way.h: Add another reference.
8523         (two_way_short_needle, two_way_long_needle): Revert changes from
8524         2011-02-24; they pessimize search speed.
8525         (critical_factorization): Partially revert changes from
8526         2010-06-22; they violate the requirement that the left half of the
8527         needle be smaller than the period of the needle.
8528
8529 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
8530
8531         filenamecat: remove unnecessary dependency on dirname-lgpl
8532         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
8533         is no direct dependency, just an indirect one via filenamecat-lgpl.
8534
8535         remove: remove unnecessary use of m4/dos.m4
8536         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
8537         * modules/remove (FILES): Remove m4/dos.m4.
8538
8539         * lib/openat-proc.c: Don't include dirname.h; not needed.
8540
8541         backupfile: remove unnecessary use of m4/dos.m4
8542         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
8543         of its symbols are used by the backupfile code.  backupfile.c does
8544         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
8545         for the rare case of programs that want all their backup file
8546         names to live within 8+3 limits, and dos.m4 doesn't address that.
8547         * modules/backupfile (Files): Remove m4/dos.m4.
8548
8549 2011-02-24  Jim Meyering  <meyering@redhat.com>
8550
8551         strstr: fix a bug whereby strstr would mistakenly return NULL
8552         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
8553         in period calculation.
8554         (two_way_long_needle): Likewise.
8555         The original problem was reported by Mike Stump in
8556         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
8557         Ralf Wildenhues provided the short needle and haystack.
8558         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
8559         Add a more involved test to trigger the bug in two_way_long_needle.
8560
8561 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
8562
8563         gnulib-tool: remove use of bold display in help screen
8564         * gnulib-tool (func_usage): Do not use bold display anymore in the
8565         help screen.  That was just meant to be a temporary emphasis for a
8566         backward-incompatible change.
8567
8568 2011-02-23  Bruno Haible  <bruno@clisp.org>
8569
8570         Fix misindentation of preprocessor directives.
8571         * lib/argp-namefrob.h: Reindent preprocessor directives.
8572         * lib/getopt_int.h (struct _getopt_data): Likewise.
8573         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
8574         * lib/vasnprintf.c (decode_long_double): Likewise.
8575         * tests/test-argmatch.c: Insert blank lines, for clarity.
8576         * tests/test-exclude.c: Likewise.
8577
8578 2011-02-22  Bruno Haible  <bruno@clisp.org>
8579
8580         ioctl: Fix for MacOS X in 64-bit mode.
8581         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
8582         value.
8583         Suggested by Eric Blake.
8584         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
8585
8586 2011-02-22  Jim Meyering  <meyering@redhat.com>
8587
8588         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
8589         * Makefile (sc_cpp_indent_check): Don't limit the check to files
8590         in lib/.
8591
8592 2011-02-22  Eric Blake  <eblake@redhat.com>
8593
8594         maint: avoid any CDPATH issue
8595         * Makefile (sc_cpp_indent_check): Anchor cd argument.
8596
8597         maint: adjust cpp indentation for my modules, as well
8598         * Makefile (sc_cpp_indent_check): Add my name.
8599         * lib/fbufmode.c: Filter through cppi.
8600         * lib/fpurge.c: Likewise.
8601         * lib/freadable.c: Likewise.
8602         * lib/freading.c: Likewise.
8603         * lib/fwritable.c: Likewise.
8604         * lib/fwriting.c: Likewise.
8605         * lib/sigaction.c: Likewise.
8606
8607 2011-02-22  Jim Meyering  <meyering@redhat.com>
8608
8609         maint: adjust cpp indentation to reflect nesting depth
8610         I.e., in a block of code that begins with an unnested "#if",
8611         put one space between the "#" in column 1 and following token.
8612         For example,
8613         -#include <sys/vfs.h>
8614         +# include <sys/vfs.h>
8615         Do this only in .c files that are part of a module I maintain.
8616         * lib/linkat.c: Filter through cppi.
8617         * lib/nanosleep.c: Likewise.
8618         * lib/openat.c: Likewise.
8619         * lib/openat-die.c: Likewise.
8620         * lib/dup3.c: Likewise.
8621         * lib/fchownat.c: Likewise.
8622         * lib/flock.c: Likewise.
8623         * lib/fsync.c: Likewise.
8624         * lib/fts.c: Likewise.
8625         * lib/getpass.c: Likewise.
8626         * lib/gettimeofday.c: Likewise.
8627         * lib/userspec.c: Likewise.
8628         * Makefile (sc_cpp_indent_check): New rule, to check this.
8629
8630 2011-02-22  Bruno Haible  <bruno@clisp.org>
8631
8632         New module 'wctomb'.
8633         * lib/stdlib.in.h (wctomb): New declaration.
8634         * lib/wctomb.c: New file.
8635         * lib/wctomb-impl.h: New file.
8636         * m4/wctomb.m4: New file.
8637         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
8638         REPLACE_WCTOMB.
8639         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
8640         REPLACE_WCTOMB.
8641         * modules/wctomb: New file.
8642         * tests/test-stdlib-c++.cc: Test signature of wctomb.
8643         * doc/posix-functions/wctomb.texi: Mention the new module.
8644         * modules/wctob (Depends-on): Add wctomb.
8645
8646 2011-02-22  Bruno Haible  <bruno@clisp.org>
8647
8648         New module 'mbtowc'.
8649         * lib/stdlib.in.h (mbtowc): New declaration.
8650         * lib/mbtowc.c: New file.
8651         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
8652         * m4/mbtowc.m4: New file.
8653         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
8654         REPLACE_MBTOWC.
8655         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
8656         REPLACE_MBTOWC.
8657         * modules/mbtowc: New file.
8658         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
8659         * doc/posix-functions/mbtowc.texi: Mention the new module.
8660         * modules/btowc (Depends-on): Add mbtowc.
8661
8662 2011-02-22  Bruno Haible  <bruno@clisp.org>
8663
8664         wcrtomb: Add more tests for native Windows platforms.
8665         * tests/test-wcrtomb-w32-1.sh: New file.
8666         * tests/test-wcrtomb-w32-2.sh: New file.
8667         * tests/test-wcrtomb-w32-3.sh: New file.
8668         * tests/test-wcrtomb-w32-4.sh: New file.
8669         * tests/test-wcrtomb-w32-5.sh: New file.
8670         * tests/test-wcrtomb-w32.c: New file.
8671         * modules/wcrtomb-tests (Files): Add them.
8672         (Makefile.am): Arrange to run these tests.
8673         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
8674         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
8675
8676 2011-02-20  Bruno Haible  <bruno@clisp.org>
8677
8678         wcrtomb: Enhance test.
8679         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
8680
8681 2011-02-20  Bruno Haible  <bruno@clisp.org>
8682
8683         mbrtowc: Tiny optimization.
8684         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
8685
8686 2011-02-20  Jim Meyering  <meyering@redhat.com>
8687
8688         test-exclude.c: remove unmatched #endif
8689         * tests/test-exclude.c: Remove stray #endif, left over from
8690         the change of a week ago.
8691
8692 2011-02-19  Jim Meyering  <meyering@redhat.com>
8693
8694         git-version-gen: skip "-dirty" check when appropriate
8695         * build-aux/git-version-gen: Don't run any git commands when the
8696         version string comes from .tarball-version.  Prior to this, we
8697         would run git update-index --refresh even from a just-unpacked
8698         tarball directory, and that could affect a .git/ directory in a
8699         parent of the build directory.  Reported by Mike Frysinger.
8700
8701 2011-02-19  Bruno Haible  <bruno@clisp.org>
8702
8703         unictype/property-byname: Reduce the size of the 'data' segment.
8704         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
8705
8706 2011-02-19  Bruno Haible  <bruno@clisp.org>
8707
8708         unictype/scripts: Reduce the size of the 'data' segment.
8709         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
8710         '%pic'.
8711         * lib/unictype/scripts_byname.gperf: Regenerated.
8712
8713 2011-02-19  Bruno Haible  <bruno@clisp.org>
8714
8715         stdint: Update documentation.
8716         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
8717
8718 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
8719
8720         stdint: omit redundant check for wchar.h
8721         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
8722         always tests whether wchar.h exists, so remove the now-redundant test.
8723
8724 2011-02-18  Bruno Haible  <bruno@clisp.org>
8725
8726         stdint: Cut dependency to module 'wchar'.
8727         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
8728         include the necessary prerequisites.
8729         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
8730         * modules/stdint (Depends-on): Remove wchar.
8731         (Makefile.am): Substitute HAVE_WCHAR_H.
8732         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
8733
8734 2011-02-18  Eric Blake  <eblake@redhat.com>
8735
8736         longlong: skip, rather than fail, on cross-compilation
8737         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
8738         when cross-compiling; regression from 2011-02-16.
8739
8740 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
8741
8742         * NEWS: Mention 2011-02-08 change to stdlib.
8743
8744 2011-02-17  Bruno Haible  <bruno@clisp.org>
8745
8746         getloadavg: Add comments about platforms.
8747         * m4/getloadavg.m4: Add comment.
8748         * lib/getloadavg.c: Likewise.
8749
8750 2011-02-17  Bruno Haible  <bruno@clisp.org>
8751
8752         getloadavg: Fix link error on Solaris 2.6.
8753         * modules/getloadavg (Link): New section.
8754         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
8755         linking test-getloadavg.
8756         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
8757         getloadavg.
8758
8759 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
8760
8761         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
8762         It was 'int', but this doesn't match the IRIX 6.5 manual.
8763         Suggested by Bruno Haible in
8764         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
8765
8766 2011-02-17  Bruno Haible  <bruno@clisp.org>
8767
8768         havelib: Fix comments.
8769         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
8770         change.
8771
8772 2011-02-17  Bruno Haible  <bruno@clisp.org>
8773
8774         havelib: Update config.rpath.
8775         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
8776
8777 2011-02-17  Bruno Haible  <bruno@clisp.org>
8778
8779         getloadavg test: Add some plausibility checks.
8780         * tests/test-getloadavg.c (check_avg): Print a warning when the value
8781         is improbable.
8782
8783 2011-02-16  Eric Blake  <eblake@redhat.com>
8784
8785         maintainer-makefile: make syntax-check a no-op from tarballs
8786         * top/maint.mk (no-vc-detected): New rule.
8787         (local-checks-available): Use it to avoid hanging if someone tries
8788         'make syntax-check' from a tarball.  Also append to any non-syntax
8789         checks already defined in cfg.mk.
8790
8791 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
8792
8793         longlong: tune, particularly for common case of c99
8794
8795         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
8796         or running anything if c99, or if unsigned long long int does not
8797         work.  In either case, we know the answer without further tests.
8798         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
8799         it at most once, and use its results for both long long int and
8800         unsigned long long int.  This is more likely to be efficient in
8801         the common case where the program wants to check for both long
8802         long int and unsigned long long int.
8803         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
8804         since the answer is already known.
8805
8806 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
8807
8808         getloadavg: set errno
8809         * lib/getloadavg.c: Set errno when returning -1.  If no other
8810         error number looks appropriate, set it to ENOSYS if the getloadavg
8811         looks like it can't possibly ever work, ENOTSUP otherwise.
8812         Suggested by Bruno Haible in
8813         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
8814
8815         getloadavg: trim unused parts and speed up 'configure'
8816         * NEWS: Document this.
8817         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
8818         always compiled if getloadavg is absent.
8819         Move test code to ...
8820         * tests/test-getloadavg.c: New file, containing previous
8821         contents of test from lib/getloadavg.c.  It also contains
8822         suggestions by Bruno Haible in
8823         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
8824         * modules/getloadavg-tests: New file.
8825         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
8826         Do tests in the same order as they're needed for getloadavg.c.
8827         Omit setgid-related tests that generate symbols KMEM_GROUP,
8828         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
8829         Do only the tests that are needed to see whether the system has
8830         getloadavg, moving the other tests into ...
8831         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
8832         NLIST_NAME_UNION; nobody should be using it.  Do not define
8833         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
8834         relevant, as the user of this module shouldn't care how getloadavg
8835         is implemented.
8836
8837         getloadavg: omit unused var
8838         * lib/getloadavg.c (getloadavg): Omit unused local variable.
8839
8840 2011-02-15  Jim Meyering  <meyering@redhat.com>
8841
8842         doc: update users.txt
8843         * users.txt: Update iwhd's URL.
8844
8845 2011-02-13  Bruno Haible  <bruno@clisp.org>
8846
8847         Consistent macro naming for macros that use GCC __attribute__.
8848         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
8849         _ATTRIBUTE_NONNULL_.
8850         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
8851         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
8852         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
8853         ATTRIBUTE_DEPRECATED.
8854         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
8855         ATTRIBUTE_NORETURN.
8856         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
8857         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
8858         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
8859         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
8860         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
8861         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
8862         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
8863         ATTRIBUTE_SENTINEL.
8864         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
8865         ATTRIBUTE_RETURN_CHECK.
8866         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
8867         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
8868         ATTRIBUTE_NORETURN.
8869         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
8870         Reported by Paul Eggert.
8871
8872 2011-02-13  Bruno Haible  <bruno@clisp.org>
8873
8874         Don't interfere with a program's definition of __attribute__.
8875         * lib/argp.h (__attribute__): Remove definition.
8876         (_GL_ATTRIBUTE_FORMAT): New macro.
8877         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
8878         * lib/argp-fmtstream.h (__attribute__): Remove definition.
8879         (_GL_ATTRIBUTE_FORMAT): New macro.
8880         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
8881         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
8882         GCC 3 or newer.
8883         * lib/error.h (__attribute__): Remove definition.
8884         (_GL_ATTRIBUTE_FORMAT): New macro.
8885         (error, error_at_line): Use it.
8886         * lib/hash.h (__attribute__): Remove definition.
8887         (ATTRIBUTE_WUR): Update definition. Define always.
8888         * lib/openat.h (__attribute__): Remove definition.
8889         (ATTRIBUTE_NORETURN): Update definition. Define always.
8890         * lib/sigpipe-die.h (__attribute__): Remove definition.
8891         (ATTRIBUTE_NORETURN): Update definition. Define always.
8892         * lib/vasnprintf.h (__attribute__): Remove definition.
8893         (_GL_ATTRIBUTE_FORMAT): New macro.
8894         (asnprintf, vasnprintf): Use it.
8895         * lib/xalloc.h (__attribute__): Remove definition.
8896         (ATTRIBUTE_NORETURN): Update definition. Define always.
8897         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
8898         * lib/xmemdup0.h (__attribute__): Remove definition.
8899         (ATTRIBUTE_NORETURN): Update definition. Define always.
8900         * lib/xprintf.h (__attribute__): Remove definition.
8901         (_GL_ATTRIBUTE_FORMAT): New macro.
8902         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
8903         * lib/xstrtol.h (__attribute__): Remove definition.
8904         (ATTRIBUTE_NORETURN): Update definition. Define always.
8905         * lib/xvasprintf.h (__attribute__): Remove definition.
8906         (_GL_ATTRIBUTE_FORMAT): New macro.
8907         (xasprintf, xvasprintf): Use it.
8908         * tests/test-argmatch.c (__attribute__): Remove definition.
8909         (ATTRIBUTE_NORETURN): Update definition. Define always.
8910         * tests/test-exclude.c (__attribute__): Remove definition.
8911         (ATTRIBUTE_NORETURN): Update definition. Define always.
8912         Reported by Paul Eggert.
8913
8914 2011-02-13  Bruno Haible  <bruno@clisp.org>
8915
8916         mbrtowc: Add more tests for native Windows platforms.
8917         * tests/test-mbrtowc-w32-1.sh: New file.
8918         * tests/test-mbrtowc-w32-2.sh: New file.
8919         * tests/test-mbrtowc-w32-3.sh: New file.
8920         * tests/test-mbrtowc-w32-4.sh: New file.
8921         * tests/test-mbrtowc-w32-5.sh: New file.
8922         * tests/test-mbrtowc-w32.c: New file.
8923         * modules/mbrtowc-tests (Files): Add them.
8924         (Makefile.am): Arrange to run these tests.
8925         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
8926         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
8927
8928 2011-02-13  Bruno Haible  <bruno@clisp.org>
8929
8930         mbrtowc: Work around native Windows bug.
8931         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
8932         guess when no suitable locale for testing was found.
8933         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
8934
8935 2011-02-13  Bruno Haible  <bruno@clisp.org>
8936
8937         mbsinit: Work around mingw bug.
8938         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
8939         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
8940         Windows.
8941         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
8942
8943 2011-02-13  Bruno Haible  <bruno@clisp.org>
8944
8945         mbsinit: Don't crash for a NULL argument.
8946         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
8947         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
8948
8949 2011-02-13  Bruno Haible  <bruno@clisp.org>
8950
8951         Don't interfere with a program's definition of __attribute__.
8952         * lib/stdio.in.h (__attribute__): Remove definition.
8953         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
8954         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
8955         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
8956         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
8957         * lib/string.in.h (__attribute__): Remove definition.
8958         Reported by Paul Eggert.
8959
8960 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
8961
8962         stdlib: don't get in the way of non-GCC __attribute__
8963         See thread starting at
8964         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
8965         Revert previous stdlib change, installing the following instead:
8966         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
8967         to get in the way of a non-GCC compiler that supports __attribute__.
8968         (_GL_ATTRIBUTE_RETURN): New macro.
8969         (_Exit): Use it instead of __attribute__.
8970
8971 2011-02-12  Bruno Haible  <bruno@clisp.org>
8972
8973         quotearg test: Avoid test failure on mingw.
8974         * tests/test-quotearg.sh: Convert the locale identifier from native
8975         Windows syntax to Unix syntax.
8976
8977 2011-02-12  Bruno Haible  <bruno@clisp.org>
8978
8979         setlocale: Prefer gnulib's override over libintl's override.
8980         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
8981         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
8982         GNULIB_defined_setlocale is set.
8983
8984 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
8985
8986         stdlib: support non-GCC __attribute__
8987
8988         Fix a serious and tricky problem encountered when attempting to
8989         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
8990         5.5, but it crashed due to memory corruption on Solaris 10 with
8991         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
8992         bits that are otherwise zero.  This tagging is optional inside
8993         Emacs but is preferred and is used when __attribute__ ((__aligned
8994         (8))) works, as it does with both recent-enough GCC and with Sun C
8995         5.11.  However, Sun C 5.11 is not GCC and does not #define
8996         __GNUC__ and __GNUC_MINOR__.
8997
8998         When I added the getloadavg module to Emacs, it brought in
8999         stdlib.in.h, which contained this fragment:
9000
9001            #ifndef __attribute__
9002            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
9003            #  define __attribute__(Spec)   /* empty */
9004            # endif
9005            #endif
9006
9007         When files that include <stdlib.h> were compiled with Sun C 5.11,
9008         the above code disabled __attribute__ ((__aligned (8))), which
9009         caused variables to not be properly aligned, which eventually led
9010         to the pointer corruption mentioned above.  (This was a bit hard
9011         to diagnose, unfortunately.)
9012
9013         Several "#define __attribute__(X) /* empty */" code snippets need
9014         to be eradicated from Gnulib to work with non-GCC compilers that
9015         support __attribute__.  The Autoconf way to do this is to test for
9016         each kind of attribute that we want support for, and selectively
9017         enable that in source code.
9018
9019         Fix this problem just for stdlib.h, by adding a test for the
9020         __noreturn__ attribute, and change stdlib.in.h to use that test
9021         when needed.  This technique can be easily generalized to the
9022         other *.in.h files and attributes, and a similar technique can be
9023         used for *.h and *.c files.  This patch is enough to solve the
9024         problem for Emacs + getloadavg, and I thought I'd publish it for
9025         feedback before undertaking further, similar fixes in other
9026         modules.
9027
9028         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
9029         because it's not needed for stdlib.h.  It merely substitutes the
9030         value directly into stdlib.h.  We may well need to #define it, or
9031         similar symbols, for other modules, but it's nice to also have an
9032         option to not #define it for applications like Emacs that do not
9033         need it.
9034
9035         * lib/stdlib.in.h (__attribute__): Do not #define.
9036         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
9037         be defined only if the _Exit module is also used.
9038         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
9039         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
9040         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
9041         platforms.
9042         * modules/_Exit (Files): Add m4/attribute.m4.
9043         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
9044         * m4/attribute.m4: New file.
9045
9046 2011-02-12  Bruno Haible  <bruno@clisp.org>
9047
9048         wcsrtombs: Work around bug on native Windows.
9049         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
9050         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
9051         instead of len.
9052         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
9053
9054 2011-02-12  Bruno Haible  <bruno@clisp.org>
9055
9056         mbsrtowcs: Work around bug on native Windows.
9057         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
9058         against mingw bug.
9059         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
9060
9061 2011-02-12  Bruno Haible  <bruno@clisp.org>
9062
9063         Avoid setlocale bugs in tests.
9064         * modules/btowc (Dependencies): Add setlocale.
9065         * modules/c-strcase (Dependencies): Likewise.
9066         * modules/mbmemcasecmp (Dependencies): Likewise.
9067         * modules/mbmemcasecoll (Dependencies): Likewise.
9068         * modules/mbrtowc (Dependencies): Likewise.
9069         * modules/mbscasecmp (Dependencies): Likewise.
9070         * modules/mbscasestr (Dependencies): Likewise.
9071         * modules/mbschr (Dependencies): Likewise.
9072         * modules/mbscspn (Dependencies): Likewise.
9073         * modules/mbsinit (Dependencies): Likewise.
9074         * modules/mbsncasecmp (Dependencies): Likewise.
9075         * modules/mbsnrtowcs (Dependencies): Likewise.
9076         * modules/mbspbrk (Dependencies): Likewise.
9077         * modules/mbspcasecmp (Dependencies): Likewise.
9078         * modules/mbsrchr (Dependencies): Likewise.
9079         * modules/mbsrtowcs (Dependencies): Likewise.
9080         * modules/mbsspn (Dependencies): Likewise.
9081         * modules/mbsstr (Dependencies): Likewise.
9082         * modules/nl_langinfo (Dependencies): Likewise.
9083         * modules/quotearg (Dependencies): Likewise.
9084         * modules/unicase/locale-language (Dependencies): Likewise.
9085         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
9086         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
9087         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
9088         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
9089         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
9090         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
9091         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
9092         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
9093         * modules/vasnprintf-posix (Dependencies): Likewise.
9094         * modules/wcrtomb (Dependencies): Likewise.
9095         * modules/wcsnrtombs (Dependencies): Likewise.
9096         * modules/wcsrtombs (Dependencies): Likewise.
9097
9098 2011-02-12  Bruno Haible  <bruno@clisp.org>
9099
9100         setlocale: Workaround native Windows bug.
9101         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
9102         succeeds but sets LC_CTYPE to "C", report a failure.
9103         * tests/test-setlocale2.sh: New file.
9104         * tests/test-setlocale2.c: New file.
9105         * modules/setlocale-tests (Files): Add the new files.
9106         (Makefile.am): Enable test-setlocale2.sh test.
9107         * doc/posix-functions/setlocale.texi: Mention workaround.
9108
9109 2011-02-11  Bruno Haible  <bruno@clisp.org>
9110
9111         Tests for module 'setlocale'.
9112         * modules/setlocale-tests: New file.
9113         * tests/test-setlocale1.sh: New file.
9114         * tests/test-setlocale1.c: New file.
9115
9116         New module 'setlocale'.
9117         * lib/locale.in.h (setlocale): New declaration.
9118         * lib/setlocale.c: New file, based on
9119         gettext/gettext-runtime/intl/setlocale.c.
9120         * m4/setlocale.m4: New file.
9121         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
9122         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
9123         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
9124         REPLACE_SETLOCALE.
9125         * modules/setlocale: New file.
9126         * tests/test-locale-c++.cc: Test the declaration of setlocale.
9127         * doc/posix-functions/setlocale.texi: Mention the new module.
9128
9129 2011-02-11  Bruno Haible  <bruno@clisp.org>
9130
9131         Prepare for locale dependent tests on mingw.
9132         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
9133         because it has the wrong locale encoding.
9134         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
9135         French_France.1252 instead of "fr".
9136         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
9137         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
9138         because it has the wrong locale encoding.
9139         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
9140         native Windows, try Turkish_Turkey.65001.
9141         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
9142         Chinese_China.54936.
9143
9144         Prepare for locale dependent tests on mingw.
9145         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
9146         differently.
9147         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
9148         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
9149         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
9150         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
9151
9152 2011-02-11  Eric Blake  <eblake@redhat.com>
9153
9154         strptime: avoid compiler warnings
9155         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
9156         compiler warnings about dead code.
9157         Reported by Daniel P. Berrange.
9158
9159 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
9160
9161         doc: update users.txt
9162         * users.txt: Add rcs.
9163
9164 2011-02-10  John W. Eaton  <jwe@gnu.org>
9165
9166         doc: update users.txt
9167         * users.txt: Add octave.
9168
9169 2011-02-10  Jim Meyering  <meyering@redhat.com>
9170
9171         doc: update users.txt
9172         * users.txt: Add iwhd.
9173
9174 2011-02-09  Bruno Haible  <bruno@clisp.org>
9175
9176         gnulib-tool: Make copyright notice adjustment more robust.
9177         * gnulib-tool (func_import): In sed_transform_main_lib_file,
9178         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
9179         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
9180         License".
9181         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
9182
9183 2011-02-06  Bruno Haible  <bruno@clisp.org>
9184
9185         New module 'towctrans'.
9186         * modules/towctrans: New file.
9187         * lib/wctype.in.h (towctrans): New declaration.
9188         * lib/towctrans.c: New file.
9189         * lib/towctrans-impl.h: New file.
9190         * m4/towctrans.m4: New file.
9191         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
9192         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
9193         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
9194         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
9195         * doc/posix-functions/towctrans.texi: Mention the new module.
9196
9197 2011-02-06  Bruno Haible  <bruno@clisp.org>
9198
9199         New module 'wctrans'.
9200         * modules/wctrans: New file.
9201         * lib/wctype.in.h (wctrans): New declaration.
9202         * lib/wctrans.c: New file.
9203         * lib/wctrans-impl.h: New file.
9204         * m4/wctrans.m4: New file.
9205         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
9206         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
9207         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
9208         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
9209         * doc/posix-functions/wctrans.texi: Mention the new module.
9210
9211 2011-02-06  Bruno Haible  <bruno@clisp.org>
9212
9213         New module 'iswctype'.
9214         * modules/iswctype: New file.
9215         * lib/wctype.in.h (iswctype): New declaration.
9216         * lib/iswctype.c: New file.
9217         * lib/iswctype-impl.h: New file.
9218         * m4/iswctype.m4: New file.
9219         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
9220         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
9221         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
9222         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
9223         * doc/posix-functions/iswctype.texi: Mention the new module and the
9224         HP-UX 11.00 problem.
9225
9226 2011-02-06  Bruno Haible  <bruno@clisp.org>
9227
9228         New module 'wctype'.
9229         * modules/wctype: Change to represent the wctype() substitute.
9230         * lib/wctype.in.h (wctype): New declaration.
9231         * lib/wctype.c: New file.
9232         * lib/wctype-impl.h: New file.
9233         * m4/wctype.m4: New file.
9234         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
9235         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
9236         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
9237         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
9238         * doc/posix-functions/wctype.texi: Mention the new module and the
9239         HP-UX 11.00 problem.
9240
9241 2011-02-06  Bruno Haible  <bruno@clisp.org>
9242
9243         wctype-h: Ensure wctype_t and wctrans_t are defined.
9244         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
9245         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
9246         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
9247         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
9248         HAVE_WCTRANS_T.
9249         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
9250
9251 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
9252
9253         flock: fix license typo
9254
9255         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
9256         omitted.
9257
9258 2011-02-08  Bruno Haible  <bruno@clisp.org>
9259
9260         Split large sed scripts, for HP-UX sed.
9261         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
9262         to avoid HP-UX limit of 99 commands, in the near future.
9263         * modules/stdlib (Makefile.am): Likewise.
9264         * modules/unistd (Makefile.am): Likewise.
9265         * modules/wchar (Makefile.am): Likewise.
9266         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
9267         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
9268         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
9269
9270 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
9271             Bruno Haible  <bruno@clisp.org>
9272
9273         stdlib: improve random_r modularization
9274         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
9275         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
9276         you also need the random_r module to get this material right.
9277         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
9278         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
9279         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
9280
9281 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
9282
9283         stdlib: don't depend on stdint
9284         * lib/stdlib.in.h: Don't include <stdint.h> merely because
9285         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
9286         be independent of whether stdint.h is needed.
9287         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
9288         here, instead of ...
9289         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
9290         struct random_data should be using the random_r module, not just
9291         the stdlib module (which wouldn't make sense: what package needs
9292         just struct random_data without also needing random_r?).
9293         * modules/stdlib (Depends-on): Remove stdint.
9294
9295         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
9296         See the thread rooted at
9297         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
9298         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
9299         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
9300         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
9301         __VMS)); previously it was always included (via fcntl--.h).
9302         (getloadavg): Do not use c_strtod.  Instead, approximate it by
9303         hand; this is good enough for load averages.  Also, do not use
9304         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
9305         flags directly if available and don't bother otherwise.  (Packages
9306         that need the extra reliability should use the modules that define
9307         these flags on older platforms that lack them.)
9308         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
9309         fcntl-safer.
9310
9311 2011-02-08  Jim Meyering  <meyering@redhat.com>
9312
9313         di-set.h, ino-map.h: add multiple-inclusion guard
9314         Technically, the guard is required only for ino-map.h, due to its
9315         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
9316         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
9317         * lib/ino-map.h: Likewise.
9318
9319 2011-02-06  Bruno Haible  <bruno@clisp.org>
9320
9321         iswblank: Ensure declaration on glibc systems.
9322         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
9323         * modules/iswblank (Dependencies): Add 'extensions'.
9324         * doc/posix-functions/iswblank.texi: Document the glibc problem.
9325
9326 2011-02-06  Bruno Haible  <bruno@clisp.org>
9327
9328         New module 'iswblank'.
9329         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
9330         * modules/iswblank: New file.
9331         * modules/wctype-h (Files): Remove lib/iswblank.c.
9332         (Makefile.am): Substitute GNULIB_ISWBLANK.
9333         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
9334         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
9335         (gl_WCTYPE_H_DEFAULTS): New macro.
9336         (gl_WCTYPE_H): Require it. Remove iswblank related code.
9337         * modules/iswblank-tests: New file.
9338         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
9339         * tests/test-wctype-h.c (main): Remove iswblank tests.
9340         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
9341         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
9342         of 'wctype-h'.
9343         * NEWS: Mention the change.
9344         * modules/mbchar (Depends-on): Add iswblank.
9345
9346 2011-02-08  Bruno Haible  <bruno@clisp.org>
9347
9348         di-set tests: Refactor.
9349         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
9350         unnecessary includes.
9351         (ASSERT): Remove macro.
9352         (main): Make C90 compliant by avoiding variable declaration after
9353         statement.
9354         * modules/di-set-tests (Files): Add tests/macros.h.
9355
9356 2011-02-08  Bruno Haible  <bruno@clisp.org>
9357
9358         ino-map tests: Refactor.
9359         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
9360         unnecessary includes.
9361         (ASSERT): Remove macro.
9362         (main): Make C90 compliant by avoiding variable declaration after
9363         statement.
9364         * modules/ino-map-tests (Files): Add tests/macros.h.
9365
9366 2011-02-08  Jim Meyering  <meyering@redhat.com>
9367
9368         di-set: add "const" to a cast
9369         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
9370         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
9371
9372 2011-02-06  Bruno Haible  <bruno@clisp.org>
9373
9374         Rename module 'wctype' to 'wctype-h'.
9375         * modules/wctype-h: Renamed from modules/wctype.
9376         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
9377         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
9378         (Files, Depends-on, Makefile.am): Update.
9379         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
9380         (Files, Makefile.am): Update.
9381         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
9382         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
9383         * doc/posix-headers/wctype.texi: Update.
9384         * doc/posix-functions/iswalnum.texi: Update.
9385         * doc/posix-functions/iswalpha.texi: Update.
9386         * doc/posix-functions/iswblank.texi: Update.
9387         * doc/posix-functions/iswcntrl.texi: Update.
9388         * doc/posix-functions/iswdigit.texi: Update.
9389         * doc/posix-functions/iswgraph.texi: Update.
9390         * doc/posix-functions/iswlower.texi: Update.
9391         * doc/posix-functions/iswprint.texi: Update.
9392         * doc/posix-functions/iswpunct.texi: Update.
9393         * doc/posix-functions/iswspace.texi: Update.
9394         * doc/posix-functions/iswupper.texi: Update.
9395         * doc/posix-functions/iswxdigit.texi: Update.
9396         * doc/posix-functions/towlower.texi: Update.
9397         * doc/posix-functions/towupper.texi: Update.
9398         * NEWS: Mention the change.
9399         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
9400         * modules/mbchar (Dependencies): Likewise.
9401         * modules/mbswidth (Dependencies): Likewise.
9402         * modules/quotearg (Dependencies): Likewise.
9403         * modules/regex (Dependencies): Likewise.
9404         * modules/wcscasecmp (Dependencies): Likewise.
9405         * modules/wcsncasecmp (Dependencies): Likewise.
9406         * modules/wcwidth (Dependencies): Likewise.
9407
9408 2011-02-06  Bruno Haible  <bruno@clisp.org>
9409
9410         New module 'wcswidth'.
9411         * modules/wcswidth: New file.
9412         * lib/wchar.in.h (wcswidth): New declaration.
9413         * lib/wcswidth.c: New file.
9414         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
9415         * m4/wcswidth.m4: New file.
9416         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
9417         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
9418         REPLACE_WCSWIDTH.
9419         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
9420         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
9421         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
9422         * doc/posix-functions/wcswidth.texi: Mention the new module.
9423
9424 2011-02-06  Bruno Haible  <bruno@clisp.org>
9425
9426         New module 'wcstok'.
9427         * modules/wcstok: New file.
9428         * lib/wchar.in.h (wcstok): New declaration.
9429         * lib/wcstok.c: New file.
9430         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
9431         * m4/wcstok.m4: New file.
9432         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
9433         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
9434         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
9435         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
9436         * doc/posix-functions/wcstok.texi: Mention the new module.
9437
9438 2011-02-06  Bruno Haible  <bruno@clisp.org>
9439
9440         New module 'wcsstr'.
9441         * modules/wcsstr: New file.
9442         * lib/wchar.in.h (wcsstr): New declaration.
9443         * lib/wcsstr.c: New file.
9444         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
9445         * m4/wcsstr.m4: New file.
9446         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
9447         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
9448         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
9449         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
9450         * doc/posix-functions/wcsstr.texi: Mention the new module.
9451
9452 2011-02-06  Bruno Haible  <bruno@clisp.org>
9453
9454         New module 'wcspbrk'.
9455         * modules/wcspbrk: New file.
9456         * lib/wchar.in.h (wcspbrk): New declaration.
9457         * lib/wcspbrk.c: New file.
9458         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
9459         * m4/wcspbrk.m4: New file.
9460         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
9461         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
9462         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
9463         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
9464         * doc/posix-functions/wcspbrk.texi: Mention the new module.
9465
9466 2011-02-06  Bruno Haible  <bruno@clisp.org>
9467
9468         New module 'wcsspn'.
9469         * modules/wcsspn: New file.
9470         * lib/wchar.in.h (wcsspn): New declaration.
9471         * lib/wcsspn.c: New file.
9472         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
9473         * m4/wcsspn.m4: New file.
9474         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
9475         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
9476         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
9477         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
9478         * doc/posix-functions/wcsspn.texi: Mention the new module.
9479
9480 2011-02-06  Bruno Haible  <bruno@clisp.org>
9481
9482         New module 'wcscspn'.
9483         * modules/wcscspn: New file.
9484         * lib/wchar.in.h (wcscspn): New declaration.
9485         * lib/wcscspn.c: New file.
9486         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
9487         * m4/wcscspn.m4: New file.
9488         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
9489         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
9490         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
9491         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
9492         * doc/posix-functions/wcscspn.texi: Mention the new module.
9493
9494 2011-02-06  Bruno Haible  <bruno@clisp.org>
9495
9496         New module 'wcsrchr'.
9497         * modules/wcsrchr: New file.
9498         * lib/wchar.in.h (wcsrchr): New declaration.
9499         * lib/wcsrchr.c: New file.
9500         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
9501         * m4/wcsrchr.m4: New file.
9502         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
9503         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
9504         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
9505         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
9506         * doc/posix-functions/wcsrchr.texi: Mention the new module.
9507
9508 2011-02-06  Bruno Haible  <bruno@clisp.org>
9509
9510         New module 'wcschr'.
9511         * modules/wcschr: New file.
9512         * lib/wchar.in.h (wcschr): New declaration.
9513         * lib/wcschr.c: New file.
9514         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
9515         * m4/wcschr.m4: New file.
9516         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
9517         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
9518         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
9519         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
9520         * doc/posix-functions/wcschr.texi: Mention the new module.
9521
9522 2011-02-06  Bruno Haible  <bruno@clisp.org>
9523
9524         New module 'wcsdup'.
9525         * modules/wcsdup: New file.
9526         * lib/wchar.in.h (wcsdup): New declaration.
9527         * lib/wcsdup.c: New file.
9528         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
9529         * m4/wcsdup.m4: New file.
9530         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
9531         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
9532         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
9533         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
9534         * doc/posix-functions/wcsdup.texi: Mention the new module.
9535
9536 2011-02-06  Bruno Haible  <bruno@clisp.org>
9537
9538         New module 'wcsxfrm'.
9539         * modules/wcsxfrm: New file.
9540         * lib/wchar.in.h (wcsxfrm): New declaration.
9541         * lib/wcsxfrm.c: New file.
9542         * lib/wcsxfrm-impl.h: New file.
9543         * m4/wcsxfrm.m4: New file.
9544         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
9545         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
9546         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
9547         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
9548         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
9549
9550 2011-02-06  Bruno Haible  <bruno@clisp.org>
9551
9552         New module 'wcscoll'.
9553         * modules/wcscoll: New file.
9554         * lib/wchar.in.h (wcscoll): New declaration.
9555         * lib/wcscoll.c: New file.
9556         * lib/wcscoll-impl.h: New file.
9557         * m4/wcscoll.m4: New file.
9558         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
9559         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
9560         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
9561         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
9562         * doc/posix-functions/wcscoll.texi: Mention the new module.
9563
9564 2011-02-06  Bruno Haible  <bruno@clisp.org>
9565
9566         New module 'wcsncasecmp'.
9567         * modules/wcsncasecmp: New file.
9568         * lib/wchar.in.h (wcsncasecmp): New declaration.
9569         * lib/wcsncasecmp.c: New file.
9570         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
9571         * m4/wcsncasecmp.m4: New file.
9572         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
9573         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
9574         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
9575         HAVE_WCSNCASECMP.
9576         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
9577         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
9578
9579 2011-02-06  Bruno Haible  <bruno@clisp.org>
9580
9581         New module 'wcscasecmp'.
9582         * modules/wcscasecmp: New file.
9583         * lib/wchar.in.h (wcscasecmp): New declaration.
9584         * lib/wcscasecmp.c: New file.
9585         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
9586         * m4/wcscasecmp.m4: New file.
9587         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
9588         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
9589         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
9590         HAVE_WCSCASECMP.
9591         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
9592         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
9593
9594 2011-02-05  Bruno Haible  <bruno@clisp.org>
9595
9596         New module 'wcsncmp'.
9597         * modules/wcsncmp: New file.
9598         * lib/wchar.in.h (wcsncmp): New declaration.
9599         * lib/wcsncmp.c: New file.
9600         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
9601         * m4/wcsncmp.m4: New file.
9602         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
9603         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
9604         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
9605         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
9606         * doc/posix-functions/wcsncmp.texi: Mention the new module.
9607
9608 2011-02-05  Bruno Haible  <bruno@clisp.org>
9609
9610         New module 'wcscmp'.
9611         * modules/wcscmp: New file.
9612         * lib/wchar.in.h (wcscmp): New declaration.
9613         * lib/wcscmp.c: New file.
9614         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
9615         * m4/wcscmp.m4: New file.
9616         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
9617         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
9618         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
9619         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
9620         * doc/posix-functions/wcscmp.texi: Mention the new module.
9621
9622 2011-02-05  Bruno Haible  <bruno@clisp.org>
9623
9624         New module 'wcsncat'.
9625         * modules/wcsncat: New file.
9626         * lib/wchar.in.h (wcsncat): New declaration.
9627         * lib/wcsncat.c: New file.
9628         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
9629         * m4/wcsncat.m4: New file.
9630         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
9631         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
9632         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
9633         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
9634         * doc/posix-functions/wcsncat.texi: Mention the new module.
9635
9636 2011-02-05  Bruno Haible  <bruno@clisp.org>
9637
9638         New module 'wcscat'.
9639         * modules/wcscat: New file.
9640         * lib/wchar.in.h (wcscat): New declaration.
9641         * lib/wcscat.c: New file.
9642         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
9643         * m4/wcscat.m4: New file.
9644         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
9645         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
9646         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
9647         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
9648         * doc/posix-functions/wcscat.texi: Mention the new module.
9649
9650 2011-02-05  Bruno Haible  <bruno@clisp.org>
9651
9652         New module 'wcpncpy'.
9653         * modules/wcpncpy: New file.
9654         * lib/wchar.in.h (wcpncpy): New declaration.
9655         * lib/wcpncpy.c: New file.
9656         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
9657         * m4/wcpncpy.m4: New file.
9658         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
9659         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
9660         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
9661         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
9662         * doc/posix-functions/wcpncpy.texi: Mention the new module.
9663
9664 2011-02-05  Bruno Haible  <bruno@clisp.org>
9665
9666         New module 'wcsncpy'.
9667         * modules/wcsncpy: New file.
9668         * lib/wchar.in.h (wcsncpy): New declaration.
9669         * lib/wcsncpy.c: New file.
9670         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
9671         * m4/wcsncpy.m4: New file.
9672         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
9673         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
9674         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
9675         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
9676         * doc/posix-functions/wcsncpy.texi: Mention the new module.
9677
9678 2011-02-05  Bruno Haible  <bruno@clisp.org>
9679
9680         New module 'wcpcpy'.
9681         * modules/wcpcpy: New file.
9682         * lib/wchar.in.h (wcpcpy): New declaration.
9683         * lib/wcpcpy.c: New file.
9684         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
9685         * m4/wcpcpy.m4: New file.
9686         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
9687         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
9688         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
9689         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
9690         * doc/posix-functions/wcpcpy.texi: Mention the new module.
9691
9692 2011-02-05  Bruno Haible  <bruno@clisp.org>
9693
9694         New module 'wcscpy'.
9695         * modules/wcscpy: New file.
9696         * lib/wchar.in.h (wcscpy): New declaration.
9697         * lib/wcscpy.c: New file.
9698         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
9699         * m4/wcscpy.m4: New file.
9700         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
9701         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
9702         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
9703         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
9704         * doc/posix-functions/wcscpy.texi: Mention the new module.
9705
9706 2011-02-05  Bruno Haible  <bruno@clisp.org>
9707
9708         New module 'wcsnlen'.
9709         * modules/wcsnlen: New file.
9710         * lib/wchar.in.h (wcsnlen): New declaration.
9711         * lib/wcsnlen.c: New file.
9712         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
9713         * m4/wcsnlen.m4: New file.
9714         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
9715         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
9716         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
9717         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
9718         * doc/posix-functions/wcsnlen.texi: Mention the new module.
9719
9720 2011-02-05  Bruno Haible  <bruno@clisp.org>
9721
9722         New module 'wcslen'.
9723         * modules/wcslen: New file.
9724         * lib/wchar.in.h (wcslen): New declaration.
9725         * lib/wcslen.c: New file.
9726         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
9727         * m4/wcslen.m4: New file.
9728         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
9729         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
9730         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
9731         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
9732         * doc/posix-functions/wcslen.texi: Mention the new module.
9733
9734 2011-02-05  Bruno Haible  <bruno@clisp.org>
9735
9736         New module 'wmemset'.
9737         * modules/wmemset: New file.
9738         * lib/wchar.in.h (wmemset): New declaration.
9739         * lib/wmemset.c: New file.
9740         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
9741         * m4/wmemset.m4: New file.
9742         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
9743         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
9744         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
9745         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
9746         * doc/posix-functions/wmemset.texi: Mention the new module.
9747
9748 2011-02-05  Bruno Haible  <bruno@clisp.org>
9749
9750         New module 'wmemmove'.
9751         * modules/wmemmove: New file.
9752         * lib/wchar.in.h (wmemmove): New declaration.
9753         * lib/wmemmove.c: New file.
9754         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
9755         * m4/wmemmove.m4: New file.
9756         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
9757         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
9758         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
9759         HAVE_WMEMMOVE.
9760         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
9761         * doc/posix-functions/wmemmove.texi: Mention the new module.
9762
9763 2011-02-05  Bruno Haible  <bruno@clisp.org>
9764
9765         New module 'wmemcpy'.
9766         * modules/wmemcpy: New file.
9767         * lib/wchar.in.h (wmemcpy): New declaration.
9768         * lib/wmemcpy.c: New file.
9769         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
9770         * m4/wmemcpy.m4: New file.
9771         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
9772         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
9773         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
9774         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
9775         * doc/posix-functions/wmemcpy.texi: Mention the new module.
9776
9777 2011-02-05  Bruno Haible  <bruno@clisp.org>
9778
9779         New module 'wmemcmp'.
9780         * modules/wmemcmp: New file.
9781         * lib/wchar.in.h (wmemcmp): New declaration.
9782         * lib/wmemcmp.c: New file.
9783         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
9784         * m4/wmemcmp.m4: New file.
9785         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
9786         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
9787         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
9788         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
9789         * doc/posix-functions/wmemcmp.texi: Mention the new module.
9790
9791 2011-02-07  Jim Meyering  <meyering@redhat.com>
9792
9793         di-set, ino-map: new modules, from coreutils
9794         * lib/di-set.c: New file.
9795         * lib/di-set.h: Likewise.
9796         * lib/ino-map.c: Likewise.
9797         * lib/ino-map.h: Likewise.
9798         * modules/di-set: Likewise.
9799         * modules/di-set-tests: Likewise.
9800         * modules/ino-map: Likewise.
9801         * modules/ino-map-tests: Likewise.
9802         * tests/test-di-set.c: Likewise.
9803         * tests/test-ino-map.c: Likewise.
9804
9805 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
9806
9807         getloadavg: merge minor changes from Emacs
9808
9809         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
9810         (getloadavg): Use memset, not bzero.
9811
9812         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
9813         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
9814         clash (bug#86).
9815
9816 2010-11-14  Bruno Haible  <bruno@clisp.org>
9817
9818         Allow multiple gnulib generated replacements to coexist.
9819         * lib/getopt.in.h (struct option): Avoid identical redefinition.
9820         * lib/inttypes.in.h (imaxdiv_t): Likewise.
9821         * lib/langinfo.in.h (nl_item): Likewise.
9822         * lib/math.in.h (_NaN, NAN): Likewise.
9823         * lib/netdb.in.h (struct addrinfo): Likewise.
9824         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
9825         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
9826         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
9827         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
9828         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
9829         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
9830         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
9831         pthread_mutexattr_init, pthread_mutexattr_settype,
9832         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
9833         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
9834         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
9835         pthread_spin_trylock, pthread_spin_unlock): Likewise.
9836         * lib/sched.in.h (struct sched_param): Likewise.
9837         * lib/se-selinux.in.h (security_class_t, security_context_t,
9838         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
9839         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
9840         lsetfilecon, fsetfilecon, security_check_context,
9841         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
9842         Likewise.
9843         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
9844         Likewise.
9845         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
9846         _gl_function_taking_int_returning_void_t, union sigval,
9847         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
9848         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
9849         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
9850         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
9851         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
9852         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
9853         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
9854         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
9855         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
9856         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
9857         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
9858         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
9859         socklen_t, rpl_fd_isset): Likewise.
9860         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
9861         * lib/sys_time.in.h (struct timeval): Likewise.
9862         * lib/sys_times.in.h (struct tms): Likewise.
9863         * lib/sys_utsname.in.h (struct utsname):
9864         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
9865         * lib/unistd.in.h (getpagesize): Likewise.
9866         * lib/wchar.in.h (mbstate_t): Likewise.
9867         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
9868         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
9869         towlower, towupper): Likewise.
9870         Reported by Sam Steingold <sds@gnu.org>.
9871
9872 2011-02-05  Eric Blake  <eblake@redhat.com>
9873
9874         unsetenv: work around Haiku issues
9875         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
9876         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
9877
9878 2010-12-30  Bruce Korb  <bkorb@gnu.org>
9879
9880         libposix: avoid calling error() within libposix
9881         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
9882         is defined.
9883
9884 2011-02-05  Eric Blake  <eblake@redhat.com>
9885
9886         strerror_r-posix: port to cygwin
9887         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
9888         implementation.
9889         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
9890         * tests/test-strerror_r.c (main): Fix test.
9891         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
9892         issue.
9893
9894 2011-02-05  Bruno Haible  <bruno@clisp.org>
9895
9896         New module 'wmemchr'.
9897         * modules/wmemchr: New file.
9898         * lib/wchar.in.h (wmemchr): New declaration.
9899         * lib/wmemchr.c: New file.
9900         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
9901         * m4/wmemchr.m4: New file.
9902         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
9903         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
9904         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
9905         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
9906         * doc/posix-functions/wmemchr.texi: Mention the new module.
9907
9908 2011-02-04  Eric Blake  <eblake@redhat.com>
9909
9910         fdopendir: detect FreeBSD bug
9911         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
9912         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
9913
9914 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
9915
9916         stdbool: do not define HAVE_STDBOOL_H
9917         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
9918         AC_HEADER_STDBOOL.  All uses changed.  Do not define
9919         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
9920         imported from the latest Autoconf git.  It was motivated by Emacs,
9921         which uses gnulib but does not need HAVE_STDBOOL_H.
9922
9923 2011-02-04  Bruno Haible  <bruno@clisp.org>
9924
9925         wcsnrtombs: Prepare for new module wwcsnrtombs.
9926         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
9927         * lib/wcsnrtombs.c: Include it.
9928         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
9929
9930         wcsrtombs: Prepare for new module wwcsrtombs.
9931         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
9932         * lib/wcsrtombs.c: Include it.
9933         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
9934
9935         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
9936         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
9937         * lib/mbsnrtowcs.c: Include it.
9938         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
9939
9940         mbsrtowcs: Prepare for new module mbsrtowwcs.
9941         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
9942         * lib/mbsrtowcs.c: Include it.
9943         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
9944
9945 2011-02-04  Bruno Haible  <bruno@clisp.org>
9946
9947         vasnprintf: Reduce use of malloc for small format strings.
9948         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
9949         (arguments): Add room for the first 7 arguments.
9950         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
9951         (char_directives, u8_directives, u16_directives, u32_directives): Add
9952         room for the first 7 directives.
9953         * lib/printf-parse.c: Include <string.h>.
9954         (PRINTF_PARSE): Change memory handling code so that it uses the first
9955         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
9956         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
9957         Reported by Pádraig Brady <P@draigbrady.com>.
9958
9959 2011-01-31  Eric Blake  <eblake@redhat.com>
9960
9961         dup2: work around Haiku bug
9962         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
9963         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
9964         * doc/posix-functions/dup2.texi (dup2): Document the bug.
9965         * tests/test-dup2.c (main): Enhance test.
9966
9967 2011-01-31  Simon Josefsson  <simon@josefsson.org>
9968
9969         doc: off_t is not available in eglibc 2.11.2 stdio.h.
9970         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
9971         declared by eglibc 2.11.2.
9972         * lib/stdio.in.h: Likewise.
9973
9974 2011-01-31  Eric Blake  <eblake@redhat.com>
9975
9976         ignore-value: add missing test dependency
9977         * tests/test-ignore-value.c: Revert previous change; stdio.h
9978         provides off_t.
9979         * modules/ignore-value-tests (Depends-on): Add missing dependency.
9980
9981 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
9982
9983         mktime: clarify long_int width checking
9984         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
9985         the top level, to make it clearer that the assumption about
9986         long_int width is being checked.  See
9987         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
9988
9989 2011-01-30  Simon Josefsson  <simon@josefsson.org>
9990
9991         ignore-value: Fix self-test.
9992         * tests/test-ignore-value.c: Include sys/types.h for off_t.
9993
9994 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
9995
9996         TYPE_MAXIMUM: avoid theoretically undefined behavior
9997         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
9998         negative number, which the C Standard says has undefined behavior.
9999         In practice this is not a problem, but might as well do it by the book.
10000         Reported by Rich Felker and Eric Blake; see
10001         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
10002         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
10003         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
10004         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
10005         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
10006         * m4/stdint.m4 (gl_STDINT_H): Likewise.
10007         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
10008
10009         mktime: #undef mktime before #defining it
10010         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
10011
10012         mktime: systematically normalize tm_isdst comparisons
10013         * lib/mktime.c (isdst_differ): New function.
10014         (__mktime_internal): Use it systematically for all isdst comparisons.
10015         This completes the fix for libc BZ #6723, and removes the need for
10016         normalizing tm_isdst.  See
10017         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
10018         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
10019
10020         mktime: fix some integer overflow issues and sidestep the rest
10021
10022         This was prompted by a bug report by Benjamin Lindner for MinGW
10023         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
10024         His bug is due to signed integer overflow (0 - INT_MIN), and I
10025         I scanned through mktime.c looking for other integer overflow
10026         problems, fixing all the bugs I found.
10027
10028         Although the C Standard says the resulting code is still not safe
10029         in the presence of integer overflow, in practice it should be good
10030         enough for all real-world two's-complement implementations, except
10031         for debugging environments that deliberately trap on integer
10032         overflow (e.g., gcc -ftrapv).
10033
10034         * lib/mktime.c (WRAPV): New macro.
10035         (SHR): Also check that long_int and time_t shift right in the
10036         usual way, before using the fast-but-unportable method.
10037         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
10038         used.  The code already assumed two's complement, so there's
10039         no need to test for alternatives.  All uses removed.
10040         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
10041         the C standard.  Problem reported by Rich Felker in
10042         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
10043         (twos_complement_arithmetic): Also check long_int and time_t.
10044         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
10045         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
10046         (__mktime_internal): Avoid integer overflow with unary subtraction
10047         in two instances where -1 - X is an adequate replacement for -X,
10048         since the calculations are approximate.
10049
10050 2011-01-29  Eric Blake  <eblake@redhat.com>
10051
10052         mktime: avoid infinite loop
10053         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
10054         type; behavior is still undefined but portable to all known targets.
10055         Reported by Rich Felker.
10056
10057 2011-01-29  Simon Josefsson  <simon@josefsson.org>
10058
10059         rename, unlink, same-inode: Relicense.
10060         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
10061         * modules/unlink (License): Likewise.
10062         * modules/same-inode (License): Likewise.
10063
10064 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
10065
10066         mktime: avoid problems on NetBSD 5 / i386
10067         * lib/mktime.c (long_int): New type.  This works around a problem
10068         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
10069         but time_t is 64 bits, and where I expect the existing code is
10070         wrong in some cases.
10071         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
10072         (ydhms_diff): Bring back the compile-time check for wide-enough
10073         year and yday.
10074
10075         mktime: fix misspelling in comment
10076         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
10077         This merges all recent glibc changes of importance.
10078
10079 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10080
10081         move-if-change: cope with concurrent mv of identical file.
10082         * build-aux/move-if-change (CMPPROG): Accept environment
10083         variable as an override for `cmp'.
10084         (usage): Document CMPPROG.
10085         Adjust comparison to drop stdout.  Cope with failure of mv if
10086         the target file exists and is identical to the source, for
10087         parallel builds.
10088         Report from H.J. Lu against binutils in PR binutils/12283.
10089
10090 2011-01-28  Bruce Korb  <bkorb@gnu.org>
10091
10092         * users.txt: Mention sharutils.
10093
10094 2011-01-28  Simon Josefsson  <simon@josefsson.org>
10095
10096         * users.txt: Mention OATH Toolkit.
10097
10098 2011-01-27  Bruno Haible  <bruno@clisp.org>
10099
10100         Prepare for supporting FreeBSD 10.
10101         * build-aux/config.libpath: Remove handling of freebsd1*.
10102
10103 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
10104
10105         Prepare for supporting FreeBSD 10.
10106         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
10107         match FreeBSD 10.0.
10108
10109 2011-01-27  Bruno Haible  <bruno@clisp.org>
10110
10111         vma-iter, get-rusage-as: Add OpenBSD support.
10112         * modules/vma-iter (configure.ac): Test for mquery.
10113         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
10114         * lib/vma-iter.c: Include <sys/mman.h>.
10115         (vma_iterate): Add an implementation based on mquery().
10116         * lib/resource-ext.h (get_rusage_as): Update comments.
10117         * lib/get-rusage-as.c: Likewise.
10118         * lib/get-rusage-data.c: Likewise.
10119
10120 2011-01-26  Karl Berry  <karl@gnu.org>
10121
10122         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
10123         variables to make it easier to override the makeinfo program used.
10124
10125 2011-01-26  Eric Blake  <eblake@redhat.com>
10126
10127         fcntl: work around Haiku F_DUPFD bugs
10128         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
10129         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
10130         cloexec bit on duplication.
10131         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
10132
10133 2011-01-26  Bruno Haible  <bruno@clisp.org>
10134
10135         Enable memory leak tests on AIX.
10136         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
10137         * tests/test-fprintf-posix3.c (main): Likewise.
10138
10139 2011-01-26  Bruno Haible  <bruno@clisp.org>
10140
10141         Tests for module 'get-rusage-data'.
10142         * modules/get-rusage-data-tests: New file.
10143         * tests/test-get-rusage-data.c: New file.
10144
10145         New module 'get-rusage-data'.
10146         * lib/resource-ext.h (get_rusage_data): New declaration.
10147         * lib/get-rusage-data.c: New file.
10148         * modules/get-rusage-data: New file.
10149
10150 2011-01-25  Bruno Haible  <bruno@clisp.org>
10151
10152         get-rusage-as: Allow for easier testing.
10153         * lib/resource-ext.h (get_rusage_as): Add comment.
10154         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
10155         (main): New function for interactive testing.
10156
10157 2011-01-25  Bruno Haible  <bruno@clisp.org>
10158
10159         vma-iter: Treat Haiku like BeOS.
10160         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
10161         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
10162
10163 2011-01-25  Eric Blake  <eblake@redhat.com>
10164
10165         c-stack: fix regression on cygwin when libsigsegv is present
10166         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
10167
10168 2011-01-24  Bruno Haible  <bruno@clisp.org>
10169
10170         vma-iter: Avoid empty intervals.
10171         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
10172         on an empty interval.
10173
10174 2011-01-24  Jim Meyering  <meyering@redhat.com>
10175
10176         u64: remove unnecessary #include
10177         * lib/u64.h: Don't include <stddef.h>.  It was not used.
10178
10179 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
10180
10181         Allow the user to avoid the HAVE_RAW_DECL_* macros.
10182         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
10183
10184 2011-01-23  Bruno Haible  <bruno@clisp.org>
10185
10186         New module 'vma-iter'.
10187         * lib/vma-iter.h: New file.
10188         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
10189         * modules/vma-iter: New file.
10190         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
10191         for get_rusage_as_via_iterator.
10192         (vma_iterate_callback): New function.
10193         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
10194         * modules/get-rusage-as (Depends-on): Add vma-iter.
10195
10196 2011-01-23  Bruno Haible  <bruno@clisp.org>
10197
10198         uninorm: Tweak includes.
10199         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
10200         Reported by Jim Meyering.
10201
10202 2011-01-23  Bruno Haible  <bruno@clisp.org>
10203
10204         get-rusage-as: Improve on NetBSD.
10205         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
10206         /proc, like on FreeBSD.
10207
10208 2011-01-23  Jim Meyering  <meyering@redhat.com>
10209
10210         xreadlink.h: remove unnecessary #include
10211         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
10212
10213         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
10214         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
10215
10216 2011-01-23  Bruno Haible  <bruno@clisp.org>
10217
10218         get-rusage-as: Fix bug.
10219         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
10220         original limit when aborting the first loop.
10221
10222 2011-01-23  Bruno Haible  <bruno@clisp.org>
10223
10224         wctype: Ensure valid C syntax.
10225         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
10226         unconditionally, instead of gl_NEXT_HEADERS conditionally.
10227
10228 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
10229
10230         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
10231         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
10232         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
10233         as they are needed only for configure's test case.
10234         This removes two unnecessary symbols from config.h.
10235
10236         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
10237         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
10238         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
10239         AC_CHECK_HEADERS_ONCE on a header that we also invoke
10240         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
10241         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
10242         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
10243         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
10244         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
10245         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
10246         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
10247         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
10248         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
10249         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
10250         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
10251         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
10252         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
10253         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
10254
10255 2011-01-21  Eric Blake  <eblake@redhat.com>
10256
10257         maintainer-makefile: work with older git for submodule check
10258         * top/maint.mk (public-submodule-commit): Rewrite to avoid
10259         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
10260         Reported by Matthias Bolte.
10261
10262         bootstrap: minor portability fixes
10263         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
10264         (usage): Omit leading capital and trailing . on help phrases, per
10265         GNU Coding Standards.
10266         (check_versions, top level): Prefix messages with script name.
10267
10268 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
10269
10270         bootstrap: support --no-git option
10271         * build-aux/bootstrap: Add --no-git option, to be used when
10272         --gnulib-srcdir points to the exact desired checkout.
10273
10274 2011-01-21  Eric Blake  <eblake@redhat.com>
10275
10276         strerror_r-posix: work with glibc 2.13
10277         * lib/strerror_r.c (strerror_r): Fix return type.
10278
10279 2011-01-21  Pádraig Brady  <P@draigBrady.com>
10280             Bruno Haible  <bruno@clisp.org>
10281
10282         uN_strstr: New unit tests.
10283         * modules/unistr/u8-strstr-tests: New file.
10284         * modules/unistr/u16-strstr-tests: New file.
10285         * modules/unistr/u32-strstr-tests: New file.
10286         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
10287         * tests/unistr/test-u8-strstr.c: New file.
10288         * tests/unistr/test-u16-strstr.c: New file.
10289         * tests/unistr/test-u32-strstr.c: New file.
10290
10291 2011-01-21  Pádraig Brady  <P@draigBrady.com>
10292             Bruno Haible  <bruno@clisp.org>
10293
10294         Make uN_strstr functions O(n) worst-case.
10295         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
10296         16-bit and 32-bit unit cases, use the unibyte algorithm from
10297         lib/mbsstr.c.
10298         * lib/unistr/u8-strstr.c: Include <string.h>.
10299         (UNIT_IS_UINT8_T): New macro.
10300         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
10301         (U_STRLEN, U_STRNLEN): New macros.
10302         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
10303         (U_STRLEN, U_STRNLEN): New macros.
10304         * modules/unistr/u8-strstr (Depends-on): Add strstr.
10305         (configure.ac): Update required libunistring version.
10306         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
10307         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
10308         malloca.
10309         (configure.ac): Update required libunistring version.
10310         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
10311         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
10312         malloca.
10313         (configure.ac): Update required libunistring version.
10314
10315 2011-01-21  Pádraig Brady  <P@draigBrady.com>
10316             Bruno Haible  <bruno@clisp.org>
10317
10318         Prepare for faster uN_strstr functions.
10319         * lib/str-kmp.h: Support definable UNITs.
10320         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
10321         needle_len argument.
10322         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
10323         * lib/mbscasestr.c (mbscasestr): Likewise.
10324
10325 2011-01-21  Pádraig Brady <P@draigBrady.com>
10326
10327         malloca-tests: make faster by unsetting MALLOC_PERTURB_
10328         * tests/test-malloca.c (main): Unset the environment variable
10329         to greatly speed up the test.
10330         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
10331         * modules/malloca-tests: Depend on unsetenv.
10332
10333 2011-01-21  Pádraig Brady <P@draigBrady.com>
10334
10335         ignore-value: remove stdint dependency
10336         * lib/ignore-value.h: Remove <stdint.h>
10337         * modules/ignore-value: Remove stdint dependency.
10338
10339 2011-01-21  Jim Meyering  <meyering@redhat.com>
10340
10341         maint.mk: adjust variable name to be consistent with other gl_ vars
10342         * top/maint.mk (gl_public_submodule_commit): Rename the variable
10343         to be lower case.
10344
10345 2011-01-20  Jim Meyering  <meyering@redhat.com>
10346
10347         maint.mk: make "check" depend on public-submodule-commit by default
10348         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
10349
10350 2011-01-20  Bruno Haible  <bruno@clisp.org>
10351
10352         mbfile, mbiter: Complete change from 2008-12-21.
10353         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
10354         * m4/mbiter.m4 (gl_MBITER): Likewise.
10355
10356 2011-01-20  Jim Meyering  <meyering@redhat.com>
10357
10358         init.sh: insert space between each function name and "()"
10359         * tests/init.sh: Make it a little easier to see that a function's
10360         name is "warn_", and not "warn" when looking at the first part of
10361         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
10362
10363 2011-01-20  Jim Meyering  <meyering@redhat.com>
10364
10365         mountlist: clean up code formatting
10366         * lib/mountlist.c (read_file_system_list): Split a long line,
10367         correct bracing style, use NULL in place of "(struct statfs *)0",
10368         don't parenthesize return value, add spaces around "=" and after
10369         ";-in-for-stmt".
10370
10371 2011-01-14  Markus Duft <mduft@gentoo.org>
10372
10373         mountlist: add support for Interix
10374         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
10375         Apply statvfs to all entries of /dev/fs.
10376         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
10377         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
10378
10379 2011-01-20  Jim Meyering  <meyering@redhat.com>
10380
10381         maint.mk: improve the public-submodule-commit rule
10382         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
10383         to suppress printing of its commands... unless V=1.
10384         Add git submodule's --quiet option to suppress printing of e.g.,
10385         "Entering gnulib" output.
10386         "cd" into $(srcdir) before running git submodule.
10387
10388 2011-01-20  Bruno Haible  <bruno@clisp.org>
10389
10390         include_next: Fix bug introduced on 2011-01-18.
10391         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
10392         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
10393         ac_cv_header_... variable if the second argument is not 'check'.
10394         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
10395         gl_NEXT_HEADERS_INTERNAL.
10396
10397 2011-01-20  Bruno Haible  <bruno@clisp.org>
10398
10399         Allow the user to avoid the GNULIB_TEST_* macros.
10400         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
10401         Suggested by Paul Eggert.
10402
10403 2011-01-14  Jim Meyering  <meyering@redhat.com>
10404
10405         bootstrap: avoid failure when there is no .gitmodules file
10406         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
10407         has been assigned to, even when its value is the empty string.
10408         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
10409         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
10410         Reported by John W. Eaton <jwe@gnu.org>.
10411
10412 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
10413
10414         assume <ctype.h>, ..., <time.h> exist
10415         For years gnulib has been assuming the existence of the headers
10416         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
10417         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
10418         them, since they don't appear to be needed.
10419         * README (Portability guidelines): Document this.
10420         * lib/flock.c: Assume <fcntl.h> exists.
10421         * lib/regex_internal.h: Assume <locale.h> exists.
10422         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
10423         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
10424         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
10425         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
10426         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
10427         * m4/regex.m4 (gl_REGEX): Likewise.
10428         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
10429         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
10430         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
10431         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
10432         * tests/test-argp.c: Likewise.
10433         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
10434
10435         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
10436         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
10437         AA_APPLE_UNIVERSAL_BUILD.  See
10438         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
10439         * NEWS: Document this.
10440
10441 2011-01-19  Eric Blake  <eblake@redhat.com>
10442
10443         c-stack: assume stack overflow if SA_SIGINFO unsupported
10444         * lib/c-stack.c (SIGACTION_WORKS): Rename...
10445         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
10446         sigaction will work.
10447         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
10448         behavior match Linux.
10449         * tests/test-c-stack.c (main): Prefer NULL for pointers.
10450
10451         stdbool-tests: accomodate Haiku
10452         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
10453
10454         binary-io: fix O_TEXT on Haiku
10455         * modules/binary-io (Depends-on): Add fcntl-h.
10456         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
10457         than blindly undefining O_TEXT.
10458         Reported by Scott McCreary.
10459
10460 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
10461
10462         include_next: do not check for standard headers like stddef.h
10463
10464         I found this problem when modifying Emacs to use gnulib.
10465         I noticed that it added HAVE_STDDEF_H to config.h, even though
10466         gnulib always assumes <stddef.h> exists as per README and this
10467         symbol is unnecessary.
10468         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
10469         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
10470         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
10471         faster for headers like stddef.h that are known to exist.
10472         (gl_CHECK_NEXT_HEADERS): Use it.
10473         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
10474         rather than gl_CHECK_NEXT_HEADERS.
10475         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
10476         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
10477
10478 2011-01-18  Eric Blake  <eblake@redhat.com>
10479
10480         ansi-c++-opt: skip C++ dependency style if C++ is unused
10481         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
10482         tests when we know C++ compilation is not desired.
10483         Reported by Scott McCreary.
10484
10485 2011-01-18  Bruno Haible  <bruno@clisp.org>
10486
10487         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
10488         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
10489         (main): Perform test also when getrlimit and setrlimit don't exist or
10490         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
10491         limiting the address space size using setrlimit, compare the address
10492         space size before and after the the test.
10493         * tests/test-dprintf-posix2.c: Likewise.
10494         * tests/test-fprintf-posix3.sh: Update skip messages.
10495         * tests/test-dprintf-posix2.sh: Likewise.
10496         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
10497         * modules/dprintf-posix-tests (Depends-on): Likewise.
10498         Reported by Bruce Korb <bkorb@gnu.org> and
10499         Gary V. Vaughan <gary@gnu.org>.
10500
10501 2011-01-18  Bruno Haible  <bruno@clisp.org>
10502
10503         get-rusage-as: Improvement for Cygwin.
10504         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
10505         areas that are merely reserved.
10506
10507 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
10508
10509         strftime: remove dependencies on multibyte modules
10510
10511         strftime depended on mbrlen, mbsinit, and wchar, but these modules
10512         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
10513         only if __osf__ is defined, and I suspect OSF doesn't need these
10514         other modules.  If my guess is wrong, we'll need to come up with a
10515         variant of strftime that doesn't need the multibyte modules.
10516
10517         I discovered this problem when attempting modify Emacs to use the
10518         strftime module.  With the previous gnulib, this caused Emacs to
10519         need 31 new files, ranging from lib/config.charset to
10520         m4/wint_t.m4.  This was overkill and I expect would be offputting
10521         to the Emacs maintainers.  After this change, only 6 new files are
10522         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
10523         stdbool.m4, and tm_gmtoff.m4.
10524
10525         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
10526         Suggested by Bruno Haible in
10527         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
10528         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
10529         and do not check for wchar.h.
10530         * modules/strftime (Files): Remove m4/mbstate_t.m4.
10531         (Depends-on): Remove mbrlen, mbsinit, wchar.
10532
10533 2011-01-18  Bruno Haible  <bruno@clisp.org>
10534
10535         Tests for module 'get-rusage-as'.
10536         * modules/get-rusage-as-tests: New file.
10537         * tests/test-get-rusage-as.c: New file.
10538
10539         New module 'get-rusage-as'.
10540         * modules/get-rusage-as: New file.
10541         * lib/resource-ext.h: New file.
10542         * lib/get-rusage-as.c: New file.
10543
10544 2011-01-17  Eric Blake  <eblake@redhat.com>
10545
10546         sigaction: relax license from LGPLv3+ to LGPLv2+
10547         * modules/sigaction (License): Relax to LGPLv2+.
10548
10549 2011-01-14  Bruno Haible  <bruno@clisp.org>
10550
10551         filemode: Make function declarations usable in C++ mode.
10552         * lib/filemode.h: Enclose function declarations in extern "C" block.
10553         Reported by John W. Eaton <jwe@gnu.org>.
10554
10555 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
10556
10557         save-cwd: no longer include "xgetcwd.h"
10558         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
10559         This avoids a compilation failure in projects that use save-cwd
10560         without also using the xgetcwd module.
10561
10562 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
10563
10564         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
10565         This is so that a program like Emacs, which needs only dtoastr,
10566         does not have to bother with distributing and compiling ftoastr
10567         and ldtoastr.
10568         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
10569         * modules/dtoastr, modules/ldtoastr: New files.
10570         * modules/ftoastr: Now works just for 'float'.
10571         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
10572         (Makefile.am): Remove ftoastr.h (not needed and no effect),
10573         dtoastr.c, ldtoastr.c.
10574
10575 2011-01-11  Jim Meyering  <meyering@redhat.com>
10576
10577         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
10578         There is no need to work around the lack of the fchdir function,
10579         since gnulib can now provide a replacement when required.
10580         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
10581         * modules/save-cwd (Depends-on): Add fchdir.
10582
10583 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
10584
10585         openat, save-cwd: avoid xmalloc
10586
10587         This removes a direct (but undocumented) dependency of openat on
10588         xalloc, along with an indirect dependency via save-cwd.  It also
10589         removes a dependency of save-cwd on xgetcwd, and thereby
10590         indirectly on xalloc.  This change causes the openat substitute
10591         to fall back on save_cwd when memory is tight, and for save_cwd to
10592         fail instead of dying when memory is tight, but that's good enough.
10593         Problem and initial idea for fix reported by Bastien Roucaries in
10594         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
10595
10596         * lib/openat-proc.c: Include stdlib.h (for malloc), not
10597         xalloc.h (for xmalloc).
10598         (openat_proc_name): Use malloc, not xmalloc.
10599         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
10600         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
10601
10602         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
10603         This avoids heap allocation for file names whose lengths are in
10604         the range 512..1023, with the upper bound increasing to at most
10605         4031 depending on the platform's PATH_MAX.  (We do not want
10606         pathmax.h here as it might supply a non-constant PATH_MAX.)
10607         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
10608         Perhaps they should be moved to malloca.h?
10609         (OPENAT_BUFFER_SIZE): Use them.
10610
10611 2011-01-10  Bruno Haible  <bruno@clisp.org>
10612
10613         doc: Update users.txt.
10614         * users.txt: Add recutils.
10615
10616 2011-01-09  Karl Berry  <karl@gnu.org>
10617
10618         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
10619
10620         * doc/configmake.texi: New file.
10621         * doc/gnulib.texi: Include it.
10622         * modules/configmake: Move documentation from here.
10623
10624 2011-01-09  Bruno Haible  <bruno@clisp.org>
10625
10626         Update to Unicode 6.0.0.
10627         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
10628         (get_lbp): Update for Unicode 6.0.0.
10629         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
10630         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
10631         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
10632         U+11001, U+11038..U+11046. Remove U+06DE.
10633         (uc_width): Fix bounds of planes.
10634         * tests/uniwidth/test-uc_width2.sh: Same updates as in
10635         lib/uniwidth/width.c.
10636         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
10637         trailing whitespace removed.
10638         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
10639         without comments, but with the original copyright notice.
10640         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
10641         * lib/unicase/ignorable.h: Likewise.
10642         * lib/unicase/tocasefold.h: Likewise.
10643         * lib/unicase/tolower.h: Likewise.
10644         * lib/unicase/totitle.h: Likewise.
10645         * lib/unicase/toupper.h: Likewise.
10646         * lib/unictype/bidi_of.h: Likewise.
10647         * lib/unictype/blocks.h: Likewise.
10648         * lib/unictype/categ_C.h: Likewise.
10649         * lib/unictype/categ_Cn.h: Likewise.
10650         * lib/unictype/categ_L.h: Likewise.
10651         * lib/unictype/categ_Ll.h: Likewise.
10652         * lib/unictype/categ_Lm.h: Likewise.
10653         * lib/unictype/categ_Lo.h: Likewise.
10654         * lib/unictype/categ_Lu.h: Likewise.
10655         * lib/unictype/categ_M.h: Likewise.
10656         * lib/unictype/categ_Mc.h: Likewise.
10657         * lib/unictype/categ_Me.h: Likewise.
10658         * lib/unictype/categ_Mn.h: Likewise.
10659         * lib/unictype/categ_N.h: Likewise.
10660         * lib/unictype/categ_Nd.h: Likewise.
10661         * lib/unictype/categ_No.h: Likewise.
10662         * lib/unictype/categ_P.h: Likewise.
10663         * lib/unictype/categ_Po.h: Likewise.
10664         * lib/unictype/categ_S.h: Likewise.
10665         * lib/unictype/categ_Sc.h: Likewise.
10666         * lib/unictype/categ_Sk.h: Likewise.
10667         * lib/unictype/categ_Sm.h: Likewise.
10668         * lib/unictype/categ_So.h: Likewise.
10669         * lib/unictype/categ_of.h: Likewise.
10670         * lib/unictype/combining.h: Likewise.
10671         * lib/unictype/ctype_alnum.h: Likewise.
10672         * lib/unictype/ctype_alpha.h: Likewise.
10673         * lib/unictype/ctype_graph.h: Likewise.
10674         * lib/unictype/ctype_lower.h: Likewise.
10675         * lib/unictype/ctype_print.h: Likewise.
10676         * lib/unictype/ctype_punct.h: Likewise.
10677         * lib/unictype/ctype_upper.h: Likewise.
10678         * lib/unictype/decdigit.h: Likewise.
10679         * lib/unictype/digit.h: Likewise.
10680         * lib/unictype/numeric.h: Likewise.
10681         * lib/unictype/pr_alphabetic.h: Likewise.
10682         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
10683         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
10684         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
10685         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
10686         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
10687         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
10688         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
10689         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
10690         * lib/unictype/pr_case_ignorable.h: Likewise.
10691         * lib/unictype/pr_cased.h: Likewise.
10692         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
10693         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
10694         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
10695         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
10696         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
10697         * lib/unictype/pr_combining.h: Likewise.
10698         * lib/unictype/pr_composite.h: Likewise.
10699         * lib/unictype/pr_currency_symbol.h: Likewise.
10700         * lib/unictype/pr_decimal_digit.h: Likewise.
10701         * lib/unictype/pr_deprecated.h: Likewise.
10702         * lib/unictype/pr_format_control.h: Likewise.
10703         * lib/unictype/pr_grapheme_base.h: Likewise.
10704         * lib/unictype/pr_grapheme_extend.h: Likewise.
10705         * lib/unictype/pr_grapheme_link.h: Likewise.
10706         * lib/unictype/pr_id_continue.h: Likewise.
10707         * lib/unictype/pr_id_start.h: Likewise.
10708         * lib/unictype/pr_ideographic.h: Likewise.
10709         * lib/unictype/pr_lowercase.h: Likewise.
10710         * lib/unictype/pr_math.h: Likewise.
10711         * lib/unictype/pr_numeric.h: Likewise.
10712         * lib/unictype/pr_other_alphabetic.h: Likewise.
10713         * lib/unictype/pr_other_id_continue.h: Likewise.
10714         * lib/unictype/pr_other_math.h: Likewise.
10715         * lib/unictype/pr_punctuation.h: Likewise.
10716         * lib/unictype/pr_sentence_terminal.h: Likewise.
10717         * lib/unictype/pr_terminal_punctuation.h: Likewise.
10718         * lib/unictype/pr_unassigned_code_value.h: Likewise.
10719         * lib/unictype/pr_unified_ideograph.h: Likewise.
10720         * lib/unictype/pr_uppercase.h: Likewise.
10721         * lib/unictype/pr_xid_continue.h: Likewise.
10722         * lib/unictype/pr_xid_start.h: Likewise.
10723         * lib/unictype/scripts.h: Likewise.
10724         * lib/unictype/scripts_byname.gperf: Likewise.
10725         * lib/unictype/sy_java_ident.h: Likewise.
10726         * lib/unigbrk/gbrkprop.h: Likewise.
10727         * lib/unilbrk/lbrkprop1.h: Likewise.
10728         * lib/unilbrk/lbrkprop2.h: Likewise.
10729         * lib/uninorm/decomposition-table2.h: Likewise.
10730         * lib/uniwbrk/wbrkprop.h: Likewise.
10731         * tests/unicase/test-cased.c: Likewise.
10732         * tests/unicase/test-ignorable.c: Likewise.
10733         * tests/unicase/test-uc_tolower.c: Likewise.
10734         * tests/unicase/test-uc_totitle.c: Likewise.
10735         * tests/unicase/test-uc_toupper.c: Likewise.
10736         * tests/unictype/test-categ_C.c: Likewise.
10737         * tests/unictype/test-categ_Cn.c: Likewise.
10738         * tests/unictype/test-categ_L.c: Likewise.
10739         * tests/unictype/test-categ_Ll.c: Likewise.
10740         * tests/unictype/test-categ_Lm.c: Likewise.
10741         * tests/unictype/test-categ_Lo.c: Likewise.
10742         * tests/unictype/test-categ_Lu.c: Likewise.
10743         * tests/unictype/test-categ_M.c: Likewise.
10744         * tests/unictype/test-categ_Mc.c: Likewise.
10745         * tests/unictype/test-categ_Me.c: Likewise.
10746         * tests/unictype/test-categ_Mn.c: Likewise.
10747         * tests/unictype/test-categ_N.c: Likewise.
10748         * tests/unictype/test-categ_Nd.c: Likewise.
10749         * tests/unictype/test-categ_No.c: Likewise.
10750         * tests/unictype/test-categ_P.c: Likewise.
10751         * tests/unictype/test-categ_Po.c: Likewise.
10752         * tests/unictype/test-categ_S.c: Likewise.
10753         * tests/unictype/test-categ_Sc.c: Likewise.
10754         * tests/unictype/test-categ_Sk.c: Likewise.
10755         * tests/unictype/test-categ_Sm.c: Likewise.
10756         * tests/unictype/test-categ_So.c: Likewise.
10757         * tests/unictype/test-ctype_alnum.c: Likewise.
10758         * tests/unictype/test-ctype_alpha.c: Likewise.
10759         * tests/unictype/test-ctype_graph.c: Likewise.
10760         * tests/unictype/test-ctype_lower.c: Likewise.
10761         * tests/unictype/test-ctype_print.c: Likewise.
10762         * tests/unictype/test-ctype_punct.c: Likewise.
10763         * tests/unictype/test-ctype_upper.c: Likewise.
10764         * tests/unictype/test-decdigit.h: Likewise.
10765         * tests/unictype/test-digit.h: Likewise.
10766         * tests/unictype/test-numeric.h: Likewise.
10767         * tests/unictype/test-pr_alphabetic.c: Likewise.
10768         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
10769         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
10770         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
10771         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
10772         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
10773         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
10774         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
10775         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
10776         * tests/unictype/test-pr_case_ignorable.c: Likewise.
10777         * tests/unictype/test-pr_cased.c: Likewise.
10778         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
10779         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
10780         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
10781         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
10782         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
10783         * tests/unictype/test-pr_combining.c: Likewise.
10784         * tests/unictype/test-pr_composite.c: Likewise.
10785         * tests/unictype/test-pr_currency_symbol.c: Likewise.
10786         * tests/unictype/test-pr_decimal_digit.c: Likewise.
10787         * tests/unictype/test-pr_deprecated.c: Likewise.
10788         * tests/unictype/test-pr_format_control.c: Likewise.
10789         * tests/unictype/test-pr_grapheme_base.c: Likewise.
10790         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
10791         * tests/unictype/test-pr_grapheme_link.c: Likewise.
10792         * tests/unictype/test-pr_id_continue.c: Likewise.
10793         * tests/unictype/test-pr_id_start.c: Likewise.
10794         * tests/unictype/test-pr_ideographic.c: Likewise.
10795         * tests/unictype/test-pr_lowercase.c: Likewise.
10796         * tests/unictype/test-pr_math.c: Likewise.
10797         * tests/unictype/test-pr_numeric.c: Likewise.
10798         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
10799         * tests/unictype/test-pr_other_id_continue.c: Likewise.
10800         * tests/unictype/test-pr_other_math.c: Likewise.
10801         * tests/unictype/test-pr_punctuation.c: Likewise.
10802         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
10803         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
10804         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
10805         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
10806         * tests/unictype/test-pr_uppercase.c: Likewise.
10807         * tests/unictype/test-pr_xid_continue.c: Likewise.
10808         * tests/unictype/test-pr_xid_start.c: Likewise.
10809         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
10810         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
10811         changes.
10812         * lib/unictype/categ_Cc.h: Likewise.
10813         * lib/unictype/categ_Cf.h: Likewise.
10814         * lib/unictype/categ_Co.h: Likewise.
10815         * lib/unictype/categ_Cs.h: Likewise.
10816         * lib/unictype/categ_Lt.h: Likewise.
10817         * lib/unictype/categ_Nl.h: Likewise.
10818         * lib/unictype/categ_Pc.h: Likewise.
10819         * lib/unictype/categ_Pd.h: Likewise.
10820         * lib/unictype/categ_Pe.h: Likewise.
10821         * lib/unictype/categ_Pf.h: Likewise.
10822         * lib/unictype/categ_Pi.h: Likewise.
10823         * lib/unictype/categ_Ps.h: Likewise.
10824         * lib/unictype/categ_Z.h: Likewise.
10825         * lib/unictype/categ_Zl.h: Likewise.
10826         * lib/unictype/categ_Zp.h: Likewise.
10827         * lib/unictype/categ_Zs.h: Likewise.
10828         * lib/unictype/ctype_blank.h: Likewise.
10829         * lib/unictype/ctype_cntrl.h: Likewise.
10830         * lib/unictype/ctype_digit.h: Likewise.
10831         * lib/unictype/ctype_space.h: Likewise.
10832         * lib/unictype/ctype_xdigit.h: Likewise.
10833         * lib/unictype/mirror.h: Likewise.
10834         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
10835         * lib/unictype/pr_bidi_block_separator.h: Likewise.
10836         * lib/unictype/pr_bidi_common_separator.h: Likewise.
10837         * lib/unictype/pr_bidi_control.h: Likewise.
10838         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
10839         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
10840         * lib/unictype/pr_bidi_european_digit.h: Likewise.
10841         * lib/unictype/pr_bidi_pdf.h: Likewise.
10842         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
10843         * lib/unictype/pr_bidi_whitespace.h: Likewise.
10844         * lib/unictype/pr_dash.h: Likewise.
10845         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
10846         * lib/unictype/pr_diacritic.h: Likewise.
10847         * lib/unictype/pr_extender.h: Likewise.
10848         * lib/unictype/pr_hex_digit.h: Likewise.
10849         * lib/unictype/pr_hyphen.h: Likewise.
10850         * lib/unictype/pr_ids_binary_operator.h: Likewise.
10851         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
10852         * lib/unictype/pr_ignorable_control.h: Likewise.
10853         * lib/unictype/pr_iso_control.h: Likewise.
10854         * lib/unictype/pr_join_control.h: Likewise.
10855         * lib/unictype/pr_left_of_pair.h: Likewise.
10856         * lib/unictype/pr_line_separator.h: Likewise.
10857         * lib/unictype/pr_logical_order_exception.h: Likewise.
10858         * lib/unictype/pr_non_break.h: Likewise.
10859         * lib/unictype/pr_not_a_character.h: Likewise.
10860         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
10861         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
10862         * lib/unictype/pr_other_id_start.h: Likewise.
10863         * lib/unictype/pr_other_lowercase.h: Likewise.
10864         * lib/unictype/pr_other_uppercase.h: Likewise.
10865         * lib/unictype/pr_paired_punctuation.h: Likewise.
10866         * lib/unictype/pr_paragraph_separator.h: Likewise.
10867         * lib/unictype/pr_pattern_syntax.h: Likewise.
10868         * lib/unictype/pr_pattern_white_space.h: Likewise.
10869         * lib/unictype/pr_private_use.h: Likewise.
10870         * lib/unictype/pr_quotation_mark.h: Likewise.
10871         * lib/unictype/pr_radical.h: Likewise.
10872         * lib/unictype/pr_soft_dotted.h: Likewise.
10873         * lib/unictype/pr_space.h: Likewise.
10874         * lib/unictype/pr_titlecase.h: Likewise.
10875         * lib/unictype/pr_variation_selector.h: Likewise.
10876         * lib/unictype/pr_white_space.h: Likewise.
10877         * lib/unictype/pr_zero_width.h: Likewise.
10878         * lib/unictype/sy_c_ident.h: Likewise.
10879         * lib/unictype/sy_c_whitespace.h: Likewise.
10880         * lib/unictype/sy_java_whitespace.h: Likewise.
10881         * lib/uninorm/composition-table.gperf: Likewise.
10882         * lib/uninorm/decomposition-table1.h: Likewise.
10883         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
10884         LB8.
10885         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
10886         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
10887         * modules/unictype/*: Bump version number of expected libunistring
10888         version.
10889
10890 2011-01-09  Bruno Haible  <bruno@clisp.org>
10891
10892         Update to Unicode 5.2.0.
10893         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
10894         trailing whitespace removed.
10895
10896 2011-01-09  Bruno Haible  <bruno@clisp.org>
10897
10898         New Unicode character properties, from Unicode 5.2.0.
10899         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
10900         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
10901         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
10902         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
10903         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
10904         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
10905         uc_is_property_cased, uc_is_property_case_ignorable,
10906         uc_is_property_changes_when_lowercased,
10907         uc_is_property_changes_when_uppercased,
10908         uc_is_property_changes_when_titlecased,
10909         uc_is_property_changes_when_casefolded,
10910         uc_is_property_changes_when_casemapped): New declarations.
10911         * lib/unictype/pr_byname.gperf: Add the new properties.
10912         * modules/unictype/property-byname (Depends-on): Depend on the new
10913         properties modules.
10914         * modules/unictype/property-all (Depends-on): Likewise.
10915         * MODULES.html.sh (Unicode string functions): Add
10916         unictype/property-case-ignorable, unictype/property-cased,
10917         unictype/property-changes-when-casefolded,
10918         unictype/property-changes-when-casemapped,
10919         unictype/property-changes-when-lowercased,
10920         unictype/property-changes-when-titlecased,
10921         unictype/property-changes-when-uppercased.
10922
10923         New module 'unictype/property-changes-when-casemapped'.
10924         * modules/unictype/property-changes-when-casemapped: New file.
10925         * lib/unictype/pr_changes_when_casemapped.c: New file.
10926         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
10927         generated by gen-uni-tables.
10928         * modules/unictype/property-changes-when-casemapped-tests: New file.
10929         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
10930         automatically generated by gen-uni-tables.
10931
10932         New module 'unictype/property-changes-when-casefolded'.
10933         * modules/unictype/property-changes-when-casefolded: New file.
10934         * lib/unictype/pr_changes_when_casefolded.c: New file.
10935         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
10936         generated by gen-uni-tables.
10937         * modules/unictype/property-changes-when-casefolded-tests: New file.
10938         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
10939         automatically generated by gen-uni-tables.
10940
10941         New module 'unictype/property-changes-when-titlecased'.
10942         * modules/unictype/property-changes-when-titlecased: New file.
10943         * lib/unictype/pr_changes_when_titlecased.c: New file.
10944         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
10945         generated by gen-uni-tables.
10946         * modules/unictype/property-changes-when-titlecased-tests: New file.
10947         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
10948         automatically generated by gen-uni-tables.
10949
10950         New module 'unictype/property-changes-when-uppercased'.
10951         * modules/unictype/property-changes-when-uppercased: New file.
10952         * lib/unictype/pr_changes_when_uppercased.c: New file.
10953         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
10954         generated by gen-uni-tables.
10955         * modules/unictype/property-changes-when-uppercased-tests: New file.
10956         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
10957         automatically generated by gen-uni-tables.
10958
10959         New module 'unictype/property-changes-when-lowercased'.
10960         * modules/unictype/property-changes-when-lowercased: New file.
10961         * lib/unictype/pr_changes_when_lowercased.c: New file.
10962         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
10963         generated by gen-uni-tables.
10964         * modules/unictype/property-changes-when-lowercased-tests: New file.
10965         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
10966         automatically generated by gen-uni-tables.
10967
10968         New module 'unictype/property-case-ignorable'.
10969         * modules/unictype/property-case-ignorable: New file.
10970         * lib/unictype/pr_case_ignorable.c: New file.
10971         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
10972         by gen-uni-tables.
10973         * modules/unictype/property-case-ignorable-tests: New file.
10974         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
10975         generated by gen-uni-tables.
10976
10977         New module 'unictype/property-cased'.
10978         * modules/unictype/property-cased: New file.
10979         * lib/unictype/pr_cased.c: New file.
10980         * lib/unictype/pr_cased.h: New file, automatically generated by
10981         gen-uni-tables.
10982         * modules/unictype/property-cased-tests: New file.
10983         * tests/unictype/test-pr_cased.c: New file, automatically generated by
10984         gen-uni-tables.
10985
10986 2011-01-09  Bruno Haible  <bruno@clisp.org>
10987
10988         Update to Unicode 5.2.0.
10989         * lib/gen-uni-tables.c (output_predicate, output_category,
10990         output_combclass, output_bidi_category, output_decimal_digit_test,
10991         output_decimal_digit, output_digit_test, output_digit,
10992         output_numeric_test, output_numeric, output_mirror, output_scripts,
10993         output_scripts_byname, output_blocks, output_ident_category): Fix
10994         comment header.
10995         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
10996         get_wbp.
10997         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
10998         items.
10999         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
11000         Changes_When_Lowercased, Changes_When_Uppercased,
11001         Changes_When_Titlecased, Changes_When_Casefolded,
11002         Changes_When_Casemapped.
11003         (is_property_alphabetic, is_property_default_ignorable_code_point):
11004         Update for Unicode 5.2.0.
11005         (is_property_cased, is_property_case_ignorable,
11006         is_property_changes_when_lowercased,
11007         is_property_changes_when_uppercased,
11008         is_property_changes_when_titlecased,
11009         is_property_changes_when_casefolded,
11010         is_property_changes_when_casemapped): New functions.
11011         (output_properties): Output also the properties cased, case_ignorable,
11012         changes_when_lowercased, changes_when_uppercased,
11013         changes_when_titlecased, changes_when_casefolded,
11014         changes_when_casemapped.
11015         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
11016         Unicode TR#11 revision 17 -> 19.
11017         (LBP_CP): New enumeration value.
11018         (LBP_*): Adjust values accordingly.
11019         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
11020         TR#14 revision 22 -> 24.
11021         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
11022         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
11023         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
11024         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
11025         is_WBP_MIDLETTER.
11026         (output_composition_tables): Allow for 24 bits instead of 16 bits in
11027         the code1 and code2 of each composition rule.
11028         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
11029         * lib/unicase/ignorable.h: Likewise.
11030         * lib/unicase/tocasefold.h: Likewise.
11031         * lib/unicase/tolower.h: Likewise.
11032         * lib/unicase/totitle.h: Likewise.
11033         * lib/unicase/toupper.h: Likewise.
11034         * lib/unictype/bidi_of.h: Likewise.
11035         * lib/unictype/blocks.h: Likewise.
11036         * lib/unictype/categ_C.h: Likewise.
11037         * lib/unictype/categ_Cf.h: Likewise.
11038         * lib/unictype/categ_Cn.h: Likewise.
11039         * lib/unictype/categ_L.h: Likewise.
11040         * lib/unictype/categ_Ll.h: Likewise.
11041         * lib/unictype/categ_Lm.h: Likewise.
11042         * lib/unictype/categ_Lo.h: Likewise.
11043         * lib/unictype/categ_Lu.h: Likewise.
11044         * lib/unictype/categ_M.h: Likewise.
11045         * lib/unictype/categ_Mc.h: Likewise.
11046         * lib/unictype/categ_Mn.h: Likewise.
11047         * lib/unictype/categ_N.h: Likewise.
11048         * lib/unictype/categ_Nd.h: Likewise.
11049         * lib/unictype/categ_Nl.h: Likewise.
11050         * lib/unictype/categ_No.h: Likewise.
11051         * lib/unictype/categ_P.h: Likewise.
11052         * lib/unictype/categ_Pd.h: Likewise.
11053         * lib/unictype/categ_Po.h: Likewise.
11054         * lib/unictype/categ_S.h: Likewise.
11055         * lib/unictype/categ_Sc.h: Likewise.
11056         * lib/unictype/categ_So.h: Likewise.
11057         * lib/unictype/categ_of.h: Likewise.
11058         * lib/unictype/combining.h: Likewise.
11059         * lib/unictype/ctype_alnum.h: Likewise.
11060         * lib/unictype/ctype_alpha.h: Likewise.
11061         * lib/unictype/ctype_graph.h: Likewise.
11062         * lib/unictype/ctype_lower.h: Likewise.
11063         * lib/unictype/ctype_print.h: Likewise.
11064         * lib/unictype/ctype_punct.h: Likewise.
11065         * lib/unictype/ctype_upper.h: Likewise.
11066         * lib/unictype/decdigit.h: Likewise.
11067         * lib/unictype/digit.h: Likewise.
11068         * lib/unictype/numeric.h: Likewise.
11069         * lib/unictype/pr_alphabetic.h: Likewise.
11070         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
11071         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
11072         * lib/unictype/pr_bidi_european_digit.h: Likewise.
11073         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
11074         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
11075         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
11076         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
11077         * lib/unictype/pr_combining.h: Likewise.
11078         * lib/unictype/pr_composite.h: Likewise.
11079         * lib/unictype/pr_currency_symbol.h: Likewise.
11080         * lib/unictype/pr_dash.h: Likewise.
11081         * lib/unictype/pr_decimal_digit.h: Likewise.
11082         * lib/unictype/pr_deprecated.h: Likewise.
11083         * lib/unictype/pr_diacritic.h: Likewise.
11084         * lib/unictype/pr_extender.h: Likewise.
11085         * lib/unictype/pr_grapheme_base.h: Likewise.
11086         * lib/unictype/pr_grapheme_extend.h: Likewise.
11087         * lib/unictype/pr_grapheme_link.h: Likewise.
11088         * lib/unictype/pr_id_continue.h: Likewise.
11089         * lib/unictype/pr_id_start.h: Likewise.
11090         * lib/unictype/pr_ideographic.h: Likewise.
11091         * lib/unictype/pr_ignorable_control.h: Likewise.
11092         * lib/unictype/pr_logical_order_exception.h: Likewise.
11093         * lib/unictype/pr_lowercase.h: Likewise.
11094         * lib/unictype/pr_numeric.h: Likewise.
11095         * lib/unictype/pr_other_alphabetic.h: Likewise.
11096         * lib/unictype/pr_punctuation.h: Likewise.
11097         * lib/unictype/pr_sentence_terminal.h: Likewise.
11098         * lib/unictype/pr_terminal_punctuation.h: Likewise.
11099         * lib/unictype/pr_unassigned_code_value.h: Likewise.
11100         * lib/unictype/pr_unified_ideograph.h: Likewise.
11101         * lib/unictype/pr_uppercase.h: Likewise.
11102         * lib/unictype/pr_xid_continue.h: Likewise.
11103         * lib/unictype/pr_xid_start.h: Likewise.
11104         * lib/unictype/pr_zero_width.h: Likewise.
11105         * lib/unictype/scripts.h: Likewise.
11106         * lib/unictype/scripts_byname.gperf: Likewise.
11107         * lib/unictype/sy_java_ident.h: Likewise.
11108         * lib/unigbrk/gbrkprop.h: Likewise.
11109         * lib/unilbrk/lbrkprop1.h: Likewise.
11110         * lib/unilbrk/lbrkprop2.h: Likewise.
11111         * lib/unilbrk/lbrktables.h: Likewise.
11112         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
11113         LBP_CP. Implement rule LB30.
11114         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
11115         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
11116         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
11117         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
11118         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
11119         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
11120         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
11121         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
11122         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
11123         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
11124         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
11125         bits instead of 16 bits in the code1 and code2 of each composition
11126         rule.
11127         (uc_composition): Update for Unicode 5.2.0.
11128         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
11129         * lib/uninorm/decomposition-table2.h: Likewise.
11130         * lib/uniwbrk/wbrkprop.h: Likewise.
11131         * tests/unicase/test-cased.c: Likewise.
11132         * tests/unicase/test-ignorable.c: Likewise.
11133         * tests/unicase/test-uc_tolower.c: Likewise.
11134         * tests/unicase/test-uc_totitle.c: Likewise.
11135         * tests/unicase/test-uc_toupper.c: Likewise.
11136         * tests/unictype/test-categ_C.c: Likewise.
11137         * tests/unictype/test-categ_Cf.c: Likewise.
11138         * tests/unictype/test-categ_Cn.c: Likewise.
11139         * tests/unictype/test-categ_L.c: Likewise.
11140         * tests/unictype/test-categ_Ll.c: Likewise.
11141         * tests/unictype/test-categ_Lm.c: Likewise.
11142         * tests/unictype/test-categ_Lo.c: Likewise.
11143         * tests/unictype/test-categ_Lu.c: Likewise.
11144         * tests/unictype/test-categ_M.c: Likewise.
11145         * tests/unictype/test-categ_Mc.c: Likewise.
11146         * tests/unictype/test-categ_Mn.c: Likewise.
11147         * tests/unictype/test-categ_N.c: Likewise.
11148         * tests/unictype/test-categ_Nd.c: Likewise.
11149         * tests/unictype/test-categ_Nl.c: Likewise.
11150         * tests/unictype/test-categ_No.c: Likewise.
11151         * tests/unictype/test-categ_P.c: Likewise.
11152         * tests/unictype/test-categ_Pd.c: Likewise.
11153         * tests/unictype/test-categ_Po.c: Likewise.
11154         * tests/unictype/test-categ_S.c: Likewise.
11155         * tests/unictype/test-categ_Sc.c: Likewise.
11156         * tests/unictype/test-categ_So.c: Likewise.
11157         * tests/unictype/test-ctype_alnum.c: Likewise.
11158         * tests/unictype/test-ctype_alpha.c: Likewise.
11159         * tests/unictype/test-ctype_graph.c: Likewise.
11160         * tests/unictype/test-ctype_lower.c: Likewise.
11161         * tests/unictype/test-ctype_print.c: Likewise.
11162         * tests/unictype/test-ctype_punct.c: Likewise.
11163         * tests/unictype/test-ctype_upper.c: Likewise.
11164         * tests/unictype/test-decdigit.h: Likewise.
11165         * tests/unictype/test-digit.h: Likewise.
11166         * tests/unictype/test-numeric.h: Likewise.
11167         * tests/unictype/test-pr_alphabetic.c: Likewise.
11168         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
11169         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
11170         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
11171         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
11172         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
11173         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
11174         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
11175         * tests/unictype/test-pr_combining.c: Likewise.
11176         * tests/unictype/test-pr_composite.c: Likewise.
11177         * tests/unictype/test-pr_currency_symbol.c: Likewise.
11178         * tests/unictype/test-pr_dash.c: Likewise.
11179         * tests/unictype/test-pr_decimal_digit.c: Likewise.
11180         * tests/unictype/test-pr_deprecated.c: Likewise.
11181         * tests/unictype/test-pr_diacritic.c: Likewise.
11182         * tests/unictype/test-pr_extender.c: Likewise.
11183         * tests/unictype/test-pr_grapheme_base.c: Likewise.
11184         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
11185         * tests/unictype/test-pr_grapheme_link.c: Likewise.
11186         * tests/unictype/test-pr_id_continue.c: Likewise.
11187         * tests/unictype/test-pr_id_start.c: Likewise.
11188         * tests/unictype/test-pr_ideographic.c: Likewise.
11189         * tests/unictype/test-pr_ignorable_control.c: Likewise.
11190         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
11191         * tests/unictype/test-pr_lowercase.c: Likewise.
11192         * tests/unictype/test-pr_numeric.c: Likewise.
11193         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
11194         * tests/unictype/test-pr_punctuation.c: Likewise.
11195         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
11196         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
11197         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
11198         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
11199         * tests/unictype/test-pr_uppercase.c: Likewise.
11200         * tests/unictype/test-pr_xid_continue.c: Likewise.
11201         * tests/unictype/test-pr_xid_start.c: Likewise.
11202         * tests/unictype/test-pr_zero_width.c: Likewise.
11203         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
11204         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
11205         changed behaviour: line breaking is now disallowed between a letter
11206         or '=' and '('.
11207         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
11208         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
11209         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
11210         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
11211         * tests/uniwidth/test-uc_width2.sh: Same updates as in
11212         lib/uniwidth/width.c.
11213         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
11214         without comments, but with the original copyright notice.
11215         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
11216         changes.
11217         * lib/unictype/categ_Cc.h: Likewise.
11218         * lib/unictype/categ_Co.h: Likewise.
11219         * lib/unictype/categ_Cs.h: Likewise.
11220         * lib/unictype/categ_Lt.h: Likewise.
11221         * lib/unictype/categ_Me.h: Likewise.
11222         * lib/unictype/categ_Pc.h: Likewise.
11223         * lib/unictype/categ_Pe.h: Likewise.
11224         * lib/unictype/categ_Pf.h: Likewise.
11225         * lib/unictype/categ_Pi.h: Likewise.
11226         * lib/unictype/categ_Ps.h: Likewise.
11227         * lib/unictype/categ_Sk.h: Likewise.
11228         * lib/unictype/categ_Sm.h: Likewise.
11229         * lib/unictype/categ_Z.h: Likewise.
11230         * lib/unictype/categ_Zl.h: Likewise.
11231         * lib/unictype/categ_Zp.h: Likewise.
11232         * lib/unictype/categ_Zs.h: Likewise.
11233         * lib/unictype/ctype_blank.h: Likewise.
11234         * lib/unictype/ctype_cntrl.h: Likewise.
11235         * lib/unictype/ctype_digit.h: Likewise.
11236         * lib/unictype/ctype_space.h: Likewise.
11237         * lib/unictype/ctype_xdigit.h: Likewise.
11238         * lib/unictype/mirror.h: Likewise.
11239         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
11240         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
11241         * lib/unictype/pr_bidi_block_separator.h: Likewise.
11242         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
11243         * lib/unictype/pr_bidi_common_separator.h: Likewise.
11244         * lib/unictype/pr_bidi_control.h: Likewise.
11245         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
11246         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
11247         * lib/unictype/pr_bidi_pdf.h: Likewise.
11248         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
11249         * lib/unictype/pr_bidi_whitespace.h: Likewise.
11250         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
11251         * lib/unictype/pr_format_control.h: Likewise.
11252         * lib/unictype/pr_hex_digit.h: Likewise.
11253         * lib/unictype/pr_hyphen.h: Likewise.
11254         * lib/unictype/pr_ids_binary_operator.h: Likewise.
11255         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
11256         * lib/unictype/pr_iso_control.h: Likewise.
11257         * lib/unictype/pr_join_control.h: Likewise.
11258         * lib/unictype/pr_left_of_pair.h: Likewise.
11259         * lib/unictype/pr_line_separator.h: Likewise.
11260         * lib/unictype/pr_math.h: Likewise.
11261         * lib/unictype/pr_non_break.h: Likewise.
11262         * lib/unictype/pr_not_a_character.h: Likewise.
11263         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
11264         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
11265         * lib/unictype/pr_other_id_continue.h: Likewise.
11266         * lib/unictype/pr_other_id_start.h: Likewise.
11267         * lib/unictype/pr_other_lowercase.h: Likewise.
11268         * lib/unictype/pr_other_math.h: Likewise.
11269         * lib/unictype/pr_other_uppercase.h: Likewise.
11270         * lib/unictype/pr_paired_punctuation.h: Likewise.
11271         * lib/unictype/pr_paragraph_separator.h: Likewise.
11272         * lib/unictype/pr_pattern_syntax.h: Likewise.
11273         * lib/unictype/pr_pattern_white_space.h: Likewise.
11274         * lib/unictype/pr_private_use.h: Likewise.
11275         * lib/unictype/pr_quotation_mark.h: Likewise.
11276         * lib/unictype/pr_radical.h: Likewise.
11277         * lib/unictype/pr_soft_dotted.h: Likewise.
11278         * lib/unictype/pr_space.h: Likewise.
11279         * lib/unictype/pr_titlecase.h: Likewise.
11280         * lib/unictype/pr_variation_selector.h: Likewise.
11281         * lib/unictype/pr_white_space.h: Likewise.
11282         * lib/unictype/sy_c_ident.h: Likewise.
11283         * lib/unictype/sy_c_whitespace.h: Likewise.
11284         * lib/unictype/sy_java_whitespace.h: Likewise.
11285         * modules/uni*/*: Bump version number of expected libunistring version.
11286         Reported by Simon Josefsson.
11287
11288 2011-01-09  Karl Heuer  <kwzh@gnu.org>
11289
11290         useless-if-before-free: fix typo in --help and make the internal,
11291         automatic version date update process work once again.
11292         --help output contained a NUL character instead of the
11293         backslash-zero that was intended.  Also, the "must lie within
11294         the first 8 lines" line is on line 9, and hence not getting
11295         automatically updated.
11296         * build-aux/useless-if-before-free: Fix the former by adding a
11297         backslash, and the latter by condensing the three lines of what-it-does
11298         to a single line, leaving one line of slack for the future.
11299
11300 2011-01-09  Bruno Haible  <bruno@clisp.org>
11301
11302         uniwidth/width: Fix width of U+1D173..U+1D17A.
11303         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
11304         symbolic_width, output_width_property_test): New functions.
11305         (main): Invoke output_nonspacing_property, output_width_property_test.
11306         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
11307         U+1D173..U+1D17A.
11308         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
11309         1.
11310         * modules/uniwidth/*: Bump version number of expected libunistring
11311         version.
11312         * modules/unilbrk/*: Likewise.
11313
11314 2011-01-08  Bruno Haible  <bruno@clisp.org>
11315
11316         uninorm tests: Preserve copyright of Unicode data file.
11317         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
11318         Mention modifications.
11319
11320 2011-01-08  Bruno Haible  <bruno@clisp.org>
11321
11322         gen-uni-tables: Prepare for Unicode 5.2.0.
11323         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
11324         (debug_output_lbp, output_lbp): Update.
11325
11326 2011-01-08  Bruno Haible  <bruno@clisp.org>
11327
11328         unilbrk: Clarify gen-uni-tables.c code.
11329         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
11330         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
11331         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
11332
11333 2011-01-07  Bruno Haible  <bruno@clisp.org>
11334
11335         strtod: Restore errno when successfully parsing Infinity or NaN.
11336         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
11337         restore the original errno.
11338
11339 2011-01-07  Bruno Haible  <bruno@clisp.org>
11340
11341         remove test: Avoid failure on HP-UX 11.
11342         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
11343
11344 2011-01-07  Bruno Haible  <bruno@clisp.org>
11345
11346         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
11347         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
11348         error code.
11349
11350 2011-01-07  Pádraig Brady <P@draigBrady.com>
11351
11352         ignore-value: fixup comments, and add Eric Blake
11353         as an author since he rewrote the macros.
11354         * lib/ignore-value.h (ignore_value):  State that
11355         we now support aggregates.  Also specify exactly
11356         when the GCC warn_unused_result feature was added.
11357
11358 2011-01-06  Eric Blake  <eblake@redhat.com>
11359
11360         ignore-value: support aggregate types
11361         * lib/ignore-value.h (ignore_value): Provide separate gcc
11362         definition.
11363         * modules/ignore-value-tests: New test module.
11364         * tests/test-ignore-value.c: New test.
11365
11366         maint.mk: improve sc_prohibit_strcmp regex
11367         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
11368         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
11369         definition of STRNEQ.
11370
11371         signal: work around Haiku issue with SIGBUS
11372         * lib/siglist.h: Add comment.
11373         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
11374         strsignal's favoring of SIGSEGV.
11375         * tests/test-signal.c (main): Avoid test failure.
11376         * doc/posix-headers/signal.texi (signal.h): Document the issue.
11377         Reported by Scott McCreary.
11378
11379         maint.mk: add pre-release check to ensure submodule commits are public
11380         * top/maint.mk (public-submodule-commit): New rule.
11381         (submodule-checks): New variable.
11382         (alpha beta stable): Depend on the variable.
11383
11384 2011-01-05  Pádraig Brady <P@draigBrady.com>
11385         and Jim Meyering  <meyering@redhat.com>
11386
11387         ignore-value: make ignore_value more generic; deprecate ignore_ptr
11388         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
11389         (ATTRIBUTE_DEPRECATED): Define.
11390         (_ignore_case): New function.
11391         (ignore_value): New macro, to replace the old function.
11392         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
11393         * modules/ignore-value (Depends-on): Add stdint.
11394
11395 2011-01-04  Eric Blake  <eblake@redhat.com>
11396
11397         doc: regenerate INSTALL
11398         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
11399         @firstparagraphindent support, now that autoconf dropped it.
11400         (INSTALL_PRELUDE): Reinstate old macro.
11401         * doc/install.texi: Resync from autoconf.
11402         * doc/INSTALL: Reflect recent autoconf update.
11403         * doc/INSTALL.ISO: Likewise.
11404         * doc/INSTALL.UTF-8: Likewise.
11405         Reported by Karl Berry.
11406
11407 2011-01-04  Bruce Korb  <address@hidden>
11408
11409         git-version-gen: avoid a sub-shell
11410         * build-aux/git-version-gen: Redirect stderr in `...` via
11411         "exec 2>...", rather than via an added sub-shell.
11412
11413 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
11414
11415         git-version-gen: use (...) rather than sh -c '...'
11416         * build-aux/git-version-gen: Rather than hard-coding a shell's name
11417         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
11418
11419 2011-01-03  Jim Meyering  <meyering@redhat.com>
11420
11421         git-version-gen: convert leading TABs to spaces
11422         * build-aux/git-version-gen: Expand leading TABs.
11423
11424         git-version-gen: handle failed "git rev-list"
11425         * build-aux/git-version-gen: Rather than leaking a "fatal" error
11426         from git and proceeding as if it had succeeded but printed no SHA1
11427         checksums, suppress the diagnostic and handle the failure.
11428         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
11429
11430         git-version-gen: include command name in one more diagnostic
11431         * build-aux/git-version-gen: When the required .tarball-version file
11432         was missing or unreadable, you might see the diagnostic from "cat",
11433         but no trace of the name of the invoking script.  Now, you still see
11434         the diagnostic from cat, but also get one from "git-version-gen: ".
11435         Inspired by a patch from Bruce Korb.
11436
11437         update-copyright: adjust test to match changed code
11438         * tests/test-update-copyright.sh: Change test's expected output
11439         to match new actual output.
11440
11441 2011-01-02  Bruno Haible  <bruno@clisp.org>
11442
11443         getlogin_r: Avoid test failure on HP-UX 11.
11444         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
11445         ERANGE when the second argument is zero.
11446         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
11447         portability problem.
11448
11449 2011-01-02  Bruce Korb  <bkorb@gnu.org>
11450
11451         * build-aux/update-copyright: doc Simon's changes
11452
11453 2011-01-02  Simon Josefsson  <simon@josefsson.org>
11454
11455         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
11456         environment variable.
11457
11458 2011-01-02  Bruno Haible  <bruno@clisp.org>
11459
11460         unigbrk: Avoid gcc warnings.
11461         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
11462         unused variable.
11463         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
11464         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
11465         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
11466         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
11467         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
11468         Change type of first argument to 'const char *'.
11469         (main): Remove unused variable.
11470         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
11471         type of first argument to 'const char *'.
11472         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
11473         Likewise.
11474         (main): Change type of variable 's'.
11475         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
11476         to 'int'.
11477
11478 2011-01-02  Bruno Haible  <bruno@clisp.org>
11479
11480         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
11481         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
11482         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
11483         bug.
11484         * lib/pwrite.c: Undo 2010-12-31 patch.
11485         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
11486
11487 2011-01-02  Bruno Haible  <bruno@clisp.org>
11488
11489         pread: Fix test whether it works.
11490         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
11491
11492 2011-01-02  Bruno Haible  <bruno@clisp.org>
11493
11494         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
11495         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
11496         ends in "6". Don't require a specific month name. Try also the locale
11497         names found on HP-UX 11 and Solaris 7.
11498
11499 2011-01-02  Bruno Haible  <bruno@clisp.org>
11500
11501         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
11502         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
11503         C linkage.
11504         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
11505
11506 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
11507
11508         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
11509         for consistency, since the "cluster" term is not used elsewhere.
11510         * lib/unigbrk.in.h: Update name.
11511         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
11512         * lib/unigbrk/u16-grapheme-next.c: Update name.
11513         * lib/unigbrk/u16-grapheme-prev.c: Update name.
11514         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
11515         * lib/unigbrk/u32-grapheme-next.c: Update name.
11516         * lib/unigbrk/u32-grapheme-prev.c: Update name.
11517         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
11518         * lib/unigbrk/u8-grapheme-next.c: Update name.
11519         * lib/unigbrk/u8-grapheme-prev.c: Update name.
11520         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
11521         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
11522         Suggested by Bruno Haible.
11523
11524 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
11525
11526         Remove module 'u8-grapheme-len' as too redundant with
11527         'u8-grapheme-next'.
11528         * modules/unigbrk/u8-grapheme-len: Delete file.
11529         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
11530         * lib/unigbrk.in.h: Remove prototype for deleted function.
11531         * lib/unigbrk/u8-grapheme-len.c: Delete file.
11532         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
11533
11534         Remove module 'u16-grapheme-len' as too redundant with
11535         'u16-grapheme-next'.
11536         * modules/unigbrk/u16-grapheme-len: Delete file.
11537         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
11538         * lib/unigbrk.in.h: Remove prototype for deleted function.
11539         * lib/unigbrk/u16-grapheme-len.c: Delete file.
11540         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
11541
11542         Remove module 'u32-grapheme-len' as too redundant with
11543         'u32-grapheme-next'.
11544         * modules/unigbrk/u32-grapheme-len: Delete file.
11545         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
11546         * lib/unigbrk.in.h: Remove prototype for deleted function.
11547         * lib/unigbrk/u32-grapheme-len.c: Delete file.
11548         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
11549
11550         Suggested by Bruno Haible.
11551
11552 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
11553
11554         * unigbrk.in.h: Fix typo: "ben" => "been".
11555         Reported by Bruno Haible.
11556
11557 2011-01-01  Jim Meyering  <meyering@redhat.com>
11558
11559         maint: update almost all copyright ranges to include 2011
11560         Run the new "make update-copyright" rule.
11561
11562 2011-01-01  Jim Meyering  <meyering@redhat.com>
11563
11564         maint: update-copyright: exempt doc/INSTALL*
11565         * Makefile (update-copyright): Also exclude doc/INSTALL*,
11566         since they are generated.  Suggested by Bruno Haible.
11567
11568 2011-01-01  Jim Meyering  <meyering@redhat.com>
11569
11570         maint: refine the update-copyright rule
11571         * Makefile (update-copyright): Also exclude any file that includes
11572         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
11573         code that merely generates the comment.
11574
11575 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
11576
11577         New module 'u8-grapheme-len'.
11578         * modules/unigbrk/u8-grapheme-len: New file.
11579         * modules/unigbrk/u8-grapheme-len-tests: New file.
11580         * lib/unigbrk.in.h: Add prototype for new function.
11581         * lib/unigbrk/u8-grapheme-len.c: New file.
11582         * tests/unigbrk/test-u8-grapheme-len.c: New file.
11583
11584         New module 'u16-grapheme-len'.
11585         * modules/unigbrk/u16-grapheme-len: New file.
11586         * modules/unigbrk/u16-grapheme-len-tests: New file.
11587         * lib/unigbrk.in.h: Add prototype for new function.
11588         * lib/unigbrk/u16-grapheme-len.c: New file.
11589         * tests/unigbrk/test-u16-grapheme-len.c: New file.
11590
11591         New module 'u32-grapheme-len'.
11592         * modules/unigbrk/u32-grapheme-len: New file.
11593         * modules/unigbrk/u32-grapheme-len-tests: New file.
11594         * lib/unigbrk.in.h: Add prototype for new function.
11595         * lib/unigbrk/u32-grapheme-len.c: New file.
11596         * tests/unigbrk/test-u32-grapheme-len.c: New file.
11597
11598         New module 'u8-grapheme-next'.
11599         * modules/unigbrk/u8-grapheme-next: New file.
11600         * modules/unigbrk/u8-grapheme-next-tests: New file.
11601         * lib/unigbrk.in.h: Add prototype for new function.
11602         * lib/unigbrk/u8-grapheme-next.c: New file.
11603         * tests/unigbrk/test-u8-grapheme-next.c: New file.
11604
11605         New module 'u16-grapheme-next'.
11606         * modules/unigbrk/u16-grapheme-next: New file.
11607         * modules/unigbrk/u16-grapheme-next-tests: New file.
11608         * lib/unigbrk.in.h: Add prototype for new function.
11609         * lib/unigbrk/u16-grapheme-next.c: New file.
11610         * tests/unigbrk/test-u16-grapheme-next.c: New file.
11611
11612         New module 'u32-grapheme-next'.
11613         * modules/unigbrk/u32-grapheme-next: New file.
11614         * modules/unigbrk/u32-grapheme-next-tests: New file.
11615         * lib/unigbrk.in.h: Add prototype for new function.
11616         * lib/unigbrk/u32-grapheme-next.c: New file.
11617         * tests/unigbrk/test-u32-grapheme-next.c: New file.
11618
11619         New module 'u8-grapheme-prev'.
11620         * modules/unigbrk/u8-grapheme-prev: New file.
11621         * modules/unigbrk/u8-grapheme-prev-tests: New file.
11622         * lib/unigbrk.in.h: Add prototype for new function.
11623         * lib/unigbrk/u8-grapheme-prev.c: New file.
11624         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
11625
11626         New module 'u16-grapheme-prev'.
11627         * modules/unigbrk/u16-grapheme-prev: New file.
11628         * modules/unigbrk/u16-grapheme-prev-tests: New file.
11629         * lib/unigbrk.in.h: Add prototype for new function.
11630         * lib/unigbrk/u16-grapheme-prev.c: New file.
11631         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
11632
11633         New module 'u32-grapheme-prev'.
11634         * modules/unigbrk/u32-grapheme-prev: New file.
11635         * modules/unigbrk/u32-grapheme-prev-tests: New file.
11636         * lib/unigbrk.in.h: Add prototype for new function.
11637         * lib/unigbrk/u32-grapheme-prev.c: New file.
11638         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
11639
11640         New module 'u8-grapheme-breaks'.
11641         * modules/unigbrk/u8-grapheme-breaks: New file.
11642         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
11643         * lib/unigbrk.in.h: Add prototype for new function.
11644         * lib/unigbrk/u8-grapheme-breaks.c: New file.
11645         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
11646
11647         New module 'u16-grapheme-breaks'.
11648         * modules/unigbrk/u16-grapheme-breaks: New file.
11649         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
11650         * lib/unigbrk.in.h: Add prototype for new function.
11651         * lib/unigbrk/u16-grapheme-breaks.c: New file.
11652         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
11653
11654         New module 'u32-grapheme-breaks'.
11655         * modules/unigbrk/u32-grapheme-breaks: New file.
11656         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
11657         * lib/unigbrk.in.h: Add prototype for new function.
11658         * lib/unigbrk/u32-grapheme-breaks.c: New file.
11659         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
11660
11661         New module 'ulc-grapheme-breaks'.
11662         * modules/unigbrk/ulc-grapheme-breaks: New file.
11663         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
11664         * m4/locale-ar.m4: New file.
11665         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
11666         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
11667         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
11668
11669 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
11670
11671         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
11672         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
11673         modified how this file was generated before I initially submitted
11674         the module, but failed to regenerate it.  This meant that several
11675         of the level2 entries were wrong.
11676         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
11677         Remove the division-by-2 that is folded into the table now that
11678         gbrkprop.h has been regenerated properly.  Now -1 entries are
11679         handled correctly.
11680
11681         New module 'unigbrk/uc-gbrk-prop-tests'.
11682         * modules/unigbrk/uc-gbrk-prop-tests: New file.
11683         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
11684         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
11685         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
11686
11687 2011-01-01  Bruno Haible  <bruno@clisp.org>
11688
11689         Avoid use of hexadecimal escapes.
11690         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
11691         instead of hexadecimal escapes.
11692
11693 2011-01-01  Jim Meyering  <meyering@redhat.com>
11694
11695         maint: new rule to update copyright year ranges
11696         * Makefile (update-copyright): New rule.
11697
11698         maint: indent with TABs in Makefile
11699         * Makefile: Expand leading sequences of spaces to TABs
11700
11701         version-etc: update the copyright year it reports
11702         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
11703
11704 2010-12-31  Bruno Haible  <bruno@clisp.org>
11705
11706         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
11707         * lib/isfinite.c (zerof, zerod, zerol): New variables.
11708         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
11709         zero.
11710
11711 2010-12-31  Bruno Haible  <bruno@clisp.org>
11712
11713         pwrite: Work around HP-UX 11.11 bug.
11714         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
11715         works and set REPLACE_PWRITE if not.
11716         * lib/pwrite.c (pwrite): Add an implementation that uses the system
11717         function.
11718         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
11719
11720 2010-12-31  Bruno Haible  <bruno@clisp.org>
11721
11722         pread: Work around HP-UX 11 bugs.
11723         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
11724         and set REPLACE_PREAD if not.
11725         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
11726
11727 2010-12-31  Eric Blake  <eblake@redhat.com>
11728
11729         nl_langinfo: fix YESEXPR on Irix 6.5
11730         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
11731         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
11732         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
11733         it.
11734
11735 2010-12-31  Bruno Haible  <bruno@clisp.org>
11736
11737         iconv: Document HP-UX 11 bug.
11738         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
11739
11740 2010-12-31  Bruno Haible  <bruno@clisp.org>
11741
11742         ldexpl: Fix link error on HP-UX 11.
11743         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
11744         LDEXPL_LIBM, using $ISNANL_LIBM.
11745
11746 2010-12-31  Eric Blake  <eblake@redhat.com>
11747
11748         ftello: avoid compilation failure with SunStudio c89
11749         * lib/ftello.c (ftello): Use lseek, not llseek.
11750
11751         tests: avoid failing coreutils tests on cygwin
11752         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
11753         (create_exe_shims_): Return 0 when skipping.
11754
11755 2010-12-31  Bruno Haible  <bruno@clisp.org>
11756
11757         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
11758         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
11759
11760 2010-12-31  Bruno Haible  <bruno@clisp.org>
11761
11762         waitpid: Fix link error in C++ mode.
11763         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
11764
11765 2010-12-31  Bruno Haible  <bruno@clisp.org>
11766
11767         isnan: Use GCC built-ins when possible.
11768         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
11769         __builtin_isnan.
11770         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
11771         (isnan): Define using GCC built-ins for GCC >= 4.0.
11772
11773 2010-12-31  Bruno Haible  <bruno@clisp.org>
11774
11775         isnand: Fix mistake.
11776         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
11777         __builtin_isnand.
11778
11779 2010-12-31  Bruno Haible  <bruno@clisp.org>
11780
11781         open: Avoid C++ error on HP-UX 11.
11782         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
11783
11784 2010-12-31  Bruno Haible  <bruno@clisp.org>
11785
11786         time_r: Add missing declarations on HP-UX 11.
11787         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
11788         instead of HAVE_LOCALTIME_R.
11789         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
11790         HAVE_LOCALTIME_R always.
11791         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
11792         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
11793         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
11794         HAVE_LOCALTIME_R.
11795         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
11796         * doc/posix-functions/localtime_r.texi: Likewise.
11797
11798 2010-12-29  Eric Blake  <eblake@redhat.com>
11799
11800         mountlist: tweak previous commit
11801         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
11802         Reported by Paul Eggert.
11803
11804         mountlist: fix local drive detection on cygwin
11805         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
11806         that works for cygwin.
11807
11808 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
11809
11810         ftoastr, snprintf: ftoastr + snprintf module
11811         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
11812         since the snprintf module now should be good enough here.
11813         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
11814         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
11815         and gl_MODULE_INDICATOR([snprintf]), but the former enables
11816         GNULIB_SNPRINTF only for the test directory, and the latter
11817         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
11818         seems to suffice by itself.
11819
11820 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
11821
11822         alloca: one step towards thread-safety
11823         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
11824         need for a static variable.  All callers changed.  This does not
11825         make the alloca replacement thread-safe, but it's one step.
11826
11827         tests: minor indenting change
11828         * tests/init.sh: Sync from coreutils housekeeping patch
11829         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
11830         to keep lines within 80 columns.
11831
11832 2010-12-28  Jim Meyering  <meyering@redhat.com>
11833
11834         regex: don't infloop on persistent failing calloc
11835         * lib/regexec.c (build_trtable): Return failure indication upon
11836         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
11837         In glibc, this was fixed for version 2.13:
11838         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
11839
11840 2010-12-28  Bruno Haible  <bruno@clisp.org>
11841             Paul Eggert <eggert@cs.ucla.edu>
11842
11843         linkat: Make implementation robust against system behaviour variations.
11844         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
11845         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
11846         way, and to -2 if it needs a generic runtime test.
11847         * lib/linkat.c (solaris_optimized_link_immediate,
11848         solaris_optimized_link_follow): New functions.
11849         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
11850         (check_same_link): Use it.
11851
11852 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
11853
11854         New module 'unigbrk/base'.
11855         * modules/unigbrk/base: New file.
11856         * lib/unigbrk.in.h: New file.
11857
11858         New module 'unigbrk/uc-gbrk-prop'.
11859         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
11860         * modules/unigbrk/uc-gbrk-prop: New file.
11861         * lib/unigbrk/gbrkprop.h: New file.
11862         * lib/unigbrk/uc-gbrk-prop.c: New file.
11863
11864         New module 'unigbrk/uc-is-grapheme-break'.
11865         * modules/unigbrk/uc-is-grapheme-break: New file.
11866         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
11867         * lib/unigbrk/uc-is-grapheme-break.c: New file.
11868         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
11869         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
11870         * tests/unigbrk/GraphemeBreakTest.txt: New file.
11871
11872         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
11873
11874 2010-12-27  Bruno Haible  <bruno@clisp.org>
11875
11876         linkat test: Avoid failure on Solaris 11 2010-11.
11877         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
11878
11879 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
11880
11881         utimens: work around glibc rounding bug on more platforms
11882         * lib/utimens.c (fdutimens): Work around rounding bug even if
11883         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
11884         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
11885
11886 2010-12-27  Bruno Haible  <bruno@clisp.org>
11887
11888         select tests: Improve comments.
11889         * tests/test-select.c (do_select): Add comments.
11890
11891 2010-12-27  Bruno Haible  <bruno@clisp.org>
11892
11893         select tests: Safer way of handling timeout.
11894         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
11895         at every invocation.
11896
11897 2010-12-27  Bruno Haible  <bruno@clisp.org>
11898
11899         select tests: Use 'bool' where appropriate.
11900         * tests/test-select.c (connect_to_socket): Change argument type to
11901         'bool'.
11902
11903 2010-12-27  Bruno Haible  <bruno@clisp.org>
11904
11905         select tests: Use existing modules.
11906         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
11907         (configure.ac): Don't test for unistd.h.
11908         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
11909         declared in <unistd.h>.
11910
11911 2010-12-27  Bruno Haible  <bruno@clisp.org>
11912
11913         mbrtowc: Work around a Solaris 7 bug.
11914         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
11915         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
11916         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
11917         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
11918         MBRTOWC_NULL_ARG1_BUG.
11919         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
11920         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
11921         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
11922         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
11923
11924 2010-12-27  Jim Meyering  <meyering@redhat.com>
11925
11926         read-file.c: tweak syntax
11927         * lib/read-file.c (fread_file): Remove space after "*" in function
11928         definitions.
11929
11930 2010-12-27  Bruno Haible  <bruno@clisp.org>
11931
11932         times test: Avoid gcc warnings on OSF/1.
11933         * tests/test-times.c (main): Cast printf arguments from clock_t to
11934         'long int'.
11935
11936 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
11937
11938         utimens: work around glibc rounding bug on older Linux kernels
11939         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
11940         on Linux with a glibc whose utimes might not work, then work
11941         around a longstanding glibc bug involving rounding rather than
11942         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
11943         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
11944
11945 2010-12-26  Bruno Haible  <bruno@clisp.org>
11946
11947         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
11948         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
11949         _GL_CXXALIAS_SYS.
11950         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
11951
11952 2010-12-26  Bruno Haible  <bruno@clisp.org>
11953
11954         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
11955         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
11956         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
11957         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
11958         looking for the declaration.
11959         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
11960         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
11961         problem.
11962         * doc/posix-functions/inet_pton.texi: Likewise.
11963
11964 2010-12-26  Bruno Haible  <bruno@clisp.org>
11965
11966         arpa_inet: Use the common idioms with C++ support.
11967         * lib/arpa_inet.in.h: Include c++defs.h.
11968         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
11969         support.
11970         * modules/arpa_inet (Depends-on): Add c++defs.
11971         (Makefile.am): Substitute the contents of c++defs.h.
11972         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
11973         * modules/arpa_inet-c++-tests: New file.
11974         * tests/test-arpa_inet-c++.cc: New file.
11975
11976 2010-12-25  Bruno Haible  <bruno@clisp.org>
11977
11978         Fix more C++ link errors on Solaris 8.
11979         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
11980         $(LIB_EACCESS).
11981         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
11982         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
11983         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
11984         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
11985         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
11986
11987 2010-12-25  Bruno Haible  <bruno@clisp.org>
11988
11989         printf-posix: Fix link error when a non-GCC compiler is used.
11990         * lib/stdio.in.h (printf): When not using GCC, override printf
11991         correctly.
11992         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
11993
11994 2010-12-25  Bruno Haible  <bruno@clisp.org>
11995
11996         strerror_r-posix: Update doc.
11997         * doc/posix-functions/strerror_r.texi: Update doc about the return
11998         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
11999
12000 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
12001
12002         utimens: simplify the logic of the previous change
12003         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
12004         This should not affect whether the test succeeds or fails.
12005
12006         utimens: configure better on hosts with NFS clock skew
12007         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
12008         uses the clock of the local host.  It might use the clock of the
12009         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
12010         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
12011
12012 2010-12-25  Bruno Haible  <bruno@clisp.org>
12013
12014         ptsname test: Avoid failure on Solaris.
12015         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
12016         open a pseudo-terminal; don't use BSD-style ptys.
12017         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
12018
12019 2010-12-25  Bruno Haible  <bruno@clisp.org>
12020
12021         ptsname: Avoid ERANGE failure on some systems.
12022         * lib/ptsname.c (buffer): Increase size.
12023
12024 2010-12-25  Bruno Haible  <bruno@clisp.org>
12025
12026         rename, renameat: Avoid test failures at NFS mounted locations.
12027         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
12028         so that subsequent mkdir calls succeed.
12029
12030 2010-12-25  Bruno Haible  <bruno@clisp.org>
12031
12032         iswblank: Fix C++ link error on Solaris 8.
12033         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
12034         _GL_FUNCDECL_SYS.
12035
12036 2010-12-25  Bruno Haible  <bruno@clisp.org>
12037
12038         unistd: Fix C++ link error on Solaris 8.
12039         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
12040
12041 2010-12-25  Bruno Haible  <bruno@clisp.org>
12042
12043         readlink doc: Mention an old glibc bug.
12044         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
12045
12046 2010-12-25  Bruno Haible  <bruno@clisp.org>
12047
12048         fcntl-h: Fix for use of C++ on glibc systems.
12049         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
12050         also on glibc systems in C++ mode.
12051         Reported by Gary V. Vaughan <gary@gnu.org>.
12052
12053 2010-12-25  Bruno Haible  <bruno@clisp.org>
12054
12055         roundl-ieee: Make it work on OSF/1 5.1 with cc.
12056         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
12057
12058 2010-12-25  Bruno Haible  <bruno@clisp.org>
12059
12060         truncl-ieee: Make it work on OSF/1 5.1 with cc.
12061         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
12062         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
12063         test whether truncl works according to ISO C 99 with IEC 60559.
12064         * m4/truncl-ieee.m4: New file.
12065         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
12066         m4/signbit.m4.
12067         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
12068
12069 2010-12-25  Bruno Haible  <bruno@clisp.org>
12070
12071         ceill-ieee: Make it work on OSF/1 5.1 with cc.
12072         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
12073         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
12074         test whether ceill works according to ISO C 99 with IEC 60559.
12075         * m4/ceill-ieee.m4: New file.
12076         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
12077         m4/signbit.m4.
12078         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
12079
12080 2010-12-25  Bruno Haible  <bruno@clisp.org>
12081
12082         Ensure all prerequisites of <wchar.h> are included.
12083         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
12084         before <wchar.h>.
12085         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
12086         gl_MBRLEN_NUL_RETVAL): Likewise.
12087         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
12088         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
12089         AC_FUNC_MBRTOWC): Likewise.
12090         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
12091         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
12092         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
12093         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
12094         Likewise.
12095         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
12096         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
12097         (gl_WCHAR_H): Improve comments.
12098         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
12099
12100 2010-12-25  Bruno Haible  <bruno@clisp.org>
12101
12102         strtok_r: Fix C syntax error in autoconf macro.
12103         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
12104         characters in test program.
12105
12106 2010-12-24  Bruno Haible  <bruno@clisp.org>
12107
12108         ceil, trunc, round: Fix gcc warnings.
12109         * lib/ceil.c (MIN): Undefine before redefining.
12110         * lib/trunc.c (MIN): Likewise.
12111         * lib/round.c (MIN): Likewise.
12112         Include <math.h> first.
12113
12114 2010-12-24  Bruno Haible  <bruno@clisp.org>
12115
12116         select tests: Avoid failures on OSF/1 5.1.
12117         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
12118         failure of closing the last socket; it may fail with ECONNRESET.
12119
12120 2010-12-24  Eric Blake  <eblake@redhat.com>
12121
12122         stdint: avoid HP-UX 10.20 preprocessor bug
12123         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
12124         than #if.
12125         * tests/test-floor2.c (main): Likewise.
12126         Reported by Peter O'Gorman.
12127
12128         pipe: make obsoletion transition easier
12129         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
12130         * modules/pipe (Files): Include revived file.
12131         (Include): Drop reference, to mirror getdate's behavior.
12132
12133 2010-12-24  Bruno Haible  <bruno@clisp.org>
12134
12135         sys_socket: Hide mismatch of declarations on NonStop Kernel.
12136         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
12137         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
12138         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
12139
12140 2010-12-24  Bruno Haible  <bruno@clisp.org>
12141
12142         gethostname: Ensure declaration on NonStop Kernel.
12143         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
12144         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
12145
12146 2010-12-24  Bruno Haible  <bruno@clisp.org>
12147
12148         sys_select: Ensure all necessary types on NonStop Kernel.
12149         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
12150         include <sys/time.h>.
12151         * doc/posix-headers/sys_select.texi: Mention that it's missing on
12152         NonStop Kernel.
12153         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
12154
12155 2010-12-24  Bruno Haible  <bruno@clisp.org>
12156
12157         sys_select: Remove unneeded include.
12158         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
12159         have <sys/select.h>.
12160
12161 2010-12-24  Bruno Haible  <bruno@clisp.org>
12162
12163         gethostname: Provide a fallback for HOST_NAME_MAX.
12164         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
12165         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
12166         instead.
12167         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
12168
12169 2010-12-24  Bruno Haible  <bruno@clisp.org>
12170
12171         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
12172         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
12173         (SA_RESTART): Likewise.
12174         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
12175
12176 2010-12-24  Bruno Haible  <bruno@clisp.org>
12177
12178         signal: Define NSIG.
12179         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
12180         * tests/test-signal.c (nsig): New variable.
12181         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
12182
12183 2010-12-24  Bruno Haible  <bruno@clisp.org>
12184
12185         rename, renameat: Avoid test failures on OSF/1 5.1.
12186         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
12187         alternative error codes.
12188         * tests/test-renameat.c (main): Likewise.
12189
12190 2010-12-24  Bruno Haible  <bruno@clisp.org>
12191
12192         *printf: Detect large precisions bug on Solaris 10/SPARC.
12193         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
12194         by Paul Eggert.
12195         * tests/test-snprintf-posix.h (test_function): Add this test code here
12196         too.
12197         * tests/test-sprintf-posix.h (test_function): Likewise.
12198         * tests/test-vasnprintf-posix.c (test_function): Likewise.
12199         * tests/test-vasprintf-posix.c (test_function): Likewise.
12200         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
12201         around by gnulib.
12202         * doc/posix-functions/printf.texi: Likewise.
12203         * doc/posix-functions/snprintf.texi: Likewise.
12204         * doc/posix-functions/sprintf.texi: Likewise.
12205         * doc/posix-functions/vfprintf.texi: Likewise.
12206         * doc/posix-functions/vprintf.texi: Likewise.
12207         * doc/posix-functions/vsnprintf.texi: Likewise.
12208         * doc/posix-functions/vsprintf.texi: Likewise.
12209         * doc/posix-functions/dprintf.texi: Undo last commit.
12210         * doc/posix-functions/vdprintf.texi: Likewise.
12211
12212 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
12213
12214         tests: port test-fdutimensat.c to Solaris 8
12215         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
12216         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
12217         On Solaris 8, it fails with errno == ENOSYS, because there is no
12218         futimens (so it can't use the fd), and there is no lutimens (so it
12219         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
12220
12221         vsnprintf: make more consistent with snprintf; doc fixes
12222
12223         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
12224         the byte count return problem was promoted from the snprintf-posix
12225         to the snprintf module.
12226         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
12227         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
12228         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
12229         * tests/test-snprintf.c (main): Check the byte count returned.
12230         * tests/test-vsnprintf.c (main): Likewise.
12231
12232 2010-12-23  Eric Blake  <eblake@redhat.com>
12233
12234         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
12235         * modules/sigpipe (License): Relax license.
12236
12237 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
12238
12239         doc: document Solaris printf bug with large float precisions
12240         * doc/posix-functions/dprintf.texi (dprintf):
12241         * doc/posix-functions/fprintf.texi (fprintf):
12242         * doc/posix-functions/printf.texi (printf):
12243         * doc/posix-functions/snprintf.texi (snprintf):
12244         * doc/posix-functions/sprintf.texi (sprintf):
12245         * doc/posix-functions/vdprintf.texi (vdprintf):
12246         * doc/posix-functions/vfprintf.texi (vfprintf):
12247         * doc/posix-functions/vprintf.texi (vprintf):
12248         * doc/posix-functions/vsnprintf.texi (vsnprintf):
12249         * doc/posix-functions/vsprintf.texi (vsprintf):
12250         Mention that these functions mishandle large floating point
12251         precisions on Solaris 10.  The same bug is also present in Solaris
12252         8, and I assume earlier.  This causes "cd gnulib-tests; make
12253         check" to fail on Solaris 8 (and I assume, later) when building
12254         the latest coreutils, in test-vasprintf-posix's call to
12255         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
12256         the wide flavors (e.g., wprintf) so this patch just updates the
12257         documentation for the narrow ones.
12258
12259         test-posixtm.c: add two tests
12260         * tests/test-posixtm.c: Add two tests, to highlight the
12261         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
12262         around this bug; this is merely to document it.
12263
12264 2010-12-22  Bruno Haible  <bruno@clisp.org>
12265
12266         getlogin_r: Work around portability problem on OSF/1.
12267         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
12268         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
12269         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
12270         test for a truncated result.
12271         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
12272         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
12273         * modules/getlogin_r (Depends-on): Add memchr.
12274         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
12275
12276 2010-12-22  Bruno Haible  <bruno@clisp.org>
12277
12278         ptsname: Avoid test failure on OSF/1 5.1.
12279         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
12280         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
12281         (same_slave): New function.
12282         (main): Use it to compare ptsname's result with the expected file name.
12283
12284 2010-12-22  Bruno Haible  <bruno@clisp.org>
12285
12286         Port extended stdio modules to HP NonStop Kernel.
12287         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
12288         macros.
12289         * lib/fbufmode.c: Update comments.
12290         * lib/fflush.c: Likewise.
12291         * lib/fpurge.c: Likewise.
12292         * lib/freadable.c: Likewise.
12293         * lib/freadahead.c: Likewise.
12294         * lib/freading.c: Likewise.
12295         * lib/freadptr.c: Likewise.
12296         * lib/freadseek.c: Likewise.
12297         * lib/fseeko.c: Likewise.
12298         * lib/fseterr.c: Likewise.
12299         * lib/fwritable.c: Likewise.
12300         * lib/fwriting.c: Likewise.
12301         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
12302
12303 2010-12-22  Bruno Haible  <bruno@clisp.org>
12304
12305         ttyname_r: Work around bug on OSF/1 5.1.
12306         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
12307         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
12308         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
12309         present.
12310         * lib/ttyname_r.c (ttyname_r): Update comments.
12311
12312 2010-12-22  Bruno Haible  <bruno@clisp.org>
12313
12314         round: Implement result sign according to IEEE 754.
12315         * lib/round.c (MIN, MINUS_ZERO): New macros.
12316         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
12317         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
12318         * tests/test-round-ieee.c (main): Likewise.
12319         * tests/test-roundl-ieee.c (main): Likewise.
12320
12321         trunc: Implement result sign according to IEEE 754.
12322         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
12323         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
12324         * tests/test-trunc2.c: Include minus-zero.h.
12325         (MINUS_ZERO): New macro.
12326         (trunc_reference): Keep in sync with lib/trunc.c.
12327         * tests/test-truncf2.c: Include minus-zero.h.
12328         (MINUS_ZERO): New macro.
12329         (truncf_reference): Keep in sync with lib/trunc.c.
12330         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
12331         * tests/test-trunc-ieee.c (main): Likewise.
12332         * tests/test-truncl-ieee.c (main): Likewise.
12333
12334         ceil: Implement result sign according to IEEE 754.
12335         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
12336         (FUNC): Return -0.0 for -1 < x < 0.
12337         * tests/test-ceil2.c: Include minus-zero.h.
12338         (MINUS_ZERO): New macro.
12339         (ceil_reference): Keep in sync with lib/ceil.c.
12340         * tests/test-ceilf2.c: Include minus-zero.h.
12341         (MINUS_ZERO): New macro.
12342         (ceilf_reference): Keep in sync with lib/ceil.c.
12343         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
12344         * tests/test-ceil-ieee.c (main): Likewise.
12345         * tests/test-ceill-ieee.c (main): Likewise.
12346
12347         floor: Implement result sign according to IEEE 754.
12348         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
12349         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
12350         * tests/test-floorf2.c (floorf_reference): Likewise.
12351         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
12352         * tests/test-floor-ieee.c (main): Likewise.
12353         * tests/test-floorl-ieee.c (main): Likewise.
12354
12355 2010-12-22  Bruno Haible  <bruno@clisp.org>
12356
12357         getaddrinfo: Update doc.
12358         * doc/posix-functions/gai_strerror.texi: Return type is also different
12359         on AIX and HP-UX.
12360
12361 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
12362
12363         getaddrinfo, inet_ntop: Update doc for Solaris.
12364         * doc/posix-functions/gai_strerror.texi: Return type is also an
12365         issue on Solaris 9 and earlier.
12366         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
12367         on Solaris 10 and earlier.
12368
12369 2010-12-21  Bruno Haible  <bruno@clisp.org>
12370
12371         New module 'roundl-ieee'.
12372         * modules/roundl-ieee: New file.
12373         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
12374         test whether roundl works according to ISO C 99 with IEC 60559.
12375         * m4/roundl-ieee.m4: New file.
12376         * modules/roundl-ieee-tests: New file.
12377         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
12378         * tests/test-roundl.c (main): Remove signbit tests.
12379         * modules/roundl-tests (Depends-on): Remove signbit.
12380         * doc/posix-functions/roundl.texi: Mention the new module.
12381
12382 2010-12-21  Bruno Haible  <bruno@clisp.org>
12383
12384         New module 'truncl-ieee'.
12385         * modules/truncl-ieee: New file.
12386         * modules/truncl-ieee-tests: New file.
12387         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
12388         * tests/test-truncl.c (main): Remove signbit tests.
12389         * modules/truncl-tests (Depends-on): Remove signbit.
12390         * doc/posix-functions/truncl.texi: Mention the new module.
12391
12392 2010-12-21  Bruno Haible  <bruno@clisp.org>
12393
12394         New module 'ceill-ieee'.
12395         * modules/ceill-ieee: New file.
12396         * modules/ceill-ieee-tests: New file.
12397         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
12398         * tests/test-ceill.c (main): Remove signbit tests.
12399         * modules/ceill-tests (Depends-on): Remove signbit.
12400         * doc/posix-functions/ceill.texi: Mention the new module.
12401
12402 2010-12-21  Bruno Haible  <bruno@clisp.org>
12403
12404         New module 'floorl-ieee'.
12405         * modules/floorl-ieee: New file.
12406         * modules/floorl-ieee-tests: New file.
12407         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
12408         * tests/test-floorl.c (main): Remove signbit tests.
12409         * modules/floorl-tests (Depends-on): Remove signbit.
12410         * doc/posix-functions/floorl.texi: Mention the new module.
12411
12412 2010-12-21  Bruno Haible  <bruno@clisp.org>
12413
12414         New module 'round-ieee'.
12415         * modules/round-ieee: New file.
12416         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
12417         whether round works according to ISO C 99 with IEC 60559.
12418         * m4/round-ieee.m4: New file.
12419         * modules/round-ieee-tests: New file.
12420         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
12421         * tests/test-round1.c (main): Remove signbit tests.
12422         * modules/round-tests (Depends-on): Remove 'signbit'.
12423         * doc/posix-functions/round.texi: Mention the new module.
12424
12425 2010-12-21  Bruno Haible  <bruno@clisp.org>
12426
12427         New module 'trunc-ieee'.
12428         * modules/trunc-ieee: New file.
12429         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
12430         whether trunc works according to ISO C 99 with IEC 60559.
12431         * m4/trunc-ieee.m4: New file.
12432         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
12433         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
12434         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
12435         * modules/trunc-ieee-tests: New file.
12436         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
12437         * tests/test-trunc1.c (main): Remove signbit tests.
12438         * modules/trunc-tests (Depends-on): Remove 'signbit'.
12439         * doc/posix-functions/trunc.texi: Mention the new module.
12440
12441 2010-12-21  Bruno Haible  <bruno@clisp.org>
12442
12443         New module 'ceil-ieee'.
12444         * modules/ceil-ieee: New file.
12445         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
12446         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
12447         ISO C 99 with IEC 60559.
12448         * m4/ceil-ieee.m4: New file.
12449         * modules/ceil (Files): Add lib/ceil.c.
12450         (Depends-on): Add 'float'.
12451         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
12452         * lib/math.in.h (ceil): New declaration.
12453         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
12454         REPLACE_CEIL.
12455         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
12456         * modules/ceil-ieee-tests: New file.
12457         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
12458         * tests/test-math-c++.cc: Check the signature of 'ceil'.
12459         * doc/posix-functions/ceil.texi: Mention the new module.
12460
12461 2010-12-21  Bruno Haible  <bruno@clisp.org>
12462
12463         New module 'floor-ieee'.
12464         * modules/floor-ieee: New file.
12465         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
12466         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
12467         ISO C 99 with IEC 60559.
12468         * m4/floor-ieee.m4: New file.
12469         * modules/floor (Files): Add lib/floor.c.
12470         (Depends-on): Add 'float'.
12471         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
12472         * lib/math.in.h (floor): New declaration.
12473         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
12474         REPLACE_FLOOR.
12475         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
12476         * modules/floor-ieee-tests: New file.
12477         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
12478         * tests/test-math-c++.cc: Check the signature of 'floor'.
12479         * doc/posix-functions/floor.texi: Mention the new module.
12480
12481 2010-12-21  Bruno Haible  <bruno@clisp.org>
12482
12483         New module 'roundf-ieee'.
12484         * modules/roundf-ieee: New file.
12485         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
12486         test whether roundf works according to ISO C 99 with IEC 60559.
12487         * m4/roundf-ieee.m4: New file.
12488         * modules/roundf-ieee-tests: New file.
12489         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
12490         * tests/test-roundf1.c (main): Remove signbit tests.
12491         * modules/roundf-tests (Depends-on): Remove 'signbit'.
12492         * doc/posix-functions/roundf.texi: Mention the new module.
12493
12494 2010-12-21  Bruno Haible  <bruno@clisp.org>
12495
12496         New module 'truncf-ieee'.
12497         * modules/truncf-ieee: New file.
12498         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
12499         test whether truncf works according to ISO C 99 with IEC 60559.
12500         * m4/truncf-ieee.m4: New file.
12501         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
12502         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
12503         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
12504         * modules/truncf-ieee-tests: New file.
12505         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
12506         * tests/test-truncf1.c (main): Remove signbit tests.
12507         * modules/truncf-tests (Depends-on): Remove 'signbit'.
12508         * doc/posix-functions/truncf.texi: Mention the new module.
12509
12510 2010-12-21  Bruno Haible  <bruno@clisp.org>
12511
12512         New module 'ceilf-ieee'.
12513         * modules/ceilf-ieee: New file.
12514         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
12515         test whether ceilf works according to ISO C 99 with IEC 60559.
12516         * m4/ceilf-ieee.m4: New file.
12517         * modules/ceilf-ieee-tests: New file.
12518         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
12519         * tests/test-ceilf1.c (main): Remove signbit tests.
12520         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
12521         * doc/posix-functions/ceilf.texi: Mention the new module.
12522
12523 2010-12-21  Bruno Haible  <bruno@clisp.org>
12524
12525         New module 'floorf-ieee'.
12526         * modules/floorf-ieee: New file.
12527         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
12528         test whether floorf works according to ISO C 99 with IEC 60559.
12529         * m4/floorf-ieee.m4: New file.
12530         * modules/floorf-ieee-tests: New file.
12531         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
12532         * tests/test-floorf1.c (main): Remove signbit tests.
12533         * modules/floorf-tests (Depends-on): Remove 'signbit'.
12534         * doc/posix-functions/floorf.texi: Mention the new module.
12535
12536 2010-12-21  Bruno Haible  <bruno@clisp.org>
12537
12538         Support for minus zero in autoconf macros.
12539         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
12540         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
12541         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
12542         * tests/minus-zero.h: Update comments.
12543
12544 2010-12-21  Bruno Haible  <bruno@clisp.org>
12545
12546         Tests for module 'ceil'.
12547         * modules/ceil-tests: New file.
12548         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
12549         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
12550
12551 2010-12-21  Bruno Haible  <bruno@clisp.org>
12552
12553         Tests for module 'floor'.
12554         * modules/floor-tests: New file.
12555         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
12556         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
12557
12558 2010-12-21  Bruno Haible  <bruno@clisp.org>
12559
12560         math: Fix indentation.
12561         * lib/math.in.h (floorf): Fix indentation.
12562
12563 2010-12-21  Bruno Haible  <bruno@clisp.org>
12564
12565         Fix cross-compilation guesses on Solaris.
12566         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
12567         not match "solaris2.10".
12568         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
12569         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
12570         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
12571
12572 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
12573
12574         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
12575         This fixes a problem observed with the latest coreutils snapshot
12576         that caused a test to fail on Solaris 8.  src/csplit.c's call
12577         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
12578         earlier, instead of returning the number of bytes that would have
12579         been generated; this causes csplit to incorrectly report memory
12580         exhaustion.
12581         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
12582         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
12583         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
12584         comments to match.
12585         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
12586         Fix typo in matching older versions of Solaris: "solaris2.10"
12587         is matched by the shell pattern "solaris2.[0-9]*".  This matters
12588         only for guessing while cross-compiling.
12589         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
12590
12591 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
12592
12593         ftoastr: fix comment again
12594         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
12595         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
12596         Also, simplify example a bit by using flags = 0.
12597
12598 2010-12-20  Bruno Haible  <bruno@clisp.org>
12599
12600         round*, trunc*: Update documentation regarding glibc.
12601         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
12602         * doc/posix-functions/round.texi: Likewise.
12603         * doc/posix-functions/roundl.texi: Likewise.
12604         * doc/posix-functions/truncf.texi: Likewise.
12605         * doc/posix-functions/trunc.texi: Likewise.
12606         * doc/posix-functions/truncl.texi: Likewise.
12607
12608 2010-12-20  Bruno Haible  <bruno@clisp.org>
12609
12610         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
12611         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
12612         * doc/posix-functions/round.texi: Likewise.
12613         * doc/posix-functions/roundl.texi: Likewise.
12614
12615 2010-12-20  Bruno Haible  <bruno@clisp.org>
12616
12617         ttyname_r: Add missing declaration on HP-UX 11.
12618         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
12619         HAVE_TTYNAME_R.
12620         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
12621         declared. Set HAVE_TTYNAME_R always.
12622         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
12623         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
12624         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
12625         HAVE_TTYNAME_R.
12626         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
12627
12628 2010-12-20  Bruno Haible  <bruno@clisp.org>
12629
12630         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
12631         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
12632         * doc/posix-functions/getlogin_r.texi: Likewise.
12633         * tests/test-getlogin.c: Include <errno.h>.
12634         (main): Avoid test failure on HP-UX 11.11.
12635         * tests/test-getlogin_r.c (main): Likewise.
12636
12637 2010-12-20  Bruno Haible  <bruno@clisp.org>
12638
12639         getlogin_r: Add missing declaration on HP-UX 11.
12640         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
12641         declared also when it exists as a function.
12642         * doc/posix-functions/getlogin_r.texi: Document this workaround.
12643
12644 2010-12-20  Bruno Haible  <bruno@clisp.org>
12645
12646         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
12647         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
12648         through wcrtomb.
12649
12650 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
12651
12652         ftoastr: fix comment
12653         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
12654         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
12655
12656 2010-12-19  Bruno Haible  <bruno@clisp.org>
12657
12658         isnan: Ensure it is a macro.
12659         * lib/math.in.h (isnan): Define as a macro if not already a macro.
12660         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
12661         Solaris.
12662
12663 2010-12-19  Bruno Haible  <bruno@clisp.org>
12664
12665         ldexpl test: Fix link error on OSF/1 5.1.
12666         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
12667
12668 2010-12-19  Bruno Haible  <bruno@clisp.org>
12669
12670         wctype: Make it work in C++ mode on OSF/1 5.1.
12671         * lib/wctype.in.h (iswblank): Declare but not define here.
12672         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
12673         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
12674         * modules/wctype (Files): Add lib/iswblank.c.
12675
12676 2010-12-19  Bruno Haible  <bruno@clisp.org>
12677
12678         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
12679         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
12680         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
12681
12682 2010-12-19  Bruno Haible  <bruno@clisp.org>
12683
12684         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
12685         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
12686         _POSIX_PII_SOCKET.
12687         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
12688         * doc/posix-functions/recvfrom.texi: Likewise.
12689         * doc/posix-functions/send.texi: Likewise.
12690         * doc/posix-functions/sendto.texi: Likewise.
12691
12692 2010-12-19  Bruno Haible  <bruno@clisp.org>
12693
12694         tcgetsid: Add missing declaration on OSF/1 5.1.
12695         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
12696         HAVE_TCGETSID.
12697         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
12698         Don't set HAVE_TCGETSID.
12699         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
12700         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
12701         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
12702         HAVE_TCGETSID.
12703         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
12704
12705 2010-12-19  Bruno Haible  <bruno@clisp.org>
12706
12707         stdio: Fix problem with popen() declaration on OSF/1 5.1.
12708         * lib/stdio.in.h: During the include_next statement, let recursive
12709         includes of this file include only the system header file.
12710
12711 2010-12-19  Bruno Haible  <bruno@clisp.org>
12712
12713         iconv_open: Fix regression from 2010-12-04.
12714         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
12715         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
12716
12717 2010-12-19  Bruno Haible  <bruno@clisp.org>
12718
12719         stdbool test: Avoid a gcc warning.
12720         * tests/test-stdbool.c (main): Fail if e1 is false.
12721         Reported by Jim Meyering.
12722
12723 2010-12-19  Jim Meyering  <meyering@redhat.com>
12724
12725         setenv: restore to working order
12726         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
12727         mistakenly removed.
12728         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
12729         HAVE_SETENV.
12730         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
12731         HAVE_SETENV.
12732
12733 2010-12-19  Bruno Haible  <bruno@clisp.org>
12734
12735         Document some different function declarations on OSF/1 5.1.
12736         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
12737         * doc/posix-functions/inet_ntop.texi: Likewise.
12738         * doc/posix-functions/gethostname.texi: Likewise.
12739         * lib/unistd.in.h (gethostname): Update comment.
12740
12741 2010-12-19  Bruno Haible  <bruno@clisp.org>
12742
12743         doc: Mention vasprintf-posix module.
12744         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
12745         the 'vasprintf-posix' module.
12746         * doc/glibc-functions/vasprintf.texi: Likewise.
12747
12748 2010-12-19  Bruno Haible  <bruno@clisp.org>
12749
12750         unsetenv: Add missing declaration on OSF/1 5.1.
12751         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
12752         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
12753         Don't set HAVE_UNSETENV. In the test program, set _BSD.
12754         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
12755         not HAVE_UNSETENV.
12756         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
12757         HAVE_UNSETENV.
12758         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
12759
12760 2010-12-19  Bruno Haible  <bruno@clisp.org>
12761
12762         setenv: Add missing declaration on OSF/1 5.1.
12763         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
12764         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
12765         declared. Don't set HAVE_SETENV.
12766         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
12767         not HAVE_SETENV.
12768         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
12769         HAVE_SETENV.
12770         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
12771
12772 2010-12-19  Bruno Haible  <bruno@clisp.org>
12773
12774         nl_langinfo tests: Avoid gcc warning.
12775         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
12776
12777 2010-12-19  Bruno Haible  <bruno@clisp.org>
12778
12779         mknod: Avoid error in C++ mode on OSF/1 with GCC.
12780         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
12781         _GL_CXXALIAS_SYS.
12782
12783 2010-12-19  Bruno Haible  <bruno@clisp.org>
12784
12785         stdbool: Relax test.
12786         * tests/test-stdbool.c (e): Don't require that casts from a variable's
12787         address to 'bool' work in static initializer, for compilers other than
12788         GCC.
12789
12790 2010-12-19  Bruno Haible  <bruno@clisp.org>
12791
12792         ftello: Add missing declaration on OSF/1 5.1.
12793         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
12794         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
12795         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
12796         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
12797         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
12798
12799 2010-12-19  Bruno Haible  <bruno@clisp.org>
12800
12801         fseeko: Add missing declaration on OSF/1 5.1.
12802         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
12803         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
12804         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
12805         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
12806         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
12807
12808 2010-12-19  Bruno Haible  <bruno@clisp.org>
12809
12810         fchdir: Add missing declaration on OSF/1 5.1.
12811         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
12812         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
12813         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
12814         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
12815         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
12816
12817 2010-12-19  Bruno Haible  <bruno@clisp.org>
12818
12819         relocatable-prog-wrapper: Separate from relocatable-prog.
12820         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
12821         uninstall-relocwrapper rule here.
12822         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
12823         Reported by Ian Beckwith <ianb@erislabs.net>.
12824
12825 2010-12-19  Bruno Haible  <bruno@clisp.org>
12826
12827         unistr/u8-mbsnlen: Add missing dependency.
12828         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
12829         Reported by Ian Beckwith <ianb@erislabs.net>.
12830
12831 2010-12-19  Bruno Haible  <bruno@clisp.org>
12832
12833         iconv: Make it possible again to use this module without 'iconv-h'.
12834         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
12835         if it is not defined.
12836         Reported by Ian Beckwith <ianb@erislabs.net>.
12837
12838 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
12839
12840         acl: port to Solaris 8 when copying from tmpfs to ufs
12841         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
12842         error number.  Problem observed on Solaris 8 with latest
12843         coreutils, with "mv A B", where A is on a tmpfs file system and B
12844         is on a ufs file system.  This caused coreutils' mv/part-symlink
12845         test to fail.
12846
12847         tests: set fail=0 at start
12848         * tests/init.sh (setup_): Move fail=0 initialization here ...
12849         (mktempd_): ... from here, so that tests can rely on fail being
12850         set to 0 initially.  This fixes a problem in coreutils; see:
12851         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
12852
12853 2010-12-18  Bruno Haible  <bruno@clisp.org>
12854
12855         memmem-simple: Stylistic changes.
12856         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
12857         Fix preprocessor directive indentation.
12858
12859 2010-12-15  Pádraig Brady <P@draigBrady.com>
12860
12861         memmem, memmem-simple: reorganize and expand empty needle check
12862         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
12863         functional checks to memmem-simple so that one has a fully functional
12864         memmem by using just this module.
12865         Restrict the performance only check to the memmem module.
12866         Also expand the empty needle check to ensure the correct
12867         pointer is returned, not just a non NULL pointer.
12868         * doc/glibc-functions/memmem.texi: Rearrange the portability
12869         documentation to correlate with the rearranged checks.
12870         Clarify exactly how the memmem and memmem-simple modules
12871         relate to each other.
12872
12873 2010-12-15  Pádraig Brady <P@draigBrady.com>
12874             Bruno Haible  <bruno@clisp.org>
12875
12876         Improve cross-compilation guesses for uClibc.
12877         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
12878         that uClibc does not have the glibc bug.
12879         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
12880         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
12881
12882 2010-12-14  Eric Blake  <eblake@redhat.com>
12883
12884         configmake: provide fallbacks for oldest supported autotools
12885         * m4/configmake.m4: New file.
12886         * modules/configmake (Files): Ship it.
12887         (configure.ac): Use it to guarantee fallbacks.
12888
12889 2010-12-13  Pádraig Brady <P@draigBrady.com>
12890
12891         read-file: Improve handling of large files
12892         * lib/read-file.c (fread_file): Minimize realloc()s
12893         for regular files, and better manage sizes around SIZE_MAX.
12894
12895 2010-12-13  Eric Blake  <eblake@redhat.com>
12896
12897         cloexec, fcntl: relax license
12898         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
12899         consent from all contributors.
12900         * modules/fcntl (License): Likewise.
12901
12902 2010-12-10  Bruno Haible  <bruno@clisp.org>
12903
12904         Tests for module 'pipe-posix'.
12905         * modules/pipe-posix-tests: New file.
12906         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
12907
12908 2010-12-10  Bruno Haible  <bruno@clisp.org>
12909
12910         pipe-posix: Make it work in C++ mode.
12911         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
12912         (pipe): Use common idiom, not a macro definition.
12913         * lib/pipe.c: New file.
12914         * m4/pipe.m4: New file.
12915         * modules/pipe-posix (Description): Enhance.
12916         (Files): Add lib/pipe.c, m4/pipe.m4.
12917         (configure.ac): Invoke gl_FUNC_PIPE.
12918         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
12919         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
12920         * tests/test-unistd-c++.cc: Check the signature of pipe.
12921
12922 2010-12-10  Bruno Haible  <bruno@clisp.org>
12923
12924         Rename module 'pipe' to 'spawn-pipe'.
12925         * modules/spawn-pipe: New file, renamed from modules/pipe.
12926         (Files, configure.ac, Makefile.am): Update.
12927         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
12928         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
12929         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
12930         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
12931         "spawn-pipe.h" instead of "pipe.h".
12932         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
12933         to gl_SPAWN_PIPE.
12934         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
12935         (Files, Makefile.am): Update.
12936         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
12937         Update.
12938         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
12939         Include "spawn-pipe.h" instead of "pipe.h".
12940         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
12941         * lib/javacomp.c: Likewise.
12942         * lib/javaversion.c: Likewise.
12943         * lib/pipe-filter-gi.c: Likewise.
12944         * lib/pipe-filter-ii.c: Likewise.
12945         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
12946         * modules/javacomp (Depends-on): Likewise.
12947         * modules/javaversion (Depends-on): Likewise.
12948         * modules/pipe-filter-gi (Depends-on): Likewise.
12949         * modules/pipe-filter-ii (Depends-on): Likewise.
12950         * MODULES.html.sh (Executing programs): Update.
12951         * NEWS: Mention the change.
12952
12953 2010-12-10  Eric Blake  <eblake@redhat.com>
12954
12955         pipe-posix: new module
12956         * modules/pipe-posix: New file.
12957         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
12958         (gl_UNISTD_H): Check for declaration.
12959         * modules/unistd (Makefile.am): Substitute it.
12960         * lib/unistd.in.h (pipe): Provide it for mingw.
12961         * doc/posix-functions/pipe.texi (pipe): Update documentation.
12962         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
12963
12964 2010-12-07  Bruno Haible  <bruno@clisp.org>
12965
12966         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
12967         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
12968         u8_strcmp_gnu.
12969         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
12970
12971 2010-12-06  Bruno Haible  <bruno@clisp.org>
12972
12973         Update internal documentation.
12974         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
12975
12976 2010-12-04  Bruno Haible  <bruno@clisp.org>
12977
12978         Put more information about failed tests into the test return codes.
12979         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
12980         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
12981         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
12982         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
12983         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
12984         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
12985         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
12986         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
12987         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
12988         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
12989         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
12990         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
12991         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
12992         * m4/stdint.m4 (gl_STDINT_H): Likewise.
12993         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
12994         returns a bit mask.
12995         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
12996         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
12997         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
12998         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
12999         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
13000         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
13001         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
13002         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
13003         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
13004         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
13005         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
13006         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
13007         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
13008         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
13009         * m4/link.m4 (gl_FUNC_LINK): Likewise.
13010         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
13011         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
13012         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
13013         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
13014         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
13015         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
13016         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
13017         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
13018         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
13019         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
13020         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
13021         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
13022         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
13023         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
13024         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
13025         gl_PRINTF_PRECISION): Likewise.
13026         * m4/regex.m4 (gl_REGEX): Likewise.
13027         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
13028         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
13029         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
13030         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
13031         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
13032         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
13033         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
13034         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
13035         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
13036         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
13037         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
13038         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
13039         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
13040         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
13041         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
13042         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
13043         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
13044         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
13045         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
13046         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
13047         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
13048         enumerated value.
13049         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
13050
13051 2010-12-04  Bruno Haible  <bruno@clisp.org>
13052
13053         Update for Solaris 11 2010-11.
13054         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
13055         Express, released in November 2010.
13056
13057 2010-12-04  Bruno Haible  <bruno@clisp.org>
13058
13059         nproc: Relax license.
13060         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
13061         and Paul Eggert.
13062         Requested by Ludovic Courtès <ludo@gnu.org>.
13063
13064 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
13065
13066         utimecmp: fine-grained src to nearby coarse-grained dest
13067
13068         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
13069         and the source is on a file system with higher-resolution time
13070         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
13071         not work, and the time stamps are close together, the algorithm to
13072         determine the exact resolution from the read-back mtime was buggy:
13073         it had a "!=" where it should have had an "==".  This bug has been
13074         in the code ever since it was introduced to gnulib.
13075         Problem reported by Dan Jacobson in
13076         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
13077
13078 2010-11-30  Bruno Haible  <bruno@clisp.org>
13079
13080         strerror_r-posix: Fix autoconf test.
13081         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
13082
13083 2010-11-28  Bruno Haible  <bruno@clisp.org>
13084             Paul Eggert  <eggert@cs.ucla.edu>
13085
13086         Tests for module 'getdomainname'.
13087         * modules/getdomainname-tests: New file.
13088         * tests/test-getdomainname.c: New file, based on
13089         tests/test-gethostname.c.
13090
13091 2010-11-28  Bruno Haible  <bruno@clisp.org>
13092             Paul Eggert  <eggert@cs.ucla.edu>
13093
13094         getdomainname: Use the system function when possible.
13095         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
13096         (getdomainname): Replace if needed. Provide the declaration if it is
13097         missing. Don't use _GL_CXXALIAS_SYS_CAST.
13098         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
13099         (getdomainname): When the system has getdomainname, call the system
13100         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
13101         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
13102         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
13103         found in libnsl. Look for the declaration also in <netdb.h>. Replace
13104         the function if its second argument is of type 'int' or if it is found
13105         in libnsl.
13106         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
13107         <sys/systeminfo.h> and sysinfo().
13108         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
13109         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
13110         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
13111         HAVE_GETDOMAINNAME.
13112         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
13113         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
13114         * doc/glibc-functions/getdomainname.texi: Document the problems with
13115         the getdomainname declaration.
13116
13117 2010-11-28  Bruno Haible  <bruno@clisp.org>
13118
13119         sys_socket: Ensure ss_family field on AIX.
13120         * lib/sys_socket.in.h (ss_family): New macro definition.
13121         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
13122         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
13123         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
13124         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
13125         * modules/sys_socket (Makefile.am): Substitute
13126         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
13127         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
13128
13129 2010-11-27  Bruno Haible  <bruno@clisp.org>
13130
13131         readline: Improve configure output.
13132         * m4/readline.m4 (gl_FUNC_READLINE): Make the
13133         "checking for readline..." result understandable.
13134
13135 2010-11-27  Bruno Haible  <bruno@clisp.org>
13136
13137         *printf-posix: Detect a bug on Solaris 10/x86.
13138         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
13139         for floating-point output.
13140         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
13141         directive.
13142         * tests/test-snprintf-posix.h (test_function): Likewise.
13143         * tests/test-sprintf-posix.h (test_function): Likewise.
13144         * tests/test-vasprintf-posix.c (test_function): Likewise.
13145         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
13146         * doc/posix-functions/printf.texi: Likewise.
13147         * doc/posix-functions/snprintf.texi: Likewise.
13148         * doc/posix-functions/sprintf.texi: Likewise.
13149         * doc/posix-functions/vfprintf.texi: Likewise.
13150         * doc/posix-functions/vprintf.texi: Likewise.
13151         * doc/posix-functions/vsnprintf.texi: Likewise.
13152         * doc/posix-functions/vsprintf.texi: Likewise.
13153         * doc/glibc-functions/obstack_printf.texi: Likewise.
13154         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
13155
13156 2010-11-27  Bruno Haible  <bruno@clisp.org>
13157
13158         Fix link error when module libunistring-optional is in use.
13159         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
13160         * modules/striconveha-tests (Makefile.am): Likewise.
13161
13162 2010-11-27  Bruno Haible  <bruno@clisp.org>
13163
13164         regex: Mention link dependencies.
13165         * modules/regex (Link): New section.
13166         * modules/rpmatch (Link): Likewise.
13167         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
13168
13169 2010-11-27  Bruno Haible  <bruno@clisp.org>
13170
13171         ftoastr: Fix compilation error on Solaris.
13172         * lib/ftoastr.c: Include <config.h>.
13173
13174 2010-11-27  Bruno Haible  <bruno@clisp.org>
13175
13176         getloadavg: Update documentation.
13177         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
13178
13179 2010-11-27  Bruno Haible  <bruno@clisp.org>
13180
13181         sys_socket: Fix test whether the functions are declared.
13182         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
13183         not <sys/select.h>.
13184
13185 2010-11-27  Bruno Haible  <bruno@clisp.org>
13186
13187         getpass: Make sure to get system declaration on some platforms.
13188         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
13189         gl_USE_SYSTEM_EXTENSIONS.
13190         * modules/getpass (Depends-on): Add extensions.
13191
13192 2010-11-26  Bruno Haible  <bruno@clisp.org>
13193
13194         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
13195         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
13196         'iconv' module is present.
13197         (ICONV_CONST): New macro.
13198         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
13199         ICONV_CONST.
13200         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
13201         set ICONV_CONST.
13202         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
13203         here.
13204         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
13205         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
13206         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
13207         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
13208         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
13209         present.
13210
13211 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
13212
13213         ftoastr: comment fix
13214         * lib/ftoastr.c: "little" -> "little or no" in comment
13215
13216 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
13217
13218         stdint: port to GCC 4.3 + OSX + Octave
13219         On this platform, stdint.h is buggy and defines int64_t to long
13220         long int.  The replacement defined it to long int, causing
13221         problems with C++ style name mangling.  Instead, trust the system
13222         definition if INT64_MAX is defined, and likewise for the unsigned
13223         variant.   Problem reported by Jarno Rajahalme in
13224         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
13225         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
13226         and don't mess with int64_t and INT64_MAX in this case.
13227         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
13228
13229 2010-11-24  Bruno Haible  <bruno@clisp.org>
13230
13231         doc: Corrections regarding MacOS X 10.4 and 10.5.
13232         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
13233         MacOS X.
13234         Reported by Simon Josefsson.
13235
13236 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
13237
13238         Uninstall ".bin" files installed by relocwrapper.
13239         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
13240         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
13241         unless it is already there.
13242
13243 2010-11-21  Bruno Haible  <bruno@clisp.org>
13244
13245         Update for NetBSD 5.0.
13246         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
13247         NetBSD; the test fails on NetBSD 5.0.
13248         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
13249         about NetBSD.
13250
13251 2010-11-21  Bruno Haible  <bruno@clisp.org>
13252
13253         Update for HP-UX 11.23 and HP-UX 11.31.
13254         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
13255         HP-UX.
13256
13257 2010-11-21  Bruno Haible  <bruno@clisp.org>
13258
13259         Update for MacOS X 10.5.
13260         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
13261         MacOS X; the test fails on MacOS X 10.5.8.
13262         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
13263         about MacOS X.
13264
13265 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
13266
13267         bootstrap: add bootstrap_sync option.
13268         See discussion at
13269         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
13270         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
13271         * build-aux/bootstrap: Accept --bootstrap-sync to update
13272         bootstrap if it is not identical to the local gnulib's
13273         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
13274         enable this by default.  Accept --no-bootstrap-sync to disable
13275         it.
13276
13277 2010-11-20  Bruno Haible  <bruno@clisp.org>
13278
13279         Ensure that <features.h> is included before __GLIBC__ is tested.
13280         * lib/printf-parse.h: Include <features.h>.
13281         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
13282         Reported by Mike Frysinger <vapier@gentoo.org>.
13283
13284         Ensure that <features.h> is included before __GLIBC__ is tested.
13285         * lib/wchar.in.h: Include <features.h>.
13286         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
13287         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
13288         Reported by Mike Frysinger <vapier@gentoo.org>.
13289
13290         Ensure that <features.h> is included before __GLIBC__ is tested.
13291         * lib/arpa_inet.in.h: Include <features.h>.
13292         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
13293         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
13294         Reported by Mike Frysinger <vapier@gentoo.org>.
13295
13296         Ensure that <features.h> is included before __GLIBC__ is tested.
13297         * build-aux/link-warning.h: Include <features.h>.
13298         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
13299         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
13300         Reported by Mike Frysinger <vapier@gentoo.org>.
13301
13302         Ensure that <features.h> is included before __GLIBC__ is tested.
13303         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
13304         Reported by Mike Frysinger <vapier@gentoo.org>.
13305
13306 2010-11-20  Bruno Haible  <bruno@clisp.org>
13307
13308         memmem: Fix autoconf test.
13309         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
13310
13311 2010-11-20  Bruno Haible  <bruno@clisp.org>
13312
13313         Port to uClibc.
13314         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
13315         * lib/fcntl.in.h: Likewise.
13316         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
13317         * lib/mbrtowc.c (mbrtowc): Likewise.
13318         * lib/relocatable.c (find_shared_library_fullname): Likewise.
13319         * lib/strerror_r.c: Likewise.
13320         * lib/unistr/u8-strnlen.c: Likewise.
13321         * lib/vasnprintf.c (decimal_point_char): Likewise.
13322         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
13323         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
13324         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
13325         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
13326         * tests/test-sigaction.c (handler, main): Likewise.
13327         * lib/freading.h: Treat uClibc like a non-glibc platform.
13328         * lib/freading.c: Likewise.
13329         * lib/gettext.h: Likewise.
13330         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
13331         Likewise.
13332         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
13333         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
13334         * lib/propername.c (proper_name_utf8): Likewise.
13335         * lib/spawn.in.h: Likewise.
13336         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
13337         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
13338         mem_cd_iconveh_internal): Likewise.
13339         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
13340         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
13341         strstr, strcasestr): Likewise.
13342         * lib/unicodeio.c (unicode_to_mb): Likewise.
13343         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
13344         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
13345         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
13346         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
13347         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
13348         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
13349         * lib/unistr/u8-stpncpy.c: Likewise.
13350         * lib/vasnprintf.c (VASNPRINTF): Likewise.
13351         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
13352         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
13353         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
13354         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
13355         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
13356         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
13357         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
13358         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
13359         Likewise.
13360         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
13361         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
13362         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
13363         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
13364         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
13365         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
13366         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
13367         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
13368         * tests/test-getopt.h (OPTIND_MIN): Likewise.
13369         * tests/test-striconveha.c (main): Likewise.
13370         * tests/test-vasnprintf-posix.c (test_function): Likewise.
13371         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
13372         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
13373         * doc/posix-functions/getline.texi: Likewise.
13374         Reported by Mike Frysinger <vapier@gentoo.org>.
13375
13376 2010-11-20  Bruno Haible  <bruno@clisp.org>
13377
13378         nproc: Fix condition.
13379         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
13380         HAVE_PTHREAD_AFFINITY_NP.
13381
13382 2010-11-20  Bruno Haible  <bruno@clisp.org>
13383
13384         Fix a comment.
13385         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
13386
13387 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
13388
13389         ftoastr: don't assume snprintf
13390         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
13391         Implement a subset of snprintf here, by using sprintf safely.
13392         * modules/ftoastr (Depends-on): Remove snprintf.
13393
13394 2010-11-19  Jim Meyering  <meyering@redhat.com>
13395
13396         test-rename.h: fix compilation failure
13397         * tests/test-rename.h (test_rename): Add omitted "}".
13398
13399 2010-11-17  Jim Meyering  <meyering@redhat.com>
13400
13401         maint.mk: add a URL discussing the no-@acronym policy
13402         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
13403
13404 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
13405
13406         ftoastr: depend on snprintf, improve comments
13407         * lib/ftoastr.c: Also mention Loitsch's draft.
13408         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
13409         needed in the current implementation, but it might simplify
13410         speeding up the code later.
13411         * modules/ftoastr: Depend on snprintf; this improves portability.
13412         Suggested by Bruno Haible in the same email.
13413
13414         ftoastr: port to hosts lacking strtof and strtold
13415         Problem reported by Bruno Haible in
13416         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
13417         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
13418         environment and strtold (and presumably strtof) are not available.
13419         * modules/ftoastr (Files): Add m4/c-strtod.m4.
13420         (configure.ac): Require gl_C99_STRTOLD.
13421
13422 2010-11-18  Bruno Haible  <bruno@clisp.org>
13423
13424         c-strtold: Avoid link error on AIX 7.
13425         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
13426         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
13427         (gl_C_STRTOLD): Test whether strtold_l exists.
13428         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
13429
13430 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
13431
13432         intprops: new macro INT_BITS_STRLEN_BOUND
13433         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
13434         ftoastr.h.  This exposes an internal of intprops.h that was formerly
13435         not exposed.  Also, it uses a slightly tighter bound than before;
13436         though this makes no practical difference, we might as well be as
13437         tight as we easily can.
13438
13439         ftoastr: new module, for lossless conversion of floats to short strings
13440         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
13441         * modules/ftoastr: New files.
13442
13443 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
13444
13445         bootstrap: port to Solaris sed
13446         * build-aux/bootstrap (get_version): Port to Solaris sed.
13447         See Ralf Wildenhues's note in
13448         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
13449
13450 2010-11-14  Jim Meyering  <meyering@redhat.com>
13451
13452         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
13453         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
13454         and move definition closer to sole use.
13455
13456 2010-11-13  Jim Meyering  <meyering@redhat.com>
13457
13458         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
13459         Now we require at least autoconf-2.59, which means the work-around
13460         is no longer needed.
13461         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
13462         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
13463         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
13464         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
13465         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
13466
13467 2010-11-13  Bruno Haible  <bruno@clisp.org>
13468
13469         rename, renameat: Avoid test failures at NFS mounted locations.
13470         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
13471         functions.
13472         (test_rename): Use assert_nonexistent.
13473         * tests/test-rename.c: Include <dirent.h>.
13474         * tests/test-renameat.c: Likewise.
13475         Reported by Gary V. Vaughan <gary@gnu.org>.
13476
13477         rename, renameat: Document Linux bug with NFS
13478         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
13479         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
13480         * doc/posix-functions/renameat.texi: Likewise.
13481         Suggested by Eric Blake.
13482
13483 2010-11-13  Bruno Haible  <bruno@clisp.org>
13484
13485         rename test: Add comments.
13486         * tests/test-rename.h (test_rename): Add structure and comments.
13487
13488 2010-11-13  Eric Blake  <eblake@redhat.com>
13489
13490         maintainer-makefile: cover a few more files
13491         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
13492         scripts generated within C files, for libvirt.
13493
13494 2010-11-13  Bruno Haible  <bruno@clisp.org>
13495
13496         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
13497         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
13498         character, return the number of bytes that belong together, not always
13499         1.
13500         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
13501         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
13502         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
13503         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
13504         number of bytes of an invalid character.
13505         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
13506         (main): Invoke it.
13507         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
13508         results.
13509         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
13510         malformed byte sequences.
13511         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
13512         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
13513         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
13514         Reported by Ben Pfaff and Paolo Bonzini.
13515
13516 2010-11-13  Bruno Haible  <bruno@clisp.org>
13517
13518         openat: Work around glibc bug with fchownat() and empty file names.
13519         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
13520         (gl_FUNC_FCHOWNAT): Invoke it.
13521         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
13522         * doc/posix-functions/fchownat.texi: Document the glibc bug.
13523         Reported by Gary V. Vaughan <gary@gnu.org>.
13524
13525 2010-11-13  Bruno Haible  <bruno@clisp.org>
13526
13527         openat: Ensure autoconf macro ordering.
13528         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
13529         gl_USE_SYSTEM_EXTENSIONS.
13530         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
13531
13532 2010-11-13  Bruno Haible  <bruno@clisp.org>
13533
13534         Update comments.
13535         * lib/unistr/u8-check.c: Update file name in comments.
13536         * lib/unistr/u8-mblen.c: Likewise.
13537         * lib/unistr/u8-prev.c: Likewise.
13538         * lib/unistr/u8-strmblen.c: Likewise.
13539         * lib/unistr/u8-strmbtouc.c: Likewise.
13540
13541 2010-11-13  Jim Meyering  <meyering@redhat.com>
13542
13543         tests: avoid test failure on Solaris 10 due to lack of PATH export
13544         * tests/test-update-copyright.sh: Don't forget to export PATH.
13545
13546         init.sh: ensure that IFS is defined, just in case...
13547         * tests/init.sh (setup_): Ensure that IFS is defined,
13548         so that saving and restoring it works as expected.  This
13549         appears to be useful at least for an old version of dash
13550         from a long time ago (RH 6).  See here for details:
13551         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
13552
13553         maint.mk: tighten "test a == b" check
13554         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
13555         test to files that contain something like #!/bin/sh.
13556         Without this, coreutils would get two false positives in
13557         the comments of C source files.
13558
13559 2010-11-12  Eric Blake  <eblake@redhat.com>
13560
13561         bootstrap: fix typo in previous attempt
13562         * build-aux/bootstrap (buildreq): Correct the grouping.
13563         Reported by Paul Eggert.
13564
13565         maintainer-makefile: prohibit test x == x
13566         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
13567         Based on a report by Matthias Bolte.
13568
13569         bootstrap: allow FreeBSD gzip
13570         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
13571         which has no '.' and goes to stderr.
13572         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
13573         Reported by Matthias Bolte.
13574
13575         maintainer-makefile: check for i18n setup
13576         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
13577         will likely work.
13578
13579 2010-11-12  Bruno Haible  <bruno@clisp.org>
13580
13581         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
13582         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
13583         * lib/nanosleep.c (nanosleep): Likewise.
13584
13585 2010-11-11  Bruno Haible  <bruno@clisp.org>
13586
13587         fcntl-h: Fix for use of C++ on glibc systems.
13588         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
13589         also on glibc systems in C++ mode.
13590         Reported by Gary V. Vaughan <gary@gnu.org>.
13591
13592 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
13593
13594         mknod: avoid false failure with dash
13595         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
13596
13597 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
13598
13599         unlink: Fix "is it should" typo in diagnostic.
13600         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
13601         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
13602
13603 2010-11-11  Bruno Haible  <bruno@clisp.org>
13604
13605         Tests for module 'strerror_r-posix'.
13606         * modules/strerror_r-posix-tests: New file.
13607         * tests/test-strerror_r.c: New file.
13608         * tests/test-string-c++.cc: Check the signature of strerror_r.
13609
13610         New module 'strerror_r-posix'.
13611         * lib/string.in.h (strerror_r): New declaration.
13612         * lib/strerror_r.c: New file.
13613         * m4/strerror_r.m4: New file.
13614         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
13615         of strerror_r.
13616         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
13617         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
13618         * modules/strerror_r-posix: New file.
13619         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
13620         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
13621         * doc/posix-functions/strerror_r.texi: Mention the new module and the
13622         portability problems.
13623
13624 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
13625
13626         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
13627         line is also considered for output. Quoted function name in shell
13628         command, so temporary files for functions like MyClass::operator()
13629         are removed correctly without errors.
13630
13631 2010-11-09  Bruno Haible  <bruno@clisp.org>
13632
13633         * doc/posix-functions/strerror.texi: List more failing platforms.
13634
13635         * doc/posix-functions/strerror.texi: Add a comment.
13636
13637 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
13638
13639         fdopendir: fix bug on MacOS X when low on file descriptors
13640
13641         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
13642         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
13643         All callers changed.
13644         (fdopendir): Invoke save_cwd at the top level, not after using
13645         multiple dup() calls to use up file descriptors.  Then retry
13646         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
13647         less than the maximum number of open file descriptors, because
13648         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
13649         on Mac OS X 10.6.4 for tar 1.24
13650         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
13651         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
13652         and for tar 1.25
13653         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
13654
13655 2010-11-07  Bruno Haible  <bruno@clisp.org>
13656
13657         vasnprintf: Support I flag on glibc systems.
13658         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
13659         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
13660         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
13661         snprintf function.
13662         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
13663         glibc systems.
13664         * tests/test-vasnprintf-posix3.c: New file.
13665         * modules/vasnprintf-posix-tests (Files): Add it.
13666         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
13667
13668 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
13669
13670         [html] Fix copy/paste bug: Use unique name for compiler warnings.
13671         * MODULES.html.sh: For compiler warnings, use name
13672         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
13673
13674 2010-11-05  Eric Blake  <eblake@redhat.com>
13675
13676         ceil, floor: avoid spurious failure with icc
13677         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
13678         [denormals-as-zero] when optimizing without -mieee-fp option.
13679         * tests/test-floorf2.c (floorf_reference): Likewise.
13680         * tests/test-ceilf1.c (dummy): New function.
13681         (main): Use it to outsmart icc's optimization.
13682         * tests/test-floorf1.c (dummy, main): Likewise.
13683
13684         tests: require working signbit
13685         * modules/ceilf-tests (Depends-on): Add signbit.
13686         * modules/ceill-tests (Depends-on): Likewise.
13687         * modules/floorf-tests (Depends-on): Likewise.
13688         * modules/floorl-tests (Depends-on): Likewise.
13689         * modules/round-tests (Depends-on): Likewise.
13690         * modules/roundf-tests (Depends-on): Likewise.
13691         * modules/roundl-tests (Depends-on): Likewise.
13692         * modules/trunc-tests (Depends-on): Likewise.
13693         * modules/truncf-tests (Depends-on): Likewise.
13694         * modules/truncl-tests (Depends-on): Likewise.
13695
13696         strtod: work around icc bug
13697         * lib/strtod.c (minus_zero): Define to working value.
13698         (strtod): Use it to avoid icc bug.
13699
13700         copysign: enhance tests
13701         * modules/copysign-tests (Files): Add minus-zero.h.
13702         * tests/test-copysign.c (main): Also test zeros.
13703
13704 2010-11-04  Eric Blake  <eblake@redhat.com>
13705
13706         ceil, floor, round, trunc: enhance tests of -0
13707         * tests/test-ceilf1.c (main): Ensure correct sign of result.
13708         * tests/test-ceill.c (main): Likewise.
13709         * tests/test-floorf1.c (main): Likewise.
13710         * tests/test-floorl.c (main): Likewise.
13711         * tests/test-round1.c (main): Likewise.
13712         * tests/test-roundf1.c (main): Likewise.
13713         * tests/test-roundl.c (main): Likewise.
13714         * tests/test-trunc1.c (main): Likewise.
13715         * tests/test-truncf1.c (main): Likewise.
13716         * tests/test-truncl.c (main): Likewise.
13717
13718 2010-11-04  Eric Blake  <eblake@redhat.com>
13719
13720         frexp, tests: work around ICC bug with -zero
13721         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
13722         works with more compilers.
13723         * tests/minus-zero.h: New file.
13724         * modules/ceilf-tests (Files): Include it.
13725         * modules/ceill-tests (Files): Likewise.
13726         * modules/floorf-tests (Files): Likewise.
13727         * modules/floorl-tests (Files): Likewise.
13728         * modules/frexp-nolibm-tests (Files): Likewise.
13729         * modules/frexp-tests (Files): Likewise.
13730         * modules/frexpl-nolibm-tests (Files): Likewise.
13731         * modules/frexpl-tests (Files): Likewise.
13732         * modules/isnan-tests (Files): Likewise.
13733         * modules/isnand-nolibm-tests (Files): Likewise.
13734         * modules/isnand-tests (Files): Likewise.
13735         * modules/isnanf-nolibm-tests (Files): Likewise.
13736         * modules/isnanf-tests (Files): Likewise.
13737         * modules/isnanl-nolibm-tests (Files): Likewise.
13738         * modules/isnanl-tests (Files): Likewise.
13739         * modules/round-tests (Files): Likewise.
13740         * modules/roundf-tests (Files): Likewise.
13741         * modules/roundl-tests (Files): Likewise.
13742         * modules/ldexpl-tests (Files): Likewise.
13743         * modules/signbit-tests (Files): Likewise.
13744         * modules/snprintf-posix-tests (Files): Likewise.
13745         * modules/sprintf-posix-tests (Files): Likewise.
13746         * modules/strtod-tests (Files): Likewise.
13747         * modules/trunc-tests (Files): Likewise.
13748         * modules/truncf-tests (Files): Likewise.
13749         * modules/truncl-tests (Files): Likewise.
13750         * modules/vsnprintf-posix-tests (Files): Likewise.
13751         * modules/vsprintf-posix-tests (Files): Likewise.
13752         * modules/vasnprintf-posix-tests (Files): Likewise.
13753         * modules/vasprintf-posix-tests (Files): Likewise.
13754         * tests/test-ceilf1.c (main): Use it.
13755         * tests/test-ceill.c (main): Likewise.
13756         * tests/test-floorf1.c (main): Likewise.
13757         * tests/test-floorl.c (main): Likewise.
13758         * tests/test-frexp.c (main): Likewise.
13759         * tests/test-frexpl.c (main): Likewise.
13760         * tests/test-isnan.c (main): Likewise.
13761         * tests/test-isnand.h (main): Likewise.
13762         * tests/test-isnanf.h (main): Likewise.
13763         * tests/test-isnanl.h (main): Likewise.
13764         * tests/test-ldexpl.c (main): Likewise.
13765         * tests/test-round.c (main): Likewise.
13766         * tests/test-roundf.c (main): Likewise.
13767         * tests/test-roundl.c (main): Likewise.
13768         * tests/test-signbit.c (test_signbitf, test_signbitd)
13769         (test_signbitl): Likewise.
13770         * tests/test-snprintf-posix.h (test_function): Likewise.
13771         * tests/test-sprintf-posix.h (test_function): Likewise.
13772         * tests/test-strtod.c (main): Likewise.
13773         * tests/test-trunc1.c (main): Likewise.
13774         * tests/test-truncf1.c (main): Likewise.
13775         * tests/test-truncl.c (main): Likewise.
13776
13777         isnanl: work around icc bug
13778         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
13779
13780 2010-11-03  Eric Blake  <eblake@redhat.com>
13781
13782         tests: fix compiler warnings
13783         * tests/test-getopt.h (test_getopt): Fix condition.
13784         * tests/test-getopt_long.h (test_getopt_long): Likewise.
13785         * tests/test-pipe2.c (main): Likewise.
13786         * tests/test-quotearg-simple.c (main): Avoid icc warning.
13787
13788         utimens: fix broken m4 test
13789         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
13790
13791 2010-10-28  Bruno Haible  <bruno@clisp.org>
13792
13793         posix_spawn*, getdtablesize: Relax license.
13794         * modules/posix_spawn (License): Change to LGPLv2+.
13795         * modules/posix_spawnp (License): Likewise.
13796         * modules/posix_spawn-internal (License): Likewise.
13797         * modules/posix_spawnattr_init (License): Likewise.
13798         * modules/posix_spawnattr_getflags (License): Likewise.
13799         * modules/posix_spawnattr_setflags (License): Likewise.
13800         * modules/posix_spawnattr_getpgroup (License): Likewise.
13801         * modules/posix_spawnattr_setpgroup (License): Likewise.
13802         * modules/posix_spawnattr_getschedparam (License): Likewise.
13803         * modules/posix_spawnattr_setschedparam (License): Likewise.
13804         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
13805         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
13806         * modules/posix_spawnattr_getsigdefault (License): Likewise.
13807         * modules/posix_spawnattr_setsigdefault (License): Likewise.
13808         * modules/posix_spawnattr_getsigmask (License): Likewise.
13809         * modules/posix_spawnattr_setsigmask (License): Likewise.
13810         * modules/posix_spawnattr_destroy (License): Likewise.
13811         * modules/posix_spawn_file_actions_init (License): Likewise.
13812         * modules/posix_spawn_file_actions_addclose (License): Likewise.
13813         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
13814         * modules/posix_spawn_file_actions_addopen (License): Likewise.
13815         * modules/posix_spawn_file_actions_destroy (License): Likewise.
13816         * modules/getdtablesize (License): Likewise.
13817         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
13818
13819 2010-10-26  Bruno Haible  <bruno@clisp.org>
13820
13821         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
13822         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
13823         Cygwin and mingw.
13824         Suggested by Eric Blake.
13825
13826 2010-10-26  Bruno Haible  <bruno@clisp.org>
13827
13828         stdio: Work around compilation error due to renameat() on Solaris 10.
13829         * lib/stdio.in.h: Include <unistd.h> on Solaris.
13830         * lib/renameat.c: Don't include <unistd.h> here.
13831         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
13832         Reported by Paul Eggert and Eric Blake.
13833
13834 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
13835
13836         renameat: port to Solaris 10, which declares renameat in unistd.h
13837
13838         * lib/renameat.c: Include unistd.h before stdio.h, because
13839         Solaris 10 declares renameat in unistd.h.  Problem encountered
13840         when building GNU tar 1.24 on Solaris 10.
13841
13842 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
13843
13844         fdopendir: fix C89 compilation
13845         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
13846         compilers.
13847
13848 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
13849
13850         inttostr: simplify by removing unnecessary redundancy
13851         * lib/anytostr.c: Don't include verify.h.
13852         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
13853         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
13854         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
13855         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
13856         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
13857         Likewise.
13858         * modules/inttostr (Depends-on): Remove 'verify'.
13859
13860 2010-10-23  Bruno Haible  <bruno@clisp.org>
13861
13862         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
13863         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
13864         Reported by Eric Blake.
13865
13866 2010-10-23  Bruno Haible  <bruno@clisp.org>
13867
13868         Tests: Fix LOCALE_JA on MirBSD 10.
13869         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
13870         to an UTF-8 locale.
13871         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
13872         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
13873         Reported by Eric Blake.
13874
13875 2010-10-21  Bruno Haible  <bruno@clisp.org>
13876
13877         nl_langinfo test: Avoid test failure on NetBSD 5.
13878         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
13879         Reported by Eric Blake.
13880
13881 2010-10-21  Eric Blake  <eblake@redhat.com>
13882
13883         c-stack: work around libsigsegv 2.8 bug
13884         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
13885         overflow on at least PowerPC64.
13886
13887 2010-10-17  Bruno Haible  <bruno@clisp.org>
13888
13889         userspec: Drop redundant file.
13890         * modules/userspec (Files): Remove lib/inttostr.h.
13891
13892 2010-10-17  Bruno Haible  <bruno@clisp.org>
13893
13894         nl_langinfo tests: Silence some warnings.
13895         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
13896         Reported by Jim Meyering.
13897
13898 2010-10-17  Bruno Haible  <bruno@clisp.org>
13899
13900         Make use of GCC's attribute __alloc_size__.
13901         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
13902         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
13903         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
13904         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
13905         __alloc_size__.
13906         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
13907         Suggested by Jim Meyering.
13908
13909 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
13910
13911         bootstrap: anchor .gitignore entries.
13912         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
13913         with...
13914         (insert_vc_ignore): ... this new function, which prepends `/' to
13915         all .gitignore entries before passing them to
13916         insert_sorted_if_absent.
13917
13918 2010-10-16  Bruno Haible  <bruno@clisp.org>
13919
13920         nextafter: Fix configure check.
13921         * modules/nextafter (configure.ac): Correct expected prototype.
13922
13923 2010-10-16  Bruno Haible  <bruno@clisp.org>
13924
13925         termios: Update documentation.
13926         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
13927
13928 2010-10-16  Bruno Haible  <bruno@clisp.org>
13929
13930         tests: Make them compile with TinyCC.
13931         * tests/test-strstr.c (main): Remove parentheses around array
13932         initializer.
13933
13934 2010-10-15  Eric Blake  <eblake@redhat.com>
13935
13936         ignore-value: make header idempotent
13937         * lib/ignore-value.h: Add double-inclusion guards.
13938         Reported by Stefan Berger.
13939
13940 2010-10-15  Jim Meyering  <meyering@redhat.com>
13941
13942         GNUmakefile: handle "stable" target, not "major"
13943         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
13944         lists in maint.mk and announce-gen.  Without this, "make stable"
13945         would fail to ensure that $(VERSION) is up to date.
13946
13947 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
13948
13949         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
13950         & co.
13951
13952 2010-10-14  Bruno Haible  <bruno@clisp.org>
13953
13954         vasnprintf: Don't set errno to 0.
13955         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
13956         block that sets it to 0.
13957         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
13958
13959 2010-10-14  Bruno Haible  <bruno@clisp.org>
13960
13961         socketlib: Fix.
13962         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
13963         gl_PREREQ_SYS_H_WINSOCK2.
13964         Reported by Ian Beckwith <ianb@erislabs.net>.
13965
13966 2010-10-13  Jim Meyering  <meyering@redhat.com>
13967
13968         test-select-stdin.c: avoid warn_unused_result warnings
13969         * tests/test-select-stdin.c: Include "macros.h".
13970         ASSERT that read and fflush succeed.
13971
13972 2010-10-13  Jim Meyering  <meyering@redhat.com>
13973
13974         git-version-gen: do require git-VC'd files in cwd
13975         * build-aux/git-version-gen: Reject a git version string
13976         if there are no commits associated with the current directory.
13977         This avoids an unlikely false-positive (unrelated dir whose parent
13978         repository also contains a tag matching v*), as pointed out
13979         by Giuseppe Scrivano in
13980         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
13981
13982 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
13983
13984         argv-iter: omit nonconforming declaration
13985         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
13986         enum arg_iter_err declaration, which doesn't conform to C99.
13987         Solaris 10 cc warns about this.
13988
13989 2010-10-13  Eric Blake  <eblake@redhat.com>
13990
13991         termios: fix compilation on mingw
13992         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
13993         (gl_TERMIOS_H): Adjust it on mingw.
13994         * modules/termios (Makefile.am): Substitute new key.
13995         * lib/termios.in.h (includes): Make include_next conditional.
13996         * doc/posix-headers/termios.texi (termios.h): Update
13997         documentation.
13998         Reported by Daniel P. Berrange.
13999
14000 2010-10-13  Jim Meyering  <meyering@redhat.com>
14001
14002         git-version-gen: don't require that .git/ be in the current dir
14003         * build-aux/git-version-gen: Adjust this script so that it works
14004         when run from any working directory beneath the top-level .git/-
14005         containing directory.  Inspired by a patch from Giuseppe Scrivano,
14006         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
14007
14008         test-select: avoid warn_unused_result warnings
14009         * tests/test-select.c: Include "macros.h".
14010         ASSERT that each call to read, write, and pipe succeeds.
14011         While not technically required, also check each "close".
14012         * modules/select-tests (Files): Add tests/macros.h.
14013
14014         test-symlinkat: remove declaration of unused local
14015         * tests/test-symlinkat.c (main): Remove unused local, "buf".
14016
14017         test-inttostr: avoid shadowing warnings
14018         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
14019         and use malloc rather than the stack for the same reason as
14020         mentioned in the comment justifying the other allocation.
14021
14022 2010-10-11  Bruno Haible  <bruno@clisp.org>
14023
14024         stdlib: Allow multiple gnulib generated replacements to coexist.
14025         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
14026         Reported by Sam Steingold <sds@gnu.org>.
14027
14028 2010-10-11  Jim Meyering  <meyering@redhat.com>
14029
14030         fix a documentation typo
14031         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
14032
14033 2010-10-11  Eric Blake  <eblake@redhat.com>
14034
14035         futimens: work around Solaris 11 bug
14036         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
14037         * tests/test-futimens.h (test_futimens): Enhance, rather than
14038         weaken test.
14039         * doc/posix-functions/futimens.texi (futimens): Document the bug.
14040
14041 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
14042
14043         Indentation.
14044         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
14045         higher-level operators more to the left.
14046
14047 2010-10-11  Jim Meyering  <meyering@redhat.com>
14048
14049         test-futimens: avoid unwarranted test failure on Solaris 5.11
14050         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
14051         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
14052         because it tries to dereference the NULL name argument.
14053
14054 2010-10-11  Bruno Haible  <bruno@clisp.org>
14055
14056         Indentation.
14057         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
14058         indentation.
14059
14060 2010-10-11  Jim Meyering  <meyering@redhat.com>
14061
14062         spawn.in.h: make indentation consistent with parentheses
14063         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
14064         Make indentation consistent with parentheses.
14065
14066 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
14067
14068         Fix mismatched parens in previous commit
14069         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
14070         parens.
14071
14072 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
14073
14074         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
14075
14076         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
14077         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
14078         * lib/malloca.c: Include "verify.h".
14079         (verify1): Remove, replacing with a verify call.
14080         * lib/relocwrapper.c (verify1): Likewise.
14081         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
14082         Likewise.
14083         * modules/malloca (Depends-on): Add 'verify'.
14084         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
14085         * modules/vasnprintf (Depends-on): Add 'verify'.
14086         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
14087         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
14088         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
14089         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
14090         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
14091         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
14092         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
14093
14094         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
14095
14096         Formerly the style was sometimes 2*X - 1, because the C standard
14097         was wrongly thought to disallow ?: in integral constant expressions.
14098         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
14099         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
14100         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
14101         * lib/stdint.in.h (_verify_intmax_size): Likewise.
14102         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
14103         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
14104         verify that time_t cannot be floating.
14105
14106 2010-10-08  Eric Blake  <eblake@redhat.com>
14107
14108         time: enforce recent POSIX ruling that time_t is integral
14109         * lib/time.in.h (__time_t_must_be_integral): Detect any
14110         problematic systems, allowing the rest of gnulib to assume POSIX.
14111
14112 2010-10-08  Jim Meyering  <meyering@redhat.com>
14113
14114         fdopendir: fix a bug on systems lacking openat and /proc support
14115         OpenBSD 4.7 is one such system.  The most noticeable effect was
14116         failure of any application making nontrivial use of fts: rm, du,
14117         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
14118           ./rm: traversal failed: `a': Bad file descriptor
14119         Debugging that, you see that even though FD 6 was closed just
14120         prior to the opendir call in fd_clone_opendir, its resulting
14121         dir->dd_fd was 8, rather than the expected value of 6:
14122
14123         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
14124         93                close (fd);
14125         (gdb) n
14126         94                dir = fd_clone_opendir (dupfd);
14127         (gdb) n
14128         95                saved_errno = errno;
14129         (gdb) p dir->dd_fd
14130         $11 = 8
14131
14132         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
14133         The problem is that on OpenBSD, fd_clone_opendir has to resort
14134         to using the old-style save/restore CWD mechanism, due to its
14135         lack of openat/proc support, and *that* would steal the FD (6)
14136         that opendir was supposed to use.
14137
14138         The fix is to squirrel away the desired FD so that save_cwd uses a
14139         different one, and then free the dest FD right before calling opendir.
14140         That guarantees opendir will use the required file descriptor.
14141
14142         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
14143
14144 2010-10-08  Bruno Haible  <bruno@clisp.org>
14145
14146         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
14147         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
14148
14149 2010-10-08  Bruno Haible  <bruno@clisp.org>
14150
14151         nanosleep: Make replacement POSIX compliant.
14152         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
14153         is out of range.
14154         Reported by Jim Meyering.
14155
14156 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
14157
14158         bootstrap: add hook for altering gnulib.mk, for Bison
14159         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
14160         the Bison bootstrapping process can rewrite file names and variables
14161         in this file before later parts of 'bootstrap' use the file.
14162         Bison wants to include lib/gnulib.mk from the top-level makefile,
14163         so it needs the file names in this file to be relative to the top
14164         level, not relative to lib; plus it needs variable names to be
14165         rewritten.
14166         (slurp): Use the new function.
14167
14168         bootstrap: reformat for readability
14169         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
14170
14171 2010-10-08  Eric Blake  <eblake@redhat.com>
14172
14173         docs: update cygwin progress
14174         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
14175         1.7.7.
14176         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
14177         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
14178         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
14179         * doc/posix-functions/carg.texi (carg): Likewise.
14180         * doc/posix-functions/cargf.texi (cargf): Likewise.
14181         * doc/posix-functions/casin.texi (casin): Likewise.
14182         * doc/posix-functions/casinf.texi (casinf): Likewise.
14183         * doc/posix-functions/casinh.texi (casinh): Likewise.
14184         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
14185         * doc/posix-functions/catan.texi (catan): Likewise.
14186         * doc/posix-functions/catanf.texi (catanf): Likewise.
14187         * doc/posix-functions/catanh.texi (catanh): Likewise.
14188         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
14189         * doc/posix-functions/ccos.texi (ccos): Likewise.
14190         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
14191         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
14192         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
14193         * doc/posix-functions/cexp.texi (cexp): Likewise.
14194         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
14195         * doc/posix-functions/cimag.texi (cimag): Likewise.
14196         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
14197         * doc/posix-functions/clog.texi (clog): Likewise.
14198         * doc/posix-functions/clogf.texi (clogf): Likewise.
14199         * doc/posix-functions/conj.texi (conj): Likewise.
14200         * doc/posix-functions/conjf.texi (conjf): Likewise.
14201         * doc/posix-functions/cpow.texi (cpow): Likewise.
14202         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
14203         * doc/posix-functions/cproj.texi (cproj): Likewise.
14204         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
14205         * doc/posix-functions/creal.texi (creal): Likewise.
14206         * doc/posix-functions/crealf.texi (crealf): Likewise.
14207         * doc/posix-functions/csin.texi (csin): Likewise.
14208         * doc/posix-functions/csinf.texi (csinf): Likewise.
14209         * doc/posix-functions/csinh.texi (csinh): Likewise.
14210         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
14211         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
14212         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
14213         * doc/posix-functions/ctan.texi (ctan): Likewise.
14214         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
14215         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
14216         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
14217         * doc/posix-headers/complex.texi (complex.h): Likewise.
14218
14219 2010-10-07  Jim Meyering  <meyering@redhat.com>
14220
14221         parse-datetime: avoid compilation failure on OpenBSD 4.7
14222         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
14223         This works around a compilation failure on OpenBSD 4.7:
14224         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
14225
14226 2010-10-07  Eric Blake  <eblake@redhat.com>
14227
14228         docs: update cygwin progress
14229         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
14230         1.7.6.
14231         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
14232         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
14233         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
14234         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
14235         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
14236         Likewise.
14237         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
14238         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
14239         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
14240         Likewise.
14241         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
14242         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
14243         Likewise.
14244         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
14245         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
14246         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
14247         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
14248         Likewise.
14249         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
14250         Likewise.
14251         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
14252
14253         docs: update parse-datetime history
14254         * doc/parse-datetime.texi (Authors of parse_datetime): Better
14255         documentation of this function's history and alternatives.
14256
14257         cygwin: use more robust version check
14258         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
14259         exclude an eventual cygwin 1.9.1.
14260         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
14261         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
14262         (gl_FUNC_STRCASESTR): Likewise.
14263         Reported by Bruno Haible.
14264
14265 2010-10-06  Bruno Haible  <bruno@clisp.org>
14266
14267         string, sys_select: Avoid #including large headers unless necessary.
14268         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
14269         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
14270         OSF/1, BeOS, Haiku.
14271         Reported by Jim Meyering.
14272
14273 2010-10-05  Eric Blake  <eblake@redhat.com>
14274
14275         memmem, strstr, strcasestr: fix bug with long periodic needle
14276         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
14277         periodic needle having false positive.
14278         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
14279         and cygwin 1.7.7.
14280         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
14281         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
14282         (gl_FUNC_STRCASESTR): Likewise.
14283         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
14284         * tests/test-memmem.c (main): Expose the bug.
14285         * tests/test-strcasestr.c (main): Likewise.
14286         * tests/test-strstr.c (main): Likewise.
14287         * tests/test-c-strcasestr.c (main): Likewise.
14288         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
14289         * doc/posix-functions/strstr.texi (strstr): Likewise.
14290         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
14291         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
14292
14293 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
14294
14295         parse-datetime: do some more renaming
14296         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
14297         parse_datetime, not get_date.  Mention the renaming.
14298         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
14299         in comments.
14300         * m4/bison.m4: Likewise.
14301
14302 2010-10-05  Eric Blake  <eblake@redhat.com>
14303
14304         parse-datetime: better name than get_date
14305         * NEWS: Reword the deprecation notice.
14306         * modules/get_date: Rename to modules/parse-datetime.
14307         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
14308         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
14309         * lib/get_date.y: Rename to lib/parse-datetime.y.
14310         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
14311         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
14312         * doc/getdate.texi: Provide fallback wrapper.
14313         * lib/getdate.h: Move guts, and wrap...
14314         * lib/parse-datetime.h: ...new file.
14315         * lib/parse-datetime.y (get_date): Rename...
14316         (parse_datetime): ...to this.
14317         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
14318         (gl_PARSE_DATETIME): ...to this.
14319         * doc/posix-functions/getdate.texi (get_date): Provide fallback
14320         documentation.
14321         * modules/getdate (Files): Provide fallback docs and header.
14322         (Notice, Depends-on): Update references.
14323         * tests/test-parse-datetime.c: Likewise.
14324         * DEPENDENCIES: Likewise.
14325         * MODULES.html.sh (Date and time <time.h>): Likewise.
14326         * doc/parse-datetime.texi (Date input formats)
14327         (Authors of parse_datetime): Likewise.
14328         * modules/parse-datetime (Files, configure.ac, Makefile.am)
14329         (Include): Likewise.
14330         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
14331         * gnulib-tool: Likewise.
14332         * m4/bison.m4 (gl_BISON): Likewise.
14333         Suggested by Bruno Haible.
14334
14335 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
14336
14337         more ports to Solaris tr, which needs [] around ranges
14338         * gnulib-tool: Solaris tr needs [] around ranges.
14339         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
14340         * tests/test-pipe-filter-gi1.c (main): Likewise.
14341         * tests/test-pipe-filter-ii1.c (main): Likewise.
14342
14343 2010-10-05  Eric Blake  <eblake@redhat.com>
14344
14345         bootstrap: fix Solaris regression
14346         * build-aux/bootstrap (check_versions): Solaris tr still needs []
14347         around ranges.
14348         Reported by Pádraig Brady.
14349
14350         bootstrap: work with pkg-config
14351         * build-aux/bootstrap (check_versions): Also transliterate - in
14352         prerequisite name.
14353         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
14354         prerequisites that were already found, to avoid confusion.
14355         Reported by Justin Clift.
14356
14357         faccessat: remove unused wrappers
14358         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
14359         presence of these wrappers dragged in -lgen on Solaris.
14360         Reported by Clemens Brogi; fix suggested by Paul Eggert.
14361
14362 2010-10-05  Jim Meyering  <meyering@redhat.com>
14363
14364         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
14365         * Makefile (sc_pragma_columns): New syntax-check rule.
14366
14367 2010-10-04  Bruno Haible  <bruno@clisp.org>
14368
14369         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
14370         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
14371         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
14372         Reported by Bruce Korb and Eric Blake.
14373
14374 2010-10-04  Bruno Haible  <bruno@clisp.org>
14375
14376         threadlib: Make option --with-libpth-prefix work.
14377         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
14378         use $LIBPTH, not just -lpth.
14379
14380 2010-10-04  Bruno Haible  <bruno@clisp.org>
14381
14382         Avoid line length limitation from HP NonStop system header files.
14383         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
14384         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
14385         * lib/ctype.in.h: Likewise.
14386         * lib/dirent.in.h: Likewise.
14387         * lib/errno.in.h: Likewise.
14388         * lib/fcntl.in.h: Likewise.
14389         * lib/float.in.h: Likewise.
14390         * lib/getopt.in.h: Likewise.
14391         * lib/iconv.in.h: Likewise.
14392         * lib/inttypes.in.h: Likewise.
14393         * lib/langinfo.in.h: Likewise.
14394         * lib/locale.in.h: Likewise.
14395         * lib/math.in.h: Likewise.
14396         * lib/netdb.in.h: Likewise.
14397         * lib/netinet_in.in.h: Likewise.
14398         * lib/poll.in.h: Likewise.
14399         * lib/pthread.in.h: Likewise.
14400         * lib/pty.in.h: Likewise.
14401         * lib/sched.in.h: Likewise.
14402         * lib/se-selinux.in.h: Likewise.
14403         * lib/search.in.h: Likewise.
14404         * lib/signal.in.h: Likewise.
14405         * lib/spawn.in.h: Likewise.
14406         * lib/stdarg.in.h: Likewise.
14407         * lib/stddef.in.h: Likewise.
14408         * lib/stdint.in.h: Likewise.
14409         * lib/stdio.in.h: Likewise.
14410         * lib/stdlib.in.h: Likewise.
14411         * lib/string.in.h: Likewise.
14412         * lib/strings.in.h: Likewise.
14413         * lib/sys_file.in.h: Likewise.
14414         * lib/sys_ioctl.in.h: Likewise.
14415         * lib/sys_select.in.h: Likewise.
14416         * lib/sys_socket.in.h: Likewise.
14417         * lib/sys_stat.in.h: Likewise.
14418         * lib/sys_time.in.h: Likewise.
14419         * lib/sys_times.in.h: Likewise.
14420         * lib/sys_utsname.in.h: Likewise.
14421         * lib/sys_wait.in.h: Likewise.
14422         * lib/sysexits.in.h: Likewise.
14423         * lib/termios.in.h: Likewise.
14424         * lib/time.in.h: Likewise.
14425         * lib/unistd.in.h: Likewise.
14426         * lib/wchar.in.h: Likewise.
14427         * lib/wctype.in.h: Likewise.
14428         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
14429         * modules/ctype (Makefile.am): Likewise.
14430         * modules/dirent (Makefile.am): Likewise.
14431         * modules/errno (Makefile.am): Likewise.
14432         * modules/fcntl-h (Makefile.am): Likewise.
14433         * modules/float (Makefile.am): Likewise.
14434         * modules/getopt-posix (Makefile.am): Likewise.
14435         * modules/iconv-h (Makefile.am): Likewise.
14436         * modules/inttypes (Makefile.am): Likewise.
14437         * modules/langinfo (Makefile.am): Likewise.
14438         * modules/locale (Makefile.am): Likewise.
14439         * modules/math (Makefile.am): Likewise.
14440         * modules/netdb (Makefile.am): Likewise.
14441         * modules/netinet_in (Makefile.am): Likewise.
14442         * modules/poll-h (Makefile.am): Likewise.
14443         * modules/pthread (Makefile.am): Likewise.
14444         * modules/pty (Makefile.am): Likewise.
14445         * modules/sched (Makefile.am): Likewise.
14446         * modules/search (Makefile.am): Likewise.
14447         * modules/selinux-h (Makefile.am): Likewise.
14448         * modules/signal (Makefile.am): Likewise.
14449         * modules/spawn (Makefile.am): Likewise.
14450         * modules/stdarg (Makefile.am): Likewise.
14451         * modules/stddef (Makefile.am): Likewise.
14452         * modules/stdint (Makefile.am): Likewise.
14453         * modules/stdio (Makefile.am): Likewise.
14454         * modules/stdlib (Makefile.am): Likewise.
14455         * modules/string (Makefile.am): Likewise.
14456         * modules/strings (Makefile.am): Likewise.
14457         * modules/sys_file (Makefile.am): Likewise.
14458         * modules/sys_ioctl (Makefile.am): Likewise.
14459         * modules/sys_select (Makefile.am): Likewise.
14460         * modules/sys_socket (Makefile.am): Likewise.
14461         * modules/sys_stat (Makefile.am): Likewise.
14462         * modules/sys_time (Makefile.am): Likewise.
14463         * modules/sys_times (Makefile.am): Likewise.
14464         * modules/sys_utsname (Makefile.am): Likewise.
14465         * modules/sys_wait (Makefile.am): Likewise.
14466         * modules/sysexits (Makefile.am): Likewise.
14467         * modules/termios (Makefile.am): Likewise.
14468         * modules/time (Makefile.am): Likewise.
14469         * modules/unistd (Makefile.am): Likewise.
14470         * modules/wchar (Makefile.am): Likewise.
14471         * modules/wctype (Makefile.am): Likewise.
14472
14473 2010-10-04  Bruno Haible  <bruno@clisp.org>
14474
14475         read-file tests: Avoid a test failure on NonStop Kernel.
14476         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
14477         a regular file.
14478         Reported by Joachim Schmitz <schmitz@hp.com>.
14479
14480 2010-10-03  Bruno Haible  <bruno@clisp.org>
14481
14482         gnulib-tool: Fixes for --create-testdir with --libtool.
14483         * gnulib-tool (func_get_automake_snippet): Don't augment
14484         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
14485         an executable.
14486         (func_create_testdir): Handle module 'alloca' like func_import.
14487         Reported by Bruce Korb <bruce.korb@gmail.com>.
14488
14489 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
14490
14491         Avoid some lines longer than 80 characters.
14492         * lib/stdint.in.h: Break long comment lines.
14493         * lib/math.in.h: Likewise.
14494         (_GL_NUM_UINT_WORDS): New macro, for readability.
14495         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
14496         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
14497         * lib/stdlib.in.h: Likewise.
14498         * lib/spawn.in.h: Likewise.
14499         * lib/sys_socket.in.h: Update an URL.
14500         * lib/sys_stat.in.h: Break long line.
14501
14502 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
14503
14504         Improve pmccabe2html.
14505         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
14506         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
14507         when the sources change. Remove the line in the HTML about "Used
14508         ranges" (which implied that there might be other unused ranges),
14509         rename "Resume" to "Summary" (easier to understand for more users).
14510         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
14511         styles, and some unnecessary blank lines.
14512
14513 2010-10-03  Bruno Haible  <bruno@clisp.org>
14514             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
14515
14516         acl: Add support for ACLs on NonStop Kernel.
14517         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
14518         Check whether the function aclsort() exists.
14519         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
14520         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
14521         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
14522         (acl_nontrivial [HAVE_ACLSORT]: New function.
14523         (file_has_acl): Implement for NonStop Kernel.
14524         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
14525         (qset_acl): Implement for NonStop Kernel.
14526         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
14527         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
14528         (main): Implement for NonStop Kernel.
14529         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
14530         Kernel. Handle this flavor.
14531         * tests/test-set-mode-acl.sh: Likewise.
14532         * tests/test-copy-acl.sh: Likewise.
14533         * tests/test-copy-file.sh: Likewise.
14534
14535 2010-10-03  Bruno Haible  <bruno@clisp.org>
14536
14537         Info about ACLs on NonStop Kernel.
14538         * doc/acl-resources.txt: Add info about NonStop Kernel.
14539         References by Joachim Schmitz <schmitz@hp.com>.
14540
14541 2010-10-02  Bruno Haible  <bruno@clisp.org>
14542
14543         Define missing EDQUOT on NonStop Kernel.
14544         * lib/errno.in.h (EDQUOT): Assign a value if missing.
14545         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
14546         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
14547         missing.
14548         * doc/posix-headers/errno.texi: Mention the NSK bug.
14549         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
14550         Reported by Joachim Schmitz <schmitz@hp.com>.
14551
14552 2010-10-02  Bruno Haible  <bruno@clisp.org>
14553
14554         Update doc for POSIX:2008.
14555         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
14556         Update URL of POSIX specification.
14557
14558 2010-10-02  Bruno Haible  <bruno@clisp.org>
14559
14560         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
14561         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
14562         from gnulib, not from Automake.
14563
14564 2010-10-02  Bruno Haible  <bruno@clisp.org>
14565
14566         New module 'system-posix'.
14567         * modules/system-posix: New file.
14568         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
14569         module is present.
14570         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
14571         GNULIB_SYSTEM_POSIX.
14572         * modules/stdlib (Depends-on): Remove sys_wait.
14573         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
14574         * doc/posix-functions/system.texi: Mention the new module.
14575         * doc/posix-headers/stdlib.texi: Likewise.
14576         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
14577         define test_sys_wait_macros to a no-op.
14578         Reported by Sam Steingold <sds@gnu.org>.
14579
14580 2010-09-30  Bruno Haible  <bruno@clisp.org>
14581
14582         More renaming from 'getdate' to 'get_date'.
14583         * doc/get_date.texi: Renamed from doc/getdate.texi.
14584         * modules/get_date (Files): Update.
14585         * MODULES.html.sh (Date and time <time.h>): Update.
14586         * DEPENDENCIES: Update.
14587         * gnulib-tool: Update comment.
14588         * m4/bison.m4 (gl_BISON): Likewise.
14589         * m4/get_date.m4 (gl_GET_DATE): Likewise.
14590
14591 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
14592
14593         bootstrap: support ACLOCAL_FLAGS during aclocal
14594         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
14595         can add additional -I dir for third-party .m4 files.
14596
14597 2010-09-30  Eric Blake  <eblake@redhat.com>
14598
14599         bootstrap: use glibtoolize on MacOS
14600         * build-aux/bootstrap (check_versions): Convert libtool into
14601         libtoolize.
14602         (tool search): Move libtool check earlier, and look for
14603         glibtoolize for MacOS.
14604         (gnulib_tool_options): Auto-add --libtool when appropriate.
14605         Reported by Justin Clift.
14606
14607         poll: fix typo that broke test on MacOS
14608         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
14609         Reported by Justin Clift.
14610
14611         getdate: rename to get_date
14612         Note: getdate.h is not renamed, to minimize client impact.
14613         * modules/getdate: Mark obsolete.  Move old contents...
14614         * modules/get_date: ...to new module name.
14615         * modules/getdate-tests: Move...
14616         * modules/get_date-tests: ...here.
14617         * m4/getdate.m4: Move...
14618         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
14619         * lib/getdate.y: Move...
14620         * lib/get_date.y: ...here.
14621         * tests/test-getdate.c: Move...
14622         * tests/test-get_date.c: ...here.
14623         * doc/posix-functions/getdate.texi (getdate): Update name.
14624         * NEWS: Mention the change.
14625
14626 2010-09-29  Bruno Haible  <bruno@clisp.org>
14627
14628         Separate the module 'waitpid' from the module 'sys_wait'.
14629         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
14630         present.
14631         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
14632         gl_MODULE_INDICATOR_FOR_TESTS.
14633         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
14634         * modules/sys_wait (Depends-on): Remove waitpid.
14635         (Makefile.am): Substitute GNULIB_WAITPID.
14636         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
14637         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
14638         signature only if the 'waitpid' module is present.
14639         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
14640         * NEWS: Mention the change.
14641         * modules/grantpt (Depends-on): Add waitpid.
14642         * modules/wait-process (Depends-on): Likewise.
14643
14644 2010-09-29  Bruno Haible  <bruno@clisp.org>
14645
14646         More tests for module 'sys_wait'.
14647         * modules/sys_wait-c++-tests: New file.
14648         * tests/test-sys_wait-c++.cc: New file.
14649         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
14650         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
14651
14652 2010-09-29  Bruno Haible  <bruno@clisp.org>
14653
14654         New module 'waitpid'.
14655         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
14656         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
14657         Don't include <process.h>.
14658         (waitpid): Declare only, using modern idiom.
14659         * m4/waitpid.m4: New file.
14660         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
14661         * modules/waitpid: New file.
14662         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
14663         (Makefile.am): Update.
14664         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
14665
14666 2010-09-28  Bruno Haible  <bruno@clisp.org>
14667
14668         poll: Assume ANSI C.
14669         * lib/poll.c (poll): Use an ANSI C declaration.
14670
14671 2010-09-28  Bruno Haible  <bruno@clisp.org>
14672
14673         poll-h: Create poll.h on all platforms.
14674         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
14675         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
14676         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
14677         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
14678         (gl_REPLACE_POLL_H): Don't set POLL_H.
14679         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
14680         * modules/poll-h (Depends-on): Add include_next.
14681         (Makefile.am): Create poll.h unconditionally. Substitute also
14682         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
14683
14684 2010-09-28  Bruno Haible  <bruno@clisp.org>
14685
14686         Tests for module 'poll-h'.
14687         * modules/poll-h-c++-tests: New file.
14688         * tests/test-poll-h-c++.cc: New file.
14689
14690         Tests for module 'poll-h'.
14691         * modules/poll-h-tests: New file.
14692         * tests/test-poll-h.c: New file.
14693
14694 2010-09-28  Bruno Haible  <bruno@clisp.org>
14695
14696         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
14697         * modules/poll-h (Depends-on): Add 'extensions'.
14698
14699 2010-09-28  Bruno Haible  <bruno@clisp.org>
14700
14701         New module 'poll-h'.
14702         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
14703         (poll): Use modern idiom.
14704         * modules/poll-h: New file.
14705         * modules/poll (Files): Remove lib/poll.in.h.
14706         (Depends-on): Add poll-h.
14707         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
14708         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
14709         * m4/poll_h.m4: New file.
14710         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
14711         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
14712         and invoke gl_REPLACE_POLL_H.
14713         * lib/poll.c: Use common idiom.
14714         * tests/test-poll.c: Likewise.
14715         * doc/posix-headers/poll.texi: Mention the poll-h module.
14716         Suggested by Eric Blake.
14717
14718 2010-09-26  Bruno Haible  <bruno@clisp.org>
14719
14720         sys_wait: Implement WSTOPSIG.
14721         * lib/sys_wait.in.h (WSTOPSIG): New macro.
14722         Reported by Simon Josefsson.
14723
14724 2010-09-26  Simon Josefsson  <simon@josefsson.org>
14725
14726         stdlib, sys_wait: Avoid compilation error on mingw.
14727         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
14728
14729 2010-09-26  Bruno Haible  <bruno@clisp.org>
14730
14731         stdlib tests: Avoid code duplication.
14732         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
14733         * modules/sys_wait-tests (Files): Likewise.
14734         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
14735         * tests/test-stdlib.c: Include test-sys_wait.h.
14736         (main): Invoke test_sys_wait_macros.
14737         * tests/test-sys_wait.c: Include test-sys_wait.h.
14738         (main): Invoke test_sys_wait_macros.
14739
14740 2010-09-25  Simon Josefsson  <simon@josefsson.org>
14741
14742         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
14743         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
14744         sure Windows sockets are working before calling getaddrinfo.
14745         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
14746         * doc/gnulib.texi (Windows sockets): Fix typo.
14747
14748 2010-09-25  Bruno Haible  <bruno@clisp.org>
14749
14750         Tests for module 'regex-quote'.
14751         * modules/regex-quote-tests: New file.
14752         * tests/test-regex-quote.c: New file.
14753
14754         New module 'regex-quote'.
14755         * lib/regex-quote.h: New file.
14756         * lib/regex-quote.c: New file.
14757         * modules/regex-quote: New file.
14758         Suggested by Reuben Thomas <rrt@sc3d.org>.
14759
14760 2010-09-24  Bruno Haible  <bruno@clisp.org>
14761
14762         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
14763         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
14764
14765 2010-09-23  Bruno Haible  <bruno@clisp.org>
14766
14767         setenv: Relax license.
14768         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
14769         Blake.
14770         Requested by Eric Blake.
14771
14772 2010-09-22  Bruno Haible  <bruno@clisp.org>
14773
14774         termios: Relax license.
14775         * modules/termios (License): Change to LGPLv2+.
14776         Requested by Eric Blake.
14777
14778 2010-09-22  Bruno Haible  <bruno@clisp.org>
14779
14780         threadlib: Allow the package to change the default to 'no'.
14781         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
14782         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
14783         Reported by Paul Eggert.
14784
14785 2010-09-22  Pádraig Brady  <P@draigbrady.com>
14786             Bruno Haible  <bruno@clisp.org>
14787
14788         Fix endless loop in mbmemcasecoll.
14789         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
14790         byte.
14791         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
14792
14793 2010-09-22  Bruno Haible  <bruno@clisp.org>
14794
14795         Tests for module 'memcoll'.
14796         * modules/memcoll-tests: New file.
14797         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
14798
14799         memcoll, xmemcoll: Clarify size vs. length.
14800         * modules/memcoll.c (memcoll0): Clarify specification.
14801         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
14802         passed to collate_error.
14803
14804 2010-09-22  Bruno Haible  <bruno@clisp.org>
14805
14806         Tests for module 'memcasecmp'.
14807         * modules/memcasecmp-tests: New file.
14808         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
14809
14810 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
14811
14812         * lib/pthread.in.h: Add split double-inclusion guard, and include
14813         system <pthread.h> if there is one.  Use @@-style as in other
14814         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
14815         pthread.h doesn't.
14816         (pthread_mutexattr_destroy, pthread_mutexattr_init):
14817         (pthread_mutexattr_settype, pthread_mutex_trylock):
14818         New static inline functions, if there's no system <pthread.h>.
14819         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
14820         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
14821         Approximate with mutexes if the system lacks spinlocks, as in
14822         MacOS.
14823         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
14824         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
14825         @@-style.  Check for spinlocks separately.
14826         (gl_PTHREAD_DEFAULTS): New macro.
14827         * modules/pthread: Redo to use a more typical style for in.h files.
14828
14829 2010-09-21  Eric Blake  <eblake@redhat.com>
14830
14831         net_if: enhance tests
14832         * tests/test-net_if.c (main): Move signature checks earlier.
14833         Print failures to stderr.
14834         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
14835         Document the bug that we do not yet fix.
14836
14837 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
14838
14839         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
14840         about gnulib, not GSS.
14841
14842 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
14843
14844         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
14845         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
14846         for Emacs.
14847         * build-aux/pmccabe2html: Make Makefile.am example code more
14848         cut-and-paste friendly.
14849
14850 2010-09-21  Simon Josefsson  <simon@josefsson.org>
14851
14852         * tests/test-net_if.c: New file.
14853         * modules/net_if-tests: New file.
14854
14855 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
14856
14857         pthread: add pthread_spin_destroy
14858         * lib/pthread.in.h (pthread_spin_destroy): New function.
14859
14860 2010-09-19  Bruno Haible  <bruno@clisp.org>
14861
14862         gnulib-tool: Fix --help output.
14863         * gnulib-tool (func_usage): Fix help message.
14864         Reported by Reuben Thomas <rrt@sc3d.org>.
14865
14866 2010-09-18  Jim Meyering  <meyering@redhat.com>
14867
14868         maint.mk: avoid unexpanded \n in two diagnostics
14869         * top/maint.mk (sc_prohibit_always_true_header_tests):
14870         Don't use a literal \n in a halt=... assignment.  It would not be
14871         expanded, and the two \n bytes would appear in the diagnostic output
14872         rather than the desired newline.  Use halt=$$(printf ... instead.
14873         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
14874
14875 2010-09-18  Bruno Haible  <bruno@clisp.org>
14876
14877         netinet_in: Doc tweak.
14878         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
14879         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
14880
14881 2010-09-18  Jim Meyering  <meyering@redhat.com>
14882
14883         init.sh: correct an outdated comment
14884         * tests/init.sh (create_exe_shims_):  s/function/alias/
14885
14886         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
14887         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
14888         a file named "*.exe" is removed between the glob expansion and the
14889         processing of that oddly named file.
14890
14891 2010-09-17  Eric Blake  <eblake@redhat.com>
14892
14893         mirbsd: add some more support
14894         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
14895         in BSD family.
14896         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
14897         devices as OpenBSD.
14898         * m4/host-os.m4 (mirbsd): Add MirBSD.
14899
14900         tests: fix unportable assumption on sys/wait.h
14901         * tests/test-sys_wait.c (main): Relax test.
14902         * tests/test-stdlib.c (main): Likewise.
14903
14904         init.sh: accomodate directory with no .exes
14905         * tests/init.sh: Accomodate directory containing only scripts.
14906
14907         tests: avoid compiler warning
14908         * tests/test-stdlib.c (main): Use the variable.
14909
14910         fdutimens, fdutimensat: update signature, again
14911         * lib/utimens.h (gl_futimens): Delete, and move signature...
14912         (fdutimens): ...here.
14913         (fdutimensat): Rearrange signature.
14914         (lutimensat): Rename variable for clarity.
14915         * lib/fdutimensat.c (fdutimensat): Update signature.
14916         * lib/utimens.c (fdutimens): Likewise.
14917         (gl_futimens): Delete.
14918         (utimens, lutimens): Update callers.
14919         * lib/futimens.c (futimens): Likewise.
14920         * tests/test-fdutimensat.c: Likewise.
14921         * tests/test-utimens.c: Likewise.
14922         * tests/test-futimens.h: Update comment.
14923         * NEWS: Mention this.
14924         Suggested by Paul Eggert.
14925
14926 2010-09-17  Bruno Haible  <bruno@clisp.org>
14927
14928         Take over the maintenance of some older macros from Autoconf.
14929         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
14930         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
14931         GNU Autoconf.
14932         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
14933         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
14934
14935 2010-09-17  Eric Blake  <eblake@redhat.com>
14936
14937         fdutimensat: drop atflag validation
14938         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
14939         with valid fd, to close a race scenario where futimens is
14940         unsupported and FILE was replaced by a symlink.
14941         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
14942         accordingly.
14943         Suggested by Paul Eggert.
14944
14945 2010-09-16  Bruno Haible  <bruno@clisp.org>
14946
14947         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
14948         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
14949
14950 2010-09-16  Bruno Haible  <bruno@clisp.org>
14951
14952         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
14953         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
14954         login_tty exists.
14955         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
14956
14957 2010-09-16  Bruno Haible  <bruno@clisp.org>
14958
14959         login_tty: Make the replacement code work on BSD systems.
14960         * lib/login_tty.c: Include <sys/ioctl.h>.
14961         (login_tty): Use ioctl TIOCSCTTY when available.
14962         * modules/login_tty (Depends-on): Add sys_ioctl.
14963         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
14964
14965 2010-09-16  Bruno Haible  <bruno@clisp.org>
14966
14967         login_tty: Stricter unit test.
14968         * modules/login_tty-tests (Depends-on): Add tcgetsid.
14969         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
14970         and tcgetsid() after login_tty.
14971         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
14972
14973 2010-09-16  Bruno Haible  <bruno@clisp.org>
14974
14975         New module 'tcgetsid'.
14976         * lib/tcgetsid.c: New file.
14977         * m4/tcgetsid.m4: New file.
14978         * modules/tcgetsid: New file.
14979         * modules/termios (Depends-on): Add c++defs, warn-on-use.
14980         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
14981         GNULIB_TCGETSID, HAVE_TCGETSID.
14982         * lib/termios.in.h: Include <sys/types.h>.
14983         (tcgetsid): New declaration.
14984         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
14985         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
14986         * doc/posix-functions/tcgetsid.texi: Mention the new module.
14987         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
14988
14989 2010-09-16  Bruno Haible  <bruno@clisp.org>
14990
14991         Tests for module 'termios'.
14992         * modules/termios-c++-tests: New file.
14993         * modules/termios-tests: New file.
14994         * tests/test-termios-c++.cc: New file.
14995         * tests/test-termios.c: New file.
14996
14997         New module 'termios'.
14998         * modules/termios: New file.
14999         * lib/termios.in.h: New file.
15000         * m4/termios_h.m4: New file.
15001         * doc/posix-headers/termios.texi: Mention the new module.
15002
15003 2010-09-16  Eric Blake  <eblake@redhat.com>
15004
15005         fdutimensat: add an atflag parameter
15006         * lib/fdutimensat.c (fdutimensat): Add new parameter.
15007         * lib/utimens.h (fdutimensat): Update prototype.
15008         * tests/test-fdutimensat.c: Adjust test to match.
15009         * NEWS: Document the change.
15010         Suggested by Paul Eggert.
15011
15012 2010-09-16  Bruno Haible  <bruno@clisp.org>
15013
15014         Fix typos in comments.
15015         * lib/striconveh.h: Fix typo in comment.
15016         * lib/login_tty.c (login_tty): Likewise.
15017
15018 2010-09-15  Bruno Haible  <bruno@clisp.org>
15019
15020         stdlib: clarify MirBSD WEXITSTATUS bug
15021         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
15022         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
15023
15024 2010-09-15  Eric Blake  <eblake@redhat.com>
15025
15026         stdlib: work around MirBSD WEXITSTATUS bug
15027         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
15028         * modules/stdlib (Depends-on): Add sys_wait.
15029         * tests/test-sys_wait.c (main): Enhance test.
15030         * tests/test-stdlib.c (main): Likewise.
15031         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
15032
15033         docs: mention MacOS issue with WEXITSTATUS(constant)
15034         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
15035         issue.
15036         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
15037
15038         strnlen: add tests
15039         * modules/strnlen-tests: New file.
15040         * tests/test-strnlen.c: Likewise.
15041
15042 2010-09-14  Bruno Haible  <bruno@clisp.org>
15043
15044         unistr/base: Avoid link errors when module 'libunistring' is also used.
15045         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
15046         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
15047         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
15048         Declare also when HAVE_LIBUNISTRING is set.
15049         Reported by Pádraig Brady <P@draigbrady.com>.
15050
15051 2010-09-14  Eric Blake  <eblake@redhat.com>
15052
15053         test-rawmemchr: make more robust
15054         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
15055         (Depends-on, configure.ac): Add needed prerequisites to use it.
15056         * modules/memchr-tests (Files, Depends-on, configure.ac):
15057         Likewise, to avoid implicit reliance on memchr module prereqs.
15058         * tests/test-memchr.c (main): Ensure proper masking.
15059         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
15060         reads.
15061
15062         memchr: detect glibc Alpha bug
15063         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
15064         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
15065         Alpha.
15066         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
15067         * tests/test-memchr.c (main): Enhance test.
15068         Reported by Nelson H. F. Beebe.
15069
15070 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
15071
15072         fts, getcwd, glob: audit for dirfd returning -1
15073         * lib/fts.c (opendir): Remove #define; no longer used.
15074         (opendirat): New arg PDIR_FD.  All callers changed.
15075         (fts_build, _opendir2): Use new opendirat to avoid the need for
15076         dirfd, or for checking whether dirfd returns a negative value.
15077         Don't use opendir; always use openat followed by fdopendir.
15078         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
15079         it.
15080         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
15081         returns -1 here.
15082         * modules/fts (Depends-on): Remove dirfd.
15083         * modules/getcwd (Depends-on): Likewise.
15084
15085 2010-09-13  Eric Blake  <eblake@redhat.com>
15086
15087         float: fix broken MirBSD header
15088         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
15089         * doc/posix-headers/float.texi (float.h): Document it.
15090
15091 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
15092
15093         fts: use O_NOFOLLOW to avoid race condition when opening a directory
15094         * lib/fts.c (opendirat): New arg extra_flags.
15095         (__opendir2): Use it to avoid following symlinks when opening
15096         a directory, if symlinks are not supposed to be followed.  See
15097         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
15098
15099         fdopendir: preserve argument fd before returning
15100         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
15101         (fdopendir_with_dup, fd_clone_opendir): New static functions.
15102         (fdopendir): Use them, arranging for FD to be open to the same
15103         directory that it was when it started.  (It might be temporarily
15104         closed while fdopendir is running, so this not thread- or
15105         signal-safe.)  Be careful to do the right thing even when file
15106         descriptors are scarce and dup fails with errno == EMFILE.  See
15107         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
15108
15109 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
15110
15111         regex: Pass the system regex if its only problem is 32-bit regoff_t.
15112         * NEWS: Document change.
15113         * m4/regex.m4: Disable test for regoff_t size.
15114
15115 2010-09-13  Jim Meyering  <meyering@redhat.com>
15116
15117         fts: don't operate on an invalid file descriptor after failed dup
15118         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
15119         negative file descriptor.
15120
15121 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
15122
15123         savedir: add streamsavedir, deprecate fdsavedir
15124         * NEWS: Mention deprecation of fdsavedir.
15125         * lib/savedir.c (streamsavedir): New extern function, whose name
15126         ends in "savedir" to be consistent with the others.  This differs
15127         from savedirstream in that it doesn't close its argument.  The
15128         next version of GNU tar will use this instead of fdsavedir, to
15129         avoid some race conditions and conserve file descriptors.
15130         (savedirstream): Reimplement as a wrapper around streamsavedir.
15131         (fdsavedir): Add a comment deprecating this function.  As far as
15132         I know, only GNU tar used it, and GNU tar doesn't need it any more.
15133         * lib/savedir.h (streamsavedir): New decl.
15134         (fdsavedir): Add a comment deprecating this.
15135
15136 2010-09-10  Bruno Haible  <bruno@clisp.org>
15137
15138         langinfo: Fix last commit.
15139         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
15140         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
15141         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15142
15143 2010-09-10  Bruno Haible  <bruno@clisp.org>
15144
15145         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
15146         * lib/progreloc.c (O_EXEC): Define fallback.
15147
15148 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
15149
15150         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
15151         * NEWS: Document recent changes to fcntl-h.
15152         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
15153         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
15154         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
15155         Similarly for O_SEARCH; this last was already true, but not documented.
15156         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
15157         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
15158         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
15159         Likewise.
15160         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
15161         is zero, not whether it is defined.
15162         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
15163         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
15164         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
15165
15166 2010-09-10  Bruno Haible  <bruno@clisp.org>
15167
15168         langinfo, nl_langinfo: Fix for IRIX 5.3.
15169         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
15170         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
15171         HAVE_LANGINFO_YESEXPR.
15172         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
15173         HAVE_LANGINFO_YESEXPR.
15174         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
15175         HAVE_LANGINFO_T_FMT_AMPM is 0.
15176         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
15177         HAVE_LANGINFO_YESEXPR is 0.
15178         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
15179         NOEXPR.
15180         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
15181         * doc/posix-functions/nl_langinfo.texi: Likewise.
15182         Reported by Eric Blake.
15183
15184 2010-09-10  Bruno Haible  <bruno@clisp.org>
15185
15186         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
15187         * doc/glibc-functions/login_tty.texi: Mention the include file problem
15188         on FreeBSD 8.0 and OpenBSD 4.6.
15189         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
15190         * m4/pty_h.m4 (gl_PTY_H): Likewise.
15191         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
15192         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
15193         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
15194         ac_includes_default.
15195         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
15196
15197 2010-09-09  Eric Blake  <eblake@redhat.com>
15198
15199         strsignal: work around NetBSD bug
15200         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
15201         * lib/string.in.h (includes): Likewise.
15202         * doc/posix-functions/strsignal.texi (strsignal): Document the
15203         bug.
15204         Reported by Nelson H. F. Beebe.
15205
15206         gnulib-tool: work with NetBSD /bin/sh
15207         * gnulib-tool (func_cache_var, func_cache_lookup_module)
15208         (func_get_description, func_get_comment, func_get_status)
15209         (func_get_notice, func_get_applicability, func_get_filelist)
15210         (func_get_dependencies, func_get_autoconf_early_snippet)
15211         (func_get_autoconf_snippet, func_get_automake_snippet)
15212         (func_get_include_directive, func_get_link_directive)
15213         (func_get_license, func_get_maintainer, func_import): Avoid
15214         shell syntax errors from parsing syntax extensions.
15215
15216 2010-09-09  Bruno Haible  <bruno@clisp.org>
15217
15218         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
15219         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
15220         a reliable way to determine whether the 'alias' command works.
15221
15222 2010-09-08  Jim Meyering  <meyering@redhat.com>
15223
15224         init.sh: penalize a set-x-impaired shell; don't disqualify it
15225         * tests/init.sh: Too many shells corrupt application stderr when
15226         you set -x, so we can't afford to disqualify them, since at least
15227         on Irix-6.5, that would disqualify all bourne shells.
15228         Instead, use a two-pass approach.
15229         On the first pass, try to find a shell that meets the stricter
15230         condition that set -x does not corrupt stderr.
15231         If no shell meets the stricter condition, retest each candidate
15232         shell, but without that extra condition.  Finally, when
15233         VERBOSE=yes is requested and set -x might cause trouble, simply
15234         issue a warning and refrain from enabling debug output.
15235
15236 2010-09-08  Eric Blake  <eblake@redhat.com>
15237
15238         unsetenv: fix OpenBSD bug
15239         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
15240         * doc/posix-functions/unsetenv.texi (unsetenv): Update
15241         documentation.
15242         Reported by Jim Meyering.
15243
15244         strtod: work around IRIX 6.5 bug
15245         * lib/strtod.c (strtod): Reparse number on shorter string if
15246         exponent parse was invalid.
15247         * tests/test-strtod.c (main): Add check for "0x1p 2".
15248         Reported by Tom G. Christensen.
15249
15250         getopt: optimize previous patch
15251         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
15252         empty variable.  Speed up awk script.
15253         Reported by Paolo Bonzini.
15254
15255 2010-09-08  Jim Meyering  <meyering@redhat.com>
15256
15257         test.sh: disqualify shells for which set -x corrupts stderr
15258         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
15259         and OpenBSD 4.7.  They make it so with "set -x", environment settings
15260         appear in stderr output.  For example, this command:
15261             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
15262         prints "P=1" on those two systems:
15263
15264 2010-09-08  Bruno Haible  <bruno@clisp.org>
15265
15266         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
15267         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
15268         commands, because some shells ignore redirections when there is an
15269         error in the command lookup.
15270         Reported by Eric Blake.
15271
15272 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
15273
15274         * lib/regex.h: Fix a mention of `regex_compile' (should be
15275         `re_compile_pattern').
15276         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
15277         (re_set_registers): Correct name of parameter in comment.
15278
15279         * doc/regex.texi: Add documentation for missing syntax flags.
15280         Remove commented-out documentation of defunct syntax option
15281         RE_NO_EMPTY_ALTS.
15282         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
15283         Add documentation of re_set_registers.
15284         Document trick to re-use a pattern buffer by setting fastmap manually.
15285         Update documentation of struct re_pattern_buffer per public members.
15286         Uncomment documentation of equivalence class operators and
15287         collating symbol operators, since they are now implemented,
15288         Explain leftmost-longest matching in relation to alternatives.
15289         Tidy documentation of substring matching.
15290         Remove POSIX documentation, which is done better in
15291         glibc, and refer the reader there. Keep BSD API documentation, as
15292         that is not readily available elsewhere.
15293
15294 2010-09-07  Eric Blake  <eblake@redhat.com>
15295
15296         getopt: handle POSIXLY_CORRECT set but not exported
15297         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
15298         export state of POSIXLY_CORRECT, due to bash set -o posix.
15299         Reported by Dustin J. Mitchell.
15300
15301 2010-09-05  Bruno Haible  <bruno@clisp.org>
15302
15303         gnulib-tool: Highlight the changed options.
15304         * gnulib-tool (func_usage): Display the --import, --add-import,
15305         --remove-import explanations in bold font.
15306
15307 2010-09-06  Karl Berry  <karl@gnu.org>
15308
15309         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
15310
15311 2010-09-05  Bruno Haible  <bruno@clisp.org>
15312
15313         uniwidth/width: Update comment.
15314         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
15315         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
15316
15317 2010-09-05  Bruno Haible  <bruno@clisp.org>
15318
15319         isinf, isnan: Relax license.
15320         * modules/isinf (License): Change from GPL to LGPL, with consent from
15321         Ben Pfaff.
15322         * modules/isnan (License): Likewise.
15323         Requested by Ludovic Courtès.
15324
15325 2010-09-04  Bruno Haible  <bruno@clisp.org>
15326
15327         gnulib-tool: Help migration from --import to --add-import or --update.
15328         * gnulib-tool: Emit a verbose error message when --import is used
15329         without any module name.
15330
15331 2010-09-04  Bruno Haible  <bruno@clisp.org>
15332
15333         Update doc about gnulib-tool.
15334         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
15335         'gnulib-tool --update' in more detail.
15336         Reported by Eric Blake.
15337
15338 2010-09-04  Bruno Haible  <bruno@clisp.org>
15339
15340         gnulib-tool: Change --import. New options --add/remove-import.
15341         * gnulib-tool: New options --add-import, --remove-import.
15342         (func_usage): Document them.
15343         (have_associative): Define always.
15344         (func_import): In import mode, don't merge the specified settings with
15345         the cached settings. Implement remove-import mode.
15346         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
15347         Explain when to use them versus --import.
15348         (Simple update): Use --add-import instead of --import.
15349         * NEWS: Mention the change.
15350
15351 2010-09-04  Bruno Haible  <bruno@clisp.org>
15352
15353         * doc/gnulib-tool.texi (Initial import): Update paragraph about
15354         separate gnulib.mk.
15355
15356 2010-09-04  Bruno Haible  <bruno@clisp.org>
15357
15358         gnulib-tool: Don't talk about CVS any more.
15359         * gnulib-tool (func_usage, func_import): Write "version control"
15360         instead of CVS.
15361
15362 2010-09-04  Jim Meyering  <meyering@redhat.com>
15363
15364         maint.mk: avoid obscure sc_copyright_check failure in coreutils
15365         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
15366         false positives (whose names may be ill-chosen) when searching
15367         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
15368         would cause a false-positive.
15369
15370         avoid coreutils "make distcheck" failure
15371         Coreutils tests with an absolute build directory name that contains
15372         a space.  Not quoting this directory name caused a failure.
15373         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
15374         * tests/test-vc-list-files-cvs.sh: Likewise.
15375
15376 2010-09-04  Bruno Haible  <bruno@clisp.org>
15377
15378         gnulib-tool: Avoid error when run in a package without Makefile.am.
15379         * gnulib-tool: When collecting the m4dirs in a package that does not
15380         have a Makefile.am, eliminate those directories that contain no
15381         gnulib-cache.m4. Fix expression that counts these directories.
15382
15383 2010-09-04  Bruno Haible  <bruno@clisp.org>
15384
15385         update-copyright test: Improve output when perl is missing or too old.
15386         * tests/test-update-copyright.sh: Move test of Perl version down after
15387         the test whether Perl exists. Provide an explanation relating Perl's
15388         error message to Automake's SKIP: message.
15389
15390 2010-09-04  Bruno Haible  <bruno@clisp.org>
15391
15392         Don't augment PATH in TESTS_ENVIRONMENT.
15393         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
15394         set abs_aux_dir instead of augmenting PATH.
15395         * modules/vc-list-files-tests (Makefile.am): Likewise.
15396         * tests/test-update-copyright.sh: Augment PATH here.
15397         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
15398         path_prepend_.
15399         * tests/test-vc-list-files-git.sh: Likewise.
15400
15401 2010-09-04  Jim Meyering  <meyering@redhat.com>
15402
15403         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
15404         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
15405
15406 2010-09-04  Bruno Haible  <bruno@clisp.org>
15407
15408         strdup: Fix compilation error in C++ mode.
15409         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
15410         the macro.
15411
15412 2010-09-04  Bruno Haible  <bruno@clisp.org>
15413
15414         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
15415         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
15416         macro into a function.
15417         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
15418
15419 2010-09-04  Bruno Haible  <bruno@clisp.org>
15420
15421         Set PATH_SEPARATOR the same way autoconf does.
15422         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
15423         the value of PATH_SEPARATOR the same way autoconf-generated configure
15424         scripts do.
15425         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
15426         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
15427
15428 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
15429
15430         Set PATH_SEPARATOR the same way autoconf does.
15431         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
15432         the same way autoconf-generated configure scripts do.
15433         * posix-modules: Likewise.
15434
15435 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
15436
15437         hash: fix safe_hasher const typo
15438         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
15439         const; otherwise, there is a type error later.
15440
15441 2010-09-02  Jim Meyering  <meyering@redhat.com>
15442
15443         test-update-copyright.sh: require perl 5.8.0
15444         * tests/test-update-copyright.sh: Require 5.8.0,
15445         which Tom G. Christensen has confirmed is adequate,
15446         while 5.6.1 is not.
15447
15448 2010-09-02  Eric Blake  <eblake@redhat.com>
15449
15450         tests: init.sh improvements for re-exec'ing with zsh
15451         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
15452         -vx through shell re-exec.
15453         Reported by Tom G. Christensen.
15454
15455         wctype: fix typo in previous commit
15456         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
15457         Reported by Ludovic Courtès.
15458
15459 2010-09-02  Jim Meyering  <meyering@redhat.com>
15460
15461         test-update-copyright.sh: skip test if Perl is too old
15462         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
15463         Reported by Tom G. Christensen.
15464
15465 2010-09-02  Bruno Haible  <bruno@clisp.org>
15466
15467         wctype: Avoid compilation error on IRIX 6.5.30.
15468         * lib/wctype.in.h (iswblank): Declare with a replacement if
15469         REPLACE_ISWBLANK is set.
15470         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
15471         declared. Set REPLACE_ISWBLANK.
15472         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
15473         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
15474         * doc/posix-headers/wctype.texi: Likewise.
15475         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15476
15477 2010-09-01  Bruno Haible  <bruno@clisp.org>
15478
15479         New module 'socketlib'.
15480         * modules/socketlib: New file.
15481         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
15482         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
15483         * modules/sockets (Depends-on): Add socketlib.
15484         Suggested by Sam Steingold <sds@gnu.org>.
15485
15486 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
15487
15488         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
15489
15490         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
15491         when one needs search access to a directory but not read access.
15492         On systems where it is available, it works in some cases where
15493         O_RDONLY does not, namely on directories that are searchable but
15494         not readable, and which need only to be searchable.  If O_SEARCH
15495         is not available, fall back to the traditional method of using
15496         O_RDONLY.
15497
15498         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
15499         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
15500         when opening a directory that needs only to be searchable.
15501         * lib/chdir-safer.c (chdir_no_follow): Likewise.
15502         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
15503         * lib/openat-proc.c (openat_proc_name): Likewise.
15504         * lib/openat.c (openat_needs_fchdir): Likewise.
15505         * lib/save-cwd.c (save_cwd): Likewise.
15506         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
15507
15508 2010-08-28  Bruno Haible  <bruno@clisp.org>
15509
15510         New module 'host-cpu-c-abi'.
15511         * modules/host-cpu-c-abi: New file.
15512         * m4/host-cpu-c-abi.m4: New file, based on part of
15513         clisp/src/m4/general.m4.
15514         Requested by Sam Steingold <sds@gnu.org>.
15515
15516 2010-08-31  Eric Blake  <eblake@redhat.com>
15517         and Jim Meyering  <meyering@redhat.com>
15518
15519         hash: factor, and guard against misbehaving hasher function
15520         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
15521         of table->hasher's return value.  Also protect against a hash value
15522         so large that adding it to table->bucket results in a NULL pointer.
15523         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
15524         Use it in place of open-coded check-and-abort.
15525
15526 2010-08-30  Bruno Haible  <bruno@clisp.org>
15527
15528         hash: silence spurious clang warning
15529         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
15530         Reported by Eric Blake.
15531
15532 2010-08-30  Eric Blake  <eblake@redhat.com>
15533
15534         strstr, memmem, strcasestr: avoid leaked shell message
15535         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
15536         FreeBSD.
15537         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
15538         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
15539
15540         tests: silence clang warning
15541         * tests/test-malloca.c (do_allocation): Avoid dead store.
15542
15543 2010-08-29  Bruno Haible  <bruno@clisp.org>
15544
15545         gettext: Fix recent mistake.
15546         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
15547
15548 2010-08-29  Bruno Haible  <bruno@clisp.org>
15549
15550         selinux-h: Offer a --without-selinux option.
15551         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
15552         --without-selinux was specified, skip all tests and define
15553         HAVE_SELINUX_SELINUX_H to 0.
15554         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
15555         set LIB_SELINUX to empty.
15556         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
15557         gl_LIBSELINUX. If --without-selinux was specified, replace
15558         selinux/context.h.
15559         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
15560
15561 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15562             Bruno Haible  <bruno@clisp.org>
15563
15564         Make the module 'realloc-gnu' work again on AIX and OSF/1.
15565         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
15566         of HAVE_REALLOC.
15567         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
15568         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
15569         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
15570         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
15571
15572 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15573             Bruno Haible  <bruno@clisp.org>
15574
15575         Make the module 'calloc-gnu' work again on AIX and OSF/1.
15576         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
15577         HAVE_CALLOC.
15578         * lib/xmalloc.c: Update accordingly.
15579         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
15580         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
15581         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
15582
15583 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15584             Bruno Haible  <bruno@clisp.org>
15585
15586         Make the module 'malloc-gnu' work again on AIX and OSF/1.
15587         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
15588         HAVE_MALLOC.
15589         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
15590         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
15591         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
15592
15593 2010-08-29  Bruno Haible  <bruno@clisp.org>
15594
15595         Update modules list.
15596         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
15597         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
15598         (String handling <string.h>): Add astrxfrm.
15599         (File system functions): Add readlinkat.
15600
15601 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15602
15603         Tests for module 'realloc-gnu'.
15604         * modules/realloc-gnu-tests: New file.
15605         * tests/test-realloc-gnu.c: New file.
15606
15607         Tests for module 'calloc-gnu'.
15608         * modules/calloc-gnu-tests: New file.
15609         * tests/test-calloc-gnu.c: New file.
15610
15611         Tests for module 'malloc-gnu'.
15612         * modules/malloc-gnu-tests: New file.
15613         * tests/test-malloc-gnu.c: New file.
15614
15615 2010-08-28  Bruno Haible  <bruno@clisp.org>
15616
15617         Rename module 'realloc' -> 'realloc-gnu'.
15618         * modules/realloc-gnu: New file, copied from modules/realloc.
15619         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
15620         obsolete.
15621         * modules/mgetgroups (Depends-on): Update.
15622         * doc/posix-functions/realloc.texi: Update.
15623         * NEWS: Mention the change.
15624
15625         Rename module 'calloc' -> 'calloc-gnu'.
15626         * modules/calloc-gnu: New file, copied from modules/calloc.
15627         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
15628         obsolete.
15629         * doc/posix-functions/calloc.texi: Update.
15630         * NEWS: Mention the change.
15631
15632         Rename module 'malloc' -> 'malloc-gnu'.
15633         * modules/malloc-gnu: New file, copied from modules/malloc.
15634         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
15635         obsolete.
15636         * modules/argp (Depends-on): Update.
15637         * modules/regex (Depends-on): Update.
15638         * doc/posix-functions/malloc.texi: Update.
15639         * NEWS: Mention the change.
15640
15641 2010-08-28  Eric Blake  <eblake@redhat.com>
15642
15643         pread, pwrite: add missing dependency
15644         * modules/pread (Depends-on): Add extensions.
15645         * modules/pwrite (Depends-on): Likewise.
15646
15647 2010-08-28  Bruno Haible  <bruno@clisp.org>
15648
15649         unistr/u*-strchr: Fix tests dependencies.
15650         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
15651         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
15652         Reported by Ian Beckwith <ianb@erislabs.net>.
15653
15654 2010-08-28  Bruno Haible  <bruno@clisp.org>
15655
15656         read-file: Don't occupy too much unused memory.
15657         * lib/read-file.c (fread_file): Shrink the buffer at the end.
15658
15659 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
15660             Eric Blake  <eblake@redhat.com>
15661             Bruno Haible  <bruno@clisp.org>
15662
15663         read-file: Avoid memory reallocations with regular files.
15664         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
15665         (fread_file): With regular files, use the remaining length as the
15666         initial buffer size.  Check against overflow.
15667         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
15668         sys_stat.
15669
15670 2010-08-28  Bruno Haible  <bruno@clisp.org>
15671
15672         ftello: Relax license.
15673         * modules/ftello (License): Relax to LGPLv2+.
15674         Reported by Eric Blake.
15675
15676 2010-08-28  Bruno Haible  <bruno@clisp.org>
15677
15678         Avoid relocwrapper link errors due to gnulib replacement functions.
15679         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
15680         function.
15681         Reported by Ben Pfaff <blp@cs.stanford.edu>.
15682
15683 2010-08-28  Bruno Haible  <bruno@clisp.org>
15684
15685         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
15686         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
15687         defined.
15688         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
15689         Suggested by Eric Blake.
15690
15691 2010-08-28  Bruno Haible  <bruno@clisp.org>
15692
15693         sys_socket, netdb: Ensure socklen_t gets defined.
15694         * modules/sys_socket (Depends-on): Add socklen.
15695         * modules/netdb (Depends-on): Likewise.
15696         * modules/getaddrinfo (Depends-on): Remove socklen.
15697         * modules/getsockopt (Depends-on): Likewise.
15698         * modules/setsockopt (Depends-on): Likewise.
15699         * tests/test-sys_socket.c: Check that socklen_t is defined.
15700         * tests/test-netdb.c: Likewise.
15701         * m4/socklen.m4: Update comments.
15702         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
15703
15704 2010-08-27  Eric Blake  <eblake@redhat.com>
15705
15706         login_tty: add missing dependency
15707         * modules/login_tty (Depends-on): Add pty.
15708
15709 2010-08-26  Eric Blake  <eblake@redhat.com>
15710
15711         lib-symbol-versions: fix m4 quoting
15712         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
15713         format for AC_LINK_IFELSE.
15714
15715         glob: fix compile test
15716         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
15717
15718         btowc: fix missing file
15719         * modules/btowc (Files): Also ship locale-fr.m4.
15720
15721         lseek: fix link test
15722         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
15723         AC_LINK_IFELSE.
15724
15725         include_next: silence autoconf 2.68 warning
15726         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
15727         AC_COMPILE_IFELSE as special.
15728         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
15729         autoconf < 2.68.
15730
15731         acl: fix compilation test
15732         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
15733         AC_COMPILE_IFELSE.
15734
15735 2010-08-26  Bruno Haible  <bruno@clisp.org>
15736
15737         Modernize AC_TRY_RUN invocations.
15738         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
15739         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
15740         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
15741         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
15742         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
15743         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
15744         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
15745         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
15746         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
15747         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
15748         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
15749         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
15750         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
15751         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
15752         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
15753         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
15754         gl_MBRLEN_NUL_RETVAL): Likewise.
15755         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
15756         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
15757         Likewise.
15758         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
15759         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
15760         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
15761         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
15762         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
15763         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
15764         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
15765         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
15766         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
15767         Likewise.
15768         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
15769         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
15770         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
15771         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
15772         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
15773         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
15774         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
15775         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
15776         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
15777         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
15778
15779 2010-08-26  Bruno Haible  <bruno@clisp.org>
15780
15781         Modernize AC_TRY_LINK invocations.
15782         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
15783         AC_TRY_LINK.
15784         * m4/argp.m4 (gl_ARGP): Likewise.
15785         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
15786         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
15787         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
15788         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
15789         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
15790         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
15791         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
15792         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
15793         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
15794         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
15795         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
15796         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
15797         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
15798         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
15799         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
15800         * m4/hostent.m4 (gl_HOSTENT): Likewise.
15801         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
15802         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
15803         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
15804         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
15805         Likewise.
15806         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
15807         Likewise.
15808         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
15809         Likewise.
15810         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
15811         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
15812         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
15813         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
15814         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
15815         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
15816         * m4/servent.m4 (gl_SERVENT): Likewise.
15817         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
15818         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
15819         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
15820         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
15821         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
15822         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
15823         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
15824         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
15825         * modules/tsearch-tests (configure.ac): Likewise.
15826
15827 2010-08-26  Bruno Haible  <bruno@clisp.org>
15828
15829         Modernize AC_TRY_COMPILE invocations.
15830         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
15831         AC_TRY_COMPILE.
15832         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
15833         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
15834         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
15835         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
15836         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
15837         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
15838         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
15839         * m4/lock.m4 (gl_LOCK): Likewise.
15840         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
15841         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
15842         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
15843         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
15844         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
15845         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
15846         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
15847         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
15848         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
15849         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
15850         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
15851         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
15852         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
15853         extraneous semicolon.
15854
15855 2010-08-26  Jim Meyering  <meyering@redhat.com>
15856
15857         stat-time: relax license LGPL
15858         * modules/stat-time (License): Change from GPL to LGPL,
15859         with consent from all contributors, for use in libguile.
15860         Requested by Ludovic Courtès.
15861
15862 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
15863
15864         poll: return immediately on POLLHUP.
15865         * lib/poll.c (poll): Always set timeout before wait_timeout is
15866         computed.
15867
15868 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15869
15870         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
15871         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
15872         rmdir ("dir/.//"), unlinkat.
15873
15874 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
15875
15876         stdbool: avoid spurious failure with modern xlc
15877         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
15878
15879 2010-08-24  Bruno Haible  <bruno@clisp.org>
15880
15881         getloadavg: simplify code
15882         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
15883         gl_have_func. Update comments.
15884
15885 2010-08-24  Eric Blake  <eblake@redhat.com>
15886
15887         getloadavg: don't define SVR4 on cygwin
15888         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
15889         only define SVR4 when -lkvm is required.
15890         Reported by Yaakov Selkowitz.
15891
15892 2010-08-24  Bruno Haible  <bruno@clisp.org>
15893
15894         priv-set: fix comment
15895         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
15896
15897 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
15898
15899         priv-set: fix comments
15900         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
15901         to match code, as suggested by David Bartley in:
15902         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
15903
15904 2010-08-23  Eric Blake  <eblake@redhat.com>
15905
15906         stdbool: avoid rejecting clang
15907         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
15908         * tests/test-stdbool.c: Enable more tests if using the system
15909         <stdbool.h> instead of the gnulib replacement.
15910         (main): Move xlc bug test to a runtime test for all compilers.
15911         Reported by Anders Kaseorg.
15912
15913         argz: fix shell quoting issue
15914         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
15915         Reported by Charles Wilson.
15916
15917 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
15918             Erik Faye-Lund <kusmabite@gmail.com>
15919
15920         poll, select: handle ERROR_BROKEN_PIPE.
15921         * lib/poll.c (win32_compute_revents): Return POLLHUP when
15922         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
15923         * lib/select.c (win32_compute_revents): Do not mark a pipe
15924         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
15925
15926 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
15927
15928         fts: allow compilation with C++
15929         * lib/fts_.h: Specify extern "C" linkage with C++.
15930
15931 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15932
15933         Fix gnulib-tool sed script de-commentation for AIX sed.
15934         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
15935         sed.
15936
15937 2010-08-17  Eric Blake  <eblake@redhat.com>
15938
15939         test-stddef: test for (some) offsetof bugs
15940         * tests/test-stddef.c: Enhance test to ensure correct type of
15941         offsetof.
15942         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
15943         that we are not fixing at this time.
15944
15945 2010-08-15  Bruno Haible  <bruno@clisp.org>
15946
15947         stpncpy: Allow stpncpy to be defined as a macro.
15948         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
15949         if it's already correctly declared.
15950         * lib/string.in.h (stpncpy): Undefine before redefining.
15951         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
15952
15953 2010-08-14  Bruno Haible  <bruno@clisp.org>
15954
15955         Rename module 'memxfrm' to 'amemxfrm'.
15956         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
15957         (amemxfrm): Renamed from memxfrm.
15958         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
15959         (amemxfrm): Renamed from memxfrm.
15960         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
15961         * NEWS: Mention the change.
15962         * MODULES.html.sh (String handling <string.h>): Update.
15963         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
15964         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
15965         * lib/unicase/u16-casexfrm.c: Likewise.
15966         * lib/unicase/u32-casexfrm.c: Likewise.
15967         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
15968         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
15969         * lib/uninorm/u16-normxfrm.c: Likewise.
15970         * lib/uninorm/u32-normxfrm.c: Likewise.
15971         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
15972         memxfrm.
15973         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
15974         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
15975         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
15976         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
15977         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
15978         Suggested by Paul Eggert.
15979
15980 2010-08-14  Bruno Haible  <bruno@clisp.org>
15981
15982         Tests for module 'astrxfrm'.
15983         * modules/astrxfrm-tests: New file.
15984         * tests/test-astrxfrm.c: New file.
15985
15986         New module 'astrxfrm'.
15987         * lib/astrxfrm.h: New file.
15988         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
15989         * modules/astrxfrm: New file.
15990
15991 2010-08-14  Reuben Thomas <rrt@sc3d.org>
15992
15993         regex: Tweak doc.
15994         * doc/regex.texi (Overview): Don't mention regex.c.
15995         (GNU Regular Expression Compiling): Likewise.
15996         (Match-end-of-line Operator): Mention 'not_eol'.
15997
15998 2010-08-14  Brian Gough  <bjg@gnu.org>
15999             Bruno Haible  <bruno@clisp.org>
16000
16001         git-merge-changelog: add doc relating to use with bzr and hg.
16002         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
16003
16004 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
16005
16006         pthread: fix pthread.h creation for srcdir != builddir
16007         * modules/pthread (Makefile.am): Fix the rule to work also in a
16008         non-srcdir build.
16009
16010 2010-08-13  Karl Berry  <karl@gnu.org>
16011
16012         * doc/regex.texi (Predefined Syntaxes): @smallexample.
16013         * doc/posix-*/*: force line break before @url of POSIX
16014         specifications.
16015         Suggested by Werner Lemberg.
16016
16017 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
16018
16019         strtod: fix const diagnostic
16020         * lib/strtod.c (strtod): Don't assign const char * to char *,
16021         as this elicits a warning from GCC when warnings are enabled.
16022
16023 2010-08-10  Pádraig Brady <P@draigbrady.com>
16024         and Eric Blake  <eblake@redhat.com>
16025
16026         copy-acl: ignore ENOTSUP on HP-UX
16027         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
16028         so that it is available for HP-UX.
16029         * lib/copy-acl.c (qcopy_acl): Use it.
16030         Reported by Patrick M. Callahan.
16031
16032 2010-08-10  Eric Blake  <eblake@redhat.com>
16033
16034         open, chown: relax license
16035         * modules/open (License): Change to LGPLv2+, with consent by all
16036         authors, for use in augeas.
16037         * modules/chown (License): Likewise.
16038         * modules/lchown (Likewise): Likewise.
16039         Requested by Adam Stokes.
16040
16041 2010-08-09  Karl Berry  <karl@gnu.org>
16042
16043         * build-aux/ar-lib: new file, import from Automake.
16044         * config/srclist.txt: autocheck for updates.
16045
16046 2010-08-09  Eric Blake  <eblake@redhat.com>
16047
16048         readlinkat: adjust client modules
16049         * modules/areadlinkat (Depends-on): Use readlinkat, not
16050         symlinkat.
16051         * modules/areadlinkat-with-size (Depends-on): Likewise.
16052
16053         mknod: be more vocal about danger of running tests as root
16054         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
16055         root, since that is just asking for problems.
16056         Suggested by Bruno Haible, based on a report by Rainer Tammer.
16057
16058         readlinkat: split into its own module
16059         * modules/symlinkat: Split readlinkat...
16060         * modules/readlinkat: ...into separate module.
16061         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
16062         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
16063         * lib/symlinkat.c (readlinkat): Move...
16064         * lib/readlinkat.c: ...into new file.
16065         * modules/symlinkat-tests: Split readlinkat test...
16066         * modules/readlinkat-tests: ...into separate module.
16067         * tests/test-symlinkat.c: Split...
16068         * tests/test-readlinkat.c: ...into new file.
16069         * NEWS: Document the split.
16070         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
16071         * lib/unistd.in.h (readlinkat): Likewise.
16072         Suggested by Bruno Haible.
16073
16074 2010-08-08  Bruno Haible  <bruno@clisp.org>
16075
16076         memxfrm: Speed up.
16077         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
16078         that usually only one call to strxfrm is necessary for each string
16079         part.
16080         Reported by Paul Eggert <eggert@cs.ucla.edu>.
16081
16082 2010-08-07  Karl Berry  <karl@gnu.org>
16083
16084         * doc/posix-headers/limits.texi,
16085         * doc/posix-functions/malloc.texi,
16086         * doc/posix-functions/strsignal.texi: missing @item.
16087         * doc/ld-version-script.texi: spurious leading i.
16088         * doc/regex.texi (Interval Operators): no commas inside @var.
16089
16090 2010-08-01  Bruno Haible  <bruno@clisp.org>
16091
16092         Integrate the regex documentation.
16093         * doc/gnulib.texi: Define 'cn' index.
16094         (Regular expressions): New a chapter that includes regex.texi and
16095         regexprops-generic.texi.
16096         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
16097         syntax.
16098
16099         Whitespace cleanup.
16100         * doc/regex.texi: Remove trailing spaces.
16101
16102         Add regex documentation.
16103         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
16104         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
16105         Written by Kathy A. Hargreaves and Karl Berry.
16106
16107 2010-08-01  Bruno Haible  <bruno@clisp.org>
16108
16109         link: Update documentation.
16110         * doc/posix-functions/link.texi: Update regarding Solaris.
16111
16112 2010-07-31  Bruno Haible  <bruno@clisp.org>
16113
16114         Update modules list.
16115         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
16116         (String handling <string.h>): Add memcmp2, memxfrm.
16117         (Container data structures): Add xlist, xsublist, xoset.
16118         (Core language properties): Add alignof, unused-parameter.
16119         (Process control, Numeric conversion functions <stdlib.h>): Renamed
16120         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
16121         (Unibyte characters <ctype.h>): New section.
16122         (String handling <string.h>): New section.
16123         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
16124         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
16125         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
16126         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
16127         tan, tanh, tanl, y0, y1, yn.
16128         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
16129         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
16130         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
16131         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
16132         unlockpt, vdprintf, vdprintf-posix.
16133         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
16134         (File system functions): Add concat-filename, sys_file, sys_ioctl,
16135         xconcat-filename.
16136         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
16137         getdtablesize, pipe2, pipe2-safer.
16138         (Security): New section.
16139         (Networking functions): Add accept4.
16140         (Signal handling): Add sigpipe.
16141         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
16142         mbmemcasecoll.
16143         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
16144         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
16145         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
16146         pipe-filter-ii.
16147         (Misc): Add argp-version-etc, login_tty, parse-duration.
16148
16149 2010-07-31  Bruno Haible  <bruno@clisp.org>
16150
16151         Improve doc in MODULES.html.
16152         * modules/linkat (Description): Add the word "function".
16153         * modules/mkfifo (Description): Likewise.
16154         * modules/mknod (Description): Likewise.
16155         * modules/remove (Description): Likewise.
16156         * modules/renameat (Description): Likewise.
16157         * modules/stat (Description): Likewise.
16158         * modules/symlink (Description): Likewise.
16159         * modules/unlink (Description): Likewise.
16160
16161 2010-07-31  Bruno Haible  <bruno@clisp.org>
16162
16163         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
16164         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
16165         option --enable/disable-c++ instead of --enable/disable-cxx.
16166         * NEWS: Mention the change.
16167
16168 2010-07-31  Bruno Haible  <bruno@clisp.org>
16169
16170         readlink, areadlink: Relax test a bit.
16171         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
16172         alternative to ENOTDIR.
16173         * tests/test-areadlink.h (test_areadlink): Likewise.
16174         Reported by Rainer Tammer.
16175
16176 2010-07-31  Bruno Haible  <bruno@clisp.org>
16177
16178         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
16179         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
16180         character, perform the search using U_STRCHR.
16181         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
16182         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
16183         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
16184         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
16185         Suggested by Paolo Bonzini.
16186
16187 2010-07-31  Bruno Haible  <bruno@clisp.org>
16188
16189         unistr/u*-strstr: Fix dependencies.
16190         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
16191         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
16192         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
16193
16194 2010-07-31  Bruno Haible  <bruno@clisp.org>
16195
16196         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
16197         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
16198         the beginning of the loop.
16199         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
16200         cases in 'switch' statement.
16201
16202         unistr/u8-strchr: Fix several bugs.
16203         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
16204         the string. When not found, return NULL, not a pointer near the end.
16205
16206         More tests for unistr/u8-strchr.
16207         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
16208         that the function does not read past the first occurrence of the byte
16209         being searched.
16210         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
16211         * tests/unistr/test-u16-strchr.c (main): New function.
16212         * tests/unistr/test-u32-strchr.c (main): New function.
16213
16214 2010-07-31  Bruno Haible  <bruno@clisp.org>
16215
16216         posix-modules: Ignore backup files of documentation files.
16217         * posix-modules: grep only through files named *.texi.
16218
16219 2010-07-31  Bruno Haible  <bruno@clisp.org>
16220
16221         symlinkat: Fix documentation.
16222         * doc/posix-functions/readlinkat.texi: Fix module name.
16223
16224 2010-07-31  Bruno Haible  <bruno@clisp.org>
16225
16226         fchownat: Replace also when chown has the trailing slash bug.
16227         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
16228         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
16229         introduced on 2010-04-10.
16230         Reported by Rainer Tammer.
16231
16232 2010-07-31  Bruno Haible  <bruno@clisp.org>
16233
16234         linkat: Work around AIX 7.1 bug.
16235         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
16236         whether linkat handles trailing slash correctly. If not, replace linkat
16237         and define LINKAT_TRAILING_SLASH_BUG.
16238         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
16239         check whether (fd1,file1) points to a directory if file1 or file2 ends
16240         in a slash. Code taken from lib/link.c.
16241         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
16242         Reported by Rainer Tammer.
16243
16244 2010-07-31  Bruno Haible  <bruno@clisp.org>
16245
16246         Correctly determine whether pow is available in libc on AIX 7 with xlc.
16247         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
16248         This disables an xlc optimization that was causing wrong test results.
16249         Reported by Rainer Tammer.
16250
16251 2010-07-31  Bruno Haible  <bruno@clisp.org>
16252
16253         iconv: Work around AIX 6.1..7.1 bug.
16254         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
16255         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
16256         cross-compiling, guess no on all versions of AIX.
16257         Reported by Rainer Tammer.
16258
16259 2010-07-31  Bruno Haible  <bruno@clisp.org>
16260
16261         readlink: Relax test a bit.
16262         * tests/test-readlink.h (test_readlink): Allow different errno value
16263         when readlink is called with a file name that ends in / and refers to
16264         a file.
16265         Suggested by Eric Blake.
16266         Reported by Rainer Tammer.
16267
16268 2010-07-31  Bruno Haible  <bruno@clisp.org>
16269
16270         copysign: Does not require -lm on glibc systems.
16271         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
16272         gl_COMMON_DOUBLE_MATHFUNC.
16273         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
16274
16275 2010-07-31  Bruno Haible  <bruno@clisp.org>
16276
16277         duplocale: Work around AIX 7.1 bug.
16278         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
16279         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
16280         * lib/duplocale.c (rpl_duplocale): Update comment.
16281         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
16282         Reported by Rainer Tammer.
16283
16284 2010-07-30  Bruno Haible  <bruno@clisp.org>
16285
16286         dirfd: Avoid link error on AIX 7.1.
16287         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
16288         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
16289         exist, set REPLACE_DIRFD.
16290         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
16291         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
16292         * doc/posix-functions/dirfd.texi: Update.
16293         Reported by Rainer Tammer.
16294
16295 2010-07-30  Eric Blake  <eblake@redhat.com>
16296
16297         strtod: next round of AIX fixes
16298         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
16299         exponent.
16300         * tests/test-strtod.c (main): Enhance tests.
16301         * doc/posix-functions/strtod.texi (strtod): Document next bug.
16302         Reported by Rainer Tammer.
16303
16304         futimens: fix configure check
16305         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
16306         Reported by Bruno Haible.
16307
16308 2010-07-30  Bruno Haible  <bruno@clisp.org>
16309
16310         getline: Update regarding AIX.
16311         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
16312         Reported by Rainer Tammer.
16313
16314 2010-07-30  Bruno Haible  <bruno@clisp.org>
16315
16316         wcwidth: Drop replacement on AIX 7.
16317         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
16318         AIX 7.
16319         Reported by Rainer Tammer.
16320
16321 2010-07-30  Bruno Haible  <bruno@clisp.org>
16322
16323         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
16324         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
16325         a 'char *'.
16326         Reported by Rainer Tammer.
16327
16328 2010-07-30  Bruno Haible  <bruno@clisp.org>
16329
16330         unlink: Update regarding AIX.
16331         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
16332         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
16333         Reported by Rainer Tammer.
16334
16335 2010-07-30  Bruno Haible  <bruno@clisp.org>
16336
16337         symlink: Update regarding AIX.
16338         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
16339         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
16340         Reported by Rainer Tammer.
16341
16342 2010-07-30  Bruno Haible  <bruno@clisp.org>
16343
16344         strndup: Update regarding AIX.
16345         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
16346         AIX 7.
16347         Reported by Rainer Tammer.
16348
16349 2010-07-30  Bruno Haible  <bruno@clisp.org>
16350
16351         stat: Update regarding AIX.
16352         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
16353         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
16354         Reported by Rainer Tammer.
16355
16356 2010-07-30  Bruno Haible  <bruno@clisp.org>
16357
16358         truncl: Fix autoconf test.
16359         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
16360         whether truncl works.
16361         Reported by Rainer Tammer.
16362
16363 2010-07-30  Bruno Haible  <bruno@clisp.org>
16364
16365         round: Update regarding AIX.
16366         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
16367         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
16368         Reported by Rainer Tammer.
16369
16370 2010-07-30  Bruno Haible  <bruno@clisp.org>
16371
16372         rename: Update regarding AIX.
16373         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
16374         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
16375         Reported by Rainer Tammer.
16376
16377 2010-07-30  Bruno Haible  <bruno@clisp.org>
16378
16379         printf.m4: Update regarding AIX.
16380         * m4/printf.m4: Update comments regarding AIX.
16381         Reported by Rainer Tammer.
16382
16383 2010-07-30  Bruno Haible  <bruno@clisp.org>
16384
16385         iconv: Update regarding AIX.
16386         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
16387         AIX 7.
16388         Reported by Rainer Tammer.
16389
16390 2010-07-30  Bruno Haible  <bruno@clisp.org>
16391
16392         getopt: Update regarding AIX.
16393         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
16394         no on AIX.
16395         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
16396         Reported by Rainer Tammer.
16397
16398 2010-07-30  Bruno Haible  <bruno@clisp.org>
16399
16400         ldexpl; Update regarding AIX.
16401         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
16402         on AIX 7.
16403         Reported by Rainer Tammer.
16404
16405 2010-07-30  Bruno Haible  <bruno@clisp.org>
16406
16407         frexpl: Update regarding AIX.
16408         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
16409         on AIX 7.
16410         Reported by Rainer Tammer.
16411
16412 2010-07-30  Bruno Haible  <bruno@clisp.org>
16413
16414         open, fopen: Update regarding AIX.
16415         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
16416         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
16417         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
16418         * doc/posix-functions/fopen.texi: Likewise.
16419         Reported by Rainer Tammer.
16420
16421 2010-07-30  Bruno Haible  <bruno@clisp.org>
16422
16423         chown: Update doc regarding AIX.
16424         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
16425         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
16426         Reported by Rainer Tammer.
16427
16428 2010-07-30  Eric Blake  <eblake@redhat.com>
16429
16430         strtod: fix bug in replacement function on AIX
16431         * lib/strtod.c (strtod): Special case broken "0x" parse in
16432         underlying strtod.
16433         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
16434         * doc/posix-functions/strtod.texi (strtod): Likewise.
16435         Reported by Rainer Tammer.
16436
16437 2010-07-30  Bruno Haible  <bruno@clisp.org>
16438
16439         mbrlen: Fix cross-compilation guess for AIX.
16440         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
16441         guess. Leftover from 2008-12-22.
16442
16443 2010-07-30  Bruno Haible  <bruno@clisp.org>
16444
16445         mbrtowc: Fix cross-compilation guess for AIX.
16446         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
16447         guess. Leftover from 2008-12-21.
16448
16449 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
16450
16451         init.sh: work around trap limitation of some shells
16452         * tests/init.sh (setup_): Move exit trap outside of shell function.
16453
16454 2010-07-29  Eric Blake  <eblake@redhat.com>
16455
16456         strtod: aid debugging
16457         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
16458         understanding why strtod is rejected.
16459
16460 2010-07-28  Bruno Haible  <bruno@clisp.org>
16461
16462         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
16463         * lib/unistr/u8-chr.c: Include <string.h>.
16464         * tests/unistr/test-u8-chr.c: Likewise.
16465         * tests/unistr/test-u16-chr.c: Likewise.
16466         * tests/unistr/test-u32-chr.c: Likewise.
16467         * tests/unistr/test-u8-strchr.c: Likewise.
16468         * tests/unistr/test-u16-strchr.c: Likewise.
16469         * tests/unistr/test-u32-strchr.c: Likewise.
16470         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
16471         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
16472         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
16473         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
16474
16475 2010-07-28  Bruno Haible  <bruno@clisp.org>
16476
16477         Use spaces for indentation, not tabs.
16478         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
16479
16480 2010-07-27  Bruno Haible  <bruno@clisp.org>
16481
16482         mbspcasecmp: Fix function specification.
16483         * lib/string.in.h (mbspcasecmp): Fix specification comment.
16484         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
16485         Reported by Eric Blake <eblake@redhat.com>.
16486
16487 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
16488
16489         timespec: use cast and not conditional, as truncation isn't possible
16490         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
16491         instead of a conditional.  Comment about the situation in more detail.
16492         This undoes most of the 2009-10-29 patch.
16493
16494 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
16495
16496         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
16497         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
16498         * lib/unistr/u8-strchr.c: Likewise.
16499         * modules/unistr/u8-chr: Depend on memchr.
16500
16501         unistr/u*-strchr: add tests
16502         * modules/unistr/u8-strchr-tests: New file.
16503         * modules/unistr/u16-strchr-tests: New file.
16504         * modules/unistr/u32-strchr-tests: New file.
16505         * tests/unistr/test-strchr.h: New file.
16506         * tests/unistr/test-u8-strchr.c: New file.
16507         * tests/unistr/test-u16-strchr.c: New file.
16508         * tests/unistr/test-u32-strchr.c: New file.
16509
16510         unistr/u*-chr: test multibyte sequences more
16511         * tests/unistr/test-chr.h: Do complete testing of the characters in the
16512         test vector.
16513         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
16514         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
16515         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
16516
16517         unistr/u*-chr: test multibyte sequences
16518         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
16519
16520         unistr/u*-chr: prepare for multibyte tests
16521         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
16522         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
16523         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
16524         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
16525         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
16526         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
16527
16528 2010-07-18  Bruno Haible  <bruno@clisp.org>
16529
16530         unistr/u8-strchr: Optimize non-ASCII argument case.
16531         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
16532         because the first byte often matches anyway.
16533         Reported by Pádraig Brady <P@draigbrady.com>.
16534
16535 2010-07-15  Karl Berry  <karl@gnu.org>
16536
16537         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
16538
16539 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
16540
16541         getcwd: on Solaris, work better if ancestors are inaccessible
16542         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
16543         buffer and size, try again with a large buffer.  This works better
16544         on Solaris, since its getcwd succeeds even if the path to the root
16545         is inaccessible, and this is helpful in common cases such as .zfs
16546         hidden directories.  Problem reported by J Chapman Flack in
16547         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
16548         Use system getcwd if it's declared, not merely if it's partly
16549         working; use the partly-working test only to avoid needless effort
16550         if the system getcwd fails.
16551         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
16552         comment that was already obsolete and is now even more obsolete.
16553         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
16554         now might call strdup.
16555
16556 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
16557
16558         pthread: Add enough so that coreutils/src/sort.c compiles.
16559         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
16560         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
16561         gnulib. Include <sched.h> and <time.h>, as per POSIX.
16562         Include <sys/types.h>, in case it defines pthread_t.
16563         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
16564         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
16565         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
16566         (pthread_rwlockattr_t, pthread_spinlock_t):
16567         New typedefs, if HAVE_PTHREAD_T is not defined.
16568         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
16569         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
16570         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
16571         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
16572         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
16573         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
16574         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
16575         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
16576         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
16577         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
16578         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
16579         New macros.
16580         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
16581         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
16582         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
16583         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
16584         (pthread_spin_unlock): New dummy functions.
16585         (pthread_create): Return EAGAIN; don't set errno.
16586         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
16587         require AC_C_INLINE.
16588         * modules/pthread (Depends-on): Add sched, time.
16589         (pthread.h): Use AM_V_GEN.
16590
16591 2010-07-13  Bruno Haible  <bruno@clisp.org>
16592
16593         striconveh: Don't malloc memory if the result buffer is sufficient.
16594         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
16595         buffer if its size is sufficient.
16596         Reported by Ludovic Courtès <ludo@gnu.org>.
16597
16598 2010-07-13  Bruno Haible  <bruno@clisp.org>
16599
16600         strtod: Add safety check.
16601         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
16602
16603 2010-07-12  Bruno Haible  <bruno@clisp.org>
16604
16605         Unify tests that set gl_cv_func_ldexpl_no_libm.
16606         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
16607         gl_FUNC_LDEXPL.
16608         (gl_FUNC_LDEXPL): Invoke it.
16609         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
16610
16611 2010-07-12  Bruno Haible  <bruno@clisp.org>
16612
16613         Unify tests that set gl_cv_func_ldexp_no_libm.
16614         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
16615         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
16616         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
16617         (configure.ac): Simply invoke gl_FUNC_LDEXP.
16618         * modules/strtod (Files): Add m4/ldexp.m4.
16619
16620 2010-07-12  Bruno Haible  <bruno@clisp.org>
16621
16622         Unify tests that set gl_cv_func_frexpl_no_libm.
16623         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
16624         gl_FUNC_FREXPL_NO_LIBM.
16625         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
16626         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
16627
16628 2010-07-12  Bruno Haible  <bruno@clisp.org>
16629
16630         Unify tests that set gl_cv_func_frexp_no_libm.
16631         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
16632         gl_FUNC_FREXP_NO_LIBM.
16633         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
16634         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
16635
16636 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
16637
16638         memcoll: clarify sizes versus lengths, document better, and tweak perf
16639         * lib/memcoll.c (strcoll_loop, memcoll0):
16640         Improve quality of descriptive comments.  Name variables
16641         consistently as to whether they are lengths (which do not include
16642         terminating null) versus sizes (which do).
16643         * lib/xmemcoll.c (xmemcoll0): Likewise.
16644         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
16645         returned when s1size == 0; this is easier to compile and saves
16646         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
16647
16648 2010-07-12  Bruno Haible  <bruno@clisp.org>
16649
16650         Tests for module '_Exit'.
16651         * modules/_Exit-tests: New file.
16652         * tests/test-_Exit.sh: New file.
16653         * tests/test-_Exit.c: New file.
16654
16655         New module '_Exit'.
16656         * lib/stdlib.in.h (__attribute__): New macro.
16657         (_Exit): New declaration.
16658         * lib/_Exit.c: New file.
16659         * m4/_Exit.m4: New file.
16660         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
16661         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
16662         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
16663         * modules/_Exit: New file.
16664         * tests/test-stdlib-c++.cc (_Exit): Check signature.
16665         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
16666
16667 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
16668
16669         strtod: make it more-accurate typically, and don't require libm
16670         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
16671         Include limits.h.  Don't include string.h.
16672         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
16673         (locale_isspace): New function, so that no casts are needed to
16674         check whether *s is a space.
16675         (ldexp): Provide an unused dummy if not available.
16676         (scale_radix_exp, parse_number, underlying_strtod): New functions.
16677         (strtod): Use them.  This implementation prefers to use the
16678         underlying strtod if available, falling back on our own code
16679         only to fix known bugs.  This is more likely to produce an
16680         accurate result.  Also, it avoids the use of libm functions.
16681         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
16682         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
16683         was absent, but it caused a test failure with coreutils.
16684         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
16685         with libm.
16686         * modules/strtod (Makefile.am, Link): libm is no longer needed.
16687         * modules/strtod-tests (Makefile.am): Likewise.
16688
16689 2010-07-11  Pádraig Brady  <P@draigBrady.com>
16690             Bruno Haible  <bruno@clisp.org>
16691
16692         unistr/u8-strchr: Optimize ASCII argument case.
16693         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
16694
16695 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
16696
16697         (x)memcoll: minor tweaks
16698         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
16699         is after the type that it qualifies.
16700         (memcoll0): Likewise.
16701         * lib/memcoll.h (memcoll0): Likewise.
16702         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
16703         * lib/xmemcoll.h (xmemcoll0): Likewise.
16704         * lib/memcoll.c (memcoll0): Correct the comment.  This function
16705         differs from memcoll in that the NUL byte is part of the argument.
16706         Omit the abort-checks, as performance is a real issue here.  Plus,
16707         the checks were wrong anyway (an off-by-one error).  Omit local
16708         variable 'diff', as it's a bit clearer that way.
16709         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
16710         no longer needed.
16711
16712 2010-07-08  Chen Guo <chenguo4@yahoo.com>
16713
16714         (x)memcoll: speedup when input is known to be NUL delimited
16715         * lib/memcoll.c: Include stdlib.
16716         (memcoll0): New function.
16717         (strcoll_loop): New function, refactored for use in both memcoll
16718         and memcoll0.
16719         * lib/memcoll.h (memcoll0): Add prototype.
16720         * lib/xmemcoll.c (xmemcoll0): New function.
16721         (collate_error): New function, refactored for use in both xmemcoll
16722         and xmemcoll0.
16723         * lib/xmemcoll.h (xmemcoll0): Add prototype.
16724         * m4/memcoll.m4: add inline invocation.
16725
16726 2010-07-06  Pádraig Brady  <P@draigBrady.com>
16727
16728         * build-aux/bootstrap: Remove any local translations
16729         from the translation project synchronization directory,
16730         so that local only translations are not distributed.
16731
16732 2010-07-04  Bruno Haible  <bruno@clisp.org>
16733
16734         fsusage: Clarify which code applies to which platforms.
16735         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
16736         platform.
16737         * lib/fsusage.c (get_fs_usage): Likewise.
16738
16739 2010-07-04  Bruno Haible  <bruno@clisp.org>
16740
16741         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
16742         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
16743         Reported by Martin Lambers <marlam@marlam.de>.
16744
16745 2010-07-04  Jim Meyering  <meyering@redhat.com>
16746
16747         hash: once again explicitly disallow insertion of NULL
16748         * lib/hash.c (hash_insert0): Reinstate just-removed test:
16749         inserting a NULL pointer cannot work with these functions.
16750         Add a comment with details.
16751         This reverts part of the 2010-07-01 commit, 5bef1a35
16752         "hash: extend module to deal with non-pointer keys".
16753
16754 2010-07-01  Bruno Haible  <bruno@clisp.org>
16755
16756         stdbool: Update doc.
16757         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
16758         Info from Christian Weisgerber <naddy@mips.inka.de>.
16759
16760 2010-07-01  Jim Meyering  <meyering@redhat.com>
16761
16762         hash: extend module to deal with non-pointer keys
16763         * lib/hash.c (hash_insert0): New interface, much like hash_insert
16764         but that allows insertion of non-pointer entries.
16765         Do not disallow an ENTRY value of NULL.
16766         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
16767         * lib/hash.h (hash_insert0): Declare.
16768
16769 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
16770
16771         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
16772         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
16773         not present (i.e. with autoconf 2.59 and when using gettextize, not
16774         gnulib), require AC_GNU_SOURCE instead.
16775
16776 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
16777
16778         idpriv-drop: Fix tests.
16779         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
16780         not to the test-idpriv-droptemp program.
16781
16782 2010-06-29  Bruno Haible  <bruno@clisp.org>
16783
16784         string: Fix syntax error with g++ 2.96.
16785         * lib/string.in.h (__pure__): Remove definition.
16786         (_GL_ATTRIBUTE_PURE): New macro.
16787         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
16788         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
16789         Reported by Christian Weisgerber <naddy@mips.inka.de>.
16790
16791 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
16792
16793         unitypes: Fix bug introduced on 2010-05-18.
16794         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
16795
16796 2010-06-22  Eric Blake  <eblake@redhat.com>
16797
16798         memmem: slight optimization
16799         * lib/str-two-way.h (critical_factorization): Update comments.
16800         Reduce work during factorization phase.
16801         Reported by Carlos Bueno <carlos@bueno.org>.
16802
16803 2010-06-21  Bruno Haible  <bruno@clisp.org>
16804
16805         Fix HAVE_CALLOC_POSIX misnomer.
16806         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
16807         !HAVE_CALLOC_POSIX.
16808         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
16809         HAVE_CALLOC_POSIX.
16810         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
16811         instead of HAVE_CALLOC_POSIX.
16812         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
16813         HAVE_CALLOC_POSIX.
16814
16815         Use modern idiom for calloc() replacement.
16816         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
16817         AC_FUNC_CALLOC.
16818         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
16819         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
16820         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
16821         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
16822         (gl_REPLACE_CALLOC): New macro.
16823
16824 2010-06-21  Bruno Haible  <bruno@clisp.org>
16825
16826         Fix HAVE_REALLOC_POSIX misnomer.
16827         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
16828         !HAVE_REALLOC_POSIX.
16829         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
16830         HAVE_REALLOC_POSIX.
16831         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
16832         instead of HAVE_REALLOC_POSIX.
16833         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
16834         HAVE_REALLOC_POSIX.
16835
16836         Use modern idiom for realloc() replacement.
16837         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
16838         AC_FUNC_REALLOC.
16839         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
16840         Autoconf's AC_FUNC_REALLOC.
16841         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
16842         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
16843         (gl_REPLACE_REALLOC): New macro.
16844         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
16845
16846 2010-06-21  Bruno Haible  <bruno@clisp.org>
16847
16848         Fix HAVE_MALLOC_POSIX misnomer.
16849         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
16850         !HAVE_MALLOC_POSIX.
16851         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
16852         HAVE_MALLOC_POSIX.
16853         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
16854         instead of HAVE_MALLOC_POSIX.
16855         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
16856         HAVE_MALLOC_POSIX.
16857
16858         Use modern idiom for malloc() replacement.
16859         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
16860         AC_FUNC_MALLOC.
16861         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
16862         Autoconf's AC_FUNC_MALLOC.
16863         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
16864         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
16865         (gl_REPLACE_MALLOC): New macro.
16866         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
16867
16868 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
16869
16870         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
16871         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
16872         This macro takes 3 arguments, not 4.
16873
16874 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
16875
16876         ipv6: fix detection under mingw
16877         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
16878         in6_addr.
16879
16880 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
16881
16882         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
16883         that strtod() works when cross-compiling to a glibc version known
16884         to work.
16885
16886 2010-06-15  Bruno Haible  <bruno@clisp.org>
16887
16888         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
16889
16890 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
16891
16892         select: Correct timeout.
16893         * lib/select.c (rpl_select): Compute wait_timeout correctly.
16894
16895 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
16896
16897         git-version-gen: init shell var to avoid env var influence
16898         * build-aux/git-version-gen (v): Init shell var to empty.
16899
16900 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
16901
16902         priv-set: Don't assume that priv.h exists merely because getppriv does.
16903         See Jan Andersen's bug report about AIX 5L in
16904         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
16905         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
16906         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
16907         * lib/priv-set.h: Likewise.
16908         * tests/test-priv-set.c: Likewise.
16909
16910 2010-06-13  Bruno Haible  <bruno@clisp.org>
16911
16912         relocatable: Make it easier to test whether to install wrappers.
16913         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
16914         RELOCATABLE_VIA_WRAPPER.
16915
16916 2010-06-13  Bruno Haible  <bruno@clisp.org>
16917
16918         gnulib-tool: Display specified modules and dependencies differently.
16919         * gnulib-tool (func_show_module_list): New function.
16920         (func_import, func_create_testdir): Invoke it.
16921         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
16922
16923 2010-06-13  Bruno Haible  <bruno@clisp.org>
16924
16925         gnulib-tool: Align code of func_import and func_create_testdir.
16926         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
16927         specified_modules.
16928
16929 2010-06-12  Jim Meyering  <meyering@redhat.com>
16930
16931         test-inttostr: avoid spurious failure on Solaris 9
16932         * tests/test-inttostr.c (main): Skip the test when snprintf fails
16933         to accept "%ju".  Reported by Bruno Haible.
16934
16935 2010-06-11  Jim Meyering  <meyering@redhat.com>
16936
16937         test-sys_socket: mark variables as used more readably
16938         * tests/test-sys_socket.c (main): Mark otherwise unused variables
16939         as "used" explicitly via (void) statement casts.  This is more
16940         readable than using them in an artificial return expression.
16941         Suggestion from Bruno Haible.
16942
16943 2010-06-11  Bruno Haible  <bruno@clisp.org>
16944
16945         Avoid some more warnings from "gcc -Wwrite-strings".
16946         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
16947         to 'const char *'.
16948         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
16949         * tests/test-c-strcasestr.c (main): Likewise.
16950         * tests/test-mbscasestr1.c (main): Likewise.
16951         * tests/test-mbscasestr2.c (main): Likewise.
16952         * tests/test-memmem.c (main): Likewise.
16953         * tests/test-strstr.c (main): Likewise.
16954         * tests/test-strcasestr.c (main): Likewise.
16955
16956 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16957
16958         init.sh: change framework_failure_ to fail with status 99, not 1
16959         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
16960         automake's parallel-tests rule that this is an unexpected failure,
16961         even if the test is listed in XFAIL_TESTS.
16962
16963 2010-06-11  Jim Meyering  <meyering@redhat.com>
16964
16965         test-inttostr: avoid warnings about 4-6KB literal strings
16966         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
16967         Include "macros.h", for its definition of ASSERT.
16968         (CK): s/assert/ASSERT/
16969         * modules/inttostr-tests (Files): Add macros.h.
16970
16971         init.sh: don't use $ME_ or skip_ before they are defined
16972         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
16973         their first uses.  Also hoist their companions: warn_, fail_,
16974         framework_failure_, $stderr_fileno.  Prompted by a patch from
16975         Stefano Lattarini.
16976
16977         test-sys_socket: avoid set-but-not-used warnings from gcc
16978         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
16979         avoid warning about set-but-not-used variables.
16980
16981         test-xvasprintf: avoid 'const' discard warnings
16982         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
16983         "const" when assigning from literal strings.
16984         (test_xasprintf): Add "void" in function argument list to placate
16985         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
16986
16987         tests: avoid compilation warnings in argmatch and exclude tests...
16988         in packages that define ARGMATCH_DIE_DECL, like coreutils.
16989         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
16990         Since it always exits, declare with the "noreturn" attribute.
16991         * tests/test-argmatch.c: Likewise.
16992
16993         tests: avoid 'const' discard warnings in mbsstr tests
16994         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
16995         * tests/test-mbsstr2.c (main): Likewise.
16996
16997         test-verify: avoid warning from gcc's -Wmissing-declarations
16998         * tests/test-verify.c (function): Declare to be static.
16999
17000         test-inttostr.c: include <string.h> for use of strcmp
17001         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
17002
17003         test-linkat: avoid failed assertion on "other" architectures
17004         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
17005         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
17006         sparc: https://bugs.launchpad.net/bugs/591968
17007
17008 2010-06-11  Jim Meyering  <meyering@redhat.com>
17009
17010         printf.m4: avoid autoconf's "Expanded Before Required" warning
17011         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
17012         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
17013         autoconf warning.
17014
17015 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
17016
17017         Replacement header templates are now named with ".in", not "_".
17018         * doc/gnulib-intro.texi: Correct.
17019
17020 2010-06-10  Jim Meyering  <meyering@redhat.com>
17021
17022         inttostr-tests: depend on snprintf, not snprintf-posix
17023         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
17024         snprintf-posix, to avoid this aclocal failure:
17025           missing file gnulib-tests/vasnprintf.c
17026           configure.ac:45: error: expected source file, required through \
17027           AC_LIBSOURCES, not found
17028
17029 2010-06-10  Jim Meyering  <meyering@redhat.com>
17030
17031         inttostr: add a new function, inttostr, and tests
17032         The namesake function was not available.  The existence of the
17033         template file, inttostr.c makes its addition nontrivial.
17034         * lib/anytostr.c: Rename from inttostr.c.
17035         (anytostr): Rename from inttostr.
17036         * lib/inttostr.c: New file.
17037         * modules/inttostr (Files): Add anytostr.c.
17038         (Makefile.am): Set lib_SOURCES instead of ...
17039         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
17040         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
17041         * lib/offtostr.c: Likewise.
17042         * lib/uinttostr.c: Likewise.
17043         * lib/umaxtostr.c: Likewise.
17044         * modules/inttostr-tests: New file.
17045         * tests/test-inttostr.c: New file.  Test these functions.
17046
17047 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
17048             Bruno Haible  <bruno@clisp.org>
17049
17050         Add "Extending Gnulib" chapter to manual.
17051         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
17052         chapter.
17053         (Extending Gnulib): New chapter.
17054         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
17055         chapter.
17056
17057 2010-06-09  Bruno Haible  <bruno@clisp.org>
17058
17059         Avoid relocwrapper link errors due to gnulib replacement functions.
17060         * lib/areadlink.c: Use the system's malloc, realloc functions.
17061         (areadlink): Set errno to ENOMEM explicitly.
17062         * modules/areadlink (Depends-on): Remove malloc-posix.
17063         Reported by Ben Pfaff <blp@cs.stanford.edu>.
17064
17065 2010-06-09  Bruno Haible  <bruno@clisp.org>
17066
17067         Avoid relocwrapper link errors due to gnulib replacement functions.
17068         * lib/canonicalize-lgpl.c: Use the system's malloc function.
17069         * lib/malloca.c: Likewise.
17070         * lib/relocatable.c: Likewise.
17071         * lib/progreloc.c: Use the system's malloc, sprintf functions.
17072         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
17073         * lib/setenv.c: Use the system's malloc, realloc functions.
17074         * lib/strerror.c: Use the system's sprintf function.
17075         Reported by Ben Pfaff <blp@cs.stanford.edu>.
17076
17077 2010-06-04  Bruno Haible  <bruno@clisp.org>
17078
17079         Prefer documented low-level autoconf macro names.
17080         * m4/lib-link.m4: Use m4_translit instead of translit.
17081         * m4/environ.m4: Likewise.
17082         * m4/mathfunc.m4: Likewise.
17083         * m4/onceonly.m4: Likewise.
17084         * m4/stdint.m4: Likewise.
17085         Suggested by Eric Blake.
17086
17087 2010-06-04  Martin Lambers  <marlam@marlam.de>
17088             Bruno Haible  <bruno@clisp.org>
17089
17090         havelib: Allow library names with '+' characters.
17091         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
17092         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
17093
17094 2010-06-09  Bruno Haible  <bruno@clisp.org>
17095
17096         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
17097         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
17098         realloc failed.
17099
17100 2010-06-08  Peter Simons  <simons@cryp.to>
17101
17102         maint.mk: make the news-check rule more configurable
17103         * top/maint.mk (news-check-lines-spec): New variable.
17104         (news-check): Use "sed -n 1,10p" in place of "head".
17105
17106 2010-06-07  Jim Meyering  <meyering@redhat.com>
17107
17108         do-release-commit-and-tag: fix typo in --help
17109         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
17110
17111         regex: avoid new dead-code warning with gcc-4.6.0
17112         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
17113         if-block containing a while-loop.  It's been unused for at least
17114         5 years.
17115
17116 2010-06-05  Bruno Haible  <bruno@clisp.org>
17117
17118         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
17119         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
17120
17121 2010-06-04  Bruno Haible  <bruno@clisp.org>
17122
17123         Update to GNU gettext 0.18.1.
17124         * modules/gettext (configure.ac): Require gettext infrastructure from
17125         version 0.18.1.
17126
17127 2010-06-03  Bruno Haible  <bruno@clisp.org>
17128
17129         Don't use AC_LIBOBJ with file names in subdirectories.
17130         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
17131         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
17132         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
17133         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
17134         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
17135         gl_LIBUNISTRING_LIBSOURCE.
17136         (Makefile.am): Augment lib_SOURCES here, conditionally.
17137         * NEWS: Drop requirement for Automake option 'subdir-objects'.
17138
17139 2010-06-03  Bruno Haible  <bruno@clisp.org>
17140
17141         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
17142         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
17143         expansion does not end with a newline.
17144         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
17145         unnecessary newline.
17146
17147 2010-06-03  Bruno Haible  <bruno@clisp.org>
17148
17149         Reduce dependencies.
17150         * tests/test-quotearg.h: New file, extracted from
17151         tests/test-quotearg.c.
17152         * tests/test-quotearg-simple.c: New file, extracted from
17153         tests/test-quotearg.c.
17154         * tests/test-quotearg.c: Don't include <ctype.h>.
17155         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
17156         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
17157         use_quote_double_quotes, use_quotearg_colon): Moved to
17158         tests/test-quotearg.h.
17159         (results_g, flag_results, custom_quotes, custom_results): Moved
17160         to tests/test-quotearg-simple.c.
17161         (main): Moved the part that does not depend on gettext to
17162         tests/test-quotearg-simple.c. Return 77 if the test cannot be
17163         performed.
17164         * modules/quotearg-simple: New file.
17165         * modules/quotearg-simple-tests: New file.
17166         * modules/quotearg (Depends-on): Add quotearg-simple.
17167         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
17168         (Files): Add tests/test-quotearg.h.
17169         Reported by Paolo Bonzini.
17170
17171 2010-06-03  Bruno Haible  <bruno@clisp.org>
17172
17173         Reduce dependencies.
17174         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
17175
17176 2010-06-03  Bruno Haible  <bruno@clisp.org>
17177
17178         time: Undefine more broken macros.
17179         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
17180         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
17181         Reported by Eric Blake.
17182
17183 2010-06-03  Bruno Haible  <bruno@clisp.org>
17184
17185         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
17186         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
17187         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
17188         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
17189         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
17190         Reported by Ludovic Courtès <ludo@gnu.org>.
17191
17192 2010-06-02  Eric Blake  <eblake@redhat.com>
17193
17194         time: work with mingw + pthreads-win32 library
17195         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
17196         if timespec is defined only in pthread.h.
17197         * modules/time (Makefile.am): Substitute it.
17198         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
17199         <pthread.h>, when needed.
17200         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
17201         from the library.
17202
17203 2010-05-31  Bruno Haible  <bruno@clisp.org>
17204
17205         Avoid expanding two macros in the wrong order.
17206         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
17207         gl_LIBUNISTRING if it is defined.
17208         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
17209         autoconf >= 2.64.
17210         Reported by Ludovic Courtès <ludo@gnu.org>.
17211
17212 2010-05-27  Jim Meyering  <meyering@redhat.com>
17213
17214         maint.mk: also prohibit "#undef" of always-defined symbols
17215         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
17216         Allow more than one space before the symbol name.
17217         (sc_prohibit_always-defined_macros): Use grep's -E, now that
17218         the regexp uses alternation.
17219
17220 2010-05-26  Eric Blake  <eblake@redhat.com>
17221
17222         maint.mk: avoid echo -e
17223         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
17224         Convert all uses of echo -* to printf.
17225         Reported by Matthias Bolte.
17226
17227 2010-05-25  Bruno Haible  <bruno@clisp.org>
17228
17229         Update to GNU gettext 0.18, part 2.
17230         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
17231         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
17232
17233 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17234
17235         Add missing include in test-pwrite.c.
17236         * tests/test-pwrite.c: Include string.h, for strcmp.
17237
17238 2010-05-24  Bruno Haible  <bruno@clisp.org>
17239
17240         * NEWS: Mention requirement for Automake option 'subdir-objects'.
17241
17242 2010-05-24  Bruno Haible  <bruno@clisp.org>
17243
17244         Don't use conversion with transliteration in u{8,16,32}_strcoll.
17245         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
17246         iconveh_error argument.
17247         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
17248         U_STRCONV_TO_LOCALE.
17249         * lib/unistr/u16-strcoll.c: Likewise.
17250         * lib/unistr/u32-strcoll.c: Likewise.
17251         * modules/unistr/u8-strcoll (Depends-on): Add
17252         uniconv/u8-strconv-to-enc, localcharset. Remove
17253         uniconv/u8-strconv-to-locale.
17254         (configure.ac): Bump version number.
17255         * modules/unistr/u16-strcoll (Depends-on): Add
17256         uniconv/u16-strconv-to-enc, localcharset. Remove
17257         uniconv/u16-strconv-to-locale.
17258         (configure.ac): Bump version number.
17259         * modules/unistr/u32-strcoll (Depends-on): Add
17260         uniconv/u32-strconv-to-enc, localcharset. Remove
17261         uniconv/u32-strconv-to-locale.
17262         (configure.ac): Bump version number.
17263
17264 2010-05-24  Bruno Haible  <bruno@clisp.org>
17265
17266         Avoid a test failure on NetBSD 5.0.
17267         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
17268         an iconv() bug.
17269
17270 2010-05-24  Bruno Haible  <bruno@clisp.org>
17271
17272         Adjust #include directive style.
17273         * modules/regex (Includes): Recommend to write <regex.h>.
17274
17275 2010-05-24  Bruno Haible  <bruno@clisp.org>
17276
17277         regex: Don't require alloca.
17278         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
17279         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
17280         only inside if (0).
17281
17282 2010-05-23  Jim Meyering  <meyering@redhat.com>
17283
17284         test-renameat.c: include <sys/stat.h>
17285         * tests/test-renameat.c: Include <sys/stat.h>; required for
17286         definition of S_IS* macros.
17287
17288 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
17289
17290         Update maintainer documentation for 'relocatable-prog' module.
17291         * doc/relocatable-maint.texi: Update.
17292         Comments by Bruno Haible.
17293
17294 2010-05-23  Bruno Haible  <bruno@clisp.org>
17295
17296         git-merge-changelog: Enable --split-merged-entry by default.
17297         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
17298         (usage): Don't mention this option any more.
17299         Reported by Ralf Wildenhues.
17300
17301 2010-05-23  Jim Meyering  <meyering@redhat.com>
17302
17303         test-pwrite: do not leave behind a test file named "out"
17304         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
17305         The trivial-looking use of init.sh is really necessary.
17306         It ensures that the temporary file, "out", is created in
17307         a temporary directory, and removed upon termination.
17308         * tests/test-pwrite.sh: Re-add file.
17309         * modules/pwrite-tests: Reference it.
17310
17311 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17312
17313         Fix output redirection buglet in init.sh.
17314         * tests/init.sh: Fix redirection of stderr.
17315
17316 2010-05-20  Simon Josefsson  <simon@josefsson.org>
17317
17318         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
17319
17320 2010-05-17  Simon Josefsson  <simon@josefsson.org>
17321
17322         * modules/valgrind-tests: New file.
17323         * m4/valgrind-tests.m4: New file.
17324         * doc/valgrind-tests.texi: New file.
17325         * doc/gnulib.texi (Running self-tests under valgrind): New
17326         section.
17327
17328 2010-05-19  Bruno Haible  <bruno@clisp.org>
17329
17330         Clean up dead code in recent commit.
17331         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
17332         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
17333         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
17334         Suggested by Paolo Bonzini.
17335
17336 2010-05-19  Bruno Haible  <bruno@clisp.org>
17337
17338         Avoid valgrind error reports from libunistring.
17339         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
17340         * modules/libunistring (Files): Add it.
17341         * modules/libunistring-optional (Files): Likewise.
17342
17343 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
17344             Bruno Haible  <bruno@clisp.org>
17345
17346         New module 'libunistring-optional'.
17347         * modules/libunistring-optional: New file.
17348         * m4/libunistring-base.m4: New file.
17349         * m4/libunistring-optional.m4: New file.
17350         * lib/unicase.in.h: Renamed from lib/unicase.h.
17351         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
17352         * lib/unictype.in.h: Renamed from lib/unictype.h.
17353         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
17354         * lib/uniname.in.h: Renamed from lib/uniname.h.
17355         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
17356         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
17357         * lib/unistr.in.h: Renamed from lib/unistr.h.
17358         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
17359         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
17360         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
17361         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
17362         gl_LIBUNISTRING. If the library was found, determine the installed
17363         version and set LIBUNISTRING_VERSION.
17364         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
17365         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
17366         handle a configuration option --with-included-libunistring.
17367         * modules/libunistring (Files): Add m4/absolute-header.m4.
17368         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
17369         Add m4/libunistring-base.m4.
17370         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
17371         (Makefile.am): Build unicase.h from unicase.in.h.
17372         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
17373         Add m4/libunistring-base.m4.
17374         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
17375         (Makefile.am): Build uniconv.h from uniconv.in.h.
17376         * modules/unictype/base (Files): Use unictype.in.h instead of
17377         unictype.h. Add m4/libunistring-base.m4.
17378         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
17379         (Makefile.am): Build unictype.h from unictype.in.h.
17380         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
17381         Add m4/libunistring-base.m4.
17382         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
17383         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
17384         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
17385         Add m4/libunistring-base.m4.
17386         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
17387         (Makefile.am): Build uniname.h from uniname.in.h.
17388         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
17389         Add m4/libunistring-base.m4.
17390         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
17391         (Makefile.am): Build uninorm.h from uninorm.in.h.
17392         * modules/unistdio/base (Files): Use unistdio.in.h instead of
17393         unistdio.h. Add m4/libunistring-base.m4.
17394         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
17395         (Makefile.am): Build unistdio.h from unistdio.in.h.
17396         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
17397         Add m4/libunistring-base.m4.
17398         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
17399         (Makefile.am): Build unistr.h from unistr.in.h.
17400         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
17401         Add m4/libunistring-base.m4.
17402         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
17403         (Makefile.am): Build unitypes.h from unitypes.in.h.
17404         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
17405         Add m4/libunistring-base.m4.
17406         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
17407         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
17408         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
17409         uniwidth.h. Add m4/libunistring-base.m4.
17410         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
17411         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
17412         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
17413         instead of augmenting lib_SOURCES.
17414         * modules/unicase/empty-suffix-context: Likewise.
17415         * modules/unicase/locale-language: Likewise.
17416         * modules/unicase/tolower: Likewise.
17417         * modules/unicase/totitle: Likewise.
17418         * modules/unicase/toupper: Likewise.
17419         * modules/unicase/u8-casecmp: Likewise.
17420         * modules/unicase/u8-casecoll: Likewise.
17421         * modules/unicase/u8-casefold: Likewise.
17422         * modules/unicase/u8-casexfrm: Likewise.
17423         * modules/unicase/u8-ct-casefold: Likewise.
17424         * modules/unicase/u8-ct-tolower: Likewise.
17425         * modules/unicase/u8-ct-totitle: Likewise.
17426         * modules/unicase/u8-ct-toupper: Likewise.
17427         * modules/unicase/u8-is-cased: Likewise.
17428         * modules/unicase/u8-is-casefolded: Likewise.
17429         * modules/unicase/u8-is-lowercase: Likewise.
17430         * modules/unicase/u8-is-titlecase: Likewise.
17431         * modules/unicase/u8-is-uppercase: Likewise.
17432         * modules/unicase/u8-prefix-context: Likewise.
17433         * modules/unicase/u8-suffix-context: Likewise.
17434         * modules/unicase/u8-tolower: Likewise.
17435         * modules/unicase/u8-totitle: Likewise.
17436         * modules/unicase/u8-toupper: Likewise.
17437         * modules/unicase/u16-casecmp: Likewise.
17438         * modules/unicase/u16-casecoll: Likewise.
17439         * modules/unicase/u16-casefold: Likewise.
17440         * modules/unicase/u16-casexfrm: Likewise.
17441         * modules/unicase/u16-ct-casefold: Likewise.
17442         * modules/unicase/u16-ct-tolower: Likewise.
17443         * modules/unicase/u16-ct-totitle: Likewise.
17444         * modules/unicase/u16-ct-toupper: Likewise.
17445         * modules/unicase/u16-is-cased: Likewise.
17446         * modules/unicase/u16-is-casefolded: Likewise.
17447         * modules/unicase/u16-is-lowercase: Likewise.
17448         * modules/unicase/u16-is-titlecase: Likewise.
17449         * modules/unicase/u16-is-uppercase: Likewise.
17450         * modules/unicase/u16-prefix-context: Likewise.
17451         * modules/unicase/u16-suffix-context: Likewise.
17452         * modules/unicase/u16-tolower: Likewise.
17453         * modules/unicase/u16-totitle: Likewise.
17454         * modules/unicase/u16-toupper: Likewise.
17455         * modules/unicase/u32-casecmp: Likewise.
17456         * modules/unicase/u32-casecoll: Likewise.
17457         * modules/unicase/u32-casefold: Likewise.
17458         * modules/unicase/u32-casexfrm: Likewise.
17459         * modules/unicase/u32-ct-casefold: Likewise.
17460         * modules/unicase/u32-ct-tolower: Likewise.
17461         * modules/unicase/u32-ct-totitle: Likewise.
17462         * modules/unicase/u32-ct-toupper: Likewise.
17463         * modules/unicase/u32-is-cased: Likewise.
17464         * modules/unicase/u32-is-casefolded: Likewise.
17465         * modules/unicase/u32-is-lowercase: Likewise.
17466         * modules/unicase/u32-is-titlecase: Likewise.
17467         * modules/unicase/u32-is-uppercase: Likewise.
17468         * modules/unicase/u32-prefix-context: Likewise.
17469         * modules/unicase/u32-suffix-context: Likewise.
17470         * modules/unicase/u32-tolower: Likewise.
17471         * modules/unicase/u32-totitle: Likewise.
17472         * modules/unicase/u32-toupper: Likewise.
17473         * modules/unicase/ulc-casecmp: Likewise.
17474         * modules/unicase/ulc-casecoll: Likewise.
17475         * modules/unicase/ulc-casexfrm: Likewise.
17476         * modules/uniconv/u8-conv-from-enc: Likewise.
17477         * modules/uniconv/u8-conv-to-enc: Likewise.
17478         * modules/uniconv/u8-strconv-from-enc: Likewise.
17479         * modules/uniconv/u8-strconv-from-locale: Likewise.
17480         * modules/uniconv/u8-strconv-to-enc: Likewise.
17481         * modules/uniconv/u8-strconv-to-locale: Likewise.
17482         * modules/uniconv/u16-conv-from-enc: Likewise.
17483         * modules/uniconv/u16-conv-to-enc: Likewise.
17484         * modules/uniconv/u16-strconv-from-enc: Likewise.
17485         * modules/uniconv/u16-strconv-from-locale: Likewise.
17486         * modules/uniconv/u16-strconv-to-enc: Likewise.
17487         * modules/uniconv/u16-strconv-to-locale: Likewise.
17488         * modules/uniconv/u32-conv-from-enc: Likewise.
17489         * modules/uniconv/u32-conv-to-enc: Likewise.
17490         * modules/uniconv/u32-strconv-from-enc: Likewise.
17491         * modules/uniconv/u32-strconv-from-locale: Likewise.
17492         * modules/uniconv/u32-strconv-to-enc: Likewise.
17493         * modules/uniconv/u32-strconv-to-locale: Likewise.
17494         * modules/unictype/bidicategory-byname: Likewise.
17495         * modules/unictype/bidicategory-name: Likewise.
17496         * modules/unictype/bidicategory-of: Likewise.
17497         * modules/unictype/bidicategory-test: Likewise.
17498         * modules/unictype/block-list: Likewise.
17499         * modules/unictype/block-test: Likewise.
17500         * modules/unictype/category-C: Likewise.
17501         * modules/unictype/category-Cc: Likewise.
17502         * modules/unictype/category-Cf: Likewise.
17503         * modules/unictype/category-Cn: Likewise.
17504         * modules/unictype/category-Co: Likewise.
17505         * modules/unictype/category-Cs: Likewise.
17506         * modules/unictype/category-L: Likewise.
17507         * modules/unictype/category-Ll: Likewise.
17508         * modules/unictype/category-Lm: Likewise.
17509         * modules/unictype/category-Lo: Likewise.
17510         * modules/unictype/category-Lt: Likewise.
17511         * modules/unictype/category-Lu: Likewise.
17512         * modules/unictype/category-M: Likewise.
17513         * modules/unictype/category-Mc: Likewise.
17514         * modules/unictype/category-Me: Likewise.
17515         * modules/unictype/category-Mn: Likewise.
17516         * modules/unictype/category-N: Likewise.
17517         * modules/unictype/category-Nd: Likewise.
17518         * modules/unictype/category-Nl: Likewise.
17519         * modules/unictype/category-No: Likewise.
17520         * modules/unictype/category-P: Likewise.
17521         * modules/unictype/category-Pc: Likewise.
17522         * modules/unictype/category-Pd: Likewise.
17523         * modules/unictype/category-Pe: Likewise.
17524         * modules/unictype/category-Pf: Likewise.
17525         * modules/unictype/category-Pi: Likewise.
17526         * modules/unictype/category-Po: Likewise.
17527         * modules/unictype/category-Ps: Likewise.
17528         * modules/unictype/category-S: Likewise.
17529         * modules/unictype/category-Sc: Likewise.
17530         * modules/unictype/category-Sk: Likewise.
17531         * modules/unictype/category-Sm: Likewise.
17532         * modules/unictype/category-So: Likewise.
17533         * modules/unictype/category-Z: Likewise.
17534         * modules/unictype/category-Zl: Likewise.
17535         * modules/unictype/category-Zp: Likewise.
17536         * modules/unictype/category-Zs: Likewise.
17537         * modules/unictype/category-and: Likewise.
17538         * modules/unictype/category-and-not: Likewise.
17539         * modules/unictype/category-byname: Likewise.
17540         * modules/unictype/category-name: Likewise.
17541         * modules/unictype/category-none: Likewise.
17542         * modules/unictype/category-of: Likewise.
17543         * modules/unictype/category-or: Likewise.
17544         * modules/unictype/category-test: Likewise.
17545         * modules/unictype/combining-class: Likewise.
17546         * modules/unictype/ctype-alnum: Likewise.
17547         * modules/unictype/ctype-alpha: Likewise.
17548         * modules/unictype/ctype-blank: Likewise.
17549         * modules/unictype/ctype-cntrl: Likewise.
17550         * modules/unictype/ctype-digit: Likewise.
17551         * modules/unictype/ctype-graph: Likewise.
17552         * modules/unictype/ctype-lower: Likewise.
17553         * modules/unictype/ctype-print: Likewise.
17554         * modules/unictype/ctype-punct: Likewise.
17555         * modules/unictype/ctype-space: Likewise.
17556         * modules/unictype/ctype-upper: Likewise.
17557         * modules/unictype/ctype-xdigit: Likewise.
17558         * modules/unictype/decimal-digit: Likewise.
17559         * modules/unictype/digit: Likewise.
17560         * modules/unictype/mirror: Likewise.
17561         * modules/unictype/numeric: Likewise.
17562         * modules/unictype/property-alphabetic: Likewise.
17563         * modules/unictype/property-ascii-hex-digit: Likewise.
17564         * modules/unictype/property-bidi-arabic-digit: Likewise.
17565         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
17566         * modules/unictype/property-bidi-block-separator: Likewise.
17567         * modules/unictype/property-bidi-boundary-neutral: Likewise.
17568         * modules/unictype/property-bidi-common-separator: Likewise.
17569         * modules/unictype/property-bidi-control: Likewise.
17570         * modules/unictype/property-bidi-embedding-or-override: Likewise.
17571         * modules/unictype/property-bidi-eur-num-separator: Likewise.
17572         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
17573         * modules/unictype/property-bidi-european-digit: Likewise.
17574         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
17575         * modules/unictype/property-bidi-left-to-right: Likewise.
17576         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
17577         * modules/unictype/property-bidi-other-neutral: Likewise.
17578         * modules/unictype/property-bidi-pdf: Likewise.
17579         * modules/unictype/property-bidi-segment-separator: Likewise.
17580         * modules/unictype/property-bidi-whitespace: Likewise.
17581         * modules/unictype/property-byname: Likewise.
17582         * modules/unictype/property-combining: Likewise.
17583         * modules/unictype/property-composite: Likewise.
17584         * modules/unictype/property-currency-symbol: Likewise.
17585         * modules/unictype/property-dash: Likewise.
17586         * modules/unictype/property-decimal-digit: Likewise.
17587         * modules/unictype/property-default-ignorable-code-point: Likewise.
17588         * modules/unictype/property-deprecated: Likewise.
17589         * modules/unictype/property-diacritic: Likewise.
17590         * modules/unictype/property-extender: Likewise.
17591         * modules/unictype/property-format-control: Likewise.
17592         * modules/unictype/property-grapheme-base: Likewise.
17593         * modules/unictype/property-grapheme-extend: Likewise.
17594         * modules/unictype/property-grapheme-link: Likewise.
17595         * modules/unictype/property-hex-digit: Likewise.
17596         * modules/unictype/property-hyphen: Likewise.
17597         * modules/unictype/property-id-continue: Likewise.
17598         * modules/unictype/property-id-start: Likewise.
17599         * modules/unictype/property-ideographic: Likewise.
17600         * modules/unictype/property-ids-binary-operator: Likewise.
17601         * modules/unictype/property-ids-trinary-operator: Likewise.
17602         * modules/unictype/property-ignorable-control: Likewise.
17603         * modules/unictype/property-iso-control: Likewise.
17604         * modules/unictype/property-join-control: Likewise.
17605         * modules/unictype/property-left-of-pair: Likewise.
17606         * modules/unictype/property-line-separator: Likewise.
17607         * modules/unictype/property-logical-order-exception: Likewise.
17608         * modules/unictype/property-lowercase: Likewise.
17609         * modules/unictype/property-math: Likewise.
17610         * modules/unictype/property-non-break: Likewise.
17611         * modules/unictype/property-not-a-character: Likewise.
17612         * modules/unictype/property-numeric: Likewise.
17613         * modules/unictype/property-other-alphabetic: Likewise.
17614         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
17615         * modules/unictype/property-other-grapheme-extend: Likewise.
17616         * modules/unictype/property-other-id-continue: Likewise.
17617         * modules/unictype/property-other-id-start: Likewise.
17618         * modules/unictype/property-other-lowercase: Likewise.
17619         * modules/unictype/property-other-math: Likewise.
17620         * modules/unictype/property-other-uppercase: Likewise.
17621         * modules/unictype/property-paired-punctuation: Likewise.
17622         * modules/unictype/property-paragraph-separator: Likewise.
17623         * modules/unictype/property-pattern-syntax: Likewise.
17624         * modules/unictype/property-pattern-white-space: Likewise.
17625         * modules/unictype/property-private-use: Likewise.
17626         * modules/unictype/property-punctuation: Likewise.
17627         * modules/unictype/property-quotation-mark: Likewise.
17628         * modules/unictype/property-radical: Likewise.
17629         * modules/unictype/property-sentence-terminal: Likewise.
17630         * modules/unictype/property-soft-dotted: Likewise.
17631         * modules/unictype/property-space: Likewise.
17632         * modules/unictype/property-terminal-punctuation: Likewise.
17633         * modules/unictype/property-test: Likewise.
17634         * modules/unictype/property-titlecase: Likewise.
17635         * modules/unictype/property-unassigned-code-value: Likewise.
17636         * modules/unictype/property-unified-ideograph: Likewise.
17637         * modules/unictype/property-uppercase: Likewise.
17638         * modules/unictype/property-variation-selector: Likewise.
17639         * modules/unictype/property-white-space: Likewise.
17640         * modules/unictype/property-xid-continue: Likewise.
17641         * modules/unictype/property-xid-start: Likewise.
17642         * modules/unictype/property-zero-width: Likewise.
17643         * modules/unictype/scripts: Likewise.
17644         * modules/unictype/syntax-c-ident: Likewise.
17645         * modules/unictype/syntax-c-whitespace: Likewise.
17646         * modules/unictype/syntax-java-ident: Likewise.
17647         * modules/unictype/syntax-java-whitespace: Likewise.
17648         * modules/unilbrk/u8-possible-linebreaks: Likewise.
17649         * modules/unilbrk/u8-width-linebreaks: Likewise.
17650         * modules/unilbrk/u16-possible-linebreaks: Likewise.
17651         * modules/unilbrk/u16-width-linebreaks: Likewise.
17652         * modules/unilbrk/u32-possible-linebreaks: Likewise.
17653         * modules/unilbrk/u32-width-linebreaks: Likewise.
17654         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
17655         * modules/unilbrk/ulc-width-linebreaks: Likewise.
17656         * modules/uniname/uniname: Likewise.
17657         * modules/uninorm/canonical-decomposition: Likewise.
17658         * modules/uninorm/composition: Likewise.
17659         * modules/uninorm/decomposing-form: Likewise.
17660         * modules/uninorm/decomposition: Likewise.
17661         * modules/uninorm/filter: Likewise.
17662         * modules/uninorm/nfc: Likewise.
17663         * modules/uninorm/nfd: Likewise.
17664         * modules/uninorm/nfkc: Likewise.
17665         * modules/uninorm/nfkd: Likewise.
17666         * modules/uninorm/u8-normalize: Likewise.
17667         * modules/uninorm/u8-normcmp: Likewise.
17668         * modules/uninorm/u8-normcoll: Likewise.
17669         * modules/uninorm/u8-normxfrm: Likewise.
17670         * modules/uninorm/u16-normalize: Likewise.
17671         * modules/uninorm/u16-normcmp: Likewise.
17672         * modules/uninorm/u16-normcoll: Likewise.
17673         * modules/uninorm/u16-normxfrm: Likewise.
17674         * modules/uninorm/u32-normalize: Likewise.
17675         * modules/uninorm/u32-normcmp: Likewise.
17676         * modules/uninorm/u32-normcoll: Likewise.
17677         * modules/uninorm/u32-normxfrm: Likewise.
17678         * modules/unistdio/u8-asnprintf: Likewise.
17679         * modules/unistdio/u8-asprintf: Likewise.
17680         * modules/unistdio/u8-snprintf: Likewise.
17681         * modules/unistdio/u8-sprintf: Likewise.
17682         * modules/unistdio/u8-u8-asnprintf: Likewise.
17683         * modules/unistdio/u8-u8-asprintf: Likewise.
17684         * modules/unistdio/u8-u8-snprintf: Likewise.
17685         * modules/unistdio/u8-u8-sprintf: Likewise.
17686         * modules/unistdio/u8-u8-vasnprintf: Likewise.
17687         * modules/unistdio/u8-u8-vasprintf: Likewise.
17688         * modules/unistdio/u8-u8-vsnprintf: Likewise.
17689         * modules/unistdio/u8-u8-vsprintf: Likewise.
17690         * modules/unistdio/u8-vasnprintf: Likewise.
17691         * modules/unistdio/u8-vasprintf: Likewise.
17692         * modules/unistdio/u8-vsnprintf: Likewise.
17693         * modules/unistdio/u8-vsprintf: Likewise.
17694         * modules/unistdio/u16-asnprintf: Likewise.
17695         * modules/unistdio/u16-asprintf: Likewise.
17696         * modules/unistdio/u16-snprintf: Likewise.
17697         * modules/unistdio/u16-sprintf: Likewise.
17698         * modules/unistdio/u16-u16-asnprintf: Likewise.
17699         * modules/unistdio/u16-u16-asprintf: Likewise.
17700         * modules/unistdio/u16-u16-snprintf: Likewise.
17701         * modules/unistdio/u16-u16-sprintf: Likewise.
17702         * modules/unistdio/u16-u16-vasnprintf: Likewise.
17703         * modules/unistdio/u16-u16-vasprintf: Likewise.
17704         * modules/unistdio/u16-u16-vsnprintf: Likewise.
17705         * modules/unistdio/u16-u16-vsprintf: Likewise.
17706         * modules/unistdio/u16-vasnprintf: Likewise.
17707         * modules/unistdio/u16-vasprintf: Likewise.
17708         * modules/unistdio/u16-vsnprintf: Likewise.
17709         * modules/unistdio/u16-vsprintf: Likewise.
17710         * modules/unistdio/u32-asnprintf: Likewise.
17711         * modules/unistdio/u32-asprintf: Likewise.
17712         * modules/unistdio/u32-snprintf: Likewise.
17713         * modules/unistdio/u32-sprintf: Likewise.
17714         * modules/unistdio/u32-u32-asnprintf: Likewise.
17715         * modules/unistdio/u32-u32-asprintf: Likewise.
17716         * modules/unistdio/u32-u32-snprintf: Likewise.
17717         * modules/unistdio/u32-u32-sprintf: Likewise.
17718         * modules/unistdio/u32-u32-vasnprintf: Likewise.
17719         * modules/unistdio/u32-u32-vasprintf: Likewise.
17720         * modules/unistdio/u32-u32-vsnprintf: Likewise.
17721         * modules/unistdio/u32-u32-vsprintf: Likewise.
17722         * modules/unistdio/u32-vasnprintf: Likewise.
17723         * modules/unistdio/u32-vasprintf: Likewise.
17724         * modules/unistdio/u32-vsnprintf: Likewise.
17725         * modules/unistdio/u32-vsprintf: Likewise.
17726         * modules/unistdio/ulc-asnprintf: Likewise.
17727         * modules/unistdio/ulc-asprintf: Likewise.
17728         * modules/unistdio/ulc-fprintf: Likewise.
17729         * modules/unistdio/ulc-snprintf: Likewise.
17730         * modules/unistdio/ulc-sprintf: Likewise.
17731         * modules/unistdio/ulc-vasnprintf: Likewise.
17732         * modules/unistdio/ulc-vasprintf: Likewise.
17733         * modules/unistdio/ulc-vfprintf: Likewise.
17734         * modules/unistdio/ulc-vsnprintf: Likewise.
17735         * modules/unistdio/ulc-vsprintf: Likewise.
17736         * modules/unistr/u8-check: Likewise.
17737         * modules/unistr/u8-chr: Likewise.
17738         * modules/unistr/u8-cmp: Likewise.
17739         * modules/unistr/u8-cmp2: Likewise.
17740         * modules/unistr/u8-cpy: Likewise.
17741         * modules/unistr/u8-cpy-alloc: Likewise.
17742         * modules/unistr/u8-endswith: Likewise.
17743         * modules/unistr/u8-mblen: Likewise.
17744         * modules/unistr/u8-mbsnlen: Likewise.
17745         * modules/unistr/u8-mbtouc: Likewise.
17746         * modules/unistr/u8-mbtouc-unsafe: Likewise.
17747         * modules/unistr/u8-mbtoucr: Likewise.
17748         * modules/unistr/u8-move: Likewise.
17749         * modules/unistr/u8-next: Likewise.
17750         * modules/unistr/u8-prev: Likewise.
17751         * modules/unistr/u8-set: Likewise.
17752         * modules/unistr/u8-startswith: Likewise.
17753         * modules/unistr/u8-stpcpy: Likewise.
17754         * modules/unistr/u8-stpncpy: Likewise.
17755         * modules/unistr/u8-strcat: Likewise.
17756         * modules/unistr/u8-strchr: Likewise.
17757         * modules/unistr/u8-strcmp: Likewise.
17758         * modules/unistr/u8-strcoll: Likewise.
17759         * modules/unistr/u8-strcpy: Likewise.
17760         * modules/unistr/u8-strcspn: Likewise.
17761         * modules/unistr/u8-strdup: Likewise.
17762         * modules/unistr/u8-strlen: Likewise.
17763         * modules/unistr/u8-strmblen: Likewise.
17764         * modules/unistr/u8-strmbtouc: Likewise.
17765         * modules/unistr/u8-strncat: Likewise.
17766         * modules/unistr/u8-strncmp: Likewise.
17767         * modules/unistr/u8-strncpy: Likewise.
17768         * modules/unistr/u8-strnlen: Likewise.
17769         * modules/unistr/u8-strpbrk: Likewise.
17770         * modules/unistr/u8-strrchr: Likewise.
17771         * modules/unistr/u8-strspn: Likewise.
17772         * modules/unistr/u8-strstr: Likewise.
17773         * modules/unistr/u8-strtok: Likewise.
17774         * modules/unistr/u8-to-u16: Likewise.
17775         * modules/unistr/u8-to-u32: Likewise.
17776         * modules/unistr/u8-uctomb: Likewise.
17777         * modules/unistr/u16-check: Likewise.
17778         * modules/unistr/u16-chr: Likewise.
17779         * modules/unistr/u16-cmp: Likewise.
17780         * modules/unistr/u16-cmp2: Likewise.
17781         * modules/unistr/u16-cpy: Likewise.
17782         * modules/unistr/u16-cpy-alloc: Likewise.
17783         * modules/unistr/u16-endswith: Likewise.
17784         * modules/unistr/u16-mblen: Likewise.
17785         * modules/unistr/u16-mbsnlen: Likewise.
17786         * modules/unistr/u16-mbtouc: Likewise.
17787         * modules/unistr/u16-mbtouc-unsafe: Likewise.
17788         * modules/unistr/u16-mbtoucr: Likewise.
17789         * modules/unistr/u16-move: Likewise.
17790         * modules/unistr/u16-next: Likewise.
17791         * modules/unistr/u16-prev: Likewise.
17792         * modules/unistr/u16-set: Likewise.
17793         * modules/unistr/u16-startswith: Likewise.
17794         * modules/unistr/u16-stpcpy: Likewise.
17795         * modules/unistr/u16-stpncpy: Likewise.
17796         * modules/unistr/u16-strcat: Likewise.
17797         * modules/unistr/u16-strchr: Likewise.
17798         * modules/unistr/u16-strcmp: Likewise.
17799         * modules/unistr/u16-strcoll: Likewise.
17800         * modules/unistr/u16-strcpy: Likewise.
17801         * modules/unistr/u16-strcspn: Likewise.
17802         * modules/unistr/u16-strdup: Likewise.
17803         * modules/unistr/u16-strlen: Likewise.
17804         * modules/unistr/u16-strmblen: Likewise.
17805         * modules/unistr/u16-strmbtouc: Likewise.
17806         * modules/unistr/u16-strncat: Likewise.
17807         * modules/unistr/u16-strncmp: Likewise.
17808         * modules/unistr/u16-strncpy: Likewise.
17809         * modules/unistr/u16-strnlen: Likewise.
17810         * modules/unistr/u16-strpbrk: Likewise.
17811         * modules/unistr/u16-strrchr: Likewise.
17812         * modules/unistr/u16-strspn: Likewise.
17813         * modules/unistr/u16-strstr: Likewise.
17814         * modules/unistr/u16-strtok: Likewise.
17815         * modules/unistr/u16-to-u32: Likewise.
17816         * modules/unistr/u16-to-u8: Likewise.
17817         * modules/unistr/u16-uctomb: Likewise.
17818         * modules/unistr/u32-check: Likewise.
17819         * modules/unistr/u32-chr: Likewise.
17820         * modules/unistr/u32-cmp: Likewise.
17821         * modules/unistr/u32-cmp2: Likewise.
17822         * modules/unistr/u32-cpy: Likewise.
17823         * modules/unistr/u32-cpy-alloc: Likewise.
17824         * modules/unistr/u32-endswith: Likewise.
17825         * modules/unistr/u32-mblen: Likewise.
17826         * modules/unistr/u32-mbsnlen: Likewise.
17827         * modules/unistr/u32-mbtouc: Likewise.
17828         * modules/unistr/u32-mbtouc-unsafe: Likewise.
17829         * modules/unistr/u32-mbtoucr: Likewise.
17830         * modules/unistr/u32-move: Likewise.
17831         * modules/unistr/u32-next: Likewise.
17832         * modules/unistr/u32-prev: Likewise.
17833         * modules/unistr/u32-set: Likewise.
17834         * modules/unistr/u32-startswith: Likewise.
17835         * modules/unistr/u32-stpcpy: Likewise.
17836         * modules/unistr/u32-stpncpy: Likewise.
17837         * modules/unistr/u32-strcat: Likewise.
17838         * modules/unistr/u32-strchr: Likewise.
17839         * modules/unistr/u32-strcmp: Likewise.
17840         * modules/unistr/u32-strcoll: Likewise.
17841         * modules/unistr/u32-strcpy: Likewise.
17842         * modules/unistr/u32-strcspn: Likewise.
17843         * modules/unistr/u32-strdup: Likewise.
17844         * modules/unistr/u32-strlen: Likewise.
17845         * modules/unistr/u32-strmblen: Likewise.
17846         * modules/unistr/u32-strmbtouc: Likewise.
17847         * modules/unistr/u32-strncat: Likewise.
17848         * modules/unistr/u32-strncmp: Likewise.
17849         * modules/unistr/u32-strncpy: Likewise.
17850         * modules/unistr/u32-strnlen: Likewise.
17851         * modules/unistr/u32-strpbrk: Likewise.
17852         * modules/unistr/u32-strrchr: Likewise.
17853         * modules/unistr/u32-strspn: Likewise.
17854         * modules/unistr/u32-strstr: Likewise.
17855         * modules/unistr/u32-strtok: Likewise.
17856         * modules/unistr/u32-to-u16: Likewise.
17857         * modules/unistr/u32-to-u8: Likewise.
17858         * modules/unistr/u32-uctomb: Likewise.
17859         * modules/uniwbrk/u8-wordbreaks: Likewise.
17860         * modules/uniwbrk/u16-wordbreaks: Likewise.
17861         * modules/uniwbrk/u32-wordbreaks: Likewise.
17862         * modules/uniwbrk/ulc-wordbreaks: Likewise.
17863         * modules/uniwbrk/wordbreak-property: Likewise.
17864         * modules/uniwidth/u8-strwidth: Likewise.
17865         * modules/uniwidth/u8-width: Likewise.
17866         * modules/uniwidth/u16-strwidth: Likewise.
17867         * modules/uniwidth/u16-width: Likewise.
17868         * modules/uniwidth/u32-strwidth: Likewise.
17869         * modules/uniwidth/u32-width: Likewise.
17870         * modules/uniwidth/width: Likewise.
17871         * modules/unicase/cased-tests (Makefile.am): Link all test programs
17872         with $(LIBUNISTRING).
17873         * modules/unicase/ignorable-tests: Likewise.
17874         * modules/unicase/locale-language-tests: Likewise.
17875         * modules/unicase/tolower-tests: Likewise.
17876         * modules/unicase/totitle-tests: Likewise.
17877         * modules/unicase/toupper-tests: Likewise.
17878         * modules/unicase/u8-casecmp-tests: Likewise.
17879         * modules/unicase/u8-casecoll-tests: Likewise.
17880         * modules/unicase/u8-casefold-tests: Likewise.
17881         * modules/unicase/u8-is-cased-tests: Likewise.
17882         * modules/unicase/u8-is-casefolded-tests: Likewise.
17883         * modules/unicase/u8-is-lowercase-tests: Likewise.
17884         * modules/unicase/u8-is-titlecase-tests: Likewise.
17885         * modules/unicase/u8-is-uppercase-tests: Likewise.
17886         * modules/unicase/u8-tolower-tests: Likewise.
17887         * modules/unicase/u8-totitle-tests: Likewise.
17888         * modules/unicase/u8-toupper-tests: Likewise.
17889         * modules/unicase/u16-casecmp-tests: Likewise.
17890         * modules/unicase/u16-casecoll-tests: Likewise.
17891         * modules/unicase/u16-casefold-tests: Likewise.
17892         * modules/unicase/u16-is-cased-tests: Likewise.
17893         * modules/unicase/u16-is-casefolded-tests: Likewise.
17894         * modules/unicase/u16-is-lowercase-tests: Likewise.
17895         * modules/unicase/u16-is-titlecase-tests: Likewise.
17896         * modules/unicase/u16-is-uppercase-tests: Likewise.
17897         * modules/unicase/u16-tolower-tests: Likewise.
17898         * modules/unicase/u16-totitle-tests: Likewise.
17899         * modules/unicase/u16-toupper-tests: Likewise.
17900         * modules/unicase/u32-casecmp-tests: Likewise.
17901         * modules/unicase/u32-casecoll-tests: Likewise.
17902         * modules/unicase/u32-casefold-tests: Likewise.
17903         * modules/unicase/u32-is-cased-tests: Likewise.
17904         * modules/unicase/u32-is-casefolded-tests: Likewise.
17905         * modules/unicase/u32-is-lowercase-tests: Likewise.
17906         * modules/unicase/u32-is-titlecase-tests: Likewise.
17907         * modules/unicase/u32-is-uppercase-tests: Likewise.
17908         * modules/unicase/u32-tolower-tests: Likewise.
17909         * modules/unicase/u32-totitle-tests: Likewise.
17910         * modules/unicase/u32-toupper-tests: Likewise.
17911         * modules/unicase/ulc-casecmp-tests: Likewise.
17912         * modules/unicase/ulc-casecoll-tests: Likewise.
17913         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
17914         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
17915         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
17916         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
17917         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
17918         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
17919         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
17920         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
17921         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
17922         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
17923         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
17924         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
17925         * modules/unictype/bidicategory-byname-tests: Likewise.
17926         * modules/unictype/bidicategory-name-tests: Likewise.
17927         * modules/unictype/bidicategory-of-tests: Likewise.
17928         * modules/unictype/bidicategory-test-tests: Likewise.
17929         * modules/unictype/block-list-tests: Likewise.
17930         * modules/unictype/block-of-tests: Likewise.
17931         * modules/unictype/block-test-tests: Likewise.
17932         * modules/unictype/category-C-tests: Likewise.
17933         * modules/unictype/category-Cc-tests: Likewise.
17934         * modules/unictype/category-Cf-tests: Likewise.
17935         * modules/unictype/category-Cn-tests: Likewise.
17936         * modules/unictype/category-Co-tests: Likewise.
17937         * modules/unictype/category-Cs-tests: Likewise.
17938         * modules/unictype/category-L-tests: Likewise.
17939         * modules/unictype/category-Ll-tests: Likewise.
17940         * modules/unictype/category-Lm-tests: Likewise.
17941         * modules/unictype/category-Lo-tests: Likewise.
17942         * modules/unictype/category-Lt-tests: Likewise.
17943         * modules/unictype/category-Lu-tests: Likewise.
17944         * modules/unictype/category-M-tests: Likewise.
17945         * modules/unictype/category-Mc-tests: Likewise.
17946         * modules/unictype/category-Me-tests: Likewise.
17947         * modules/unictype/category-Mn-tests: Likewise.
17948         * modules/unictype/category-N-tests: Likewise.
17949         * modules/unictype/category-Nd-tests: Likewise.
17950         * modules/unictype/category-Nl-tests: Likewise.
17951         * modules/unictype/category-No-tests: Likewise.
17952         * modules/unictype/category-P-tests: Likewise.
17953         * modules/unictype/category-Pc-tests: Likewise.
17954         * modules/unictype/category-Pd-tests: Likewise.
17955         * modules/unictype/category-Pe-tests: Likewise.
17956         * modules/unictype/category-Pf-tests: Likewise.
17957         * modules/unictype/category-Pi-tests: Likewise.
17958         * modules/unictype/category-Po-tests: Likewise.
17959         * modules/unictype/category-Ps-tests: Likewise.
17960         * modules/unictype/category-S-tests: Likewise.
17961         * modules/unictype/category-Sc-tests: Likewise.
17962         * modules/unictype/category-Sk-tests: Likewise.
17963         * modules/unictype/category-Sm-tests: Likewise.
17964         * modules/unictype/category-So-tests: Likewise.
17965         * modules/unictype/category-Z-tests: Likewise.
17966         * modules/unictype/category-Zl-tests: Likewise.
17967         * modules/unictype/category-Zp-tests: Likewise.
17968         * modules/unictype/category-Zs-tests: Likewise.
17969         * modules/unictype/category-and-not-tests: Likewise.
17970         * modules/unictype/category-and-tests: Likewise.
17971         * modules/unictype/category-byname-tests: Likewise.
17972         * modules/unictype/category-name-tests: Likewise.
17973         * modules/unictype/category-none-tests: Likewise.
17974         * modules/unictype/category-of-tests: Likewise.
17975         * modules/unictype/category-or-tests: Likewise.
17976         * modules/unictype/category-test-withtable-tests: Likewise.
17977         * modules/unictype/combining-class-tests: Likewise.
17978         * modules/unictype/ctype-alnum-tests: Likewise.
17979         * modules/unictype/ctype-alpha-tests: Likewise.
17980         * modules/unictype/ctype-blank-tests: Likewise.
17981         * modules/unictype/ctype-cntrl-tests: Likewise.
17982         * modules/unictype/ctype-digit-tests: Likewise.
17983         * modules/unictype/ctype-graph-tests: Likewise.
17984         * modules/unictype/ctype-lower-tests: Likewise.
17985         * modules/unictype/ctype-print-tests: Likewise.
17986         * modules/unictype/ctype-punct-tests: Likewise.
17987         * modules/unictype/ctype-space-tests: Likewise.
17988         * modules/unictype/ctype-upper-tests: Likewise.
17989         * modules/unictype/ctype-xdigit-tests: Likewise.
17990         * modules/unictype/decimal-digit-tests: Likewise.
17991         * modules/unictype/digit-tests: Likewise.
17992         * modules/unictype/mirror-tests: Likewise.
17993         * modules/unictype/numeric-tests: Likewise.
17994         * modules/unictype/property-alphabetic-tests: Likewise.
17995         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
17996         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
17997         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
17998         * modules/unictype/property-bidi-block-separator-tests: Likewise.
17999         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
18000         * modules/unictype/property-bidi-common-separator-tests: Likewise.
18001         * modules/unictype/property-bidi-control-tests: Likewise.
18002         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
18003         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
18004         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
18005         * modules/unictype/property-bidi-european-digit-tests: Likewise.
18006         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
18007         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
18008         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
18009         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
18010         * modules/unictype/property-bidi-pdf-tests: Likewise.
18011         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
18012         * modules/unictype/property-bidi-whitespace-tests: Likewise.
18013         * modules/unictype/property-byname-tests: Likewise.
18014         * modules/unictype/property-combining-tests: Likewise.
18015         * modules/unictype/property-composite-tests: Likewise.
18016         * modules/unictype/property-currency-symbol-tests: Likewise.
18017         * modules/unictype/property-dash-tests: Likewise.
18018         * modules/unictype/property-decimal-digit-tests: Likewise.
18019         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
18020         * modules/unictype/property-deprecated-tests: Likewise.
18021         * modules/unictype/property-diacritic-tests: Likewise.
18022         * modules/unictype/property-extender-tests: Likewise.
18023         * modules/unictype/property-format-control-tests: Likewise.
18024         * modules/unictype/property-grapheme-base-tests: Likewise.
18025         * modules/unictype/property-grapheme-extend-tests: Likewise.
18026         * modules/unictype/property-grapheme-link-tests: Likewise.
18027         * modules/unictype/property-hex-digit-tests: Likewise.
18028         * modules/unictype/property-hyphen-tests: Likewise.
18029         * modules/unictype/property-id-continue-tests: Likewise.
18030         * modules/unictype/property-id-start-tests: Likewise.
18031         * modules/unictype/property-ideographic-tests: Likewise.
18032         * modules/unictype/property-ids-binary-operator-tests: Likewise.
18033         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
18034         * modules/unictype/property-ignorable-control-tests: Likewise.
18035         * modules/unictype/property-iso-control-tests: Likewise.
18036         * modules/unictype/property-join-control-tests: Likewise.
18037         * modules/unictype/property-left-of-pair-tests: Likewise.
18038         * modules/unictype/property-line-separator-tests: Likewise.
18039         * modules/unictype/property-logical-order-exception-tests: Likewise.
18040         * modules/unictype/property-lowercase-tests: Likewise.
18041         * modules/unictype/property-math-tests: Likewise.
18042         * modules/unictype/property-non-break-tests: Likewise.
18043         * modules/unictype/property-not-a-character-tests: Likewise.
18044         * modules/unictype/property-numeric-tests: Likewise.
18045         * modules/unictype/property-other-alphabetic-tests: Likewise.
18046         * modules/unictype/property-other-default-ignorable-code-point-tests:
18047         Likewise.
18048         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
18049         * modules/unictype/property-other-id-continue-tests: Likewise.
18050         * modules/unictype/property-other-id-start-tests: Likewise.
18051         * modules/unictype/property-other-lowercase-tests: Likewise.
18052         * modules/unictype/property-other-math-tests: Likewise.
18053         * modules/unictype/property-other-uppercase-tests: Likewise.
18054         * modules/unictype/property-paired-punctuation-tests: Likewise.
18055         * modules/unictype/property-paragraph-separator-tests: Likewise.
18056         * modules/unictype/property-pattern-syntax-tests: Likewise.
18057         * modules/unictype/property-pattern-white-space-tests: Likewise.
18058         * modules/unictype/property-private-use-tests: Likewise.
18059         * modules/unictype/property-punctuation-tests: Likewise.
18060         * modules/unictype/property-quotation-mark-tests: Likewise.
18061         * modules/unictype/property-radical-tests: Likewise.
18062         * modules/unictype/property-sentence-terminal-tests: Likewise.
18063         * modules/unictype/property-soft-dotted-tests: Likewise.
18064         * modules/unictype/property-space-tests: Likewise.
18065         * modules/unictype/property-terminal-punctuation-tests: Likewise.
18066         * modules/unictype/property-test-tests: Likewise.
18067         * modules/unictype/property-titlecase-tests: Likewise.
18068         * modules/unictype/property-unassigned-code-value-tests: Likewise.
18069         * modules/unictype/property-unified-ideograph-tests: Likewise.
18070         * modules/unictype/property-uppercase-tests: Likewise.
18071         * modules/unictype/property-variation-selector-tests: Likewise.
18072         * modules/unictype/property-white-space-tests: Likewise.
18073         * modules/unictype/property-xid-continue-tests: Likewise.
18074         * modules/unictype/property-xid-start-tests: Likewise.
18075         * modules/unictype/property-zero-width-tests: Likewise.
18076         * modules/unictype/scripts-tests: Likewise.
18077         * modules/unictype/syntax-c-ident-tests: Likewise.
18078         * modules/unictype/syntax-c-whitespace-tests: Likewise.
18079         * modules/unictype/syntax-java-ident-tests: Likewise.
18080         * modules/unictype/syntax-java-whitespace-tests: Likewise.
18081         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
18082         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
18083         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
18084         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
18085         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
18086         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
18087         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
18088         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
18089         * modules/uniname/uniname-tests: Likewise.
18090         * modules/uninorm/canonical-decomposition-tests: Likewise.
18091         * modules/uninorm/compat-decomposition-tests: Likewise.
18092         * modules/uninorm/composition-tests: Likewise.
18093         * modules/uninorm/decomposing-form-tests: Likewise.
18094         * modules/uninorm/decomposition-tests: Likewise.
18095         * modules/uninorm/filter-tests: Likewise.
18096         * modules/uninorm/nfc-tests: Likewise.
18097         * modules/uninorm/nfd-tests: Likewise.
18098         * modules/uninorm/nfkc-tests: Likewise.
18099         * modules/uninorm/nfkd-tests: Likewise.
18100         * modules/uninorm/u8-normcmp-tests: Likewise.
18101         * modules/uninorm/u8-normcoll-tests: Likewise.
18102         * modules/uninorm/u16-normcmp-tests: Likewise.
18103         * modules/uninorm/u16-normcoll-tests: Likewise.
18104         * modules/uninorm/u32-normcmp-tests: Likewise.
18105         * modules/uninorm/u32-normcoll-tests: Likewise.
18106         * modules/unistdio/u8-asnprintf-tests: Likewise.
18107         * modules/unistdio/u8-vasnprintf-tests: Likewise.
18108         * modules/unistdio/u8-vasprintf-tests: Likewise.
18109         * modules/unistdio/u8-vsnprintf-tests: Likewise.
18110         * modules/unistdio/u8-vsprintf-tests: Likewise.
18111         * modules/unistdio/u16-asnprintf-tests: Likewise.
18112         * modules/unistdio/u16-vasnprintf-tests: Likewise.
18113         * modules/unistdio/u16-vasprintf-tests: Likewise.
18114         * modules/unistdio/u16-vsnprintf-tests: Likewise.
18115         * modules/unistdio/u16-vsprintf-tests: Likewise.
18116         * modules/unistdio/u32-asnprintf-tests: Likewise.
18117         * modules/unistdio/u32-vasnprintf-tests: Likewise.
18118         * modules/unistdio/u32-vasprintf-tests: Likewise.
18119         * modules/unistdio/u32-vsnprintf-tests: Likewise.
18120         * modules/unistdio/u32-vsprintf-tests: Likewise.
18121         * modules/unistdio/ulc-asnprintf-tests: Likewise.
18122         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
18123         * modules/unistdio/ulc-vasprintf-tests: Likewise.
18124         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
18125         * modules/unistdio/ulc-vsprintf-tests: Likewise.
18126         * modules/unistr/u8-check-tests: Likewise.
18127         * modules/unistr/u8-chr-tests: Likewise.
18128         * modules/unistr/u8-cmp-tests: Likewise.
18129         * modules/unistr/u8-cmp2-tests: Likewise.
18130         * modules/unistr/u8-cpy-alloc-tests: Likewise.
18131         * modules/unistr/u8-cpy-tests: Likewise.
18132         * modules/unistr/u8-mblen-tests: Likewise.
18133         * modules/unistr/u8-mbsnlen-tests: Likewise.
18134         * modules/unistr/u8-mbtouc-tests: Likewise.
18135         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
18136         * modules/unistr/u8-mbtoucr-tests: Likewise.
18137         * modules/unistr/u8-move-tests: Likewise.
18138         * modules/unistr/u8-next-tests: Likewise.
18139         * modules/unistr/u8-prev-tests: Likewise.
18140         * modules/unistr/u8-set-tests: Likewise.
18141         * modules/unistr/u8-stpcpy-tests: Likewise.
18142         * modules/unistr/u8-stpncpy-tests: Likewise.
18143         * modules/unistr/u8-strcat-tests: Likewise.
18144         * modules/unistr/u8-strcmp-tests: Likewise.
18145         * modules/unistr/u8-strcoll-tests: Likewise.
18146         * modules/unistr/u8-strcpy-tests: Likewise.
18147         * modules/unistr/u8-strdup-tests: Likewise.
18148         * modules/unistr/u8-strlen-tests: Likewise.
18149         * modules/unistr/u8-strmblen-tests: Likewise.
18150         * modules/unistr/u8-strmbtouc-tests: Likewise.
18151         * modules/unistr/u8-strncat-tests: Likewise.
18152         * modules/unistr/u8-strncmp-tests: Likewise.
18153         * modules/unistr/u8-strncpy-tests: Likewise.
18154         * modules/unistr/u8-strnlen-tests: Likewise.
18155         * modules/unistr/u8-to-u16-tests: Likewise.
18156         * modules/unistr/u8-to-u32-tests: Likewise.
18157         * modules/unistr/u8-uctomb-tests: Likewise.
18158         * modules/unistr/u16-check-tests: Likewise.
18159         * modules/unistr/u16-chr-tests: Likewise.
18160         * modules/unistr/u16-cmp-tests: Likewise.
18161         * modules/unistr/u16-cmp2-tests: Likewise.
18162         * modules/unistr/u16-cpy-alloc-tests: Likewise.
18163         * modules/unistr/u16-cpy-tests: Likewise.
18164         * modules/unistr/u16-mblen-tests: Likewise.
18165         * modules/unistr/u16-mbsnlen-tests: Likewise.
18166         * modules/unistr/u16-mbtouc-tests: Likewise.
18167         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
18168         * modules/unistr/u16-mbtoucr-tests: Likewise.
18169         * modules/unistr/u16-move-tests: Likewise.
18170         * modules/unistr/u16-next-tests: Likewise.
18171         * modules/unistr/u16-prev-tests: Likewise.
18172         * modules/unistr/u16-set-tests: Likewise.
18173         * modules/unistr/u16-stpcpy-tests: Likewise.
18174         * modules/unistr/u16-stpncpy-tests: Likewise.
18175         * modules/unistr/u16-strcat-tests: Likewise.
18176         * modules/unistr/u16-strcmp-tests: Likewise.
18177         * modules/unistr/u16-strcoll-tests: Likewise.
18178         * modules/unistr/u16-strcpy-tests: Likewise.
18179         * modules/unistr/u16-strdup-tests: Likewise.
18180         * modules/unistr/u16-strlen-tests: Likewise.
18181         * modules/unistr/u16-strmblen-tests: Likewise.
18182         * modules/unistr/u16-strmbtouc-tests: Likewise.
18183         * modules/unistr/u16-strncat-tests: Likewise.
18184         * modules/unistr/u16-strncmp-tests: Likewise.
18185         * modules/unistr/u16-strncpy-tests: Likewise.
18186         * modules/unistr/u16-strnlen-tests: Likewise.
18187         * modules/unistr/u16-to-u32-tests: Likewise.
18188         * modules/unistr/u16-to-u8-tests: Likewise.
18189         * modules/unistr/u16-uctomb-tests: Likewise.
18190         * modules/unistr/u32-check-tests: Likewise.
18191         * modules/unistr/u32-chr-tests: Likewise.
18192         * modules/unistr/u32-cmp-tests: Likewise.
18193         * modules/unistr/u32-cmp2-tests: Likewise.
18194         * modules/unistr/u32-cpy-alloc-tests: Likewise.
18195         * modules/unistr/u32-cpy-tests: Likewise.
18196         * modules/unistr/u32-mblen-tests: Likewise.
18197         * modules/unistr/u32-mbsnlen-tests: Likewise.
18198         * modules/unistr/u32-mbtouc-tests: Likewise.
18199         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
18200         * modules/unistr/u32-mbtoucr-tests: Likewise.
18201         * modules/unistr/u32-move-tests: Likewise.
18202         * modules/unistr/u32-next-tests: Likewise.
18203         * modules/unistr/u32-prev-tests: Likewise.
18204         * modules/unistr/u32-set-tests: Likewise.
18205         * modules/unistr/u32-stpcpy-tests: Likewise.
18206         * modules/unistr/u32-stpncpy-tests: Likewise.
18207         * modules/unistr/u32-strcat-tests: Likewise.
18208         * modules/unistr/u32-strcmp-tests: Likewise.
18209         * modules/unistr/u32-strcoll-tests: Likewise.
18210         * modules/unistr/u32-strcpy-tests: Likewise.
18211         * modules/unistr/u32-strdup-tests: Likewise.
18212         * modules/unistr/u32-strlen-tests: Likewise.
18213         * modules/unistr/u32-strmblen-tests: Likewise.
18214         * modules/unistr/u32-strmbtouc-tests: Likewise.
18215         * modules/unistr/u32-strncat-tests: Likewise.
18216         * modules/unistr/u32-strncmp-tests: Likewise.
18217         * modules/unistr/u32-strncpy-tests: Likewise.
18218         * modules/unistr/u32-strnlen-tests: Likewise.
18219         * modules/unistr/u32-to-u16-tests: Likewise.
18220         * modules/unistr/u32-to-u8-tests: Likewise.
18221         * modules/unistr/u32-uctomb-tests: Likewise.
18222         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
18223         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
18224         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
18225         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
18226         * modules/uniwidth/u8-strwidth-tests: Likewise.
18227         * modules/uniwidth/u8-width-tests: Likewise.
18228         * modules/uniwidth/u16-strwidth-tests: Likewise.
18229         * modules/uniwidth/u16-width-tests: Likewise.
18230         * modules/uniwidth/u32-strwidth-tests: Likewise.
18231         * modules/uniwidth/u32-width-tests: Likewise.
18232         * modules/uniwidth/width-tests: Likewise.
18233
18234 2010-05-18  Richard Jones  <rjones@redhat.com>
18235
18236         doc: users.txt: list hivex
18237         * users.txt: Add hivex.
18238
18239 2010-05-18  Richard Jones  <rjones@redhat.com>
18240
18241         doc: users.txt: list febootstrap
18242         * users.txt: Add febootstrap.
18243
18244 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
18245
18246         bootstrap: fix an error when gnulib is not used as a git submodule
18247         * build-aux/bootstrap (gnulib_path): If its length is zero then
18248         assign "gnulib" to it.
18249         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
18250
18251 2010-05-16  Bruno Haible  <bruno@clisp.org>
18252
18253         Avoid autoconf warnings about AM_ICONV.
18254         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
18255         2.64.
18256
18257 2010-05-16  Bruno Haible  <bruno@clisp.org>
18258
18259         absolute-header: Make the macro usable in more situations.
18260         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
18261         from gl_ABSOLUTE_HEADER.
18262         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
18263
18264 2010-05-16  James Youngman  <jay@gnu.org>
18265
18266         doc: update users.txt
18267         * users.txt: Add CSSC.
18268
18269 2010-05-16  Jim Meyering  <meyering@redhat.com>
18270
18271         init.sh: fix an error in the previous change; add more comments
18272         * tests/init.sh: Compare exit code in loop against 9, not 2.
18273         Patch by Bruno Haible.
18274         Make the two tests more similar by adding an empty "then" clause.
18275         Add comments.
18276
18277         init.sh: avoid unnecessary shell re-exec
18278         * tests/init.sh: Improve the re-exec-required check to first test the
18279         current shell.  If it passes the test, do not search for a shell that
18280         does pass, and do not re-exec.  This test is particularly contorted to
18281         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
18282         of $(...) evokes a syntax error and causes immediate shell exit with
18283         status 2.  Bruno Haible reported that the re-exec made it impossible
18284         to single-step through any init.sh-using script.
18285
18286 2010-05-16  Bruno Haible  <bruno@clisp.org>
18287
18288         Fix collision between gnulib's and libintl's printf replacements.
18289         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
18290         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
18291         (printf): When using GNU C, map the __printf__ function to rpl_printf
18292         via __asm__. When not using GNU C, define rpl_printf instead of
18293         __printf__.
18294         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
18295         commit.
18296         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
18297         commit.
18298         * m4/asm-underscore.m4: New file.
18299         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
18300         * modules/stdio (Files): Add m4/asm-underscore.m4.
18301         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
18302         Reported by Ben Pfaff.
18303
18304 2010-05-16  Bruno Haible  <bruno@clisp.org>
18305
18306         verify: Avoid skipping the test on openSUSE 11.0.
18307         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
18308
18309 2010-05-13  Bruno Haible  <bruno@clisp.org>
18310
18311         Avoid useless warnings from G++.
18312         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
18313         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
18314         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
18315
18316 2010-05-11  Jim Meyering  <meyering@redhat.com>
18317
18318         maint.mk: tweak preceding change
18319         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
18320         regexps tighter by anchoring at EOL, and make the new group "shy"
18321         for slightly decreased overhead.
18322
18323 2010-05-11  Eric Blake  <eblake@redhat.com>
18324
18325         maint.mk: gnulib doesn't guarantee NSIG
18326         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
18327
18328 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
18329
18330         test-pwrite.c: Remove unused variable declaration.
18331         * tests/test-pwrite.c (main): Remove read_buf declaration.
18332
18333         Remove useless test-pwrite.sh file.
18334         * tests/test-pwrite.sh: Delete file.
18335         * modules/pwrite-tests: Remove references.
18336         Reported by Bruno Haible.
18337
18338 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
18339
18340         init.sh: fix a typo
18341         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
18342
18343 2010-05-10  Jim Meyering  <meyering@redhat.com>
18344
18345         maint.mk: avoid using a temporary file in the always-defined-macros check
18346         * top/maint.mk (.re-defmac): Remove rule.
18347         (gl_trap_): Remove definition.
18348         (sc_prohibit_always-defined_macros): Rewrite not to create and
18349         depend on a temporary file.  Instead, depend on GNU grep's ability
18350         to read a list of regular expressions from stdin when given "-f -".
18351
18352 2010-05-09  Bruno Haible  <bruno@clisp.org>
18353
18354         Update to GNU gettext 0.18, part 1.
18355         * m4/gettext.m4: Update to GNU gettext 0.18.
18356         * m4/intl.m4: Likewise.
18357         * m4/po.m4: Likewise.
18358         * modules/gettext (Files): Add m4/fcntl-o.m4.
18359         (configure.ac): Require gettext infrastructure from version 0.18.
18360
18361 2010-05-09  Jim Meyering  <meyering@redhat.com>
18362
18363         init.sh: enable MALLOC_PERTURB_
18364         * tests/init.sh: Enable glibc's malloc-perturbing option.
18365
18366         maint.mk: improve sc_cross_check_PATH_usage_in_tests
18367         With my recent change in init.sh from the two-line form:
18368             -#   : ${srcdir=.}
18369             -#   . "$srcdir/init.sh"; path_prepend_ .
18370             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
18371         I noticed that using the one-line form would cause this test
18372         to fail with a false-positive, or to stop working altogether,
18373         depending on whether help-version changed or all the tests did.
18374         * top/maint.mk (_hv_regex): Remove this definition.
18375         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
18376         (_hv_regex_strong): Use a stronger regex to check for conformance.
18377         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
18378         Give a separate diagnostic for lack of conforming use.
18379
18380         maint.mk: prohibit definition of symbols defined by gnulib
18381         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
18382         definition of symbols defined by gnulib.
18383
18384 2010-05-09  Bruno Haible  <bruno@clisp.org>
18385
18386         acl: Avoid test failure on Cygwin-hosted mingw.
18387         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
18388
18389 2010-05-09  Bruno Haible  <bruno@clisp.org>
18390
18391         error: Use system's fcntl function.
18392         * lib/error.c (fcntl): Undefine.
18393
18394 2010-05-09  Jim Meyering  <meyering@redhat.com>
18395
18396         verify: adjust formatting to be more consistent
18397         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
18398         argument-list '('s, and after one comma.
18399
18400 2010-05-09  Bruno Haible  <bruno@clisp.org>
18401
18402         error: More reliable output on mingw.
18403         * lib/error.c: Include <windows.h>.
18404         (is_open): New function.
18405         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
18406         defined.
18407
18408 2010-05-09  Bruno Haible  <bruno@clisp.org>
18409
18410         vasnprintf: Fix syntax errors in libintl build on mingw.
18411         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
18412         pad_ourselves and prec_ourselves after use.
18413
18414 2010-05-08  Bruno Haible  <bruno@clisp.org>
18415
18416         * lib/config.charset: Update comments for Cygwin 1.7.
18417         * lib/localcharset.c: Likewise.
18418
18419 2010-05-07  Jim Meyering  <meyering@redhat.com>
18420
18421         init.sh: improve comments
18422         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
18423         . "${srcdir=.}/init.sh"; path_prepend_ .
18424         Add a note about path_prepend_ and the alternative of using
18425         TESTS_ENVIRONMENT.
18426
18427 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
18428
18429         exclude: Unescape hashed patterns in wildcard mode.
18430         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
18431         to the hash list.
18432         * tests/test-exclude8.sh: New test case.
18433         * modules/exclude-tests: Add new test.
18434
18435 2010-05-05  Eric Blake  <eblake@redhat.com>
18436
18437         verify: automate tests
18438         * modules/verify-tests: New module.
18439         * tests/test-verify.sh: New file.
18440         * tests/test-verify.c: Guard each negative test with a unique id.
18441         Also avoid warning about unused left hand of comma expressions.
18442
18443 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
18444
18445         Further improvements to verify.h, suggested by Eric Blake.
18446         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
18447         the GL_* versions, to avoid collision with OpenGL.
18448         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
18449         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
18450         than testing merely whether it's defined.
18451
18452         Modify verify.h to pacify gcc -Wredundant_decls.
18453         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
18454         These use the prefix "GL_" since they're likely to be useful elsewhere.
18455         We may need to break them out into a different .h file.
18456         (__COUNTER__): Define to 0 if the compiler doesn't support it.
18457         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
18458         of verify_function__.
18459
18460 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
18461
18462         Tests for module pwrite.
18463         * modules/pwrite-tests: New file.
18464         * tests/test-pwrite.sh: New file.
18465         * tests/test-pwrite.c: New file.
18466
18467         New module pwrite.
18468         * lib/unistd.in.h (pwrite): New declaration.
18469         * lib/pwrite.c: New file, from glibc with modifications.
18470         * m4/pwrite.m4: New file.
18471         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
18472         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
18473         REPLACE_PWRITE.
18474         * modules/pwrite: New file.
18475         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
18476         REPLACE_PWRITE.
18477         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
18478         * doc/posix-functions/pwrite.texi: Mention the new module.
18479
18480 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
18481
18482         pread: Update documentation.
18483         * doc/posix-functions/pread.texi: Mention the 'pread' module.
18484
18485 2010-05-04  Eric Blake  <eblake@redhat.com>
18486
18487         docs: update cygwin progress
18488         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
18489         this bug.
18490         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
18491         Added in cygwin 1.7.2.
18492         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
18493         Likewise.
18494         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
18495         Likewise.
18496         * doc/glibc-functions/dup3.texi (dup3): Likewise.
18497         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
18498         * doc/glibc-functions/accept4.texi (accept4): Likewise.
18499         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
18500         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
18501         Mention nproc module.
18502         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
18503         bug in cygwin 1.7.5 addition.
18504         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
18505         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
18506         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
18507         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
18508         1.7.5.
18509         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
18510         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
18511         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
18512         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
18513         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
18514         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
18515         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
18516         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
18517         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
18518         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
18519         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
18520         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
18521         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
18522         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
18523         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
18524         Likewise.
18525         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
18526         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
18527         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
18528         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
18529         Likewise.
18530         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
18531         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
18532         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
18533         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
18534         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
18535         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
18536         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
18537         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
18538         Likewise.
18539         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
18540         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
18541         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
18542         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
18543         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
18544         Likewise.
18545         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
18546         Likewise.
18547         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
18548         Likewise.
18549         * doc/glibc-functions/xdrrec_endofrecord.texi
18550         (xdrrec_endofrecord): Likewise.
18551         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
18552         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
18553         Likewise.
18554         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
18555         Likewise.
18556
18557 2010-05-04  Jim Meyering  <meyering@redhat.com>
18558
18559         gendocs.sh: make its "-s FILE" option more useful
18560         * build-aux/gendocs.sh: When honoring the -s FILE option, update
18561         $PACKAGE to reflect the probably-different basename of "FILE".
18562
18563 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
18564
18565         bootstrap: don't ignore download_po_files failure
18566         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
18567         failure.
18568
18569 2010-05-03  Jim Meyering  <meyering@redhat.com>
18570
18571         maint.mk: allow to pass options to gendocs.sh
18572         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
18573         (gendocs_options_): New overridable variable.
18574
18575         gnu-web-doc-update: don't ignore configure or build failure
18576         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
18577
18578         announce-gen: backslash-escape '@'s in --help output
18579         * build-aux/announce-gen: Fix syntax errors.
18580
18581         maint.mk, announce-gen: allow project-specific announcement mail headers
18582         * top/maint.mk (translation_project_): Define default.
18583         (announcement_Cc_, announcement_mail_headers_): Likewise.
18584         (announcement): Invoke announce-gen with new --mail-headers option.
18585         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
18586
18587         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
18588         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
18589         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
18590         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
18591         line in the "err2" output file when running "make check" in verbose
18592         mode (i.e., with set -x enabled).
18593
18594 2010-05-03  Bruno Haible  <bruno@clisp.org>
18595
18596         wctob: Fix for weird platforms.
18597         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
18598         argument value.
18599
18600 2010-05-03  Jim Meyering  <meyering@redhat.com>
18601
18602         maint.mk: prohibit unwarranted use of <strings.h>
18603         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
18604         strings.h in a file that does not also use strcasecmp, strncasecmp,
18605         ffs or ffsll.
18606
18607         maint.mk: remove obsolete comments
18608         * top/maint.mk: Remove stale, commented-out rules.
18609
18610 2010-05-02  Bruno Haible  <bruno@clisp.org>
18611
18612         wcwidth: Declare also when it's aliased.
18613         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
18614         macro.
18615
18616 2010-05-02  Bruno Haible  <bruno@clisp.org>
18617
18618         Fix regression from 2010-04-25.
18619         * gnulib-tool (func_modules_transitive_closure): Check the status of
18620         all modules, not only of the tests that are of the form foo-tests where
18621         foo is a module.
18622
18623 2010-05-02  Bruno Haible  <bruno@clisp.org>
18624
18625         wctob: Work around nasty Cygwin 1.7.2 bug.
18626         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
18627         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
18628
18629 2010-05-01  Bruno Haible  <bruno@clisp.org>
18630
18631         fpurge: Sharper test.
18632         * tests/test-fpurge.c (main): Add one more ftell check.
18633         * modules/fpurge-tests (Depends-on): Add ftell.
18634         Suggested by Eric Blake.
18635
18636 2010-05-01  Bruno Haible  <bruno@clisp.org>
18637
18638         ftello: Another test.
18639         * tests/test-ftello3.c: New file.
18640         * modules/ftello-tests (Files): Add it.
18641         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
18642         MOSTLYCLEANFILES.
18643
18644         ftell: Another test.
18645         * tests/test-ftell3.c: New file.
18646         * modules/ftell-tests (Files): Add it.
18647         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
18648         MOSTLYCLEANFILES.
18649
18650 2010-05-01  Bruno Haible  <bruno@clisp.org>
18651
18652         ftell, ftello: Work around Solaris bug.
18653         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
18654         * lib/ftello.c: Include stdio-impl.h.
18655         (ftello): On Solaris, when _IOWRT is set, compute the result without
18656         looking at _IOREAD.
18657         * modules/ftello (Files): Add lib/stdio-impl.h.
18658         * doc/posix-functions/ftell.texi: Mention Solaris bug.
18659         * doc/posix-functions/ftello.texi: Likewise.
18660         Reported by Eric Blake.
18661
18662 2010-05-01  Bruno Haible  <bruno@clisp.org>
18663
18664         freading: Adapt to special meaning of _IOREAD flag on Solaris.
18665         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
18666         the _IOWRT flag is also set.
18667
18668 2010-05-01  Bruno Haible  <bruno@clisp.org>
18669
18670         Fix doc about a HP-UX stdio bug.
18671         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
18672         * doc/posix-functions/ftello.texi: Likewise.
18673
18674 2010-05-01  Bruno Haible  <bruno@clisp.org>
18675
18676         lseek test: Fix failure on Solaris.
18677         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
18678         output.
18679
18680 2010-04-30  Jim Meyering  <meyering@redhat.com>
18681
18682         bootstrap: don't ignore failure to generate po*/Makevars
18683         * build-aux/bootstrap (with_gettext): Don't ignore failure
18684         to create po/Makevars or runtime-po/Makevars.
18685
18686 2010-04-29  Eric Blake  <eblake@redhat.com>
18687
18688         headers: relax license to LGPLv2+
18689         * modules/fcntl-h (License): Relax license.
18690         * modules/getopt-posix (License): Likewise.
18691         * modules/locale (License): Likewise.
18692         * modules/math (License): Likewise.
18693         * modules/pty (License): Likewise.
18694         * modules/sched (License): Likewise.
18695         * modules/search (License): Likewise.
18696         * modules/spawn (License): Likewise.
18697         * modules/stdarg (License): Likewise.
18698         * modules/sysexits (License): Likewise.
18699
18700 2010-04-29  Jim Meyering  <meyering@redhat.com>
18701
18702         inttypes: relax license to LGPLv2+
18703         * modules/inttypes (License): Relax license.
18704
18705 2010-04-29  Simon Josefsson  <simon@josefsson.org>
18706
18707         * top/maint.mk (indent): Run twice to produce idempotent results.
18708
18709 2010-04-28  Bruno Haible  <bruno@clisp.org>
18710
18711         getdate: Generate getdate.c in the source directory.
18712         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
18713         MOSTLYCLEANFILES.
18714         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
18715
18716 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
18717
18718         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
18719         is not declared as a const *; avoid warnings in that case.
18720
18721 2010-04-28  Eric Blake  <eblake@redhat.com>
18722
18723         canonicalize-lgpl: avoid compiler warning
18724         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
18725         declaration' / 'extraneous semicolon' warning with some compilers.
18726         Reported by Andreas Gruenbacher.
18727
18728 2010-04-28  Jim Meyering  <meyering@redhat.com>
18729
18730         init.sh: ensure a more reliable exit status when exiting via trap
18731         * tests/init.sh (setup_): Don't rely on $? in signal handler.
18732         Inspired by patches from Dmitry V. Levin.
18733         Also trap on signal 3 (SIGQUIT).
18734
18735 2010-04-27  Bruno Haible  <bruno@clisp.org>
18736
18737         Update doc about utimes().
18738         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
18739         'utimens' module.
18740         Reported by Andreas Gruenbacher <agruen@suse.de>.
18741
18742 2010-04-27  Eric Blake  <eblake@redhat.com>
18743
18744         full-read, full-write: relax license
18745         * modules/full-read (License): Drop to LGPLv2+.
18746         * modules/full-write (License): Likewise.
18747         * modules/safe-read (License): Likewise.
18748         * modules/safe-write (License): Likewise.
18749
18750         pthread: mention library for linking
18751         * modules/pthread (Link): Mention $(LIB_PTHREAD).
18752
18753 2010-04-27  Jim Meyering  <meyering@redhat.com>
18754
18755         maint.mk: fix a bug introduced in last change
18756         * top/maint.mk (gl_assured_headers_): Now that all names are on
18757         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
18758         is not anchored to end of word, it should be adequate.
18759
18760         maint.mk: avoid side-effect in latest syntax-check
18761         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
18762         to run commands via $(shell...), and hence to incur cost only when
18763         the new rule is actually run.
18764
18765         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
18766         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
18767         and use that to create a regexp used to detect all #if HAVE_..._H uses.
18768         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
18769         (gl_assured_headers_, az_, AZ_): Define.
18770         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
18771
18772 2010-04-26  Jim Meyering  <jim@meyering.net>
18773             Bruno Haible  <bruno@clisp.org>
18774
18775         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
18776         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
18777         Prompted by an exchange with Gilles Espinasse.
18778
18779 2010-04-26  Jim Meyering  <meyering@redhat.com>
18780
18781         git-version-gen: aesthetic tweak
18782         * build-aux/git-version-gen: Use "$nl" rather than a literal,
18783         so that the command remains on a single line.
18784
18785 2010-04-26  Eric Blake  <eblake@redhat.com>
18786
18787         git-version-gen: allow use on EBCDIC hosts
18788         * build-aux/git-version-gen (dirty): Use literal rather than tying
18789         ourselves to ascii.
18790         Reported by Steve Goetze.
18791
18792 2010-04-25  Bruno Haible  <bruno@clisp.org>
18793
18794         netdb: Add support for GNULIB_POSIXCHECK.
18795         * lib/netdb.in.h: Include warn-on-use.h.
18796         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
18797         functions are used when GNULIB_POSIXCHECK is defined and the
18798         getaddrinfo module is not in use.
18799         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
18800         freeaddrinfo, gai_strerror, getnameinfo are declared.
18801         * modules/netdb (Depends-on): Add warn-on-use.
18802         (Makefile.am): Include warn-on-use.h in netdb.h.
18803
18804 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
18805
18806         build: avoid "make check" failure without .git/ directory
18807         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
18808         there is no .git/ directory.
18809
18810 2010-04-25  Bruno Haible  <bruno@clisp.org>
18811
18812         ptsname: Fix misuse of ttyname_r.
18813         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
18814         of errno.
18815
18816 2010-04-25  Bruno Haible  <bruno@clisp.org>
18817
18818         ttyname_r: Make it work on Solaris 10.
18819         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
18820         if the system function has the POSIX declaration. Test whether the
18821         function fails if the buffer is less than 128 bytes large.
18822         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
18823         system's ttyname_r function. Provide a reasonably large buffer.
18824         * modules/ttyname_r (Depends-on): Add extensions.
18825         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
18826
18827 2010-04-25  Bruno Haible  <bruno@clisp.org>
18828
18829         Use the 'extensions' module for some more functions on Solaris.
18830         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
18831         module.
18832         * doc/posix-functions/ctime_r.texi: Likewise.
18833         * doc/posix-functions/getgrgid_r.texi: Likewise.
18834         * doc/posix-functions/getgrnam_r.texi: Likewise.
18835         * doc/posix-functions/getpwnam_r.texi: Likewise.
18836         * doc/posix-functions/getpwuid_r.texi: Likewise.
18837         * doc/posix-functions/readdir_r.texi: Likewise.
18838         * doc/posix-functions/sigwait.texi: Likewise.
18839         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
18840         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
18841
18842 2010-04-25  Bruno Haible  <bruno@clisp.org>
18843
18844         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
18845         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
18846         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
18847         * lib/ttyname_r.c: Include <limits.h>.
18848         (ttyname_r): Define using the system's ttyname_r function, if it exists
18849         and not on Solaris.
18850         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
18851         set.
18852         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
18853         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
18854         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
18855         Reported by Simon Josefsson.
18856
18857 2010-04-25  Bruno Haible  <bruno@clisp.org>
18858
18859         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
18860         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
18861         * doc/posix-functions/ctime_r.texi: Likewise.
18862         * doc/posix-functions/getgrgid_r.texi: Likewise.
18863         * doc/posix-functions/getgrnam_r.texi: Likewise.
18864         * doc/posix-functions/getlogin_r.texi: Likewise.
18865         * doc/posix-functions/getpwnam_r.texi: Likewise.
18866         * doc/posix-functions/getpwuid_r.texi: Likewise.
18867         * doc/posix-functions/readdir_r.texi: Likewise.
18868         * doc/posix-functions/sigwait.texi: Likewise.
18869         * doc/posix-functions/ttyname_r.texi: Likewise.
18870         Reported by Simon Josefsson.
18871
18872 2010-04-25  Bruno Haible  <bruno@clisp.org>
18873
18874         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
18875         * gnulib-tool (func_usage): Document that --with-*-tests options apply
18876         also to --create-testdir.
18877         (func_acceptable): Don't consider the status of *-tests modules here.
18878         (func_modules_transitive_closure): Consider it here, before including a
18879         test module.
18880         (func_import, func_create_testdir): Set inc_all_direct_tests,
18881         inc_all_indirect_tests.
18882         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
18883         --create-testdir and --create-megatestdir.
18884
18885 2010-04-25  Bruno Haible  <bruno@clisp.org>
18886
18887         gnulib-tool: Add --without-*-tests options.
18888         * gnulib-tool (func_usage): Document the --without-*-tests options.
18889         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
18890         excl_unportable_tests): New variables.
18891         Fail if they are specified with --import or --update.
18892         (func_acceptable): Respect the excl_*_tests variables.
18893         (func_import): Set the excl_*_tests variables to empty.
18894
18895 2010-04-25  Simon Josefsson  <simon@josefsson.org>
18896             Bruno Haible  <bruno@clisp.org>
18897
18898         Work around a MacOS X 10.4 bug with openpty.
18899         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
18900         * tests/test-openpty.c (main): Close the master side explicitly.
18901
18902 2010-04-25  Bruno Haible  <bruno@clisp.org>
18903
18904         strnlen: Fix a C++ test error on MacOS X and Solaris.
18905         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
18906         the function is not declared.
18907         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
18908         Simon Josefsson.
18909
18910 2010-04-24  Bruno Haible  <bruno@clisp.org>
18911
18912         Avoid a gcc warning.
18913         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
18914         of correct type for %08lx directive.
18915         Reported by Eric Blake.
18916
18917 2010-04-24  Bruno Haible  <bruno@clisp.org>
18918
18919         vasnprintf: Correct errno value in case of out-of-memory.
18920         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
18921         or sprintf. Use the errno value from SNPRINTF or sprintf.
18922         Reported by Ian Beckwith <ianb@erislabs.net>.
18923
18924 2010-04-24  Bruno Haible  <bruno@clisp.org>
18925
18926         ansi-c++-opt: Find correct compiler when cross-compiling.
18927         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
18928         AC_CHECK_PROGS.
18929         Reported by Simon Josefsson.
18930
18931 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
18932
18933         vc-list-files: Add support for subversion
18934         * build-aux/vc-list-files: Use "svn list" to generate the list of
18935         files controlled by subversion.
18936
18937 2010-04-23  Jim Meyering  <meyering@redhat.com>
18938
18939         vc-list-files tests: convert to use init.sh
18940         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
18941         path_prepend_.
18942         Use Exit, not exit.
18943         Use skip_ rather than open coding it.
18944         Remove trap set-up and compare definitions.
18945         * tests/test-vc-list-files-git.sh: Likewise.
18946         * modules/vc-list-files-tests (Files): Add tests/init.sh.
18947
18948 2010-04-22  Simon Josefsson  <simon@josefsson.org>
18949
18950         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
18951         backup files.
18952
18953 2010-04-21  Simon Josefsson  <simon@josefsson.org>
18954
18955         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
18956
18957 2010-04-20  Eric Blake  <eblake@redhat.com>
18958
18959         tests: be robust to ignored SIGPIPE
18960         * tests/test-select-in.sh: Consume all output.
18961         * tests/test-lseek.sh: Check correct exit status, while avoiding
18962         EPIPE.
18963
18964 2010-04-20  Simon Josefsson  <simon@josefsson.org>
18965             Bruno Haible  <bruno@clisp.org>
18966
18967         visibility: Don't use -fvisibility if it leads to a warning.
18968         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
18969         yes, don't pretend that visibility works if it leads to a warning.
18970         Reported by Mike Gran <spk121@yahoo.com>.
18971
18972 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
18973
18974         * build-aux/bootstrap: Use "git -h" for testing for supported options
18975         instead of "git --help".  The short-form option only shows a summary,
18976         and doesn't layout the full man page.  Grep for the full option name
18977         in the summary, too.
18978
18979 2010-04-19  Bruno Haible  <bruno@clisp.org>
18980
18981         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
18982         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
18983         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
18984         mention of RELOCATABLE_STRIP.
18985         Reported by Sylvain Beucler <beuc@beuc.net>.
18986
18987 2010-04-19  Bruno Haible  <bruno@clisp.org>
18988
18989         * lib/diffseq.h: Fix typo in comment.
18990         Reported by Eric Blake.
18991
18992 2010-04-19  Bruno Haible  <bruno@clisp.org>
18993
18994         ioctl: Move autoconf macro to a .m4 file.
18995         * m4/ioctl.m4: New file, extracted from modules/ioctl.
18996         * modules/ioctl (Files): Add it.
18997         (configure.ac): Simply invoke gl_FUNC_IOCTL.
18998         Reported by Ian Beckwith <ianb@erislabs.net>.
18999
19000 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
19001             Bruno Haible  <bruno@clisp.org>
19002
19003         diffseq: Accommodate use-case with abstract arrays.
19004         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
19005         is not defined.
19006         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
19007         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
19008
19009 2010-04-18  Bruno Haible  <bruno@clisp.org>
19010
19011         * doc/posix-headers/stdbool.texi: More precise wording.
19012
19013 2010-04-17  Jim Meyering  <meyering@redhat.com>
19014
19015         maint.mk: use gnu-style indentation in an embedded perl script
19016         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
19017         Rename variable: s/two/last_two_bytes/
19018
19019 2010-04-16  Eric Blake  <eblake@redhat.com>
19020
19021         test-stdbool: skip test that fails with Solaris CC
19022         * tests/test-stdbool.c (f): Skip test that causes compilation
19023         error under buggy C++ compiler.
19024         * lib/stdbool.in.h: Document the limitation.
19025         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
19026
19027         setenv: allow compilation with C++
19028         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
19029         register keyword.
19030
19031         stdint: allow test to pass with C++
19032         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
19033
19034         getopt: allow compilation with C++
19035         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
19036         struct.
19037         * lib/getopt.c (_getopt_internal_r): Use correct type.
19038         Reported by Dagobert Michelson, via Joel E. Denny.
19039
19040 2010-04-16  Bruno Haible  <bruno@clisp.org>
19041
19042         Override netdb.h always.
19043         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
19044         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
19045         Reported by Ludovic Courtès <ludo@gnu.org>.
19046
19047 2010-04-15  Bruno Haible  <bruno@clisp.org>
19048
19049         openpty: Fix mistake from 2010-03-21.
19050         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
19051         Reported by Simon Josefsson.
19052
19053 2010-04-15  Eric Blake  <eblake@redhat.com>
19054
19055         test-forkpty: fix expected signature
19056         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
19057         Reported by Simon Josefsson.
19058
19059 2010-04-15  Jim Meyering  <meyering@redhat.com>
19060
19061         maint.mk: texinfo_suffix_re_: correct the default regexp
19062         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
19063
19064         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
19065         make it configurable via texinfo_suffix_re_.
19066
19067 2010-04-14  Eric Blake  <eblake@redhat.com>
19068
19069         strtok_r: relax license to LGPLv2+
19070         * modules/strtok_r (License): Relax license.
19071         Reported by Matthias Bolte.
19072
19073 2010-04-14  Simon Josefsson  <simon@josefsson.org>
19074
19075         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
19076         version 1.4.4 by default instead of requiring the libgcrypt
19077         version used during build.  This makes it possible to use the
19078         application with older but still binary compatible libgcrypt
19079         versions.
19080
19081 2010-04-13  Eric Blake  <eblake@redhat.com>
19082
19083         getopt-gnu: match recent glibc fixes and posix ruling
19084         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
19085         '+' handling, when requesting extensions.
19086         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
19087         'W;' handling.
19088         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
19089         * doc/posix-functions/getopt.texi (getopt): Document this.
19090         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
19091         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
19092         Likewise.
19093
19094         getopt: merge bug fixes from glibc
19095         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
19096         diagnostics.  Honor '+:' correctly.  Reject ';'.
19097
19098         getopt-posix: detect MacOS bug
19099         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
19100         optind when missing a required argument.
19101         * doc/posix-functions/getopt.texi (getopt): Document the bug.
19102         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
19103         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
19104         Likewise.
19105
19106         getopt-posix: avoid spurious failure on Solaris
19107         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
19108         an indicator that setting optind=1 is sufficient for reset.
19109
19110         getopt-posix: avoid spurious failure on FreeBSD
19111         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
19112         in POSIX mode, since the m4 test uses it.
19113
19114         gnulib-tool: silence warning on BSD sh
19115         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
19116
19117 2010-04-13  Jim Meyering  <meyering@redhat.com>
19118
19119         doc: users.txt: GNU patch now uses gnulib
19120         * users.txt: Add patch.
19121
19122 2010-04-12  Jim Meyering  <meyering@redhat.com>
19123
19124         maint.mk: generate more concise timing data for syntax-check rules
19125         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
19126         " done" from each line that reports a syntax-check test duration.
19127
19128 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
19129
19130         git-version-gen: use "git update-index..." rather than "git status"
19131         * build-aux/git-version-gen: Use git update-index --refresh, not
19132         "git status".  With some versions of git, "git status" would fail
19133         to update the index and result in an unwarranted "-dirty" suffix.
19134
19135 2010-04-11  Jim Meyering  <meyering@redhat.com>
19136
19137         openat: correct formatting (no semantic change)
19138         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
19139         Suggested by Bruno Haible.
19140
19141 2010-04-11  Bruno Haible  <bruno@clisp.org>
19142
19143         Stricter declaration checking in testdirs.
19144         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
19145         If for_tests is true, augment AM_CPPFLAGS to define
19146         GNULIB_STRICT_CHECKING.
19147         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
19148         GNULIB_STRICT_CHECKING is defined, verify that the function is
19149         declared.
19150
19151 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
19152             Bruno Haible  <bruno@clisp.org>
19153
19154         libunistring: Improve configure output.
19155         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
19156         Don't say "consider installing GNU libunistring" when checking again
19157         with libiconv.
19158
19159 2010-04-11  Bruno Haible  <bruno@clisp.org>
19160
19161         libunistring: Correct value of $LTLIBUNISTRING.
19162         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
19163         correct the value of $LTLIBUNISTRING.
19164
19165 2010-04-11  Bruno Haible  <bruno@clisp.org>
19166
19167         havelib: Add static libraries to LIBS in the right order.
19168         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
19169         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
19170
19171 2010-04-11  Bruno Haible  <bruno@clisp.org>
19172
19173         libunistring: Detect libunistring also when it depends on libiconv.
19174         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
19175         the second AC_LIB_HAVE_LINKFLAGS invocation.
19176
19177 2010-04-11  James Youngman  <jay@gnu.org>
19178
19179         close-stream: declare local scalars to be "const"
19180         * lib/close-stream.c (close_stream): Make boolean variables const
19181         to document the fact that we set but do not change them.
19182
19183 2010-04-11  Bruno Haible  <bruno@clisp.org>
19184
19185         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
19186
19187 2010-04-11  Jim Meyering  <meyering@redhat.com>
19188
19189         maint.mk: don't include dist-check.mk
19190         * top/maint.mk: Remove bogus include directive.
19191
19192         maint.mk: improve empty-line-at-EOF check
19193         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
19194         solution, rather than tail+Perl-based one.  The latter would read
19195         a few kilobytes from the end of each file, and did not handle empty
19196         files properly.
19197
19198         maint.mk: print the elapsed time for each syntax-check rule
19199         * top/maint.mk (sc_m_rules_): Save start time in a file.
19200         (sc_z_rules_): New rules: remove temp file and print elapsed time.
19201         (local-check): Interpose the .z rules
19202
19203 2010-04-11  Jim Meyering  <meyering@redhat.com>
19204
19205         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
19206         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
19207         empty file with one that ends in an empty line.
19208
19209 2010-04-10  Bruno Haible  <bruno@clisp.org>
19210
19211         mkdir: Make it work on mingw64.
19212         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
19213         * lib/mkdir.c: Update comment.
19214         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
19215
19216 2010-04-10  Bruno Haible  <bruno@clisp.org>
19217
19218         Don't override improved macro from newer autoconf.
19219         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
19220         autoconf >= 2.62.
19221         Reported by Joel E. Denny <jdenny@clemson.edu>.
19222
19223 2010-04-10  Jim Meyering  <meyering@redhat.com>
19224
19225         maint.mk: new syntax-check rule: prohibit empty lines at end of file
19226         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
19227
19228         maint.mk: correct a diagnostic
19229         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
19230         in diagnostic; now use $prohibit.
19231
19232 2010-04-10  Bruno Haible  <address@hidden>
19233
19234         fchownat: Fix a C++ test error on Solaris 8.
19235         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
19236         the function does not exist.
19237
19238 2010-04-10  Bruno Haible  <bruno@clisp.org>
19239
19240         vasnprintf: Add more tests.
19241         * tests/test-vasnprintf-posix.c: Include <errno.h>.
19242         (test_function): Test converting an invalid wide string.
19243
19244         vasnprintf: Correct handling of unconvertible wide string arguments.
19245         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
19246         VASNPRINTF.
19247         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
19248         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
19249         smaller than the expected maximum need for the directive. Set errno to
19250         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
19251         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
19252         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
19253         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
19254         * modules/vasnprintf (Files): Add m4/printf.m4.
19255         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
19256
19257 2010-04-10  Bruno Haible  <bruno@clisp.org>
19258
19259         vasnprintf: Fix crash in %ls directive.
19260         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
19261         string is passed as argument to %ls, with no precision and no width.
19262         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
19263
19264 2010-04-10  Bruno Haible  <bruno@clisp.org>
19265
19266         vasnprintf: Fix multiple test failures on mingw.
19267         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
19268         _snprintf, or snwprintf, not _snwprintf.
19269
19270 2010-04-10  Bruno Haible  <bruno@clisp.org>
19271
19272         write: Fix a C++ test error on mingw.
19273         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
19274
19275 2010-04-10  Bruno Haible  <bruno@clisp.org>
19276
19277         vasnprintf test: Reduce code duplication.
19278         * tests/test-vasnprintf.c (test_function): New function, extracted from
19279         test_vasnprintf.
19280         (test_vasnprintf, test_asnprintf): Invoke it.
19281
19282 2010-04-10  Bruno Haible  <bruno@clisp.org>
19283
19284         strnlen: Fix warning in C++ mode on MacOS X.
19285         * lib/string.in.h (strnlen): Use the modern idiom.
19286         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
19287         defining strnlen as a macro already in <config.h>.
19288         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
19289         REPLACE_STRNLEN.
19290         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
19291         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
19292
19293 2010-04-08  James Youngman  <jay@gnu.org>
19294
19295         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
19296         the example.
19297
19298 2010-04-09  Jim Meyering  <meyering@redhat.com>
19299
19300         maint.mk: print better diagnostic when there is no $(_hv_file)
19301         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
19302         announce that when $(_hv_file) (aka help-version) does not exist.
19303
19304         init.sh: run tr in the "C" locale to avoid multibyte interpretation
19305         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
19306         not try to interpret its random input bytes.  Jarno Rajahalme reported
19307         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
19308         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
19309         (mktempd_): Likewise, just in case.
19310
19311         ftruncate: add two years to projected module removal date: 2012
19312         * m4/ftruncate.m4: Adjust comments.
19313
19314         ftruncate: mark module as obsolete; even MinGW provides it, now
19315         * modules/ftruncate (Status): Obsolete.
19316         (Notice): Say that.
19317         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
19318         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
19319
19320 2010-04-08  Bruno Haible  <bruno@clisp.org>
19321
19322         Fix side effects from tests-related modules.
19323         * modules/dprintf-posix (Comment): New section.
19324         * modules/fprintf-posix (Comment): Likewise.
19325         * modules/obstack-printf-posix (Comment): Likewise.
19326         * modules/printf-posix (Comment): Likewise.
19327         * modules/snprintf-posix (Comment): Likewise.
19328         * modules/sprintf-posix (Comment): Likewise.
19329         * modules/vasnprintf-posix (Comment): Likewise.
19330         * modules/vasprintf-posix (Comment): Likewise.
19331         * modules/vdprintf-posix (Comment): Likewise.
19332         * modules/vfprintf-posix (Comment): Likewise.
19333         * modules/vprintf-posix (Comment): Likewise.
19334         * modules/vsnprintf-posix (Comment): Likewise.
19335         * modules/vsprintf-posix (Comment): Likewise.
19336         * modules/xprintf-posix (Comment): Likewise.
19337         * modules/xvasprintf-posix (Comment): Likewise.
19338         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
19339         * modules/floorf-tests (Depends-on): Likewise.
19340         * modules/round-tests (Depends-on): Likewise.
19341         * modules/roundf-tests (Depends-on): Likewise.
19342         * modules/trunc-tests (Depends-on): Likewise.
19343         * modules/truncf-tests (Depends-on): Likewise.
19344         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
19345         'fprintf-posix' module is not present.
19346         * tests/test-floorf2.c (check): Likewise.
19347         * tests/test-trunc2.c (check): Likewise.
19348         * tests/test-truncf2.c (check): Likewise.
19349         * tests/test-round2.c (equal): Likewise.
19350         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
19351
19352 2010-04-07  Karl Berry  <karl@gnu.org>
19353
19354         * config/srclist.txt,
19355         * config/srclistvars.sh,
19356         * config/srclist-update: doc fixes.
19357
19358 2010-04-07  Jim Meyering  <meyering@redhat.com>
19359
19360         maint.mk: add a PATH crosschecking syntax-check rule
19361         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
19362         Useful if you use a test like the one in help-version (coreutils,
19363         diffutils, grep, gzip) that ensures $(VERSION) matches what is
19364         printed by prog --version.
19365
19366 2010-04-06  Bruno Haible  <bruno@clisp.org>
19367
19368         Fix link error on mingw.
19369         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
19370         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
19371
19372 2010-04-06  Bruno Haible  <bruno@clisp.org>
19373
19374         Assume rmdir exists.
19375         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
19376
19377 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
19378
19379         doc: update users.txt
19380         * users.txt: Add gcal.
19381
19382 2010-04-06  Jim Meyering  <meyering@redhat.com>
19383
19384         init.sh: simply unset TMPDIR rather than risking env -i
19385         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
19386         although it probably works fine on all Unix-based systems, some
19387         systems (Cygwin?) cannot tolerate a totally cleared environment.
19388         Suggestion from Eric Blake.
19389
19390 2010-04-06  Jim Meyering  <meyering@redhat.com>
19391
19392         init.sh: portability fix: use env's POSIX-specified -i option not -u
19393         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
19394         than unportable env -u.  Solaris 5.11's env lacks support for -u.
19395
19396 2010-04-05  Bruno Haible  <bruno@clisp.org>
19397
19398         btowc: Work around Cygwin 1.7.2 bug.
19399         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
19400         does not map NUL to 0.
19401         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
19402
19403 2010-04-05  Bruno Haible  <bruno@clisp.org>
19404
19405         Make the multithread modules work on Cygwin 1.7.2.
19406         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
19407         imported symbols can be declared weak, so that it returns "no" on
19408         Cygwin 1.7.2.
19409
19410 2010-04-05  Bruno Haible  <bruno@clisp.org>
19411
19412         Use the module 'strncat'.
19413         * modules/unistr/u8-strncat (Depends-on): Add strncat.
19414
19415         Tests for module 'strncat'.
19416         * modules/strncat-tests: New file.
19417         * tests/test-strncat.c: New file.
19418
19419         New module 'strncat'.
19420         * lib/string.in.h (strncat): New declaration.
19421         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
19422         * m4/strncat.m4: New file, based on m4/memchr.m4.
19423         * modules/strncat: New file.
19424         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
19425         is declared.
19426         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
19427         REPLACE_STRNCAT.
19428         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
19429         REPLACE_STRNCAT.
19430         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
19431         module.
19432         * tests/test-string-c++.cc: Check signature of strncat.
19433
19434 2010-04-05  Jim Meyering  <meyering@redhat.com>
19435
19436         xstrtoumax-tests: convert to use init.sh
19437         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
19438         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
19439         Use Exit, not exit.
19440         Remove uses of $EXEEXT and "./" to run a program in the current dir.
19441
19442         xstrtoimax-tests: convert to use init.sh
19443         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
19444         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
19445         Use Exit, not exit.
19446         Remove uses of $EXEEXT and "./" to run a program in the current dir.
19447
19448 2010-04-05  Bruno Haible  <bruno@clisp.org>
19449
19450         sys_socket: Avoid #define replacements in C++ mode.
19451         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
19452         warning to the function if possible, rather than #defining the symbol
19453         to a dysfunctional alias.
19454
19455 2010-04-05  Bruno Haible  <bruno@clisp.org>
19456
19457         fseeko: Fix C++ test error on mingw.
19458         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
19459         gl_FUNC_FSEEKO.
19460         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
19461         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
19462         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
19463         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
19464
19465 2010-04-05  Bruno Haible  <bruno@clisp.org>
19466
19467         duplocale: Improve test output.
19468         * tests/test-duplocale.c (main): Print reason for skipped test.
19469
19470 2010-04-05  Bruno Haible  <bruno@clisp.org>
19471
19472         Assume rmdir exists.
19473         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
19474         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
19475
19476 2010-04-05  Bruno Haible  <bruno@clisp.org>
19477
19478         Fix link error on Solaris 8 with cc.
19479         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
19480
19481 2010-04-05  Bruno Haible  <bruno@clisp.org>
19482
19483         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
19484         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
19485
19486 2010-04-05  Bruno Haible  <bruno@clisp.org>
19487
19488         vasprintf: Update documentation.
19489         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
19490
19491 2010-04-05  Bruno Haible  <bruno@clisp.org>
19492
19493         ptsname: Improve test.
19494         * tests/test-ptsname.c (main): Also try the various master names of BSD
19495         systems.
19496
19497 2010-04-05  Bruno Haible  <bruno@clisp.org>
19498
19499         memchr: Avoid a possible C++ test error.
19500         * lib/string.in.h (memchr): Provide declaration if function is missing.
19501         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
19502         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
19503         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
19504         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
19505
19506 2010-04-05  Bruno Haible  <bruno@clisp.org>
19507
19508         strtok_r: Improve idiom.
19509         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
19510         AC_LIBOBJ is used.
19511
19512 2010-04-05  Bruno Haible  <bruno@clisp.org>
19513
19514         strdup: Improve idiom.
19515         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
19516         AC_LIBOBJ is used.
19517         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
19518         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
19519         when AC_LIBOBJ is used.
19520
19521 2010-04-05  Bruno Haible  <bruno@clisp.org>
19522
19523         mbsinit, mbrtowc, wcrtomb: Improve idioms.
19524         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
19525         don't set REPLACE_MBSINIT to 1.
19526         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
19527         don't set REPLACE_MBRTOWC to 1.
19528         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
19529         exist, don't set REPLACE_MBSRTOWCS to 1.
19530         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
19531         exist, don't set REPLACE_MBSNRTOWCS to 1.
19532         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
19533         don't set REPLACE_WCRTOMB to 1.
19534         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
19535         exist, don't set REPLACE_WCSRTOMBS to 1.
19536         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
19537         exist, don't set REPLACE_WCSNRTOMBS to 1.
19538
19539 2010-04-05  Bruno Haible  <bruno@clisp.org>
19540
19541         ldexpl: Improve idiom.
19542         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
19543         make sure to set HAVE_DECL_LDEXPL to 0.
19544
19545 2010-04-05  Jim Meyering  <meyering@redhat.com>
19546
19547         xstrtol-tests: convert to use init.sh
19548         * modules/xstrtol-tests (Files): Add tests/init.sh.
19549         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
19550         Use Exit, not exit.
19551         Remove uses of $EXEEXT and "./" to run a program in the current dir.
19552
19553         atexit-tests: convert to use init.sh
19554         * modules/atexit-tests (Files): Add tests/init.sh.
19555         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
19556         Use Exit, not exit.
19557         Remove uses of $EXEEXT and "./" to run a program in the current dir.
19558
19559         init.sh: fix typo
19560         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
19561
19562         init.sh: make it easier for a test script to write to the tty, ...
19563         when using automake's parallel-tests mode.
19564         * tests/init.sh (stderr_fileno_): Define overridable variable.
19565         (warn_): New function, to use it.
19566         (fail_, skip_, framework_failure_): Use warn_.
19567
19568 2010-04-04  Bruno Haible  <bruno@clisp.org>
19569
19570         btowc: Avoid warning.
19571         * lib/btowc.c: Include <stdlib.h>.
19572         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
19573
19574 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
19575             Bruno Haible  <bruno@clisp.org>
19576
19577         wchar: Port to NetBSD 1.5.
19578         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
19579         * lib/wctype.in.h (WEOF): Likewise.
19580
19581 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
19582             Bruno Haible  <bruno@clisp.org>
19583
19584         Port extended stdio to NetBSD 1.5.
19585         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
19586         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
19587         older.
19588
19589 2010-04-04  Bruno Haible  <bruno@clisp.org>
19590
19591         string: Remove unused substitution.
19592         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
19593         HAVE_DECL_STRERROR.
19594         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
19595
19596 2010-04-04  Bruno Haible  <bruno@clisp.org>
19597
19598         strtod: Avoid a possible C++ test error.
19599         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
19600         set REPLACE_STRTOD.
19601
19602 2010-04-04  Bruno Haible  <bruno@clisp.org>
19603
19604         strerror: Update documentation.
19605         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
19606
19607 2010-04-04  Bruno Haible  <bruno@clisp.org>
19608
19609         stdio: Fix some C++ test errors on Solaris 8 with GCC.
19610         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
19611         _GL_CXXALIAS_SYS_CAST.
19612
19613 2010-04-04  Bruno Haible  <bruno@clisp.org>
19614
19615         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
19616         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
19617         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
19618         REPLACE_FREXPL to 1.
19619         * doc/posix-functions/frexpl.texi: Update documentation.
19620
19621 2010-04-04  Bruno Haible  <bruno@clisp.org>
19622
19623         math: Fix some C++ test errors on Solaris 8 and Cygwin.
19624         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
19625
19626 2010-04-04  Bruno Haible  <bruno@clisp.org>
19627
19628         Implement nanosleep for native Windows.
19629         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
19630
19631 2010-04-04  Bruno Haible  <bruno@clisp.org>
19632
19633         math: Fix some C++ test errors on Solaris 8.
19634         * lib/math.in.h (truncf, trunc): Use simpler idiom.
19635
19636 2010-04-04  Bruno Haible  <bruno@clisp.org>
19637
19638         math: Fix some C++ test errors on Cygwin.
19639         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
19640         truncl): Provide declaration if the system does not have it.
19641         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
19642         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
19643         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
19644         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
19645         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
19646         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
19647         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
19648         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
19649         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
19650         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
19651         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
19652         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
19653         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
19654         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
19655         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
19656         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
19657         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
19658         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
19659         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
19660         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
19661         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
19662         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
19663
19664 2010-04-04  Bruno Haible  <bruno@clisp.org>
19665
19666         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
19667         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
19668         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
19669         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
19670         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
19671         * m4/isinf.m4 (gl_ISINF): Likewise.
19672         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
19673
19674 2010-04-04  Bruno Haible  <bruno@clisp.org>
19675
19676         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
19677         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
19678
19679 2010-04-04  Bruno Haible  <bruno@clisp.org>
19680
19681         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
19682         * modules/tmpfile (configure.ac): Update.
19683
19684         tmpfile: Fix C++ test error on mingw.
19685         * lib/stdio.in.h (tmpfile): New declaration.
19686         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
19687         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
19688         * modules/tmpfile (Depends-on): Add stdio.
19689         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
19690         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
19691         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
19692         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
19693         REPLACE_TMPFILE.
19694         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
19695
19696 2010-04-04  Bruno Haible  <bruno@clisp.org>
19697
19698         ioctl: Fix C++ test error on mingw.
19699         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
19700         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
19701         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
19702
19703 2010-04-03  Bruno Haible  <bruno@clisp.org>
19704
19705         wcwidth: Fix C++ test error on mingw.
19706         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
19707         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
19708         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
19709
19710 2010-04-03  Bruno Haible  <bruno@clisp.org>
19711
19712         nanosleep: Fix C++ test error on mingw.
19713         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
19714         * lib/time.in.h (nanosleep): Use modern idiom.
19715         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
19716         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
19717         REPLACE_NANOSLEEP to 1.
19718         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
19719         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
19720
19721 2010-04-03  Bruno Haible  <bruno@clisp.org>
19722
19723         strptime: Fix C++ test error on mingw.
19724         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
19725         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
19726         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
19727         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
19728         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
19729         not REPLACE_STRPTIME.
19730         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
19731         REPLACE_STRPTIME.
19732
19733 2010-04-03  Bruno Haible  <bruno@clisp.org>
19734
19735         timegm: Fix C++ test error on mingw.
19736         * lib/time.in.h (timegm): Use modern idiom.
19737         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
19738         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
19739         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
19740         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
19741
19742 2010-04-03  Bruno Haible  <bruno@clisp.org>
19743
19744         timegm: Assume declaration if function exists.
19745         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
19746         if it exists. Don't clobber ac_cv_func_timegm.
19747
19748 2010-04-03  Bruno Haible  <bruno@clisp.org>
19749
19750         time_r: Fix C++ test error on mingw.
19751         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
19752         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
19753         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
19754         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
19755         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
19756
19757 2010-04-03  Bruno Haible  <bruno@clisp.org>
19758
19759         time_r: Minor updates.
19760         * modules/time_r (Description): Mention the provided functions.
19761         * lib/time_r.c: Don't include <string.h>.
19762         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
19763         * doc/posix-functions/localtime_r.texi: Likewise.
19764
19765 2010-04-03  Bruno Haible  <bruno@clisp.org>
19766
19767         time: Fix regression introduced on 2010-03-08.
19768         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
19769         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
19770
19771 2010-04-03  Jim Meyering  <meyering@redhat.com>
19772
19773         maint.mk: don't silently disable project-specific syntax-check rules
19774         * top/maint.mk (_prohibit_regexp): Define, to help people realize
19775         that they need to convert their project-specific syntax-check rules
19776         to use the new _sc_search_regexp.
19777
19778 2010-04-03  Bruno Haible  <bruno@clisp.org>
19779
19780         fchdir: Fix regression introduced on 2010-03-08.
19781         * lib/unistd.in.h (fchdir): Fix declaration.
19782         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
19783         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
19784         REPLACE_FCHDIR.
19785         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
19786         REPLACE_FCHDIR.
19787
19788 2010-04-03  Bruno Haible  <bruno@clisp.org>
19789
19790         getpagesize: Fix C++ test error on mingw.
19791         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
19792         system does not declare the function.
19793         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
19794         declared.
19795         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
19796         HAVE_DECL_GETPAGESIZE.
19797         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
19798
19799 2010-04-03  Bruno Haible  <bruno@clisp.org>
19800
19801         stdio: Make C++ tests work on mingw.
19802         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
19803         does not declare the function.
19804
19805 2010-04-03  Bruno Haible  <bruno@clisp.org>
19806
19807         ftello: Fix C++ test error on mingw.
19808         * lib/stdio.in.h (ftello): Use modern idiom.
19809         * lib/ftello.c (ftello): Renamed from rpl_ftello.
19810         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
19811         is missing and that it needs to be replaced.
19812         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
19813         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
19814         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
19815
19816 2010-04-03  Bruno Haible  <bruno@clisp.org>
19817
19818         fseeko: Fix C++ test error on mingw.
19819         * lib/stdio.in.h (fseeko): Use modern idiom.
19820         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
19821         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
19822         is missing and that it needs to be replaced.
19823         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
19824         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
19825         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
19826
19827 2010-04-03  Bruno Haible  <bruno@clisp.org>
19828
19829         mkstemp: Fix C++ test error on mingw.
19830         * lib/stdlib.in.h (mkstemp): Use modern idiom.
19831         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
19832         function is missing and that it needs to be replaced.
19833         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
19834         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
19835
19836 2010-04-03  Bruno Haible  <bruno@clisp.org>
19837
19838         stpncpy: Fix C++ test error on mingw.
19839         * lib/string.in.h (stpncpy): Use modern idiom.
19840         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
19841         function is missing and that it needs to be replaced.
19842         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
19843         REPLACE_STPNCPY.
19844         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
19845
19846 2010-04-03  Bruno Haible  <bruno@clisp.org>
19847
19848         sys_stat: Fix C++ test error on mingw.
19849         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
19850         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
19851
19852 2010-04-03  Bruno Haible  <bruno@clisp.org>
19853
19854         pty: Update doc.
19855         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
19856
19857 2010-04-03  Bruno Haible  <bruno@clisp.org>
19858
19859         unistd: Fix C++ test error on mingw.
19860         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
19861
19862 2010-04-03  Bruno Haible  <bruno@clisp.org>
19863
19864         Update doc regarding mingw.
19865         * doc/glibc-functions/openpty.texi: Update regarding mingw.
19866         * doc/glibc-functions/login_tty.texi: Likewise.
19867         * doc/glibc-functions/forkpty.texi: Likewise.
19868
19869 2010-04-03  Bruno Haible  <bruno@clisp.org>
19870
19871         stdlib: Avoid compilation failure of c-strtold on mingw.
19872         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
19873
19874 2010-04-03  Bruno Haible  <bruno@clisp.org>
19875
19876         locale: Make C++ tests work on Cygwin and mingw.
19877         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
19878         cannot provide the function.
19879         Reported by Simon Josefsson.
19880
19881 2010-04-03  Bruno Haible  <bruno@clisp.org>
19882
19883         localename: Port to MacOS X 10.6.
19884         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
19885         memory layout of the locales in MacOS X 10.6 as well.
19886         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
19887
19888 2010-04-02  Bruno Haible  <bruno@clisp.org>
19889
19890         gnulib-tool: Ensure that long-running tests are executed last.
19891         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
19892         running tests after the one for the other tests.
19893
19894 2010-04-02  Bruno Haible  <bruno@clisp.org>
19895
19896         gnulib-tool: Ensure the tests in the main directory are executed first.
19897         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
19898         start with the current directory.
19899
19900 2010-04-02  Bruno Haible  <bruno@clisp.org>
19901
19902         Tests for module 'havelib', moved here from GNU gettext.
19903         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
19904         modifications.
19905         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
19906         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
19907         with modifications.
19908         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
19909         modifications.
19910         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
19911         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
19912         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
19913         with modifications.
19914         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
19915         with modifications.
19916         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
19917         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
19918         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
19919         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
19920         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
19921         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
19922         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
19923         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
19924         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
19925         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
19926         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
19927         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
19928         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
19929         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
19930         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
19931         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
19932         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
19933         with modifications.
19934         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
19935         with modifications.
19936         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
19937         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
19938         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
19939         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
19940         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
19941         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
19942         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
19943         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
19944         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
19945         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
19946         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
19947         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
19948         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
19949         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
19950         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
19951         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
19952         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
19953         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
19954         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
19955         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
19956         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
19957         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
19958         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
19959         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
19960         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
19961         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
19962         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
19963         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
19964         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
19965         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
19966         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
19967         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
19968         * tests/havelib/rpathx/rpathx.c: New file, from
19969         gettext/autoconf-lib-link.
19970         * tests/havelib/rpathx/Makefile.am: New file, from
19971         gettext/autoconf-lib-link.
19972         * tests/havelib/rpathx/configure.ac: New file, from
19973         gettext/autoconf-lib-link with modifications.
19974         * tests/havelib/rpathy/rpathy.c: New file, from
19975         gettext/autoconf-lib-link.
19976         * tests/havelib/rpathy/Makefile.am: New file, from
19977         gettext/autoconf-lib-link.
19978         * tests/havelib/rpathy/configure.ac: New file, from
19979         gettext/autoconf-lib-link with modifications.
19980         * tests/havelib/rpathz/rpathz.c: New file, from
19981         gettext/autoconf-lib-link.
19982         * tests/havelib/rpathz/Makefile.am: New file, from
19983         gettext/autoconf-lib-link.
19984         * tests/havelib/rpathz/configure.ac: New file, from
19985         gettext/autoconf-lib-link with modifications.
19986         * tests/havelib/rpathlx/usex.c: New file, from
19987         gettext/autoconf-lib-link.
19988         * tests/havelib/rpathlx/Makefile.am: New file, from
19989         gettext/autoconf-lib-link.
19990         * tests/havelib/rpathlx/configure.ac: New file, from
19991         gettext/autoconf-lib-link with modifications.
19992         * tests/havelib/rpathly/usey.c: New file, from
19993         gettext/autoconf-lib-link.
19994         * tests/havelib/rpathly/Makefile.am: New file, from
19995         gettext/autoconf-lib-link.
19996         * tests/havelib/rpathly/configure.ac: New file, from
19997         gettext/autoconf-lib-link with modifications.
19998         * tests/havelib/rpathlz/usez.c: New file, from
19999         gettext/autoconf-lib-link.
20000         * tests/havelib/rpathlz/Makefile.am: New file, from
20001         gettext/autoconf-lib-link.
20002         * tests/havelib/rpathlz/configure.ac: New file, from
20003         gettext/autoconf-lib-link with modifications.
20004         * tests/havelib/rpathlyx/usey.c: New file, from
20005         gettext/autoconf-lib-link.
20006         * tests/havelib/rpathlyx/Makefile.am: New file, from
20007         gettext/autoconf-lib-link.
20008         * tests/havelib/rpathlyx/configure.ac: New file, from
20009         gettext/autoconf-lib-link with modifications.
20010         * tests/havelib/rpathlzyx/usez.c: New file, from
20011         gettext/autoconf-lib-link.
20012         * tests/havelib/rpathlzyx/Makefile.am: New file, from
20013         gettext/autoconf-lib-link.
20014         * tests/havelib/rpathlzyx/configure.ac: New file, from
20015         gettext/autoconf-lib-link with modifications.
20016         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
20017         with modifications.
20018
20019 2010-04-02  Bruno Haible  <bruno@clisp.org>
20020
20021         gnulib-tool: Create distributed built sources also for the tests.
20022         * gnulib-tool (func_create_testdir): Also generate distributed built
20023         sources in the tests directory.
20024
20025 2010-04-02  Bruno Haible  <bruno@clisp.org>
20026
20027         gnulib-tool: Obey user's environment variables.
20028         * gnulib-tool (func_create_testdir): When creating built sources,
20029         respect the environment variables for autoconf, automake, etc. given by
20030         the user.
20031
20032 2010-04-02  Bruno Haible  <bruno@clisp.org>
20033
20034         gnulib-tool: Provide the value of --m4-base to modules.
20035         * gnulib-tool (func_import, func_create_testdir): Emit a definition
20036         of gl_m4_base.
20037
20038 2010-04-02  Eric Blake  <eblake@redhat.com>
20039
20040         maint.mk: fix some fallout
20041         * NEWS: Document the incompatible change, and its effect on cfg.mk.
20042         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
20043
20044 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
20045
20046         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
20047         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
20048         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
20049         (sc_cast_of_x_alloc_return_value): Likewise.
20050         (sc_cast_of_alloca_return_value): Likewise.
20051         (sc_space_tab): Likewise.
20052         (sc_prohibit_atoi_atof): Likewise.
20053         (sc_prohibit_magic_number_exit): Likewise.
20054         (sc_error_exit_success): Likewise.
20055         (sc_file_system): Likewise.
20056         (sc_prohibit_have_config_h): Likewise.
20057         (sc_require_config_h): Likewise.
20058         (sc_prohibit_HAVE_MBRTOWC): Likewise.
20059         (sc_obsolete_symbols): Likewise.
20060         (sc_changelog): Likewise.
20061         (sc_program_name): Likewise.
20062         (sc_the_the): Likewise.
20063         (sc_trailing_blank): Likewise.
20064         (sc_two_space_separator_in_usage): Likewise.
20065         (sc_useless_cpp_parens): Likewise.
20066         (sc_GPL_version): Likewise.
20067         (sc_GFDL_version): Likewise.
20068         (sc_texinfo_acronym): Likewise.
20069         (sc_prohibit_cvs_keyword): Likewise.
20070         (sc_prohibit_stat_st_blocks): Likewise.
20071         (sc_prohibit_S_IS_definition): Likewise.
20072         (sc_redundant_const): Likewise.
20073         (sc_makefile_TAB_only_indentation): Likewise.
20074         (sc_m4_quote_check): Likewise.
20075         (sc_makefile_path_separator_check): Likewise.
20076         (sc_copyright_check): Likewise.
20077         (sc_Wundef_boolean): Likewise.
20078         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
20079
20080         maint.mk: match 0 or more whitespace-before-function-call '('
20081         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
20082         that have zero or two-and-more spaces between the function name
20083         and the open parenthesis.
20084         (sc_error_message_warn_fatal): Likewise.
20085         (sc_error_message_uppercase): Likewise.
20086         (sc_error_message_period): Likewise.
20087
20088 2010-03-31  Eric Blake  <eblake@redhat.com>
20089
20090         maint.mk: check for [ as well as test
20091         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
20092         Based on a libvirt report by Matthias Bolte.
20093
20094         gnumakefile: don't squelch _version output
20095         * top/GNUmakefile (_version): Create one-shot dependency rather
20096         than using $(shell) when version must be regenerated.
20097         (_autoreconf): Run verbosely, by default.
20098
20099         sys_time: avoid compiler warnings
20100         * lib/sys_time.in.h (includes): Ensure gcc pragma is
20101         unconditional, fixing regression from 2010-03-29.
20102         Reported by Simon Josefsson.
20103
20104 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
20105
20106         maint.mk: s/_header_without_use/_sc_header_without_use/
20107         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
20108         (sc_prohibit_assert_without_use): Use the new name.
20109         (sc_prohibit_close_stream_without_use): Likewise.
20110         (sc_prohibit_getopt_without_use): Likewise.
20111         (sc_prohibit_quotearg_without_use): Likewise.
20112         (sc_prohibit_quote_without_use): Likewise.
20113         (sc_prohibit_long_options_without_use): Likewise.
20114         (sc_prohibit_inttostr_without_use): Likewise.
20115         (sc_prohibit_ignore_value_without_use): Likewise.
20116         (sc_prohibit_error_without_use): Likewise.
20117         (sc_prohibit_xalloc_without_use): Likewise.
20118         (sc_prohibit_hash_without_use): Likewise.
20119         (sc_prohibit_hash_pjw_without_use): Likewise.
20120         (sc_prohibit_safe_read_without_use): Likewise.
20121         (sc_prohibit_argmatch_without_use): Likewise.
20122         (sc_prohibit_canonicalize_without_use): Likewise.
20123         (sc_prohibit_root_dev_ino_without_use): Likewise.
20124         (sc_prohibit_openat_without_use): Likewise.
20125         (sc_prohibit_c_ctype_without_use): Likewise.
20126         (sc_prohibit_signal_without_use): Likewise.
20127         (sc_prohibit_intprops_without_use): Likewise.
20128
20129 2010-03-30  Eric Blake  <eblake@redhat.com>
20130
20131         maint: improve module indicators
20132         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
20133         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
20134         columns, and avoid extra macro expansion.
20135
20136         fdopendir: work around FreeBSD bug
20137         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
20138         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
20139         * modules/dirent (Makefile.am): Substitute it.
20140         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
20141         declaration.
20142         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
20143         fix.
20144         Reported by Christian Weisgerber <naddy@mips.inka.de>.
20145
20146 2010-03-29  Bruno Haible  <bruno@clisp.org>
20147
20148         Emit #pragma system_header after the inclusion guard, not before.
20149         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
20150         guard that spans the entire file, not before. This enables an
20151         optimization in GCC's preprocessor.
20152         * lib/ctype.in.h: Likewise.
20153         * lib/dirent.in.h: Likewise.
20154         * lib/errno.in.h: Likewise.
20155         * lib/float.in.h: Likewise.
20156         * lib/getopt.in.h: Likewise.
20157         * lib/iconv.in.h: Likewise.
20158         * lib/langinfo.in.h: Likewise.
20159         * lib/locale.in.h: Likewise.
20160         * lib/math.in.h: Likewise.
20161         * lib/netdb.in.h: Likewise.
20162         * lib/netinet_in.in.h: Likewise.
20163         * lib/pty.in.h: Likewise.
20164         * lib/sched.in.h: Likewise.
20165         * lib/se-selinux.in.h: Likewise.
20166         * lib/search.in.h: Likewise.
20167         * lib/spawn.in.h: Likewise.
20168         * lib/stdarg.in.h: Likewise.
20169         * lib/stdint.in.h: Likewise.
20170         * lib/string.in.h: Likewise.
20171         * lib/strings.in.h: Likewise.
20172         * lib/sys_file.in.h: Likewise.
20173         * lib/sys_ioctl.in.h: Likewise.
20174         * lib/sys_time.in.h: Likewise.
20175         * lib/sys_times.in.h: Likewise.
20176         * lib/sys_utsname.in.h: Likewise.
20177         * lib/sys_wait.in.h: Likewise.
20178         * lib/sysexits.in.h: Likewise.
20179         * lib/wctype.in.h: Likewise.
20180
20181 2010-03-28  James Youngman  <jay@gnu.org>
20182
20183         save-cwd: don't leak a file descriptor when the caller execs.
20184         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
20185         saved file descriptor.
20186         * modules/save-cwd (Depends-on): Depend on cloexec.
20187
20188 2010-03-29  Bruno Haible  <bruno@clisp.org>
20189
20190         Remove vestiges of fts-lgpl module.
20191         * lib/fts_.h: Assume GNULIB_FTS is 1.
20192         * lib/fts.c: Likewise.
20193         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
20194
20195 2010-03-28  Bruno Haible  <bruno@clisp.org>
20196
20197         Fix definition of tests witness macro.
20198         * gnulib-tool (func_import): Fix definition of witness macro.
20199
20200 2010-03-28  Bruno Haible  <bruno@clisp.org>
20201
20202         Fix ioctl's protoype on glibc systems.
20203         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
20204         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
20205         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
20206         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
20207         signature. If not, arrange to replace the ioctl function.
20208         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
20209         REPLACE_IOCTL.
20210         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
20211         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
20212         Reported by Ludovic Courtès <ludo@gnu.org>.
20213
20214 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
20215
20216         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
20217         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
20218         made it so grep -r --include=GLOB* ... did not work.
20219
20220 2010-03-26  Jim Meyering  <meyering@redhat.com>
20221             Eric Blake  <eblake@redhat.com>
20222
20223         maint.mk: prohibit use of test's -o and -a operators
20224         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
20225
20226 2010-03-28  Bruno Haible  <bruno@clisp.org>
20227
20228         Remove unused GNULIB_XYZ macro definitions.
20229         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
20230         invocation.
20231
20232 2010-03-28  Bruno Haible  <bruno@clisp.org>
20233
20234         Mark privileged tests modules.
20235         * modules/idpriv-drop-tests (Status): New section.
20236         * modules/idpriv-droptemp-tests (Status): New section.
20237
20238 2010-03-28  Bruno Haible  <bruno@clisp.org>
20239
20240         Split C++ tests into separate tests modules.
20241         * modules/dirent-c++-tests: New file, extracted from
20242         modules/dirent-tests.
20243         * modules/dirent-tests: Depend on it.
20244         * modules/fcntl-h-c++-tests: New file, extracted from
20245         modules/fcntl-h-tests.
20246         * modules/fcntl-h-tests: Depend on it.
20247         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
20248         * modules/glob-tests: Depend on it.
20249         * modules/iconv-h-c++-tests: New file, extracted from
20250         modules/iconv-h-tests.
20251         * modules/iconv-h-tests: Depend on it.
20252         * modules/langinfo-c++-tests: New file, extracted from
20253         modules/langinfo-tests.
20254         * modules/langinfo-tests: Depend on it.
20255         * modules/locale-c++-tests: New file, extracted from
20256         modules/locale-tests.
20257         * modules/locale-tests: Depend on it.
20258         * modules/math-c++-tests: New file, extracted from modules/math-tests.
20259         * modules/math-tests: Depend on it.
20260         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
20261         * modules/pty-tests: Depend on it.
20262         * modules/search-c++-tests: New file, extracted from
20263         modules/search-tests.
20264         * modules/search-tests: Depend on it.
20265         * modules/signal-c++-tests: New file, extracted from
20266         modules/signal-tests.
20267         * modules/signal-tests: Depend on it.
20268         * modules/spawn-c++-tests: New file, extracted from
20269         modules/spawn-tests.
20270         * modules/spawn-tests: Depend on it.
20271         * modules/stdio-c++-tests: New file, extracted from
20272         modules/stdio-tests.
20273         * modules/stdio-tests: Depend on it.
20274         * modules/stdlib-c++-tests: New file, extracted from
20275         modules/stdlib-tests.
20276         * modules/stdlib-tests: Depend on it.
20277         * modules/string-c++-tests: New file, extracted from
20278         modules/string-tests.
20279         * modules/string-tests: Depend on it.
20280         * modules/sys_ioctl-c++-tests: New file, extracted from
20281         modules/sys_ioctl-tests.
20282         * modules/sys_ioctl-tests: Depend on it.
20283         * modules/sys_select-c++-tests: New file, extracted from
20284         modules/sys_select-tests.
20285         * modules/sys_select-tests: Depend on it.
20286         * modules/sys_socket-c++-tests: New file, extracted from
20287         modules/sys_socket-tests.
20288         * modules/sys_socket-tests: Depend on it.
20289         * modules/sys_stat-c++-tests: New file, extracted from
20290         modules/sys_stat-tests.
20291         * modules/sys_stat-tests: Depend on it.
20292         * modules/sys_time-c++-tests: New file, extracted from
20293         modules/sys_time-tests.
20294         * modules/sys_time-tests: Depend on it.
20295         * modules/time-c++-tests: New file, extracted from modules/time-tests.
20296         * modules/time-tests: Depend on it.
20297         * modules/unistd-c++-tests: New file, extracted from
20298         modules/unistd-tests.
20299         * modules/unistd-tests: Depend on it.
20300         * modules/wchar-c++-tests: New file, extracted from
20301         modules/wchar-tests.
20302         * modules/wchar-tests: Depend on it.
20303         * modules/wctype-c++-tests: New file, extracted from
20304         modules/wctype-tests.
20305         * modules/wctype-tests: Depend on it.
20306         Reported by Simon Josefsson.
20307
20308 2010-03-28  Bruno Haible  <bruno@clisp.org>
20309
20310         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
20311         * gnulib-tool (func_exists_module): New function, extracted from
20312         func_verify_module.
20313         (func_verify_module): Use it.
20314         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
20315         'foo' only if 'foo' exists.
20316         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
20317         module.
20318
20319 2010-03-28  Bruno Haible  <bruno@clisp.org>
20320
20321         gnulib-tool: Add support for special categories of tests.
20322         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
20323         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
20324         (func_usage): Document them.
20325         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
20326         inc_unportable_tests, inc_all_tests): New variables.
20327         (func_acceptable): Consider these variables.
20328         (func_modules_transitive_closure): Make it work when the 'Status' field
20329         consists of multiple words.
20330         (func_import): Store and restore the values of inc_cxx_tests,
20331         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
20332         inc_all_tests in gnulib-comp.m4.
20333         (func_create_testdir): Set inc_all_tests to true.
20334         * doc/gnulib.texi (Extra tests modules): New section.
20335         Suggested by Jim Meyering.
20336
20337 2010-03-28  Bruno Haible  <bruno@clisp.org>
20338
20339         ansi-c++-opt: Allow turning off the C++ build by default.
20340         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
20341         gl_CXX_CHOICE_DEFAULT_NO is defined.
20342         Requested by Eric Blake.
20343
20344 2010-03-28  Bruno Haible  <bruno@clisp.org>
20345
20346         unistd: Avoid #define replacements in C++ mode.
20347         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
20348         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
20349         setsockopt, shutdown, select): In C++, attach a warning to the function
20350         if possible, rather than #defining the symbol to a dysfunctional alias.
20351         Reported by John W. Eaton <jwe@gnu.org>.
20352
20353 2010-03-28  Bruno Haible  <bruno@clisp.org>
20354
20355         Fix link errors on mingw.
20356         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
20357         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
20358         $(LIBSOCKET).
20359         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
20360         $(LIBSOCKET).
20361
20362 2010-03-28  Bruno Haible  <bruno@clisp.org>
20363             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20364
20365         lib-ignore: Determine different options for different compilers.
20366         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
20367         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
20368         Add comments.
20369         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
20370         * NEWS: Mention the change.
20371
20372 2010-03-27  Bruno Haible  <bruno@clisp.org>
20373
20374         Remove unused GNULIB_XYZ macro definitions.
20375         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
20376         * modules/fseek (configure.ac): Likewise.
20377         * modules/ioctl (configure.ac): Likewise.
20378         * modules/open (configure.ac): Likewise.
20379         * modules/stdlib-safer (configure.ac): Likewise.
20380
20381 2010-03-27  Bruno Haible  <bruno@clisp.org>
20382
20383         Add a remark about certain modules.
20384         * modules/malloc (Comment): New section.
20385         * modules/realloc (Comment): Likewise.
20386         * modules/sigpipe (Comment): Likewise.
20387
20388 2010-03-27  Bruno Haible  <bruno@clisp.org>
20389
20390         Resolve conflict between the two kinds of module indicators.
20391         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
20392         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
20393         * modules/canonicalize (configure.ac): Invoke
20394         gl_MODULE_INDICATOR_FOR_TESTS.
20395         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
20396         GNULIB_XYZ.
20397         * tests/test-dirent-c++.cc: Likewise.
20398         * tests/test-dirent-safer.c: Likewise.
20399         * tests/test-dup2.c: Likewise.
20400         * tests/test-fchdir.c: Likewise.
20401         * tests/test-fcntl-h-c++.cc: Likewise.
20402         * tests/test-getopt.c: Likewise.
20403         * tests/test-getopt.h: Likewise.
20404         * tests/test-langinfo-c++.cc: Likewise.
20405         * tests/test-locale-c++.cc: Likewise.
20406         * tests/test-math-c++.cc: Likewise.
20407         * tests/test-pty-c++.cc: Likewise.
20408         * tests/test-search-c++.cc: Likewise.
20409         * tests/test-signal-c++.cc: Likewise.
20410         * tests/test-spawn-c++.cc: Likewise.
20411         * tests/test-stdio-c++.cc: Likewise.
20412         * tests/test-stdlib-c++.cc: Likewise.
20413         * tests/test-string-c++.cc: Likewise.
20414         * tests/test-sys_ioctl-c++.cc: Likewise.
20415         * tests/test-sys_select-c++.cc: Likewise.
20416         * tests/test-sys_socket-c++.cc: Likewise.
20417         * tests/test-sys_stat-c++.cc: Likewise.
20418         * tests/test-sys_time-c++.cc: Likewise.
20419         * tests/test-time-c++.cc: Likewise.
20420         * tests/test-unistd-c++.cc: Likewise.
20421         * tests/test-wchar-c++.cc: Likewise.
20422         * tests/uninorm/test-u8-nfc.c: Likewise.
20423         * tests/uninorm/test-u8-nfd.c: Likewise.
20424         * tests/uninorm/test-u8-nfkc.c: Likewise.
20425         * tests/uninorm/test-u8-nfkd.c: Likewise.
20426         * tests/uninorm/test-u16-nfc.c: Likewise.
20427         * tests/uninorm/test-u16-nfd.c: Likewise.
20428         * tests/uninorm/test-u16-nfkc.c: Likewise.
20429         * tests/uninorm/test-u16-nfkd.c: Likewise.
20430         * tests/uninorm/test-u32-nfc.c: Likewise.
20431         * tests/uninorm/test-u32-nfc-big.c: Likewise.
20432         * tests/uninorm/test-u32-nfd.c: Likewise.
20433         * tests/uninorm/test-u32-nfd-big.c: Likewise.
20434         * tests/uninorm/test-u32-nfkc.c: Likewise.
20435         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
20436         * tests/uninorm/test-u32-nfkd.c: Likewise.
20437         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
20438         * tests/uninorm/test-u32-normalize-big.c: Likewise.
20439
20440 2010-03-27  Bruno Haible  <bruno@clisp.org>
20441
20442         Distinguish two kinds of module indicators.
20443         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
20444         gl_MODULE_INDICATOR.
20445         (gl_MODULE_INDICATOR): New macro.
20446         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
20447         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
20448         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
20449         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
20450         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
20451         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
20452         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
20453         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
20454         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
20455         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
20456         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
20457         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
20458         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
20459         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
20460         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
20461         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
20462         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
20463         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
20464         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
20465         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
20466         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
20467         * modules/cloexec (configure.ac): Likewise.
20468         * modules/getopt-gnu (configure.ac): Likewise.
20469         * modules/uninorm/u8-normalize (configure.ac): Likewise.
20470         * modules/uninorm/u16-normalize (configure.ac): Likewise.
20471         * modules/uninorm/u32-normalize (configure.ac): Likewise.
20472         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
20473
20474 2010-03-27  Bruno Haible  <bruno@clisp.org>
20475
20476         New module description field 'Comment'.
20477         * gnulib-tool: New option --extract-comment.
20478         (func_usage): Document it.
20479         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
20480         (func_get_comment): New function.
20481         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
20482
20483 2010-03-27  Bruno Haible  <bruno@clisp.org>
20484
20485         Addendum to 2010-02-07 commit.
20486         * gnulib-tool (func_usage): Document --extract-applicability option.
20487
20488 2010-03-27  Bruno Haible  <bruno@clisp.org>
20489
20490         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
20491         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
20492         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
20493         rather than link errors.
20494
20495 2010-03-27  Bruno Haible  <bruno@clisp.org>
20496
20497         Avoid side effects from tests-related modules on the compilation of lib.
20498         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
20499         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
20500         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
20501         parameter. Emit into AM_CPPFLAGS a definition of the designated C
20502         macro.
20503         (func_import): Define a witness macro. Assign it a value that depends
20504         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
20505         tests-related modules.
20506         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
20507         Reported by Jim Meyering.
20508
20509 2010-03-27  Bruno Haible  <bruno@clisp.org>
20510
20511         Factorize common .m4 code.
20512         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
20513         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
20514         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
20515         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
20516         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
20517         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
20518         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
20519         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
20520         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
20521         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
20522         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
20523         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
20524         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
20525         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
20526         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
20527         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
20528         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
20529         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
20530         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
20531         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
20532         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
20533         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
20534         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
20535         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
20536         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
20537         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
20538         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
20539         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
20540         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
20541         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
20542         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
20543         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
20544
20545 2010-03-27  Bruno Haible  <bruno@clisp.org>
20546
20547         Fix a compilation error on Cygwin with g++ >= 4.3.
20548         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
20549         if it is undefined or if we alias it to chmod.
20550         (lstat): Don't warn about the use of this function if it is undefined
20551         or if we alias it to stat.
20552         Reported by Simon Josefsson.
20553
20554 2010-03-27  Bruno Haible  <bruno@clisp.org>
20555
20556         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
20557         * modules/getlogin (configure.ac): Update.
20558
20559         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
20560         * modules/getlogin_r (configure.ac): Update.
20561
20562         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
20563         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
20564         * modules/inet_ntop (configure.ac): Update.
20565
20566         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
20567         * modules/inet_pton (configure.ac): Update.
20568
20569         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
20570         * modules/mbslen (configure.ac): Update.
20571
20572         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
20573         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
20574         * modules/forkpty (configure.ac): Update.
20575         * modules/openpty (configure.ac): Update.
20576
20577 2010-03-26  Simon Josefsson  <simon@josefsson.org>
20578
20579         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
20580         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
20581
20582 2010-03-25  Eric Blake  <eblake@redhat.com>
20583
20584         maint: use pragma consistently across replacement headers
20585         * lib/ctype.in.h (system_header): Hoist for consistent placement.
20586         * lib/dirent.in.h (system_header): Likewise.
20587         * lib/errno.in.h (system_header): Likewise.
20588         * lib/float.in.h (system_header): Likewise.
20589         * lib/getopt.in.h (system_header): Likewise.
20590         * lib/iconv.in.h (system_header): Likewise.
20591         * lib/inttypes.in.h (system_header): Likewise.
20592         * lib/langinfo.in.h (system_header): Likewise.
20593         * lib/locale.in.h (system_header): Likewise.
20594         * lib/math.in.h (system_header): Likewise.
20595         * lib/netdb.in.h (system_header): Likewise.
20596         * lib/netinet_in.in.h (system_header): Likewise.
20597         * lib/pty.in.h (system_header): Likewise.
20598         * lib/sched.in.h (system_header): Likewise.
20599         * lib/se-selinux.in.h (system_header): Likewise.
20600         * lib/search.in.h (system_header): Likewise.
20601         * lib/spawn.in.h (system_header): Likewise.
20602         * lib/stdarg.in.h (system_header): Likewise.
20603         * lib/stdint.in.h (system_header): Likewise.
20604         * lib/string.in.h (system_header): Likewise.
20605         * lib/strings.in.h (system_header): Likewise.
20606         * lib/sys_file.in.h (system_header): Likewise.
20607         * lib/sys_ioctl.in.h (system_header): Likewise.
20608         * lib/sys_socket.in.h (system_header): Likewise.
20609         * lib/sys_times.in.h (system_header): Likewise.
20610         * lib/sys_utsname.in.h (system_header): Likewise.
20611         * lib/sys_wait.in.h (system_header): Likewise.
20612         * lib/sysexits.in.h (system_header): Likewise.
20613         * lib/unistd.in.h (system_header): Likewise.
20614         * lib/wctype.in.h (system_header): Likewise.
20615
20616         arpa/inet: fix mingw compilation warning
20617         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
20618         Reported by Matthew Bolte.
20619
20620 2010-03-25  Bruno Haible  <bruno@clisp.org>
20621
20622         Avoid collision between gnulib wrapper and libintl wrapper.
20623         * lib/printf.c (printf): Don't define if a printf wrapper is already
20624         defined in intl/printf.c.
20625         Reported by Michel Boaventura <michel@michelboaventura.com>.
20626
20627 2010-03-25  Bruno Haible  <bruno@clisp.org>
20628
20629         Use ANSI C.
20630         * lib/readutmp.h (getutent): Provide ANSI C prototype.
20631
20632 2010-03-25  Bruno Haible  <bruno@clisp.org>
20633
20634         Minor formatting changes.
20635         * lib/acosl.c: Insert space before function argument list.
20636         * lib/argz.c: Likewise.
20637         * lib/asinl.c: Likewise.
20638         * lib/expl.c: Likewise.
20639         * lib/gen-uni-tables.c: Likewise.
20640         * lib/gettext.h: Likewise.
20641         * lib/glthread/lock.h: Likewise.
20642         * lib/tanl.c: Likewise.
20643         * lib/uniname/uniname.c: Likewise.
20644         * tests/test-idpriv-drop.c: Likewise.
20645         * tests/test-idpriv-droptemp.c: Likewise.
20646         * tests/test-lock.c: Likewise.
20647         * tests/test-tls.c: Likewise.
20648         * lib/argp-help.c: Insert space before function-like macro argument
20649         list.
20650         * lib/memcmp.c: Likewise.
20651         * tests/test-base64.c: Likewise.
20652         * lib/localename.c: Insert space before sizeof's argument list.
20653         * lib/safe-alloc.h: Likewise.
20654         * lib/file-set.h: Insert space before macro argument list.
20655         * tests/test-argp.c: Likewise.
20656         * lib/argp-namefrob.h: Insert space before function parameter list.
20657         * lib/getaddrinfo.c: Likewise.
20658         * lib/netdb.in.h: Likewise.
20659         * lib/parse-duration.h: Likewise.
20660         * lib/parse-duration.c: Likewise.
20661         * lib/poll.c: Likewise.
20662         * lib/select.c: Likewise.
20663         * lib/trim.h: Likewise.
20664         * tests/test-usleep.c: Likewise.
20665         * lib/ldexpl.c: Insert space before function parameter list and before
20666         function argument list.
20667         * lib/logl.c: Likewise.
20668         * lib/sqrtl.c: Likewise.
20669         * lib/trim.c: Likewise.
20670         * lib/cosl.c: Use GNU style indentation. Insert space before function
20671         argument list.
20672         * lib/sinl.c: Likewise.
20673         * lib/tsearch.c: Insert space after 'for'.
20674         Reported by Jim Meyering.
20675
20676 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
20677
20678         * maint.mk (sc_Wundef_boolean): Check for the presence of the
20679         config header before grepping, as it's not present before
20680         autoreconf/configure are run.  Reported by Simon Josefsson.
20681
20682 2010-03-23  Bruno Haible  <bruno@clisp.org>
20683
20684         pt_chown: Make it work with automake < 1.11.
20685         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
20686         Reported by Simon Josefsson.
20687
20688 2010-03-23  Bruno Haible  <bruno@clisp.org>
20689
20690         pt_chown: Don't depend on GPLed modules.
20691         * lib/pt_chown.c: Don't include idpriv.h.
20692         (main): Don't drop privileges.
20693         * modules/pt_chown (Depends-on): Remove idpriv-drop.
20694         Reported by Simon Josefsson.
20695
20696 2010-03-24  Simon Josefsson  <simon@josefsson.org>
20697
20698         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
20699         suggestions from karl@freefriends.org (Karl Berry).
20700
20701 2010-03-22  Eric Blake  <eblake@redhat.com>
20702
20703         gethostname: further tweaks
20704         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
20705         are overriding gethostname.
20706         Suggested by Bruno Haible.
20707
20708 2010-03-21  Bruno Haible  <bruno@clisp.org>
20709
20710         Fix comments.
20711         * lib/forkpty.c (rpl_forkpty): Fix comment.
20712         * lib/openpty.c (rpl_openpty): Likewise.
20713         Reported by Eric Blake.
20714
20715 2010-03-22  Eric Blake  <eblake@redhat.com>
20716
20717         gethostname: fix build on mingw
20718         * lib/unistd.in.h (includes): Work around fact that mingw
20719         <winsock2.h> re-includes <unistd.h>, by avoiding any
20720         redeclarations if we are being included by <winsock2.h>.
20721         Reported by Matthias Bolte.
20722
20723 2010-03-21  Bruno Haible  <bruno@clisp.org>
20724
20725         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
20726         * lib/forkpty.c (forkpty): New replacement function, from glibc with
20727         modifications.
20728         * lib/pty.in.h (forkpty): Update declaration. Add comments.
20729         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
20730         provide the replacement.
20731         * modules/forkpty (Depends-on): Add openpty, login_tty.
20732         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
20733         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
20734         * doc/glibc-functions/forkpty.texi: More supported platforms.
20735         * config/srclist.txt: Add forkpty.c (commented).
20736
20737 2010-03-21  Bruno Haible  <bruno@clisp.org>
20738
20739         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
20740         (Makefile.am): Verify that PTY_LIB is defined.
20741
20742         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
20743
20744 2010-03-21  Bruno Haible  <bruno@clisp.org>
20745
20746         Tests for module 'login_tty'.
20747         * modules/login_tty-tests: New file.
20748         * tests/test-login_tty.c: New file.
20749
20750         New module 'login_tty'.
20751         * lib/login_tty.c: New file.
20752         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
20753         * modules/login_tty: New file.
20754         * doc/glibc-functions/login_tty.texi: Mention the new module.
20755
20756 2010-03-21  Bruno Haible  <bruno@clisp.org>
20757
20758         login_tty: Documentation.
20759         * doc/glibc-functions/login_tty.texi: New file.
20760         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
20761
20762 2010-03-21  Bruno Haible  <bruno@clisp.org>
20763
20764         pty: Consistent macro naming.
20765         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
20766         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
20767         * modules/pty (configure.ac): Update.
20768
20769 2010-03-21  Bruno Haible  <bruno@clisp.org>
20770
20771         Tests for openpty: Make stricter.
20772         * tests/test-openpty.c (main): Add test of canonical processing and
20773         erase.
20774         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
20775
20776         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
20777         * lib/openpty.c (openpty): New replacement function.
20778         * lib/pty.in.h: Include <termios.h>.
20779         (openpty): Update declaration. Add comments.
20780         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
20781         is not declared, arrange to provide the replacement. Check for _getpty
20782         and posix_openpt.
20783         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
20784         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
20785         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
20786         * modules/pty-tests (test_pty_c___LDADD): New variable.
20787         * doc/glibc-functions/openpty.texi: More supported platforms.
20788
20789 2010-03-21  Bruno Haible  <bruno@clisp.org>
20790
20791         setenv: Tweaks.
20792         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
20793         the test program.
20794         * doc/posix-functions/setenv.texi: Update platforms list.
20795
20796 2010-03-21  Bruno Haible  <bruno@clisp.org>
20797
20798         New module 'unlockpt'.
20799         * lib/unlockpt.c: New file, from glibc with modifications.
20800         * m4/unlockpt.m4: New file.
20801         * modules/unlockpt: New file.
20802         * lib/stdlib.in.h (unlockpt): New declaration.
20803         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
20804         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
20805         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
20806         HAVE_UNLOCKPT.
20807         * doc/posix-functions/unlockpt.texi: Mention the new module.
20808         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
20809         * config/srclist.txt: Add unlockpt.c (commented).
20810
20811 2010-03-21  Jim Meyering  <meyering@redhat.com>
20812
20813         maint.mk: prohibit inclusion of "intprops.h" without use
20814         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
20815
20816 2010-03-21  Bruno Haible  <bruno@clisp.org>
20817
20818         New module 'grantpt'.
20819         * lib/grantpt.c: New file, from glibc with modifications.
20820         * m4/grantpt.m4: New file.
20821         * modules/grantpt: New file.
20822         * lib/stdlib.in.h (grantpt): New declaration.
20823         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
20824         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
20825         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
20826         HAVE_GRANTPT.
20827         * doc/posix-functions/grantpt.texi: Mention the new module.
20828         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
20829         * config/srclist.txt: Add grantpt.c (commented).
20830
20831 2010-03-21  Bruno Haible  <bruno@clisp.org>
20832
20833         New module 'pt_chown'.
20834         * lib/pt_chown.c: New file, from glibc with modifications.
20835         * lib/pty-private.h: New file, from glibc with modifications.
20836         * modules/pt_chown: New file.
20837         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
20838
20839 2010-03-21  Bruno Haible  <bruno@clisp.org>
20840
20841         Tests for module 'ptsname'.
20842         * modules/ptsname-tests: New file.
20843         * tests/test-ptsname.c: New file.
20844
20845         New module 'ptsname'.
20846         * lib/ptsname.c: New file, from glibc with modifications.
20847         * m4/ptsname.m4: New file.
20848         * modules/ptsname: New file.
20849         * lib/stdlib.in.h (ptsname): New declaration.
20850         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
20851         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
20852         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
20853         HAVE_PTSNAME.
20854         * doc/posix-functions/ptsname.texi: Mention the new module.
20855         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
20856         * config/srclist.txt: Add ptsname.c (commented).
20857
20858 2010-03-21  Bruno Haible  <bruno@clisp.org>
20859
20860         Tests for module 'ttyname_r'.
20861         * modules/ttyname_r-tests: New file.
20862         * tests/test-ttyname_r.c: New file.
20863
20864         New module 'ttyname_r'.
20865         * lib/ttyname_r.c: New file.
20866         * m4/ttyname_r.m4: New file.
20867         * modules/ttyname_r: New file.
20868         * lib/unistd.in.h (ttyname_r): New declaration.
20869         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
20870         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
20871         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
20872         HAVE_TTYNAME_R.
20873         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
20874         * doc/posix-functions/ttyname_r.texi: Mention the new module.
20875
20876 2010-03-20  Bruno Haible  <bruno@clisp.org>
20877
20878         signal: Undefine macro definitions in C++ mode.
20879         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
20880         sigfillset): Undefine macro definitions from the system header in C++
20881         mode.
20882         Reported by John W. Eaton <jwe@gnu.org>.
20883
20884 2010-03-20  Bruno Haible  <bruno@clisp.org>
20885
20886         Ensure no #include statements inside extern "C" { ... }.
20887         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
20888         contain #include statements.
20889         * lib/time.in.h: Likewise.
20890
20891 2010-03-20  Bruno Haible  <bruno@clisp.org>
20892
20893         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
20894         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
20895         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
20896         Reported by John W. Eaton <jwe@gnu.org>.
20897
20898 2010-03-20  Bruno Haible  <bruno@clisp.org>
20899
20900         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
20901         Reported by Jim Meyering.
20902
20903 2010-03-20  Bruno Haible  <bruno@clisp.org>
20904
20905         pipe: Set errno upon failure.
20906         * lib/pipe.h: Specify that when -1 is returned, errno is set.
20907         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
20908         errno value in error message.
20909
20910 2010-03-20  Bruno Haible  <bruno@clisp.org>
20911             Jim Meyering  <meyering@redhat.com>
20912
20913         lchown: Avoid "unused variable" warning.
20914         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
20915
20916 2010-03-20  Bruno Haible  <bruno@clisp.org>
20917
20918         Work around unlink() bug on MacOS X 10.5.6.
20919         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
20920         attempting to unlink a parent directory.
20921         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
20922         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
20923         activate for the replacement function.
20924         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
20925
20926 2010-03-20  Bruno Haible  <bruno@clisp.org>
20927
20928         Fix link errors on Solaris 8.
20929         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
20930         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
20931
20932 2010-03-19  Jim Meyering  <meyering@redhat.com>
20933
20934         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
20935         The _LIBC implementation of build_range_exp correctly honors the
20936         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
20937         However, the non-_LIBC implementation would ignore that syntax-bit
20938         flag and return REG_ERANGE unconditionally.
20939         This change makes it honor that flag.
20940         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
20941         Make two pointer parameters "const".
20942         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
20943         (parse_bracket_exp): Update caller.
20944
20945         regex.m4: correct the reversed range endpoint ([b-a]) test
20946         * m4/regex.m4: When requiring that [b-a] evoke failure,
20947         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
20948         test pass once again for x86-based systems.
20949
20950 2010-03-19  Bruno Haible  <bruno@clisp.org>
20951
20952         scandir: Fix link error on Solaris 8.
20953         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
20954         macros.
20955
20956 2010-03-19  Bruno Haible  <bruno@clisp.org>
20957
20958         getusershell: Fix documentation.
20959         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
20960         module.
20961         * doc/glibc-functions/setusershell.texi: Likewise.
20962
20963         getusershell: Provide declaration, missing on Solaris 9.
20964         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
20965         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
20966         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
20967         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
20968         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
20969         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
20970         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
20971         HAVE_GETUSERSHELL.
20972         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
20973
20974 2010-03-19  Bruno Haible  <bruno@clisp.org>
20975
20976         wctype: Provide iswblank function.
20977         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
20978         exists and is fine.
20979         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
20980         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
20981         * tests/test-wctype.c (main): Re-enable the iswblank tests.
20982         * doc/posix-functions/iswblank.texi: Update.
20983
20984 2010-03-19  Bruno Haible  <bruno@clisp.org>
20985
20986         Tests of module 'pty' in C++ mode.
20987         * modules/pty-tests: New file.
20988         * tests/test-pty-c++.cc: New file.
20989         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
20990
20991 2010-03-19  Eric Blake  <eblake@redhat.com>
20992
20993         logb: fix documentation
20994         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
20995         1.5 declaration bug.
20996
20997         forkpty, openpty: prefer glibc's const-safe prototype
20998         * lib/forkpty.c (rpl_forkpty): New file.
20999         * lib/openpty.c (rpl_openpty): Likewise.
21000         * modules/forkpty (Files): Distribute it.
21001         * modules/openpty (Files): Likewise.
21002         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
21003         check...
21004         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
21005         replacement for for non-const BSD signature.
21006         * modules/pty (Makefile.am): Substitute witnesses.
21007         * lib/pty.in.h (forkpty, openpty): Declare replacements.
21008         * tests/test-forkpty.c: Update signature check.
21009         * tests/test-openpty.c: Likewise.
21010         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
21011         * doc/glibc-functions/openpty.texi (openpty): Likewise.
21012
21013         forkpty, openpty: split functions into new modules
21014         * modules/pty (Makefile.am): Substitute new witnesses.
21015         (Libraries): Move library detection...
21016         * modules/forkpty: ...into new module.
21017         * modules/openpty: Another new module.
21018         * modules/pty-tests: Rename and split...
21019         * modules/forkpty-tests: ...to this...
21020         * modules/openpty-tests: ...and this.
21021         * tests/test-pty.c: Rename and split...
21022         * tests/test-forkpty.c: ...to this...
21023         * tests/test-openpty.c: ...and this.
21024         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
21025         (gl_PTY): Split library searching...
21026         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
21027         (gl_FORKPTY, gl_OPENPTY): New macros.
21028         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
21029         * NEWS: Mention the split.
21030         * MODULES.html.sh (Misc): Document the modules.
21031         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
21032         * doc/glibc-functions/openpty.texi (openpty): Likewise.
21033
21034         pty: improve replacement header
21035         * lib/pty.in.h: New file.
21036         * modules/pty (Files): Ship it.
21037         (Makefile.am): Always build replacement.
21038         * m4/pty.m4: Rename...
21039         * m4/pty_h.m4: ...to this.
21040         (gl_PTY): Modernize setting of witness macros; update check of
21041         forkpty to take proper advantage of cache.
21042         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
21043
21044         getopt: avoid compiler warning
21045         * lib/getopt.c (attribute_hidden): Remove unused macro.
21046
21047 2010-03-18  Bruno Haible  <bruno@clisp.org>
21048
21049         Fix link errors on Solaris 8.
21050         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
21051         * modules/search-tests (test_search_c___LDADD): Likewise.
21052         * modules/signal-tests (test_signal_c___LDADD): Likewise.
21053         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
21054         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
21055         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
21056         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
21057         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
21058         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
21059
21060 2010-03-18  Bruno Haible  <bruno@clisp.org>
21061
21062         Fix bug introduced on 2010-03-14.
21063         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
21064         (gl_SPAWN_H): Require it.
21065         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
21066         Reported by Simon Josefsson.
21067
21068 2010-03-18  Bruno Haible  <bruno@clisp.org>
21069
21070         Fix typo introduced on 2009-12-31.
21071         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
21072         posix_spawn_file_actions_adddup2.
21073
21074 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
21075         and Eric Blake  <eblake@redhat.com>
21076
21077         test-vc-list-files-git: make more robust
21078         * tests/test-vc-list-files-git.sh: Unset problematic environment
21079         variables.  Chain commands together.
21080
21081 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
21082
21083         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
21084         `AC_CHECK_DECL' invocation.
21085
21086 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
21087
21088         * lib/inttostr.c (inttostr): Make sure the invocation of verify
21089         appears before executable statements. Suggested by Petr Sumbera
21090         <Petr.Sumbera@Sun.COM>.
21091
21092 2010-03-14  Bruno Haible  <bruno@clisp.org>
21093
21094         * tests/test-flock.c (test_exclusive): Comment out a test that causes
21095         portability problems. Instead use a simpler test.
21096         (main): Check that invalid arguments are rejected only on Linux.
21097
21098 2010-03-14  Bruno Haible  <bruno@clisp.org>
21099
21100         Fix bug introduced on 2009-12-31.
21101         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
21102         gl_PREREQ_SYS_H_WINSOCK2 always.
21103         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
21104         SYS_SOCKET_H variable.
21105         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
21106         Update comments.
21107         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
21108         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
21109         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
21110         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
21111         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
21112
21113 2010-03-14  Bruno Haible  <bruno@clisp.org>
21114
21115         Fix values returned by sinl, cosl.
21116         * lib/trigl.h: Add specification comments.
21117         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
21118         that combines the values from the precomputed table with the values of
21119         the Chebyshev polynomials.
21120
21121 2010-03-14  Bruno Haible  <bruno@clisp.org>
21122
21123         Fix compilation error when modules 'posix_spawn[p]' are not used.
21124         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
21125         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
21126
21127 2010-03-14  Bruno Haible  <bruno@clisp.org>
21128
21129         Fix compilation error on mingw when module 'time_r' is not used.
21130         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
21131         is 1.
21132         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
21133         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
21134         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
21135         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
21136
21137 2010-03-14  Bruno Haible  <bruno@clisp.org>
21138
21139         Fix compilation error with Sun C.
21140         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
21141         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
21142         instead of GCC specific ULONG_LONG_MAX.
21143         * lib/xstrtoll.c: Likewise.
21144         * lib/xstrtoull.c: Likewise.
21145
21146 2010-03-13  Bruno Haible  <bruno@clisp.org>
21147
21148         Allow the user to disable C++ code and tests.
21149         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
21150         (gl_PROG_ANSI_CXX): Require it.
21151
21152 2010-03-13  Bruno Haible  <bruno@clisp.org>
21153
21154         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
21155         cases.
21156
21157 2010-03-13  Bruno Haible  <bruno@clisp.org>
21158
21159         Test that gnulib does not break the standard C++ headers.
21160         * tests/test-locale-c++2.cc: New file.
21161         * modules/locale-tests (Files): Add it.
21162         (Makefile.am): Compile it for test-locale-c++.
21163         * tests/test-math-c++2.cc: New file.
21164         * modules/math-tests (Files): Add it.
21165         (Makefile.am): Compile it for test-math-c++.
21166         * tests/test-signal-c++2.cc: New file.
21167         * modules/signal-tests (Files): Add it.
21168         (Makefile.am): Compile it for test-signal-c++.
21169         * tests/test-stdio-c++2.cc: New file.
21170         * modules/stdio-tests (Files): Add it.
21171         (Makefile.am): Compile it for test-stdio-c++.
21172         * tests/test-stdlib-c++2.cc: New file.
21173         * modules/stdlib-tests (Files): Add it.
21174         (Makefile.am): Compile it for test-stdlib-c++.
21175         * tests/test-string-c++2.cc: New file.
21176         * modules/string-tests (Files): Add it.
21177         (Makefile.am): Compile it for test-string-c++.
21178         * tests/test-time-c++2.cc: New file.
21179         * modules/time-tests (Files): Add it.
21180         (Makefile.am): Compile it for test-time-c++.
21181         Reported by John W. Eaton <jwe@gnu.org>.
21182
21183 2010-03-13  Bruno Haible  <bruno@clisp.org>
21184
21185         * gnulib-tool (func_usage): Clarify which options are available for
21186         --create-testdir and --create-megatestdir.
21187
21188 2010-03-13  Bruno Haible  <bruno@clisp.org>
21189
21190         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
21191         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
21192         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
21193         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
21194         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
21195         when appropriate.
21196         Reported by Jim Meyering.
21197
21198 2010-03-12  Simon Josefsson  <simon@josefsson.org>
21199
21200         * gnulib-tool (func_import): Explain origin of code.
21201
21202 2010-03-12  Bruno Haible  <bruno@clisp.org>
21203
21204         Fix problem with automake's definition of CXXLINK.
21205         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
21206         Reported by Simon Josefsson and Ludovic Courtès.
21207
21208 2010-03-12  Bruno Haible  <bruno@clisp.org>
21209
21210         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
21211         stable releases.
21212
21213 2010-03-11  Bruno Haible  <bruno@clisp.org>
21214
21215         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
21216         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
21217         whether the system provides one variant or multiple variants of the
21218         function.
21219         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
21220         C++ compilers.
21221         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
21222         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
21223         Reported by Jim Meyering.
21224
21225 2010-03-09  Simon Josefsson  <simon@josefsson.org>
21226
21227         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
21228
21229 2010-03-08  Bruno Haible  <bruno@clisp.org>
21230
21231         gnulib-tool: Add support for --libtool in --create-testdir.
21232         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
21233         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
21234
21235 2010-03-08  Eric Blake  <eblake@redhat.com>
21236
21237         gnulib-tool.texi: mention possibility of git submodule
21238         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
21239         submodules.
21240         * doc/.gitignore: Ignore another generated file.
21241
21242 2010-03-08  Karl Berry  <karl@gnu.org>
21243
21244         * doc/gnulib-tool.texi (VCS Issues): Mention third option
21245         of committing gnulib files while skipping others.
21246
21247 2010-03-07  Bruno Haible  <bruno@clisp.org>
21248
21249         Tests of module 'wctype' in C++ mode.
21250         * tests/test-wctype-c++.cc: New file.
21251         * modules/wctype-tests (Files): Add it and tests/signature.h.
21252         (Depends-on): Add ansi-c++-opt.
21253         (Makefile.am): Arrange to compile and run test-wctype-c++.
21254
21255         Tests of module 'wchar' in C++ mode.
21256         * tests/test-wchar-c++.cc: New file.
21257         * modules/wchar-tests (Files): Add it and tests/signature.h.
21258         (Depends-on): Add ansi-c++-opt.
21259         (Makefile.am): Arrange to compile and run test-wchar-c++.
21260         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
21261         gl_MODULE_INDICATOR.
21262
21263         Tests of module 'unistd' in C++ mode.
21264         * tests/test-unistd-c++.cc: New file.
21265         * modules/unistd-tests (Files): Add it and tests/signature.h.
21266         (Depends-on): Add ansi-c++-opt.
21267         (Makefile.am): Arrange to compile and run test-unistd-c++.
21268         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
21269         gl_MODULE_INDICATOR.
21270
21271         Tests of module 'time' in C++ mode.
21272         * tests/test-time-c++.cc: New file.
21273         * modules/time-tests (Files): Add it and tests/signature.h.
21274         (Depends-on): Add ansi-c++-opt.
21275         (Makefile.am): Arrange to compile and run test-time-c++.
21276         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
21277
21278         Tests of module 'sys_time' in C++ mode.
21279         * tests/test-sys_time-c++.cc: New file.
21280         * modules/sys_time-tests (Files): Add it and tests/signature.h.
21281         (Depends-on): Add ansi-c++-opt.
21282         (Makefile.am): Arrange to compile and run test-sys_time-c++.
21283         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
21284         gl_MODULE_INDICATOR.
21285
21286         Tests of module 'sys_stat' in C++ mode.
21287         * tests/test-sys_stat-c++.cc: New file.
21288         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
21289         (Depends-on): Add ansi-c++-opt.
21290         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
21291         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
21292         gl_MODULE_INDICATOR.
21293
21294         Tests of module 'sys_socket' in C++ mode.
21295         * tests/test-sys_socket-c++.cc: New file.
21296         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
21297         (Depends-on): Add ansi-c++-opt.
21298         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
21299         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
21300         gl_MODULE_INDICATOR.
21301
21302         Tests of module 'sys_select' in C++ mode.
21303         * tests/test-sys_select-c++.cc: New file.
21304         * modules/sys_select-tests (Files): Add it and tests/signature.h.
21305         (Depends-on): Add ansi-c++-opt.
21306         (Makefile.am): Arrange to compile and run test-sys_select-c++.
21307         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
21308         gl_MODULE_INDICATOR.
21309
21310         Tests of module 'sys_ioctl' in C++ mode.
21311         * tests/test-sys_ioctl-c++.cc: New file.
21312         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
21313         (Depends-on): Add ansi-c++-opt.
21314         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
21315         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
21316         gl_MODULE_INDICATOR.
21317
21318         Tests of module 'string' in C++ mode.
21319         * tests/test-string-c++.cc: New file.
21320         * modules/string-tests (Files): Add it and tests/signature.h.
21321         (Depends-on): Add ansi-c++-opt.
21322         (Makefile.am): Arrange to compile and run test-string-c++.
21323         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
21324         gl_MODULE_INDICATOR.
21325
21326         Tests of module 'stdlib' in C++ mode.
21327         * tests/test-stdlib-c++.cc: New file.
21328         * modules/stdlib-tests (Files): Add it and tests/signature.h.
21329         (Depends-on): Add ansi-c++-opt.
21330         (Makefile.am): Arrange to compile and run test-stdlib-c++.
21331         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
21332         gl_MODULE_INDICATOR.
21333
21334         Tests of module 'stdio' in C++ mode.
21335         * tests/test-stdio-c++.cc: New file.
21336         * modules/stdio-tests (Files): Add it and tests/signature.h.
21337         (Depends-on): Add ansi-c++-opt.
21338         (Makefile.am): Arrange to compile and run test-stdio-c++.
21339         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
21340         gl_MODULE_INDICATOR.
21341
21342         Tests of module 'spawn' in C++ mode.
21343         * tests/test-spawn-c++.cc: New file.
21344         * modules/spawn-tests (Files): Add it and tests/signature.h.
21345         (Depends-on): Add ansi-c++-opt.
21346         (Makefile.am): Arrange to compile and run test-spawn-c++.
21347         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
21348         gl_MODULE_INDICATOR.
21349
21350         Tests of module 'signal' in C++ mode.
21351         * tests/test-signal-c++.cc: New file.
21352         * modules/signal-tests (Files): Add it and tests/signature.h.
21353         (Depends-on): Add ansi-c++-opt.
21354         (Makefile.am): Arrange to compile and run test-signal-c++.
21355         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
21356         gl_MODULE_INDICATOR.
21357
21358         Tests of module 'search' in C++ mode.
21359         * tests/test-search-c++.cc: New file.
21360         * modules/search-tests (Files): Add it and tests/signature.h.
21361         (Depends-on): Add ansi-c++-opt.
21362         (Makefile.am): Arrange to compile and run test-search-c++.
21363         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
21364         gl_MODULE_INDICATOR.
21365
21366         Tests of module 'math' in C++ mode.
21367         * tests/test-math-c++.cc: New file.
21368         * modules/math-tests (Files): Add it and tests/signature.h.
21369         (Depends-on): Add ansi-c++-opt.
21370         (Makefile.am): Arrange to compile and run test-math-c++.
21371         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
21372
21373         Tests of module 'locale' in C++ mode.
21374         * tests/test-locale-c++.cc: New file.
21375         * modules/locale-tests (Files): Add it and tests/signature.h.
21376         (Depends-on): Add ansi-c++-opt.
21377         (Makefile.am): Arrange to compile and run test-locale-c++.
21378         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
21379         gl_MODULE_INDICATOR.
21380
21381         Tests of module 'langinfo' in C++ mode.
21382         * tests/test-langinfo-c++.cc: New file.
21383         * modules/langinfo-tests (Files): Add it and tests/signature.h.
21384         (Depends-on): Add ansi-c++-opt.
21385         (Makefile.am): Arrange to compile and run test-langinfo-c++.
21386         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
21387         gl_MODULE_INDICATOR.
21388
21389         Tests of module 'iconv-h' in C++ mode.
21390         * tests/test-iconv-h-c++.cc: New file.
21391         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
21392         (Depends-on): Add ansi-c++-opt.
21393         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
21394
21395         Tests of module 'glob' in C++ mode.
21396         * tests/test-glob-c++.cc: New file.
21397         * modules/glob-tests (Files): Add it.
21398         (Depends-on): Add ansi-c++-opt.
21399         (Makefile.am): Arrange to compile and run test-glob-c++.
21400
21401         Tests of module 'fcntl-h' in C++ mode.
21402         * tests/test-fcntl-h-c++.cc: New file.
21403         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
21404         (Depends-on): Add ansi-c++-opt.
21405         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
21406         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
21407         gl_MODULE_INDICATOR.
21408
21409         Tests of module 'dirent' in C++ mode.
21410         * tests/test-dirent-c++.cc: New file.
21411         * modules/dirent-tests (Files): Add it and tests/signature.h.
21412         (Depends-on): Add ansi-c++-opt.
21413         (Makefile.am): Arrange to compile and run test-dirent-c++.
21414         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
21415         gl_MODULE_INDICATOR.
21416
21417         New module 'ansi-c++-opt'.
21418         * modules/ansi-c++-opt: New file.
21419         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
21420
21421         Document C++ namespace mode.
21422         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
21423
21424         wctype: Avoid #define replacements in C++ mode.
21425         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
21426         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
21427         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
21428         In C++, define a namespaced alias symbol.
21429         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
21430         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
21431         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
21432         rule.
21433
21434         wchar: Avoid #define replacements in C++ mode.
21435         * lib/wchar.in.h: Include c++defs.h.
21436         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
21437         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
21438         symbol.
21439         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
21440         * modules/wchar (Depends-on): Add c++defs.
21441         (Makefile.am): Update wchar.h rule.
21442
21443         unistd: Avoid #define replacements in C++ mode.
21444         * lib/unistd.in.h: Include c++defs.h.
21445         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
21446         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
21447         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
21448         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
21449         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
21450         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
21451         symbol.
21452         (environ): Update.
21453         * modules/unistd (Depends-on): Add c++defs.
21454         (Makefile.am): Update unistd.h rule.
21455
21456         time: Avoid #define replacements in C++ mode.
21457         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
21458         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
21459         define a namespaced alias symbol.
21460         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
21461         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
21462         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
21463         * modules/time (Depends-on): Add c++defs, warn-on-use.
21464         (Makefile.am): Update time.h rule.
21465         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
21466         * modules/nanosleep (configure.ac): Likewise.
21467         * modules/strptime (configure.ac): Likewise.
21468         * modules/timegm (configure.ac): Likewise.
21469
21470         sys_time: Avoid #define replacements in C++ mode.
21471         * lib/sys_time.in.h: Include c++defs.h.
21472         (gettimeofday): In C++, define a namespaced alias symbol.
21473         * modules/sys_time (Depends-on): Add c++defs.
21474         (Makefile.am): Update sys/time.h rule.
21475
21476         sys_stat: Avoid #define replacements in C++ mode.
21477         * lib/sys_stat.in.h: Include c++defs.h.
21478         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
21479         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
21480         namespaced alias symbol.
21481         In C++, define a namespaced alias symbol.
21482         * modules/sys_stat (Depends-on): Add c++defs.
21483         (Makefile.am): Update sys/stat.h rule.
21484
21485         sys_socket: Avoid #define replacements in C++ mode.
21486         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
21487         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
21488         definitions also when the system has a <sys/socket.h>.
21489         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
21490         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
21491         In C++, define a namespaced alias symbol.
21492         * modules/sys_socket (Depends-on): Add c++defs.
21493         (Makefile.am): Update sys/socket.h rule.
21494
21495         sys_select: Avoid #define replacements in C++ mode.
21496         * lib/sys_select.in.h: Include c++defs.h. Enable the function
21497         definitions also when the system has a <sys/select.h>.
21498         (select): In C++, define a namespaced alias symbol.
21499         * modules/sys_select (Depends-on): Add c++defs.
21500         (Makefile.am): Update sys/select.h rule.
21501
21502         sys_ioctl: Avoid #define replacements in C++ mode.
21503         * lib/sys_ioctl.in.h: Include c++defs.h.
21504         (ioctl): In C++, define a namespaced alias symbol.
21505         * modules/sys_ioctl (Depends-on): Add c++defs.
21506         (Makefile.am): Update sys/ioctl.h rule.
21507
21508         string: Avoid #define replacements in C++ mode.
21509         * lib/string.in.h: Include c++defs.h.
21510         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
21511         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
21512         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
21513         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
21514         strsignal, strverscmp): In C++, define a namespaced alias symbol.
21515         * modules/string (Depends-on): Add c++defs.
21516         (Makefile.am): Update string.h rule.
21517
21518         stdlib: Avoid #define replacements in C++ mode.
21519         * lib/stdlib.in.h: Include c++defs.h.
21520         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
21521         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
21522         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
21523         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
21524         symbol.
21525         * modules/stdlib (Depends-on): Add c++defs.
21526         (Makefile.am): Update stdlib.h rule.
21527
21528         stdio: Avoid #define replacements in C++ mode.
21529         * lib/stdio.in.h: Include c++defs.h.
21530         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
21531         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
21532         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
21533         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
21534         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
21535         namespaced alias symbol.
21536         * modules/stdio (Depends-on): Add c++defs.
21537         (Makefile.am): Update stdio.h rule.
21538
21539         spawn: Avoid #define replacements in C++ mode.
21540         * lib/spawn.in.h: Include c++defs.h.
21541         (posix_spawn, posix_spawnp, posix_spawnattr_init,
21542         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
21543         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
21544         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
21545         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
21546         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
21547         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
21548         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
21549         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
21550         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
21551         In C++, define a namespaced alias symbol.
21552         * modules/spawn (Depends-on): Add c++defs.
21553         (Makefile.am): Update spawn.h rule.
21554
21555         signal: Avoid #define replacements in C++ mode.
21556         * lib/signal.in.h: Include c++defs.h.
21557         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
21558         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
21559         namespaced alias symbol.
21560         * modules/signal (Depends-on): Add c++defs.
21561         (Makefile.am): Update signal.h rule.
21562
21563         search: Avoid #define replacements in C++ mode.
21564         * lib/search.in.h: Include c++defs.h.
21565         (_gl_search_compar_fn, _gl_search_action_fn): New types.
21566         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
21567         symbol.
21568         * modules/search (Depends-on): Add c++defs.
21569         (Makefile.am): Update search.h rule.
21570
21571         math: Avoid #define replacements in C++ mode.
21572         * lib/math.in.h: Include c++defs.h.
21573         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
21574         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
21575         trunc, truncl): In C++, define a namespaced alias symbol.
21576         * modules/math (Depends-on): Add c++defs.
21577         (Makefile.am): Update math.h rule.
21578
21579         locale: Avoid #define replacements in C++ mode.
21580         * lib/locale.in.h: Include c++defs.h.
21581         (duplocale): In C++, define a namespaced alias symbol.
21582         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
21583         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
21584         * modules/locale (Depends-on): Add c++defs.
21585         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
21586
21587         langinfo: Avoid #define replacements in C++ mode.
21588         * lib/langinfo.in.h: Include c++defs.h.
21589         (nl_langinfo): In C++, define a namespaced alias symbol.
21590         * modules/langinfo (Depends-on): Add c++defs.
21591         (Makefile.am): Update langinfo.h rule.
21592
21593         iconv-h: Avoid #define replacements in C++ mode.
21594         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
21595         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
21596         symbol.
21597         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
21598         whenever iconv is present.
21599         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
21600         (Makefile.am): Update iconv.h rule.
21601
21602         glob: Avoid #define replacements in C++ mode.
21603         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
21604         (_gl_glob_errfunc_fn): New type.
21605         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
21606         symbol.
21607         * modules/glob (Depends-on): Add c++defs, warn-on-use.
21608         (Makefile.am): Update glob.h rule.
21609
21610         fcntl-h: Avoid #define replacements in C++ mode.
21611         * lib/fcntl.in.h: Include c++defs.h.
21612         (fcntl, open, openat): In C++, define a namespaced alias symbol.
21613         * modules/fcntl-h (Depends-on): Add c++defs.
21614         (Makefile.am): Update fcntl.h rule.
21615
21616         dirent: Avoid #define replacements in C++ mode.
21617         * lib/dirent.in.h: Include c++defs.h.
21618         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
21619         namespaced alias symbol.
21620         (dirfd): Update declaration.
21621         * modules/dirent (Depends-on): Add c++defs.
21622         (Makefile.am): Update dirent.h rule.
21623
21624         ctype: Make it usable in C++ code.
21625         * lib/ctype.in.h: Include c++defs.h.
21626         (isblank): Declare as extern "C".
21627         * modules/ctype (Depends-on): Add c++defs.
21628         (Makefile.am): Update ctype.h rule.
21629
21630         New module 'c++defs'.
21631         * modules/c++defs: New file.
21632         * build-aux/c++defs.h: New file.
21633         Reported by John W. Eaton <jwe@gnu.org>.
21634
21635 2010-03-07  Bruno Haible  <bruno@clisp.org>
21636
21637         logb: Provide missing declaration for Cygwin.
21638         * lib/math.in.h (logb): New declaration.
21639         * m4/logb.m4: New file.
21640         * modules/logb (Files): Add m4/logb.m4.
21641         (Depends-on): Add math.
21642         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
21643         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
21644         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
21645         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
21646         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
21647
21648 2010-03-07  Bruno Haible  <bruno@clisp.org>
21649
21650         Fix test-cond link error.
21651         * tests/test-cond.c: Include <stdio.h>.
21652
21653 2010-03-07  Bruno Haible  <bruno@clisp.org>
21654
21655         Fix test-dirent-safer link error.
21656         * modules/dirent-safer-tests (Makefile.am): Define
21657         test_dirent_safer_LDADD.
21658
21659 2010-03-07  Bruno Haible  <bruno@clisp.org>
21660
21661         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
21662         among default module list.
21663
21664 2010-03-07  Bruno Haible  <bruno@clisp.org>
21665
21666         Fix link error on platforms with GNU libiconv.
21667         * modules/unistr/u8-strcoll-tests (Makefile): Define
21668         test_u8_strcoll_LDADD.
21669         * modules/unistr/u16-strcoll-tests (Makefile): Define
21670         test_u16_strcoll_LDADD.
21671         * modules/unistr/u32-strcoll-tests (Makefile): Define
21672         test_u32_strcoll_LDADD.
21673
21674 2010-03-07  Bruno Haible  <bruno@clisp.org>
21675
21676         Use POSIX declarations for socket functions.
21677         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
21678         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
21679         rpl_sendto): Change declaration to match POSIX.
21680         * lib/connect.c (rpl_connect): Likewise.
21681         * lib/accept.c (rpl_accept): Likewise.
21682         * lib/bind.c (rpl_bind): Likewise.
21683         * lib/getpeername.c (rpl_getpeername): Likewise.
21684         * lib/getsockname.c (rpl_getsockname): Likewise.
21685         * lib/recv.c (rpl_recv): Likewise.
21686         * lib/send.c (rpl_send): Likewise.
21687         * lib/recvfrom.c (rpl_recvfrom): Likewise.
21688         * lib/sendto.c (rpl_sendto): Likewise.
21689
21690 2010-03-06  Bruno Haible  <bruno@clisp.org>
21691
21692         Clarify access, euidaccess, faccessat.
21693         * doc/posix-functions/faccessat.texi: Mention security problem under
21694         "Other problems", not "Portability problems".
21695         * doc/posix-functions/access.texi: Likewise. Mention a related security
21696         problem.
21697         * doc/glibc-functions/euidaccess.texi: Mention security problems.
21698         * lib/euidaccess.c: Add comments about platforms.
21699         * lib/unistd.in.h (access, euidaccess): Add warnings.
21700
21701 2010-03-07  Bruno Haible  <bruno@clisp.org>
21702
21703         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
21704         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
21705         (POSIX_SPAWN_SETSCHEDULER): Likewise.
21706         (POSIX_SPAWN_USEVFORK): Define in a way that works when
21707         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
21708         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
21709         declare when POSIX_SPAWN_SETSCHEDULER is zero.
21710         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
21711         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
21712         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
21713         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
21714         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
21715         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
21716         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
21717         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
21718         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
21719         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
21720         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
21721         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
21722         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
21723         Likewise.
21724         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
21725         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
21726         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
21727         Likewise.
21728         * tests/test-spawn.c (main): Make it work when
21729         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
21730
21731 2010-03-07  Bruno Haible  <bruno@clisp.org>
21732
21733         Fix incorrect Makefile.am generation in German locale.
21734         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
21735         Execute sed command with character range in C locale.
21736
21737 2010-03-06  Bruno Haible  <bruno@clisp.org>
21738
21739         Tests for module 'iconv-h'.
21740         * modules/iconv-h-tests: New file.
21741         * tests/test-iconv-h.c: New file.
21742
21743         New module 'iconv-h'.
21744         * modules/iconv-h: New file.
21745         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
21746         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
21747         (configure.ac): Remove gl_ICONV_H.
21748         (Makefile.am): Remove rule for iconv.h.
21749
21750 2010-03-06  Bruno Haible  <bruno@clisp.org>
21751
21752         More consistent naming of *.m4 files.
21753         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
21754         * modules/wctype (Files): Update.
21755
21756         More consistent naming of *.m4 files.
21757         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
21758         * modules/wchar (Files): Update.
21759
21760 2010-03-06  Jim Meyering  <meyering@redhat.com>
21761
21762         euidaccess: relax license to LGPLv2+
21763         * modules/euidaccess (License): Relax to LGPLv2+.
21764
21765 2010-03-06  Bruno Haible  <bruno@clisp.org>
21766
21767         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
21768         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
21769         (Makefile.am): Augment lib_SOURCES instead.
21770
21771 2010-03-04  Jim Meyering  <meyering@redhat.com>
21772
21773         utime: remove obsolete module
21774         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
21775         unnecessary for years, and has been marked as obsolete for 10 months.
21776         * modules/utime: Remove file.
21777         * lib/utime.c: Remove file.
21778         * m4/utime.m4: Remove file.
21779         * m4/utimes-null.m4: Remove file.
21780         * doc/posix-functions/utime.texi (utime): Remove reference to
21781         the module.  Move the sole "fixed by gnulib" item into the
21782         "problems not fixed by Gnulib" list.
21783         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
21784
21785 2010-03-05  Simon Josefsson  <simon@josefsson.org>
21786
21787         * modules/exit (License): Relax license to LGPLv2+.
21788         (Status): Mark as obsolete.
21789         * NEWS: Mention deprecated 'exit' module.
21790         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
21791         of now obsolete 'exit'.
21792
21793 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21794
21795         fts-lgpl: remove unused module
21796         * modules/fts-lgpl: Remove.
21797         * MODULES.html.sh (func_all_modules): Adjust.
21798         * check-module (find_included_lib_files): Adjust.
21799         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
21800
21801 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
21802
21803         copy-acl: enhance Solaris ACL error handling
21804         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
21805         * lib/set-mode-acl.c (qset_acl): Likewise.
21806
21807 2010-03-02  Bruno Haible  <bruno@clisp.org>
21808
21809         spawn: Don't override the system defined values on FreeBSD 8.
21810         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
21811         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
21812         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
21813         if HAVE_POSIX_SPAWN is 1.
21814         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
21815
21816 2010-03-01  Bruno Haible  <bruno@clisp.org>
21817
21818         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
21819         regarding Automake.
21820
21821 2010-02-25  Bruno Haible  <bruno@clisp.org>
21822
21823         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
21824         * gnulib-tool: Define 'echo' as a function only before the ksh alias
21825         setting, not afterwards.
21826         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
21827
21828 2010-02-24  Eric Blake  <eblake@redhat.com>
21829
21830         bootstrap, git-version-gen: use timestamp
21831         * build-aux/git-version-gen (scriptversion): Force UTC.
21832         * build-aux/bootstrap (scriptversion): New variable.
21833
21834         bootstrap: allow older git
21835         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
21836         older than 1.6.4.  Requested by the libvirt project.
21837
21838 2010-02-23  Eric Blake  <eblake@redhat.com>
21839
21840         warn-on-use: work with old autoconf
21841         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
21842         AS_VAR semantics of autoconf 2.60.
21843         Reported by Bruno Haible.
21844
21845         bootstrap: improve some comments
21846         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
21847         clarification comments.
21848
21849         gettimeofday: provide correct function
21850         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
21851         when replacement is declared, otherwise provide gettimeofday.
21852         Reported by Michael Goffioul.
21853
21854 2010-02-23  Jim Meyering  <meyering@redhat.com>
21855
21856         lib-ignore: relax license to "unlimited", not LGPLv2+
21857         * modules/lib-ignore (License): Relax to "unlimited".
21858
21859 2010-02-23  Jim Meyering  <meyering@redhat.com>
21860
21861         lib-ignore: relax license to LGPLv2+
21862         * modules/lib-ignore (License): Relax to LGPLv2+.
21863
21864 2010-02-22  Eric Blake  <eblake@redhat.com>
21865
21866         lseek: avoid bash 3.2 broken pipe bug
21867         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
21868         warning from bash 3.2.
21869         Reported by Ben Pfaff, with analysis from Bruno Haible.
21870
21871         bootstrap: support non-FSF copyright holder
21872         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
21873         bootstrap.conf override of COPYRIGHT_HOLDER.
21874         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
21875
21876         bootstrap: interoperate with gettext 0.14.1
21877         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
21878
21879         bootstrap: allow for alternate submodule location
21880         * build-aux/bootstrap (gnulib_path): New variable; use instead of
21881         hardcoding submodule location.
21882         (gnulib_mk): Allow direct use of Makefile.am.
21883
21884         bootstrap: use GNULIB_SRCDIR to reduce disk usage
21885         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
21886         rather than reconfiguring where the submodule points.
21887
21888         gettimeofday: restore support for platforms that lack function
21889         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
21890         replacement if function is missing.
21891         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
21892         * modules/sys_time (Makefile.am): Substitute it.
21893         * lib/sys_time.in.h (gettimeofday): Check it.
21894         Reported by Michael Goffioul.
21895
21896 2010-02-21  Bruno Haible  <bruno@clisp.org>
21897
21898         * lib/stdio.in.h (obstack_printf): Fix typo.
21899
21900 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
21901
21902         vc-list-files: use bzr ls's -R option
21903         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
21904         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
21905
21906 2010-02-21  Jim Meyering  <meyering@redhat.com>
21907
21908         init.sh: fix EXEEXT shims to work also for names like test-prog
21909         * tests/init.sh: Re-exec a better shell, when needed.
21910         If the current shell lacks support for posix $(...), an init.sh-using
21911         test will now try to find a shell that supports that.  If EXEEXT is
21912         nonempty, we also require support for hyphen-in-alias-name and shell
21913         substitutions like ${var#glob}.  Failure to find such a shell results
21914         in a skipped test.
21915
21916 2010-02-21  Bruno Haible  <bruno@clisp.org>
21917
21918         Really work around around "broken pipe" error message from bash 3.2.
21919         * gnulib-tool (func_reset_sigpipe): Remove function.
21920         (echo): In bash 3.2, define to a function that uses printf.
21921         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
21922
21923 2010-02-20  Bruno Haible  <bruno@clisp.org>
21924
21925         Restore support for automake 1.9.6 with autoconf 2.61.
21926         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
21927         Reported by James Youngman <jay@gnu.org>.
21928
21929 2010-02-20  Bruno Haible  <bruno@clisp.org>
21930
21931         Improve *printf warning condition.
21932         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
21933         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
21934         and the function is overridden due to SIGPIPE emulation.
21935
21936 2010-02-20  Bruno Haible  <bruno@clisp.org>
21937
21938         * lib/stdio.in.h: Tweak comments.
21939
21940 2010-02-19  Bruno Haible  <bruno@clisp.org>
21941
21942         Make it easier to find modules. New gnulib-tool option '--find'.
21943         * gnulib-tool: New option --find.
21944         (func_usage): Document it.
21945         (func_sanitize_modulelist): New function, extracted from
21946         func_all_modules.
21947         (func_all_modules): Invoke it.
21948         * doc/gnulib-tool.texi (Which modules?): New node.
21949
21950 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
21951
21952         * lib/sys_select.in.h: Provide select replacement even if
21953         sys/select.h exists on a system, for Interix.
21954
21955 2010-02-18  Jim Meyering  <meyering@redhat.com>
21956
21957         init.sh: don't use $(...) just yet
21958         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
21959         to accommodate e.g., Solaris' /bin/sh.
21960
21961 2010-02-17  Bruno Haible  <bruno@clisp.org>
21962
21963         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
21964         Reported by Ludovic Courtès <ludo@gnu.org>.
21965
21966 2010-02-16  Simon Josefsson  <simon@josefsson.org>
21967
21968         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
21969         linking with -lintl.
21970
21971 2010-02-17  Simon Josefsson  <simon@josefsson.org>
21972
21973         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
21974         if not provided by the system's netdb.h.  Reported by
21975         ludo@gnu.org (Ludovic Courtès).
21976
21977 2010-02-15  Jim Meyering  <meyering@redhat.com>
21978
21979         init.sh: improve portability and efficiency
21980         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
21981         "dummy" in a for loop.
21982         Use '!', not '^' to select the complement of a character set used
21983         in a "case" statement.
21984         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
21985         Suggestions from Eric Blake.
21986
21987         init.sh: automatically accommodate programs with the .exe suffix
21988         Automatically arrange for an invocation of "prog" to execute the
21989         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
21990         may use the simpler "prog", yet still work when built on a system
21991         that requires specifying the added suffix.
21992         Do this by constructing a function named "prog" that invokes
21993         "prog.exe" for each .exe file in selected directories.
21994         * tests/init.sh (find_exe_basenames_): New function.
21995         (create_exe_shim_functions_): New function.
21996         (path_prepend_): Use it.
21997
21998         maint.mk: mark syntax-check sc_*.m rules as .PHONY
21999         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
22000         "make -t syntax-check" doesn't create a ton of sc_*.m files.
22001
22002 2010-02-14  Jim Meyering  <meyering@redhat.com>
22003
22004         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
22005         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
22006         (sc_prohibit_hash_pjw_without_use): New rule.
22007
22008         maint.mk: allow the default upload destination dir to be overridden
22009         * top/maint.mk (upload_dest_dir_): Define with a default that
22010         preserves the status quo.
22011         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
22012         Reported by Peter Simons.
22013
22014         maint.mk: prohibit inclusion of "hash.h" without_use
22015         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
22016
22017 2010-02-10  Jim Meyering  <meyering@redhat.com>
22018
22019         maint.mk: prohibit inclusion of "ignore-value.h" without_use
22020         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
22021
22022 2010-02-09  Eric Blake  <ebb9@byu.net>
22023         and Bruno Haible  <bruno@clisp.org>
22024
22025         obstack-printf-posix: ensure declaration
22026         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
22027         extracted from gl_FUNC_OBSTACK_PRINTF.
22028         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
22029         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
22030         Likewise.
22031         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
22032         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
22033         0.
22034
22035 2010-02-08  Bruno Haible  <bruno@clisp.org>
22036
22037         gnulib-tool: Fix typo in 2010-02-07 commit.
22038         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
22039         Reported by Eric Blake.
22040
22041 2010-02-07  Bruno Haible  <bruno@clisp.org>
22042
22043         gnulib-tool: Fix up caching patches.
22044         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
22045         option --no-cache. Use associative arrays when supported by the shell.
22046         (sed_comments): New variable.
22047         (modcache): Renamed from do_cache.
22048         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
22049         abbreviate unnecessarily.
22050         (have_associative): New variable.
22051         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
22052         way also for ksh and zsh.
22053         (func_init_sed_convert_to_cache_statements): New function, extracted
22054         from func_cache_lookup_module. Add support for associative arrays.
22055         Don't set the c_MODULE_cached variable here. Ignore all lines before
22056         the first field header. Remove only the final newline, not all trailing
22057         newlines. Support empty fields correctly. Limit the use of 'eval' to
22058         assignments.
22059         (func_get_description, func_get_status, func_get_notice,
22060         func_get_applicability, func_get_filelist, func_get_dependencies,
22061         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
22062         func_get_automake_snippet, func_get_include_directive,
22063         func_get_link_directive, func_get_license, func_get_maintainer):
22064         Update documentation. List the unoptimized code first. Add support for
22065         associative arrays. Limit the use of 'eval' to assignments.
22066         (func_get_applicability): Undo stylistic pessimisations.
22067         (func_get_automake_snippet, func_get_include_directive): Reduce code
22068         duplication.
22069         (func_modules_transitive_closure, func_modules_add_dummy,
22070         func_modules_notice, func_modules_to_filelist, func_add_file,
22071         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
22072         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
22073         func_create_testdir, func_create_megatestdir): Update documentation.
22074
22075 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22076
22077         * gnulib-tool (func_cache_lookup_module): Store the module name
22078         belonging to the cache variable; error out if two different
22079         module names map to the same cache variable name.
22080
22081 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22082
22083         gnulib-tool: Make caching optional.
22084         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
22085         Update matching short versions of --no-changelog.
22086         (func_usage): Update.
22087         (sed_extract_cache_prog): Renamed from ...
22088         (sed_extract_prog): ... this; revert to old extraction script.
22089         (func_get_description, func_get_status)
22090         (func_get_notice, func_get_applicability, func_get_filelist)
22091         (func_get_dependencies, func_get_autoconf_early_snippet)
22092         (func_get_autoconf_snippet, func_get_automake_snippet)
22093         (func_get_include_directive, func_get_link_directive)
22094         (func_get_license, func_get_maintainer): If $do_cache is false,
22095         use old, non-caching extraction scripts.
22096         Suggestion by Bruno Haible.
22097
22098 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22099
22100         gnulib-tool: cache module metainformation.
22101         * gnulib-tool (sed_extract_prog): Match newline before each
22102         header, and rewrite header to a shell variable suffix.
22103         (func_cache_var, func_cache_lookup_module): New functions,
22104         to turn a module name into a cache variable prefix, and to
22105         look up and cache module metainformation.
22106         (func_get_description, func_get_status)
22107         (func_get_notice, func_get_applicability, func_get_filelist)
22108         (func_get_dependencies, func_get_autoconf_early_snippet)
22109         (func_get_autoconf_snippet, func_get_automake_snippet)
22110         (func_get_include_directive, func_get_link_directive)
22111         (func_get_license, func_get_maintainer): Use
22112         func_cache_lookup_module.
22113
22114 2010-02-07  Bruno Haible  <bruno@clisp.org>
22115
22116         fnctl: Fix missing dependency.
22117         * modules/fcntl (Depends-on): Add getdtablesize.
22118         Reported by John W. Eaton <jwe@gnu.org>.
22119
22120 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
22121
22122         Argp: fix recognition of short alias options.
22123
22124         * lib/argp-parse.c (convert_options): Fix improper use of
22125         `|' between character values.
22126         * tests/test-argp.c (group1_option): New alias option
22127         --read (-r).
22128         (group1_parser): Special handling for 'r'.
22129         (test15): New test case.
22130         (test_fun): Add test15.
22131         * tests/test-argp-2.sh: Update expected --help and --usage
22132         outputs.
22133
22134 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
22135
22136         * tests/test-argp.c: Fix indentation.
22137
22138 2010-02-04  Eric Blake  <ebb9@byu.net>
22139
22140         gettimeofday: expose type of second argument
22141         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
22142         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
22143         * tests/test-gettimeofday.c: Use it to silence warning.
22144         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
22145         the issue.
22146
22147 2010-02-03  Jim Meyering  <meyering@redhat.com>
22148
22149         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
22150         * lib/regcomp.c (TYPE_SIGNED): Define.
22151         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
22152
22153         regcomp.c: avoid a new -Wshadow warning
22154         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
22155
22156 2010-02-01  Jim Meyering  <meyering@redhat.com>
22157
22158         removing useless parentheses in cpp #define directives
22159         For motivation, see commit c0221df4, "define STREQ(a,b)
22160         consistently, removing useless parentheses"
22161         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
22162         * lib/mountlist.c (MNT_IGNORE): Likewise.
22163         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
22164
22165 2010-02-01  Eric Blake  <ebb9@byu.net>
22166
22167         sys_time: use link-warning
22168         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
22169         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
22170         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
22171         * modules/sys_time (Depends-on): Add warn-on-use.
22172         (Makefile.am): Always build replacement.
22173         (configure.ac): Update substitutions.
22174         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
22175         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
22176         bother with SYS_TIME_H.
22177         * modules/gettimeofday (configure.ac): Declare indicator.
22178         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
22179         in use.
22180
22181         closein-tests: silence compiler warning
22182         * tests/test-closein.c (main): Ignore fread result.
22183         * modules/closein-tests (Depends-on): Add ignore-value.
22184
22185         tests: silence warning about system return
22186         * tests/test-areadlink-with-size.c (main): Ignore system result.
22187         * tests/test-areadlink.c (main): Likewise.
22188         * tests/test-areadlinkat-with-size.c (main): Likewise.
22189         * tests/test-areadlinkat.c (main): Likewise.
22190         * tests/test-canonicalize-lgpl.c (main): Likewise.
22191         * tests/test-canonicalize.c (main): Likewise.
22192         * tests/test-chown.c (main): Likewise.
22193         * tests/test-fchownat.c (main): Likewise.
22194         * tests/test-fdutimensat.c (main): Likewise.
22195         * tests/test-fstatat.c (main): Likewise.
22196         * tests/test-futimens.c (main): Likewise.
22197         * tests/test-lchown.c (main): Likewise.
22198         * tests/test-link.c (main): Likewise.
22199         * tests/test-linkat.c (main): Likewise.
22200         * tests/test-lstat.c (main): Likewise.
22201         * tests/test-mkdir.c (main): Likewise.
22202         * tests/test-mkdirat.c (main): Likewise.
22203         * tests/test-mkfifo.c (main): Likewise.
22204         * tests/test-mkfifoat.c (main): Likewise.
22205         * tests/test-mknod.c (main): Likewise.
22206         * tests/test-readlink.c (main): Likewise.
22207         * tests/test-remove.c (main): Likewise.
22208         * tests/test-rename.c (main): Likewise.
22209         * tests/test-renameat.c (main): Likewise.
22210         * tests/test-rmdir.c (main): Likewise.
22211         * tests/test-symlink.c (main): Likewise.
22212         * tests/test-symlinkat.c (main): Likewise.
22213         * tests/test-unlink.c (main): Likewise.
22214         * tests/test-unlinkat.c (main): Likewise.
22215         * tests/test-utimens.c (main): Likewise.
22216         * tests/test-utimensat.c (main): Likewise.
22217         * modules/areadlink-tests (Depends-on): Add ignore-value.
22218         * modules/areadlink-with-size-tests (Depends-on): Likewise.
22219         * modules/areadlinkat-tests (Depends-on): Likewise.
22220         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
22221         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
22222         * modules/canonicalize-tests (Depends-on): Likewise.
22223         * modules/chown-tests (Depends-on): Likewise.
22224         * modules/fdutimensat-tests (Depends-on): Likewise.
22225         * modules/futimens-tests (Depends-on): Likewise.
22226         * modules/lchown-tests (Depends-on): Likewise.
22227         * modules/link-tests (Depends-on): Likewise.
22228         * modules/linkat-tests (Depends-on): Likewise.
22229         * modules/lstat-tests (Depends-on): Likewise.
22230         * modules/mkdir-tests (Depends-on): Likewise.
22231         * modules/mkfifo-tests (Depends-on): Likewise.
22232         * modules/mkfifoat-tests (Depends-on): Likewise.
22233         * modules/mknod-tests (Depends-on): Likewise.
22234         * modules/openat-tests (Depends-on): Likewise.
22235         * modules/readlink-tests (Depends-on): Likewise.
22236         * modules/remove-tests (Depends-on): Likewise.
22237         * modules/rename-tests (Depends-on): Likewise.
22238         * modules/renameat-tests (Depends-on): Likewise.
22239         * modules/rmdir-tests (Depends-on): Likewise.
22240         * modules/symlink-tests (Depends-on): Likewise.
22241         * modules/symlinkat-tests (Depends-on): Likewise.
22242         * modules/unlink-tests (Depends-on): Likewise.
22243         * modules/utimens-tests (Depends-on): Likewise.
22244         * modules/utimensat-tests (Depends-on): Likewise.
22245
22246 2010-01-31  Bruno Haible  <bruno@clisp.org>
22247
22248         Perform the same test for many <math.h> functions.
22249         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
22250         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
22251         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
22252         of gl_MATHFUNC.
22253         * modules/acos (configure.ac): Likewise.
22254         * modules/asin (configure.ac): Likewise.
22255         * modules/atan (configure.ac): Likewise.
22256         * modules/atan2 (configure.ac): Likewise.
22257         * modules/cbrt (configure.ac): Likewise.
22258         * modules/copysign (configure.ac): Likewise.
22259         * modules/cos (configure.ac): Likewise.
22260         * modules/cosh (configure.ac): Likewise.
22261         * modules/erf (configure.ac): Likewise.
22262         * modules/erfc (configure.ac): Likewise.
22263         * modules/exp (configure.ac): Likewise.
22264         * modules/fmod (configure.ac): Likewise.
22265         * modules/hypot (configure.ac): Likewise.
22266         * modules/j0 (configure.ac): Likewise.
22267         * modules/j1 (configure.ac): Likewise.
22268         * modules/jn (configure.ac): Likewise.
22269         * modules/lgamma (configure.ac): Likewise.
22270         * modules/log (configure.ac): Likewise.
22271         * modules/log10 (configure.ac): Likewise.
22272         * modules/log1p (configure.ac): Likewise.
22273         * modules/pow (configure.ac): Likewise.
22274         * modules/remainder (configure.ac): Likewise.
22275         * modules/sin (configure.ac): Likewise.
22276         * modules/sinh (configure.ac): Likewise.
22277         * modules/tan (configure.ac): Likewise.
22278         * modules/tanh (configure.ac): Likewise.
22279         * modules/y0 (configure.ac): Likewise.
22280         * modules/y1 (configure.ac): Likewise.
22281         * modules/yn (configure.ac): Likewise.
22282         Suggested by Paolo Bonzini.
22283
22284 2010-01-31  Bruno Haible  <bruno@clisp.org>
22285
22286         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
22287
22288 2010-01-31  Bruno Haible  <bruno@clisp.org>
22289
22290         Work around getdelim() bug on FreeBSD 8.0.
22291         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
22292         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
22293         not work.
22294         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
22295         is 1.
22296         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
22297         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
22298         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
22299         a non-zero size.
22300         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
22301
22302 2010-01-31  Bruno Haible  <bruno@clisp.org>
22303
22304         Work around getline() bug on FreeBSD 8.0.
22305         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
22306         and a non-zero size.
22307         * tests/test-getline.c (main): Likewise.
22308         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
22309         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
22310
22311 2010-01-28  Eric Blake  <ebb9@byu.net>
22312
22313         regex: fix build failure
22314         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
22315         platforms.
22316
22317 2010-01-28  Jim Meyering  <meyering@redhat.com>
22318
22319         regex: do not ignore memory allocation failure
22320         * lib/regex_internal.c (create_cd_newstate): Detect
22321         re_node_set_init_copy failure.   Extracted from glibc commit
22322         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
22323
22324         regex: sync more white-space changes from libc
22325         * lib/regex_internal.c: White-space only changes.
22326         * lib/regexec.c: Likewise.
22327
22328         regex: add many uses of __attribute_warn_unused_result__
22329         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
22330         * lib/regexec.c: Likewise.
22331         Extracted from a messy glibc commit.
22332
22333         regcomp.c: spelling and merge-artifact from glibc
22334         * lib/regcomp.c: Merge remainder of glibc's
22335         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
22336
22337         regcomp.c: sync white-space changes from glibc
22338         * lib/regcomp.c: Merge to accommodate white space
22339         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
22340
22341         regcomp.c: do not ignore internal return values
22342         * lib/regcomp.c: Do not ignore internal return values.
22343         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
22344         but without its white-space changes and spelling fixes.
22345
22346         regex_internal.h: define __attribute_warn_unused_result__
22347         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
22348
22349         maint: add a syntax-check rule to check for vulnerable Makefile.in
22350         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
22351
22352 2010-01-27  Jim Meyering  <meyering@redhat.com>
22353
22354         ncftpput-ftp: clean up spaces
22355         * build-aux/ncftpput-ftp: Make Copyright line consistent.
22356         Remove trailing blanks.
22357
22358 2010-01-27  Simon Josefsson  <simon@josefsson.org>
22359
22360         * build-aux/git-version-gen: Fix copyright statement.
22361         * build-aux/gnupload: Likewise.
22362         * tests/test-arcfour.c: Likewise.
22363         * tests/test-arctwo.c: Likewise.
22364         * tests/test-count-one-bits.c: Likewise.
22365         * tests/test-crc.c: Likewise.
22366         * tests/test-des.c: Likewise.
22367         * tests/test-gc-arcfour.c: Likewise.
22368         * tests/test-gc-arctwo.c: Likewise.
22369         * tests/test-gc-des.c: Likewise.
22370         * tests/test-gc-hmac-md5.c: Likewise.
22371         * tests/test-gc-hmac-sha1.c: Likewise.
22372         * tests/test-gc-md2.c: Likewise.
22373         * tests/test-gc-md4.c: Likewise.
22374         * tests/test-gc-md5.c: Likewise.
22375         * tests/test-gc-pbkdf2-sha1.c: Likewise.
22376         * tests/test-gc-rijndael.c: Likewise.
22377         * tests/test-gc-sha1.c: Likewise.
22378         * tests/test-gc.c: Likewise.
22379         * tests/test-gethostname.c: Likewise.
22380         * tests/test-gettimeofday.c: Likewise.
22381         * tests/test-hash.c: Likewise.
22382         * tests/test-hmac-md5.c: Likewise.
22383         * tests/test-hmac-sha1.c: Likewise.
22384         * tests/test-md2.c: Likewise.
22385         * tests/test-md4.c: Likewise.
22386         * tests/test-md5.c: Likewise.
22387         * tests/test-memchr.c: Likewise.
22388         * tests/test-memchr2.c: Likewise.
22389         * tests/test-memcmp.c: Likewise.
22390         * tests/test-memmem.c: Likewise.
22391         * tests/test-memrchr.c: Likewise.
22392         * tests/test-rawmemchr.c: Likewise.
22393         * tests/test-read-file.c: Likewise.
22394         * tests/test-rijndael.c: Likewise.
22395         * tests/test-sockets.c: Likewise.
22396         * tests/test-strchrnul.c: Likewise.
22397         * tests/test-strstr.c: Likewise.
22398         * tests/test-strtod.c: Likewise.
22399         * build-aux/ncftpput-ftp: Likewise.
22400
22401 2010-01-26  Eric Blake  <ebb9@byu.net>
22402
22403         ignore-value: update recommended header name
22404         * modules/ignore-value (Include): Only use <> for headers that
22405         exist in glibc.
22406
22407 2010-01-26  Jim Meyering  <meyering@redhat.com>
22408
22409         test-userspec.c: avoid compiler warnings
22410         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
22411         and "initialization discards qualifiers..." warnings.
22412         Put the first "uid" in its own scope, and make char* members "const".
22413
22414 2010-01-25  Bruno Haible  <bruno@clisp.org>
22415
22416         gnulib-tool: Make warning diagnostics consistent.
22417         * gnulib-tool (func_warning): New function.
22418         Use it everywhere where gnulib-tool produces output to stderr and it is
22419         not a fatal error.
22420
22421 2010-01-25  Bruno Haible  <bruno@clisp.org>
22422
22423         Fix test dependencies.
22424         * modules/xstrtol-tests (Depends-on): Add inttypes.
22425         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
22426
22427 2010-01-25 Pádraig Brady <P@draigBrady.com>
22428
22429         syntax-check: detect incorrect boolean macro values in config.h
22430         * modules/maintainer-makefile (configure.ac): Parameterize the location
22431         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
22432         The logic is from Eric Blake and the location indicated by Jim Meyering.
22433         Note the more natural CONFIG_HEADER name is prohibited by automake
22434         for backwards compatibility reasons.
22435         * top/maint.mk (sc_Wundef_boolean): New rule.
22436
22437 2010-01-25  Jim Meyering  <meyering@redhat.com>
22438
22439         bootstrap: detect MacOS 10.6's shasum, too
22440         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
22441         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
22442
22443 2010-01-23  Jim Meyering  <meyering@redhat.com>
22444
22445         xstrtoll: new module
22446         * modules/xstrtoll: New file.
22447         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
22448         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
22449         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
22450         ./configure fails if you use this module and lack "long long".
22451         * modules/xstrtoll-tests: New module.
22452         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
22453         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
22454         new init.sh-based test framework.
22455
22456 2010-01-24  Bruno Haible  <bruno@clisp.org>
22457
22458         Tests for module 'yn'.
22459         * modules/yn-tests: New file.
22460         * tests/test-yn.c: New file.
22461
22462         Tests for module 'y1'.
22463         * modules/y1-tests: New file.
22464         * tests/test-y1.c: New file.
22465
22466         Tests for module 'y0'.
22467         * modules/y0-tests: New file.
22468         * tests/test-y0.c: New file.
22469
22470         Tests for module 'tanh'.
22471         * modules/tanh-tests: New file.
22472         * tests/test-tanh.c: New file.
22473
22474         Tests for module 'tan'.
22475         * modules/tan-tests: New file.
22476         * tests/test-tan.c: New file.
22477
22478         Tests for module 'sqrt'.
22479         * modules/sqrt-tests: New file.
22480         * tests/test-sqrt.c: New file.
22481
22482         Tests for module 'sinh'.
22483         * modules/sinh-tests: New file.
22484         * tests/test-sinh.c: New file.
22485
22486         Tests for module 'sin'.
22487         * modules/sin-tests: New file.
22488         * tests/test-sin.c: New file.
22489
22490         Tests for module 'rint'.
22491         * modules/rint-tests: New file.
22492         * tests/test-rint.c: New file.
22493
22494         Tests for module 'remainder'.
22495         * modules/remainder-tests: New file.
22496         * tests/test-remainder.c: New file.
22497
22498         Tests for module 'pow'.
22499         * modules/pow-tests: New file.
22500         * tests/test-pow.c: New file.
22501
22502         Tests for module 'nextafter'.
22503         * modules/nextafter-tests: New file.
22504         * tests/test-nextafter.c: New file.
22505
22506         Tests for module 'modf'.
22507         * modules/modf-tests: New file.
22508         * tests/test-modf.c: New file.
22509
22510         Tests for module 'logb'.
22511         * modules/logb-tests: New file.
22512         * tests/test-logb.c: New file.
22513
22514         Tests for module 'log1p'.
22515         * modules/log1p-tests: New file.
22516         * tests/test-log1p.c: New file.
22517
22518         Tests for module 'log10'.
22519         * modules/log10-tests: New file.
22520         * tests/test-log10.c: New file.
22521
22522         Tests for module 'log'.
22523         * modules/log-tests: New file.
22524         * tests/test-log.c: New file.
22525
22526         Tests for module 'lgamma'.
22527         * modules/lgamma-tests: New file.
22528         * tests/test-lgamma.c: New file.
22529
22530         Tests for module 'ldexp'.
22531         * modules/ldexp-tests: New file.
22532         * tests/test-ldexp.c: New file.
22533
22534         Tests for module 'jn'.
22535         * modules/jn-tests: New file.
22536         * tests/test-jn.c: New file.
22537
22538         Tests for module 'j1'.
22539         * modules/j1-tests: New file.
22540         * tests/test-j1.c: New file.
22541
22542         Tests for module 'j0'.
22543         * modules/j0-tests: New file.
22544         * tests/test-j0.c: New file.
22545
22546         Tests for module 'hypot'.
22547         * modules/hypot-tests: New file.
22548         * tests/test-hypot.c: New file.
22549
22550         Tests for module 'fmod'.
22551         * modules/fmod-tests: New file.
22552         * tests/test-fmod.c: New file.
22553
22554         Tests for module 'fabs'.
22555         * modules/fabs-tests: New file.
22556         * tests/test-fabs.c: New file.
22557
22558         Tests for module 'exp'.
22559         * modules/exp-tests: New file.
22560         * tests/test-exp.c: New file.
22561
22562         Tests for module 'erfc'.
22563         * modules/erfc-tests: New file.
22564         * tests/test-erfc.c: New file.
22565
22566         Tests for module 'erf'.
22567         * modules/erf-tests: New file.
22568         * tests/test-erf.c: New file.
22569
22570         Tests for module 'cosh'.
22571         * modules/cosh-tests: New file.
22572         * tests/test-cosh.c: New file.
22573
22574         Tests for module 'cos'.
22575         * modules/cos-tests: New file.
22576         * tests/test-cos.c: New file.
22577
22578         Tests for module 'copysign'.
22579         * modules/copysign-tests: New file.
22580         * tests/test-copysign.c: New file.
22581
22582         Tests for module 'cbrt'.
22583         * modules/cbrt-tests: New file.
22584         * tests/test-cbrt.c: New file.
22585
22586         Tests for module 'atan2'.
22587         * modules/atan2-tests: New file.
22588         * tests/test-atan2.c: New file.
22589
22590         Tests for module 'atan'.
22591         * modules/atan-tests: New file.
22592         * tests/test-atan.c: New file.
22593
22594         Tests for module 'asin'.
22595         * modules/asin-tests: New file.
22596         * tests/test-asin.c: New file.
22597
22598         Tests for module 'acos'.
22599         * modules/acos-tests: New file.
22600         * tests/test-acos.c: New file.
22601
22602 2010-01-24  Bruno Haible  <bruno@clisp.org>
22603
22604         Fix tests for common <math.h> functions.
22605         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
22606         code snippet that references the function pointer, rather than merely
22607         calling the function. Substitute the FUNC_LIBM variable.
22608         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
22609         * modules/acos (configure.ac): Likewise.
22610         * modules/asin (configure.ac): Likewise.
22611         * modules/atan (configure.ac): Likewise.
22612         * modules/atan2 (configure.ac): Likewise.
22613         * modules/cbrt (configure.ac): Likewise.
22614         * modules/copysign (configure.ac): Likewise.
22615         * modules/cos (configure.ac): Likewise.
22616         * modules/cosh (configure.ac): Likewise.
22617         * modules/erf (configure.ac): Likewise.
22618         * modules/erfc (configure.ac): Likewise.
22619         * modules/exp (configure.ac): Likewise.
22620         * modules/fabs (configure.ac): Likewise.
22621         * modules/fmod (configure.ac): Likewise.
22622         * modules/hypot (configure.ac): Likewise.
22623         * modules/j0 (configure.ac): Likewise.
22624         * modules/j1 (configure.ac): Likewise.
22625         * modules/jn (configure.ac): Likewise.
22626         * modules/ldexp (configure.ac): Likewise.
22627         * modules/lgamma (configure.ac): Likewise.
22628         * modules/log (configure.ac): Likewise.
22629         * modules/log10 (configure.ac): Likewise.
22630         * modules/log1p (configure.ac): Likewise.
22631         * modules/logb (configure.ac): Likewise.
22632         * modules/modf (configure.ac): Likewise.
22633         * modules/nextafter (configure.ac): Likewise.
22634         * modules/pow (configure.ac): Likewise.
22635         * modules/remainder (configure.ac): Likewise.
22636         * modules/rint (configure.ac): Likewise.
22637         * modules/sin (configure.ac): Likewise.
22638         * modules/sinh (configure.ac): Likewise.
22639         * modules/tan (configure.ac): Likewise.
22640         * modules/tanh (configure.ac): Likewise.
22641         * modules/y0 (configure.ac): Likewise.
22642         * modules/y1 (configure.ac): Likewise.
22643         * modules/yn (configure.ac): Likewise.
22644
22645 2010-01-24  Bruno Haible  <bruno@clisp.org>
22646
22647         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
22648         * tests/test-acosl.c (x): New variable.
22649         (main): Store argument in x and fetch it from x.
22650         * tests/test-asinl.c (x): New variable.
22651         (main): Store argument in x and fetch it from x.
22652         * tests/test-atanl.c (x): New variable.
22653         (main): Store argument in x and fetch it from x.
22654         * tests/test-cosl.c (x): New variable.
22655         (main): Store argument in x and fetch it from x.
22656         * tests/test-expl.c (x): New variable.
22657         (main): Store argument in x and fetch it from x.
22658         * tests/test-logl.c (x): New variable.
22659         (main): Store argument in x and fetch it from x.
22660         * tests/test-sinl.c (x): New variable.
22661         (main): Store argument in x and fetch it from x.
22662         * tests/test-sqrtl.c (x): New variable.
22663         (main): Store argument in x and fetch it from x.
22664         * tests/test-tanl.c (x): New variable.
22665         (main): Store argument in x and fetch it from x.
22666
22667 2010-01-24  Bruno Haible  <bruno@clisp.org>
22668
22669         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
22670         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
22671         assignments to the initial TESTS_ENVIRONMENT.
22672         * doc/gnulib.texi (Unit test modules): Document it.
22673         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
22674         TESTS_ENVIRONMENT.
22675         * modules/btowc-tests (Makefile.am): Likewise.
22676         * modules/c-stack-tests (Makefile.am): Likewise.
22677         * modules/c-strcase-tests (Makefile.am): Likewise.
22678         * modules/copy-file-tests (Makefile.am): Likewise.
22679         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
22680         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
22681         * modules/mbrtowc-tests (Makefile.am): Likewise.
22682         * modules/mbscasecmp-tests (Makefile.am): Likewise.
22683         * modules/mbscasestr-tests (Makefile.am): Likewise.
22684         * modules/mbschr-tests (Makefile.am): Likewise.
22685         * modules/mbscspn-tests (Makefile.am): Likewise.
22686         * modules/mbsinit-tests (Makefile.am): Likewise.
22687         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
22688         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
22689         * modules/mbspbrk-tests (Makefile.am): Likewise.
22690         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
22691         * modules/mbsrchr-tests (Makefile.am): Likewise.
22692         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
22693         * modules/mbsspn-tests (Makefile.am): Likewise.
22694         * modules/mbsstr-tests (Makefile.am): Likewise.
22695         * modules/nl_langinfo-tests (Makefile.am): Likewise.
22696         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
22697         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
22698         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
22699         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
22700         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
22701         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
22702         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
22703         * modules/wcrtomb-tests (Makefile.am): Likewise.
22704         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
22705         * modules/wcsrtombs-tests (Makefile.am): Likewise.
22706         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
22707         assignments from TESTS_ENVIRONMENT.
22708         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
22709         augmentation.
22710         * modules/argp-version-etc-tests (Makefile.am): Likewise.
22711         * modules/atexit-tests (Makefile.am): Likewise.
22712         * modules/binary-io-tests (Makefile.am): Likewise.
22713         * modules/closein-tests (Makefile.am): Likewise.
22714         * modules/dprintf-posix-tests (Makefile.am): Likewise.
22715         * modules/exclude-tests (Makefile.am): Likewise.
22716         * modules/fflush-tests (Makefile.am): Likewise.
22717         * modules/fpending-tests (Makefile.am): Likewise.
22718         * modules/fprintf-posix-tests (Makefile.am): Likewise.
22719         * modules/freadahead-tests (Makefile.am): Likewise.
22720         * modules/freadptr-tests (Makefile.am): Likewise.
22721         * modules/freadseek-tests (Makefile.am): Likewise.
22722         * modules/fseek-tests (Makefile.am): Likewise.
22723         * modules/fseeko-tests (Makefile.am): Likewise.
22724         * modules/ftell-tests (Makefile.am): Likewise.
22725         * modules/ftello-tests (Makefile.am): Likewise.
22726         * modules/idpriv-drop-tests (Makefile.am): Likewise.
22727         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
22728         * modules/lseek-tests (Makefile.am): Likewise.
22729         * modules/parse-duration-tests (Makefile.am): Likewise.
22730         * modules/perror-tests (Makefile.am): Likewise.
22731         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
22732         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
22733         * modules/pipe-tests (Makefile.am): Likewise.
22734         * modules/pread-tests (Makefile.am): Likewise.
22735         * modules/printf-posix-tests (Makefile.am): Likewise.
22736         * modules/select-tests (Makefile.am): Likewise.
22737         * modules/sigpipe-tests (Makefile.am): Likewise.
22738         * modules/tsearch-tests (Makefile.am): Likewise.
22739         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
22740         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
22741         * modules/uniname/uniname-tests (Makefile.am): Likewise.
22742         * modules/uniwidth/width-tests (Makefile.am): Likewise.
22743         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
22744         * modules/version-etc-tests (Makefile.am): Likewise.
22745         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
22746         * modules/vprintf-posix-tests (Makefile.am): Likewise.
22747         * modules/xalloc-die-tests (Makefile.am): Likewise.
22748         * modules/xprintf-posix-tests (Makefile.am): Likewise.
22749         * modules/xstrtoimax-tests (Makefile.am): Likewise.
22750         * modules/xstrtol-tests (Makefile.am): Likewise.
22751         * modules/xstrtoumax-tests (Makefile.am): Likewise.
22752         * modules/yesno-tests (Makefile.am): Likewise.
22753         Suggested by Jim Meyering.
22754
22755 2010-01-24  Bruno Haible  <bruno@clisp.org>
22756
22757         More documentation.
22758         * doc/gnulib.texi (Writing modules): New chapter.
22759         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
22760         the new chapter.
22761
22762 2010-01-24  Jim Meyering  <meyering@redhat.com>
22763
22764         maint.mk: do not prepend "./" after filtering
22765         * top/maint.mk (_prepend_srcdir_prefix): New variable
22766         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
22767         "./" when $(srcdir) is ".".
22768
22769         define STREQ(a,b) consistently, removing useless parentheses
22770         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
22771         since the only risk is that "a" or "b" contains an unparenthesized
22772         comma, but if either did that, STREQ would have 3 or more arguments.
22773         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
22774         * lib/fts.c (STREQ): Remove unnecessary parentheses.
22775         * lib/hash-triple.c (STREQ): Likewise.
22776         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
22777         * lib/getugroups.c (STREQ): Likewise.
22778
22779 2010-01-23  Jim Meyering  <meyering@redhat.com>
22780
22781         maint.mk: fix syntax-check in a non-srcdir build directory
22782         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
22783         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
22784
22785 2010-01-22  Jim Meyering  <meyering@redhat.com>
22786
22787         userspec: add unit tests
22788         * tests/test-userspec.c: New file.
22789         * modules/userspec-tests: Likewise.
22790
22791 2010-01-21  Jim Meyering  <meyering@redhat.com>
22792
22793         maint.mk: handle source file names containing "." robustly
22794         * top/maint.mk (_dot_escaped_srcdir): Define.
22795         (VC_LIST): Use it in LHS of sed substitution.
22796
22797 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
22798
22799         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
22800         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
22801         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
22802         from a non-srcdir build.
22803
22804 2010-01-20  Eric Blake  <ebb9@byu.net>
22805
22806         warn-on-use: use instead of link-warning
22807         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
22808         * modules/unistd (Depends-on, Makefile.am): Likewise.
22809         * modules/arpa_inet (Depends-on): Replace link-warning with
22810         warn-on-use.
22811         (Makefile.am): Update rules accordingly.
22812         * modules/ctype (Depends-on, Makefile.am): Likewise.
22813         * modules/dirent (Depends-on, Makefile.am): Likewise.
22814         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
22815         * modules/inttypes (Depends-on, Makefile.am): Likewise.
22816         * modules/langinfo (Depends-on, Makefile.am): Likewise.
22817         * modules/locale (Depends-on, Makefile.am): Likewise.
22818         * modules/math (Depends-on, Makefile.am): Likewise.
22819         * modules/search (Depends-on, Makefile.am): Likewise.
22820         * modules/signal (Depends-on, Makefile.am): Likewise.
22821         * modules/spawn (Depends-on, Makefile.am): Likewise.
22822         * modules/stdlib (Depends-on, Makefile.am): Likewise.
22823         * modules/string (Depends-on, Makefile.am): Likewise.
22824         * modules/strings (Depends-on, Makefile.am): Likewise.
22825         * modules/sys_file (Depends-on, Makefile.am): Likewise.
22826         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
22827         * modules/sys_select (Depends-on, Makefile.am): Likewise.
22828         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
22829         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
22830         * modules/sys_times (Depends-on, Makefile.am): Likewise.
22831         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
22832         * modules/wchar (Depends-on, Makefile.am): Likewise.
22833         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
22834         should be poisoned.
22835         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
22836         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
22837         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
22838         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
22839         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
22840         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
22841         * m4/math_h.m4 (gl_MATH_H): Likewise.
22842         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
22843         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
22844         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
22845         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
22846         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
22847         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
22848         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
22849         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
22850         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
22851         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
22852         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
22853         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
22854         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
22855         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
22856         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
22857         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
22858         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
22859         GL_LINK_WARNING.
22860         * lib/ctype.in.h: Likewise.
22861         * lib/dirent.in.h: Likewise.
22862         * lib/fcntl.in.h: Likewise.
22863         * lib/inttypes.in.h: Likewise.
22864         * lib/langinfo.in.h: Likewise.
22865         * lib/locale.in.h: Likewise.
22866         * lib/math.in.h: Likewise.
22867         * lib/search.in.h: Likewise.
22868         * lib/signal.in.h: Likewise.
22869         * lib/spawn.in.h: Likewise.
22870         * lib/stdio.in.h: Likewise.
22871         * lib/stdlib.in.h: Likewise.
22872         * lib/string.in.h: Likewise.
22873         * lib/strings.in.h: Likewise.
22874         * lib/sys_file.in.h: Likewise.
22875         * lib/sys_ioctl.in.h: Likewise.
22876         * lib/sys_select.in.h: Likewise.
22877         * lib/sys_socket.in.h: Likewise.
22878         * lib/sys_stat.in.h: Likewise.
22879         * lib/sys_times.in.h: Likewise.
22880         * lib/sys_utsname.in.h: Likewise.
22881         * lib/unistd.in.h: Likewise.
22882         * lib/wchar.in.h: Likewise.
22883
22884 2010-01-20  Bruno Haible  <bruno@clisp.org>
22885
22886         Avoid duplicate -lm.
22887         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
22888         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
22889         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
22890         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
22891         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
22892         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
22893         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
22894         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
22895         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
22896         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
22897         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
22898         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
22899         Reported by Paolo Bonzini.
22900
22901 2010-01-19  Bruno Haible  <bruno@clisp.org>
22902
22903         langinfo, nl_langinfo: Relicense under LGPLv2+.
22904         * modules/langinfo (License): Change to LGPLv2+.
22905         * modules/nl_langinfo (License): Likewise.
22906         Patch by David Lutterkort <lutter@redhat.com>.
22907
22908 2010-01-19  Bruno Haible  <bruno@clisp.org>
22909
22910         Avoid compilation error with cc on OSF/1 5.1.
22911         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
22912         statement, not before.
22913         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
22914
22915 2010-01-18  Bruno Haible  <bruno@clisp.org>
22916
22917         Avoid a link error due to the __printf__ symbol.
22918         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
22919         and 2.6.x.
22920         (__format__, __printf__): Remove definitions.
22921         * lib/argp-fmtstream.h: Likewise.
22922         * lib/argp.h: Likewise.
22923         * lib/error.h: Likewise.
22924         * lib/vasnprintf.h: Likewise.
22925         * lib/xprintf.h: Likewise.
22926         * lib/xvasprintf.h: Likewise.
22927         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
22928
22929 2010-01-18  Bruno Haible  <bruno@clisp.org>
22930
22931         Tests for module 'tanl'.
22932         * modules/tanl-tests: New file.
22933         * tests/test-tanl.c: New file.
22934
22935         Tests for module 'sqrtl'.
22936         * modules/sqrtl-tests: New file.
22937         * tests/test-sqrtl.c: New file.
22938
22939         Tests for module 'sinl'.
22940         * modules/sinl-tests: New file.
22941         * tests/test-sinl.c: New file.
22942
22943         Tests for module 'logl'.
22944         * modules/logl-tests: New file.
22945         * tests/test-logl.c: New file.
22946
22947         Tests for module 'expl'.
22948         * modules/expl-tests: New file.
22949         * tests/test-expl.c: New file.
22950
22951         Tests for module 'cosl'.
22952         * modules/cosl-tests: New file.
22953         * tests/test-cosl.c: New file.
22954
22955         Tests for module 'atanl'.
22956         * modules/atanl-tests: New file.
22957         * tests/test-atanl.c: New file.
22958
22959         Tests for module 'asinl'.
22960         * modules/asinl-tests: New file.
22961         * tests/test-asinl.c: New file.
22962
22963         Tests for module 'acosl'.
22964         * modules/acosl-tests: New file.
22965         * tests/test-acosl.c: New file.
22966
22967         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
22968         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
22969         tanl): Use the standard gnulib idiom.
22970         * lib/cosl.c: Don't include trigl.c and sincosl.c.
22971         * lib/sinl.c: Likewise.
22972         * lib/tanl.c: Don't include trigl.c.
22973         (kernel_tanl): Make static.
22974         * lib/sincosl.c: Include trigl.h first.
22975         * lib/trigl.c: Likewise.
22976         * m4/acosl.m4: New file.
22977         * m4/asinl.m4: New file.
22978         * m4/atanl.m4: New file.
22979         * m4/cosl.m4: New file.
22980         * m4/expl.m4: New file.
22981         * m4/logl.m4: New file.
22982         * m4/sinl.m4: New file.
22983         * m4/sqrtl.m4: New file.
22984         * m4/tanl.m4: New file.
22985         * m4/mathl.m4: Remove file.
22986         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
22987         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
22988         Don't initialize GNULIB_MATHL.
22989         * modules/acosl: New file.
22990         * modules/asinl: New file.
22991         * modules/atanl: New file.
22992         * modules/cosl: New file.
22993         * modules/expl: New file.
22994         * modules/logl: New file.
22995         * modules/sinl: New file.
22996         * modules/sqrtl: New file.
22997         * modules/tanl: New file.
22998         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
22999         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
23000         substitute GNULIB_MATHL.
23001         * modules/mathl: Rewritten.
23002         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
23003         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
23004         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
23005         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
23006         * doc/posix-functions/expl.texi: Mention the 'expl' module.
23007         * doc/posix-functions/logl.texi: Mention the 'logl' module.
23008         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
23009         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
23010         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
23011
23012 2010-01-18  Bruno Haible  <bruno@clisp.org>
23013
23014         sqrt: Make gl_FUNC_SQRT requirable.
23015         * m4/sqrt.m4: New file.
23016         * modules/sqrt (Files): Add it.
23017         (configure.ac): Invoke gl_FUNC_SQRT.
23018
23019 2010-01-18  Bruno Haible  <bruno@clisp.org>
23020
23021         New modules for common <math.h> functions.
23022         * m4/mathfunc.m4: New file.
23023         * modules/acos: New file.
23024         * modules/asin: New file.
23025         * modules/atan: New file.
23026         * modules/atan2: New file.
23027         * modules/cbrt: New file.
23028         * modules/copysign: New file.
23029         * modules/cos: New file.
23030         * modules/cosh: New file.
23031         * modules/erf: New file.
23032         * modules/erfc: New file.
23033         * modules/exp: New file.
23034         * modules/fabs: New file.
23035         * modules/fmod: New file.
23036         * modules/hypot: New file.
23037         * modules/j0: New file.
23038         * modules/j1: New file.
23039         * modules/jn: New file.
23040         * modules/ldexp: New file.
23041         * modules/lgamma: New file.
23042         * modules/log: New file.
23043         * modules/log10: New file.
23044         * modules/log1p: New file.
23045         * modules/logb: New file.
23046         * modules/modf: New file.
23047         * modules/nextafter: New file.
23048         * modules/pow: New file.
23049         * modules/remainder: New file.
23050         * modules/rint: New file.
23051         * modules/sin: New file.
23052         * modules/sinh: New file.
23053         * modules/sqrt: New file.
23054         * modules/tan: New file.
23055         * modules/tanh: New file.
23056         * modules/y0: New file.
23057         * modules/y1: New file.
23058         * modules/yn: New file.
23059         * doc/posix-functions/acos.texi: Mention the 'acos' module.
23060         * doc/posix-functions/asin.texi: Mention the 'asin' module.
23061         * doc/posix-functions/atan.texi: Mention the 'atan' module.
23062         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
23063         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
23064         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
23065         * doc/posix-functions/cos.texi: Mention the 'cos' module.
23066         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
23067         * doc/posix-functions/erf.texi: Mention the 'erf' module.
23068         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
23069         * doc/posix-functions/exp.texi: Mention the 'exp' module.
23070         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
23071         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
23072         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
23073         * doc/posix-functions/j0.texi: Mention the 'j0' module.
23074         * doc/posix-functions/j1.texi: Mention the 'j1' module.
23075         * doc/posix-functions/jn.texi: Mention the 'jn' module.
23076         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
23077         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
23078         * doc/posix-functions/log.texi: Mention the 'log' module.
23079         * doc/posix-functions/log10.texi: Mention the 'log10' module.
23080         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
23081         * doc/posix-functions/logb.texi: Mention the 'logb' module.
23082         * doc/posix-functions/modf.texi: Mention the 'modf' module.
23083         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
23084         * doc/posix-functions/pow.texi: Mention the 'pow' module.
23085         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
23086         * doc/posix-functions/rint.texi: Mention the 'rint' module.
23087         * doc/posix-functions/sin.texi: Mention the 'sin' module.
23088         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
23089         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
23090         * doc/posix-functions/tan.texi: Mention the 'tan' module.
23091         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
23092         * doc/posix-functions/y0.texi: Mention the 'y0' module.
23093         * doc/posix-functions/y1.texi: Mention the 'y1' module.
23094         * doc/posix-functions/yn.texi: Mention the 'yn' module.
23095
23096 2010-01-18  Jim Meyering  <meyering@redhat.com>
23097
23098         ignore-value: relax license to LGPLv2+
23099         * modules/ignore-value (License): Relax to LGPLv2+.
23100
23101         getdate: don't leak when TZ contains two or more '"'s
23102         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
23103         double quote in TZ after the first one.
23104
23105         readtokens: do not leak internal token_lengths buffer
23106         * lib/readtokens.c (readtokens): Free the local, lengths,
23107         when the supplied "token_lengths" parameter is NULL.
23108
23109 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23110
23111         Fix a couple of missing LIBTHREAD link failures on AIX.
23112         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
23113         $(LIBTHREAD).
23114         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
23115
23116         Link test-poll against INET_PTON_LIB.
23117         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
23118         for inet_pton on Solaris 10.
23119
23120 2010-01-17  Bruno Haible  <bruno@clisp.org>
23121
23122         unistdio/*-sprintf: Fix typo in module description.
23123         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
23124         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
23125         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
23126         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
23127         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
23128         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
23129         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
23130         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
23131
23132 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23133
23134         gnulib-tool: fix filelist for AIX, HP-UX ksh.
23135         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
23136         variables in shell case patterns, for AIX and HP-UX ksh.
23137
23138         Split large sed scripts, for HP-UX sed.
23139         * modules/stdio: Split sed scripts around 50 sed commands,
23140         to avoid HP-UX limit of 99 commands, in the near future.
23141         * modules/string: Likewise.
23142         * modules/unistd: Likewise.
23143
23144         gnulib-tool: avoid writing in the current directory.
23145         * gnulib-tool (func_emit_lib_Makefile_am)
23146         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
23147         not in the current directory, so concurrent gnulib-tool
23148         instances do not interfere.
23149
23150 2010-01-16  Jim Meyering  <meyering@redhat.com>
23151
23152         doc: update users.txt
23153         * users.txt: Add grep.
23154         (diffutils, gzip): Update URLs.
23155
23156 2010-01-12  Bruno Haible  <bruno@clisp.org>
23157
23158         posix_spawn: Avoid test failure on Cygwin.
23159         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
23160         characters.
23161         Reported by Simon Josefsson.
23162
23163 2010-01-12  Bruno Haible  <bruno@clisp.org>
23164
23165         * tests/test-cond.c (main): When skipping the test, show the reason.
23166
23167 2010-01-12  Simon Josefsson  <simon@josefsson.org>
23168
23169         * lib/striconv.c (str_cd_iconv): Avoid if before free.
23170
23171 2010-01-12  Simon Josefsson  <simon@josefsson.org>
23172
23173         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
23174         VC_LIST_ALWAYS_EXCLUDE_REGEX.
23175
23176 2010-01-12  Eric Blake  <ebb9@byu.net>
23177
23178         build: guarantee AS_VAR_IF
23179         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
23180         (gl_AS_VAR_IF): Move...
23181         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
23182         Reported by Simon Josefsson.
23183
23184 2010-01-12  Simon Josefsson  <simon@josefsson.org>
23185
23186         * lib/stdio.in.h: Fix typo.
23187
23188 2010-01-12  Simon Josefsson  <simon@josefsson.org>
23189
23190         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
23191         libgpg-error.
23192
23193 2010-01-12  Simon Josefsson  <simon@josefsson.org>
23194
23195         * tests/test-xalloc-die.sh: Use $EXEEXT.
23196
23197 2010-01-12  Simon Josefsson  <simon@josefsson.org>
23198             Bruno Haible  <bruno@clisp.org>
23199
23200         getlogin, getlogin_r: Avoid test failure.
23201         * tests/test-getlogin.c: Include <stdio.h>.
23202         (main): Skip the test when the function fails because stdin is not a
23203         tty.
23204         * tests/test-getlogin_r.c: Include <stdio.h>.
23205         (main): Skip the test when the function fails because stdin is not a
23206         tty.
23207
23208 2010-01-11  Eric Blake  <ebb9@byu.net>
23209
23210         tests: avoid more large file warnings
23211         * tests/test-fflush.c: Avoid warning about ftell use.
23212         * tests/test-fseek.c: Avoid warning about fseek use.
23213
23214 2010-01-10  Bruno Haible  <bruno@clisp.org>
23215
23216         nproc: Work better on Linux when /proc and /sys are not mounted.
23217         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
23218         as lower bound when, on glibc/Linux systems,
23219         sysconf (_SC_NPROCESSORS_CONF) returns 1.
23220         Suggested by Pádraig Brady <P@draigbrady.com>.
23221         Reported by Dmitry V. Levin <ldv@altlinux.org>.
23222
23223         nproc: Refactor.
23224         * lib/nproc.c (num_processors_via_affinity_mask): New function,
23225         extracted from num_processors.
23226         (num_processors): Call it.
23227
23228 2010-01-11  Jim Meyering  <meyering@redhat.com>
23229
23230         utimecmp: avoid new warning from upcoming gcc-4.5.0
23231         * lib/utimecmp.c (BILLION): Define using #define rather than an
23232         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
23233
23234 2010-01-11  Eric Blake  <ebb9@byu.net>
23235
23236         math: add portability warnings for classification macros
23237         * modules/math (Depends-on): Add warn-on-use.
23238         (Makefile.am): Provide new substitutions.
23239         * m4/math_h.m4 (gl_MATH_H): Require inline.
23240         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
23241         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
23242         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
23243         implement warnings.
23244
23245         unistd: warn on use of environ without module
23246         * modules/unistd (Depends-on): Add warn-on-use.
23247         (Makefile.am): Provide new substitutions.
23248         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
23249         * lib/unistd.in.h (environ): Wrap with a warning helper function.
23250
23251         stdio: warn on suspicious uses
23252         * modules/stdio (Depends-on): Add warn-on-use.
23253         (Makefile.am): Provide new substitutions.
23254         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
23255         fseeko.
23256         * lib/stdio.in.h (gets): Always warn on use.
23257         (fseek, ftell): Adjust when warnings are issued, and honor
23258         _GL_NO_LARGE_FILES as a way to silence the warning.
23259         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
23260         any warning about large file offsets.
23261         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
23262         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
23263         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
23264         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
23265         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
23266         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
23267         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
23268         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
23269
23270         warn-on-use: new module
23271         * modules/warn-on-use: New file.
23272         * build-aux/warn-on-use.h: Likewise.
23273         * m4/warn-on-use.m4: Likewise.
23274         * MODULES.html.sh (Support for building): Mention it.
23275
23276 2010-01-10  Bruno Haible  <bruno@clisp.org>
23277
23278         Tests for module 'unistr/u32-strdup'.
23279         * modules/unistr/u32-strdup-tests: New file.
23280         * tests/unistr/test-u32-strdup.c: New file.
23281
23282         Tests for module 'unistr/u16-strdup'.
23283         * modules/unistr/u16-strdup-tests: New file.
23284         * tests/unistr/test-u16-strdup.c: New file.
23285
23286         Tests for module 'unistr/u8-strdup'.
23287         * modules/unistr/u8-strdup-tests: New file.
23288         * tests/unistr/test-u8-strdup.c: New file.
23289         * tests/unistr/test-strdup.h: New file.
23290
23291         Tests for module 'unistr/u32-strncmp'.
23292         * modules/unistr/u32-strncmp-tests: New file.
23293         * tests/unistr/test-u32-strncmp.c: New file.
23294
23295         Tests for module 'unistr/u16-strncmp'.
23296         * modules/unistr/u16-strncmp-tests: New file.
23297         * tests/unistr/test-u16-strncmp.c: New file.
23298
23299         Tests for module 'unistr/u8-strncmp'.
23300         * modules/unistr/u8-strncmp-tests: New file.
23301         * tests/unistr/test-u8-strncmp.c: New file.
23302         * tests/unistr/test-strncmp.h: New file.
23303
23304         Tests for module 'unistr/u32-strcoll'.
23305         * modules/unistr/u32-strcoll-tests: New file.
23306         * tests/unistr/test-u32-strcoll.c: New file.
23307
23308         Tests for module 'unistr/u16-strcoll'.
23309         * modules/unistr/u16-strcoll-tests: New file.
23310         * tests/unistr/test-u16-strcoll.c: New file.
23311
23312         Tests for module 'unistr/u8-strcoll'.
23313         * modules/unistr/u8-strcoll-tests: New file.
23314         * tests/unistr/test-u8-strcoll.c: New file.
23315
23316         Tests for module 'unistr/u32-strcmp'.
23317         * modules/unistr/u32-strcmp-tests: New file.
23318         * tests/unistr/test-u32-strcmp.c: New file.
23319         * tests/unistr/test-u32-strcmp.h: New file.
23320
23321         Tests for module 'unistr/u16-strcmp'.
23322         * modules/unistr/u16-strcmp-tests: New file.
23323         * tests/unistr/test-u16-strcmp.c: New file.
23324         * tests/unistr/test-u16-strcmp.h: New file.
23325
23326         Tests for module 'unistr/u8-strcmp'.
23327         * modules/unistr/u8-strcmp-tests: New file.
23328         * tests/unistr/test-u8-strcmp.c: New file.
23329         * tests/unistr/test-u8-strcmp.h: New file.
23330         * tests/unistr/test-strcmp.h: New file.
23331
23332         Tests for module 'unistr/u32-strncat'.
23333         * modules/unistr/u32-strncat-tests: New file.
23334         * tests/unistr/test-u32-strncat.c: New file.
23335
23336         Tests for module 'unistr/u16-strncat'.
23337         * modules/unistr/u16-strncat-tests: New file.
23338         * tests/unistr/test-u16-strncat.c: New file.
23339
23340         Tests for module 'unistr/u8-strncat'.
23341         * modules/unistr/u8-strncat-tests: New file.
23342         * tests/unistr/test-u8-strncat.c: New file.
23343         * tests/unistr/test-strncat.h: New file.
23344
23345         Tests for module 'unistr/u32-strcat'.
23346         * modules/unistr/u32-strcat-tests: New file.
23347         * tests/unistr/test-u32-strcat.c: New file.
23348
23349         Tests for module 'unistr/u16-strcat'.
23350         * modules/unistr/u16-strcat-tests: New file.
23351         * tests/unistr/test-u16-strcat.c: New file.
23352
23353         Tests for module 'unistr/u8-strcat'.
23354         * modules/unistr/u8-strcat-tests: New file.
23355         * tests/unistr/test-u8-strcat.c: New file.
23356         * tests/unistr/test-strcat.h: New file.
23357
23358         Tests for module 'unistr/u32-stpncpy'.
23359         * modules/unistr/u32-stpncpy-tests: New file.
23360         * tests/unistr/test-u32-stpncpy.c: New file.
23361
23362         Tests for module 'unistr/u16-stpncpy'.
23363         * modules/unistr/u16-stpncpy-tests: New file.
23364         * tests/unistr/test-u16-stpncpy.c: New file.
23365
23366         Tests for module 'unistr/u8-stpncpy'.
23367         * modules/unistr/u8-stpncpy-tests: New file.
23368         * tests/unistr/test-u8-stpncpy.c: New file.
23369         * tests/unistr/test-stpncpy.h: New file.
23370
23371         Tests for module 'unistr/u32-strncpy'.
23372         * modules/unistr/u32-strncpy-tests: New file.
23373         * tests/unistr/test-u32-strncpy.c: New file.
23374
23375         Tests for module 'unistr/u16-strncpy'.
23376         * modules/unistr/u16-strncpy-tests: New file.
23377         * tests/unistr/test-u16-strncpy.c: New file.
23378
23379         Tests for module 'unistr/u8-strncpy'.
23380         * modules/unistr/u8-strncpy-tests: New file.
23381         * tests/unistr/test-u8-strncpy.c: New file.
23382         * tests/unistr/test-strncpy.h: New file.
23383
23384         Tests for module 'unistr/u32-stpcpy'.
23385         * modules/unistr/u32-stpcpy-tests: New file.
23386         * tests/unistr/test-u32-stpcpy.c: New file.
23387
23388         Tests for module 'unistr/u16-stpcpy'.
23389         * modules/unistr/u16-stpcpy-tests: New file.
23390         * tests/unistr/test-u16-stpcpy.c: New file.
23391
23392         Tests for module 'unistr/u8-stpcpy'.
23393         * modules/unistr/u8-stpcpy-tests: New file.
23394         * tests/unistr/test-u8-stpcpy.c: New file.
23395         * tests/unistr/test-stpcpy.h: New file.
23396
23397         Tests for module 'unistr/u32-strcpy'.
23398         * modules/unistr/u32-strcpy-tests: New file.
23399         * tests/unistr/test-u32-strcpy.c: New file.
23400
23401         Tests for module 'unistr/u16-strcpy'.
23402         * modules/unistr/u16-strcpy-tests: New file.
23403         * tests/unistr/test-u16-strcpy.c: New file.
23404
23405         Tests for module 'unistr/u8-strcpy'.
23406         * modules/unistr/u8-strcpy-tests: New file.
23407         * tests/unistr/test-u8-strcpy.c: New file.
23408         * tests/unistr/test-strcpy.h: New file.
23409
23410         Tests for module 'unistr/u32-strnlen'.
23411         * modules/unistr/u32-strnlen-tests: New file.
23412         * tests/unistr/test-u32-strnlen.c: New file.
23413
23414         Tests for module 'unistr/u16-strnlen'.
23415         * modules/unistr/u16-strnlen-tests: New file.
23416         * tests/unistr/test-u16-strnlen.c: New file.
23417
23418         Tests for module 'unistr/u8-strnlen'.
23419         * modules/unistr/u8-strnlen-tests: New file.
23420         * tests/unistr/test-u8-strnlen.c: New file.
23421         * tests/unistr/test-strnlen.h: New file.
23422
23423         Tests for module 'unistr/u32-strlen'.
23424         * modules/unistr/u32-strlen-tests: New file.
23425         * tests/unistr/test-u32-strlen.c: New file.
23426
23427         Tests for module 'unistr/u16-strlen'.
23428         * modules/unistr/u16-strlen-tests: New file.
23429         * tests/unistr/test-u16-strlen.c: New file.
23430
23431         Tests for module 'unistr/u8-strlen'.
23432         * modules/unistr/u8-strlen-tests: New file.
23433         * tests/unistr/test-u8-strlen.c: New file.
23434
23435         Tests for module 'unistr/u32-prev'.
23436         * modules/unistr/u32-prev-tests: New file.
23437         * tests/unistr/test-u32-prev.c: New file.
23438
23439         Tests for module 'unistr/u16-prev'.
23440         * modules/unistr/u16-prev-tests: New file.
23441         * tests/unistr/test-u16-prev.c: New file.
23442
23443         Tests for module 'unistr/u8-prev'.
23444         * modules/unistr/u8-prev-tests: New file.
23445         * tests/unistr/test-u8-prev.c: New file.
23446
23447         Tests for module 'unistr/u32-next'.
23448         * modules/unistr/u32-next-tests: New file.
23449         * tests/unistr/test-u32-next.c: New file.
23450
23451         Tests for module 'unistr/u16-next'.
23452         * modules/unistr/u16-next-tests: New file.
23453         * tests/unistr/test-u16-next.c: New file.
23454
23455         Tests for module 'unistr/u8-next'.
23456         * modules/unistr/u8-next-tests: New file.
23457         * tests/unistr/test-u8-next.c: New file.
23458
23459         Tests for module 'unistr/u32-strmbtouc'.
23460         * modules/unistr/u32-strmbtouc-tests: New file.
23461         * tests/unistr/test-u32-strmbtouc.c: New file.
23462
23463         Tests for module 'unistr/u16-strmbtouc'.
23464         * modules/unistr/u16-strmbtouc-tests: New file.
23465         * tests/unistr/test-u16-strmbtouc.c: New file.
23466
23467         Tests for module 'unistr/u8-strmbtouc'.
23468         * modules/unistr/u8-strmbtouc-tests: New file.
23469         * tests/unistr/test-u8-strmbtouc.c: New file.
23470
23471         Tests for module 'unistr/u32-strmblen'.
23472         * modules/unistr/u32-strmblen-tests: New file.
23473         * tests/unistr/test-u32-strmblen.c: New file.
23474
23475         Tests for module 'unistr/u16-strmblen'.
23476         * modules/unistr/u16-strmblen-tests: New file.
23477         * tests/unistr/test-u16-strmblen.c: New file.
23478
23479         Tests for module 'unistr/u8-strmblen'.
23480         * modules/unistr/u8-strmblen-tests: New file.
23481         * tests/unistr/test-u8-strmblen.c: New file.
23482
23483         Tests for module 'unistr/u32-cpy-alloc'.
23484         * modules/unistr/u32-cpy-alloc-tests: New file.
23485         * tests/unistr/test-u32-cpy-alloc.c: New file.
23486
23487         Tests for module 'unistr/u16-cpy-alloc'.
23488         * modules/unistr/u16-cpy-alloc-tests: New file.
23489         * tests/unistr/test-u16-cpy-alloc.c: New file.
23490
23491         Tests for module 'unistr/u8-cpy-alloc'.
23492         * modules/unistr/u8-cpy-alloc-tests: New file.
23493         * tests/unistr/test-u8-cpy-alloc.c: New file.
23494         * tests/unistr/test-cpy-alloc.h: New file.
23495
23496         Tests for module 'unistr/u32-mbsnlen'.
23497         * modules/unistr/u32-mbsnlen-tests: New file.
23498         * tests/unistr/test-u32-mbsnlen.c: New file.
23499
23500         Tests for module 'unistr/u16-mbsnlen'.
23501         * modules/unistr/u16-mbsnlen-tests: New file.
23502         * tests/unistr/test-u16-mbsnlen.c: New file.
23503
23504         Tests for module 'unistr/u8-mbsnlen'.
23505         * modules/unistr/u8-mbsnlen-tests: New file.
23506         * tests/unistr/test-u8-mbsnlen.c: New file.
23507
23508         Tests for module 'unistr/u32-chr'.
23509         * modules/unistr/u32-chr-tests: New file.
23510         * tests/unistr/test-u32-chr.c: New file.
23511
23512         Tests for module 'unistr/u16-chr'.
23513         * modules/unistr/u16-chr-tests: New file.
23514         * tests/unistr/test-u16-chr.c: New file.
23515
23516         Tests for module 'unistr/u8-chr'.
23517         * modules/unistr/u8-chr-tests: New file.
23518         * tests/unistr/test-u8-chr.c: New file.
23519         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
23520
23521         Tests for module 'unistr/u32-cmp2'.
23522         * modules/unistr/u32-cmp2-tests: New file.
23523         * tests/unistr/test-u32-cmp2.c: New file.
23524
23525         Tests for module 'unistr/u16-cmp2'.
23526         * modules/unistr/u16-cmp2-tests: New file.
23527         * tests/unistr/test-u16-cmp2.c: New file.
23528
23529         Tests for module 'unistr/u8-cmp2'.
23530         * modules/unistr/u8-cmp2-tests: New file.
23531         * tests/unistr/test-u8-cmp2.c: New file.
23532         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
23533
23534         Tests for module 'unistr/u32-cmp'.
23535         * modules/unistr/u32-cmp-tests: New file.
23536         * tests/unistr/test-u32-cmp.c: New file.
23537
23538         Tests for module 'unistr/u16-cmp'.
23539         * modules/unistr/u16-cmp-tests: New file.
23540         * tests/unistr/test-u16-cmp.c: New file.
23541
23542         Tests for module 'unistr/u8-cmp'.
23543         * modules/unistr/u8-cmp-tests: New file.
23544         * tests/unistr/test-u8-cmp.c: New file.
23545         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
23546
23547         Tests for module 'unistr/u32-set'.
23548         * modules/unistr/u32-set-tests: New file.
23549         * tests/unistr/test-u32-set.c: New file.
23550
23551         Tests for module 'unistr/u16-set'.
23552         * modules/unistr/u16-set-tests: New file.
23553         * tests/unistr/test-u16-set.c: New file.
23554
23555         Tests for module 'unistr/u8-set'.
23556         * modules/unistr/u8-set-tests: New file.
23557         * tests/unistr/test-u8-set.c: New file.
23558         * tests/unistr/test-set.h: New file.
23559
23560         Tests for module 'unistr/u32-move'.
23561         * modules/unistr/u32-move-tests: New file.
23562         * tests/unistr/test-u32-move.c: New file.
23563
23564         Tests for module 'unistr/u16-move'.
23565         * modules/unistr/u16-move-tests: New file.
23566         * tests/unistr/test-u16-move.c: New file.
23567
23568         Tests for module 'unistr/u8-move'.
23569         * modules/unistr/u8-move-tests: New file.
23570         * tests/unistr/test-u8-move.c: New file.
23571         * tests/unistr/test-move.h: New file.
23572
23573         Tests for module 'unistr/u32-cpy'.
23574         * modules/unistr/u32-cpy-tests: New file.
23575         * tests/unistr/test-u32-cpy.c: New file.
23576
23577         Tests for module 'unistr/u16-cpy'.
23578         * modules/unistr/u16-cpy-tests: New file.
23579         * tests/unistr/test-u16-cpy.c: New file.
23580
23581         Tests for module 'unistr/u8-cpy'.
23582         * modules/unistr/u8-cpy-tests: New file.
23583         * tests/unistr/test-u8-cpy.c: New file.
23584         * tests/unistr/test-cpy.h: New file.
23585
23586 2010-01-09  Bruno Haible  <bruno@clisp.org>
23587
23588         Tests for module 'unistr/u32-uctomb'.
23589         * modules/unistr/u32-uctomb-tests: New file.
23590         * tests/unistr/test-u32-uctomb.c: New file.
23591
23592         Tests for module 'unistr/u16-uctomb'.
23593         * modules/unistr/u16-uctomb-tests: New file.
23594         * tests/unistr/test-u16-uctomb.c: New file.
23595
23596         Tests for module 'unistr/u8-uctomb'.
23597         * modules/unistr/u8-uctomb-tests: New file.
23598         * tests/unistr/test-u8-uctomb.c: New file.
23599
23600         Tests for module 'unistr/u32-mbtoucr'.
23601         * modules/unistr/u32-mbtoucr-tests: New file.
23602         * tests/unistr/test-u32-mbtoucr.c: New file.
23603
23604         Tests for module 'unistr/u16-mbtoucr'.
23605         * modules/unistr/u16-mbtoucr-tests: New file.
23606         * tests/unistr/test-u16-mbtoucr.c: New file.
23607
23608         Tests for module 'unistr/u8-mbtoucr'.
23609         * modules/unistr/u8-mbtoucr-tests: New file.
23610         * tests/unistr/test-u8-mbtoucr.c: New file.
23611
23612         Tests for module 'unistr/u32-mbtouc'.
23613         * modules/unistr/u32-mbtouc-tests: New file.
23614         * tests/unistr/test-u32-mbtouc.c: New file.
23615
23616         Tests for module 'unistr/u16-mbtouc'.
23617         * modules/unistr/u16-mbtouc-tests: New file.
23618         * tests/unistr/test-u16-mbtouc.c: New file.
23619
23620         Tests for module 'unistr/u8-mbtouc'.
23621         * modules/unistr/u8-mbtouc-tests: New file.
23622         * tests/unistr/test-u8-mbtouc.c: New file.
23623
23624         Tests for module 'unistr/u32-mbtouc-unsafe'.
23625         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
23626         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
23627         * tests/unistr/test-u32-mbtouc.h: New file.
23628
23629         Tests for module 'unistr/u16-mbtouc-unsafe'.
23630         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
23631         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
23632         * tests/unistr/test-u16-mbtouc.h: New file.
23633
23634         Tests for module 'unistr/u8-mbtouc-unsafe'.
23635         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
23636         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
23637         * tests/unistr/test-u8-mbtouc.h: New file.
23638
23639         Tests for module 'unistr/u32-mblen'.
23640         * modules/unistr/u32-mblen-tests: New file.
23641         * tests/unistr/test-u32-mblen.c: New file.
23642
23643         Tests for module 'unistr/u16-mblen'.
23644         * modules/unistr/u16-mblen-tests: New file.
23645         * tests/unistr/test-u16-mblen.c: New file.
23646
23647         Tests for module 'unistr/u8-mblen'.
23648         * modules/unistr/u8-mblen-tests: New file.
23649         * tests/unistr/test-u8-mblen.c: New file.
23650
23651         Tests for module 'unistr/u32-to-u16'.
23652         * modules/unistr/u32-to-u16-tests: New file.
23653         * tests/unistr/test-u32-to-u16.c: New file.
23654
23655         Tests for module 'unistr/u32-to-u8'.
23656         * modules/unistr/u32-to-u8-tests: New file.
23657         * tests/unistr/test-u32-to-u8.c: New file.
23658
23659         Tests for module 'unistr/u16-to-u32'.
23660         * modules/unistr/u16-to-u32-tests: New file.
23661         * tests/unistr/test-u16-to-u32.c: New file.
23662
23663         Tests for module 'unistr/u16-to-u8'.
23664         * modules/unistr/u16-to-u8-tests: New file.
23665         * tests/unistr/test-u16-to-u8.c: New file.
23666
23667         Tests for module 'unistr/u8-to-u32'.
23668         * modules/unistr/u8-to-u32-tests: New file.
23669         * tests/unistr/test-u8-to-u32.c: New file.
23670
23671         Tests for module 'unistr/u8-to-u16'.
23672         * modules/unistr/u8-to-u16-tests: New file.
23673         * tests/unistr/test-u8-to-u16.c: New file.
23674
23675         Tests for module 'unistr/u32-check'.
23676         * modules/unistr/u32-check-tests: New file.
23677         * tests/unistr/test-u32-check.c: New file.
23678
23679         Tests for module 'unistr/u16-check'.
23680         * modules/unistr/u16-check-tests: New file.
23681         * tests/unistr/test-u16-check.c: New file.
23682
23683         Tests for module 'unistr/u8-check'.
23684         * modules/unistr/u8-check-tests: New file.
23685         * tests/unistr/test-u8-check.c: New file.
23686
23687         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
23688         (category_equals): New function.
23689         (main): Add more tests.
23690         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
23691
23692         * tests/unictype/test-bidi_byname.c (main): Add more tests.
23693
23694 2010-01-10  Bruno Haible  <bruno@clisp.org>
23695
23696         unistr/u*-strcoll: Try harder to distinguish different strings.
23697         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
23698         compare s1 and s2 to see if they are different.
23699
23700 2010-01-10  Bruno Haible  <bruno@clisp.org>
23701
23702         unistr/u*-stpncpy: Fix the return value.
23703         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
23704         description of the return value consistent with stpncpy in glibc.
23705         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
23706         written non-NUL unit.
23707
23708 2010-01-10  Bruno Haible  <bruno@clisp.org>
23709
23710         unistr/u*-next: Add missing dependencies.
23711         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
23712         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
23713         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
23714
23715 2010-01-10  Bruno Haible  <bruno@clisp.org>
23716
23717         unistr/u8-mbsnlen: Fix return value for incomplete character.
23718         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
23719         u8_mblen.
23720         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
23721         Remove unistr/u8-mblen.
23722         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
23723         u16_mblen.
23724         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
23725         Remove unistr/u16-mblen.
23726
23727 2010-01-10  Bruno Haible  <bruno@clisp.org>
23728
23729         wchar: Fix compilation error when <wchar.h> is used from coreutils.
23730         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
23731         Reported by Brian Gough <bjg@gnu.org> and
23732         Chris Clayton <chris2553@googlemail.com> via
23733         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
23734
23735 2010-01-09  Bruno Haible  <bruno@clisp.org>
23736
23737         unistr/u16-to-u32: Reject invalid input.
23738         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
23739         u16_mbtouc.
23740         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
23741         Remove unistr/u16-mbtouc.
23742
23743         unistr/u16-to-u8: Reject invalid input.
23744         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
23745         u16_mbtouc.
23746         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
23747         Remove unistr/u16-mbtouc.
23748
23749         unistr/u8-to-u32: Reject invalid input.
23750         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
23751         u8_mbtouc.
23752         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
23753         Remove unistr/u8-mbtouc.
23754
23755         unistr/u8-to-u16: Reject invalid input.
23756         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
23757         u8_mbtouc.
23758         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
23759         Remove unistr/u8-mbtouc.
23760
23761 2010-01-09  Bruno Haible  <bruno@clisp.org>
23762
23763         Tests for module 'getlogin'.
23764         * modules/getlogin-tests: New file.
23765         * tests/test-getlogin.c: New file.
23766
23767         New module 'getlogin'.
23768         * lib/unistd.in.h (getlogin): New declaration.
23769         * lib/getlogin.c: New file.
23770         * m4/getlogin.m4: New file.
23771         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
23772         HAVE_GETLOGIN.
23773         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
23774         HAVE_GETLOGIN.
23775         * modules/getlogin: New file.
23776         * doc/posix-functions/getlogin.texi: Mention the new module.
23777         Reported by John W. Eaton <jwe@gnu.org>.
23778
23779 2010-01-09  Bruno Haible  <bruno@clisp.org>
23780
23781         getlogin_r: Support for native Windows.
23782         * lib/getlogin_r.c: Include <windows.h>
23783         (getlogin_r): Implement for native Windows.
23784         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
23785         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
23786         via John W. Eaton <jwe@gnu.org>.
23787
23788 2010-01-09  Bruno Haible  <bruno@clisp.org>
23789
23790         getlogin_r: Small fixes.
23791         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
23792         succeeds.
23793         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
23794         before testing whether getlogin_r is declared. No need to set
23795         HAVE_DECL_GETLOGIN_R to 1.
23796         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
23797
23798 2010-01-09  Bruno Haible  <bruno@clisp.org>
23799
23800         * lib/unistd.in.h (getlogin_r): Add comment.
23801
23802 2010-01-09  Bruno Haible  <bruno@clisp.org>
23803
23804         Tests for module 'getlogin_r'.
23805         * modules/getlogin_r-tests: New file.
23806         * tests/test-getlogin_r.c: New file.
23807
23808 2010-01-09  Jim Meyering  <meyering@redhat.com>
23809
23810         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
23811         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
23812         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
23813
23814 2010-01-08  Simon Josefsson  <simon@josefsson.org>
23815
23816         * lib/dup2.c (rpl_dup2): Improve comment.
23817
23818 2010-01-08  Eric Blake  <ebb9@byu.net>
23819
23820         maint.mk: allow packages to add makefile @@ exceptions
23821         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
23822         (sc_makefile_check): Rename...
23823         (sc_makefile_at_at_check): ...to this, and use hook.
23824
23825         dup2: work around mingw bug
23826         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
23827         Reported by Simon Josefsson.
23828
23829 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
23830
23831         glob: Fix C++ compilation.
23832         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
23833         C++.
23834
23835 2010-01-07  Bruno Haible  <bruno@clisp.org>
23836
23837         Fix indentation of wctype.in.h, broken since 2007-01-06.
23838         * lib/wctype.in.h: Fix indentation of preprocessor directives.
23839
23840 2010-01-07  Bruno Haible  <bruno@clisp.org>
23841
23842         mbslen: Avoid collision with system function.
23843         * lib/string.in.h [MirBSD]: Include <wchar.h>.
23844         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
23845         * m4/mbslen.m4: New file.
23846         * modules/mbslen (Files): Add it.
23847         (configure.ac): Invoke gl_MBSLEN.
23848         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
23849         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
23850         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
23851         via Ian Beckwith <ianb@erislabs.net>.
23852
23853 2010-01-07  Bruno Haible  <bruno@clisp.org>
23854
23855         dirent: Document the last fix.
23856         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
23857
23858 2010-01-07  Bruno Haible  <bruno@clisp.org>
23859
23860         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
23861         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
23862         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
23863         va_list are defined.
23864         * doc/posix-headers/stdio.texi: Document the bug of missing types.
23865         Reported by Eric Blake.
23866
23867 2010-01-07  Bruno Haible  <bruno@clisp.org>
23868
23869         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
23870         * modules/xlist (Depends-on): Add 'list',
23871         * modules/xoset (Depends-on): Add 'oset'.
23872         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
23873
23874 2010-01-07  Bruno Haible  <bruno@clisp.org>
23875
23876         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
23877         * doc/posix-functions/strncasecmp.texi: Likewise.
23878
23879 2010-01-07  Bruno Haible  <bruno@clisp.org>
23880
23881         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
23882
23883 2010-01-07  John W. Eaton  <jwe@octave.org>
23884
23885         wctype: allow C++ use
23886         * lib/wctype.in.h: Add extern "C" block for C++.
23887
23888 2010-01-06  Eric Blake  <ebb9@byu.net>
23889
23890         maint.mk: detect incorrect GFDL usage
23891         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
23892
23893 2010-01-06  Jim Meyering  <meyering@redhat.com>
23894         and Eric Blake  <ebb9@byu.net>
23895
23896         maint.mk: ignore multi-line copyright in NEWS
23897         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
23898
23899 2010-01-06  Eric Blake  <ebb9@byu.net>
23900
23901         select: add missing dependency
23902         * modules/select-tests (Depends-on): Move sockets dependency...
23903         * modules/select (Depends-on): ...here.
23904         Reported by Ian Beckwith.
23905
23906         doc: regenerate INSTALL
23907         * doc/INSTALL: Reflect recent autoconf update.
23908         * doc/INSTALL.ISO: Likewise.
23909         * doc/INSTALL.UTF-8: Likewise.
23910
23911         pread: fix compilation on glibc
23912         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
23913         Reported by Ralf Wildenhues.
23914
23915         dirent: fix test failure
23916         * lib/dirent.in.h (includes): Guarantee ino_t.
23917         Reported by Ralf Wildenhues.
23918
23919 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
23920
23921         linkat, renameat: avoid bad free
23922         * lib/at-func2.c (at_func2): Fix typo.
23923         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
23924
23925 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23926
23927         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
23928         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
23929         to avoid failure of symlink test later.
23930
23931 2010-01-06  Eric Blake  <ebb9@byu.net>
23932
23933         stdio, unistd: guarantee ssize_t
23934         * lib/unistd.in.h (includes): Ensure that types required by POSIX
23935         2008 are exposed when needed.
23936         * lib/stdio.in.h (includes): Likewise.
23937         Reported by Ralf Wildenhues.
23938
23939 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
23940
23941         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
23942         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
23943         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
23944
23945 2010-01-06  Jim Meyering  <meyering@redhat.com>
23946
23947         readtokens: this module *does* require xalloc.h
23948         It uses only functions that were omitted by the old syntax-check rule.
23949         * lib/readtokens.c: Include "xalloc.h" once again.
23950         * modules/readtokens (Depends-on): Add xalloc.
23951         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
23952
23953 2010-01-05  Eric Blake  <ebb9@byu.net>
23954
23955         maint: support 'make announcement' from a VPATH build
23956         * top/maint.mk (announcement): Look for correct NEWS file.
23957
23958 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
23959
23960         utimens (fdutimens): ignore a negative FD, per contract
23961         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
23962         when we have a valid file descriptor.  Otherwise, using a brand
23963         new glibc (with just-patched futimens that now fails with EBADF)
23964         would cause this function to fail with ENOSYS.
23965         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
23966         See also http://bugzilla.redhat.com/552320.
23967
23968 2010-01-05  Eric Blake  <ebb9@byu.net>
23969
23970         strcase: document what it provides
23971         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
23972         gnulib module.
23973         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
23974         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
23975
23976 2010-01-05  Jim Meyering  <meyering@redhat.com>
23977
23978         maint: remove useless inclusions of "xalloc.h"
23979         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
23980         * lib/readtokens.c: Likewise.
23981         * lib/same.c: Likewise.
23982         * modules/getloadavg (Depends-on): Remove xalloc.
23983         * modules/readtokens: Likewise.
23984         * modules/same: Likewise.
23985
23986         maint.mk: include 4 more function names in alloca.h-checking regexp
23987         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
23988         regexp.  Before, we would give a false-positive (saying alloca.h
23989         is included unnecessarily) when the only uses involved omitted symbols.
23990
23991         xalloc.h: use consistent formatting
23992         * lib/xalloc.h: Move declarations to start in the first column.
23993
23994 2010-01-05  Eric Blake  <ebb9@byu.net>
23995
23996         mkdir: avoid xalloc
23997         * lib/mkdir.c (includes): Drop unused header.
23998         Reported by John W. Eaton.
23999
24000 2010-01-04  Jim Meyering  <meyering@redhat.com>
24001
24002         nl_langinfo: avoid configure-time syntax error
24003         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
24004         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
24005         the empty string.  Don't let that provoke a shell syntax error.
24006
24007         regcomp, regexec, fnmatch: avoid array bounds read error
24008         * lib/regcomp.c (build_equiv_class): From glibc:
24009         Use only the low 24 bits of a findidx return value as an index
24010         into the weights array.  Patch by Ulrich Drepper:
24011         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
24012         * lib/regexec.c (check_node_accept_bytes): Likewise.
24013         * lib/fnmatch_loop.c (FCT): Likewise.
24014
24015         regcomp: skip collseq lookup when there are no rules
24016         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
24017         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
24018
24019         regcomp: recognize ill-formed { } expressions
24020         * lib/regcomp.c (parse_dup_op): From glibc:
24021         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
24022
24023         regcomp: fix typo in comment
24024         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
24025         s/satisfy/satisfies/.
24026
24027         regcomp: sync from glibc: remove dead store
24028         * lib/regcomp.c (duplicate_node_closure): Remove useless
24029         search_duplicated_node call and dead store.
24030
24031         regcomp: sync from glibc; always use nl_langinfo
24032         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
24033         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
24034         * modules/regex (Depends-on): Add nl_langinfo.
24035
24036 2010-01-04  Eric Blake  <ebb9@byu.net>
24037
24038         fdopendir: fix configure test
24039         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
24040
24041 2010-01-01  Bruno Haible  <bruno@clisp.org>
24042
24043         wchar: Remove unused configure check.
24044         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
24045
24046 2010-01-01  Eric Blake  <ebb9@byu.net>
24047
24048         headers: make check of system header explicit
24049         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
24050         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
24051         ourselves.
24052         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
24053         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
24054         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
24055         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
24056         internals.
24057         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
24058         missing.
24059         Suggested by Bruno Haible.
24060
24061 2010-01-01  Jim Meyering  <meyering@redhat.com>
24062
24063         ChangeLog: tweak to eliminate unnecessary copyright line
24064         * ChangeLog: Remove a copyright line that was mistakenly updated
24065         by today's update-copyright run.  Reported by Eric Blake.
24066
24067         test-update-copyright: don't let envvar setting cause test failure
24068         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
24069
24070 2010-01-01  Bruno Haible  <bruno@clisp.org>
24071
24072         localename: Avoid gcc warning.
24073         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
24074         function if it is not used.
24075
24076 2010-01-01  Jim Meyering  <meyering@redhat.com>
24077
24078         update nearly all FSF copyright year lists to include 2010
24079         Use the same procedure as for 2009, outlined in
24080         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
24081
24082         version-etc: set COPYRIGHT_YEAR to 2010
24083         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
24084
24085 2009-12-31  Eric Blake  <ebb9@byu.net>
24086
24087         doc: correct availability of cygwin 1.5.x getopt
24088         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
24089         variables.
24090         * doc/posix-functions/opterr.texi (opterr): Likewise.
24091         * doc/posix-functions/optind.texi (optind): Likewise.
24092         * doc/posix-functions/optopt.texi (optopt): Likewise.
24093         * doc/posix-functions/tzname.texi (tzname): Likewise.
24094
24095         openat: update maintainer
24096         * modules/openat (Maintainer): Add myself.
24097
24098         utimens: avoid shadowing warning
24099         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
24100         buffers into one, to avoid shadowing, as well as avoiding a
24101         redundant stat.
24102         Reported by Jim Meyering.
24103
24104         test-dup2: avoid compiler warning
24105         * tests/test-dup2.c (is_inheritable): Only define if used.
24106
24107 2010-01-01  Bruno Haible  <bruno@clisp.org>
24108
24109         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
24110         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
24111         defined, use wctomb instead of wcrtomb.
24112
24113 2010-01-01  Bruno Haible  <bruno@clisp.org>
24114
24115         iconv: Reject native Solaris iconv.
24116         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
24117         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
24118
24119 2009-12-31  Bruno Haible  <bruno@clisp.org>
24120
24121         * tests/test-signal.c (main): Remove test of 'SIG'.
24122
24123 2009-12-31  Bruno Haible  <bruno@clisp.org>
24124
24125         spawn: Fix incomplete fix.
24126         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
24127         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
24128         warnings for GNULIB_POSIXCHECK again.
24129         Reported by Eric Blake.
24130
24131 2009-12-31  Bruno Haible  <bruno@clisp.org>
24132
24133         Avoid namespace pollution on glibc systems.
24134         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
24135         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
24136         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
24137         glibc systems.
24138
24139 2009-12-31  Bruno Haible  <bruno@clisp.org>
24140
24141         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
24142         (gl_REPLACE_WCHAR_H): Turn into a no-op.
24143         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
24144         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
24145         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
24146         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
24147         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
24148
24149 2009-12-31  Bruno Haible  <bruno@clisp.org>
24150
24151         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
24152         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
24153         afterwards.
24154
24155 2009-12-31  Bruno Haible  <bruno@clisp.org>
24156
24157         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
24158         SYS_UTSNAME_H.
24159
24160 2009-12-31  Bruno Haible  <bruno@clisp.org>
24161
24162         spawn: Fix misapplied patch.
24163         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
24164         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
24165         warnings for GNULIB_POSIXCHECK.
24166
24167 2009-12-31  Bruno Haible  <bruno@clisp.org>
24168
24169         times: Update after sys_times changed.
24170         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
24171         * modules/times (Files): Add it.
24172         (configure.ac): Invoke gl_FUNC_TIMES.
24173
24174 2009-12-31  Bruno Haible  <bruno@clisp.org>
24175
24176         Use AC_C_INLINE where necessary.
24177         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
24178         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
24179         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
24180         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
24181         * m4/mbfile.m4 (gl_MBFILE): Likewise.
24182         * m4/mbiter.m4 (gl_MBITER): Likewise.
24183         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
24184         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
24185         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
24186         * modules/u64 (configure.ac): Likewise.
24187
24188 2009-12-31  Bruno Haible  <bruno@clisp.org>
24189
24190         Use AC_C_INLINE instead of module 'inline' where possible.
24191         * modules/inline (Description): Clarify purpose.
24192         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
24193         * modules/count-one-bits (Depends-on): Remove inline.
24194         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
24195         * modules/openat (Depends-on): Remove inline.
24196         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
24197         instead of depending on module 'inline'.
24198         * modules/filevercmp (Depends-on, configure.ac): Likewise.
24199         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
24200         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
24201         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
24202         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
24203         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
24204         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
24205         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
24206         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
24207         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
24208         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
24209         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
24210         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
24211         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
24212         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
24213         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
24214         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
24215         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
24216         Likewise.
24217         * modules/unictype/property-ascii-hex-digit (Depends-on,
24218         configure.ac): Likewise.
24219         * modules/unictype/property-bidi-arabic-digit (Depends-on,
24220         configure.ac): Likewise.
24221         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
24222         configure.ac): Likewise.
24223         * modules/unictype/property-bidi-block-separator (Depends-on,
24224         configure.ac): Likewise.
24225         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
24226         configure.ac): Likewise.
24227         * modules/unictype/property-bidi-common-separator (Depends-on,
24228         configure.ac): Likewise.
24229         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
24230         Likewise.
24231         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
24232         configure.ac): Likewise.
24233         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
24234         configure.ac): Likewise.
24235         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
24236         configure.ac): Likewise.
24237         * modules/unictype/property-bidi-european-digit (Depends-on,
24238         configure.ac): Likewise.
24239         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
24240         configure.ac): Likewise.
24241         * modules/unictype/property-bidi-left-to-right (Depends-on,
24242         configure.ac): Likewise.
24243         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
24244         configure.ac): Likewise.
24245         * modules/unictype/property-bidi-other-neutral (Depends-on,
24246         configure.ac): Likewise.
24247         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
24248         Likewise.
24249         * modules/unictype/property-bidi-segment-separator (Depends-on,
24250         configure.ac): Likewise.
24251         * modules/unictype/property-bidi-whitespace (Depends-on,
24252         configure.ac): Likewise.
24253         * modules/unictype/property-combining (Depends-on, configure.ac):
24254         Likewise.
24255         * modules/unictype/property-composite (Depends-on, configure.ac):
24256         Likewise.
24257         * modules/unictype/property-currency-symbol (Depends-on,
24258         configure.ac): Likewise.
24259         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
24260         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
24261         Likewise.
24262         * modules/unictype/property-default-ignorable-code-point (Depends-on,
24263         configure.ac): Likewise.
24264         * modules/unictype/property-deprecated (Depends-on, configure.ac):
24265         Likewise.
24266         * modules/unictype/property-diacritic (Depends-on, configure.ac):
24267         Likewise.
24268         * modules/unictype/property-extender (Depends-on, configure.ac):
24269         Likewise.
24270         * modules/unictype/property-format-control (Depends-on, configure.ac):
24271         Likewise.
24272         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
24273         Likewise.
24274         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
24275         Likewise.
24276         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
24277         Likewise.
24278         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
24279         Likewise.
24280         * modules/unictype/property-hyphen (Depends-on, configure.ac):
24281         Likewise.
24282         * modules/unictype/property-id-continue (Depends-on, configure.ac):
24283         Likewise.
24284         * modules/unictype/property-id-start (Depends-on, configure.ac):
24285         Likewise.
24286         * modules/unictype/property-ideographic (Depends-on, configure.ac):
24287         Likewise.
24288         * modules/unictype/property-ids-binary-operator (Depends-on,
24289         configure.ac): Likewise.
24290         * modules/unictype/property-ids-trinary-operator (Depends-on,
24291         configure.ac): Likewise.
24292         * modules/unictype/property-ignorable-control (Depends-on,
24293         configure.ac): Likewise.
24294         * modules/unictype/property-iso-control (Depends-on, configure.ac):
24295         Likewise.
24296         * modules/unictype/property-join-control (Depends-on, configure.ac):
24297         Likewise.
24298         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
24299         Likewise.
24300         * modules/unictype/property-line-separator (Depends-on, configure.ac):
24301         Likewise.
24302         * modules/unictype/property-logical-order-exception (Depends-on,
24303         configure.ac): Likewise.
24304         * modules/unictype/property-lowercase (Depends-on, configure.ac):
24305         Likewise.
24306         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
24307         * modules/unictype/property-non-break (Depends-on, configure.ac):
24308         Likewise.
24309         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
24310         Likewise.
24311         * modules/unictype/property-numeric (Depends-on, configure.ac):
24312         Likewise.
24313         * modules/unictype/property-other-alphabetic (Depends-on,
24314         configure.ac): Likewise.
24315         * modules/unictype/property-other-default-ignorable-code-point
24316         (Depends-on, configure.ac): Likewise.
24317         * modules/unictype/property-other-grapheme-extend (Depends-on,
24318         configure.ac): Likewise.
24319         * modules/unictype/property-other-id-continue (Depends-on,
24320         configure.ac): Likewise.
24321         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
24322         Likewise.
24323         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
24324         Likewise.
24325         * modules/unictype/property-other-math (Depends-on, configure.ac):
24326         Likewise.
24327         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
24328         Likewise.
24329         * modules/unictype/property-paired-punctuation (Depends-on,
24330         configure.ac): Likewise.
24331         * modules/unictype/property-paragraph-separator (Depends-on,
24332         configure.ac): Likewise.
24333         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
24334         Likewise.
24335         * modules/unictype/property-pattern-white-space (Depends-on,
24336         configure.ac): Likewise.
24337         * modules/unictype/property-private-use (Depends-on, configure.ac):
24338         Likewise.
24339         * modules/unictype/property-punctuation (Depends-on, configure.ac):
24340         Likewise.
24341         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
24342         Likewise.
24343         * modules/unictype/property-radical (Depends-on, configure.ac):
24344         Likewise.
24345         * modules/unictype/property-sentence-terminal (Depends-on,
24346         configure.ac): Likewise.
24347         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
24348         Likewise.
24349         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
24350         * modules/unictype/property-terminal-punctuation (Depends-on,
24351         configure.ac): Likewise.
24352         * modules/unictype/property-titlecase (Depends-on, configure.ac):
24353         Likewise.
24354         * modules/unictype/property-unassigned-code-value (Depends-on,
24355         configure.ac): Likewise.
24356         * modules/unictype/property-unified-ideograph (Depends-on,
24357         configure.ac): Likewise.
24358         * modules/unictype/property-uppercase (Depends-on, configure.ac):
24359         Likewise.
24360         * modules/unictype/property-variation-selector (Depends-on,
24361         configure.ac): Likewise.
24362         * modules/unictype/property-white-space (Depends-on, configure.ac):
24363         Likewise.
24364         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
24365         Likewise.
24366         * modules/unictype/property-xid-start (Depends-on, configure.ac):
24367         Likewise.
24368         * modules/unictype/property-zero-width (Depends-on, configure.ac):
24369         Likewise.
24370         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
24371         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
24372         Likewise.
24373
24374 2009-12-31  Bruno Haible  <bruno@clisp.org>
24375
24376         Remove unnecessary AC_C_INLINE invocation.
24377         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
24378         since 2009-08-21.
24379
24380 2009-12-31  Jim Meyering  <meyering@redhat.com>
24381
24382         maint.mk: don't require explicit gpg_key_ID in cfg.mk
24383         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
24384         With this change, we can all remove the gpg_key_ID = ... definition
24385         from our respective cfg.mk files.
24386
24387         maint.mk: create announcement template in ~/, not in /tmp
24388         * top/maint.mk (emit_upload_commands): Adjust.
24389         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
24390         Remove temporary file, .ci-msg.
24391
24392 2009-12-31  Eric Blake  <ebb9@byu.net>
24393
24394         link-warning: always build headers with link warnings
24395         * modules/arpa_inet (Makefile.am): Always build replacement
24396         header.
24397         * modules/ctype (Makefile.am): Likewise.
24398         * modules/dirent (Makefile.am): Likewise.
24399         * modules/inttypes (Makefile.am): Likewise.
24400         * modules/langinfo (Makefile.am): Likewise.
24401         * modules/locale (Makefile.am): Likewise.
24402         * modules/spawn (Makefile.am): Likewise.
24403         * modules/sys_file (Makefile.am): Likewise.
24404         * modules/sys_ioctl (Makefile.am): Likewise.
24405         * modules/sys_select (Makefile.am): Likewise.
24406         * modules/sys_socket (Makefile.am): Likewise.
24407         * modules/sys_times (Makefile.am): Likewise.
24408         * modules/sys_utsname (Makefile.am): Likewise.
24409         * modules/sys_wait (Makefile.am): Likewise.
24410         * modules/wchar (Makefile.am): Likewise.
24411         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
24412         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
24413         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
24414         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
24415         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
24416         Likewise.
24417         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
24418         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
24419         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
24420         Likewise.
24421         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
24422         Likewise.
24423         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
24424         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
24425         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
24426         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
24427         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
24428         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
24429         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
24430         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
24431         (gl_WCHAR_H_DEFAULTS): Likewise.
24432
24433 2009-12-31  Eric Blake  <ebb9@byu.net>
24434
24435         signal, spawn: use link warnings
24436         * lib/signal.in.h (sigset_t): Make unconditional.
24437         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
24438         (sigpending, sigprocmask, sigaction): Add link warnings.
24439         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
24440         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
24441         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
24442         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
24443         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
24444         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
24445         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
24446         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
24447         (posix_spawn_file_actions_destroy)
24448         (posix_spawn_file_actions_addopen)
24449         (posix_spawn_file_actions_addclose)
24450         (posix_spawn_file_actions_adddup2): Likewise.
24451         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
24452         * tests/test-signal.c (main): Enhance test.
24453
24454         spawn: improve wrapper support
24455         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
24456         (gl_SPAWN_H_DEFAULTS): New defaults.
24457         * modules/spawn (Makefile.am): Substitute them.
24458         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
24459         Only declare if missing or broken.
24460
24461         sys_times, sys_utsname: use include_next
24462         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
24463         header.
24464         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
24465         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
24466         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
24467         * modules/sys_times (Depends-on): Add include_next.
24468         (Makefile.am): Substitute additional values.
24469         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
24470         * lib/sys_times.in.h (includes): Include native header, if
24471         available.
24472         * lib/sys_utsname.in.h (includes): Likewise.
24473         * tests/test-sys_times.c (main): Enhance test.
24474
24475         fdutimensat: revert prior patch
24476         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
24477         utimens.h.
24478         Reported by Bruno Haible.
24479
24480 2009-12-30  Eric Blake  <ebb9@byu.net>
24481
24482         sys_wait: drop link-warning dependency
24483         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
24484         link-warning efforts.
24485         * lib/sys_wait.in.h: Likewise.
24486
24487         fdutimensat: remove bogus dependency
24488         * modules/fdutimensat (Depends-on): Drop inline.
24489
24490         unistd: fix typo
24491         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
24492
24493 2009-12-30  Bruno Haible  <bruno@clisp.org>
24494
24495         Fix compilation error with Solaris cc.
24496         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
24497         * lib/unicase/u16-is-invariant.c: Likewise.
24498         * lib/unicase/u32-is-invariant.c: Likewise.
24499         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
24500
24501 2009-12-30  Bruno Haible  <bruno@clisp.org>
24502
24503         Fix test crash.
24504         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
24505         locales.
24506         Reported by Simon Josefsson <simon@josefsson.org>.
24507
24508 2009-12-30  Bruno Haible  <bruno@clisp.org>
24509
24510         Fix compilation error on most platforms.
24511         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
24512         Reported by Simon Josefsson <simon@josefsson.org>
24513         and Nelson H. F. Beebe <beebe@math.utah.edu>.
24514
24515 2009-12-30  Eric Blake  <ebb9@byu.net>
24516
24517         futimens, utimensat: work around ntfs-3g bug
24518         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
24519         a ctime bug is present, and expand workaround to cover ntfs-3g.
24520         * lib/utimens.c (fdutimens, lutimens): Likewise.
24521         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
24522         (validate_timespec): Adjust return value.
24523         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
24524         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
24525         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
24526
24527 2009-12-29  Eric Blake  <ebb9@byu.net>
24528
24529         link-warning: make usage consistent
24530         * modules/ctype (Depends-on): Add link-warning.
24531         (Makefile.am): Update rules accordingly.
24532         * modules/langinfo (Depends-on, Makefile.am): Likewise.
24533         * modules/locale (Depends-on, Makefile.am): Likewise.
24534         * modules/sys_file (Makefile.am): Likewise.
24535         * modules/getopt-posix (Makefile.am): Delete unused link warning
24536         efforts.
24537         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
24538         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
24539         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
24540         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
24541
24542         stdio: remove unused variables
24543         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
24544         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
24545         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
24546
24547         tests: test more substitute headers
24548         * modules/ctype-tests: New file.
24549         * modules/dirent-tests: Likewise.
24550         * modules/spawn-tests: Likewise.
24551         * modules/sys_file-tests: Likewise.
24552         * modules/sys_ioctl-tests: Likewise.
24553         * modules/sys_wait-tests: Likewise.
24554         * tests/test-ctype.c: Likewise.
24555         * tests/test-dirent.c: Likewise.
24556         * tests/test-spawn.c: Likewise.
24557         * tests/test-sys_file.c: Likewise.
24558         * tests/test-sys_ioctl.c: Likewise.
24559         * tests/test-sys_wait.c: Likewise.
24560         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
24561         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
24562         whether or not flock is in use.
24563
24564         tests: remove License section from module
24565         * modules/arpa_inet-tests: Remove unneeded section.
24566         * modules/byteswap-tests: Likewise.
24567         * modules/ceilf-tests: Likewise.
24568         * modules/ceill-tests: Likewise.
24569         * modules/crypto/des-tests: Likewise.
24570         * modules/crypto/gc-arcfour-tests: Likewise.
24571         * modules/crypto/gc-arctwo-tests: Likewise.
24572         * modules/crypto/gc-des-tests: Likewise.
24573         * modules/crypto/gc-hmac-md5-tests: Likewise.
24574         * modules/crypto/gc-hmac-sha1-tests: Likewise.
24575         * modules/crypto/gc-md2-tests: Likewise.
24576         * modules/crypto/gc-md4-tests: Likewise.
24577         * modules/crypto/gc-md5-tests: Likewise.
24578         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
24579         * modules/crypto/gc-rijndael-tests: Likewise.
24580         * modules/crypto/gc-sha1-tests: Likewise.
24581         * modules/crypto/gc-tests: Likewise.
24582         * modules/crypto/md2-tests: Likewise.
24583         * modules/crypto/md4-tests: Likewise.
24584         * modules/fcntl-h-tests: Likewise.
24585         * modules/floorf-tests: Likewise.
24586         * modules/floorl-tests: Likewise.
24587         * modules/frexp-nolibm-tests: Likewise.
24588         * modules/frexp-tests: Likewise.
24589         * modules/frexpl-nolibm-tests: Likewise.
24590         * modules/frexpl-tests: Likewise.
24591         * modules/getaddrinfo-tests: Likewise.
24592         * modules/inttypes-tests: Likewise.
24593         * modules/isfinite-tests: Likewise.
24594         * modules/isinf-tests: Likewise.
24595         * modules/ldexpl-tests: Likewise.
24596         * modules/locale-tests: Likewise.
24597         * modules/math-tests: Likewise.
24598         * modules/netdb-tests: Likewise.
24599         * modules/netinet_in-tests: Likewise.
24600         * modules/printf-frexp-tests: Likewise.
24601         * modules/printf-frexpl-tests: Likewise.
24602         * modules/priv-set-tests: Likewise.
24603         * modules/random_r-tests: Likewise.
24604         * modules/round-tests: Likewise.
24605         * modules/roundf-tests: Likewise.
24606         * modules/roundl-tests: Likewise.
24607         * modules/search-tests: Likewise.
24608         * modules/select-tests: Likewise.
24609         * modules/signal-tests: Likewise.
24610         * modules/stdbool-tests: Likewise.
24611         * modules/stddef-tests: Likewise.
24612         * modules/stdint-tests: Likewise.
24613         * modules/stdio-tests: Likewise.
24614         * modules/stdlib-tests: Likewise.
24615         * modules/string-tests: Likewise.
24616         * modules/strings-tests: Likewise.
24617         * modules/sys_select-tests: Likewise.
24618         * modules/sys_socket-tests: Likewise.
24619         * modules/sys_stat-tests: Likewise.
24620         * modules/sys_time-tests: Likewise.
24621         * modules/sys_utsname-tests: Likewise.
24622         * modules/sysexits-tests: Likewise.
24623         * modules/time-tests: Likewise.
24624         * modules/trunc-tests: Likewise.
24625         * modules/truncf-tests: Likewise.
24626         * modules/truncl-tests: Likewise.
24627         * modules/tsearch-tests: Likewise.
24628         * modules/unistd-tests: Likewise.
24629         * modules/wchar-tests: Likewise.
24630         * modules/wctype-tests: Likewise.
24631
24632         tests: fix license on several tests
24633         * tests/test-des.c: Update to GPLv3+.
24634         * tests/test-flock.c: Likewise.
24635         * tests/test-fsync.c: Likewise.
24636         * tests/test-futimens.h: Likewise.
24637         * tests/test-gc-arcfour.c: Likewise.
24638         * tests/test-gc-arctwo.c: Likewise.
24639         * tests/test-gc-des.c: Likewise.
24640         * tests/test-gc-hmac-md5.c: Likewise.
24641         * tests/test-gc-hmac-sha1.c: Likewise.
24642         * tests/test-gc-md2.c: Likewise.
24643         * tests/test-gc-md4.c: Likewise.
24644         * tests/test-gc-md5.c: Likewise.
24645         * tests/test-gc-pbkdf2-sha1.c: Likewise.
24646         * tests/test-gc-rijndael.c: Likewise.
24647         * tests/test-gc-sha1.c: Likewise.
24648         * tests/test-gc.c: Likewise.
24649         * tests/test-getcwd.c: Likewise.
24650         * tests/test-link.c: Likewise.
24651         * tests/test-link.h: Likewise.
24652         * tests/test-lutimens.h: Likewise.
24653         * tests/test-md2.c: Likewise.
24654         * tests/test-md4.c: Likewise.
24655         * tests/test-mkdir.h: Likewise.
24656         * tests/test-rename.c: Likewise.
24657         * tests/test-rename.h: Likewise.
24658         * tests/test-safe-alloc.c: Likewise.
24659         * tests/test-utimens-common.h: Likewise.
24660         * tests/test-utimens.h: Likewise.
24661
24662         maint: sync license texts
24663         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
24664         * doc/gpl-3.0.texi: Revert copyright year update.
24665         * doc/lgpl-3.0.texi: Likewise.
24666
24667 2009-12-29  Jim Meyering  <meyering@redhat.com>
24668
24669         update nearly all FSF copyright year lists to include 2009
24670         The files named by the following are exempted:
24671             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
24672               test -f "$dst" && { echo "$dst"; continue; }
24673               test -d "$dst" || continue
24674               echo "$dst"/$(basename "$src")
24675             done > exempt
24676             git ls-files tests/unictype >> exempt
24677         In the remaining files, convert to all-interval notation if
24678         - there is already at least one year interval like 2000-2003
24679         - the file is maintained by me
24680         - the file is in lib/uni*/, where that style already prevails
24681         Otherwise, use update-copyright's default.
24682
24683 2009-12-29  Simon Josefsson  <simon@josefsson.org>
24684         and Eric Blake  <ebb9@byu.net>
24685
24686         tests: don't require debug system() to pass
24687         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
24688         * tests/test-rmdir.h (test_rmdir_func): Likewise.
24689         * tests/test-unlink.h (test_unlink_func): Likewise.
24690         * tests/test-fstatat.c (main): ...into callers.
24691         * tests/test-lstat.c (main): Likewise.
24692         * tests/test-rmdir.c (main): Likewise.
24693         * tests/test-unlink.c (main): Likewise.
24694         * tests/test-unlinkat.c (main): Likewise.
24695         * tests/test-areadlink-with-size.c (main): Don't require a
24696         debug-only system call to pass, aiding cross-testing to mingw.
24697         * tests/test-areadlink.c (main): Likewise.
24698         * tests/test-areadlinkat-with-size.c (main): Likewise.
24699         * tests/test-areadlinkat.c (main): Likewise.
24700         * tests/test-canonicalize-lgpl.c (main): Likewise.
24701         * tests/test-canonicalize.c (main): Likewise.
24702         * tests/test-chown.c (main): Likewise.
24703         * tests/test-fchownat.c (main): Likewise.
24704         * tests/test-lchown.c (main): Likewise.
24705         * tests/test-fdutimensat.c (main): Likewise.
24706         * tests/test-futimens.c (main): Likewise.
24707         * tests/test-link.c (main): Likewise.
24708         * tests/test-linkat.c (main): Likewise.
24709         * tests/test-mkdir.c (main): Likewise.
24710         * tests/test-mkdirat.c (main): Likewise.
24711         * tests/test-mkfifo.c (main): Likewise.
24712         * tests/test-mkfifoat.c (main): Likewise.
24713         * tests/test-mknod.c (main): Likewise.
24714         * tests/test-readlink.c (main): Likewise.
24715         * tests/test-remove.c (main): Likewise.
24716         * tests/test-rename.c (main): Likewise.
24717         * tests/test-renameat.c (main): Likewise.
24718         * tests/test-symlink.c (main): Likewise.
24719         * tests/test-symlinkat.c (main): Likewise.
24720         * tests/test-utimens.c (main): Likewise.
24721         * tests/test-utimensat.c (main): Likewise.
24722
24723 2009-12-29  Simon Josefsson  <simon@josefsson.org>
24724
24725         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
24726         on $(UNUSED_PARAMETER_H) to avoid build failure.
24727
24728 2009-12-28  Jim Meyering  <meyering@redhat.com>
24729
24730         update-copyright: you may specify a max. line length other than 72
24731         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
24732
24733         maint: use consistent FSF copyright line syntax
24734         * lib/posixtm.c: Add missing comma in FSF copyright line.
24735         * lib/posixtm.h: Likewise.
24736         * lib/getugroups.c: Add missing ", Inc.".
24737
24738         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
24739         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
24740         FSF copyright line.  Remove trailing blanks.
24741
24742 2009-12-28  Eric Blake  <ebb9@byu.net>
24743
24744         test-dup2: reduce dependencies
24745         * modules/cloexec (Configure.ac): Set witness.
24746         * modules/dup2-tests (Depends-on): Drop cloexec.
24747         * tests/test-dup2.c (main): Skip portion of test if cloexec module
24748         not present.
24749         Suggested by Bruno Haible.
24750
24751 2009-12-26  Bruno Haible  <bruno@clisp.org>
24752
24753         Remove an unneeded dependency.
24754         * modules/fseterr (Depends-on): Remove dup2.
24755
24756 2009-12-26  Eric Blake  <ebb9@byu.net>
24757
24758         tests: use macros.h in more places
24759         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
24760         (ASSERT_STREAM): Provide default of stderr.
24761         * tests/test-dirent-safer.c: Include macros.h, using alternate
24762         stream for assertions.
24763         * tests/test-dup-safer.c: Likewise.
24764         * tests/test-freopen-safer.c: Likewise.
24765         * tests/test-getopt.c: Likewise.
24766         * tests/test-openat-safer.c: Likewise.
24767         * tests/test-pipe.c: Likewise.
24768         * tests/test-popen-safer.c: Likewise.
24769         * modules/dirent-safer-tests (Files): Include macros.h.
24770         * modules/unistd-safer-tests (Files): Likewise.
24771         * modules/freopen-safer-tests (Files): Likewise.
24772         * modules/getopt-posix-tests (Files): Likewise.
24773         * modules/openat-safer-tests (Files): Likewise.
24774         * modules/pipe-tests (Files): Likewise.
24775
24776 2009-12-26  Bruno Haible  <bruno@clisp.org>
24777
24778         javacomp: Portability fix.
24779         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
24780         that it also works on Solaris.
24781
24782 2009-12-26  Bruno Haible  <bruno@clisp.org>
24783
24784         localename: Fix storage allocation of gl_locale_name_thread's result.
24785         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
24786         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
24787         all platforms that have 'uselocale'.
24788         (gl_locale_name_thread_unsafe): New function, extracted from
24789         gl_locale_name_thread.
24790         (gl_locale_name_thread): Call struniq on all platforms that have
24791         'uselocale'.
24792         * tests/test-localename.c (test_locale_name_thread): Check that the
24793         resulting strings are permanently allocated.
24794         * modules/localename-tests (Depends-on): Add strdup.
24795
24796 2009-12-26  Bruno Haible  <bruno@clisp.org>
24797
24798         * tests/test-localename.c (categories): Fill in the strings.
24799
24800 2009-12-26  Jim Meyering  <meyering@redhat.com>
24801
24802         isdir: complete the removal of m4/isdir.m4
24803         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
24804
24805         isdir: clean up, since at least grep still uses it
24806         * lib/isdir.c: Include "isdir.h".
24807         (S_ISDIR): Remove now-unneeded definition.
24808         * modules/isdir (Files): Add lib/isdir.h.
24809         * lib/isdir.h: New file, with declaration.
24810         * m4/isdir.m4: Remove file -- unneeded.
24811
24812 2009-12-25  Bruno Haible  <bruno@clisp.org>
24813
24814         selinux-h: Make generated .h files standalone.
24815         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
24816         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
24817         * lib/se-selinux.in.h: Likewise.
24818         * modules/selinux-h (Depends-on): Add unused-parameter.
24819         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
24820         selinux/selinux.h and selinux/context.h.
24821         Suggested by Eric Blake.
24822
24823 2009-12-25  Bruno Haible  <bruno@clisp.org>
24824
24825         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
24826         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
24827         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
24828         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
24829         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
24830
24831 2009-12-24  Bruno Haible  <bruno@clisp.org>
24832
24833         openat: Fix warning.
24834         * lib/openat-proc.c: Include <unistd.h>.
24835
24836 2009-12-24  Bruno Haible  <bruno@clisp.org>
24837
24838         New module 'unused-parameter'.
24839         * build-aux/unused-parameter.h: New file, extracted from earlier
24840         gnulib-common.m4.
24841         * modules/unused-parameter: New file.
24842         * lib/unistr.h: Include unused-parameter.h.
24843         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
24844         _GL_UNUSED.
24845         * modules/unistr/base (Depends-on): Add unused-parameter.
24846
24847 2009-12-24  Bruno Haible  <bruno@clisp.org>
24848
24849         Add missing dependencies to 'extensions' module.
24850         * m4/extensions.m4: Add comment.
24851         * modules/accept4 (Depends-on): Add extensions.
24852         * modules/dup3 (Depends-on): Likewise.
24853         * modules/fcntl (Depends-on): Likewise.
24854         * modules/futimens (Depends-on): Likewise.
24855         * modules/mknod (Depends-on): Likewise.
24856         * modules/pipe2 (Depends-on): Likewise.
24857         * modules/stat-time (Depends-on): Likewise.
24858         * modules/strcasestr-simple (Depends-on): Likewise.
24859         * modules/strsignal (Depends-on): Likewise.
24860         * modules/utimensat (Depends-on): Likewise.
24861         * modules/localcharset (Depends-on): Likewise. Needed because of
24862         gl_FCNTL_O_FLAGS.
24863         * modules/wcrtomb (Depends-on): Likewise. Needed because of
24864         AC_TYPE_MBSTATE_T.
24865         * modules/wcsnrtombs (Depends-on): Likewise.
24866         * modules/wcsrtombs (Depends-on): Likewise.
24867
24868 2009-12-24  Bruno Haible  <bruno@clisp.org>
24869
24870         binary-io: Avoid gcc warning due to SET_BINARY.
24871         * lib/binary-io.h (SET_BINARY): Cast the result to void.
24872         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
24873
24874 2009-12-24  Bruno Haible  <bruno@clisp.org>
24875
24876         Avoid future namespace pollution on glibc systems.
24877         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
24878         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
24879         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
24880         glibc systems.
24881
24882 2009-12-24  Bruno Haible  <bruno@clisp.org>
24883
24884         Refactor common macros used in tests.
24885         * tests/macros.h: New file.
24886         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
24887         and/or <stdlib.h>, if appropriate.
24888         (ASSERT, SIZEOF): Remove macros.
24889         * tests/test-areadlink-with-size.c: Likewise.
24890         * tests/test-areadlinkat.c: Likewise.
24891         * tests/test-areadlinkat-with-size.c: Likewise.
24892         * tests/test-argmatch.c: Likewise.
24893         * tests/test-argv-iter.c: Likewise.
24894         * tests/test-array-mergesort.c: Likewise.
24895         * tests/test-array_list.c: Likewise.
24896         * tests/test-array_oset.c: Likewise.
24897         * tests/test-avltree_list.c: Likewise.
24898         * tests/test-avltree_oset.c: Likewise.
24899         * tests/test-avltreehash_list.c: Likewise.
24900         * tests/test-base64.c: Likewise.
24901         * tests/test-binary-io.c: Likewise.
24902         * tests/test-bitrotate.c: Likewise.
24903         * tests/test-btowc.c: Likewise.
24904         * tests/test-byteswap.c: Likewise.
24905         * tests/test-c-ctype.c: Likewise.
24906         * tests/test-c-stack.c: Likewise.
24907         * tests/test-c-strcasecmp.c: Likewise.
24908         * tests/test-c-strcasestr.c: Likewise.
24909         * tests/test-c-strncasecmp.c: Likewise.
24910         * tests/test-c-strstr.c: Likewise.
24911         * tests/test-canonicalize-lgpl.c: Likewise.
24912         * tests/test-canonicalize.c: Likewise.
24913         * tests/test-carray_list.c: Likewise.
24914         * tests/test-ceilf1.c: Likewise.
24915         * tests/test-ceilf2.c: Likewise.
24916         * tests/test-ceill.c: Likewise.
24917         * tests/test-chown.c: Likewise.
24918         * tests/test-cloexec.c: Likewise.
24919         * tests/test-copy-acl.c: Likewise.
24920         * tests/test-copy-file.c: Likewise.
24921         * tests/test-count-one-bits.c: Likewise.
24922         * tests/test-dprintf-posix.c: Likewise.
24923         * tests/test-dup2.c: Likewise.
24924         * tests/test-dup3.c: Likewise.
24925         * tests/test-duplocale.c: Likewise.
24926         * tests/test-fbufmode.c: Likewise.
24927         * tests/test-fchdir.c: Likewise.
24928         * tests/test-fchownat.c: Likewise.
24929         * tests/test-fcntl-safer.c: Likewise.
24930         * tests/test-fcntl.c: Likewise.
24931         * tests/test-fdopendir.c: Likewise.
24932         * tests/test-fdutimensat.c: Likewise.
24933         * tests/test-fflush2.c: Likewise.
24934         * tests/test-file-has-acl.c: Likewise.
24935         * tests/test-filevercmp.c: Likewise.
24936         * tests/test-flock.c: Likewise.
24937         * tests/test-floorf1.c: Likewise.
24938         * tests/test-floorf2.c: Likewise.
24939         * tests/test-floorl.c: Likewise.
24940         * tests/test-fnmatch.c: Likewise.
24941         * tests/test-fopen.h: Likewise.
24942         * tests/test-fpending.c: Likewise.
24943         * tests/test-fprintf-posix.c: Likewise.
24944         * tests/test-fpurge.c: Likewise.
24945         * tests/test-freadable.c: Likewise.
24946         * tests/test-freadahead.c: Likewise.
24947         * tests/test-freading.c: Likewise.
24948         * tests/test-freadptr.c: Likewise.
24949         * tests/test-freadptr2.c: Likewise.
24950         * tests/test-freadseek.c: Likewise.
24951         * tests/test-freopen.c: Likewise.
24952         * tests/test-frexp.c: Likewise.
24953         * tests/test-frexpl.c: Likewise.
24954         * tests/test-fseek.c: Likewise.
24955         * tests/test-fseeko.c: Likewise.
24956         * tests/test-fstatat.c: Likewise.
24957         * tests/test-fstrcmp.c: Likewise.
24958         * tests/test-fsync.c: Likewise.
24959         * tests/test-ftell.c: Likewise.
24960         * tests/test-ftello.c: Likewise.
24961         * tests/test-func.c: Likewise.
24962         * tests/test-futimens.c: Likewise.
24963         * tests/test-fwritable.c: Likewise.
24964         * tests/test-fwriting.c: Likewise.
24965         * tests/test-getcwd.c: Likewise.
24966         * tests/test-getdate.c: Likewise.
24967         * tests/test-getdelim.c: Likewise.
24968         * tests/test-getdtablesize.c: Likewise.
24969         * tests/test-getgroups.c: Likewise.
24970         * tests/test-getline.c: Likewise.
24971         * tests/test-getndelim2.c: Likewise.
24972         * tests/test-glob.c: Likewise.
24973         * tests/test-hash.c: Likewise.
24974         * tests/test-i-ring.c: Likewise.
24975         * tests/test-iconv-utf.c: Likewise.
24976         * tests/test-iconv.c: Likewise.
24977         * tests/test-idpriv-drop.c: Likewise.
24978         * tests/test-idpriv-droptemp.c: Likewise.
24979         * tests/test-inet_ntop.c: Likewise.
24980         * tests/test-inet_pton.c: Likewise.
24981         * tests/test-isblank.c: Likewise.
24982         * tests/test-isfinite.c: Likewise.
24983         * tests/test-isinf.c: Likewise.
24984         * tests/test-isnan.c: Likewise.
24985         * tests/test-isnand.h: Likewise.
24986         * tests/test-isnanf.h: Likewise.
24987         * tests/test-isnanl.h: Likewise.
24988         * tests/test-lchown.c: Likewise.
24989         * tests/test-ldexpl.c: Likewise.
24990         * tests/test-link.c: Likewise.
24991         * tests/test-linkat.c: Likewise.
24992         * tests/test-linked_list.c: Likewise.
24993         * tests/test-linkedhash_list.c: Likewise.
24994         * tests/test-localename.c: Likewise.
24995         * tests/test-lseek.c: Likewise.
24996         * tests/test-lstat.c: Likewise.
24997         * tests/test-mbmemcasecmp.c: Likewise.
24998         * tests/test-mbmemcasecoll.c: Likewise.
24999         * tests/test-mbrtowc.c: Likewise.
25000         * tests/test-mbscasecmp.c: Likewise.
25001         * tests/test-mbscasestr1.c: Likewise.
25002         * tests/test-mbscasestr2.c: Likewise.
25003         * tests/test-mbscasestr3.c: Likewise.
25004         * tests/test-mbscasestr4.c: Likewise.
25005         * tests/test-mbschr.c: Likewise.
25006         * tests/test-mbscspn.c: Likewise.
25007         * tests/test-mbsinit.c: Likewise.
25008         * tests/test-mbsncasecmp.c: Likewise.
25009         * tests/test-mbsnrtowcs.c: Likewise.
25010         * tests/test-mbspbrk.c: Likewise.
25011         * tests/test-mbspcasecmp.c: Likewise.
25012         * tests/test-mbsrchr.c: Likewise.
25013         * tests/test-mbsrtowcs.c: Likewise.
25014         * tests/test-mbsspn.c: Likewise.
25015         * tests/test-mbsstr1.c: Likewise.
25016         * tests/test-mbsstr2.c: Likewise.
25017         * tests/test-mbsstr3.c: Likewise.
25018         * tests/test-memchr.c: Likewise.
25019         * tests/test-memchr2.c: Likewise.
25020         * tests/test-memcmp.c: Likewise.
25021         * tests/test-memmem.c: Likewise.
25022         * tests/test-memrchr.c: Likewise.
25023         * tests/test-mkdir.c: Likewise.
25024         * tests/test-mkdirat.c: Likewise.
25025         * tests/test-mkfifo.c: Likewise.
25026         * tests/test-mkfifoat.c: Likewise.
25027         * tests/test-mknod.c: Likewise.
25028         * tests/test-nanosleep.c: Likewise.
25029         * tests/test-nl_langinfo.c: Likewise.
25030         * tests/test-obstack-printf.c: Likewise.
25031         * tests/test-open.c: Likewise.
25032         * tests/test-openat.c: Likewise.
25033         * tests/test-pipe-filter-gi1.c: Likewise.
25034         * tests/test-pipe-filter-gi2-main.c: Likewise.
25035         * tests/test-pipe-filter-ii1.c: Likewise.
25036         * tests/test-pipe-filter-ii2-main.c: Likewise.
25037         * tests/test-pipe2.c: Likewise.
25038         * tests/test-popen.h: Likewise.
25039         * tests/test-posixtm.c: Likewise.
25040         * tests/test-pread.c: Likewise.
25041         * tests/test-printf-frexp.c: Likewise.
25042         * tests/test-printf-frexpl.c: Likewise.
25043         * tests/test-printf-posix.c: Likewise.
25044         * tests/test-priv-set.c: Likewise.
25045         * tests/test-quotearg.c: Likewise.
25046         * tests/test-random_r.c: Likewise.
25047         * tests/test-rawmemchr.c: Likewise.
25048         * tests/test-rbtree_list.c: Likewise.
25049         * tests/test-rbtree_oset.c: Likewise.
25050         * tests/test-rbtreehash_list.c: Likewise.
25051         * tests/test-readlink.c: Likewise.
25052         * tests/test-remove.c: Likewise.
25053         * tests/test-rename.c: Likewise.
25054         * tests/test-renameat.c: Likewise.
25055         * tests/test-rmdir.c: Likewise.
25056         * tests/test-round1.c: Likewise.
25057         * tests/test-roundf1.c: Likewise.
25058         * tests/test-roundl.c: Likewise.
25059         * tests/test-safe-alloc.c: Likewise.
25060         * tests/test-sameacls.c: Likewise.
25061         * tests/test-set-mode-acl.c: Likewise.
25062         * tests/test-setenv.c: Likewise.
25063         * tests/test-sigaction.c: Likewise.
25064         * tests/test-signbit.c: Likewise.
25065         * tests/test-sleep.c: Likewise.
25066         * tests/test-snprintf-posix.c: Likewise.
25067         * tests/test-snprintf.c: Likewise.
25068         * tests/test-sprintf-posix.c: Likewise.
25069         * tests/test-stat-time.c: Likewise.
25070         * tests/test-stat.c: Likewise.
25071         * tests/test-strcasestr.c: Likewise.
25072         * tests/test-strchrnul.c: Likewise.
25073         * tests/test-strerror.c: Likewise.
25074         * tests/test-striconv.c: Likewise.
25075         * tests/test-striconveh.c: Likewise.
25076         * tests/test-striconveha.c: Likewise.
25077         * tests/test-strsignal.c: Likewise.
25078         * tests/test-strstr.c: Likewise.
25079         * tests/test-strtod.c: Likewise.
25080         * tests/test-strverscmp.c: Likewise.
25081         * tests/test-symlink.c: Likewise.
25082         * tests/test-symlinkat.c: Likewise.
25083         * tests/test-trunc1.c: Likewise.
25084         * tests/test-trunc2.c: Likewise.
25085         * tests/test-truncf1.c: Likewise.
25086         * tests/test-truncf2.c: Likewise.
25087         * tests/test-truncl.c: Likewise.
25088         * tests/test-uname.c: Likewise.
25089         * tests/test-unlink.c: Likewise.
25090         * tests/test-unlinkat.c: Likewise.
25091         * tests/test-unsetenv.c: Likewise.
25092         * tests/test-usleep.c: Likewise.
25093         * tests/test-utimens.c: Likewise.
25094         * tests/test-utimensat.c: Likewise.
25095         * tests/test-vasnprintf-posix.c: Likewise.
25096         * tests/test-vasnprintf-posix2.c: Likewise.
25097         * tests/test-vasnprintf.c: Likewise.
25098         * tests/test-vasprintf-posix.c: Likewise.
25099         * tests/test-vasprintf.c: Likewise.
25100         * tests/test-vdprintf-posix.c: Likewise.
25101         * tests/test-vfprintf-posix.c: Likewise.
25102         * tests/test-vprintf-posix.c: Likewise.
25103         * tests/test-vsnprintf-posix.c: Likewise.
25104         * tests/test-vsnprintf.c: Likewise.
25105         * tests/test-vsprintf-posix.c: Likewise.
25106         * tests/test-wcrtomb.c: Likewise.
25107         * tests/test-wcsnrtombs.c: Likewise.
25108         * tests/test-wcsrtombs.c: Likewise.
25109         * tests/test-wctype.c: Likewise.
25110         * tests/test-wcwidth.c: Likewise.
25111         * tests/test-xfprintf-posix.c: Likewise.
25112         * tests/test-xmemdup0.c: Likewise.
25113         * tests/test-xprintf-posix.c: Likewise.
25114         * tests/test-xvasprintf.c: Likewise.
25115         * tests/unicase/test-locale-language.c: Likewise.
25116         * tests/unicase/test-mapping-part1.h: Likewise.
25117         * tests/unicase/test-predicate-part1.h: Likewise.
25118         * tests/unicase/test-u8-casecmp.c: Likewise.
25119         * tests/unicase/test-u8-casecoll.c: Likewise.
25120         * tests/unicase/test-u8-casefold.c: Likewise.
25121         * tests/unicase/test-u8-is-cased.c: Likewise.
25122         * tests/unicase/test-u8-is-casefolded.c: Likewise.
25123         * tests/unicase/test-u8-is-lowercase.c: Likewise.
25124         * tests/unicase/test-u8-is-titlecase.c: Likewise.
25125         * tests/unicase/test-u8-is-uppercase.c: Likewise.
25126         * tests/unicase/test-u8-tolower.c: Likewise.
25127         * tests/unicase/test-u8-totitle.c: Likewise.
25128         * tests/unicase/test-u8-toupper.c: Likewise.
25129         * tests/unicase/test-u16-casecmp.c: Likewise.
25130         * tests/unicase/test-u16-casecoll.c: Likewise.
25131         * tests/unicase/test-u16-casefold.c: Likewise.
25132         * tests/unicase/test-u16-is-cased.c: Likewise.
25133         * tests/unicase/test-u16-is-casefolded.c: Likewise.
25134         * tests/unicase/test-u16-is-lowercase.c: Likewise.
25135         * tests/unicase/test-u16-is-titlecase.c: Likewise.
25136         * tests/unicase/test-u16-is-uppercase.c: Likewise.
25137         * tests/unicase/test-u16-tolower.c: Likewise.
25138         * tests/unicase/test-u16-totitle.c: Likewise.
25139         * tests/unicase/test-u16-toupper.c: Likewise.
25140         * tests/unicase/test-u32-casecmp.c: Likewise.
25141         * tests/unicase/test-u32-casecoll.c: Likewise.
25142         * tests/unicase/test-u32-casefold.c: Likewise.
25143         * tests/unicase/test-u32-is-cased.c: Likewise.
25144         * tests/unicase/test-u32-is-casefolded.c: Likewise.
25145         * tests/unicase/test-u32-is-lowercase.c: Likewise.
25146         * tests/unicase/test-u32-is-titlecase.c: Likewise.
25147         * tests/unicase/test-u32-is-uppercase.c: Likewise.
25148         * tests/unicase/test-u32-tolower.c: Likewise.
25149         * tests/unicase/test-u32-totitle.c: Likewise.
25150         * tests/unicase/test-u32-toupper.c: Likewise.
25151         * tests/unicase/test-ulc-casecmp.c: Likewise.
25152         * tests/unicase/test-ulc-casecoll.c: Likewise.
25153         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
25154         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
25155         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
25156         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
25157         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
25158         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
25159         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
25160         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
25161         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
25162         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
25163         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
25164         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
25165         * tests/unictype/test-bidi_byname.c: Likewise.
25166         * tests/unictype/test-bidi_name.c: Likewise.
25167         * tests/unictype/test-bidi_of.c: Likewise.
25168         * tests/unictype/test-bidi_test.c: Likewise.
25169         * tests/unictype/test-block_list.c: Likewise.
25170         * tests/unictype/test-block_of.c: Likewise.
25171         * tests/unictype/test-block_test.c: Likewise.
25172         * tests/unictype/test-categ_and.c: Likewise.
25173         * tests/unictype/test-categ_and_not.c: Likewise.
25174         * tests/unictype/test-categ_byname.c: Likewise.
25175         * tests/unictype/test-categ_name.c: Likewise.
25176         * tests/unictype/test-categ_none.c: Likewise.
25177         * tests/unictype/test-categ_of.c: Likewise.
25178         * tests/unictype/test-categ_or.c: Likewise.
25179         * tests/unictype/test-categ_test_withtable.c: Likewise.
25180         * tests/unictype/test-combining.c: Likewise.
25181         * tests/unictype/test-decdigit.c: Likewise.
25182         * tests/unictype/test-digit.c: Likewise.
25183         * tests/unictype/test-mirror.c: Likewise.
25184         * tests/unictype/test-numeric.c: Likewise.
25185         * tests/unictype/test-pr_byname.c: Likewise.
25186         * tests/unictype/test-pr_test.c: Likewise.
25187         * tests/unictype/test-predicate-part1.h: Likewise.
25188         * tests/unictype/test-scripts.c: Likewise.
25189         * tests/unictype/test-sy_c_ident.c: Likewise.
25190         * tests/unictype/test-sy_java_ident.c: Likewise.
25191         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
25192         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
25193         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
25194         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
25195         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
25196         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
25197         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
25198         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
25199         * tests/uninorm/test-canonical-decomposition.c: Likewise.
25200         * tests/uninorm/test-compat-decomposition.c: Likewise.
25201         * tests/uninorm/test-composition.c: Likewise.
25202         * tests/uninorm/test-decomposing-form.c: Likewise.
25203         * tests/uninorm/test-decomposition.c: Likewise.
25204         * tests/uninorm/test-u8-nfc.c: Likewise.
25205         * tests/uninorm/test-u8-nfd.c: Likewise.
25206         * tests/uninorm/test-u8-nfkc.c: Likewise.
25207         * tests/uninorm/test-u8-nfkd.c: Likewise.
25208         * tests/uninorm/test-u8-normcmp.c: Likewise.
25209         * tests/uninorm/test-u8-normcoll.c: Likewise.
25210         * tests/uninorm/test-u16-nfc.c: Likewise.
25211         * tests/uninorm/test-u16-nfd.c: Likewise.
25212         * tests/uninorm/test-u16-nfkc.c: Likewise.
25213         * tests/uninorm/test-u16-nfkd.c: Likewise.
25214         * tests/uninorm/test-u16-normcmp.c: Likewise.
25215         * tests/uninorm/test-u16-normcoll.c: Likewise.
25216         * tests/uninorm/test-u32-nfc.c: Likewise.
25217         * tests/uninorm/test-u32-nfd.c: Likewise.
25218         * tests/uninorm/test-u32-nfkc.c: Likewise.
25219         * tests/uninorm/test-u32-nfkd.c: Likewise.
25220         * tests/uninorm/test-u32-normalize-big.c: Likewise.
25221         * tests/uninorm/test-u32-normcmp.c: Likewise.
25222         * tests/uninorm/test-u32-normcoll.c: Likewise.
25223         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
25224         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
25225         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
25226         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
25227         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
25228         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
25229         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
25230         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
25231         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
25232         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
25233         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
25234         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
25235         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
25236         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
25237         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
25238         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
25239         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
25240         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
25241         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
25242         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
25243         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
25244         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
25245         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
25246         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
25247         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
25248         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
25249         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
25250         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
25251         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
25252         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
25253         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
25254         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
25255         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
25256         * tests/uniwidth/test-u8-strwidth.c: Likewise.
25257         * tests/uniwidth/test-u8-width.c: Likewise.
25258         * tests/uniwidth/test-u16-strwidth.c: Likewise.
25259         * tests/uniwidth/test-u16-width.c: Likewise.
25260         * tests/uniwidth/test-u32-strwidth.c: Likewise.
25261         * tests/uniwidth/test-u32-width.c: Likewise.
25262         * tests/uniwidth/test-uc_width.c: Likewise.
25263         * tests/uniwidth/test-uc_width2.c: Likewise.
25264         * modules/acl-tests (Files): Add tests/macros.h.
25265         * modules/areadlink-tests (Files): Likewise.
25266         * modules/areadlink-with-size-tests (Files): Likewise.
25267         * modules/areadlinkat-tests (Files): Likewise.
25268         * modules/areadlinkat-with-size-tests (Files): Likewise.
25269         * modules/argmatch-tests (Files): Likewise.
25270         * modules/argv-iter-tests (Files): Likewise.
25271         * modules/array-list-tests (Files): Likewise.
25272         * modules/array-mergesort-tests (Files): Likewise.
25273         * modules/array-oset-tests (Files): Likewise.
25274         * modules/avltree-list-tests (Files): Likewise.
25275         * modules/avltree-oset-tests (Files): Likewise.
25276         * modules/avltreehash-list-tests (Files): Likewise.
25277         * modules/base64-tests (Files): Likewise.
25278         * modules/binary-io-tests (Files): Likewise.
25279         * modules/bitrotate-tests (Files): Likewise.
25280         * modules/btowc-tests (Files): Likewise.
25281         * modules/byteswap-tests (Files): Likewise.
25282         * modules/c-ctype-tests (Files): Likewise.
25283         * modules/c-stack-tests (Files): Likewise.
25284         * modules/c-strcase-tests (Files): Likewise.
25285         * modules/c-strcasestr-tests (Files): Likewise.
25286         * modules/c-strstr-tests (Files): Likewise.
25287         * modules/canonicalize-lgpl-tests (Files): Likewise.
25288         * modules/canonicalize-tests (Files): Likewise.
25289         * modules/carray-list-tests (Files): Likewise.
25290         * modules/ceilf-tests (Files): Likewise.
25291         * modules/ceill-tests (Files): Likewise.
25292         * modules/chown-tests (Files): Likewise.
25293         * modules/cloexec-tests (Files): Likewise.
25294         * modules/copy-file-tests (Files): Likewise.
25295         * modules/count-one-bits-tests (Files): Likewise.
25296         * modules/dprintf-posix-tests (Files): Likewise.
25297         * modules/dup2-tests (Files): Likewise.
25298         * modules/dup3-tests (Files): Likewise.
25299         * modules/duplocale-tests (Files): Likewise.
25300         * modules/fbufmode-tests (Files): Likewise.
25301         * modules/fchdir-tests (Files): Likewise.
25302         * modules/fcntl-safer-tests (Files): Likewise.
25303         * modules/fcntl-tests (Files): Likewise.
25304         * modules/fdopendir-tests (Files): Likewise.
25305         * modules/fdutimensat-tests (Files): Likewise.
25306         * modules/fflush-tests (Files): Likewise.
25307         * modules/filevercmp-tests (Files): Likewise.
25308         * modules/flock-tests (Files): Likewise.
25309         * modules/floorf-tests (Files): Likewise.
25310         * modules/floorl-tests (Files): Likewise.
25311         * modules/fnmatch-tests (Files): Likewise.
25312         * modules/fopen-safer-tests (Files): Likewise.
25313         * modules/fopen-tests (Files): Likewise.
25314         * modules/fpending-tests (Files): Likewise.
25315         * modules/fprintf-posix-tests (Files): Likewise.
25316         * modules/fpurge-tests (Files): Likewise.
25317         * modules/freadable-tests (Files): Likewise.
25318         * modules/freadahead-tests (Files): Likewise.
25319         * modules/freading-tests (Files): Likewise.
25320         * modules/freadptr-tests (Files): Likewise.
25321         * modules/freadseek-tests (Files): Likewise.
25322         * modules/freopen-tests (Files): Likewise.
25323         * modules/frexp-nolibm-tests (Files): Likewise.
25324         * modules/frexp-tests (Files): Likewise.
25325         * modules/frexpl-nolibm-tests (Files): Likewise.
25326         * modules/frexpl-tests (Files): Likewise.
25327         * modules/fseek-tests (Files): Likewise.
25328         * modules/fseeko-tests (Files): Likewise.
25329         * modules/fstrcmp-tests (Files): Likewise.
25330         * modules/fsync-tests (Files): Likewise.
25331         * modules/ftell-tests (Files): Likewise.
25332         * modules/ftello-tests (Files): Likewise.
25333         * modules/func-tests (Files): Likewise.
25334         * modules/futimens-tests (Files): Likewise.
25335         * modules/fwritable-tests (Files): Likewise.
25336         * modules/fwriting-tests (Files): Likewise.
25337         * modules/getcwd-tests (Files): Likewise.
25338         * modules/getdate-tests (Files): Likewise.
25339         * modules/getdelim-tests (Files): Likewise.
25340         * modules/getdtablesize-tests (Files): Likewise.
25341         * modules/getgroups-tests (Files): Likewise.
25342         * modules/getline-tests (Files): Likewise.
25343         * modules/getndelim2-tests (Files): Likewise.
25344         * modules/glob-tests (Files): Likewise.
25345         * modules/hash-tests (Files): Likewise.
25346         * modules/i-ring-tests (Files): Likewise.
25347         * modules/iconv-tests (Files): Likewise.
25348         * modules/iconv_open-utf-tests (Files): Likewise.
25349         * modules/idpriv-drop-tests (Files): Likewise.
25350         * modules/idpriv-droptemp-tests (Files): Likewise.
25351         * modules/inet_ntop-tests (Files): Likewise.
25352         * modules/inet_pton-tests (Files): Likewise.
25353         * modules/isblank-tests (Files): Likewise.
25354         * modules/isfinite-tests (Files): Likewise.
25355         * modules/isinf-tests (Files): Likewise.
25356         * modules/isnan-tests (Files): Likewise.
25357         * modules/isnand-nolibm-tests (Files): Likewise.
25358         * modules/isnand-tests (Files): Likewise.
25359         * modules/isnanf-nolibm-tests (Files): Likewise.
25360         * modules/isnanf-tests (Files): Likewise.
25361         * modules/isnanl-nolibm-tests (Files): Likewise.
25362         * modules/isnanl-tests (Files): Likewise.
25363         * modules/lchown-tests (Files): Likewise.
25364         * modules/ldexpl-tests (Files): Likewise.
25365         * modules/link-tests (Files): Likewise.
25366         * modules/linkat-tests (Files): Likewise.
25367         * modules/linked-list-tests (Files): Likewise.
25368         * modules/linkedhash-list-tests (Files): Likewise.
25369         * modules/localename-tests (Files): Likewise.
25370         * modules/lseek-tests (Files): Likewise.
25371         * modules/lstat-tests (Files): Likewise.
25372         * modules/mbmemcasecmp-tests (Files): Likewise.
25373         * modules/mbmemcasecoll-tests (Files): Likewise.
25374         * modules/mbrtowc-tests (Files): Likewise.
25375         * modules/mbscasecmp-tests (Files): Likewise.
25376         * modules/mbscasestr-tests (Files): Likewise.
25377         * modules/mbschr-tests (Files): Likewise.
25378         * modules/mbscspn-tests (Files): Likewise.
25379         * modules/mbsinit-tests (Files): Likewise.
25380         * modules/mbsncasecmp-tests (Files): Likewise.
25381         * modules/mbsnrtowcs-tests (Files): Likewise.
25382         * modules/mbspbrk-tests (Files): Likewise.
25383         * modules/mbspcasecmp-tests (Files): Likewise.
25384         * modules/mbsrchr-tests (Files): Likewise.
25385         * modules/mbsrtowcs-tests (Files): Likewise.
25386         * modules/mbsspn-tests (Files): Likewise.
25387         * modules/mbsstr-tests (Files): Likewise.
25388         * modules/memchr-tests (Files): Likewise.
25389         * modules/memchr2-tests (Files): Likewise.
25390         * modules/memcmp-tests (Files): Likewise.
25391         * modules/memmem-tests (Files): Likewise.
25392         * modules/memrchr-tests (Files): Likewise.
25393         * modules/mkdir-tests (Files): Likewise.
25394         * modules/mkfifo-tests (Files): Likewise.
25395         * modules/mkfifoat-tests (Files): Likewise.
25396         * modules/mknod-tests (Files): Likewise.
25397         * modules/nanosleep-tests (Files): Likewise.
25398         * modules/nl_langinfo-tests (Files): Likewise.
25399         * modules/obstack-printf-tests (Files): Likewise.
25400         * modules/open-tests (Files): Likewise.
25401         * modules/openat-tests (Files): Likewise.
25402         * modules/pipe-filter-gi-tests (Files): Likewise.
25403         * modules/pipe-filter-ii-tests (Files): Likewise.
25404         * modules/pipe2-tests (Files): Likewise.
25405         * modules/popen-safer-tests (Files): Likewise.
25406         * modules/popen-tests (Files): Likewise.
25407         * modules/posixtm-tests (Files): Likewise.
25408         * modules/pread-tests (Files): Likewise.
25409         * modules/printf-frexp-tests (Files): Likewise.
25410         * modules/printf-frexpl-tests (Files): Likewise.
25411         * modules/printf-posix-tests (Files): Likewise.
25412         * modules/priv-set-tests (Files): Likewise.
25413         * modules/quotearg-tests (Files): Likewise.
25414         * modules/random_r-tests (Files): Likewise.
25415         * modules/rawmemchr-tests (Files): Likewise.
25416         * modules/rbtree-list-tests (Files): Likewise.
25417         * modules/rbtree-oset-tests (Files): Likewise.
25418         * modules/rbtreehash-list-tests (Files): Likewise.
25419         * modules/readlink-tests (Files): Likewise.
25420         * modules/remove-tests (Files): Likewise.
25421         * modules/rename-tests (Files): Likewise.
25422         * modules/renameat-tests (Files): Likewise.
25423         * modules/rmdir-tests (Files): Likewise.
25424         * modules/round-tests (Files): Likewise.
25425         * modules/roundf-tests (Files): Likewise.
25426         * modules/roundl-tests (Files): Likewise.
25427         * modules/safe-alloc-tests (Files): Likewise.
25428         * modules/setenv-tests (Files): Likewise.
25429         * modules/sigaction-tests (Files): Likewise.
25430         * modules/signbit-tests (Files): Likewise.
25431         * modules/sleep-tests (Files): Likewise.
25432         * modules/snprintf-posix-tests (Files): Likewise.
25433         * modules/snprintf-tests (Files): Likewise.
25434         * modules/sprintf-posix-tests (Files): Likewise.
25435         * modules/stat-tests (Files): Likewise.
25436         * modules/stat-time-tests (Files): Likewise.
25437         * modules/strcasestr-tests (Files): Likewise.
25438         * modules/strchrnul-tests (Files): Likewise.
25439         * modules/strerror-tests (Files): Likewise.
25440         * modules/striconv-tests (Files): Likewise.
25441         * modules/striconveh-tests (Files): Likewise.
25442         * modules/striconveha-tests (Files): Likewise.
25443         * modules/strsignal-tests (Files): Likewise.
25444         * modules/strstr-tests (Files): Likewise.
25445         * modules/strtod-tests (Files): Likewise.
25446         * modules/strverscmp-tests (Files): Likewise.
25447         * modules/symlink-tests (Files): Likewise.
25448         * modules/symlinkat-tests (Files): Likewise.
25449         * modules/trunc-tests (Files): Likewise.
25450         * modules/truncf-tests (Files): Likewise.
25451         * modules/truncl-tests (Files): Likewise.
25452         * modules/uname-tests (Files): Likewise.
25453         * modules/unicase/cased-tests (Files): Likewise.
25454         * modules/unicase/ignorable-tests (Files): Likewise.
25455         * modules/unicase/locale-language-tests (Files): Likewise.
25456         * modules/unicase/tolower-tests (Files): Likewise.
25457         * modules/unicase/totitle-tests (Files): Likewise.
25458         * modules/unicase/toupper-tests (Files): Likewise.
25459         * modules/unicase/u8-casecmp-tests (Files): Likewise.
25460         * modules/unicase/u8-casecoll-tests (Files): Likewise.
25461         * modules/unicase/u8-casefold-tests (Files): Likewise.
25462         * modules/unicase/u8-is-cased-tests (Files): Likewise.
25463         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
25464         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
25465         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
25466         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
25467         * modules/unicase/u8-tolower-tests (Files): Likewise.
25468         * modules/unicase/u8-totitle-tests (Files): Likewise.
25469         * modules/unicase/u8-toupper-tests (Files): Likewise.
25470         * modules/unicase/u16-casecmp-tests (Files): Likewise.
25471         * modules/unicase/u16-casecoll-tests (Files): Likewise.
25472         * modules/unicase/u16-casefold-tests (Files): Likewise.
25473         * modules/unicase/u16-is-cased-tests (Files): Likewise.
25474         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
25475         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
25476         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
25477         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
25478         * modules/unicase/u16-tolower-tests (Files): Likewise.
25479         * modules/unicase/u16-totitle-tests (Files): Likewise.
25480         * modules/unicase/u16-toupper-tests (Files): Likewise.
25481         * modules/unicase/u32-casecmp-tests (Files): Likewise.
25482         * modules/unicase/u32-casecoll-tests (Files): Likewise.
25483         * modules/unicase/u32-casefold-tests (Files): Likewise.
25484         * modules/unicase/u32-is-cased-tests (Files): Likewise.
25485         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
25486         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
25487         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
25488         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
25489         * modules/unicase/u32-tolower-tests (Files): Likewise.
25490         * modules/unicase/u32-totitle-tests (Files): Likewise.
25491         * modules/unicase/u32-toupper-tests (Files): Likewise.
25492         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
25493         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
25494         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
25495         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
25496         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
25497         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
25498         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
25499         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
25500         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
25501         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
25502         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
25503         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
25504         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
25505         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
25506         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
25507         * modules/unictype/bidicategory-name-tests (Files): Likewise.
25508         * modules/unictype/bidicategory-of-tests (Files): Likewise.
25509         * modules/unictype/bidicategory-test-tests (Files): Likewise.
25510         * modules/unictype/block-list-tests (Files): Likewise.
25511         * modules/unictype/block-of-tests (Files): Likewise.
25512         * modules/unictype/block-test-tests (Files): Likewise.
25513         * modules/unictype/category-C-tests (Files): Likewise.
25514         * modules/unictype/category-Cc-tests (Files): Likewise.
25515         * modules/unictype/category-Cf-tests (Files): Likewise.
25516         * modules/unictype/category-Cn-tests (Files): Likewise.
25517         * modules/unictype/category-Co-tests (Files): Likewise.
25518         * modules/unictype/category-Cs-tests (Files): Likewise.
25519         * modules/unictype/category-L-tests (Files): Likewise.
25520         * modules/unictype/category-Ll-tests (Files): Likewise.
25521         * modules/unictype/category-Lm-tests (Files): Likewise.
25522         * modules/unictype/category-Lo-tests (Files): Likewise.
25523         * modules/unictype/category-Lt-tests (Files): Likewise.
25524         * modules/unictype/category-Lu-tests (Files): Likewise.
25525         * modules/unictype/category-M-tests (Files): Likewise.
25526         * modules/unictype/category-Mc-tests (Files): Likewise.
25527         * modules/unictype/category-Me-tests (Files): Likewise.
25528         * modules/unictype/category-Mn-tests (Files): Likewise.
25529         * modules/unictype/category-N-tests (Files): Likewise.
25530         * modules/unictype/category-Nd-tests (Files): Likewise.
25531         * modules/unictype/category-Nl-tests (Files): Likewise.
25532         * modules/unictype/category-No-tests (Files): Likewise.
25533         * modules/unictype/category-P-tests (Files): Likewise.
25534         * modules/unictype/category-Pc-tests (Files): Likewise.
25535         * modules/unictype/category-Pd-tests (Files): Likewise.
25536         * modules/unictype/category-Pe-tests (Files): Likewise.
25537         * modules/unictype/category-Pf-tests (Files): Likewise.
25538         * modules/unictype/category-Pi-tests (Files): Likewise.
25539         * modules/unictype/category-Po-tests (Files): Likewise.
25540         * modules/unictype/category-Ps-tests (Files): Likewise.
25541         * modules/unictype/category-S-tests (Files): Likewise.
25542         * modules/unictype/category-Sc-tests (Files): Likewise.
25543         * modules/unictype/category-Sk-tests (Files): Likewise.
25544         * modules/unictype/category-Sm-tests (Files): Likewise.
25545         * modules/unictype/category-So-tests (Files): Likewise.
25546         * modules/unictype/category-Z-tests (Files): Likewise.
25547         * modules/unictype/category-Zl-tests (Files): Likewise.
25548         * modules/unictype/category-Zp-tests (Files): Likewise.
25549         * modules/unictype/category-Zs-tests (Files): Likewise.
25550         * modules/unictype/category-and-not-tests (Files): Likewise.
25551         * modules/unictype/category-and-tests (Files): Likewise.
25552         * modules/unictype/category-byname-tests (Files): Likewise.
25553         * modules/unictype/category-name-tests (Files): Likewise.
25554         * modules/unictype/category-none-tests (Files): Likewise.
25555         * modules/unictype/category-of-tests (Files): Likewise.
25556         * modules/unictype/category-or-tests (Files): Likewise.
25557         * modules/unictype/category-test-withtable-tests (Files): Likewise.
25558         * modules/unictype/combining-class-tests (Files): Likewise.
25559         * modules/unictype/ctype-alnum-tests (Files): Likewise.
25560         * modules/unictype/ctype-alpha-tests (Files): Likewise.
25561         * modules/unictype/ctype-blank-tests (Files): Likewise.
25562         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
25563         * modules/unictype/ctype-digit-tests (Files): Likewise.
25564         * modules/unictype/ctype-graph-tests (Files): Likewise.
25565         * modules/unictype/ctype-lower-tests (Files): Likewise.
25566         * modules/unictype/ctype-print-tests (Files): Likewise.
25567         * modules/unictype/ctype-punct-tests (Files): Likewise.
25568         * modules/unictype/ctype-space-tests (Files): Likewise.
25569         * modules/unictype/ctype-upper-tests (Files): Likewise.
25570         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
25571         * modules/unictype/decimal-digit-tests (Files): Likewise.
25572         * modules/unictype/digit-tests (Files): Likewise.
25573         * modules/unictype/mirror-tests (Files): Likewise.
25574         * modules/unictype/numeric-tests (Files): Likewise.
25575         * modules/unictype/property-alphabetic-tests (Files): Likewise.
25576         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
25577         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
25578         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
25579         Likewise.
25580         * modules/unictype/property-bidi-block-separator-tests (Files):
25581         Likewise.
25582         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
25583         Likewise.
25584         * modules/unictype/property-bidi-common-separator-tests (Files):
25585         Likewise.
25586         * modules/unictype/property-bidi-control-tests (Files): Likewise.
25587         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
25588         Likewise.
25589         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
25590         Likewise.
25591         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
25592         Likewise.
25593         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
25594         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
25595         Likewise.
25596         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
25597         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
25598         Likewise.
25599         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
25600         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
25601         * modules/unictype/property-bidi-segment-separator-tests (Files):
25602         Likewise.
25603         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
25604         * modules/unictype/property-byname-tests (Files): Likewise.
25605         * modules/unictype/property-combining-tests (Files): Likewise.
25606         * modules/unictype/property-composite-tests (Files): Likewise.
25607         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
25608         * modules/unictype/property-dash-tests (Files): Likewise.
25609         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
25610         * modules/unictype/property-default-ignorable-code-point-tests (Files):
25611         Likewise.
25612         * modules/unictype/property-deprecated-tests (Files): Likewise.
25613         * modules/unictype/property-diacritic-tests (Files): Likewise.
25614         * modules/unictype/property-extender-tests (Files): Likewise.
25615         * modules/unictype/property-format-control-tests (Files): Likewise.
25616         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
25617         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
25618         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
25619         * modules/unictype/property-hex-digit-tests (Files): Likewise.
25620         * modules/unictype/property-hyphen-tests (Files): Likewise.
25621         * modules/unictype/property-id-continue-tests (Files): Likewise.
25622         * modules/unictype/property-id-start-tests (Files): Likewise.
25623         * modules/unictype/property-ideographic-tests (Files): Likewise.
25624         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
25625         * modules/unictype/property-ids-trinary-operator-tests (Files):
25626         Likewise.
25627         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
25628         * modules/unictype/property-iso-control-tests (Files): Likewise.
25629         * modules/unictype/property-join-control-tests (Files): Likewise.
25630         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
25631         * modules/unictype/property-line-separator-tests (Files): Likewise.
25632         * modules/unictype/property-logical-order-exception-tests (Files):
25633         Likewise.
25634         * modules/unictype/property-lowercase-tests (Files): Likewise.
25635         * modules/unictype/property-math-tests (Files): Likewise.
25636         * modules/unictype/property-non-break-tests (Files): Likewise.
25637         * modules/unictype/property-not-a-character-tests (Files): Likewise.
25638         * modules/unictype/property-numeric-tests (Files): Likewise.
25639         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
25640         * modules/unictype/property-other-default-ignorable-code-point-tests
25641         (Files): Likewise.
25642         * modules/unictype/property-other-grapheme-extend-tests (Files):
25643         Likewise.
25644         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
25645         * modules/unictype/property-other-id-start-tests (Files): Likewise.
25646         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
25647         * modules/unictype/property-other-math-tests (Files): Likewise.
25648         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
25649         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
25650         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
25651         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
25652         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
25653         * modules/unictype/property-private-use-tests (Files): Likewise.
25654         * modules/unictype/property-punctuation-tests (Files): Likewise.
25655         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
25656         * modules/unictype/property-radical-tests (Files): Likewise.
25657         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
25658         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
25659         * modules/unictype/property-space-tests (Files): Likewise.
25660         * modules/unictype/property-terminal-punctuation-tests (Files):
25661         Likewise.
25662         * modules/unictype/property-test-tests (Files): Likewise.
25663         * modules/unictype/property-titlecase-tests (Files): Likewise.
25664         * modules/unictype/property-unassigned-code-value-tests (Files):
25665         Likewise.
25666         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
25667         * modules/unictype/property-uppercase-tests (Files): Likewise.
25668         * modules/unictype/property-variation-selector-tests (Files): Likewise.
25669         * modules/unictype/property-white-space-tests (Files): Likewise.
25670         * modules/unictype/property-xid-continue-tests (Files): Likewise.
25671         * modules/unictype/property-xid-start-tests (Files): Likewise.
25672         * modules/unictype/property-zero-width-tests (Files): Likewise.
25673         * modules/unictype/scripts-tests (Files): Likewise.
25674         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
25675         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
25676         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
25677         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
25678         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
25679         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
25680         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
25681         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
25682         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
25683         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
25684         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
25685         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
25686         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
25687         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
25688         * modules/uninorm/composition-tests (Files): Likewise.
25689         * modules/uninorm/decomposing-form-tests (Files): Likewise.
25690         * modules/uninorm/decomposition-tests (Files): Likewise.
25691         * modules/uninorm/filter-tests (Files): Likewise.
25692         * modules/uninorm/nfc-tests (Files): Likewise.
25693         * modules/uninorm/nfd-tests (Files): Likewise.
25694         * modules/uninorm/nfkc-tests (Files): Likewise.
25695         * modules/uninorm/nfkd-tests (Files): Likewise.
25696         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
25697         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
25698         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
25699         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
25700         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
25701         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
25702         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
25703         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
25704         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
25705         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
25706         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
25707         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
25708         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
25709         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
25710         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
25711         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
25712         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
25713         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
25714         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
25715         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
25716         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
25717         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
25718         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
25719         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
25720         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
25721         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
25722         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
25723         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
25724         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
25725         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
25726         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
25727         * modules/uniwidth/u8-width-tests (Files): Likewise.
25728         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
25729         * modules/uniwidth/u16-width-tests (Files): Likewise.
25730         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
25731         * modules/uniwidth/u32-width-tests (Files): Likewise.
25732         * modules/uniwidth/width-tests (Files): Likewise.
25733         * modules/unlink-tests (Files): Likewise.
25734         * modules/unsetenv-tests (Files): Likewise.
25735         * modules/usleep-tests (Files): Likewise.
25736         * modules/utimens-tests (Files): Likewise.
25737         * modules/utimensat-tests (Files): Likewise.
25738         * modules/vasnprintf-posix-tests (Files): Likewise.
25739         * modules/vasnprintf-tests (Files): Likewise.
25740         * modules/vasprintf-posix-tests (Files): Likewise.
25741         * modules/vasprintf-tests (Files): Likewise.
25742         * modules/vdprintf-posix-tests (Files): Likewise.
25743         * modules/vfprintf-posix-tests (Files): Likewise.
25744         * modules/vprintf-posix-tests (Files): Likewise.
25745         * modules/vsnprintf-posix-tests (Files): Likewise.
25746         * modules/vsnprintf-tests (Files): Likewise.
25747         * modules/vsprintf-posix-tests (Files): Likewise.
25748         * modules/wcrtomb-tests (Files): Likewise.
25749         * modules/wcsnrtombs-tests (Files): Likewise.
25750         * modules/wcsrtombs-tests (Files): Likewise.
25751         * modules/wctype-tests (Files): Likewise.
25752         * modules/wcwidth-tests (Files): Likewise.
25753         * modules/xmemdup0-tests (Files): Likewise.
25754         * modules/xprintf-posix-tests (Files): Likewise.
25755         * modules/xvasprintf-tests (Files): Likewise.
25756
25757 2009-12-24  Eric Blake  <ebb9@byu.net>
25758
25759         test-nanosleep: fix typo
25760         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
25761         patch.
25762         Reported by Bruno Haible.
25763
25764 2009-12-24  Bruno Haible  <bruno@clisp.org>
25765
25766         Reduce namespace pollution on glibc systems.
25767         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
25768         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
25769         systems.
25770         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
25771         <getopt.h> on glibc systems.
25772         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
25773         systems.
25774         * lib/fcntl.c: Include <unistd.h> here instead.
25775
25776 2009-12-24  Bruno Haible  <bruno@clisp.org>
25777
25778         * lib/stdlib.in.h (includes): Fix typo in today's commit.
25779
25780 2009-12-24  Eric Blake  <ebb9@byu.net>
25781
25782         tests: add signature checks
25783         * tests/signature.h (SIGNATURE_CHECK): New file.
25784         * modules/atexit-tests (Files): Use it.
25785         * modules/btowc-tests (Files): Likewise.
25786         * modules/canonicalize-lgpl-tests (Files): Likewise.
25787         * modules/ceilf-tests (Files): Likewise.
25788         * modules/ceill-tests (Files): Likewise.
25789         * modules/chown-tests (Files): Likewise.
25790         * modules/dprintf-posix-tests (Files): Likewise.
25791         * modules/dup2-tests (Files): Likewise.
25792         * modules/dup3-tests (Files): Likewise.
25793         * modules/duplocale-tests (Files): Likewise.
25794         * modules/fchdir-tests (Files): Likewise.
25795         * modules/fcntl-tests (Files): Likewise.
25796         * modules/fdopendir-tests (Files): Likewise.
25797         * modules/fflush-tests (Files): Likewise.
25798         * modules/flock-tests (Files): Likewise.
25799         * modules/floorf-tests (Files): Likewise.
25800         * modules/floorl-tests (Files): Likewise.
25801         * modules/fnmatch-tests (Files): Likewise.
25802         * modules/fopen-tests (Files): Likewise.
25803         * modules/fprintf-posix-tests (Files): Likewise.
25804         * modules/freopen-tests (Files): Likewise.
25805         * modules/frexp-nolibm-tests (Files): Likewise.
25806         * modules/frexp-tests (Files): Likewise.
25807         * modules/frexpl-nolibm-tests (Files): Likewise.
25808         * modules/frexpl-tests (Files): Likewise.
25809         * modules/fseek-tests (Files): Likewise.
25810         * modules/fseeko-tests (Files): Likewise.
25811         * modules/fsync-tests (Files): Likewise.
25812         * modules/ftell-tests (Files): Likewise.
25813         * modules/ftello-tests (Files): Likewise.
25814         * modules/futimens-tests (Files): Likewise.
25815         * modules/getaddrinfo-tests (Files): Likewise.
25816         * modules/getcwd-tests (Files): Likewise.
25817         * modules/getdelim-tests (Files): Likewise.
25818         * modules/getdtablesize-tests (Files): Likewise.
25819         * modules/getgroups-tests (Files): Likewise.
25820         * modules/gethostname-tests (Files): Likewise.
25821         * modules/getline-tests (Files): Likewise.
25822         * modules/getopt-posix-tests (Files): Likewise.
25823         * modules/gettimeofday-tests (Files): Likewise.
25824         * modules/glob-tests (Files): Likewise.
25825         * modules/iconv-tests (Files): Likewise.
25826         * modules/inet_ntop-tests (Files): Likewise.
25827         * modules/inet_pton-tests (Files): Likewise.
25828         * modules/isblank-tests (Files): Likewise.
25829         * modules/lchown-tests (Files): Likewise.
25830         * modules/ldexpl-tests (Files): Likewise.
25831         * modules/link-tests (Files): Likewise.
25832         * modules/linkat-tests (Files): Likewise.
25833         * modules/lseek-tests (Files): Likewise.
25834         * modules/lstat-tests (Files): Likewise.
25835         * modules/mbrtowc-tests (Files): Likewise.
25836         * modules/mbsinit-tests (Files): Likewise.
25837         * modules/mbsnrtowcs-tests (Files): Likewise.
25838         * modules/mbsrtowcs-tests (Files): Likewise.
25839         * modules/memchr-tests (Files): Likewise.
25840         * modules/memcmp-tests (Files): Likewise.
25841         * modules/memmem-tests (Files): Likewise.
25842         * modules/memrchr-tests (Files): Likewise.
25843         * modules/mkdir-tests (Files): Likewise.
25844         * modules/mkfifo-tests (Files): Likewise.
25845         * modules/mkfifoat-tests (Files): Likewise.
25846         * modules/mknod-tests (Files): Likewise.
25847         * modules/nanosleep-tests (Files): Likewise.
25848         * modules/nl_langinfo-tests (Files): Likewise.
25849         * modules/obstack-printf-tests (Files): Likewise.
25850         * modules/open-tests (Files): Likewise.
25851         * modules/openat-tests (Files): Likewise.
25852         * modules/perror-tests (Files): Likewise.
25853         * modules/pipe2-tests (Files): Likewise.
25854         * modules/poll-tests (Files): Likewise.
25855         * modules/popen-tests (Files): Likewise.
25856         * modules/posix_spawn-tests (Files): Likewise.
25857         * modules/posix_spawnp-tests (Files): Likewise.
25858         * modules/pread-tests (Files): Likewise.
25859         * modules/printf-posix-tests (Files): Likewise.
25860         * modules/pty-tests (Files): Likewise.
25861         * modules/random_r-tests (Files): Likewise.
25862         * modules/rawmemchr-tests (Files): Likewise.
25863         * modules/readlink-tests (Files): Likewise.
25864         * modules/remove-tests (Files): Likewise.
25865         * modules/rename-tests (Files): Likewise.
25866         * modules/renameat-tests (Files): Likewise.
25867         * modules/rmdir-tests (Files): Likewise.
25868         * modules/round-tests (Files): Likewise.
25869         * modules/roundf-tests (Files): Likewise.
25870         * modules/roundl-tests (Files): Likewise.
25871         * modules/select-tests (Files): Likewise.
25872         * modules/setenv-tests (Files): Likewise.
25873         * modules/sigaction-tests (Files): Likewise.
25874         * modules/sleep-tests (Files): Likewise.
25875         * modules/snprintf-posix-tests (Files): Likewise.
25876         * modules/snprintf-tests (Files): Likewise.
25877         * modules/sprintf-posix-tests (Files): Likewise.
25878         * modules/stat-tests (Files): Likewise.
25879         * modules/strcasestr-tests (Files): Likewise.
25880         * modules/strchrnul-tests (Files): Likewise.
25881         * modules/strerror-tests (Files): Likewise.
25882         * modules/strsignal-tests (Files): Likewise.
25883         * modules/strstr-tests (Files): Likewise.
25884         * modules/strtod-tests (Files): Likewise.
25885         * modules/strverscmp-tests (Files): Likewise.
25886         * modules/symlink-tests (Files): Likewise.
25887         * modules/symlinkat-tests (Files): Likewise.
25888         * modules/times-tests (Files): Likewise.
25889         * modules/trunc-tests (Files): Likewise.
25890         * modules/truncf-tests (Files): Likewise.
25891         * modules/truncl-tests (Files): Likewise.
25892         * modules/tsearch-tests (Files): Likewise.
25893         * modules/uname-tests (Files): Likewise.
25894         * modules/unlink-tests (Files): Likewise.
25895         * modules/unsetenv-tests (Files): Likewise.
25896         * modules/usleep-tests (Files): Likewise.
25897         * modules/utimensat-tests (Files): Likewise.
25898         * modules/vasprintf-tests (Files): Likewise.
25899         * modules/vdprintf-posix-tests (Files): Likewise.
25900         * modules/vfprintf-posix-tests (Files): Likewise.
25901         * modules/vprintf-posix-tests (Files): Likewise.
25902         * modules/vsnprintf-posix-tests (Files): Likewise.
25903         * modules/vsnprintf-tests (Files): Likewise.
25904         * modules/vsprintf-posix-tests (Files): Likewise.
25905         * modules/wcrtomb-tests (Files): Likewise.
25906         * modules/wcsnrtombs-tests (Files): Likewise.
25907         * modules/wcsrtombs-tests (Files): Likewise.
25908         * modules/wcwidth-tests (Files): Likewise.
25909         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
25910         * tests/test-isinf.c (isinf): Likewise.
25911         * tests/test-isnan.c (isnan): Likewise.
25912         * tests/test-signbit.c (signbit): Likewise.
25913         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
25914         declaration, either as macro or with correct signature.
25915         (select): Ensure function under test is declared with correct
25916         signature in correct header.
25917         * tests/test-atexit.c (atexit): Likewise.
25918         * tests/test-btowc.c (btowc): Likewise.
25919         * tests/test-canonicalize-lgpl.c (realpath)
25920         (canonicalize_file_name): Likewise.
25921         * tests/test-ceilf1.c (ceilf): Likewise.
25922         * tests/test-ceill.c (ceill): Likewise.
25923         * tests/test-chown.c (chown): Likewise.
25924         * tests/test-dprintf-posix.c (dprintf): Likewise.
25925         * tests/test-dup2.c (dup2): Likewise.
25926         * tests/test-dup3.c (dup3): Likewise.
25927         * tests/test-duplocale.c (duplocale): Likewise.
25928         * tests/test-fchdir.c (fchdir): Likewise.
25929         * tests/test-fchownat.c (fchownat): Likewise.
25930         * tests/test-fcntl.c (fcntl): Likewise.
25931         * tests/test-fdopendir.c (fdopendir): Likewise.
25932         * tests/test-fflush.c (fflush): Likewise.
25933         * tests/test-flock.c (flock): Likewise.
25934         * tests/test-floorf1.c (floorf): Likewise.
25935         * tests/test-floorl.c (floorl): Likewise.
25936         * tests/test-fnmatch.c (fnmatch): Likewise.
25937         * tests/test-fopen.c (fopen): Likewise.
25938         * tests/test-fprintf-posix.c (fprintf): Likewise.
25939         * tests/test-freopen.c (freopen): Likewise.
25940         * tests/test-frexp.c (frexp): Likewise.
25941         * tests/test-frexpl.c (frexpl): Likewise.
25942         * tests/test-fseek.c (fseek): Likewise.
25943         * tests/test-fseeko.c (fseeko): Likewise.
25944         * tests/test-fstatat.c (fstatat): Likewise.
25945         * tests/test-fsync.c (fsync): Likewise.
25946         * tests/test-ftell.c (ftell): Likewise.
25947         * tests/test-ftello.c (ftello): Likewise.
25948         * tests/test-futimens.c (futimens): Likewise.
25949         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
25950         (gai_strerror): Likewise.
25951         * tests/test-getcwd.c (getcwd): Likewise.
25952         * tests/test-getdelim.c (getdelim): Likewise.
25953         * tests/test-getdtablesize.c (getdtablesize): Likewise.
25954         * tests/test-getgroups.c (getgroups): Likewise.
25955         * tests/test-gethostname.c (gethostname): Likewise.
25956         * tests/test-getline.c (getline): Likewise.
25957         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
25958         Likewise.
25959         * tests/test-gettimeofday.c (gettimeofday): Likewise.
25960         * tests/test-glob.c (glob, globfree): Likewise.
25961         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
25962         * tests/test-inet_ntop.c (inet_ntop): Likewise.
25963         * tests/test-inet_pton.c (inet_pton): Likewise.
25964         * tests/test-isblank.c (isblank): Likewise.
25965         * tests/test-lchown.c (lchown): Likewise.
25966         * tests/test-ldexpl.c (ldexpl): Likewise.
25967         * tests/test-link.c (link): Likewise.
25968         * tests/test-linkat.c (linkat): Likewise.
25969         * tests/test-lseek.c (lseek): Likewise.
25970         * tests/test-lstat.c (lstat): Likewise.
25971         * tests/test-mbrtowc.c (mbrtowc): Likewise.
25972         * tests/test-mbsinit.c (mbsinit): Likewise.
25973         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
25974         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
25975         * tests/test-memchr.c (memchr): Likewise.
25976         * tests/test-memcmp.c (memcmp): Likewise.
25977         * tests/test-memmem.c (memmem): Likewise.
25978         * tests/test-memrchr.c (memrchr): Likewise.
25979         * tests/test-mkdir.c (mkdir): Likewise.
25980         * tests/test-mkdirat.c (mkdirat): Likewise.
25981         * tests/test-mkfifo.c (mkfifo): Likewise.
25982         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
25983         * tests/test-mknod.c (mknod): Likewise.
25984         * tests/test-nanosleep.c (nanosleep): Likewise.
25985         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
25986         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
25987         Likewise.
25988         * tests/test-open.c (open): Likewise.
25989         * tests/test-openat.c (openat): Likewise.
25990         * tests/test-perror.c (perror): Likewise.
25991         * tests/test-pipe2.c (pipe2): Likewise.
25992         * tests/test-poll.c (poll): Likewise.
25993         * tests/test-popen.c (popen, pclose): Likewise.
25994         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
25995         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
25996         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
25997         (posix_spawn_file_actions_destroy)
25998         (posix_spawn_file_actions_addclose)
25999         (posix_spawn_file_actions_addopen)
26000         (posix_spawn_file_actions_adddup2): Likewise.
26001         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
26002         * tests/test-pread.c (pread): Likewise.
26003         * tests/test-printf-posix.c (printf): Likewise.
26004         * tests/test-pty.c (openpty, forkpty): Likewise.
26005         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
26006         (random_r): Likewise.
26007         * tests/test-rawmemchr.c (rawmemchr): Likewise.
26008         * tests/test-readlink.c (readlink): Likewise.
26009         * tests/test-remove.c (remove): Likewise.
26010         * tests/test-rename.c (rename): Likewise.
26011         * tests/test-renameat.c (renameat): Likewise.
26012         * tests/test-rmdir.c (rmdir): Likewise.
26013         * tests/test-round1.c (round): Likewise.
26014         * tests/test-roundf1.c (roundf): Likewise.
26015         * tests/test-roundl.c (roundl): Likewise.
26016         * tests/test-setenv.c (setenv): Likewise.
26017         * tests/test-sigaction.c (sigaction): Likewise.
26018         * tests/test-sleep.c (sleep): Likewise.
26019         * tests/test-snprintf.c (snprintf): Likewise.
26020         * tests/test-sprintf-posix.c (sprintf): Likewise.
26021         * tests/test-stat.c (stat): Likewise.
26022         * tests/test-stpncpy.c (stpncpy): Likewise.
26023         * tests/test-strcasestr.c (strcasestr): Likewise.
26024         * tests/test-strchrnul.c (strchrnul): Likewise.
26025         * tests/test-strerror.c (strerror): Likewise.
26026         * tests/test-strsignal.c (strsignal): Likewise.
26027         * tests/test-strstr.c (strstr): Likewise.
26028         * tests/test-strtod.c (strtod): Likewise.
26029         * tests/test-strverscmp.c (strverscmp): Likewise.
26030         * tests/test-symlink.c (symlink): Likewise.
26031         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
26032         * tests/test-times.c (times): Likewise.
26033         * tests/test-trunc1.c (trunc): Likewise.
26034         * tests/test-truncf1.c (truncf): Likewise.
26035         * tests/test-truncl.c (truncl): Likewise.
26036         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
26037         Likewise.
26038         * tests/test-uname.c (uname): Likewise.
26039         * tests/test-unlink.c (unlink): Likewise.
26040         * tests/test-unlinkat.c (unlinkat): Likewise.
26041         * tests/test-unsetenv.c (unsetenv): Likewise.
26042         * tests/test-usleep.c (usleep): Likewise.
26043         * tests/test-utimensat.c (utimensat): Likewise.
26044         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
26045         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
26046         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
26047         * tests/test-vprintf-posix.c (vprintf): Likewise.
26048         * tests/test-vsnprintf.c (vsnprintf): Likewise.
26049         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
26050         * tests/test-wcrtomb.c (wcrtomb): Likewise.
26051         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
26052         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
26053         * tests/test-wcwidth.c (wcwidth): Likewise.
26054
26055         build: pull in conditional headers during GNULIB_POSIXCHECK
26056         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
26057         definitions from any conditionally-included headers.
26058         * lib/stdlib.in.h (includes): Likewise.
26059         * lib/unistd.in.h (includes): Likewise.
26060
26061 2009-12-24  Bruno Haible  <bruno@clisp.org>
26062
26063         * tests/test-argv-iter.c: Include header file being tested immediately
26064         after config.h.
26065         * tests/test-base64.c: Likewise.
26066         * tests/test-flock.c: Likewise.
26067         * tests/test-fsync.c: Likewise.
26068         * tests/test-getdate.c: Likewise.
26069         * tests/test-getndelim2.c: Likewise.
26070         * tests/test-isfinite.c: Likewise.
26071         * tests/test-isinf.c: Likewise.
26072         * tests/test-strerror.c: Likewise.
26073         * tests/test-strsignal.c: Likewise.
26074
26075 2009-12-23  Eric Blake  <ebb9@byu.net>
26076
26077         unistd: work around cygwin bug
26078         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
26079         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
26080         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
26081
26082 2009-12-23  Bruno Haible  <bruno@clisp.org>
26083
26084         localename: More tests.
26085         * tests/test-localename.c (SIZEOF): New macro.
26086         (categories): New variable.
26087         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
26088         test_locale_name_default): Add test w.r.t. thread locale.
26089         (test_locale_name_thread): New function.
26090         (main): Invoke it.
26091
26092         localename: Make aware of thread locale.
26093         * lib/localename.h (gl_locale_name_thread): New declaration.
26094         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
26095         behaviour with respect to thread locale.
26096         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
26097         <langinfo.h>, glthread/lock.h.
26098         (SIZE_BITS): New macro.
26099         (string_hash): New function.
26100         (struct hash_node): New type.
26101         (HASH_TABLE_SIZE): New macro.
26102         (struniq_hash_table, struniq_lock): New variables.
26103         (struniq): New function.
26104         (gl_locale_name_thread): New function.
26105         (gl_locale_name): Invoke it.
26106         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
26107         * modules/localename (Depends-on): Add lock.
26108         Reported by Mike Gran <spk121@yahoo.com>.
26109
26110 2009-12-23  Eric Blake  <ebb9@byu.net>
26111
26112         va-args: new module
26113         * modules/va-args: New file.
26114         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
26115         * MODULES.html.sh (Core language properties): Mention it.
26116
26117         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
26118         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
26119         named alias for __attribute__((__unused__)).
26120         * lib/chown.c: Update client.
26121         * lib/fchmodat.c: Likewise.
26122         * lib/fts.c: Likewise.
26123         * lib/getdate.y: Likewise.
26124         * lib/getgroups.c: Likewise.
26125         * lib/getopt.c: Likewise.
26126         * lib/getugroups.c: Likewise.
26127         * lib/mkdir.c: Likewise.
26128         * lib/mkfifo.c: Likewise.
26129         * lib/mkfifoat.c: Likewise.
26130         * lib/mknod.c: Likewise.
26131         * lib/mknodat.c: Likewise.
26132         * lib/readlink.c: Likewise.
26133         * lib/se-context.in.h: Likewise.
26134         * lib/se-selinux.in.h: Likewise.
26135         * lib/sockets.c: Likewise.
26136         * lib/symlink.c: Likewise.
26137         * lib/symlinkat.c: Likewise.
26138         * lib/unicodeio.c: Likewise.
26139         * lib/unistr.h: Likewise.
26140         * tests/test-areadlink.c: Likewise.
26141         * tests/test-areadlinkat.c: Likewise.
26142         * tests/test-filenamecat.c: Likewise.
26143         * tests/test-fseeko.c: Likewise.
26144         * tests/test-ftello.c: Likewise.
26145         * tests/test-getdate.c: Likewise.
26146         * tests/test-getgroups.c: Likewise.
26147         * tests/test-gethostname.c: Likewise.
26148         * tests/test-quotearg.c: Likewise.
26149         * tests/test-version-etc.c: Likewise.
26150         * tests/test-xalloc-die.c: Likewise.
26151         * tests/test-xfprintf-posix.c: Likewise.
26152         * tests/test-xprintf-posix.c: Likewise.
26153         * tests/test-xvasprintf.c: Likewise.
26154
26155         tests: avoid compiler warnings
26156         * tests/test-fcntl.c (main): Delete unused parameters.
26157         * tests/test-freopen-safer.c (main): Likewise.
26158         * tests/test-xalloc-die.c (main): Mark unused parameters.
26159         * tests/test-fseeko.c (main): Likewise.
26160         * tests/test-ftello.c (main): Likewise.
26161         * tests/test-nanosleep.c (main): Avoid declaration warning.
26162         * tests/test-sleep.c (main): Likewise.
26163         * tests/test-unsetenv.c (main): Silence warning about string
26164         literal.
26165         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
26166
26167 2009-12-23  Bruno Haible  <bruno@clisp.org>
26168
26169         * tests/test-localename.c (test_locale_name): New function, extracted
26170         from main. Also test mixed situations.
26171         (test_locale_name_posix, test_locale_name_environ,
26172         test_locale_name_default): New functions.
26173         (main): Invoke them all.
26174         * modules/localename-tests (configure.ac): Test for newlocale.
26175
26176 2009-12-23  Bruno Haible  <bruno@clisp.org>
26177
26178         unistd: Ensure getcwd gets declared before being overridden.
26179         * lib/unistd.in.h: Conditionally include <io.h>.
26180
26181 2009-12-22  Bruno Haible  <bruno@clisp.org>
26182
26183         wchar: Diagnose broken combination of glibc and gcc versions and flags.
26184         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
26185         (gl_WCHAR_H): Invoke it.
26186         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
26187         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
26188         Reported by Karl Berry <karl@freefriends.org>.
26189
26190 2009-12-22  Eric Blake  <ebb9@byu.net>
26191
26192         math, unistd: avoid redundant includes
26193         * lib/math.in.h (isnan): No need to re-include <math.h>.
26194         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
26195
26196         getsubopt: work around cygwin bug
26197         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
26198         avoid conflicting with system getsubopt.
26199         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
26200         bug.
26201
26202         getopt: synchronize from glibc
26203         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
26204         parameter order.  Adjust all callers.
26205         (_getopt_internal_r, main): Adjust quoting in error messages.
26206         Drop considerations for outdated POSIX 1003.2 error message.
26207         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
26208         callers.
26209         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
26210
26211         test-getopt: test stderr behavior
26212         * modules/getopt-posix-tests (Depends-on): Add dup2.
26213         * tests/test-getopt.c (ASSERT): Avoid stderr.
26214         (main): Move stderr to a temporary file.
26215         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
26216         Instead, add parameter to inform caller if output occurred.
26217         (test_getopt): Adjust all existing tests to expect silence, and
26218         add new tests of leading ":".
26219         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
26220         glibc shortcomings with leading "-:" or "+:" in optstring.
26221         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
26222         Likewise.
26223         * doc/posix-functions/getopt.texi (getopt): Likewise.
26224
26225         test-getopt: enhance test
26226         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
26227         supports optind=0.
26228         * tests/test-getopt.c (OPTIND_MIN): Move...
26229         * tests/test-getopt.h (OPTIND_MIN): ...here.
26230         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
26231         Require that optind=0 works, since modern BSD supports it in
26232         addition to optreset, and since coreutils expects it.
26233         (test_getopt_long_only): New test.
26234         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
26235         glibc shortcomings with 'W;', and enforcement of optind=0.
26236         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
26237         Likewise.
26238
26239 2009-12-21  Bruno Haible  <bruno@clisp.org>
26240
26241         localename: Improvements for MacOS X and Cygwin.
26242         * lib/localename.h (gl_locale_name_environ): New declaration.
26243         * lib/localename.c (gl_locale_name_environ): New function, extracted from
26244         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
26245         (gl_locale_name_posix): Invoke it.
26246         (gl_locale_name_default): Add comments. Use Windows native API also on
26247         Cygwin.
26248
26249 2009-12-21  Bruno Haible  <bruno@clisp.org>
26250
26251         Update list of Win32 locale ids.
26252         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
26253         (LANG_SAMI): Renamed from LANG_SAAMI.
26254         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
26255         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
26256         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
26257         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
26258         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
26259         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
26260         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
26261         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
26262         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
26263         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
26264         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
26265         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
26266         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
26267         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
26268         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
26269         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
26270         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
26271         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
26272         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
26273         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
26274         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
26275         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
26276         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
26277         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
26278         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
26279         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
26280         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
26281         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
26282         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
26283         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
26284         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
26285         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
26286         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
26287         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
26288         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
26289         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
26290         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
26291         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
26292         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
26293         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
26294         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
26295         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
26296         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
26297         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
26298         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
26299         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
26300         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
26301         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
26302         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
26303         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
26304         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
26305         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
26306         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
26307         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
26308         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
26309         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
26310         Add more languages and countries for Sami, Sorbian. Add more countries
26311         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
26312         for Pashto. Change country for Syriac, Tswana.
26313
26314 2009-12-21  Eric Blake  <ebb9@byu.net>
26315
26316         test-utimens: avoid spurious failure
26317         * tests/test-chown.h (nap): Factor...
26318         * tests/nap.h: ...into new file.
26319         * tests/test-lchown.h (nap): Avoid duplication.
26320         * tests/test-utimens-common.h (nap): Use shared implementation,
26321         necessary on file systems with 1-second resolution.
26322         * modules/chown-tests (Files): Include new file.
26323         * modules/fdutimensat-tests (Files): Likewise.
26324         * modules/futimens-tests (Files): Likewise.
26325         * modules/lchown-tests (Files): Likewise.
26326         * modules/openat-tests (Files): Likewise.
26327         * modules/utimens-tests (Files): Likewise.
26328         * modules/utimensat-tests (Files): Likewise.
26329
26330 2009-12-19  Eric Blake  <ebb9@byu.net>
26331
26332         futimens, utimensat: work around Linux bug
26333         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
26334         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
26335         * lib/utimensat.c (rpl_utimensat): Work around it.
26336         * lib/futimens.c (rpl_futimens): Adjust comment.
26337
26338         utimens: work around Linux ctime bug
26339         * lib/utimens.c (detect_ctime_bug): New helper function.
26340         (update_timespec): Differentiate between workaround needed for
26341         this bug vs. what is needed for systems that lack utimensat.
26342         (fdutimens, lutimens): Work around bug.
26343
26344         utimens: check for ctime update
26345         * tests/test-utimens-common.h (check_ctime): Define.
26346         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
26347         * tests/test-futimens.h (test_futimens): Likewise.
26348         * tests/test-lutimens.h (test_lutimens): Likewise.
26349         * doc/posix-functions/futimens.texi (futimens): Document the bug.
26350         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
26351
26352 2009-12-19  Bruno Haible  <bruno@clisp.org>
26353
26354         dprintf-posix: Check against memory leak fixed on 2009-12-15.
26355         * tests/test-dprintf-posix2.sh: New file.
26356         * tests/test-dprintf-posix2.c: New file.
26357         * modules/dprintf-posix-tests (Files): Add them.
26358         (configure.ac): Check for getrlimit and setrlimit.
26359         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
26360
26361 2009-12-19  Bruno Haible  <bruno@clisp.org>
26362
26363         fprintf-posix: Check against memory leak fixed on 2009-12-15.
26364         * tests/test-fprintf-posix3.sh: New file.
26365         * tests/test-fprintf-posix3.c: New file.
26366         * modules/fprintf-posix-tests (Files): Add them.
26367         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
26368
26369 2009-12-19  Eric Blake  <ebb9@byu.net>
26370
26371         dirfd: fix prototype
26372         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
26373         * lib/dirfd.c (dirfd): Likewise.
26374
26375         canonicalize: reduce memory usage
26376         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
26377         allocation to size.
26378         Reported by Solar Designer <solar@openwall.com>.
26379
26380 2009-12-19  Bruno Haible  <bruno@clisp.org>
26381
26382         New module attribute 'Applicability'.
26383         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
26384         * gnulib-tool: New option --extract-applicability.
26385         (func_usage): Document it.
26386         (sed_extract_prog): Recognize it.
26387         (func_get_applicability): New function.
26388         (func_import): Generalize handling of 'link-warning' module.
26389         * modules/link-warning (Applicability): New section.
26390         * modules/arg-nonnull (Applicability): New section.
26391         Repoted by Simon Josefsson <simon@josefsson.org>.
26392
26393 2009-12-19  Bruno Haible  <bruno@clisp.org>
26394
26395         fflush: tweak
26396         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
26397         * lib/fseeko.c (rpl_fseeko): Likewise.
26398
26399 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
26400
26401         * lib/gl_list.h: Fix typo in comment.
26402
26403 2009-12-16  Eric Blake  <ebb9@byu.net>
26404
26405         fcntl: use to simplify other modules
26406         * modules/cloexec (Depends-on): Add fcntl.
26407         * modules/fchdir (Depends-on): Likewise.
26408         * modules/fd-safer-flag (Depends-on): Likewise.
26409         * modules/unistd-safer (Depends-on): Likewise.
26410         * modules/dup3 (configure.ac): Set module indicator.
26411         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
26412         missing.
26413         * lib/fchdir.c (_gl_register_dup): Fix comment.
26414         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
26415         * lib/dup-safer.c (dup_safer): Likewise.
26416         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
26417         * lib/dup3.c (dup3): Likewise.
26418         * tests/test-fchdir.c (main): Enhance test.
26419         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
26420
26421         fcntl: port portions of fcntl to mingw
26422         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
26423         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
26424         replacement for mingw.
26425         * modules/fcntl (Description): Update.
26426         (Depends-on): Add dup2.
26427         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
26428         * modules/fcntl-h (Makefile.am): Substitute it.
26429         * lib/fcntl.in.h (fcntl): Update declaration.
26430         (F_DUPFD, F_GETFD): New macros, when needed.
26431         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
26432         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
26433         * tests/test-fcntl.c (check_flags, main): Enhance test for items
26434         we now guarantee.
26435
26436         fcntl: work around cygwin bug in F_DUPFD
26437         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
26438         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
26439         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
26440         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
26441         * doc/posix-functions/fcntl.texi (fcntl): Document it.
26442
26443         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
26444         * modules/fcntl (Files): List new files.
26445         (configure.ac): Run a test.
26446         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
26447         * lib/fcntl.c (rpl_fcntl): Likewise.
26448         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
26449         (gl_FCNTL_H): Always replace fcntl.h.
26450         * modules/fcntl-h (Makefile.am): Substitute witnesses.
26451         * lib/fcntl.in.h (fcntl): Declare replacement.
26452         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
26453         needed, plus a witness.
26454         * doc/posix-functions/fcntl.texi (fcntl): Document this.
26455         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
26456         * tests/test-fcntl.c: New file.
26457         * modules/fcntl-tests: Likewise.
26458
26459         binary-io: avoid potential compilation warning
26460         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
26461         directives.
26462
26463         fflush: avoid compilation error on NetBSD
26464         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
26465         between off_t and fpos_t, since the latter is sometimes a struct.
26466         * lib/fseeko.c (rpl_fseeko): Likewise.
26467         Reported by Alexander Nasonov <alnsn@yandex.ru>.
26468
26469 2009-12-15  Eric Blake  <ebb9@byu.net>
26470
26471         fcntl-h, stdio, sys_ioctl: fix declarations
26472         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
26473         function must not take arguments.
26474         * lib/sys_ioctl.in.h (ioctl): Likewise.
26475         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
26476         (open): Add a link warning.
26477
26478 2009-12-15  Jim Meyering  <meyering@redhat.com>
26479
26480         areadlink, areadlink-with-size: relax license to LGPLv2+
26481         * modules/areadlink (License): Relax to LGPLv2+.
26482         * modules/areadlink-with-size (License): Likewise.
26483
26484 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
26485             Bruno Haible  <bruno@clisp.org>
26486
26487         *printf: Fix memory leak.
26488         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
26489         * lib/vfprintf.c (vfprintf): Likewise.
26490         * lib/dprintf.c (dprintf): Likewise.
26491         * lib/vdprintf.c (vdprintf): Likewise.
26492
26493 2009-12-14  Eric Blake  <ebb9@byu.net>
26494
26495         accept4: adjust module dependencies
26496         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
26497
26498         utimens: one more try at avoiding compiler warning
26499         * lib/utimens.c (lutimens): Lower scope of result.
26500
26501 2009-12-13  Bruno Haible  <bruno@clisp.org>
26502
26503         Move the malloc checking from module 'list' to new module 'xlist'.
26504         * modules/xlist: New file.
26505         * lib/gl_xlist.h: New file.
26506         * lib/gl_xlist.c: New file.
26507         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
26508         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
26509         gl_list_add_last, gl_list_add_before, gl_list_add_after,
26510         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
26511         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
26512         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
26513         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
26514         gl_sortedlist_nx_add): New declarations.
26515         (struct gl_list_implementation): Rename and change methods accordingly.
26516         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
26517         (gl_list_nx_create): Renamed from gl_list_create.
26518         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
26519         (gl_list_nx_set_at): Renamed from gl_list_set_at.
26520         (gl_list_nx_add_first): Renamed from gl_list_add_first.
26521         (gl_list_nx_add_last): Renamed from gl_list_add_last.
26522         (gl_list_nx_add_before): Renamed from gl_list_add_before.
26523         (gl_list_nx_add_after): Renamed from gl_list_add_after.
26524         (gl_list_nx_add_at): Renamed from gl_list_add_at.
26525         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
26526         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
26527         gl_list_create_empty.
26528         (gl_list_nx_create): Renamed from gl_list_create.
26529         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
26530         (gl_list_nx_set_at): Renamed from gl_list_set_at.
26531         (gl_list_nx_add_first): Renamed from gl_list_add_first.
26532         (gl_list_nx_add_last): Renamed from gl_list_add_last.
26533         (gl_list_nx_add_before): Renamed from gl_list_add_before.
26534         (gl_list_nx_add_after): Renamed from gl_list_add_after.
26535         (gl_list_nx_add_at): Renamed from gl_list_add_at.
26536         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
26537         * lib/gl_array_list.c: Don't include xalloc.h.
26538         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
26539         NULL upon out-of-memory.
26540         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
26541         out-of-memory.
26542         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
26543         Change return type to 'int'.
26544         (gl_array_nx_set_at): Renamed from gl_array_set_at.
26545         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
26546         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
26547         upon out-of-memory.
26548         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
26549         upon out-of-memory.
26550         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
26551         upon out-of-memory.
26552         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
26553         upon out-of-memory.
26554         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
26555         out-of-memory.
26556         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
26557         Update.
26558         (gl_array_list_implementation): Update.
26559         * lib/gl_carray_list.c: Don't include xalloc.h.
26560         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
26561         Return NULL upon out-of-memory.
26562         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
26563         out-of-memory.
26564         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
26565         Change return type to 'int'.
26566         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
26567         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
26568         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
26569         upon out-of-memory.
26570         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
26571         upon out-of-memory.
26572         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
26573         out-of-memory.
26574         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
26575         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
26576         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
26577         Update.
26578         (gl_carray_list_implementation): Update.
26579         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
26580         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
26581         gl_linked_create_empty. Return NULL upon out-of-memory.
26582         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
26583         out-of-memory.
26584         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
26585         Change return type to 'int'. Return -1 upon out-of-memory.
26586         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
26587         out-of-memory.
26588         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
26589         upon out-of-memory.
26590         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
26591         upon out-of-memory.
26592         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
26593         NULL upon out-of-memory.
26594         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
26595         upon out-of-memory.
26596         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
26597         out-of-memory.
26598         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
26599         Update.
26600         * lib/gl_linked_list.c: Don't include xalloc.h.
26601         (gl_linked_list_implementation): Update.
26602         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
26603         (add_to_bucket): Change return type to 'int'.
26604         (gl_linkedhash_list_implementation): Update.
26605         * lib/gl_anytree_list1.h (free_subtree): New function.
26606         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
26607         gl_tree_create_empty. Return NULL upon out-of-memory.
26608         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
26609         Change return type to 'int'. Return -1 upon out-of-memory.
26610         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
26611         out-of-memory.
26612         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
26613         (gl_tree_remove_node): New function, moved here from
26614         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
26615         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
26616         Update.
26617         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
26618         malloc, not xmalloc. Return NULL upon out-of-memory.
26619         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
26620         out-of-memory.
26621         (gl_tree_remove_node_from_tree): New function, extracted from
26622         gl_tree_remove_node.
26623         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
26624         upon out-of-memory.
26625         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
26626         out-of-memory.
26627         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
26628         upon out-of-memory.
26629         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
26630         upon out-of-memory.
26631         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
26632         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
26633         not xmalloc. Return NULL upon out-of-memory.
26634         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
26635         out-of-memory.
26636         (gl_tree_remove_node_from_tree): New function, extracted from
26637         gl_tree_remove_node.
26638         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
26639         upon out-of-memory.
26640         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
26641         out-of-memory.
26642         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
26643         upon out-of-memory.
26644         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
26645         upon out-of-memory.
26646         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
26647         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
26648         gl_anytree_list1.h before gl_anyavltree_list2.h.
26649         (gl_avltree_list_implementation): Update.
26650         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
26651         gl_anytree_list1.h before gl_anyavltree_list2.h.
26652         (gl_rbtree_list_implementation): Update.
26653         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
26654         Change return type to 'int'. Return -1 upon out-of-memory. Use
26655         __builtin_expect.
26656         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
26657         (gl_avltreehash_list_implementation): Update.
26658         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
26659         (gl_rbtreehash_list_implementation): Update.
26660         * modules/array-list (Depends-on): Remove xalloc.
26661         * modules/carray-list (Depends-on): Likewise.
26662         * modules/linked-list (Depends-on): Likewise.
26663         * modules/linkedhash-list (Depends-on): Likewise.
26664         * modules/avltree-list (Depends-on): Likewise.
26665         * modules/rbtree-list (Depends-on): Likewise.
26666         * modules/avltreehash-list (Depends-on): Likewise.
26667         * modules/rbtreehash-list (Depends-on): Likewise.
26668
26669         * modules/xsublist: New file.
26670         * lib/gl_xsublist.h: New file.
26671         * lib/gl_xsublist.c: New file.
26672         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
26673         (gl_sublist_nx_create): New declaration.
26674         * lib/gl_sublist.c: Don't include xalloc.h.
26675         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
26676         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
26677         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
26678         Change return type to 'int'. Return -1 upon out-of-memory.
26679         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
26680         upon out-of-memory.
26681         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
26682         NULL upon out-of-memory.
26683         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
26684         upon out-of-memory.
26685         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
26686         NULL upon out-of-memory.
26687         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
26688         NULL upon out-of-memory.
26689         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
26690         upon out-of-memory.
26691         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
26692         (gl_sublist_list_implementation): Update.
26693         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
26694         upon out-of-memory.
26695         * modules/sublist (Depends-on): Remove xalloc.
26696
26697         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
26698         * tests/test-carray_list.c: Likewise.
26699         * tests/test-linked_list.c: Likewise.
26700         * tests/test-linkedhash_list.c: Likewise.
26701         * tests/test-avltree_list.c: Likewise.
26702         * tests/test-rbtree_list.c: Likewise.
26703         * tests/test-avltreehash_list.c: Likewise.
26704         * tests/test-rbtreehash_list.c: Likewise.
26705         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
26706         * modules/carray-list-tests (Makefile.am): Likewise.
26707         * modules/linked-list-tests (Makefile.am): Likewise.
26708         * modules/linkedhash-list-tests (Makefile.am): Likewise.
26709         * modules/avltree-list-tests (Makefile.am): Likewise.
26710         * modules/rbtree-list-tests (Makefile.am): Likewise.
26711         * modules/avltreehash-list-tests (Makefile.am): Likewise.
26712         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
26713
26714         * NEWS: Mention the changes.
26715
26716         * lib/clean-temp.c: Include gl_xlist.h.
26717         * modules/clean-temp (Depends-on): Add xlist.
26718
26719         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
26720         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
26721
26722         * tests/test-array_oset.c: Include gl_xlist.h.
26723         * modules/array-oset-tests (Depends-on): Add xlist.
26724
26725         Reported by José E. Marchesi <jemarch@gnu.org>.
26726
26727 2009-12-13  Bruno Haible  <bruno@clisp.org>
26728
26729         Move the malloc checking from module 'oset' to new module 'xoset'.
26730         * modules/xoset: New file.
26731         * lib/gl_xoset.h: New file.
26732         * lib/gl_xoset.c: New file.
26733         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
26734         declarations.
26735         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
26736         (struct gl_oset_implementation): Rename and change methods accordingly.
26737         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
26738         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
26739         'int'. Mark as __warn_unused_result__.
26740         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
26741         gl_oset_create_empty.
26742         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
26743         'int'.
26744         * lib/gl_array_oset.c: Don't include xalloc.h.
26745         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
26746         malloc, not xmalloc.
26747         (grow): Change return type to 'int'. Don't call xalloc_die.
26748         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
26749         to 'int'.
26750         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
26751         'int'.
26752         (gl_array_oset_implementation): Update.
26753         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
26754         gl_tree_create_empty.
26755         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
26756         'int'.
26757         * lib/gl_avltree_oset.c: Don't include xalloc.h.
26758         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
26759         xmalloc.
26760         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
26761         not xmalloc.
26762         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
26763         xmalloc.
26764         (gl_avltree_oset_implementation): Update.
26765         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
26766         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
26767         xmalloc.
26768         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
26769         not xmalloc.
26770         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
26771         xmalloc.
26772         (gl_rbtree_oset_implementation): Update.
26773         * modules/array-oset (Depends-on): Remove xalloc.
26774         * modules/avltree-oset (Depends-on): Likewise.
26775         * modules/rbtree-oset (Depends-on): Likewise.
26776         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
26777         * tests/test-avltree_oset.c: Likewise.
26778         * tests/test-rbtree_oset.c: Likewise.
26779         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
26780         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
26781         * modules/rbtree-oset-tests (Makefile.am): Likewise.
26782         * NEWS: Mention the change.
26783
26784 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
26785
26786         maint.mk: allow a project to override release-prep commands
26787         * top/maint.mk (alpha, beta, stable): Move release-preparatory
26788         commands into a new rule.
26789         (release-prep): New rule.
26790         (release-prep-hook): New overridable variable.
26791
26792 2009-12-13  Bruno Haible  <bruno@clisp.org>
26793
26794         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
26795
26796 2009-12-13  Jim Meyering  <meyering@redhat.com>
26797
26798         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
26799         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
26800
26801 2009-12-12  Bruno Haible  <bruno@clisp.org>
26802
26803         duplocale: Tweak.
26804         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
26805
26806 2009-12-12  Karl Berry  <karl@gnu.org>
26807
26808         * config/srclist.txt (strtoll.c): tab changes, no more sync.
26809
26810 2009-12-12  Bruno Haible  <bruno@clisp.org>
26811
26812         * m4/po.m4: Undo incorrect untabification.
26813
26814 2009-12-12  Bruno Haible  <bruno@clisp.org>
26815
26816         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
26817         * modules/c-strtod (Depends-on): Add locale.
26818         * modules/c-strtold (Depends-on): Likewise.
26819
26820 2009-12-12  Bruno Haible  <bruno@clisp.org>
26821
26822         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
26823
26824 2009-12-11  Eric Blake  <ebb9@byu.net>
26825
26826         setenv: relax requirement in light of POSIX ruling
26827         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
26828         not NULL.
26829         * tests/test-setenv.c (main): Relax test.
26830         * tests/test-unsetenv.c (main): Likewise.
26831         * doc/posix-functions/setenv.texi (setenv): Document this.
26832         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
26833
26834 2009-12-11  Bruno Haible  <bruno@clisp.org>
26835
26836         New module 'fd-safer-flag'.
26837         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
26838         * lib/dup-safer.c (dup_safer_flag): Remove function.
26839         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
26840         * lib/fd-safer.c (fd_safer_flag): Remove function.
26841         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
26842         * modules/cloexec (configure.ac): Drop indicator macro.
26843         * modules/fd-safer-flag: New file.
26844         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
26845         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
26846         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
26847
26848 2009-12-11  Bruno Haible  <bruno@clisp.org>
26849
26850         Tests for module 'nl_langinfo'.
26851         * modules/nl_langinfo-tests: New file.
26852         * tests/test-nl_langinfo.sh: New file.
26853         * tests/test-nl_langinfo.c: New file.
26854
26855         New module 'nl_langinfo'.
26856         * lib/nl_langinfo.c: New file.
26857         * m4/nl_langinfo.m4: New file.
26858         * modules/nl_langinfo: New file.
26859         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
26860
26861 2009-12-11  Bruno Haible  <bruno@clisp.org>
26862
26863         Tests for module 'langinfo'.
26864         * modules/langinfo-tests: New file.
26865         * tests/test-langinfo.c: New file.
26866
26867         New module 'langinfo'.
26868         * lib/langinfo.in.h: New file.
26869         * m4/langinfo_h.m4: New file.
26870         * modules/langinfo: New file.
26871         * doc/posix-headers/langinfo.texi: Mention the new module.
26872
26873 2009-12-11  Bruno Haible  <bruno@clisp.org>
26874
26875         * lib/config.charset: Untabify.
26876
26877 2009-12-11  Bruno Haible  <bruno@clisp.org>
26878
26879         * modules/unistd-safer (configure.ac): Drop indicator macro.
26880
26881 2009-12-11  Bruno Haible  <bruno@clisp.org>
26882
26883         Move pipe2-safer code to its own file.
26884         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
26885         * lib/pipe-safer.c (pipe2_safer): Remove function.
26886         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
26887         (Makefile.am): Add it to lib_SOURCES.
26888
26889 2009-12-10  Bruno Haible  <bruno@clisp.org>
26890
26891         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
26892
26893 2009-12-10  Bruno Haible  <bruno@clisp.org>
26894
26895         Declare which arguments expect non-NULL values, for GCC and clang.
26896         * build-aux/arg-nonnull.h: New file.
26897         * modules/arg-nonnull: New file.
26898         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
26899         (inet_ntop, inet_pton): Use it.
26900         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
26901         (closedir, dirfd, opendir, scandir, alphasort): Use it.
26902         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
26903         (open, openat): Use it.
26904         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
26905         (fnmatch): Use it.
26906         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
26907         (getopt, getopt_long, getopt_long_only): Use it.
26908         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
26909         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
26910         Use it.
26911         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
26912         (iconv_open): Use it.
26913         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
26914         (strtoimax, strtoumax): Use it.
26915         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
26916         (duplocale): Use it.
26917         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
26918         (frexp, frexpl): Use it.
26919         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
26920         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
26921         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
26922         (tsearch, tfind, tdelete, twalk): Use it.
26923         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
26924         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
26925         sigpending): Use it.
26926         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
26927         (posix_spawn, posix_spawnp, posix_spawnattr_init,
26928         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
26929         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
26930         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
26931         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
26932         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
26933         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
26934         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
26935         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
26936         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
26937         Use it.
26938         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
26939         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
26940         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
26941         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
26942         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
26943         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
26944         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
26945         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
26946         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
26947         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
26948         strtoull, unsetenv): Use it.
26949         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
26950         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
26951         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
26952         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
26953         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
26954         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
26955         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
26956         (strcasecmp, strncasecmp): Use it.
26957         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
26958         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
26959         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
26960         rpl_setsockopt): Use it.
26961         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
26962         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
26963         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
26964         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
26965         (gettimeofday): Use it.
26966         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
26967         (times): Use it.
26968         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
26969         (uname): Use it.
26970         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
26971         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
26972         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
26973         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
26974         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
26975         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
26976         unlinkat, write): Use it.
26977         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
26978         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
26979         * lib/argv-iter.h: Include arg-nonnull.h.
26980         (_ATTRIBUTE_NONNULL_): Remove macro.
26981         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
26982         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
26983         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
26984         optimization.
26985         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
26986         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
26987         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
26988         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
26989         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
26990         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
26991         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
26992         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
26993         * modules/arpa_inet (Depends-on): Add arg-nonnull.
26994         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
26995         * modules/dirent (Depends-on): Add arg-nonnull.
26996         (Makefile.am): Insert arg-nonnull.h into dirent.h.
26997         * modules/fcntl-h (Depends-on): Add arg-nonnull.
26998         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
26999         * modules/fnmatch (Depends-on): Add arg-nonnull.
27000         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
27001         * modules/getopt-posix (Depends-on): Add arg-nonnull.
27002         (Makefile.am): Insert arg-nonnull.h into getopt.h.
27003         * modules/glob (Depends-on): Add arg-nonnull.
27004         (Makefile.am): Insert arg-nonnull.h into glob.h.
27005         * modules/iconv_open (Depends-on): Add arg-nonnull.
27006         (Makefile.am): Insert arg-nonnull.h into iconv.h.
27007         * modules/inttypes (Depends-on): Add arg-nonnull.
27008         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
27009         * modules/locale (Depends-on): Add arg-nonnull.
27010         (Makefile.am): Insert arg-nonnull.h into locale.h.
27011         * modules/math (Depends-on): Add arg-nonnull.
27012         (Makefile.am): Insert arg-nonnull.h into math.h.
27013         * modules/netdb (Depends-on): Add arg-nonnull.
27014         (Makefile.am): Insert arg-nonnull.h into netdb.h.
27015         * modules/search (Depends-on): Add arg-nonnull.
27016         (Makefile.am): Insert arg-nonnull.h into search.h.
27017         * modules/signal (Depends-on): Add arg-nonnull.
27018         (Makefile.am): Insert arg-nonnull.h into signal.h.
27019         * modules/spawn (Depends-on): Add arg-nonnull.
27020         (Makefile.am): Insert arg-nonnull.h into spawn.h.
27021         * modules/stdio (Depends-on): Add arg-nonnull.
27022         (Makefile.am): Insert arg-nonnull.h into stdio.h.
27023         * modules/stdlib (Depends-on): Add arg-nonnull.
27024         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
27025         * modules/string (Depends-on): Add arg-nonnull.
27026         (Makefile.am): Insert arg-nonnull.h into string.h.
27027         * modules/strings (Depends-on): Add arg-nonnull.
27028         (Makefile.am): Insert arg-nonnull.h into strings.h.
27029         * modules/sys_socket (Depends-on): Add arg-nonnull.
27030         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
27031         * modules/sys_stat (Depends-on): Add arg-nonnull.
27032         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
27033         * modules/sys_time (Depends-on): Add arg-nonnull.
27034         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
27035         * modules/sys_times (Depends-on): Add arg-nonnull.
27036         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
27037         * modules/sys_utsname (Depends-on): Add arg-nonnull.
27038         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
27039         * modules/time (Depends-on): Add arg-nonnull.
27040         (Makefile.am): Insert arg-nonnull.h into time.h.
27041         * modules/unistd (Depends-on): Add arg-nonnull.
27042         (Makefile.am): Insert arg-nonnull.h into unistd.h.
27043         * modules/wchar (Depends-on): Add arg-nonnull.
27044         (Makefile.am): Insert arg-nonnull.h into wchar.h.
27045         * modules/argv-iter (Depends-on): Add arg-nonnull.
27046         * tests/test-canonicalize.c (null_ptr): New function.
27047         (main): Use it.
27048         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
27049         (main): Use it.
27050         * tests/test-memmem.c (null_ptr): New function.
27051         (main): Use it.
27052         Reported by Jim Meyering.
27053
27054 2009-12-10  Bruno Haible  <bruno@clisp.org>
27055
27056         Use spaces for indentation, not tabs.
27057         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
27058         * m4/*.m4: Untabify.
27059         * build-aux/*.h: Untabify.
27060         * tests/**/*.[hc]: Untabify.
27061         * README: New section "Indent with spaces, not TABs", based on
27062         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
27063         * NEWS: Mention the change.
27064
27065 2009-12-10  Bruno Haible  <bruno@clisp.org>
27066
27067         pty test: Fix link error.
27068         * modules/pty-tests (Makefile.am): Add the default LDADD value to
27069         test_pty_LDADD.
27070
27071 2009-12-07  Simon Josefsson  <simon@josefsson.org>
27072
27073         * modules/pty: New file.
27074         * modules/pty-tests: New file.
27075         * m4/pty.m4: New file.
27076         * tests/test-pty.c: New file.
27077         * doc/glibc-headers/pty.texi: Modified.
27078         * doc/glibc-functions/forkpty.texi: Modified.
27079         * doc/glibc-functions/openpty.texi: Modified.
27080
27081 2009-12-10  Bruno Haible  <bruno@clisp.org>
27082
27083         Avoid syntax error in C++ mode.
27084         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
27085
27086 2009-12-10  Bruno Haible  <bruno@clisp.org>
27087
27088         Use sed with option -e.
27089         * gnulib-tool (func_version, func_emit_copyright_notice,
27090         func_emit_initmacro_end, func_import, func_create_testdir): Pass
27091         option -e to sed.
27092         * modules/link-warning (Makefile.am): Likewise.
27093
27094 2009-12-10  Jim Meyering  <meyering@redhat.com>
27095
27096         mgetgroups: do not write bytes beyond end of malloc'd buffer
27097         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
27098         username, we call getgroups with a one-element-shorter buffer,
27099         but still told it the length was original, max_n_groups.
27100
27101 2009-12-09  Eric Blake  <ebb9@byu.net>
27102
27103         cloexec: relax license
27104         * modules/cloexec (Maintainer): Add myself.
27105         (License): Use LGPL, not GPL.
27106
27107         link-warning: optimize generation
27108         * modules/link-warning (Makefile.am): Reduce process usage.
27109
27110 2009-12-09  Bruno Haible  <bruno@clisp.org>
27111
27112         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
27113         workaround was added on 2009-11-17.
27114
27115 2009-12-09  Jim Meyering  <meyering@redhat.com>
27116             Bruno Haible  <bruno@clisp.org>
27117
27118         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
27119         * modules/link-warning (Makefile.am): Make the comment-removing sed
27120         command more robust in the face of bootstrap-prepended comment lines.
27121
27122 2009-12-09  Bruno Haible  <bruno@clisp.org>
27123
27124         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
27125         most one group.
27126
27127 2009-12-09  Simon Josefsson <simon@josefsson.org>
27128             Bruno Haible  <bruno@clisp.org>
27129
27130         * build-aux/link-warning.h: Add copyright notice.
27131         * modules/link-warning (Makefile.am): Generate link-warning.h from
27132         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
27133         * NEWS: Mention change in link-warning module.
27134         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
27135         * modules/dirent (Makefile.am): Add dependency to dirent.h.
27136         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
27137         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
27138         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
27139         * modules/math (Makefile.am): Add dependency to math.h.
27140         * modules/search (Makefile.am): Add dependency to search.h.
27141         * modules/signal (Makefile.am): Add dependency to signal.h.
27142         * modules/spawn (Makefile.am): Add dependency to spawn.h.
27143         * modules/stdio (Makefile.am): Add dependency to stdio.h.
27144         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
27145         * modules/string (Makefile.am): Add dependency to string.h.
27146         * modules/strings (Makefile.am): Add dependency to strings.h.
27147         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
27148         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
27149         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
27150         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
27151         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
27152         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
27153         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
27154         * modules/unistd (Makefile.am): Add dependency to unistd.h.
27155         * modules/wchar (Makefile.am): Add dependency to wchar.h.
27156
27157 2009-12-09  Bruno Haible  <bruno@clisp.org>
27158
27159         fchdir: Optimize away rpl_fstat when possible.
27160         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
27161         REPLACE_OPEN_DIRECTORY.
27162         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
27163
27164 2009-12-09  Bruno Haible  <bruno@clisp.org>
27165
27166         * lib/fchdir.c: Update comment.
27167
27168 2009-12-09  Bruno Haible  <bruno@clisp.org>
27169
27170         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
27171
27172 2009-12-08  Eric Blake  <ebb9@byu.net>
27173
27174         fchdir: avoid memory leak on re-registration.
27175         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
27176
27177 2009-12-08  Jim Meyering  <meyering@redhat.com>
27178
27179         init.sh: avoid Solaris 10 /bin/sh portability problem
27180         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
27181         sourced script:
27182           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
27183           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
27184           bar
27185         tests/init.sh relied on that, accepting a --set-path=DIR argument,
27186         and two tests used that idiom.
27187         * tests/init.sh: Update suggested usage comments.
27188         (path_prepend_): New function, to be used in place
27189         of the --src-path=DIR option.
27190         (setup_): Move PATH-prepending code into path_prepend_.
27191         * tests/test-pread.sh: Adapt to new usage.
27192         * tests/test-xalloc-die.sh: Likewise.
27193
27194 2009-12-08  Simon Josefsson  <simon@josefsson.org>
27195
27196         * doc/gnulib.texi (Glibc pty.h): Add.
27197         * doc/glibc-functions/forkpty.texi: Add.
27198         * doc/glibc-functions/openpty.texi: Add.
27199         Suggested by Bruno Haible.
27200
27201 2009-12-08  Eric Blake  <ebb9@byu.net>
27202
27203         fchdir: fix logic bugs
27204         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
27205         * tests/test-fchdir.c (main): Enhance test.
27206         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
27207         is in use.
27208
27209         dup2: fix logic bugs
27210         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
27211         REPLACE_DUP2 to decide when rpl_dup2 is needed.
27212         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
27213         exists.
27214         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
27215
27216 2009-12-07  Eric Blake  <ebb9@byu.net>
27217
27218         unlink: fix m4 detection
27219         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
27220
27221         unistd-safer: add unit test
27222         * modules/unistd-safer-tests: New file.
27223         * tests/test-dup-safer.c: Likewise.
27224         * tests/test-cloexec.c (setmode): Avoid compiler warning.
27225         * tests/test-dup2.c (setmode): Likewise.
27226         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
27227
27228         cloexec: preserve text vs. binary across dup_cloexec
27229         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
27230         mode.
27231         * modules/dup2-tests (Depends-on): Add binary-io.
27232         * modules/cloexec-tests (Depends-on): Likewise.
27233         * tests/test-dup2.c (setmode, is_mode): New helpers.
27234         (main): Add tests that translation mode is preserved.
27235         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
27236         Reported by Bruno Haible.
27237
27238         mgetgroups: reduce duplicate listings
27239         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
27240         resulting array.
27241         * tests/test-chown.h (test_chown): Simplify client.
27242         * tests/test-lchown.h (test_lchown): Likewise.
27243
27244 2009-12-06  Bruno Haible  <bruno@clisp.org>
27245
27246         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
27247         value.
27248
27249 2009-12-06  Bruno Haible  <bruno@clisp.org>
27250
27251         * lib/progname.c: Include stdio.h, stdlib.h.
27252         (set_program_name): Reject a NULL argument.
27253
27254 2009-12-05  Eric Blake  <ebb9@byu.net>
27255
27256         pipe2-safer: new module
27257         * modules/pipe2-safer: New file.
27258         * lib/unistd-safer.h (pipe2_safer): New prototype.
27259         * lib/unistd--.h (pipe2): New wrapper.
27260         * lib/pipe-safer.c (pipe2_safer): New function.
27261         * modules/pipe (Depends-on): Add pipe2-safer.
27262         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
27263
27264         stdlib-safer: preserve cloexec flag for mkostemp[s]
27265         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
27266         fd_safer_flag.
27267
27268         unistd-safer: allow preservation of cloexec status via flag
27269         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
27270         prototypes.
27271         * lib/dup-safer.c (dup_safer_flag): New function.
27272         * lib/fd-safer.c (fd_safer_flag): Likewise.
27273         * modules/cloexec (configure.ac): Set witness.
27274
27275         test-dup2: enhance test
27276         * modules/dup2-tests (Depends-on): Add cloexec.
27277         * tests/test-dup2.c (main): Enhance test.
27278
27279         cloexec: add dup_cloexec
27280         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
27281         header and comments.
27282         * lib/cloexec.c (set_cloexec_flag): Add comments.
27283         (dup_cloexec): New function, with mingw implementation borrowed
27284         from...
27285         * lib/w32spawn.h (dup_noinherit): ...here.
27286         * modules/execute (Depends-on): Add cloexec.
27287         * modules/pipe (Depends-on): Likewise.
27288         * modules/cloexec (Depends-on): Add dup2.
27289         * modules/cloexec-tests (Files): New file.
27290         * tests/test-cloexec.c: Likewise.
27291
27292         test-xalloc-die: fix test for mingw
27293         * modules/xalloc-die-tests (Files): Add tests/init.sh.
27294         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
27295         directory and .exe suffix off argv[0] output.
27296
27297         test-fseeko: fix test for mingw
27298         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
27299         than undefining fseek, so test will pass on mingw.
27300
27301 2009-12-05  Bruno Haible  <bruno@clisp.org>
27302
27303         * lib/progname.h (set_program_name): Clarify specification.
27304         * lib/progname.c (set_program_name): Likewise.
27305         Reported by Jim Meyering.
27306
27307 2009-12-05  Jim Meyering  <meyering@redhat.com>
27308
27309         maint.mk: backslash-escape parens in default regexp
27310         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
27311         backslash-escape the literal parentheses.
27312
27313         maint.mk: news-date-check: use grep -E
27314         * top/maint.mk (today): Define a Make variable, not a...
27315         (news-date-check): ...shell variable.
27316         (news-date-regexp): Use the Make variable.
27317         Use grep's -E option.  Change the failing diagnostic to mention
27318         the variable, $(news-date-regexp).
27319
27320 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
27321
27322         maintainer-makefile: allow customization of NEWS entry format
27323         * top/maint.mk (news-date-regexp): New overridable variable.
27324         (news-date-check): Use it.
27325
27326 2009-12-04  Eric Blake  <ebb9@byu.net>
27327
27328         mgetgroups: add xgetgroups, and avoid ENOSYS failures
27329         * lib/mgetgroups.h (xgetgroups): New prototype.
27330         * lib/mgetgroups.c (xgetgroups): New wrapper.
27331         (mgetgroups): Handle ENOSYS.
27332         * modules/mgetgroups (Depends-on): Add realloc.
27333         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
27334
27335         mgetgroups: avoid argument promotion issues with -1
27336         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
27337         for invalid gid_t.
27338         * tests/test-chown.h (getegid, test_chown): Likewise.
27339         * tests/test-lchown.h (getegid, test_lchown): Likewise.
27340
27341 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
27342
27343         exclude: Fix header file problems.
27344         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
27345
27346 2009-12-01  Jim Meyering  <meyering@redhat.com>
27347
27348         fts: fts_open: do not let an empty string cause immediate failure
27349         This is required in support of GNU rm, for which the command
27350         "rm A '' B" must process and remove both A and B, in spite of
27351         the empty string argument.
27352         * lib/fts.c (fts_open): Do not let the presence of an empty string
27353         cause fts_open to fail immediately.  Most fts-using tools must be
27354         able to process all arguments, in order, and can be expected to
27355         diagnose such arguments themselves.
27356
27357 2009-11-30  Eric Blake  <ebb9@byu.net>
27358
27359         utimens: fix compilation error
27360         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
27361         Declare variable at right scope.
27362
27363 2009-11-29  Jim Meyering  <meyering@redhat.com>
27364
27365         bootstrap: handle perl-5.11's changed --version output
27366         * build-aux/bootstrap (get_version): Handle perl separately,
27367         since perl-5.11's --version output is different.
27368
27369 2009-11-28  Jim Meyering  <meyering@redhat.com>
27370
27371         userspec: depend on the inttostr module, too
27372         * modules/userspec (Depends-on): Add inttostr.
27373
27374         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
27375         * lib/userspec.c (parse_with_separator): Do not accept a user ID
27376         number of MAXUID when it evaluates to (uid_t) -1.
27377         Likewise for group ID.  Reported by Matt McCutchen in
27378         <http://savannah.gnu.org/bugs/?28113>
27379
27380         userspec: reformat to use spaces, not TABs
27381         * lib/userspec.c: Expand TABs to spaces.
27382         Add Emacs' "indent-tabs-mode: nil" hint.
27383
27384 2009-11-27  Eric Blake  <ebb9@byu.net>
27385
27386         getopt-gnu: flush out another BSD bug
27387         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
27388         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
27389         flush out BSD bug.
27390         * tests/test-getopt.h (test_getopt): End lists with NULL.
27391         * tests/test-getopt_long.h (test_getopt_long): Likewise.
27392         (test_getopt_long_posix): Enhance test.
27393         * modules/getopt-posix-tests (Depends-on): Add stdbool.
27394         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
27395         getopt-gnu.
27396         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
27397         Likewise.
27398
27399 2009-11-27  Simon Josefsson  <simon@josefsson.org>
27400
27401         * modules/idpriv-droptemp-tests (Notice): Fix text.
27402
27403 2009-11-27  Jim Meyering  <meyering@redhat.com>
27404
27405         test-xalloc-die: avoid spurious failure due to libtool argv difference
27406         In a libtool-enabled project, this test would fail due to a difference
27407         in the emitted program name, e.g.,
27408         -test-xalloc-die: memory exhausted
27409         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
27410         Use program to avoid that.
27411         * modules/xalloc-die-tests (Depends-on): Add progname.
27412         * tests/test-xalloc-die.c: Include progname.h".
27413         (program_name): Remove decl.
27414         (main): Call set_program_name.
27415         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
27416
27417 2009-11-26  Richard Jones  <rjones@redhat.com>
27418
27419         w32sock: leave win32 error in place.
27420         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
27421
27422 2009-11-26  Eric Blake  <ebb9@byu.net>
27423
27424         init.sh: suggest to use skip_ and fail_ functions in comments
27425         * tests/init.sh: Add a sentence.
27426
27427 2009-11-25  Bruno Haible  <bruno@clisp.org>
27428
27429         init.sh: add documentation in comments
27430         * tests/init.sh: Add some developer and user documentation.
27431
27432 2009-11-26  Jim Meyering  <meyering@redhat.com>
27433
27434         init.sh: accommodate even those who specify bogus srcdir manually
27435         * tests/init.sh: Normally, srcdir is guaranteed by automake and
27436         configure-time tests to be sanitized, so that there is no need to
27437         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
27438         (with no double quotes) suffices.  However, since tests may be
27439         invoked manually, and since you may explicitly set srcdir to the
27440         name of a directory containing spaces, do quote its uses here.
27441         * tests/test-pread.sh: Likewise.
27442         Suggested by Bruno Haible.
27443
27444         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
27445         * tests/test-pread.sh: Write no data into the pipe, because
27446         test-pread actually reads none.  This avoids a diagnostic,
27447         "bash: echo: write error: Broken pipe", that arises in the unusual
27448         event something is ignoring SIGPIPE, and might be interpreted
27449         as some sort of failure.  Reported by Bruno Haible.
27450
27451 2009-11-25  Jim Meyering  <meyering@redhat.com>
27452
27453         test-pread: cover failure with ESPIPE and EINVAL
27454         * tests/test-pread.c (main): Test for failure, too.
27455         * tests/test-pread.sh: Invoke with stdin on a pipe.
27456         Suggested by Eric Blake.
27457
27458         pread: improvement and fix
27459         * modules/pread (Depends-on): Depend on lseek, for portability to
27460         e.g., mingw.  Suggested by Eric Blake.
27461         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
27462
27463         unistd.in.h: correct declaration of pread
27464         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
27465         Reported by Richard W.M. Jones.
27466
27467         test-pread.sh: distribute the test script
27468         * modules/pread-tests (Files): Include test-pread.sh.
27469
27470         test-pread.sh: clean up
27471         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
27472         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
27473         That is unnecessary, since it's always ".".
27474         Suggestion from Eric Blake.
27475
27476         test-pread.sh: make executable
27477         * tests/test-pread.sh: Set executable bit.
27478         Reported by Eric Blake.
27479
27480         correct typo in test-pread.sh
27481         * tests/test-pread.sh: Add #! line.
27482
27483         test pread
27484         * tests/test-pread.c: New file.
27485         * tests/test-pread.sh: Likewise.
27486         * modules/pread-tests: Likewise.
27487
27488         pread: new module
27489         * modules/pread: New file.
27490         * lib/unistd.in.h (pread): Define/declare.
27491         * lib/pread.c (pread): New file.
27492         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
27493         * modules/unistd (Makefile.am): Substitute witnesses.
27494         * doc/posix-functions/pread.texi (pread): Update.
27495         * MODULES.html.sh: Add pread.
27496
27497 2009-11-25  Jim Meyering  <meyering@redhat.com>
27498
27499         tests/init.sh: new file to be used via most *.sh tests
27500         * tests/init.sh: New file.
27501
27502 2009-11-25  Eric Blake  <ebb9@byu.net>
27503
27504         utimens: work around older Linux failure with symlinks
27505         * lib/utimens.c (lutimensat_works_really): New variable.
27506         (fdutimens, lutimens): Use it to manage kernels that support
27507         nanosecond times on files, but not on symlinks.
27508         Reported by OndÅ™ej Vašík.
27509
27510         utimes: fix configure grammar
27511         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
27512
27513 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
27514
27515         regex: Fix fastmap for multibyte character ranges.
27516         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
27517         characters when a multibyte character range is included.
27518
27519 2009-11-22  Andy Wingo  <wingo@pobox.com>
27520
27521         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
27522         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
27523
27524 2009-11-24  Bruno Haible  <bruno@clisp.org>
27525
27526         doc: Most *_l functions exist in MacOS X 10.5.
27527         * doc/posix-functions/duplocale.texi: Update platforms list.
27528         * doc/posix-functions/freelocale.texi: Likewise.
27529         * doc/posix-functions/newlocale.texi: Likewise.
27530         * doc/posix-functions/uselocale.texi: Likewise.
27531         * doc/posix-functions/isalnum_l.texi: Likewise.
27532         * doc/posix-functions/isalpha_l.texi: Likewise.
27533         * doc/posix-functions/isblank_l.texi: Likewise.
27534         * doc/posix-functions/iscntrl_l.texi: Likewise.
27535         * doc/posix-functions/isdigit_l.texi: Likewise.
27536         * doc/posix-functions/isgraph_l.texi: Likewise.
27537         * doc/posix-functions/islower_l.texi: Likewise.
27538         * doc/posix-functions/isprint_l.texi: Likewise.
27539         * doc/posix-functions/ispunct_l.texi: Likewise.
27540         * doc/posix-functions/isspace_l.texi: Likewise.
27541         * doc/posix-functions/isupper_l.texi: Likewise.
27542         * doc/posix-functions/iswalnum_l.texi: Likewise.
27543         * doc/posix-functions/iswalpha_l.texi: Likewise.
27544         * doc/posix-functions/iswblank_l.texi: Likewise.
27545         * doc/posix-functions/iswcntrl_l.texi: Likewise.
27546         * doc/posix-functions/iswctype_l.texi: Likewise.
27547         * doc/posix-functions/iswdigit_l.texi: Likewise.
27548         * doc/posix-functions/iswgraph_l.texi: Likewise.
27549         * doc/posix-functions/iswlower_l.texi: Likewise.
27550         * doc/posix-functions/iswprint_l.texi: Likewise.
27551         * doc/posix-functions/iswpunct_l.texi: Likewise.
27552         * doc/posix-functions/iswspace_l.texi: Likewise.
27553         * doc/posix-functions/iswupper_l.texi: Likewise.
27554         * doc/posix-functions/iswxdigit_l.texi: Likewise.
27555         * doc/posix-functions/isxdigit_l.texi: Likewise.
27556         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
27557         * doc/posix-functions/strcasecmp_l.texi: Likewise.
27558         * doc/posix-functions/strcoll_l.texi: Likewise.
27559         * doc/posix-functions/strfmon_l.texi: Likewise.
27560         * doc/posix-functions/strftime_l.texi: Likewise.
27561         * doc/posix-functions/strncasecmp_l.texi: Likewise.
27562         * doc/posix-functions/strxfrm_l.texi: Likewise.
27563         * doc/posix-functions/tolower_l.texi: Likewise.
27564         * doc/posix-functions/toupper_l.texi: Likewise.
27565         * doc/posix-functions/towctrans_l.texi: Likewise.
27566         * doc/posix-functions/towlower_l.texi: Likewise.
27567         * doc/posix-functions/towupper_l.texi: Likewise.
27568         * doc/posix-functions/wcscoll_l.texi: Likewise.
27569         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
27570         * doc/posix-functions/wctrans_l.texi: Likewise.
27571         * doc/posix-functions/wctype_l.texi: Likewise.
27572         * doc/glibc-functions/strptime_l.texi: Likewise.
27573         * doc/glibc-functions/strtod_l.texi: Likewise.
27574         * doc/glibc-functions/strtof_l.texi: Likewise.
27575         * doc/glibc-functions/strtol_l.texi: Likewise.
27576         * doc/glibc-functions/strtold_l.texi: Likewise.
27577         * doc/glibc-functions/strtoll_l.texi: Likewise.
27578         * doc/glibc-functions/strtoul_l.texi: Likewise.
27579         * doc/glibc-functions/strtoull_l.texi: Likewise.
27580         * doc/glibc-functions/wcsftime_l.texi: Likewise.
27581         * doc/glibc-functions/wcstod_l.texi: Likewise.
27582         * doc/glibc-functions/wcstof_l.texi: Likewise.
27583         * doc/glibc-functions/wcstol_l.texi: Likewise.
27584         * doc/glibc-functions/wcstold_l.texi: Likewise.
27585         * doc/glibc-functions/wcstoll_l.texi: Likewise.
27586         * doc/glibc-functions/wcstoul_l.texi: Likewise.
27587         * doc/glibc-functions/wcstoull_l.texi: Likewise.
27588
27589 2009-11-24  Bruno Haible  <bruno@clisp.org>
27590
27591         duplocale: Fix logic bug.
27592         * lib/duplocale.c: Don't include <langinfo.h>.
27593         (_NL_LOCALE_NAME): Remove macro.
27594         (rpl_duplocale): Use setlocale instead of nl_langinfo.
27595         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
27596
27597 2009-11-23  Jim Meyering  <meyering@redhat.com>
27598
27599         test-update-copyright: don't hard-code /usr/bin/perl
27600         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
27601         perl to print the current year.  Gilles Espinasse reported that
27602         the replaced use of perl was hard-coded as /usr/bin/perl.
27603
27604 2009-11-23  Bruno Haible  <bruno@clisp.org>
27605
27606         duplocale: Add support for glibc 2.3.x.
27607         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
27608
27609 2009-11-22  Bruno Haible  <bruno@clisp.org>
27610
27611         vasnprintf: Tiny optimization.
27612         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
27613         MacOS X.
27614
27615 2009-11-22  Bruno Haible  <bruno@clisp.org>
27616
27617         Tests for module 'duplocale'.
27618         * modules/duplocale-tests: New file.
27619         * tests/test-duplocale.c: New file.
27620
27621         New module 'duplocale'.
27622         * m4/duplocale.m4: New file.
27623         * lib/locale.in.h (duplocale): New declaration.
27624         * lib/duplocale.c: New file.
27625         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
27626         gl_LOCALE_H_DEFAULTS): New macros.
27627         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
27628         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
27629         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
27630         REPLACE_DUPLOCALE.
27631         * modules/duplocale: New file.
27632         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
27633
27634 2009-11-22  Bruno Haible  <bruno@clisp.org>
27635
27636         * modules/locale-tests (configure.ac): Test for newlocale function.
27637         * tests/test-locale.c: When the system has extended locale functions,
27638         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
27639
27640         locale: Make locale_t available when possible.
27641         * lib/locale.in.h: Include <xlocale.h> when it exists.
27642         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
27643         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
27644         * modules/locale (Depends-on): Add extensions.
27645         (Makefile.am): Also substitute HAVE_XLOCALE_H.
27646         * doc/posix-headers/locale.texi: Document the problem with locale_t.
27647
27648 2009-11-22  Bruno Haible  <bruno@clisp.org>
27649
27650         Add comments.
27651         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
27652         invocation.
27653         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
27654         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
27655         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
27656
27657 2009-11-22  Bruno Haible  <bruno@clisp.org>
27658
27659         error: account for the possibility of freopen (stdout).
27660         * lib/error.c: Include <unistd.h>.
27661         (flush_stdout): New function, extracted from error and error_at_line.
27662         Determine stdout's fd dynamically.
27663         (error, error_at_line): Invoke flush_stdout.
27664         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
27665         * modules/error (Depends-on): Add unistd.
27666
27667 2009-11-22  Bruno Haible  <bruno@clisp.org>
27668
27669         diffseq: Add comment.
27670         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
27671
27672 2009-11-22  Jim Meyering  <meyering@redhat.com>
27673
27674         c-stack: avoid defining an unused static function
27675         * lib/c-stack.c (find_stack_direction): Do not define this function
27676         when it will not be used.
27677
27678         diffseq: avoid spurious gcc warnings
27679         * lib/diffseq.h (IF_LINT2): Define.
27680         (compareseq): Use it to initialize two members of "part".
27681         This avoids two used-uninitialized warnings.
27682
27683 2009-11-21  Jim Meyering  <meyering@redhat.com>
27684
27685         c-stack: avoid "ignoring return value of `write'" warning
27686         * lib/c-stack.c: Include "ignore-value.h".
27687         (die): Explicitly ignore each write return value.
27688         * modules/c-stack (Depends-on): Add ignore-value.
27689
27690 2009-11-21  Bruno Haible  <bruno@clisp.org>
27691
27692         diffseq: reduce scope of variable 'best'.
27693         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
27694         variable, earlier used for two different purposes.
27695
27696 2009-11-21  Jim Meyering  <meyering@redhat.com>
27697
27698         diffseq: remove useless assignment to "best"
27699         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
27700         assignment.  At that point "best" is already guaranteed to be zero.
27701
27702 2009-11-20  Eric Blake  <ebb9@byu.net>
27703
27704         build: mention ftp redirector in release announcements
27705         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
27706         values that used to come from cfg.mk; mention FTP redirect URL.
27707         * build-aux/announce-gen: Mention the mirror list.
27708         Suggested by Karl Berry.
27709
27710         nanosleep: improve port to mingw
27711         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
27712         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
27713         LIB_NANOSLEEP, but only when needed.
27714         * modules/select (Link): Document LIBSOCKET.
27715         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
27716         enough.
27717
27718         nanosleep: work around cygwin bug
27719         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
27720         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
27721         bug.
27722         (getnow): Delete, not needed.
27723         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
27724         LIB_CLOCK_GETTIME.
27725         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
27726         clock-time, gettime.
27727         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
27728         bug.
27729         * modules/nanosleep-tests: New test.
27730         * tests/test-nanosleep.c: New file.
27731
27732         sleep: work around cygwin bug
27733         * lib/sleep.c (rpl_sleep): Work around the bug.
27734         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
27735         (gl_PREREQ_SLEEP): Delete unused macro.
27736         * modules/sleep (Depends-on): Add verify.
27737         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
27738         * modules/unistd (Makefile.am): Substitute witness.
27739         * lib/unistd.in.h (sleep): Update prototype.
27740         * doc/posix-functions/sleep.texi (sleep): Document the bug.
27741         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
27742         * modules/sleep-tests (Depends-on): Check for alarm.
27743
27744 2009-11-20  Jim Meyering  <meyering@redhat.com>
27745
27746         maint.mk: improve sc_prohibit_magic_number_exit
27747         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
27748         so it does not match uses like System.exit(1).
27749         Add comments showing how to correct all offenders.
27750
27751 2009-11-19  Eric Blake  <ebb9@byu.net>
27752
27753         xalloc-die-tests: add missing library
27754         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
27755
27756         test-xvasprintf: silence compiler warnings
27757         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
27758         empty string from gcc.
27759
27760 2009-11-19  Jim Meyering  <meyering@redhat.com>
27761
27762         xfreopen: new module, from coreutils
27763         * modules/xfreopen: New module.
27764         * lib/xfreopen.c: New file.
27765         * lib/xfreopen.h: New file.
27766         * MODULES.html.sh (File stream based Input/Output"): Add it.
27767
27768 2009-11-19  Eric Blake  <ebb9@byu.net>
27769
27770         manywarnings: depend on warnings
27771         * modules/manywarnings (Depends-on): Add warnings.
27772
27773         build: avoid compiler warnings
27774         * lib/select.c (rpl_select): Delete unused variable.
27775         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
27776
27777 2009-11-18  Eric Blake  <ebb9@byu.net>
27778
27779         tests: avoid false negative with --with-packager
27780         * tests/test-version-etc.sh: Discard packager information.
27781         * tests/test-argp-version-etc-1.sh: Likewise.
27782         Reported by Mike Frysinger.
27783
27784         utimens: fix regression on Solaris
27785         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
27786         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
27787         can only change fd timestamps via futimesat.  Instead, use an
27788         additional witness macro to avoid BSD bug.
27789         Reported by Jim Meyering.
27790
27791 2009-11-17  Eric Blake  <ebb9@byu.net>
27792
27793         usleep: use it to simplify tests
27794         * modules/stat-time-tests (Depends-on): Add usleep.
27795         (configure.ac): Drop usleep check.
27796         * modules/chown-tests (Depends-on, configure.ac): Likewise.
27797         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
27798         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
27799         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
27800         * modules/openat-tests (Depends-on, configure.ac): Likewise.
27801         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
27802         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
27803         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
27804         Likewise.
27805         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
27806         * tests/test-lchown.h (nap): Likewise.
27807         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
27808         * tests/test-stat-time.c (nap): Likewise.
27809         * tests/test-utimens-common.h (nap): Update comments.
27810
27811         usleep: new module
27812         * modules/usleep: New file.
27813         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
27814         * lib/usleep.c (usleep): Likewise.
27815         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
27816         * modules/unistd (Makefile.am): Substitute witnesses.
27817         * lib/unistd.in.h (usleep): Add declaration.
27818         * doc/pastposix-functions/usleep.texi (usleep): Document this.
27819         * MODULES.html.sh (Date and time): Likewise.
27820         * modules/usleep-tests (Depends-on): New test.
27821         * tests/test-usleep.c: New file.
27822
27823         chown: work around OpenBSD bug
27824         * lib/chown.c (rpl_chown): Work around the bug.
27825         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
27826         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
27827         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
27828         * modules/chown (Depends-on): Add stdbool.
27829         * modules/lchown (Depends-on): Likewise.
27830         * doc/posix-functions/chown.texi (chown): Document the bug.
27831         * doc/posix-functions/lchown.texi (lchown): Likewise.
27832         * tests/test-lchown.h (test_chown): Relax test.
27833
27834         mkstemp: avoid conflict with C++ keyword template
27835         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
27836         * lib/mkostemp.c (mkostemp): Likewise.
27837         * lib/mkostemps.c (mkostemps): Likewise.
27838         * lib/mkstemp.c (mkstemp): Likewise.
27839         * lib/mkstemps.c (mkstemps): Likewise.
27840
27841         xalloc-die-tests: optimize
27842         * tests/test-xalloc-die.sh: Reduce number of processes.
27843
27844 2009-11-17  Simon Josefsson  <simon@josefsson.org>
27845
27846         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
27847         patch from ludo@gnu.org (Ludovic Courtès).
27848
27849 2009-11-17  Jim Meyering  <meyering@redhat.com>
27850
27851         version-etc: use proper license string
27852         * modules/version-etc (License): Use LGPL, not LGPLv3+.
27853         * modules/version-etc-fsf: Likewise.
27854
27855 2009-11-17  Simon Josefsson  <simon@josefsson.org>
27856
27857         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
27858         printed to stdout.  Deal with EOL differences.
27859
27860 2009-11-17  Eric Blake  <ebb9@byu.net>
27861
27862         unsetenv: work around Solaris bug
27863         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
27864         * lib/unsetenv.c (rpl_unsetenv): Work around it.
27865         Reported by Jim Meyering.
27866
27867         vasnprintf: avoid compiler warnings
27868         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
27869         variables.
27870         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
27871
27872 2009-11-17  Simon Josefsson  <simon@josefsson.org>
27873
27874         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
27875         settings since xalloc-die is no longer the self test,
27876         xalloc-die.sh is.
27877
27878 2009-11-17  Jim Meyering  <meyering@redhat.com>
27879
27880         test-xalloc-die.sh: make the code agree with the commit log
27881         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
27882         at the end, just in case you happen to have a test-xalloc-die
27883         program in some other PATH directory.
27884
27885         test-xalloc-die.sh: fix a portability bug
27886         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
27887         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
27888         Otherwise, argv[0] (as often seen in diagnostics) would be too
27889         system-dependent, sometimes with, and sometimes without the leading "./".
27890
27891         version-etc-fsf: relax license to LGPLv3+
27892         * modules/version-etc-fsf (License): Relax license.
27893
27894 2009-11-16  Eric Blake  <ebb9@byu.net>
27895
27896         xalloc-die-tests: avoid printing null pointer
27897         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
27898         shell script.
27899         * tests/test-xalloc-die.c (program_name): Declare.
27900         * tests/test-xalloc-die.sh (tmpfiles): New file.
27901
27902         setenv, unsetenv: work around various bugs
27903         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
27904         (setenv) [HAVE_SETENV]: Work around bugs.
27905         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
27906         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
27907         for bugs.
27908         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
27909         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
27910         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
27911         * modules/stdlib (Makefile.am): Update substitutions.
27912         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
27913         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
27914         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
27915         * modules/setenv-tests: New test.
27916         * modules/unsetenv-tests: Likewise.
27917         * tests/test-setenv.c: New file.
27918         * tests/test-unsetenv.c: Likewise.
27919
27920 2009-11-16  Jim Meyering  <meyering@redhat.com>
27921
27922         version-etc: relax license to LGPLv3+
27923         * modules/version-etc (License): Relax license.
27924
27925         better AC_REQUIRE expanded-before-required-warning avoidance
27926         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
27927         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
27928         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
27929         which is no longer needed.
27930
27931 2009-11-16  Eric Blake  <ebb9@byu.net>
27932
27933         test-freading: clean up temporary file
27934         * tests/test-freading.c (main): Remove file on success, and use
27935         ASSERT more liberally.
27936         Reported by Jim Meyering.
27937
27938 2009-11-16  Jim Meyering  <meyering@redhat.com>
27939
27940         avoid new AC_REQUIRE expanded-before-required warnings
27941         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
27942         merely using it.
27943         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
27944         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
27945
27946 2009-11-15  Simon Josefsson  <simon@josefsson.org>
27947
27948         * tests/test-xalloc-die.c: New file.
27949         * modules/xalloc-die-tests: New file.
27950         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
27951         XFAIL_TESTS so it can be appended by modules.
27952
27953 2009-11-15  Simon Josefsson  <simon@josefsson.org>
27954
27955         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
27956         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
27957
27958 2009-11-14  Eric Blake  <ebb9@byu.net>
27959
27960         fnmatch: avoid compiler warning
27961         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
27962         to silence compiler warning about mismatch signedness in ?:.
27963         Reported by Robert Millan.
27964
27965         intprops: add double-inclusion guard
27966         * lib/intprops.h: Allow idempotent includes.
27967         Suggested by Bruce Korb.
27968
27969         openat: detect Solaris fchownat bug
27970         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
27971         penalizing glibc chownat when only lchownat is broken.
27972         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
27973         trailing slash bugs.
27974         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
27975         * modules/openat-tests (Files): Include more files.
27976         (Depends-on): Add mgetgroups, sleep, stat-time.
27977         (configure.ac): Add additional checks.
27978         (Makefile.am): Build new test.
27979         * tests/test-fchownat.c: New file.
27980
27981         lchown: detect Solaris and FreeBSD bug
27982         * lib/lchown.c (rpl_lchown): Work around bug.
27983         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
27984         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
27985         * modules/unistd (Makefile.am): Populate it.
27986         * lib/unistd.in.h (lchown): Update declaration.
27987         * doc/posix-functions/lchown.texi (lchown): Document the bug.
27988         * modules/lchown-tests: New file.
27989         * tests/test-lchown.h (test_lchown): Likewise.
27990         * tests/test-lchown.c (main): Likewise.
27991
27992         chown: detect Solaris and FreeBSD bug
27993         * lib/chown.c (rpl_chown): Work around bug.
27994         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
27995         (gl_PREREQ_CHOWN): Delete.
27996         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
27997         * modules/unistd (Makefile.am): Populate it.
27998         * lib/unistd.in.h (chown): Update declaration.
27999         * lib/lchown.c (chown): Update client.
28000         * modules/lchown (Depends-on): Add lstat.
28001         * doc/posix-functions/chown.texi (chown): Document the bug.
28002         * doc/posix-functions/getgroups.texi (getgroups): Document
28003         getgroups pitfall.
28004         * modules/chown-tests: New file.
28005         * tests/test-chown.h (test_chown): Likewise.
28006         * tests/test-chown.c (main): Likewise.
28007
28008 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
28009
28010         gnulib-tool: correctly detect absence of m4 directories
28011         * gnulib-tool: Avoid extra newline on data passed to wc -l.
28012
28013 2009-11-14  Jim Meyering  <meyering@redhat.com>
28014
28015         maint.mk: Prohibit inclusion of "xalloc.h" without use.
28016         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
28017
28018 2009-11-14  John W. Eaton  <jwe@gnu.org>
28019
28020         strftime.h: wrap funtion declaration in extern "C" block
28021         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
28022
28023 2009-11-13  Eric Blake  <ebb9@byu.net>
28024
28025         getgroups: avoid compiler warning
28026         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
28027
28028         getgroups: work around FreeBSD bug
28029         * lib/getgroups.c (rpl_getgroups): Work around the bug.
28030         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
28031         * doc/posix-functions/getgroups.texi (getgroups): Document it.
28032         * tests/test-getgroups.c (main): Fix buffer overrun.
28033
28034         getgroups: avoid compilation failure
28035         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
28036         * modules/getgroups (Depends-on): Add stdint.
28037
28038 2009-11-13  Jim Meyering  <meyering@redhat.com>
28039
28040         test-getgroups: avoid compilation failure
28041         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
28042
28043 2009-11-13  Eric Blake  <ebb9@byu.net>
28044
28045         mgetgroups: new module, taken from coreutils
28046         * modules/mgetgroups: New file.
28047         * lib/mgetgroups.h: Likewise.
28048         * lib/mgetgroups.c (mgetgroups): Likewise.
28049         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
28050         * MODULES.html.sh (Users and groups): Mention it.
28051
28052         getgroups: don't expose GETGROUPS_T to user
28053         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
28054         an element at a time if GETGROUPS_T is wrong size.
28055         * lib/getugroups.h (getugroups): Change signature.
28056         * lib/unistd.in.h (getgroups): Likewise.
28057         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
28058         signature needs fixing.
28059         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
28060         AC_TYPE_GETGROUPS.
28061         * modules/group-member (Depends-on): Add getgroups.
28062         * lib/group-member.c (group_info, get_group_info): Use gid_t.
28063         (group_member): Rely on getgroups replacement.
28064         * lib/getugroups.c (getugroups): Use gid_t.
28065         * tests/test-getgroups.c (main): Likewise.
28066         * NEWS: Mention the signature change.
28067         * doc/posix-functions/getgroups.texi (getgroups): Mention the
28068         problem with signature.
28069         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
28070         GETGROUPS_T is still useful for setgroups.
28071
28072         getgroups, getugroups: provide stubs for mingw
28073         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
28074         * lib/getugroups.c (getugroups): Likewise.
28075         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
28076         function.  Modernize replacement scheme.
28077         (gl_PREREQ_GETGROUPS): Delete.
28078         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
28079         * modules/getgroups (configure.ac): Declare witness.
28080         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
28081         * modules/unistd (Depends-on): Substitute witness.
28082         * lib/unistd.in.h (getgroups): Declare replacement.
28083
28084         getgroups: avoid calling exit
28085         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
28086         drop xalloc.
28087         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
28088         dependencies.
28089         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
28090         exiting, in the rare case of malloc failure.
28091
28092         getgroups: fix logic error
28093         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
28094         has more than 20 groups.
28095         * modules/getgroups-tests: New test.
28096         * tests/test-getgroups.c: New file.
28097
28098 2009-11-13  Simon Josefsson  <simon@josefsson.org>
28099
28100         * tests/test-base64.c: Improve.
28101
28102 2009-11-13  Simon Josefsson  <simon@josefsson.org>
28103
28104         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
28105         Blake <ebb9@byu.net>.
28106
28107 2009-11-13  Simon Josefsson  <simon@josefsson.org>
28108
28109         * tests/test-xvasprintf.c: Add %s%s related checks.
28110
28111 2009-11-12  Eric Blake  <ebb9@byu.net>
28112
28113         version-etc: match standards.texi style
28114         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
28115         and use <> only for URLs.
28116
28117 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
28118
28119         fts: do not fail on a submount during traversal
28120         * lib/fts.c (fts_build): Read the stat info again after opening
28121         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
28122         Original report at http://bugzilla.redhat.com/501848.
28123
28124 2009-11-12  Jim Meyering  <meyering@redhat.com>
28125
28126         bootstrap: sync from coreutils
28127         * build-aux/bootstrap (bootstrap_epilogue): New function.
28128         Use git_modules_config in one more place.  This make bootstrap's
28129         --gnulib-srcdir option more useful for testing.
28130
28131         bootstrap: generalize autoheader check
28132         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
28133         AC_CONFIG_HEADERS.
28134
28135 2009-11-11  Eric Blake  <ebb9@byu.net>
28136
28137         mkfifoat: use new modules for Solaris and BSD bugs
28138         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
28139         * lib/mkfifoat.c (mknodat): Split...
28140         * lib/mknodat.c (mknodat): ...into new file.
28141         * modules/mkfifoat (Files): Ship new file.
28142         (Depends-on): Add mkfifo, mknod.
28143         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
28144         (Depends-on): Add symlink.
28145         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
28146         redundant with test_mkfifo.h.
28147         (do_mkfifoat, do_mknodat): New helpers.
28148
28149         mknod: new module
28150         * modules/mknod: New file.
28151         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
28152         * lib/mknod.c (mknod): Likewise.
28153         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
28154         defaults.
28155         * modules/sys_stat (Makefile.am): Substitute them.
28156         * lib/sys_stat.in.h (mknod): Declare replacement.
28157         * MODULES.html.sh (Support for systems lacking POSIX:2008):
28158         Document it.
28159         * doc/posix-functions/mknod.texi (mknod): Likewise.
28160         * modules/mknod-tests: New test.
28161         * tests/test-mknod.c: Likewise.
28162
28163         mkfifo: new module
28164         * modules/mkfifo: New file.
28165         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
28166         * lib/mkfifo.c (mkfifo): Likewise.
28167         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
28168         defaults.
28169         * modules/sys_stat (Makefile.am): Substitute them.
28170         * lib/sys_stat.in.h (mkfifo): Declare replacement.
28171         * MODULES.html.sh (Support for systems lacking POSIX:2008):
28172         Document it.
28173         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
28174         * modules/mkfifo-tests: New test.
28175         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
28176         from test-mkfifoat.c.
28177         * tests/test-mkfifo.c: New file.
28178
28179         readlink: detect FreeBSD bug
28180         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
28181         slash on symlink.
28182         * doc/posix-functions/readlink.texi (readlink): Document the bug.
28183         * tests/test-readlink.h (test_readlink): Enhance test.
28184
28185         symlink: detect FreeBSD bug
28186         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
28187         slash on symlink.
28188         * doc/posix-functions/symlink.texi (symlink): Document the bug.
28189         * tests/test-symlink.h (test_symlink): Enhance test.
28190
28191 2009-11-10  Eric Blake  <ebb9@byu.net>
28192
28193         link: detect FreeBSD bug
28194         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
28195         symlink.
28196         * doc/posix-functions/link.texi (link): Document the bug.
28197         * tests/test-link.h (test_link): Enhance test.
28198         * tests/test-linkat.c (main): Update caller.
28199
28200         unlink, remove: detect FreeBSD bug
28201         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
28202         slash on symlink.
28203         * doc/posix-functions/unlink.texi (unlink): Document the bug.
28204         * doc/posix-functions/remove.texi (remove): Likewise.
28205         * tests/test-unlink.h (test_unlink): Enhance test.
28206         * tests/test-remove.c (main): Likewise.
28207
28208 2009-11-09  Eric Blake  <ebb9@byu.net>
28209
28210         rename: detect FreeBSD bug
28211         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
28212         slash on symlink.
28213         * modules/renameat-tests (Depends-on): Add filenamecat.
28214         * tests/test-rename.h (test_rename): Allow one more errno.
28215         * tests/test-renameat.c (main): Likewise.
28216         * doc/posix-functions/rename.texi (rename): Document the bug.
28217
28218         open: detect FreeBSD bug
28219         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
28220         symlink.
28221         * doc/posix-functions/open.texi (open): Document the bug.
28222         * doc/posix-functions/utimes.texi (utimes): Likewise.
28223         * tests/test-open.h (test_open): Add parameters, and test symlink
28224         handling.
28225         * tests/test-open.c (main): Adjust caller.
28226         * tests/test-fcntl-safer.c (main): Likewise.
28227         * modules/open-tests (Depends-on): Add stdbool, symlink.
28228         * modules/fcntl-safer-tests (Depends-on): Likewise.
28229         * tests/test-openat.c (main): Add test-open tests.
28230
28231         stat: detect FreeBSD bug
28232         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
28233         symlink.
28234         * doc/posix-functions/stat.texi (stat): Document the bug.
28235         * tests/test-stat.h (test_stat_func): Add argument.
28236         * tests/test-stat.c (main): Adjust caller.
28237         * tests/test-fstatat.c (main): Likewise.
28238         * modules/stat-tests (Depends-on): Add stdbool, symlink.
28239         Reported by Jim Meyering.
28240
28241 2009-11-09  James Youngman  <jay@gnu.org>
28242
28243         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
28244         * lib/strftime.c: Correct placement of #include "ignore-value.h".
28245
28246 2009-11-08  Jim Meyering  <meyering@redhat.com>
28247
28248         utimens: remove invalid futimesat call
28249         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
28250         It used the file descriptor of the target file as the DIR_FD
28251         parameter and NULL as the file name.  That caused failure with
28252         errno == EFAULT on FreeBSD-8.0-rc2
28253
28254 2009-11-07  Eric Blake  <ebb9@byu.net>
28255
28256         fflush, freadseek: use fseeko, not fseek
28257         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
28258         (clear_ungetc_buffer): Avoid potential problems on large files.
28259         * lib/freadseek.c (freadseek): Likewise.
28260         * modules/freadseek (Depends-on): Add fseeko.
28261         * modules/fseek (configure.ac): Set a witness.
28262         * tests/test-fflush.c (main): Use fseeko.
28263         * tests/test-fpurge.c (fseek): Disable link warning.
28264         * tests/test-freadable.c (fseek): Likewise.
28265         * tests/test-freading.c (fseek): Likewise.
28266         * tests/test-fseeko.c (fseek): Likewise.
28267         * tests/test-ftell.c (fseek): Likewise.
28268         * tests/test-ftello.c (fseek): Likewise.
28269         * tests/test-fwritable.c (fseek): Likewise.
28270         * tests/test-fwriting.c (fseek): Likewise.
28271
28272 2009-11-06  Simon Josefsson  <simon@josefsson.org>
28273
28274         * modules/memchr (Depends-on): Drop getpagesize dependency.
28275
28276 2009-11-06  Simon Josefsson  <simon@josefsson.org>
28277
28278         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
28279         Reported by Ludovic Courtès.
28280         * build-aux/pmccabe2html: Improve example usage.
28281         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
28282
28283 2009-11-06  Jim Meyering  <meyering@redhat.com>
28284
28285         do-release-commit-and-tag: New module.
28286         Automate the release-commit and tag process.
28287         * build-aux/do-release-commit-and-tag: New script, from coreutils.
28288         * modules/do-release-commit-and-tag: New file.
28289         * MODULES.html.sh (Support for maintaining and releasing): Add it.
28290
28291 2009-11-06  Simon Josefsson  <simon@josefsson.org>
28292
28293         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
28294         because test-select.c uses inet_pton.
28295
28296 2009-11-06  Simon Josefsson  <simon@josefsson.org>
28297
28298         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
28299         GETADDRINFO_LIB.  Bump serial number.
28300         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
28301         Suggested by Eric Blake <ebb9@byu.net>.
28302
28303 2009-11-05  Eric Blake  <ebb9@byu.net>
28304
28305         strtod: detect darwin bug
28306         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
28307         Reported by Leo Davis.
28308
28309         freopen-safer: new module
28310         * modules/freopen-safer: New module.
28311         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
28312         * lib/freopen-safer.c (freopen_safer): New file.
28313         * lib/stdio-safer.h (freopen_safer): New declaration.
28314         * lib/stdio--.h (freopen): New override.
28315         * MODULES.html.sh (File stream based Input/Output): Mention it.
28316         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
28317         freopen-safer module.
28318         * doc/posix-functions/stderr.texi (stderr): Likewise.
28319         * doc/posix-functions/stdin.texi (stdin): Likewise.
28320         * doc/posix-functions/stdout.texi (stdout): Likewise.
28321         * modules/freopen-safer-tests: New test.
28322         * tests/test-reopen-safer.c: New file.
28323
28324 2009-11-05  Jim Meyering  <meyering@redhat.com>
28325
28326         maint.mk: Prohibit inclusion of "close-stream.h" without use.
28327         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
28328
28329 2009-11-05  Simon Josefsson  <simon@josefsson.org>
28330
28331         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
28332
28333 2009-11-05  Simon Josefsson  <simon@josefsson.org>
28334
28335         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
28336
28337 2009-11-05  Simon Josefsson  <simon@josefsson.org>
28338
28339         Fix link error.
28340         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
28341         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
28342
28343 2009-11-05  Simon Josefsson  <simon@josefsson.org>
28344
28345         * tests/test-func.c: Also test value of __func__.
28346
28347 2009-11-05  Simon Josefsson  <simon@josefsson.org>
28348
28349         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
28350         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
28351
28352 2009-11-05  Bruno Haible  <bruno@clisp.org>
28353
28354         Fix link error.
28355         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
28356         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
28357         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
28358
28359 2009-11-05  Bruno Haible  <bruno@clisp.org>
28360
28361         Tests for module 'inet_pton'.
28362         * modules/inet_pton-tests: New file.
28363         * tests/test-inet_pton.c: New file.
28364
28365 2009-11-05  Bruno Haible  <bruno@clisp.org>
28366
28367         Tests for module 'inet_ntop'.
28368         * modules/inet_ntop-tests: New file.
28369         * tests/test-inet_ntop.c: New file.
28370
28371 2009-11-04  Eric Blake  <ebb9@byu.net>
28372
28373         stdlib-safer: wrap all mkstemp variants
28374         * modules/mkostemp (configure.ac): Set witness.
28375         * modules/mkostemps (configure.ac): Likewise.
28376         * modules/mkstemps (configure.ac): Likewise.
28377         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
28378         (mkstemps_safer): Wrap more functions.
28379         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
28380         wrapping.
28381         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
28382         (mkstemps_safer): Implement the wrappers.
28383
28384         mkstemps, mkostemps: new modules
28385         * modules/mkostemps: New module.
28386         * modules/mkstemps: Likewise.
28387         * lib/mkostemps.c (mkostemps): New file.
28388         * lib/mkstemps.c (mkstemps): Likewise.
28389         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
28390         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
28391         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
28392         * modules/stdlib (Makefile.am): Substitute them.
28393         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
28394         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
28395         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
28396         * doc/gnulib.texi (Glibc stdlib.h): Include them.
28397         * MODULES.html.sh (File system functions): Mention them.
28398
28399         tempname: resync from glibc
28400         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
28401         same values for __GT_FILE as glibc.  Abort even when assertions
28402         are disabled.
28403         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
28404         match its value otherwise.  Allow idempotent inclusion.
28405         * lib/mkdtemp.c (mkdtemp): Adjust caller.
28406         * lib/mkostemp.c (mkostemp): Likewise.
28407         * lib/mkstemp.c (mkstemp): Likewise.
28408         * lib/tmpfile.c (tmpfile): Likewise.
28409         * NEWS: Document this.
28410
28411         utimens: fix use of futimens on older Linux
28412         * lib/utimens.c (fdutimens): Use updated, rather than original,
28413         timespec to avoid bug in older Linux kernel.
28414         Reported by Simon Josefsson.
28415
28416 2009-11-04  Bruno Haible  <bruno@clisp.org>
28417
28418         Make num_processors more flexible and consistent.
28419         * lib/nproc.h (enum nproc_query): New type.
28420         (num_processors): Add a 'query' argument.
28421         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
28422         (num_processors): Add a 'query' argument. Test the value of the
28423         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
28424         mingw, count the number of CPUs available for the current process.
28425         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
28426         Check for sched_getaffinity and sched_getaffinity_np.
28427         * modules/nproc (Depends-on): Add c-ctype, extensions.
28428         * NEWS: Mention the change.
28429
28430 2009-11-03  Bruno Haible  <bruno@clisp.org>
28431
28432         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
28433
28434 2009-11-03  Jim Meyering  <meyering@redhat.com>
28435
28436         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
28437         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
28438         if it is defined.
28439
28440 2009-11-02  Eric Blake  <ebb9@byu.net>
28441
28442         mktime, timegm: share common declaration
28443         * lib/mktime-internal.h: New file.
28444         * lib/mktime.c: Use it rather than open-coding a declaration.
28445         * lib/timegm.c: Likewise.
28446         * modules/mktime (Files): Ship it.
28447         * modules/timegm (Files): Likewise.
28448         Suggested by Bruno Haible.
28449
28450         test-update-copyright: update test to match script changes
28451         * tests/test-update-copyright.sh: Avoid hard-coding perl
28452         location.  Don't update *.bak created by earlier runs.
28453
28454 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
28455             Simon Josefsson  <simon@josefsson.org>
28456             Bruno Haible  <bruno@clisp.org>
28457
28458         Fix link error on Solaris 8.
28459         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
28460         also in libnsl. Define also INET_PTON_LIB.
28461         * modules/inet_pton (Link): New section.
28462
28463 2009-11-02  Simon Josefsson  <simon@josefsson.org>
28464             Bruno Haible  <bruno@clisp.org>
28465
28466         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
28467         * modules/inet_ntop (Link): New section.
28468         Reported by Boyan Kasarov <bkasarov@gmail.com>.
28469
28470 2009-11-02  Eric Blake  <ebb9@byu.net>
28471
28472         maint: avoid compiler warnings in m4 macros
28473         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
28474         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
28475
28476 2009-11-02  Simon Josefsson  <simon@josefsson.org>
28477
28478         * m4/pmccabe2html.m4: Remove file.
28479         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
28480         function.  Change maintainer.
28481         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
28482         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
28483         Courtès).
28484
28485 2009-10-31  Eric Blake  <ebb9@byu.net>
28486
28487         fseeko: fix m4 regression
28488         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
28489         regression from 2009-10-27.
28490         Reported by Ralf Wildenhues.
28491
28492 2009-10-31  Jim Meyering  <meyering@redhat.com>
28493
28494         inttostr: aesthetics and improved (compile-time) safety
28495         Define inttype_is_signed rather than inttype_is_unsigned,
28496         since the sole use is via "#if inttype_is_signed".
28497         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
28498         inttype_is_unsigned.
28499         * lib/offtostr.c (inttype_is_signed): Likewise.
28500         * lib/uinttostr.c (inttype_is_signed): Likewise.
28501         * lib/umaxtostr.c (inttype_is_signed): Likewise.
28502         * lib/inttostr.c (inttostr): Use verify to cross-check the
28503         inttype_is_signed value and the signedness of the actual type.
28504         * modules/inttostr (Depends-on): Add verify.
28505
28506 2009-10-30  Eric Blake  <ebb9@byu.net>
28507
28508         build: avoid compiler warnings
28509         * lib/fchmodat.c (lchmod): Mark unused variables.
28510         * lib/getopt.c (_getopt_initialize): Likewise.
28511         * lib/mktime.c (__mktime_internal): Provide prototype.
28512         * lib/inttostr.c (inttostr): Avoid compiler warning even with
28513         older gcc that do not understand #pragma GCC diagnostic.
28514         * lib/uinttostr.c (inttype_is_unsigned): Define.
28515         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
28516
28517 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
28518
28519         stat: fix compilation on AIX
28520         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
28521         only see struct stat64.
28522
28523 2009-10-30  Eric Blake  <ebb9@byu.net>
28524
28525         exclude: make more robust
28526         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
28527         rather than masking a coding bug.
28528         Suggested by Bruno Haible.
28529
28530 2009-10-30  Jim Meyering  <meyering@redhat.com>
28531
28532         perl scripts: remove #!/usr/bin/perl in favor of more portable...
28533         Rather than putting #!/usr/bin/perl on the first line,
28534         start with a variant of what's recommended by "man perlrun" that
28535         invokes the first "perl" program from your shell's search path.
28536         * build-aux/gitlog-to-changelog: Replace #!... as above.
28537         Add a "Local Variables" perl mode setting.
28538         Prompted by a patch from Ludovic Courtès.
28539         Improved by Eric Blake.
28540         * build-aux/useless-if-before-free: Likewise.
28541         * build-aux/announce-gen: Likewise.
28542         * build-aux/update-copyright: Likewise.
28543
28544 2009-10-29  Eric Blake  <ebb9@byu.net>
28545
28546         filenamecat-lgpl: adjust clients
28547         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
28548         filenamecat.
28549         * modules/renameat (Depends-on): Likewise.
28550
28551         filenamecat: split into filenamecat-lgpl
28552         * modules/filenamecat-lgpl: New module.
28553         * modules/filenamecat (Files): Move library-safe files into
28554         filenamecat-lgpl.
28555         (Depends-on): Add filenamecat-lgpl.
28556         (configure.ac): Declare witness.
28557         * lib/filenamecat.h (file_name_concat): Only declare when using
28558         GPL module.
28559         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
28560         Move...
28561         * lib/filenamecat-lgpl.c: ...into new file.
28562         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
28563         (gl_FILE_NAME_CONCAT): Use it.
28564         * MODULES.html.sh (File system functions): Mention new module.
28565
28566         argp: avoid memory leak
28567         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
28568         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
28569         base_name, since the latter malloc()s and can call exit().
28570         Leak introduced 2006-07-03.
28571
28572         dirname-lgpl: adjust clients that don't need full dirname
28573         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
28574         * modules/filenamecat (Depends-on): Likewise.
28575         * modules/linkat (Depends-on): Likewise.
28576         * modules/mkancesdirs (Depends-on): Likewise.
28577         * modules/mkdir (Depends-on): Likewise.
28578         * modules/openat (Depends-on): Likewise.
28579         * modules/savewd (Depends-on): Likewise.
28580         * modules/rename (Depends-on): Likewise.
28581         (License): Relax license.
28582         * modules/mkdir-tests (Depends-on): Drop progname.
28583         (Makefile.am): Delete unneeded LDADD.
28584         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
28585
28586         dirname: split into dirname-lgpl
28587         * modules/dirname-lgpl: New module.
28588         * modules/dirname (Files): Move library-safe files into
28589         dirname-lgpl.
28590         (Depends-on): Add dirname-lgpl.
28591         (configure.ac): Declare witness.
28592         * modules/double-slash-root (License): Relax license.
28593         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
28594         module.
28595         * lib/dirname.c (dir_len, mdir_name): Move...
28596         * lib/dirname-lgpl.c: ...into new file.
28597         * lib/basename.c (last_component, base_len): Move...
28598         * lib/basename-lgpl.c: ...into new file.
28599         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
28600         (gl_DIRNAME): Use it.
28601         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
28602         Mention new module.
28603         * modules/dirname-tests (Depends-on): Add progname.
28604         * tests/test-dirname.c (program_name): Delete.
28605
28606         mkdir: make safe for libraries
28607         * modules/mkdir (Depends-on): Drop xalloc.
28608         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
28609         exit.
28610
28611         tests: avoid some compiler warnings
28612         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
28613         literals.
28614         * tests/test-memchr.c (main): Avoid type mismatch.
28615         * tests/test-arpa_inet.c (main): Avoid unused parameters.
28616         * tests/test-base64.c (main): Likewise.
28617         * tests/test-getdelim.c (main): Likewise.
28618         * tests/test-gethostname.c (main): Likewise.
28619         * tests/test-getline.c (main): Likewise.
28620         * tests/test-netinet_in.c (main): Likewise.
28621         * tests/test-select.c (open_server_socket, main): Likewise.
28622         * tests/test-select-stdin.c (main): Likewise.
28623         * tests/test-sockets.c (main): Likewise.
28624         * tests/test-strsignal.c (main): Likewise.
28625         * tests/test-sys_select.c (main): Likewise.
28626         * tests/test-sys_socket.c (main): Likewise.
28627         * tests/test-u64.c (main): Likewise.
28628         * tests/test-xfprintf-posix.c (main): Likewise.
28629         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
28630
28631         sockets: avoid compiler warning
28632         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
28633
28634         maint: detect usage(1) and other suspicious exits
28635         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
28636
28637 2009-10-29  Jim Meyering  <meyering@redhat.com>
28638
28639         timespec: long-to-int truncation could make timespec_cmp malfunction
28640         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
28641         a multiple of 2^32 nanoseconds as no difference.
28642
28643 2009-10-28  Jim Meyering  <meyering@redhat.com>
28644
28645         fprintftime: wrap macro code argument in "do {...} while(0)"
28646         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
28647         cpy macro must be a statement that can be followed by a semicolon.
28648         Now that the else clause contains a comment and is hence longer
28649         than one line, I require curly braces.  That in turn requires
28650         that we wrap this code block in the standard do...while(0).
28651
28652         fprintftime: remove stray semicolon from previous change
28653         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
28654
28655         fprintftime: avoid a warning about ignored fwrite return value
28656         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
28657         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
28658         that is unsafe.
28659         * modules/fprintftime (Depends-on): Add ignore-value.
28660
28661         exclude: avoid an unwarranted warning
28662         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
28663
28664 2009-10-27  Eric Blake  <ebb9@byu.net>
28665
28666         fseek: avoid compilation failure when fflush is replaced
28667         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
28668         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
28669         module is in use.
28670         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
28671         module is not in use; since REPLACE_FSEEK worked otherwise.
28672         (GNULIB_FTELLO): Likewise for ftell.
28673         Reported by Ian Beckwith and others.
28674
28675 2009-10-27  Bruno Haible  <bruno@clisp.org>
28676
28677         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
28678         Reported by Jim Meyering.
28679
28680 2009-10-27  Jim Meyering  <jim@meyering.net>
28681             Bruno Haible  <bruno@clisp.org>
28682
28683         Avoid warning despite dropping the return value of fwrite.
28684         * lib/unicodeio.c: Include ignore-value.h.
28685         (fwrite_success_callback): Explicitly ignore fwrite's return value.
28686         * modules/unicodeio (Depends-on): Add ignore-value.
28687
28688 2009-10-26  Eric Blake  <ebb9@byu.net>
28689
28690         areadlinkat: fix fallback path
28691         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
28692         pointer and zero.
28693
28694 2009-10-22  Pádraig Brady  <P@draigBrady.com>
28695
28696         Use a better IO block size for modern systems
28697         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
28698         * lib/md2.c: Likewise.
28699         * lib/md4.c: Likewise.
28700         * lib/md5.c: Likewise.
28701         * lib/sha1.c: Likewise.
28702         * lib/sha256.c: Likewise.
28703         * lib/sha512.c: Likewise.
28704
28705 2009-10-22  Eric Blake  <ebb9@byu.net>
28706
28707         tests: avoid several compiler warnings
28708         * tests/test-getcwd.c (main): Avoid buffer underflow.
28709         * tests/test-getdate.c (main): String literals are not safe with
28710         putenv, so use setenv.  Declare unused argument.
28711         * modules/getdate-tests (Depends-on): Add setenv.
28712         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
28713         problems with string literals in char *.
28714         * tests/test-hash.c (main): Avoid shadowing declaration.
28715         (insert_new): Treat string literals as char const *.
28716         * tests/test-getopt.h (test_getopt): Likewise.
28717         (getopt_loop): Alter types to minimize casting elsewhere.
28718         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
28719         (test_getopt_long_posix): Likewise.
28720         (do_getopt_long): Add wrapper to minimize casting.
28721         * tests/test-atexit.c (clear_temp_file): Use void.
28722         * tests/test-areadlink-with-size.c (main): Declare unused
28723         arguments.
28724         * tests/test-areadlink.c (main): Likewise.
28725         * tests/test-areadlinkat-with-size.c (main): Likewise.
28726         * tests/test-areadlinkat.c (main): Likewise.
28727         * tests/test-canonicalize-lgpl.c (main): Likewise.
28728         * tests/test-canonicalize.c (main): Likewise.
28729         * tests/test-dirent-safer.c (main): Likewise.
28730         * tests/test-dirname.c (main): Likewise.
28731         * tests/test-dup2.c (main): Likewise.
28732         * tests/test-fchdir.c (main): Likewise.
28733         * tests/test-fcntl-h.c (main): Likewise.
28734         * tests/test-fcntl-safer.c (main): Likewise.
28735         * tests/test-fdopendir.c (main): Likewise.
28736         * tests/test-fdutimensat.c (main): Likewise.
28737         * tests/test-fflush.c (main): Likewise.
28738         * tests/test-filenamecat.c (main): Likewise.
28739         * tests/test-filevercmp.c (main): Likewise.
28740         * tests/test-fopen-safer.c (main): Likewise.
28741         * tests/test-fopen.c (main): Likewise.
28742         * tests/test-fpending.c (main): Likewise.
28743         * tests/test-fpurge.c (main): Likewise.
28744         * tests/test-freading.c (main): Likewise.
28745         * tests/test-fstatat.c (main): Likewise.
28746         * tests/test-fsync.c (main): Likewise.
28747         * tests/test-futimens.c (main): Likewise.
28748         * tests/test-getndelim2.c (main): Likewise.
28749         * tests/test-gettimeofday.c (main): Likewise.
28750         * tests/test-getopt.c (main): Likewise.
28751         * tests/test-i-ring.c (main): Likewise.
28752         * tests/test-inttypes.c (main): Likewise.
28753         * tests/test-link.c (main): Likewise.
28754         * tests/test-lstat.c (main): Likewise.
28755         * tests/test-math.c (main): Likewise.
28756         * tests/test-md5.c (main): Likewise.
28757         * tests/test-memchr2.c (main): Likewise.
28758         * tests/test-memrchr.c (main): Likewise.
28759         * tests/test-mkdir.c (main): Likewise.
28760         * tests/test-mkdirat.c (main): Likewise.
28761         * tests/test-mkfifoat.c (main): Likewise.
28762         * tests/test-open.c (main): Likewise.
28763         * tests/test-openat-safer.c (main): Likewise.
28764         * tests/test-openat.c (main): Likewise.
28765         * tests/test-quotearg.c (main): Likewise.
28766         * tests/test-rawmemchr.c (main): Likewise.
28767         * tests/test-readlink.c (main): Likewise.
28768         * tests/test-remove.c (main): Likewise.
28769         * tests/test-rename.c (main): Likewise.
28770         * tests/test-renameat.c (main): Likewise.
28771         * tests/test-rmdir.c (main): Likewise.
28772         * tests/test-sha1.c (main): Likewise.
28773         * tests/test-signal.c (main): Likewise.
28774         * tests/test-sigaction.c (main): Likewise.
28775         * tests/test-stat.c (main): Likewise.
28776         * tests/test-stat-time.c (main): Likewise.
28777         * tests/test-stddef.c (main): Likewise.
28778         * tests/test-stdint.c (main): Likewise.
28779         * tests/test-stdio.c (main): Likewise.
28780         * tests/test-stdlib.c (main): Likewise.
28781         * tests/test-strchrnul.c (main): Likewise.
28782         * tests/test-strerror.c (main): Likewise.
28783         * tests/test-string.c (main): Likewise.
28784         * tests/test-strtod.c (main): Likewise.
28785         * tests/test-strverscmp.c (main): Likewise.
28786         * tests/test-symlink.c (main): Likewise.
28787         * tests/test-symlinkat.c (main): Likewise.
28788         * tests/test-sys_stat.c (main): Likewise.
28789         * tests/test-sys_time.c (main): Likewise.
28790         * tests/test-time.c (main): Likewise.
28791         * tests/test-unistd.c (main): Likewise.
28792         * tests/test-unlink.c (main): Likewise.
28793         * tests/test-unlinkat.c (main): Likewise.
28794         * tests/test-utimens.c (main): Likewise.
28795         * tests/test-utimensat.c (main): Likewise.
28796         * tests/test-version-etc.c (main): Likewise.
28797         * tests/test-wchar.c (main): Likewise.
28798         * tests/test-wctype.c (main): Likewise.
28799         * tests/test-xprintf-posix.c (main): Likewise.
28800         * tests/test-posixtm.c (main): Likewise.
28801         (STREQ): Delete unused macro.
28802         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
28803         shadowed variables.
28804         * tests/test-memchr.c (main): Likewise.
28805
28806 2009-10-21  Eric Blake  <ebb9@byu.net>
28807
28808         areadlinkat: avoid failure on older glibc
28809         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
28810         rather than mis-comparing 0 against FUNC_RESULT of char*.
28811
28812 2009-10-21  Bruno Haible  <bruno@clisp.org>
28813
28814         * modules/stpncpy (License): Relicense under LGPLv2+.
28815         Reported by David Lutterkort <lutter@redhat.com>.
28816
28817 2009-10-20  Eric Blake  <ebb9@byu.net>
28818
28819         utimensat: work around Solaris 9 bug
28820         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
28821         has trailing slash bugs.
28822         * tests/test-lutimens.h (test_lutimens): Enhance test.
28823         * tests/test-utimens.h (test_utimens): Likewise.
28824         * doc/posix-functions/utime.texi (utime): Enhance documentation.
28825         * doc/posix-functions/utimes.texi (utimes): Likewise.
28826         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
28827         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
28828         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
28829         * doc/posix-functions/futimens.texi (futimens): Likewise.
28830
28831         fdutimensat: new module
28832         * modules/fdutimensat: New file.
28833         * lib/fdutimensat.c (fdutimensat): Likewise.
28834         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
28835         * MODULES.html.sh (File system functions): Mention module.
28836         * modules/fdutimensat-tests: New test.
28837         * tests/test-fdutimensat.c: Likewise.
28838
28839         doc: regenerate INSTALL
28840         * doc/INSTALL: Reflect recent autoconf update.
28841         * doc/INSTALL.ISO: Likewise.
28842         * doc/INSTALL.UTF-8: Likewise.
28843
28844 2009-10-20  Pádraig Brady  <P@draigBrady.com>
28845
28846         acl: warn if ACL support is not detected
28847         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
28848
28849 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
28850
28851         * lib/nproc.h: Add extern "C" block for C++.
28852
28853 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
28854             Bruno Haible  <bruno@clisp.org>
28855
28856         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
28857         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
28858         * doc/posix-functions/isalpha.texi: Likewise.
28859         * doc/posix-functions/isblank.texi: Likewise.
28860         * doc/posix-functions/iscntrl.texi: Likewise.
28861         * doc/posix-functions/isdigit.texi: Likewise.
28862         * doc/posix-functions/isgraph.texi: Likewise.
28863         * doc/posix-functions/islower.texi: Likewise.
28864         * doc/posix-functions/isprint.texi: Likewise.
28865         * doc/posix-functions/ispunct.texi: Likewise.
28866         * doc/posix-functions/isspace.texi: Likewise.
28867         * doc/posix-functions/isupper.texi: Likewise.
28868         * doc/posix-functions/isxdigit.texi: Likewise.
28869
28870 2009-10-18  Bruno Haible  <bruno@clisp.org>
28871
28872         Tests for module 'isblank'.
28873         * modules/isblank-tests: New file.
28874         * tests/test-isblank.c: New file.
28875
28876         New module 'isblank'.
28877         * lib/isblank.c: New file.
28878         * m4/isblank.m4: New file.
28879         * modules/isblank: New file.
28880         * doc/posix-functions/isblank.texi: Mention the new module.
28881
28882 2009-10-18  Bruno Haible  <bruno@clisp.org>
28883
28884         New module 'ctype'.
28885         * lib/ctype.in.h: New file.
28886         * m4/ctype.m4: New file.
28887         * modules/ctype: New file.
28888         * doc/posix-headers/ctype.texi: Mention the new module.
28889
28890 2009-10-18  Jim Meyering  <meyering@redhat.com>
28891
28892         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
28893         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
28894         right after its initialization, rather than farther down.
28895         Keeping these in close proximity makes it easier to ensure
28896         that each such variable is initialized.  E.g.,
28897
28898             LIB_CLOCK_GETTIME=
28899             AC_SUBST([LIB_CLOCK_GETTIME])
28900
28901         This change also increments these serial numbers.
28902         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
28903         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
28904         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
28905
28906 2009-10-18  Bruno Haible  <bruno@clisp.org>
28907
28908         Don't let environment variables perturb build.
28909         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
28910         (gl_PREREQ_GETHRXTIME): ... not here.
28911
28912 2009-10-18  Bruno Haible  <bruno@clisp.org>
28913
28914         Avoid symlink attack in localcharset module.
28915         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
28916         (O_NOFOLLOW): Define fallback.
28917         (get_charset_aliases): Don't open the file if it is a symbolic link.
28918         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
28919         gl_FCNTL_H.
28920         (gl_FCNTL_H): Require it.
28921         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
28922         * modules/localcharset (Files): Add m4/fcntl_h.m4.
28923         Reported by Fergal Glynn <fglynn@veracode.com>.
28924
28925 2009-10-18  Bruno Haible  <bruno@clisp.org>
28926
28927         Implement nproc for mingw.
28928         * lib/nproc.c: Include <windows.h>
28929         (num_processors): On native Windows platforms, try GetSystemInfo.
28930
28931 2009-10-18  Bruno Haible  <bruno@clisp.org>
28932
28933         Implement nproc for IRIX.
28934         * lib/nproc.c: Include <sys/sysmp.h>.
28935         (num_processors): On IRIX systems, try sysmp.
28936         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
28937
28938 2009-10-18  Bruno Haible  <bruno@clisp.org>
28939
28940         Implement nproc for HP-UX.
28941         * lib/nproc.c: Include <sys/pstat.h>
28942         (num_processors): On HP-UX systems, try pstat_getdynamic.
28943         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
28944         pstat_getdynamic.
28945
28946 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
28947             Bruno Haible  <bruno@clisp.org>
28948
28949         Implement nproc for NetBSD, OpenBSD.
28950         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
28951         (ARRAY_SIZE): New macro.
28952         (num_processors): On BSD systems, try sysctl of HW_NCPU.
28953         * m4/nproc.m4: New file.
28954         * modules/nproc (Files): Add m4/nproc.m4.
28955         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
28956         (Makefile.am): Instead, augment lib_SOURCES.
28957
28958 2009-10-18  Bruno Haible  <bruno@clisp.org>
28959
28960         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
28961         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
28962         sys/param.h.
28963
28964 2009-10-16  Eric Blake  <ebb9@byu.net>
28965
28966         utimensat: new module
28967         * modules/utimensat: New file.
28968         * lib/utimensat.c (utimensat): Likewise.
28969         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
28970         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
28971         so we can work around Linux bugs.
28972         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
28973         * modules/sys_stat (Makefile.am): Substitute them.
28974         * lib/sys_stat.in.h (utimensat): Declare it.
28975         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
28976         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
28977         * modules/utimensat-tests: New test.
28978         * tests/test-utimensat.c: Likewise.
28979
28980         utimens: let lutimens work on non-symlinks
28981         * lib/utimens.c (lutimens): Fall back to utimens rather than
28982         failing with ENOSYS, when file is not a symlink.
28983         (utimens): Reduce redirection.
28984         * tests/test-lutimens.h (test_lutimens): Update test to cover
28985         non-symlinks.
28986         * tests/test-utimens.h (test_utimens): Update test to cover
28987         symlinks.
28988         * tests/test-utimens.c (main): Update caller.
28989
28990         utimens: cache whether utimensat syscall works
28991         * lib/utimens.c (utimensat_works_really): New cache variable.
28992         (fdutimens, lutimens): Use it to avoid failing syscall.
28993
28994         test-stat-time, test-utimens: improve portability
28995         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
28996         ext4 on alpha, and for cygwin.
28997         * tests/test-utimens-common.h: New file.
28998         (nap): Factor delays into single function.
28999         * tests/test-lutimens.h (test_lutimens): Use new header.
29000         * tests/test-futimens.h (test_futimens): Likewise.
29001         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
29002         timestamps to occur from same machine, as was done previously for
29003         test_utimens.
29004         * modules/utimens-tests (Files): Ship new file.
29005         * modules/futimens-tests (Files): Likewise.
29006         Reported in part by Jim Meyering.
29007
29008         sys_stat: sort replacement declarations
29009         * lib/sys_stat.in.h: Sort declarations.
29010         * lib/futimens.c (futimens): Fix typo.
29011
29012 2009-10-15  Jim Meyering  <meyering@redhat.com>
29013
29014         don't let environment settings perturb build
29015         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
29016         could cause a configure-time and/or build-time malfunction.
29017         Typically, a configure-time function-in-library test is performed
29018         via code like this:
29019
29020           LIB_VAR=
29021           AC_SUBST([LIB_VAR])
29022           prefix_saved_LIBS=$LIBS
29023             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
29024                        [test "$ac_cv_search_FUNC" = "none required" ||
29025                         LIB_VAR=$ac_cv_search_FUNC])
29026           LIBS=$prefix_saved_LIBS
29027
29028         However, in each of the files affected by this change, the LIB_VAR=
29029         initialization was omitted.  Thus, when set in the environment, its
29030         value would propagate into generated Makefiles when FUNC is not found
29031         in LIB_NAME.
29032         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
29033         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
29034         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
29035
29036 2009-10-14  Eric Blake  <ebb9@byu.net>
29037
29038         fchdir: avoid infinite recursion in mingw
29039         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
29040         recursing.
29041
29042         test-stat-time: port to mingw
29043         * tests/test-stat-time.c (force_unlink): Return a value.
29044         (test_ctime) [W32]: Fix compilation error.
29045         (nap): Don't call usleep with too large an argument.  Use
29046         force_unlink.
29047         * doc/pastposix-functions/usleep.texi (usleep): Document the
29048         portability issue.
29049
29050 2009-10-13  Jim Meyering  <meyering@redhat.com>
29051
29052         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
29053         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
29054         * modules/pipe-filter-ii: Likewise.
29055         * modules/sys_socket-tests: Likewise.
29056         * modules/tsearch-tests: Likewise.
29057         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
29058         (check): Depend on it.
29059
29060 2009-10-12  Eric Blake  <ebb9@byu.net>
29061
29062         utimens-tests: port to NFS file systems
29063         * tests/test-utimens.h (test_utimens): Refactor utimecmp
29064         comparisons to avoid spurious failures from timestamp drift
29065         between NFS machines.
29066
29067 2009-10-12  Eric Blake  <ebb9@byu.net>
29068
29069         stat-time-tests: minor cleanups
29070         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
29071         * tests/test-stat-time.c (nap): Separate assignment from call.
29072         Suggested by Paolo Bonzini and Bruno Haible.
29073
29074         sys_stat: guarantee struct timespec
29075         * lib/sys_stat.in.h (includes): Always include <time.h>
29076         * modules/sys_stat (Depends-on): Add time.
29077         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
29078         mode_t permission values.
29079         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
29080         get at subsecond timestamps.
29081
29082 2009-10-10  Eric Blake  <ebb9@byu.net>
29083
29084         futimens: new module
29085         * modules/futimens: New file.
29086         * lib/futimens.c (futimens): Likewise.
29087         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
29088         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
29089         we can work around Linux bugs.
29090         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
29091         * modules/sys_stat (Makefile.am): Substitute them.
29092         * lib/sys_stat.in.h (futimens): Declare it.
29093         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
29094         * doc/posix-functions/futimens.texi (futimens): Likewise.
29095         * modules/futimens-tests: New test.
29096         * tests/test-futimens.c: Likewise.
29097
29098         utimens: introduce fdutimens
29099         * lib/utimens.h (fdutimens): New prototype.
29100         * lib/utimens.c (gl_futimens): Move guts...
29101         (fdutimens): ...to new interface.
29102         * tests/test-utimens.c (do_fdutimens): Use it.
29103
29104         utimens: add UTIME_NOW and UTIME_OMIT support
29105         * lib/utimens.c (validate_timespec, update_timespec): New helper
29106         functions.
29107         (gl_futimens, lutimens): Use them.
29108         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
29109         stdbool, sys_stat.
29110         (Link): Mention resulting library dependency.
29111         * modules/utimecmp (Link): Likewise.
29112         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
29113         (Makefile.am): Pick up library dependency.
29114         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
29115         definition.
29116         * tests/test-sys_stat.c: Test the definitions.
29117         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
29118         * NEWS: Document library dependency.
29119
29120         utimecmp: support symlink timestamps
29121         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
29122         hashing when possible.  Use pathconf when available.
29123         (SYSCALL_RESOLUTION): Recognize tighter resolution.
29124         * modules/utimecmp (Depends-on): Add lstat.
29125
29126         utimens: add lutimens interface
29127         * lib/utimens.c (lutimens): New function.
29128         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
29129         * lib/utimens.h (lutimens): Declare new interface.
29130         * tests/test-utimens.c (main): Enhance test.
29131         * tests/test-lutimens.h (test_lutimens): New file.
29132         * modules/utimens-tests (Files): Distribute it.
29133         (Depends-on): Add symlink.
29134         (configure.ac): Check for usleep.
29135
29136         utimens: validate futimens usage
29137         * lib/utimens.c (gl_futimens): Require valid fd up front, using
29138         fewer syscalls on failure later on.  Avoid compiler warning on
29139         mingw.
29140         * modules/utimens (Depends-on): Add dup2.
29141
29142         utimens: add test
29143         * modules/utimens-tests: New test.
29144         * tests/test-utimens.h: New file.
29145         * tests/test-futimens.h: Likewise.
29146         * tests/test-utimens.c: Likewise.
29147
29148         doc: mention timestamp portability issues
29149         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
29150         instead.
29151         * doc/posix-functions/utime.texi (utime): Likewise.
29152         * doc/posix-functions/utimes.texi (utimes): Likewise.
29153         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
29154         instead.
29155         * doc/posix-functions/futimens.texi (futimens): Mention utimens
29156         module.
29157         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
29158         Mention weakness with symlink timestamps.
29159         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
29160         to utimensat/futimens instead.
29161         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
29162
29163         test-dup2: enhance test
29164         * tests/test-dup2.c (main): Also check AT_FDCWD.
29165
29166         test-stat-time: avoid more spurious failures
29167         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
29168         xfs; and avoid race if the two timestamps cross quantization edge.
29169
29170         relocatable: prefer 'file system' over 'filesystem'
29171         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
29172         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
29173         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
29174         * doc/relocatable.texi (Enabling Relocatability): Likewise.
29175         * lib/relocatable.c (compute_curr_prefix): Likewise.
29176
29177 2009-10-10  Jim Meyering  <meyering@redhat.com>
29178
29179         stat-time-tests: check for the usleep function
29180         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
29181
29182 2009-10-10  Bruno Haible  <bruno@clisp.org>
29183
29184         * modules/xnanosleep: Put the Link section after the Include section.
29185
29186 2009-10-09  Eric Blake  <ebb9@byu.net>
29187
29188         dup2: work around FreeBSD 6.1 bug
29189         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
29190         * doc/posix-functions/dup2.texi (dup2): Document it.
29191         Reported by Nelson H. F. Beebe and Jim Meyering.
29192
29193         test-stat-time: port to buggy NFS clients
29194         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
29195         (test_ctime): Also skip test if mtime and ctime are skewed.
29196
29197         maint: prefer 'file system' over 'filesystem'
29198         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
29199         * doc/posix-functions/lstat.texi (lstat): Likewise.
29200         * lib/file-has-acl.c (file_has_acl): Likewise.
29201         * lib/fwriteerror.c [TEST]: Likewise.
29202         * tests/test-areadlink.h (test_areadlink): Likewise.
29203         * tests/test-areadlinkat-with-size.c (main): Likewise.
29204         * tests/test-areadlinkat.c (main): Likewise.
29205         * tests/test-canonicalize-lgpl.c (main): Likewise.
29206         * tests/test-canonicalize.c (main): Likewise.
29207         * tests/test-fstatat.c (main): Likewise.
29208         * tests/test-linkat.c (main): Likewise.
29209         * tests/test-lstat.h (test_lstat_func): Likewise.
29210         * tests/test-mkdir.h (test_mkdir): Likewise.
29211         * tests/test-readlink.h (test_readlink): Likewise.
29212         * tests/test-remove.c (main): Likewise.
29213         * tests/test-rename.h (test_rename): Likewise.
29214         * tests/test-renameat.c (main): Likewise.
29215         * tests/test-rmdir.h (test_rmdir_func): Likewise.
29216         * tests/test-symlink.h (test_symlink): Likewise.
29217         * tests/test-symlinkat.c (main): Likewise.
29218         * tests/test-unlink.h (test_unlink_func): Likewise.
29219         * tests/test-unlinkat.c (main): Likewise.
29220
29221         maint: make realtime library usage explicit
29222         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
29223         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
29224         * modules/settime (Link): Likewise.
29225         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
29226
29227         test-stat-time: speed up execution
29228         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
29229         warning on mingw.
29230         (nap): New helper function.
29231         (prepare_test): Use it to reduce sleep time.
29232         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
29233         execution.
29234         * modules/stat-time-tests (configure.ac): Check for usleep.
29235
29236 2009-10-09  Jim Meyering  <meyering@redhat.com>
29237
29238         selinux-h: always use getfilecon wrappers
29239         * lib/getfilecon.c: New file.
29240         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
29241         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
29242         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
29243         (fgetfilecon): Provide a stub.
29244         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
29245         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
29246         file unconditionally.
29247         When <selinux/selinux.h> is found, arrange to use wrappers.
29248         * modules/selinux-h (Files): Add getfilecon.c.
29249         (Makefile.am): Substitute include-next-related bits
29250         into the now-always-generated selinux/selinux.h file.
29251         * doc/glibc-functions/lgetfilecon.texi: New file.
29252         * doc/glibc-functions/fgetfilecon.texi: New file.
29253         * doc/glibc-functions/getfilecon.texi: New file.
29254         * doc/glibc-functions/getfilecon-desc.texi: New file.
29255         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
29256         which to pull in the new files.
29257         * MODULES.html.sh (Misc): Add selinux-h.
29258
29259 2009-10-08  Jim Meyering  <meyering@redhat.com>
29260
29261         unistd: fix comment typo
29262         * lib/unistd.in.h (euidaccess): Fix a comment typo.
29263
29264 2009-10-08  Eric Blake  <ebb9@byu.net>
29265
29266         areadlink: use SIZE_MAX consistently
29267         * modules/areadlink (Depends-on): Add stdint.
29268         * modules/areadlink-with-size (Depends-on): Likewise.
29269         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
29270         gives NULL; drop sys/types, since unistd gives size_t; and add
29271         stdint for SIZE_MAX.
29272         (SIZE_MAX): Rely on headers.
29273         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
29274         and add stdint.
29275         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
29276         (SIZE_MAX): Likewise.
29277         (INITIAL_BUF_SIZE): Turn into enum.
29278         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
29279
29280 2009-10-08  Jim Meyering  <meyering@redhat.com>
29281
29282         areadlinkat: avoid compilation failure
29283         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
29284         Fix typo in comment.
29285
29286 2009-10-07  Eric Blake  <ebb9@byu.net>
29287
29288         areadlinkat-with-size: new module
29289         * modules/areadlinkat-with-size: New module.
29290         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
29291         * lib/areadlink.h (areadlinkat): Declare it.
29292         * MODULES.html.sh (File system functions): Mention it.
29293         * modules/areadlinkat-with-size-tests: New test.
29294         * tests/test-areadlinkat-with-size.c: New file.
29295
29296         xreadlinkat: new module
29297         * modules/xreadlinkat: New module.
29298         * lib/xreadlinkat.c (xreadlinkat): New file.
29299         * lib/xreadlink.h (xreadlinkat): Declare it.
29300         * MODULES.html.sh (File system functions): Mention it.
29301
29302         areadlinkat: new module
29303         * lib/at-func.c (FUNC_FAIL): New define.
29304         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
29305         * modules/areadlinkat: New module.
29306         * lib/linkat.c (areadlinkat): Move...
29307         * lib/areadlinkat.c (areadlinkat): ...to new file.
29308         * lib/areadlink.h (areadlinkat): Declare it.
29309         * modules/linkat (Depends-on): Add areadlinkat.
29310         * MODULES.html.sh (File system functions): Mention it.
29311         * modules/areadlinkat-tests: New test.
29312         * tests/test-areadlinkat.c: New file.
29313
29314         areadlink, areadlink-with-size: add tests
29315         * modules/areadlink-tests: New test.
29316         * modules/areadlink-with-size-tests: Likewise.
29317         * tests/test-areadlink.h: New file.
29318         * tests/test-areadlink.c: Likewise.
29319         * tests/test-areadlink-with-size.c: Likewise.
29320
29321         maint: minor cleanups
29322         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
29323         _UNUSED_PARAMETER_ instead.
29324         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
29325         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
29326         * modules/linkat-tests (Files): Distribute test-link.h.
29327
29328         openat, utimens: whitespace cleanup
29329         * lib/openat.c: Prefer space throughout, rather than mix of 8
29330         spaces vs. tabs.
29331         * lib/at-func.c: Likewise.
29332         * lib/utimens.c: Likewise.
29333
29334         openat: avoid using wrong fd
29335         * lib/openat.c (openat_permissive): Reject user's fd if saving the
29336         working directory chooses same fd.
29337         * lib/at-func.c (AT_FUNC_NAME): Likewise.
29338
29339         mkdir, mkdirat: fix cygwin 1.5.x bug
29340         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
29341         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
29342         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
29343         bug.
29344         (gl_PREREQ_MKDIR): Delete unused macro.
29345         * modules/mkdir (Files): Track file rename.
29346         (configure.ac): Update macro name.
29347         * modules/openat (Depends-on): Add mkdir.
29348         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
29349
29350         mkdir, mkdirat: add tests
29351         * modules/mkdir-tests: New test.
29352         * tests/test-mkdir.h: New file.
29353         * tests/test-mkdir.c: Likewise.
29354         * tests/test-mkdirat.c: Likewise.
29355         * modules/openat-tests (Files): Add new files.
29356         (Makefile.am): Run new test.
29357
29358 2009-10-06  Eric Blake  <ebb9@byu.net>
29359
29360         doc: tweak *at function documentation
29361         * doc/posix-functions/faccessat.texi (faccessat): Mention
29362         known issue with replacement.
29363         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
29364         * doc/posix-functions/linkat.texi (linkat): Likewise.
29365         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
29366         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
29367         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
29368         * doc/posix-functions/renameat.texi (renameat): Likewise.
29369         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
29370
29371         openat: fix GNU/Hurd bug in unlinkat
29372         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
29373         broken.
29374         * doc/posix-functions/unlink.texi (unlink): Document this.
29375         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
29376
29377         fdopendir: fix GNU/Hurd bug
29378         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
29379         allowing non-directory fds.
29380         * lib/fdopendir.c (rpl_fdopendir): Work around it.
29381         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
29382         * modules/dirent (Makefile.am): Substitute it.
29383         * lib/dirent.in.h (fdopendir): Declare replacement.
29384         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
29385         * tests/test-fdopendir.c (main): Test something other than
29386         /dev/null, since on Hurd that behaves like a directory.
29387
29388         test-symlink: port to GNU/Hurd
29389         * tests/test-symlink.h (test_symlink): Relax expected errno.
29390
29391         doc: tweak more cygwin information
29392         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
29393         now compatible with glibc.
29394         * doc/posix-functions/getopt.texi (getopt): Likewise.
29395
29396         getopt-gnu: add another test
29397         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
29398         guarantee behavior relied on by m4.
29399         * tests/test-getopt.c (main): Use it.
29400         * modules/getopt-posix-tests (Depends-on): Add setenv.
29401         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
29402
29403         getopt: fix compilation on darwin
29404         * lib/getopt.in.h (includes): Leave breadcrumbs during system
29405         include.
29406         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
29407         Reported by Ludovic Courtès.
29408
29409 2009-10-06  Bruno Haible  <bruno@clisp.org>
29410
29411         * modules/size_max (Description): Discourage its use.
29412         Reported by Simon Josefsson.
29413
29414 2009-10-06  Jim Meyering  <meyering@redhat.com>
29415
29416         linkat: avoid compilation failure
29417         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
29418
29419 2009-10-05  Eric Blake  <ebb9@byu.net>
29420
29421         linkat: support Linux 2.6.17
29422         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
29423         linkat on Linux, but allow cache variable override.
29424         * lib/linkat.c (rpl_linkat): Define override.
29425         * modules/linkat (Depends-on): Add symlinkat.
29426         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
29427         * modules/unistd (Makefile.am): Substitute it.
29428         * lib/unistd.in.h (linkat): Declare replacement.
29429         Reported by Pádraig Brady.
29430
29431         quotearg: port test to systems with C.UTF-8 locale
29432         * tests/test-quotearg.c (struct result_strings): Add another
29433         member, differentiating between C.ASCII and C.UTF-8 handling.
29434         (compare_strings): Add parameter.
29435         (main): Adjust all callers.
29436
29437         getopt: avoid clash with FreeBSD _getopt_internal
29438         * lib/getopt.in.h (_getopt_internal): Override the name.
29439         * lib/getopt_int.h (includes): Pick up any overrides.
29440         Reported by Reuben Thomas.
29441
29442         hash: allow C89 compilation
29443         * lib/hash.c (check_tuning): Move declaration before statement.
29444         Reported by Reuben Thomas.
29445
29446 2009-10-05  Karl Berry  <karl@gnu.org>
29447
29448         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
29449
29450 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
29451             Bruno Haible  <bruno@clisp.org>
29452
29453         * lib/uname.c (uname): Use a table-driven algorithm to compute
29454         Windows NT versions.
29455
29456 2009-10-04  Bruno Haible  <bruno@clisp.org>
29457
29458         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
29459         program_invocation_short_name.
29460         * modules/progname (configure.ac): Test for presence of
29461         program_invocation_short_name.
29462         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
29463
29464 2009-10-04  Bruno Haible  <bruno@clisp.org>
29465
29466         * lib/progname.c (set_program_name): Fix comment.
29467         Reported by Jim Meyering.
29468
29469 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
29470             Bruno Haible  <bruno@clisp.org>
29471
29472         * lib/uname.c: Include <string.h>.
29473         (uname): Do only one call to GetVersionEx in the common case.
29474
29475 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
29476             Bruno Haible  <bruno@clisp.org>
29477
29478         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
29479         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
29480         (uname): Add support for Windows CE and various non-x86 CPU types.
29481
29482 2009-10-03  Bruno Haible  <bruno@clisp.org>
29483
29484         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
29485         invocation to tests/configure.ac.
29486         Reported by Ian Beckwith <ianb@erislabs.net>.
29487
29488 2009-10-02  Eric Blake  <ebb9@byu.net>
29489
29490         fchdir: avoid compiler warning
29491         * lib/fchdir.c (canonicalize_file_name)
29492         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
29493
29494         test-open: support mingw errno values
29495         * tests/test-open.h (test_open): Relax test.
29496         * tests/test-fopen.h (test_fopen): Likewise.
29497         * tests/test-openat-safer.c (main): Likewise.
29498
29499         open: fix opening directory on mingw
29500         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
29501
29502         test-open: on GNU/Hurd, /dev/null is a directory
29503         * tests/test-fopen.h (main): Rename...
29504         (test_fopen): ...to this.  Use a guaranteed non-directory when
29505         confirming open behavior on trailing slash.
29506         * tests/test-openat-safer.c (main): Likewise.
29507         * tests/test-open.h (main): Likewise....
29508         (test_open): ...to this.
29509         * tests/test-fopen.c (main): Adjust caller.
29510         * tests/test-fopen-safer.c (main): Likewise.
29511         * tests/test-open.c (main): Likewise.
29512         * tests/test-fcntl-safer.c (main): Likewise.
29513         Reported by Samuel Thibault.
29514
29515         rename, fchdir: don't ignore chdir failure
29516         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
29517         * lib/rename.c (rpl_rename) [W32]: Likewise.
29518         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
29519         an empty destination directory if source cannot be renamed,
29520         although there is still possibility for failure.
29521         * doc/posix-functions/rename.texi (rename): Document the race.
29522         Reported by Jim Meyering.
29523
29524         maint: cleanup whitespace in recent commits
29525         * lib/rename.c (rpl_rename): Remove tabs.
29526         * tests/test-link.h (test_link): Likewise.
29527         * lib/fchdir.c (get_name): Likewise.
29528         Reported by Jim Meyering.
29529
29530 2009-10-02  Ben Pfaff  <blp@gnu.org>
29531
29532         relocatable-prog-wrapper: Add missing dependency on
29533         double-slash-root.
29534         * modules/relocatable-prog-wrapper: Add dependency.
29535         Reported by Ian Beckwith <ianb@erislabs.net>.
29536
29537 2009-10-02  Eric Blake  <ebb9@byu.net>
29538
29539         renameat: fix Solaris bugs
29540         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
29541         needed fixing.
29542         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
29543         * modules/stdio (Makefile.am): Substitute it.
29544         * lib/stdio.in.h (renameat): Declare replacement.
29545         * lib/renameat.c (rpl_renameat): Implement fix.
29546
29547         renameat: new module
29548         * modules/renameat: New file.
29549         * lib/renameat.c (renameat): Likewise.
29550         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
29551         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
29552         * modules/stdio (Makefile.am): Substitute them.
29553         * lib/stdio.in.h (renameat): Declare it.
29554         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
29555         * doc/posix-functions/renameat.texi (renameat): Likewise.
29556         * modules/renameat-tests: New test.
29557         * tests/test-renameat.c: Likewise.
29558
29559         rename: fix mingw bugs
29560         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
29561         directory overwrite bugs.
29562
29563         rename: fix another cygwin 1.5 bug
29564         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
29565         checks.
29566         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
29567         unnecessary cygwin workarounds.  Also work around bug with moving
29568         full directory onto an empty one.
29569         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
29570
29571         rename-dest-slash: merge into rename module
29572         * modules/rename-dest-slash (Status): Mark obsolete.
29573         (Depends-on): Add rename.
29574         (Files): Let rename do it all.
29575         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
29576         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
29577         * m4/rename-dest-slash.m4: ...so this file can be deleted.
29578         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
29579         * lib/rename.c (rpl_rename): Update comments.
29580
29581         rename: fix cygwin 1.5.x bugs
29582         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
29583         * lib/rename.c (rpl_rename): Work around them.
29584         * modules/rename (Depends-on): Add same-inode.
29585
29586         rename: fix Solaris 10 bug
29587         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
29588         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
29589         was the only bug.
29590
29591         rename: fix Solaris 9 bug
29592         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
29593         on non-directory.  Avoid calling exit.
29594         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
29595         strdup.
29596         * modules/rename-tests (Depends-on): Drop lstat.
29597         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
29598         (gl_PREREQ_RENAME): Delete unused macro.
29599
29600         rename-dest-slash: fix NetBSD bug
29601         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
29602         links.
29603         * modules/rename-dest-slash (Depends-on): Add same-inode.
29604
29605         rename-tests: new test, exposes several platform bugs
29606         * modules/rename-tests: New file.
29607         * tests/test-rename.h: Likewise.
29608         * tests/test-rename.c: Likewise.
29609         * doc/posix-functions/rename.texi (rename): Improve documentation,
29610         including bugs that will eventually be fixed in gnulib.
29611
29612 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
29613
29614         * lib/uname.c: Include <stdlib.h>
29615         (uname): Assume version info is available.
29616
29617 2009-10-02  Jim Meyering  <meyering@redhat.com>
29618
29619         gnu-web-doc-update: correct --help output
29620         * build-aux/gnu-web-doc-update: Make --help output relevant.
29621
29622         gnu-web-doc-update: add standard options
29623         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
29624
29625         gnu-web-doc-update: New module.
29626         Use this script to automatically update the on-line web documentation
29627         for your GNU project at http://www.gnu.org/software/$pkg/manual/
29628         * modules/gnu-web-doc-update: New file, from coreutils.
29629         * build-aux/gnu-web-doc-update: New script.
29630
29631 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
29632
29633         link: LoadLibrary is not needed.
29634         * lib/link.c: Use GetModuleHandle.
29635
29636 2009-10-01  Eric Blake  <ebb9@byu.net>
29637
29638         getopt: bump serial number
29639         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
29640         change.
29641
29642         tests: tighten link, rmdir, and remove tests
29643         * tests/test-link.h (includes): No need to use <config.h> here.
29644         Clean up if directory hard link was created, otherwise test for
29645         trailing '.'.
29646         * tests/test-linkat.c (main): Simplify.
29647         * tests/test-remove.c (main): Enhance test for trailing '.'.
29648         * tests/test-rmdir.h (test_rmdir_func): Likewise.
29649
29650 2009-10-01  Jim Meyering  <meyering@redhat.com>
29651
29652         maint.mk: requiring "make major" was annoying, for a "minor" release.
29653         What is intended is "stable", to contrast with alpha and beta,
29654         so require "make stable", not "make major".
29655         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
29656         (get_tool_versions): Likewise.
29657         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
29658
29659 2009-09-30  Ben Pfaff  <blp@gnu.org>
29660
29661         Fix broken build of replacement for Windows tmpfile().
29662         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
29663         flags argument added along with the 'mkostemp' module.
29664
29665 2009-09-28  Bruno Haible  <bruno@clisp.org>
29666
29667         Avoid identifier clash with POSIX function 'remove' defined as a macro.
29668         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
29669         to 'remove_elt'.
29670         (gl_list_remove): Update.
29671         * lib/gl_list.c (gl_list_remove): Update.
29672         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
29673         to 'remove_elt'.
29674         (gl_oset_remove): Update.
29675         * lib/gl_list.c (gl_oset_remove): Update.
29676         Reported by Eric Blake.
29677
29678 2009-09-28  Eric Blake  <ebb9@byu.net>
29679
29680         doc: mention yet more cygwin 1.7 status
29681         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
29682         cygwin.
29683         * doc/glibc-functions/execvpe.texi (execvpe): New file.
29684         * doc/gnulib.texi (Glibc unistd.h): Mention it.
29685
29686         argp: fix test failure
29687         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
29688         that are not upper-case.  Pass correct range to tolower.
29689
29690 2009-09-27  Jim Meyering  <meyering@redhat.com>
29691
29692         test-yesno: work around sparc-dash here-document infelicity
29693         Without this change, the literal \177 byte in a here document
29694         would make dash 0.5.5.1-3 access uninitialized memory.
29695         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
29696         Instead, use a marker, "@", and filter through tr to create the desired
29697         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
29698
29699 2009-09-27  Bruno Haible  <bruno@clisp.org>
29700
29701         Disable untested support for new flavours of ACLs on AIX.
29702         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
29703         progress.
29704         * lib/set-mode-acl.c (qset_acl): Likewise.
29705
29706 2008-12-07  Bruno Haible  <bruno@clisp.org>
29707
29708         Add support for new flavours of ACLs on AIX. (Untested.)
29709         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
29710         (file_has_acl): Add support for newer AIX.
29711         * lib/set-mode-acl.c (qset_acl): Likewise.
29712         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
29713         Rainer Tammer <tammer@tammer.net>.
29714
29715 2009-09-26  Eric Blake  <ebb9@byu.net>
29716
29717         argp: fix compilation of getopt
29718         * lib/getopt.in.h (includes): Use different guard than glibc.
29719         Reported by Sergey Poznyakoff.
29720
29721         doc: mention more cygwin 1.7 status
29722         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
29723         bug.
29724         * doc/posix-functions/execl.texi (execl): Likewise.
29725         * doc/posix-functions/execle.texi (execle): Likewise.
29726         * doc/posix-functions/execlp.texi (execlp): Likewise.
29727         * doc/posix-functions/execv.texi (execv): Likewise.
29728         * doc/posix-functions/execve.texi (execve): Likewise.
29729         * doc/posix-functions/execvp.texi (execvp): Likewise.
29730         * doc/glibc-functions/canonicalize_file_name.texi
29731         (canonicalize_file_name): Cygwin 1.7 now provides this.
29732         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
29733         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
29734         on AT_SYMLINK_NOFOLLOW.
29735
29736 2009-09-24  Eric Blake  <ebb9@byu.net>
29737
29738         test-linkat: make test more robust
29739         * tests/test-linkat.c (main): Avoid collision with EEXIST.
29740
29741         getopt: fix inclusion guards for cygwin
29742         * modules/getopt-posix (Depends-on): Add include-next.
29743         (Makefile.am): Substitute more items in replacement header.
29744         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
29745         <getopt.h>.
29746         * lib/getopt.in.h (includes): Use split inclusion guard, and
29747         prefer <getopt.h> over include <unistd.h> when one is present.
29748         (option): Also override name of 'struct option'.
29749
29750         same-inode: revert prior change; it is not yet ready
29751         * NEWS: Undo mention of this change.
29752         * lib/same-inode.h (same-inode.h): Undo tri-state change.
29753         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
29754         * lib/cycle-check.c (cycle_check): Likewise.
29755         * lib/same.c (same_name): Likewise.
29756         * lib/at-func2.c (at_func2): Likewise.
29757
29758 2009-09-23  Eric Blake  <ebb9@byu.net>
29759
29760         linkat: new module
29761         * modules/linkat: New file.
29762         * lib/at-func2.c (at_func2): Likewise.
29763         * lib/linkat.c (linkat): Likewise.
29764         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
29765         * lib/openat-priv.h (at_func2): Add declaration.
29766         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
29767         * modules/unistd (Makefile.am): Substitute them.
29768         * lib/unistd.in.h (linkat): Declare it.
29769         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
29770         * doc/posix-functions/linkat.texi (linkat): Likewise.
29771         * doc/posix-functions/link.texi (link): Tweak wording.
29772         * tests/test-link.c (main): Move guts...
29773         * tests/test-link.h (test_link): ...into new file.
29774         * modules/linkat-tests: New test.
29775         * tests/test-linkat.c: Likewise.
29776         * modules/link-tests (Files): Ship new file.
29777         (Depends-on): Add stdbool.
29778
29779         dirname: add library-safe mdir_name
29780         * lib/dirname.h (mdir_name): New prototype.
29781         * lib/dirname.c (dir_name): Move guts...
29782         (mdir_name): ...to new function that avoids xalloc_die.
29783
29784         fchdir: another mingw fix
29785         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
29786         * lib/fchdir.c (get_name): New helper method; skips canonicalize
29787         on mingw (where it has not yet been ported), and make it optional
29788         elsewhere.
29789         (_gl_register_fd): Use it.
29790
29791         same-inode: make SAME_INODE tri-state, to port to mingw
29792         * NEWS: Mention this change.
29793         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
29794         st_ino always being 0.
29795         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
29796         * lib/cycle-check.c (cycle_check): Likewise.
29797         * lib/same.c (same_name): Likewise.
29798
29799         lstat: avoid mingw compilation error
29800         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
29801         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
29802         lstat ourselves.
29803         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
29804         was adequate.
29805         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
29806         the checks for lstat.
29807         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
29808
29809         link: fix test failure on Solaris 9
29810         * lib/link.c (rpl_link): Don't assume link will catch bogus
29811         trailing slash on source.
29812
29813         test-symlinkat: enhance test
29814         * tests/test-readlink.c (main): Move guts...
29815         * tests/test-readlink.h (test_readlink): ...into new file.
29816         * tests/test-symlink.c (main): Move guts...
29817         * tests/test-symlink.h (test_symlink): ...into new file.
29818         * tests/test-symlinkat.c (main): Use new files for further
29819         coverage.
29820         (do_symlink, do_readlink): New helper functions.
29821         * modules/symlink-tests (Files): Ship new file.
29822         (Depends-on): Add stdbool.
29823         * modules/readlink-tests (Files): Ship new file.
29824         (Depends-on): Add stdbool.
29825         * modules/symlinkat-tests (Files): Use new files.
29826
29827 2009-09-23  Eric Blake  <ebb9@byu.net>
29828
29829         readlink: document portability issue with symlink length
29830         * doc/posix-functions/lstat.texi (lstat): Mention that some file
29831         systems have bogus st_size on symlinks, and mention the
29832         areadlink-with-size module.
29833         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
29834         * doc/posix-functions/readlink.texi (readlink): Mention the
29835         areadlink module, and ERANGE failure.
29836         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
29837         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
29838
29839         readlink: fix Solaris 9 bug with trailing slash
29840         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
29841         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
29842         * doc/posix-functions/readlink.texi (readlink): Document this.
29843         * modules/readlink-tests: New test.
29844         * tests/test-readlink.c: Likewise.
29845
29846         readlink: fix cygwin 1.5.x bug with return type
29847         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
29848         * lib/unistd.in.h (readlink): Use ssize_t.
29849         * lib/readlink.c (readlink): Likewise.
29850         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
29851         * modules/unistd (Makefile.am): Substitute it.
29852         * lib/unistd.in.h (readlink): Declare replacement.
29853         * doc/posix-functions/readlink.texi (readlink): Document this.
29854
29855         symlink: use throughout gnulib
29856         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
29857         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
29858         symlink is not used.
29859         * modules/symlinkat (Depends-on): Add symlink.
29860         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
29861         * modules/canonicalize-tests (Depends-on): Likewise.
29862         * modules/lstat-tests (Depends-on): Likewise.
29863         * modules/openat-tests (Depends-on): Likewise.
29864         * modules/remove-tests (Depends-on): Likewise.
29865         * modules/rmdir-tests (Depends-on): Likewise.
29866         * modules/unlink-tests (Depends-on): Likewise.
29867         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
29868         * tests/test-canonicalize.c (symlink): Likewise.
29869         * tests/test-fstatat.c (symlink): Likewise.
29870         * tests/test-lstat.c (symlink): Likewise.
29871         * tests/test-remove.c (symlink): Likewise.
29872         * tests/test-rmdir.c (symlink): Likewise.
29873         * tests/test-unlink.c (symlink): Likewise.
29874         * tests/test-unlinkat.c (symlink): Likewise.
29875
29876         symlink: new module, for Solaris 9 bug
29877         * modules/symlink: New file.
29878         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
29879         * lib/symlink.c: Likewise.
29880         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
29881         * modules/unistd (Makefile.am): Substitute them.
29882         * lib/unistd.in.h (symlink): Declare replacement.
29883         * MODULES.html.sh (File system functions): Mention it.
29884         * doc/posix-functions/symlink.texi (symlink): Likewise.
29885         * modules/symlink-tests: New test.
29886         * tests/test-symlink.c: Likewise.
29887
29888 2009-09-23  Bruno Haible  <bruno@clisp.org>
29889
29890         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
29891         when needed.
29892         Test case: gnulib-tool --import --with-tests atexit inttypes.
29893         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
29894
29895 2009-09-23  Bruno Haible  <bruno@clisp.org>
29896
29897         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
29898         subcommand, not in a subshell.
29899
29900 2009-09-22  Eric Blake  <ebb9@byu.net>
29901
29902         unistd: sort replacement declarations
29903         * lib/unistd.in.h: Sort declarations.
29904
29905         open, openat: minor optimization
29906         * lib/open.c (open): If open succeeded, len is non-zero.
29907         * lib/openat.c (rpl_openat): Likewise.
29908
29909         link-follow: ensure correct result
29910         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
29911         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
29912         distinguish between possible failures.
29913
29914 2009-09-21  Eric Blake  <ebb9@byu.net>
29915
29916         fts: avoid compiler warning
29917         * lib/fts.c (dirent_inode_sort_may_be_useful)
29918         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
29919
29920 2009-09-19  Bruno Haible  <bruno@clisp.org>
29921
29922         * lib/progreloc.c (canonicalize_file_name): New declaration.
29923
29924 2009-09-19  Eric Blake  <ebb9@byu.net>
29925
29926         link: fix quoting
29927         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
29928
29929         openat: fix openat bugs on Solaris 9
29930         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
29931         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
29932         * modules/openat (Depends-on): Add open.
29933         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
29934         * modules/fcntl-h (Makefile.am): Substitute it.
29935         * lib/fcntl.in.h (openat): Declare replacement.
29936         * doc/posix-functions/openat.texi (openat): Document this.
29937
29938         openat: move fstatat and unlinkat into correct files
29939         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
29940         compiled.
29941         * lib/openat.c (fstatat, unlinkat): Move...
29942         * lib/fstatat.c (fstatat): ...into correct files.
29943         * lib/unlinkat.c (unlinkat): Likewise.
29944
29945         openat: fix unlinkat bugs on Solaris 9
29946         * lib/unlinkat.c (unlinkat): New file.
29947         * modules/openat (Depends-on): Add unlink.
29948         (Files): Distribute it.
29949         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
29950         trailing slash behavior is broken.
29951         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
29952         * modules/unistd (Makefile.am): Substitute it.
29953         * lib/unistd.in.h (unlinkat): Declare replacement.
29954         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
29955
29956         openat: fix fstatat bugs on Solaris 9
29957         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
29958         stat.
29959         * doc/posix-functions/fstatat.texi (fstatat): Document this.
29960
29961         test-unlinkat: enhance test, to expose Solaris 9 bug
29962         * tests/test-unlink.c (main): Factor guts...
29963         * tests/test-unlink.h (test_rmdir_func): ...into new file.
29964         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
29965         * tests/test-rmdir.c (main): Adjust caller.
29966         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
29967         (unlinker): New helper function.
29968         (rmdirat): Enhance check.
29969         * modules/rmdir-tests (Depends-on): Add stdbool.
29970         * modules/unlink-tests (Depends-on): Likewise.
29971         (Files): Add test-unlink.h.
29972         * modules/openat-tests (Files): Likewise.
29973         (Depends-on): Add unlinkdir.
29974
29975         test-fstatat: new test, to expose Solaris 9 bugs
29976         * tests/test-stat.c (main): Factor guts...
29977         * tests/test-stat.h (test_stat_func): ...into new file.
29978         * tests/test-lstat.c (main): Factor guts...
29979         * tests/test-lstat.h (test_lstat_func): ...into new file.
29980         * tests/test-fstatat.c: New file.
29981         * modules/stat-tests (Files): Add test-stat.h.
29982         * modules/lstat-tests (Files): Add test-lstat.h.
29983         (Depends-on): Add stdbool.
29984         * modules/openat-tests (Depends-on): Add pathmax.
29985         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
29986         (Makefile.am): Run new test.
29987
29988         remove: new module, for mingw and Solaris 9 bugs
29989         * modules/remove: New file.
29990         * lib/remove.c: Likewise.
29991         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
29992         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
29993         * modules/stdio (Makefile.am): Use them.
29994         * lib/stdio.in.h (remove): Declare replacement.
29995         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
29996         * doc/posix-functions/remove.texi (remove): Likewise.
29997         * modules/remove-tests: New test.
29998         * tests/test-remove.c: Likewise.
29999
30000         unlink: new module, for Solaris 9 bug
30001         * modules/unlink: New file.
30002         * lib/unlink.c: Likewise.
30003         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
30004         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
30005         * modules/unistd (Makefile.am): Use them.
30006         * lib/unistd.in.h (stat): Declare replacement.
30007         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
30008         * doc/posix-functions/unlink.texi (unlink): Likewise.
30009         * modules/unlink-tests: New test.
30010         * tests/test-unlink.c: Likewise.
30011
30012         lstat: fix Solaris 9 bug
30013         * lib/lstat.c (lstat): Also check for trailing slash on
30014         non-symlink, non-directories.  Use stat module to simplify logic.
30015         * doc/posix-functions/lstat.texi (lstat): Document it.
30016         * modules/lstat-tests (Depends-on): Add errno, same-inode.
30017         (configure.ac): Check for symlink.
30018         * tests/test-lstat.c (main): Add more tests.
30019
30020         stat: add as dependency to other modules
30021         * modules/chown (Depends-on): Add stat.
30022         * modules/euidaccess (Depends-on): Likewise.
30023         * modules/fchdir (Depends-on): Likewise.
30024         * modules/isdir (Depends-on): Likewise.
30025         * modules/link (Depends-on): Likewise.
30026         * modules/lstat (Depends-on): Likewise.
30027         * modules/mkdir-p (Depends-on): Likewise.
30028         * modules/modechange (Depends-on): Likewise.
30029         * modules/open (Depends-on): Likewise.
30030         * modules/readlink (Depends-on): Likewise.
30031         * modules/same (Depends-on): Likewise.
30032
30033         stat: fix Solaris 9 bug
30034         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
30035         slash.
30036         * lib/stat.c (rpl_stat): Work around it.
30037         * doc/posix-functions/stat.texi (stat): Update documentation.
30038
30039         stat: new module, for mingw bug
30040         * modules/stat: New file.
30041         * lib/stat.c: Likewise.
30042         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
30043         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
30044         * modules/sys_stat (Makefile.am): Use them.
30045         * lib/sys_stat.in.h (stat): Declare replacement.
30046         * lib/openat.c (fstatat): Deal with lstat and stat being function
30047         macros.
30048         * modules/openat (Depends-on): Add inline.
30049         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
30050         * doc/posix-functions/stat.texi (stat): Likewise.
30051         * modules/stat-tests: New test.
30052         * tests/test-stat.c: Likewise.
30053
30054 2009-09-19  Jim Meyering  <meyering@redhat.com>
30055
30056         syntax-check: detect unnecessary inclusion of canonicalize.h
30057         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
30058
30059 2009-09-19  Eric Blake  <ebb9@byu.net>
30060
30061         canonicalize-lgpl: adjust clients to use correct header
30062         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
30063         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
30064         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
30065         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
30066         * lib/progreloc.c (includes): Likewise.
30067
30068 2009-09-19  Jim Meyering  <meyering@redhat.com>
30069
30070         test-posixtm.c: correct a comment
30071         * tests/test-posixtm.c: Correct first-line comment.
30072         Spotted by Eric Blake.
30073
30074 2009-09-16  Jim Meyering  <meyering@redhat.com>
30075
30076         posixtm-tests: make T const-correct; add a test case
30077         * tests/test-posixtm.c (T): Declare const.
30078         Add a test for -(2^31+1).
30079         Remove useless can-succeed-only-in-2002 test.
30080
30081         posixtm-tests: adjust the sole failing test
30082         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
30083         expected output matches what mktime now produces.  Cross-checked via
30084         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
30085
30086         posixtm: move #ifdef'd tests into a new module
30087         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
30088         * tests/test-posixtm.c: ... this new file.
30089         * modules/posixtm-tests: New module.
30090
30091 2009-09-19  Eric Blake  <ebb9@byu.net>
30092
30093         openat: simplify use of at-func.c
30094         * lib/at-func.c (includes): Include prerequisites here, to
30095         simplify requirements on client files.
30096         * lib/openat-priv.h: Add double-inclusion guard.
30097         * lib/faccessat.c (includes): Simplify.
30098         * lib/fchmodat.c (includes): Likewise.
30099         * lib/fchownat.c (includes): Likewise.
30100         * lib/mkdirat.c (includes): Likewise.
30101         * lib/mkfifoat.c (includes): Likewise.
30102         * lib/symlinkat.c (includes): Likewise.
30103
30104         openat: allow return of fd 0
30105         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
30106         * modules/save-cwd (Depends-on): Replace fcntl-safer with
30107         unistd-safer.
30108         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
30109         <fcntl.h>; this module does not leak fds.
30110         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
30111         must be allowed to return 0, leaving openat_safer to add the
30112         safety.
30113         (openat_permissive): Avoid writing to just-opened fd 2 if
30114         restoring the current directory fails.
30115         * lib/openat-die.c (openat_restore_fail): Add comment.
30116         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
30117         (save_cwd): Guarantee safe fd, but without use of open_safer.
30118         * tests/test-openat.c: New test.
30119         * modules/openat-tests (Files, Makefile.am): Distribute and build
30120         new file.
30121
30122         relocatable-prog-wrapper: fix build
30123         * modules/relocatable-prog-wrapper (Files): Update name of
30124         canonicalize m4 file, broken on 2009-09-17.
30125         Reported by emad hajjar <aleppos@hotmail.com>.
30126
30127 2009-09-19  Bruno Haible  <bruno@clisp.org>
30128
30129         * lib/safe-alloc.h: Use the standard header with GPL copyright.
30130         * lib/safe-alloc.c: Likewise.
30131         Reported by Ian Beckwith <ianb@erislabs.net>.
30132
30133 2009-09-18  Bruno Haible  <bruno@clisp.org>
30134
30135         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
30136         Reported by <erobles@sensacd.com.mx>.
30137
30138 2009-09-17  Eric Blake  <ebb9@byu.net>
30139
30140         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
30141         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
30142         slashes when checking if last component is missing.
30143         * tests/test-canonicalize.c (main): Test this.
30144
30145         canonicalize, canonicalize-lgpl: honor // if distinct from /
30146         * modules/canonicalize (Files): Add double-slash-root.m4.
30147         * modules/canonicalize-lgpl (Files): Likewise.
30148         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
30149         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
30150         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
30151         fallback definition.
30152         (canonicalize_filename_mode): Use it to protect //.
30153         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
30154         (__realpath): Likewise.
30155         * tests/test-canonicalize.c (main): Test this.
30156         * tests/test-canonicalize-lgpl.c (main): Likewise.
30157         * modules/canonicalize-tests (Depends-on): Add same-inode.
30158         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
30159
30160         canonicalize-lgpl: fix glibc bug with trailing slash
30161         * m4/canonicalize-lgpl.m4: Move contents...
30162         * m4/canonicalize.m4: ...here.
30163         (gl_CANONICALIZE_LGPL): Factor realpath check...
30164         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
30165         glibc 2.3.5 bug, fixed 2005-04-27.
30166         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
30167         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
30168         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
30169         * modules/canonicalize-lgpl (Files): Manage file rename.
30170         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
30171         * modules/stdlib (Makefile.am): Substitute witness.
30172         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
30173         is needed.
30174         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
30175         replacement is required.
30176         * lib/canonicalize.c (canonicalize_file_name): Likewise.
30177         * doc/glibc-functions/canonicalize_file_name.texi
30178         (canonicalize_file_name): Document this.
30179         * doc/posix-functions/realpath.texi (realpath): Likewise.
30180
30181         canonicalize-lgpl: reject non-directory with trailing slash
30182         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
30183         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
30184         catches failures in glibc 2.3.5.
30185         * tests/test-canonicalize.c (main): Likewise.
30186
30187         canonicalize-lgpl: use native realpath if it works
30188         * lib/canonicalize-lgpl.c (realpath): Guard with
30189         FUNC_REALPATH_WORKS.
30190         * lib/stdlib.in.h (realpath): Make declaration optional based on
30191         HAVE_REALPATH.
30192         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
30193         native realpath works.
30194         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
30195         * modules/stdlib (Makefile.am): Substitute witness.
30196
30197         canonicalize, canonicalize-lgpl: use <stdlib.h>
30198         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
30199         (Include): Mention <stdlib.h>.
30200         (configure.ac): Mention functions we provide.
30201         * modules/canonicalize (configure.ac): Likewise.
30202         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
30203         realpath if canonicalize_file_name is missing.
30204         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
30205         * modules/stdlib (Makefile.am): Substitute witnesses.
30206         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
30207         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
30208         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
30209         * NEWS: Document this.
30210         * doc/glibc-functions/canonicalize_file_name.texi
30211         (canonicalize_file_name): Likewise.
30212         * doc/posix-functions/realpath.texi (realpath): Likewise.
30213         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
30214
30215         test-canonicalize: consolidate into single C program
30216         * tests/test-canonicalize.sh: Delete; move setup into...
30217         * tests/test-canonicalize.c (main): ...the program, making it
30218         easier to run in debugger.  Add some tests.
30219         * modules/canonicalize-tests (Files): Remove unused file.
30220         (Depends-on): Add progname.
30221         (configure.ac, Makefile.am): Simplify.
30222
30223         test-canonicalize-lgpl: consolidate into single C program
30224         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
30225         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
30226         easier to run in debugger.  Add some tests.
30227         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
30228         (configure.ac, Makefile.am): Simplify.
30229
30230         canonicalize: avoid resolvepath
30231         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
30232         unnecessary checks.
30233         * lib/canonicalize.c (includes): Simplify.
30234         (canonicalize_file_name): Drop resolvepath implementation.
30235         * modules/canonicalize (Depends-on): Drop filenamecat.
30236
30237         canonicalize: don't lose errno
30238         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
30239         over calls to free.
30240
30241         canonicalize: simplify errno handling
30242         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
30243         assignment.
30244
30245         canonicalize, canonicalize-lgpl: update module dependencies
30246         * modules/canonicalize (Depends-on): Add extensions, lstat,
30247         pathmax, stdlib.
30248         (Files): Drop pathmax.h.
30249         (configure.ac): Adjust macro name.
30250         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
30251         lstat, stdlib, sys_stat.
30252         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
30253         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
30254         extensions.
30255         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
30256         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
30257         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
30258         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
30259         declaration, if available.
30260         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
30261         we can rely on the readlink module.
30262         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
30263         (includes): Use <unistd.h> unconditionally.
30264
30265 2009-09-17  Eric Blake  <ebb9@byu.net>
30266
30267         maint: make Include sections of modules consistent
30268         * modules/alloca: Use only header name; no need to list #include.
30269         * modules/alloca-opt: Likewise.
30270         * modules/arpa_inet: Likewise.
30271         * modules/canon-host: Likewise.
30272         * modules/configmake: Likewise.
30273         * modules/dirent: Likewise.
30274         * modules/eealloc: Likewise.
30275         * modules/environ: Likewise.
30276         * modules/fchdir: Likewise.
30277         * modules/fcntl: Likewise.
30278         * modules/fcntl-h: Likewise.
30279         * modules/gethrxtime: Likewise.
30280         * modules/gettime: Likewise.
30281         * modules/ignore-value: Likewise.
30282         * modules/inet_ntop: Likewise.
30283         * modules/inet_pton: Likewise.
30284         * modules/inttypes: Likewise.
30285         * modules/isnand-nolibm: Likewise.
30286         * modules/isnanf-nolibm: Likewise.
30287         * modules/mbchar: Likewise.
30288         * modules/mbfile: Likewise.
30289         * modules/mbiter: Likewise.
30290         * modules/mbuiter: Likewise.
30291         * modules/netdb: Likewise.
30292         * modules/netinet_in: Likewise.
30293         * modules/nproc: Likewise.
30294         * modules/pagealign_alloc: Likewise.
30295         * modules/poll: Likewise.
30296         * modules/printf-frexp: Likewise.
30297         * modules/pthread: Likewise.
30298         * modules/putenv: Likewise.
30299         * modules/random_r: Likewise.
30300         * modules/relocatable-prog: Likewise.
30301         * modules/search: Likewise.
30302         * modules/select: Likewise.
30303         * modules/selinux-h: Likewise.
30304         * modules/settime: Likewise.
30305         * modules/signal: Likewise.
30306         * modules/size_max: Likewise.
30307         * modules/socklen: Likewise.
30308         * modules/ssize_t: Likewise.
30309         * modules/stdarg: Likewise.
30310         * modules/stdbool: Likewise.
30311         * modules/stddef: Likewise.
30312         * modules/stdint: Likewise.
30313         * modules/stdio: Likewise.
30314         * modules/stdlib: Likewise.
30315         * modules/string: Likewise.
30316         * modules/strings: Likewise.
30317         * modules/sys_file: Likewise.
30318         * modules/sys_ioctl: Likewise.
30319         * modules/sys_select: Likewise.
30320         * modules/sys_socket: Likewise.
30321         * modules/sys_stat: Likewise.
30322         * modules/sys_time: Likewise.
30323         * modules/sys_times: Likewise.
30324         * modules/sys_utsname: Likewise.
30325         * modules/sys_wait: Likewise.
30326         * modules/sysexits: Likewise.
30327         * modules/time: Likewise.
30328         * modules/times: Likewise.
30329         * modules/tmpfile: Likewise.
30330         * modules/trim: Likewise.
30331         * modules/unistd: Likewise.
30332         * modules/wchar: Likewise.
30333         * modules/wctype: Likewise.
30334
30335 2009-09-17  Bruno Haible  <bruno@clisp.org>
30336
30337         Make getdate.y compile on QNX and NetBSD 5 / i386.
30338         * m4/getdate.m4 (gl_GETDATE): Conditionally define
30339         TIME_T_FITS_IN_LONG_INT.
30340         * lib/getdate.y (long_time_t): New type.
30341         (relative_time): Change type of 'seconds' field to long_time_t.
30342         (get_date): Update types of local variables. Check against overflow
30343         during conversion from long_time_t to time_t.
30344         Reported by Matt Kraai <kraai@ftbfs.org>
30345         and Hasso Tepper <hasso@netbsd.org>.
30346
30347 2009-09-17  Bruno Haible  <bruno@clisp.org>
30348
30349         * modules/COPYING: Update copyright years.
30350         * modules/README: Likeiwse.
30351         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
30352         Reported by Ian Beckwith <ianb@erislabs.net>.
30353
30354 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
30355
30356         * users.txt: Update references for gnuit package.
30357
30358 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
30359
30360         * m4/getdelim.m4: Fix typo in copyright line.
30361
30362 2009-09-17  Bruno Haible  <bruno@clisp.org>
30363
30364         * lib/atoll.c: Use the standard header with GPL copyright.
30365         * lib/argz.in.h: Likewise.
30366         * lib/glob.c: Likewise.
30367         * lib/glob-libc.h: Likewise.
30368         * lib/random_r.c: Likewise.
30369         * lib/siglist.h: Likewise.
30370         * lib/strsignal.c: Likewise.
30371         Reported by Ian Beckwith <ianb@erislabs.net>.
30372
30373 2009-09-17  Eric Blake  <ebb9@byu.net>
30374
30375         rmdir: ensure correct dependency order
30376         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
30377
30378 2009-09-17  Bruno Haible  <bruno@clisp.org>
30379
30380         Disable assertion that fails on NetBSD 5 / i386.
30381         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
30382         Reported by Sam Steingold <sds@gnu.org>
30383         and Hasso Tepper <hasso@netbsd.org>.
30384
30385 2009-09-16  Eric Blake  <ebb9@byu.net>
30386
30387         unlinkdir: port to mingw
30388         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
30389         on which no one can unlink a directory.
30390
30391         stdlib: sort witness names
30392         * modules/stdlib (Makefile.am): Sort replacements.
30393         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
30394         * lib/stdlib.in.h: Likewise.
30395
30396         parse-duration-tests: avoid link failure
30397         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
30398         LIBINTL.
30399         Reported by Tom G. Christensen.
30400
30401         openat-tests: ensure unlinkat behaves like rmdir
30402         * tests/test-rmdir.c (main): Factor guts...
30403         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
30404         * modules/rmdir-tests (Files): Ship new file.
30405         * modules/openat-tests: New test.
30406         * tests/test-unlinkat.c: Likewise.
30407
30408         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
30409         * modules/rmdir-errno (Status, Notice): Now obsolete.
30410
30411         rmdir: work around cygwin 1.5.x and mingw bugs
30412         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
30413         * lib/rmdir.c (rmdir): Work around it.
30414         * modules/rmdir (Status, Notice): No longer obsolete.
30415         (Files): Add dos.m4.
30416         (Depends-on): Add unistd.
30417         (configure.ac): Set witnesses.
30418         (License): Relax to LGPLv2+.
30419         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
30420         * modules/unistd (Makefile.am): Substitute witnesses.
30421         * lib/unistd.in.h (rmdir): Declare replacement.
30422         * doc/posix-functions/rmdir.texi (rmdir): Document this.
30423         * modules/rmdir-tests: New tests.
30424         * tests/test-rmdir.c: Likewise.
30425
30426 2009-09-15  Eric Blake  <ebb9@byu.net>
30427
30428         fchdir: improve use of replacement functions
30429         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
30430         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
30431         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
30432         REPLACE_CLOSEDIR.
30433         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
30434         * modules/sys_stat (Makefile.am): Substitute correct witness.
30435         * modules/dirent (Makefile.am): Likewise.
30436         * modules/unistd (Makefile.am): Likewise.
30437         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
30438         * lib/unistd.in.h (dup): Likewise.
30439         * lib/sys_stat.in.h (fstat): Likewise.
30440
30441         maint: ignore gnulib-tool temp files
30442         * .gitignore: Ignore files created during gnulib-tool --test.
30443
30444 2009-09-13  Jim Meyering  <meyering@redhat.com>
30445
30446         posixtm: don't reject a time that specify "60" as the number of seconds
30447         * lib/posixtm.c (posixtime): The code to reject invalid dates
30448         would also reject a time specified with the .60 suffix.
30449         But POSIX allows that, in order to accommodate leap seconds.
30450         So don't reject it.
30451         (main): Adjust tests accordingly.
30452         * modules/posixtm (Depends-on): Add stpcpy.
30453
30454 2009-09-11  Jim Meyering  <meyering@redhat.com>
30455
30456         announce-gen: include [$release_type] in emitted Subject:
30457         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
30458         e.g., [stable] in the emitted Subject: line.
30459
30460 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30461
30462         Remove obsolete macros from several modules.
30463         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
30464         obsolete Autoconf macros with their modern counterparts.
30465         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
30466         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
30467         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
30468         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
30469         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
30470         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
30471         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
30472         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
30473         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
30474         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
30475         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
30476         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
30477         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
30478         * m4/sockets.m4 (gl_SOCKETS): Likewise.
30479         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
30480         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
30481         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
30482         * m4/time_r.m4 (gl_TIME_R): Likewise.
30483         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
30484         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
30485         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
30486
30487         Fix copyright header in build-aux scripts.
30488         * build-aux/git-version-gen: Fix copyright header to match GPLv3
30489         recommendation.
30490         * build-aux/ncftpput-ftp: Likewise.
30491         * build-aux/update-copyright: Likewise.
30492
30493 2009-09-09  Eric Blake  <ebb9@byu.net>
30494
30495         test-link: allow Linux choice of errno
30496         * tests/test-link.c (main): Relax test for alternate error.
30497
30498         strndup: fix improper m4 caching
30499         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
30500         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
30501         (gl_PREREQ_STRNDUP): Delete.
30502         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
30503         * modules/string (Makefile.am): Substitute it.
30504         * lib/string.in.h (strndup): Modernize prototype.
30505
30506         getcwd: port to mingw
30507         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
30508         different from the POSIX assumptions made throughout the getcwd
30509         module; fortunately, the mingw getcwd does not need replacement.
30510         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
30511         * modules/getcwd-tests: New test.
30512         * tests/test-getcwd.c: Likewise.
30513
30514         link: fix platform bugs
30515         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
30516         * lib/link.c (link): Work around them.  Fix related mingw bug.
30517         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
30518         * modules/unistd (Makefile.am): Substitute it.
30519         * lib/unistd.in.h (link): Declare replacement.
30520         * doc/posix-functions/link.texi (link): Document this.
30521         * modules/link (Depends-on): Add strdup-posix, sys_stat.
30522
30523         test-link: consolidate into single C program, test more cases
30524         * tests/test-link.sh: Delete.
30525         * tests/test-link.c: Test more error conditions.  Exposes bugs on
30526         at least Cygwin and Solaris.
30527         * modules/link-tests (Files): Remove unused file.
30528         (Depends-on): Add errno, sys_stat.
30529         (Makefile.am): Simplify.
30530
30531 2009-09-08  Bruno Haible  <bruno@clisp.org>
30532
30533         Work around towlower, towupper bug on mingw.
30534         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
30535         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
30536         * doc/posix-functions/towlower.texi: Mention the mingw bug.
30537         * doc/posix-functions/towupper.texi: Likewise.
30538         Reported by Eric Blake.
30539
30540 2009-09-08  Jim Meyering  <meyering@redhat.com>
30541
30542         build: don't try to run autoheader if we don't use it
30543         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
30544         is not used in configure.ac.
30545
30546 2009-09-08  Eric Blake  <ebb9@byu.net>
30547
30548         euidaccess: fix compilation error
30549         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
30550
30551         rawmemchr: relax license
30552         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
30553         okay.
30554         Reported by Jim Meyering.
30555
30556         mkfifoat: new module
30557         * modules/mkfifoat: New file.
30558         * lib/mkfifoat.c: Likewise.
30559         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
30560         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
30561         * modules/sys_stat (Makefile.am): Use them.
30562         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
30563         * MODULES.html.sh (File system functions): Mention module.
30564         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
30565         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
30566         * modules/mkfifoat-tests: New test.
30567         * tests/test-mkfifoat.c: Likewise.
30568
30569         strchrnul: relax license
30570         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
30571         okay.
30572         Reported by Jim Meyering.
30573
30574 2009-09-08  Eric Blake  <ebb9@byu.net>
30575
30576         fstatat: fix compilation on Solaris
30577         * lib/fstatat.c (includes): Add fcntl.h.
30578         Reported by Pádraig Brady.
30579
30580 2009-09-07  Eric Blake  <ebb9@byu.net>
30581
30582         rename: modernize replacement
30583         * modules/rename (Depends-on): Add stdio.
30584         (configure.ac): Declare witness.
30585         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
30586         stdio take care of replacement.
30587         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
30588         * modules/stdio (Makefile.am): Substitute them.
30589         * lib/stdio.in.h (rename): Declare replacement.
30590         * lib/rename.c (includes): Allow cross-compilation to non-windows
30591         machines.
30592         * doc/posix-functions/rename.texi (rename): Improve
30593         documentation.
30594
30595         stdio: sort witness names
30596         * modules/stdio (Makefile.am): Sort replacements.
30597         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
30598         * lib/stdio.in.h: Likewise.
30599
30600         getcwd: minor cleanups
30601         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
30602         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
30603
30604         openat: provide more convenience names
30605         * modules/faccessat (configure.ac): Add C witness.
30606         * lib/unistd.in.h (readlinkat): Fix typo.
30607         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
30608         convenience wrappers.
30609         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
30610         wrappers in syntax checks.
30611
30612 2009-09-06  Eric Blake  <ebb9@byu.net>
30613
30614         doc: fix comments in recent patches
30615         * lib/faccessat.c: Mention correct function.
30616         * lib/fchmodat.c: Likewise.
30617         * lib/fchownat.c: Likewise.
30618         * lib/symlinkat.c: Likewise.
30619         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
30620         constants.
30621
30622         faccessat, symlinkat: continue cleanup of previous patch
30623         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
30624         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
30625         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
30626         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
30627         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
30628         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
30629         set.
30630
30631 2009-09-06  Bruno Haible  <bruno@clisp.org>
30632
30633         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
30634         (fstatat): Declare if GNULIB_FSTATAT is set.
30635         (mkdirat): Declare if GNULIB_MKDIRAT is set.
30636         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
30637         (unlinkat): Declare if GNULIB_UNLINKAT is set.
30638         * modules/fcntl-h (Files): Remove m4/openat.m4.
30639         * modules/sys_stat (Files): Remove m4/openat.m4.
30640         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
30641         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
30642         * modules/unistd (Files): Remove m4/openat.m4.
30643         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
30644         GNULIB_OPENAT.
30645         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
30646         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
30647         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
30648         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
30649         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
30650         gl_OPENAT_DEFAULTS.
30651         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
30652         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
30653         Don't require gl_OPENAT_DEFAULTS.
30654         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
30655         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
30656         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
30657         (gl_OPENAT_DEFAULTS): Remove macro.
30658
30659 2009-09-06  Bruno Haible  <bruno@clisp.org>
30660
30661         * modules/openat (configure.ac): Remove unneeded witness.
30662
30663 2009-09-06  Bruno Haible  <bruno@clisp.org>
30664
30665         Set errno to ENOSYS when a function is entirely unsupported.
30666         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
30667         EOPNOTSUPP.
30668         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
30669         * modules/chown (Depends-on): Remove errno.
30670
30671 2009-09-06  Bruno Haible  <bruno@clisp.org>
30672
30673         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
30674
30675 2009-09-06  Bruno Haible  <bruno@clisp.org>
30676
30677         * lib/sys_stat.in.h: Fix preprocessor command indentation.
30678
30679 2009-09-06  Ben Pfaff  <blp@gnu.org>
30680             Bruno Haible  <bruno@clisp.org>
30681
30682         Work around a glibc bug in strtok_r.
30683         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
30684         Undefine if UNDEFINE_STRTOK_R is set.
30685         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
30686         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
30687         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
30688         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
30689         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
30690         UNDEFINE_STRTOK_R.
30691         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
30692
30693 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
30694
30695         exclude: minor fix
30696         * lib/exclude.c: Include wctype.h
30697
30698 2009-09-06  Akim Demaille  <demaille@gostai.com>
30699
30700         bootstrap: improve error message
30701         * build-aux/bootstrap (find_tool): Upon failure, report the list
30702         of candidates.
30703         Honor the initial value of the envvar.
30704
30705 2009-09-05  Eric Blake  <ebb9@byu.net>
30706
30707         symlinkat: new module
30708         * modules/symlinkat: New file.
30709         * lib/symlinkat.c: Likewise.
30710         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
30711         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
30712         * modules/unistd (Makefile.am): Use them.
30713         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
30714         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
30715         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
30716         * MODULES.html.sh (File system functions): Mention module.
30717         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
30718         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
30719         * modules/symlinkat-tests: New test.
30720         * tests/test-symlinkat.c: Likewise.
30721
30722         test-openat-safer: add more checks
30723         * tests/test-openat-safer.c (main): Check more code paths.
30724
30725 2009-09-05  Jim Meyering  <meyering@redhat.com>
30726
30727         syntax-check: detect unnecessary inclusion of openat.h
30728         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
30729
30730 2009-09-05  Bruno Haible  <bruno@clisp.org>
30731
30732         Support towlower, towupper.
30733         * doc/posix-functions/towlower.texi: Mention module wctype.
30734         * doc/posix-functions/towupper.texi: Likewise.
30735         * lib/wctype.in.h (towlower, towupper): New functions.
30736         * tests/test-wctype.c: Include stdio.h, stdlib.h.
30737         (ASSERT): New macro.
30738         (e): New variable.
30739         (main): Test also towlower, towupper. Test WEOF argument.
30740         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
30741
30742 2009-09-05  Bruno Haible  <bruno@clisp.org>
30743
30744         Fix conversion behaviour when the input is invalid.
30745         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
30746         mark occurring in first pass of indirect conversion.
30747         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
30748         input.
30749         Found by clang's static analyzer.
30750
30751 2009-09-05  Bruno Haible  <bruno@clisp.org>
30752
30753         * tests/test-striconveh.c (main): Test indirect conversion on platforms
30754         where direct conversion is possible.
30755
30756 2009-09-04  Eric Blake  <ebb9@byu.net>
30757
30758         openat: fail with ENOENT on empty name
30759         * lib/openat-proc.c (openat_proc_name): Special-case the empty
30760         buffer.
30761
30762         link-follow: fix logic bug in prior patch
30763         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
30764         reversed sense of yes and no in prior patch.  Avoid confusing
30765         compilation failure with desired semantics.
30766
30767         link-follow: accomodate mingw and cross-compilation
30768         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
30769         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
30770         cross-compilation results to -1, to make linkat easier to
30771         implement when cross-compiling.  Trivially support mingw.
30772         * modules/link-follow (configure.ac): Call new name.
30773         * NEWS: Mention this.
30774
30775 2009-09-03  Eric Blake  <ebb9@byu.net>
30776
30777         faccessat: compile replacement
30778         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
30779         needed.
30780
30781         fts: fix compilation error
30782         * lib/fts.c (includes): Re-add "openat.h", for
30783         openat_needs_fchdir.
30784
30785         faccessat: new module
30786         * modules/faccessat: New file.
30787         * lib/faccessat.c: Likewise.
30788         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
30789         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
30790         * modules/unistd (Makefile.am): Use it.
30791         * lib/unistd.in.h (faccessat): Declare it.
30792         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
30793         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
30794         * MODULES.html.sh (File system functions): Mention it.
30795         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
30796         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
30797
30798         euidaccess: prefer POSIX over non-standard implementation
30799         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
30800         * lib/euidaccess.c (euidaccess): Use it if available.
30801
30802         openat: make template easier to use
30803         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
30804         AT_FUNC_F2 to be undefined.
30805         (VALIDATE_FLAG): New macro; use it to reject bad flags.
30806         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
30807         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
30808         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
30809         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
30810         Likewise.
30811         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
30812         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
30813         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
30814         Likewise.
30815
30816         openat: declare in POSIX headers
30817         * NEWS: Mention this.
30818         * modules/openat (configure.ac): Declare witnesses.
30819         (Depends-on): Add fcntl-h, sys_stat, unistd.
30820         (Include): Mention correct headers.
30821         * modules/fcntl-h (Depends-on): Add link-warning.
30822         (Files): Add openat.m4.
30823         (Makefile.am): Substitute witnesses.
30824         * modules/sys_stat (Files, Makefile.am): Likewise.
30825         * modules/unistd (Files, Makefile.am): Likewise.
30826         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
30827         (gl_OPENAT_DEFAULTS): New macro.
30828         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
30829         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
30830         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
30831         (SYS_STAT_H): Remove unused variable.
30832         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
30833         * lib/fcntl--.h (includes): Remove unneeded header.
30834         * lib/openat-safer.c (includes): Likewise.
30835         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
30836         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
30837         appropriate headers.
30838         (__OPENAT_PREFIX): Delete.
30839         * lib/fcntl.in.h (openat): Provide declaration.
30840         (AT_FDCWD): Fix Solaris bug.
30841         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
30842         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
30843         * lib/fchmodat.c (includes):  Adjust to find declaration.
30844         * lib/fchownat.c (includes): Likewise.
30845         * lib/mkdirat.c (includes): Likewise.
30846         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
30847         still visible.
30848
30849 2009-09-02  Eric Blake  <ebb9@byu.net>
30850
30851         errno: use consistently
30852         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
30853         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
30854         * lib/canonicalize.c (ELOOP): Likewise.
30855         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
30856         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
30857         * lib/lchown.c (EOPNOTSUPP): Likewise.
30858         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
30859         * lib/savewd.c (ESTALE): Likewise.
30860         * lib/settime.c (ENOSYS): Likewise.
30861         * lib/utimens.c (ENOSYS): Likewise.
30862         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
30863         * lib/chdir-safer.c (ELOOP): Likewise.
30864         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
30865         * modules/c-stack (Depends-on): Add errno.
30866         * modules/canonicalize (Depends-on): Likewise.
30867         * modules/chdir-safer (Depends-on): Likewise.
30868         * modules/fdopendir (Depends-on): Likewise.
30869         * modules/inet_ntop (Depends-on): Likewise.
30870         * modules/inet_pton (Depends-on): Likewise.
30871         * modules/lchown (Depends-on): Likewise.
30872         * modules/openat (Depends-on): Likewise.
30873         * modules/savewd (Depends-on): Likewise.
30874         * modules/settime (Depends-on): Likewise.
30875         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
30876
30877         fts: avoid leaking fds
30878         * modules/fts (Depends-on): Add cloexec.
30879         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
30880         flag.
30881
30882         fts: make directory fds more robust
30883         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
30884         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
30885
30886         backupfile, chdir-long, fts, savedir: make safer
30887         * lib/backupfile.c (includes): Use "dirent--.h", since
30888         numbered_backup can write to stderr during readdir.
30889         * lib/savedir.c (includes): Likewise.
30890         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
30891         emulation can write to stderr on failure.
30892         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
30893         * lib/getcwd.c: Document why opendir_safer is unused.
30894         * lib/glob.c: Likewise.
30895         * lib/scandir.c: Likewise.
30896         * lib/openat-proc.c: Likewise, for open_safer.
30897         * modules/backupfile (Depends-on): Add dirent-safer.
30898         * modules/savedir (Depends-on): Likewise.
30899         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
30900         * modules/chdir-long (Depends-on): Add openat-safer.
30901
30902         openat-safer: new module
30903         * modules/openat-safer: New file.
30904         * lib/openat-safer.c: Likewise.
30905         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
30906         * lib/fcntl-safer.h (openat_safer): Declare.
30907         * lib/fcntl--.h (openat): Override.
30908         * MODULES.html.sh (File descriptor based I/O): Mention it.
30909         * lib/openat.h: Add double-inclusion guards.
30910         * lib/openat.c (includes): Only include "fcntl-safer.h", not
30911         "fcntl--.h", so we can implement openat.
30912         * modules/openat-safer-tests: New test.
30913         * tests/test-openat-safer.c: New file.
30914
30915         dirent-safer: new module
30916         * modules/dirent-safer: New file.
30917         * lib/dirent--.h: Likewise.
30918         * lib/dirent-safer.h: Likewise.
30919         * lib/opendir-safer.c: Likewise.
30920         * m4/dirent-safer.m4: Likewise.
30921         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
30922         * modules/dirent-safer-tests: New test.
30923         * tests/test-dirent-safer.c: New file.
30924         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
30925
30926         fdopendir: optimize on mingw
30927         * lib/unistd.in.h (_gl_directory_name): New prototype.
30928         * lib/fchdir.c (_gl_directory_name): Implement it.
30929         (fchdir): Use it to simplify implementation.
30930         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
30931         fchdir, when available, to avoid calling [f]chdir().
30932
30933         fdopendir: split into its own module
30934         * lib/openat.c (fdopendir): Move...
30935         * lib/fdopendir.c: ...into new file.
30936         * modules/fdopendir: New module.
30937         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
30938         * modules/openat (Depends-on): Add fdopendir.
30939         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
30940         fdopendir here.
30941         * modules/savedir (Depends-on): Only need fdopendir, not full
30942         openat.
30943         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
30944         * lib/openat.h (fdopendir): Drop prototype.
30945         * lib/dirent.in.h (fdopendir): Provide prototype.
30946         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
30947         * modules/dirent (Makefile.am): Substitute them.
30948         * MODULES.html.sh (File system functions): Mention it.
30949         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
30950         * modules/fdopendir-tests: New file.
30951         * tests/test-fdopendir.c: Likewise.
30952
30953         fchdir: use more consistent macro convention
30954         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
30955         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
30956         REPLACE_FCHDIR, rather than relying on config.h macros.
30957         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
30958         inside a single make-time REPLACE_FCHDIR block, rather than using
30959         the config.h FCHDIR_REPLACEMENT.
30960         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
30961         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
30962         Manage fstat replacement.
30963         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
30964         REPLACE_FCHDIR.
30965         * modules/sys_stat (Files): Add m4/unistd_h.m4.
30966         (Makefile.am): Substitute REPLACE_FCHDIR.
30967         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
30968         FCHDIR_REPLACEMENT.
30969         * lib/dup-safer.c (dup_safer): Likewise.
30970         * lib/dup2.c (rpl_dup2): Likewise.
30971         * lib/dup3.c (rpl_dup3): Likewise.
30972         * lib/open.c (rpl_open): Likewise.
30973
30974         fchdir: simplify error handling, and support dup3
30975         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
30976         stdbool, malloc-posix, realloc-posix.
30977         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
30978         (ensure_dirs_slot): Return false on allocation failure.
30979         (rpl_dup2): Delete.
30980         (_gl_register_dup): New function.
30981         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
30982         (_gl_register_fd): Close fd on allocation failure.
30983         * lib/fcntl.in.h (_gl_register_fd): Update signature.
30984         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
30985         prototype.
30986         (rpl_dup2_fchdir): Delete prototype.
30987         * lib/open.c (open): Update caller.
30988         * lib/dup2.c (dup2): Track fchdir metadata.
30989         * lib/dup3.c (dup3): Likewise.
30990         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
30991         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
30992
30993 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30994
30995         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
30996         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
30997         don't pass arguments to AC_OUTPUT.
30998
30999 2009-09-02  Bruno Haible  <bruno@clisp.org>
31000
31001         * modules/mkdtemp (License): Relicense under LGPLv2+.
31002         Reported by Paolo Bonzini.
31003
31004 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31005
31006         Replace uses of obsolete autoconf macros in Jim's modules.
31007         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
31008         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
31009         can evoke a warning from autoconf when run with -Wobsolete
31010         enabled.  They were declared obsolete for good reasons (see
31011         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
31012         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
31013         should not continue using the deprecated macros.
31014         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
31015         obsolete Autoconf macros with modern counterparts.
31016         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
31017         * m4/dos.m4 (gl_AC_DOS): Likewise.
31018         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
31019         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
31020         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
31021         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
31022         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
31023         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
31024         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
31025         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
31026         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
31027         Likewise.
31028         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
31029         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
31030         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
31031         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
31032         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
31033         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
31034
31035 2009-09-01  Eric Blake  <ebb9@byu.net>
31036
31037         fchdir: fix off-by-one bug in previous patch
31038         * lib/fchdir.c (rpl_fstat): Use correct bounds.
31039         (_gl_unregister_fd): Delete useless if.
31040
31041 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
31042
31043         maint.mk: sort the list of syntax-check rules
31044         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
31045         easier to get a sense of progress when the rules are run sequentially
31046         and take a long time.
31047
31048 2009-09-01  Simon Josefsson  <simon@josefsson.org>
31049
31050         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
31051         * modules/netinet_in: Likewise.
31052         * modules/sys_file: Likewise.
31053         * modules/sys_ioctl: Likewise.
31054         * modules/sys_select: Likewise.
31055         * modules/sys_socket: Likewise.
31056         * modules/sys_stat: Likewise.
31057         * modules/sys_time: Likewise.
31058         * modules/sys_times: Likewise.
31059         * modules/sys_utsname: Likewise.
31060         * modules/sys_wait: Likewise.
31061
31062 2009-09-01  Jim Meyering  <meyering@redhat.com>
31063
31064         fts: help ensure that return values are not ignored
31065         * lib/fts_.h (__GNUC_PREREQ): Define.
31066         (__attribute_warn_unused_result__): Define.
31067         (fts_children, fts_close, fts_open, fts_read): Declare with
31068         __attribute_warn_unused_result__.
31069
31070         fts: fts_close now fails also when closing a dir file descriptor fails
31071         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
31072         and propagate to caller, along with errno.
31073
31074         announce-gen: correct formatting in --help output
31075         * build-aux/announce-gen (usage): Move the one-line description in
31076         --help output "up", to where it belongs, just after Usage:.
31077
31078 2009-08-31  Eric Blake  <ebb9@byu.net>
31079
31080         fchdir: port to mingw
31081         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
31082         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
31083         opened, then use a substitute.
31084         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
31085         replacement.
31086         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
31087         (_gl_register_fd): No need to check stat if open already filters
31088         all directories.
31089         (fchdir): Fix error condition to match POSIX.
31090         * modules/fchdir (Depends-on): Add sys_stat.
31091         * doc/posix-functions/open.texi (open): Document the limitation.
31092         * modules/fchdir-tests: New file.
31093         * tests/test-fchdir.c: Likewise.
31094
31095         canonicalize: allow cross-testing from cygwin to mingw
31096         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
31097         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
31098         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
31099         Likewise.
31100         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
31101         target does not support symlinks.
31102         * tests/test-canonicalize-lgpl.sh: Likewise.
31103
31104         chown: avoid compilation warning on mingw
31105         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
31106         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
31107         mingw.
31108         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
31109         * modules/chown (Depends-on): Add errno.
31110
31111 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
31112
31113         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
31114         command.
31115
31116 2009-08-31  Jim Meyering  <meyering@redhat.com>
31117
31118         canonicalize: remove useless initialization
31119         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
31120         initialization of local, "end".
31121
31122 2009-08-30  Bruno Haible  <bruno@clisp.org>
31123
31124         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
31125         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
31126         ENOSYS.
31127
31128 2009-08-30  Bruno Haible  <bruno@clisp.org>
31129
31130         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
31131         /usr/xpg4/bin/tr when it exists.
31132         * tests/test-pipe-filter-gi1.sh: Likewise.
31133
31134 2009-08-30  Bruno Haible  <bruno@clisp.org>
31135
31136         Work around deficient /usr/bin/id program on Solaris.
31137         * tests/test-file-has-acl.sh (ID): New variable.
31138         * tests/test-set-mode-acl.sh (ID): Likewise.
31139         * tests/test-copy-acl.sh (ID): Likewise.
31140         * tests/test-copy-file.sh (ID): Likewise.
31141
31142 2009-08-30  Bruno Haible  <bruno@clisp.org>
31143
31144         New module 'xstriconveh'.
31145         * lib/xstriconveh.h: New file.
31146         * lib/xstriconveh.c: New file.
31147         * modules/xstriconveh: New file.
31148
31149 2009-08-30  Bruno Haible  <bruno@clisp.org>
31150
31151         Make it easier to use mem_cd_iconveh.
31152         * lib/striconveh.h (iconveh_t): New type.
31153         (iconveh_open, iconveh_close): New declarations.
31154         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
31155         with a single 'const iconveh_t *' argument.
31156         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
31157         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
31158         with a single 'const iconveh_t *' argument.
31159         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
31160         * tests/test-striconveh.c (main): Update.
31161         * NEWS: Mention the change.
31162
31163 2009-08-30  Bruno Haible  <bruno@clisp.org>
31164
31165         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
31166         problem.
31167
31168 2009-08-30  Bruno Haible  <bruno@clisp.org>
31169
31170         Work around iconv_open problem on Solaris.
31171         * lib/iconv_open-solaris.gperf: New file.
31172         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
31173         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
31174         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
31175         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
31176         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
31177         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
31178
31179 2009-08-29  Jim Meyering  <meyering@redhat.com>
31180
31181         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
31182         * top/maint.mk (cvs-check): Remove target; it was just an alias
31183         to the better-named vc-diff-check.
31184         (maintainer-distcheck): Remove rule.  It was used only from
31185         the (alpha/beta/major) target, and all of its commands but one
31186         were coreutils-specific.
31187         (vc-dist): Remove rule.
31188         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
31189         Run vc-diff-check, not vc-dist.
31190         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
31191
31192 2009-08-27  Bruno Haible  <bruno@clisp.org>
31193
31194         * tests/test-bitrotate.c (main): Remove test that uses a shift count
31195         of 0.
31196
31197 2009-08-27  Bruno Haible  <bruno@clisp.org>
31198
31199         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
31200         compilers.
31201         * doc/func.texi: Document the SunPRO C bug.
31202
31203 2009-08-27  Bruno Haible  <bruno@clisp.org>
31204
31205         Fix link error on Solaris.
31206         * tests/test-parse-duration.c (xstrdup): Remove function.
31207
31208 2009-08-26  Pádraig Brady  <P@draigbrady.com>
31209
31210         ignore-value: handle pointer types, too
31211         * lib/ignore-value.h (__attribute__): Remove definition.
31212         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
31213         of a more concise and more-often effective "(void) i" statement.
31214         (ignore_ptr): New function to suppress warnings from functions that
31215         return pointers, and to make it explicit that one function doesn't
31216         handle all cases.
31217
31218 2009-08-25  Bruno Haible  <bruno@clisp.org>
31219
31220         dup2: work around a Linux bug.
31221         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
31222         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
31223         * doc/posix-functions/dup2.texi: Mention the Linux bug.
31224         Reported by Simon Josefsson.
31225
31226 2009-08-25  Jim Meyering  <meyering@redhat.com>
31227
31228         libguestfs uses gnulib
31229         * users.txt: Add libguestfs.
31230
31231 2009-08-24  Eric Blake  <ebb9@byu.net>
31232
31233         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
31234         * lib/pipe2.c (includes): Add binary-io.h.
31235         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
31236
31237 2009-08-24  Bruno Haible  <bruno@clisp.org>
31238
31239         Tolerate declared but missing accept4 syscall.
31240         * lib/accept4.c (accept4): Invoke original accept4 function first, if
31241         available.
31242         * lib/sys_socket.in.h (accept4): If the function is already present,
31243         override it.
31244         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
31245         * modules/accept4 (Makefile.am): Compile accept4.c always.
31246         Reported by Paolo Bonzini and Eric Blake.
31247
31248 2009-08-23  Bruno Haible  <bruno@clisp.org>
31249
31250         New module 'accept4'.
31251         * lib/sys_socket.in.h (accept4): New declaration.
31252         * lib/accept4.c: New file.
31253         * m4/accept4.m4: New file.
31254         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
31255         GNULIB_ACCEPT4, HAVE_ACCEPT4.
31256         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
31257         HAVE_ACCEPT4.
31258         * modules/accept4: New file.
31259         * doc/glibc-functions/accept4.texi: Mention the new module.
31260
31261 2009-08-24  Jim Meyering  <meyering@redhat.com>
31262
31263         progname: also set global program_invocation_name, when possible
31264         Before this change, a libtool-enabled program that calls glibc's
31265         error function would report the program name as
31266         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
31267         * modules/progname (configure.ac): Check for a declaration of
31268         program_invocation_name.
31269         * lib/progname.c:  Include <errno.h>.
31270         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
31271         Set program_invocation_name.
31272
31273 2009-08-23  Bruno Haible  <bruno@clisp.org>
31274
31275         * lib/dup3.c: Include <string.h>.
31276
31277 2009-08-23  Bruno Haible  <bruno@clisp.org>
31278
31279         * lib/dup3.c (dup3): Test only once whether the system actually exists.
31280         * lib/pipe2.c (pipe2): Likewise.
31281         Suggested by Eric Blake.
31282
31283 2009-08-23  Bruno Haible  <bruno@clisp.org>
31284
31285         Tolerate declared but missing dup3 syscall.
31286         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
31287         * lib/unistd.in.h (dup3): If the function is already present,
31288         override it.
31289         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
31290         * modules/dup3 (Makefile.am): Compile dup3.c always.
31291         Reported by Paolo Bonzini.
31292
31293 2009-08-23  Bruno Haible  <bruno@clisp.org>
31294
31295         Tolerate declared but missing pipe2 syscall.
31296         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
31297         available.
31298         * lib/unistd.in.h (pipe2): If the function is already present,
31299         override it.
31300         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
31301         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
31302         Reported by Paolo Bonzini.
31303
31304 2009-08-23  Bruno Haible  <bruno@clisp.org>
31305
31306         * lib/pipe2.c (pipe2): Move #ifs inside function.
31307
31308 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
31309
31310         quotearg: document limitations of quote_these_too
31311         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
31312         those limitations are created.
31313         * lib/quotearg.h (set_char_quoting): Document that digits and
31314         letters that are special after backslash are not permitted.
31315         (quotearg_char): Cross-reference set_char_quoting documentation.
31316
31317 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
31318
31319         quotearg: implement custom_quoting_style
31320         * lib/quotearg.c: (struct quoting_options): Add left_quote and
31321         right_quote fields.
31322         (set_custom_quoting): New public function.
31323         (quotearg_buffer_restyled): Add left_quote and right_quote
31324         arguments, handle them very much like locale quoting, and update
31325         all uses.
31326         (quotearg_n_custom): New public function.
31327         (quotearg_n_custom_mem): New public function.
31328         (quotearg_custom): New public function.
31329         (quotearg_custom_mem): New public function.
31330         * lib/quotearg.h: Prototype and document new public functions.
31331         (enum quoting_style): For escape_quoting_style and
31332         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
31333         ignored even though they're otherwise like c_quoting_style.
31334         Add custom_quoting_style member and document with comparison to
31335         clocale_quoting_style.
31336         * tests/test-quotearg.c (custom_quotes): New array.
31337         (custom_results): New array.
31338         (main): Extend to test custom quoting.
31339
31340 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
31341
31342         quotearg: fix right quote escaping when it's in quote_these_too
31343         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
31344         quote, be sure to prepend only one backslash.
31345         * tests/test-quotearg.c (use_quote_double_quotes): New function.
31346         (main): Test it.
31347
31348 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
31349
31350         quotearg-tests: test escaping of embedded locale quotes
31351         * tests/test-quotearg.c (struct result_strings): Add member for
31352         new input.
31353         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
31354         (inputs): Add new input.
31355         (results_g): Add expected results.
31356         (flag_results): Likewise.
31357         (locale_results): Likewise.
31358         (compare_strings): Check those.
31359
31360 2009-08-23  Bruno Haible  <bruno@clisp.org>
31361
31362         Tests for module 'dup3'.
31363         * modules/dup3-tests: New file.
31364         * tests/test-dup3.c: New file.
31365
31366         New module 'dup3'.
31367         * lib/unistd.in.h (dup3): New declaration.
31368         * lib/dup3.c: New file.
31369         * m4/dup3.m4: New file.
31370         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
31371         HAVE_DUP3.
31372         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
31373         * modules/dup3: New file.
31374         * doc/glibc-functions/dup3.texi: Mention the new module.
31375
31376 2009-08-23  Bruno Haible  <bruno@clisp.org>
31377
31378         Tweak the dup2 test.
31379         * tests/test-dup2.c (main): Create the test file empty. Verify that an
31380         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
31381         the test file is still empty. Fix argument order of lseek.
31382
31383 2009-08-23  Bruno Haible  <bruno@clisp.org>
31384
31385         Avoid test link errors when the modules getopt-gnu, gettext are used.
31386         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
31387         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
31388
31389 2009-08-23  Bruno Haible  <bruno@clisp.org>
31390
31391         Fix getdtablesize() on mingw.
31392         * lib/getdtablesize.c (getdtablesize): Implement differently.
31393         * lib/unistd.in.h (getdtablesize): Improve comment.
31394
31395 2009-08-23  Bruno Haible  <bruno@clisp.org>
31396
31397         New module 'mkostemp'.
31398         Based on Ulrich Drepper's 2007-08-10 change in glibc.
31399         * lib/stdlib.in.h (mksotemp): New declaration.
31400         * lib/mkostemp.c: New file, from glibc with modifications.
31401         * lib/tempname.h (GT_FILE): Remove outdated comment.
31402         (gen_tempname): Add flags argument.
31403         * lib/tempname.c (__GT_BIGFILE): Remove macro.
31404         (__GT_FILE): Map to 1.
31405         (small_open, large_open): Remove macros.
31406         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
31407         * lib/mkstemp.c (mkstemp): Update.
31408         * lib/mkdtemp.c (mkdtemp): Likewise.
31409         * m4/mkostemp.m4: New file.
31410         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
31411         HAVE_MKOSTEMP.
31412         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
31413         HAVE_MKOSTEMP.
31414         * modules/mkostemp: New file, based on modules/mkstemp.
31415         * doc/glibc-functions/mkostemp.texi: Mention the new module.
31416         * NEWS: Mention the change.
31417
31418 2009-08-23  Bruno Haible  <bruno@clisp.org>
31419
31420         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
31421         Reported by Eric Blake.
31422
31423 2009-08-23  Bruno Haible  <bruno@clisp.org>
31424
31425         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
31426         Reported by Eric Blake.
31427
31428 2009-08-23  Bruno Haible  <bruno@clisp.org>
31429
31430         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
31431         * modules/pipe2 (Depends-on): Likewise.
31432
31433 2009-08-23  Eric Blake  <ebb9@byu.net>
31434
31435         fcntl-h: add O_TTY_INIT support
31436         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
31437         * tests/test-fcntl-h.c (o): Test it.
31438         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
31439
31440         fcntl-h: rename from fcntl, in preparation for fcntl(2)
31441         * modules/fcntl: Move <fcntl.h> header replacement...
31442         * modules/fcntl-h: ...to new name, so as not to collide with
31443         like-named function.
31444         * tests/test-fcntl.c: Rename...
31445         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
31446         * modules/fcntl-tests: Rename...
31447         * modules/fcntl-h-tests: ...to this.  Update test file name.
31448         * modules/chdir-long (Depends-on): Update clients.
31449         * modules/chdir-safer (Depends-on): Likewise.
31450         * modules/fcntl-safer (Depends-on): Likewise.
31451         * modules/fts (Depends-on): Likewise.
31452         * modules/mkancesdirs (Depends-on): Likewise.
31453         * modules/mkdir-p (Depends-on): Likewise.
31454         * modules/open (Depends-on): Likewise.
31455         * modules/savewd (Depends-on): Likewise.
31456         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
31457         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
31458
31459 2009-08-22  Bruno Haible  <bruno@clisp.org>
31460
31461         * modules/binary-io (License): Relicense under LGPL.
31462         * modules/pipe2 (License): Likewise.
31463
31464 2009-08-22  Bruno Haible  <bruno@clisp.org>
31465
31466         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
31467         return value.
31468         * lib/pipe-filter-gi.c (filter_init): Likewise.
31469         Reported by Eric Blake.
31470
31471 2009-08-22  Bruno Haible  <bruno@clisp.org>
31472
31473         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
31474         * modules/pipe (Depends-on): Add pipe2.
31475
31476 2009-08-22  Bruno Haible  <bruno@clisp.org>
31477
31478         Tests for module 'pipe2'.
31479         * modules/pipe2-tests: New file.
31480         * tests/test-pipe2.c: New file.
31481
31482         New module 'pipe2'.
31483         * lib/unistd.in.h (pipe2): New declaration.
31484         * lib/pipe2.c: New file.
31485         * m4/pipe2.m4: New file.
31486         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
31487         HAVE_PIPE2.
31488         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
31489         * modules/pipe2: New file.
31490         * doc/glibc-functions/pipe2.texi: Mention the new module.
31491
31492 2009-08-22  Bruno Haible  <bruno@clisp.org>
31493
31494         Reference some new glibc functions.
31495         * doc/glibc-functions/accept4.texi: New file.
31496         * doc/glibc-functions/dup3.texi: New file.
31497         * doc/glibc-functions/mkostemp.texi: New file.
31498         * doc/glibc-functions/pipe2.texi: New file.
31499         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
31500         (Glibc sys/socket.h): Refer to accept4.
31501         (Glibc unistd.h): Refer to dup3, pipe2.
31502         Reported by Eric Blake.
31503
31504 2009-08-22  Jim Meyering  <meyering@redhat.com>
31505             Bruno Haible  <bruno@clisp.org>
31506
31507         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
31508         This makes it so packages using automake-1.11's silent-rules option
31509         can print e.g., a single "GEN    configmake.h" line, rather than
31510         the 30+ statements that perform the job.  If you want to see the
31511         actual commands, you can still run "make V=1".
31512         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
31513         so that make output is abbreviated when those variables are defined
31514         appropriately.
31515         * modules/argz: Likewise.
31516         * modules/arpa_inet: Likewise.
31517         * modules/byteswap: Likewise.
31518         * modules/configmake: Likewise.
31519         * modules/dirent: Likewise.
31520         * modules/errno: Likewise.
31521         * modules/fcntl: Likewise.
31522         * modules/float: Likewise.
31523         * modules/fnmatch: Likewise.
31524         * modules/getopt-posix: Likewise.
31525         * modules/glob: Likewise.
31526         * modules/iconv_open: Likewise.
31527         * modules/inttypes: Likewise.
31528         * modules/localcharset: Likewise.
31529         * modules/locale: Likewise.
31530         * modules/math: Likewise.
31531         * modules/netdb: Likewise.
31532         * modules/netinet_in: Likewise.
31533         * modules/poll: Likewise.
31534         * modules/posix_spawnp-tests: Likewise.
31535         * modules/sched: Likewise.
31536         * modules/search: Likewise.
31537         * modules/selinux-h: Likewise.
31538         * modules/signal: Likewise.
31539         * modules/spawn: Likewise.
31540         * modules/stdarg: Likewise.
31541         * modules/stdbool: Likewise.
31542         * modules/stddef: Likewise.
31543         * modules/stdint: Likewise.
31544         * modules/stdio: Likewise.
31545         * modules/stdlib: Likewise.
31546         * modules/string: Likewise.
31547         * modules/strings: Likewise.
31548         * modules/sys_file: Likewise.
31549         * modules/sys_ioctl: Likewise.
31550         * modules/sys_select: Likewise.
31551         * modules/sys_socket: Likewise.
31552         * modules/sys_stat: Likewise.
31553         * modules/sys_time: Likewise.
31554         * modules/sys_times: Likewise.
31555         * modules/sys_utsname: Likewise.
31556         * modules/sys_wait: Likewise.
31557         * modules/sysexits: Likewise.
31558         * modules/time: Likewise.
31559         * modules/unistd: Likewise.
31560         * modules/wchar: Likewise.
31561         * modules/wctype: Likewise.
31562
31563 2009-08-22  Jim Meyering  <meyering@redhat.com>
31564
31565         announce-gen: detect write failure
31566         * build-aux/announce-gen: Add Coda at end.
31567         Remove equivalent-but-more-verbose block at top.
31568
31569 2009-08-19  Akim Demaille  <demaille@gostai.com>
31570
31571         bootstrap: --help to stdout.
31572         * bootstrap (usage): Don't send --help to stderr.
31573         Use a here doc instead of a long string.
31574
31575 2009-08-21  Eric Blake  <ebb9@byu.net>
31576
31577         test-popen-safer: split from test-popen
31578         * tests/test-popen.c (main): Move...
31579         * tests/test-popen.h: ...into new file.
31580         * tests/test-popen-safer2.c: New file.
31581         * modules/popen-tests (Files): Add test-popen.h.
31582         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
31583         Suggested by Bruno Haible.
31584
31585         test-fcntl-safer: split from test-open
31586         * tests/test-open.c (main): Move...
31587         * tests/test-open.h: ...into new file.
31588         * tests/test-fcntl-safer.c: New file.
31589         * modules/open-tests (Files): Add test-open.h.
31590         * modules/fcntl-safer-tests: New file.
31591         Suggested by Bruno Haible.
31592
31593         test-fopen-safer: split from test-fopen
31594         * tests/test-fopen.c (main): Move...
31595         * tests/test-fopen.h: ...into new file.
31596         * tests/test-fopen-safer.c: New file.
31597         * modules/fopen-tests (Files): Add test-fopen.h.
31598         * modules/fopen-safer-tests: New file.
31599         Suggested by Bruno Haible.
31600
31601 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
31602
31603         popen-safer: test O_CLOEXEC at run-time.
31604         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
31605
31606 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
31607
31608         fcntl: move more flags to the header
31609         * lib/cloexec.c: Do not define FD_CLOEXEC here.
31610         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
31611         * lib/fcntl.in.h: Do both things here.
31612
31613 2009-08-21  Jim Meyering  <meyering@redhat.com>
31614
31615         consistently remove $@-t before redirecting to it
31616         * modules/argz: Remove $@-t and $@ before redirecting to the former.
31617         * modules/alloca-opt: Likewise.
31618         * modules/byteswap: Likewise.
31619         * modules/fnmatch: Likewise.
31620         * modules/getopt-posix: Likewise.
31621         * modules/glob: Likewise.
31622         * modules/poll: Likewise.
31623         * modules/posix_spawnp-tests: Likewise.
31624         * modules/sys_socket: Likewise.
31625         * modules/sysexits: Likewise.
31626
31627 2009-08-21  Eric Blake  <ebb9@byu.net>
31628
31629         popen: simplify access to original popen
31630         * lib/popen.c (rpl_popen): No need to worry about popen being a
31631         macro.
31632         Reported by Bruno Haible.
31633
31634 2009-08-20  Eric Blake  <ebb9@byu.net>
31635
31636         build: avoid some compiler warnings
31637         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
31638         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
31639         type.
31640         (new_exclude_segment, excluded_file_pattern_p)
31641         (excluded_file_name_p): Reduce scope.
31642         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
31643         old-style declaration.
31644
31645 2009-08-20  Simon Josefsson  <simon@josefsson.org>
31646
31647         * tests/test-exclude1.sh: Handle Windows EOL.
31648         * tests/test-exclude2.sh: Likewise.
31649         * tests/test-exclude3.sh: Likewise.
31650         * tests/test-exclude4.sh: Likewise.
31651         * tests/test-exclude5.sh: Likewise.
31652         * tests/test-exclude6.sh: Likewise.
31653         * tests/test-exclude7.sh: Likewise.
31654
31655 2009-08-19  Akim Demaille  <demaille@gostai.com>
31656
31657         bootstrap: find sha1sum when named gsha1sum.
31658         * bootstrap (find_tool): New.
31659         ($SHA1SUM): New.
31660         Use it.
31661
31662 2009-08-20  Jim Meyering  <meyering@redhat.com>
31663
31664         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
31665         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
31666         expression that converts "." in a file name to "\." in the resulting
31667         regexp.  Start with a dummy statement, so that prior shell variable
31668         definitions are expanded portably.  Reported by Simon Josefsson.
31669
31670 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
31671
31672         Fix polling for writeability of a screen buffer.
31673         * lib/poll.c: Distinguish input and screen buffers for the
31674         Win32 implementation.
31675         * lib/select.c: Likewise.
31676
31677 2009-08-19  Eric Blake  <ebb9@byu.net>
31678
31679         popen-safer: prevent popen from clobbering std descriptors
31680         * modules/popen-safer: New file.
31681         * lib/popen-safer.c: Likewise.
31682         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
31683         * lib/stdio--.h (popen): Provide override.
31684         * lib/stdio-safer.h (popen_safer): Provide declaration.
31685         * tests/test-popen.c (includes): Partially test this.
31686         * modules/popen-safer-tests: New file, for more tests.
31687         * tests/test-popen-safer.c: Likewise.
31688         * MODULES.html.sh (file stream based Input/Output): Mention it.
31689
31690         tests: test some of the *-safer modules
31691         * modules/fopen-safer (Depends-on): Add fopen.
31692         * modules/fcntl-safer (Depends-on): Add fcntl.
31693         * modules/stdlib-safer (Depends-on): Add stdlib.
31694         (configure.ac): Set indicator.
31695         * modules/unistd-safer (configure.ac): Likewise.
31696         * modules/tmpfile-safer (configure.ac): Likewise.
31697         (Depends-on): Add tmpfile.
31698         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
31699         active.
31700         * tests/test-fopen.c (includes): Test safer versions when they are
31701         in use.
31702         * tests/test-open.c (includes): Likewise.
31703
31704         popen: fix cygwin 1.5 bug when stdin closed
31705         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
31706         * modules/popen: New file.
31707         * modules/popen-tests: Likewise.
31708         * tests/test-popen.c: Likewise.
31709         * m4/popen.m4: Likewise.
31710         * lib/popen.c: Likewise.
31711         * lib/stdio.in.h (popen): New declaration.
31712         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
31713         * modules/stdio (Makefile.am): Likewise.
31714         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
31715
31716 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
31717
31718         maint.mk: give full control over update-copyright exclusions
31719         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
31720         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
31721         (update-copyright): Don't force inclusion of top-level
31722         ChangeLog.  Don't force exclusion of all COPYING files, but make
31723         them the default exclusion instead.
31724
31725 2009-08-16  Bruno Haible  <bruno@clisp.org>
31726
31727         Fix test failures on Solaris 10.
31728         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
31729         tests when Solaris iconv() is used.
31730         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
31731         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
31732         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
31733         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
31734         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
31735
31736 2009-08-16  Bruno Haible  <bruno@clisp.org>
31737
31738         Fix test failures on Solaris 10.
31739         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
31740         'tr' program and pass it as first argument.
31741         * tests/test-pipe-filter-gi1.sh: Likewise.
31742         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
31743         program as first argument.
31744         * tests/test-pipe-filter-gi1.c (main): Likewise.
31745
31746 2009-08-16  Eric Blake  <ebb9@byu.net>
31747
31748         fpurge: fix previous commits
31749         * modules/fpurge (Makefile.am): Make replacement conditional,
31750         partially reverting 2007-04-29 change; missed in previous
31751         attempt.
31752         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
31753         is missing.
31754
31755 2009-08-16  Bruno Haible  <bruno@clisp.org>
31756
31757         Clarify fpurge's effect on the file position.
31758         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
31759         * tests/test-fpurge.c (main): Make a second pass for checking the file
31760         position.
31761
31762 2009-08-16  Bruno Haible  <bruno@clisp.org>
31763
31764         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
31765         declaration of fpurge is missing.
31766         * tests/test-fpurge.c (main): Check that the file has not more contents
31767         than expected. Close the file before removing it.
31768
31769 2009-08-15  Eric Blake  <ebb9@byu.net>
31770
31771         fpurge: don't wrap working cygwin implementation
31772         * lib/fpurge.c (fpurge): Fix comment typo.
31773         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
31774         1.7 to avoid replacement.
31775         * tests/test-fpurge.c (main): Enhance test.
31776
31777 2009-08-15  Eric Blake  <ebb9@byu.net>
31778         and Jim Meyering  <meyering@redhat.com>
31779
31780         test-update-copyright: skip if perl is insufficient
31781         * tests/test-update-copyright.sh: Failure to run maintainer tool
31782         should not cause testsuite failure on cygwin 1.5.
31783
31784 2009-08-14  Eric Blake  <ebb9@byu.net>
31785
31786         doc: mention more functions added in cygwin 1.7.0
31787         * doc/posix-headers/limits.texi (limits.h): Update for recent
31788         cygwin additions.
31789         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
31790         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
31791         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
31792         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
31793         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
31794
31795 2009-08-14  Eric Blake  <ebb9@byu.net>
31796
31797         maint.mk: simplify update-copyright rule
31798         * top/maint.mk (update-copyright-local): Delete, and document how
31799         to do it in cfg.mk instead.
31800         (update-copyright-exclude-regexp): Delete, and document how to do
31801         it in .x-update-copyright instead.
31802         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
31803         exclude ChangeLog.
31804
31805 2009-08-14  Bruno Haible  <bruno@clisp.org>
31806
31807         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
31808
31809 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
31810
31811         maint.mk: support update-copyright-env
31812         * top/maint.mk (update-copyright-env): Define place-holder.
31813         (update-copyright): Expand $(update-copyright-env) before
31814         invoking update-copyright.
31815
31816 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
31817
31818         update-copyright: implement forced reformatting
31819         * build-aux/update-copyright: Implement and document
31820         UPDATE_COPYRIGHT_FORCE.
31821         * tests/test-update-copyright.sh: Test it.
31822
31823 2009-08-14  Eric Blake  <ebb9@byu.net>
31824         and Bruno Haible  <bruno@clisp.org>
31825
31826         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
31827         * tests/test-locale.c: Revert previous patch related to NULL.
31828         * tests/test-stdio.c: Likewise.
31829         * tests/test-stdlib.c: Likewise.
31830         * tests/test-string.c: Likewise.
31831         * tests/test-unistd.c: Likewise.
31832         * modules/time-tests (Depends-on): Add verify.
31833         * modules/wchar-tests (Depends-on): Likewise.
31834         * tests/test-time.c: Test for NULL compliance.
31835         * tests/test-wchar.c: Likewise.
31836         * modules/locale (Depends-on): Add stddef.
31837         * modules/stdio (Depends-on): Likewise.
31838         * modules/stdlib (Depends-on): Likewise.
31839         * modules/string (Depends-on): Likewise.
31840         * modules/time (Depends-on): Likewise.
31841         * modules/unistd (Depends-on): Likewise.
31842         * modules/wchar (Depends-on): Likewise.
31843         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
31844         * lib/stdlib.in.h (includes): Likewise.
31845         * lib/string.in.h (includes): Likewise.
31846         * lib/time.in.h (includes): Likewise.
31847         * lib/unistd.in.h (includes): Likewise.
31848         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
31849         replaced.
31850         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
31851         * m4/stddef_h.m4: New file.
31852         * modules/stddef: Likewise.
31853         * lib/stddef.in.h: Likewise.
31854         * modules/stddef-tests: Likewise.
31855         * tests/test-stddef.c: Likewise.
31856         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
31857         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
31858         * doc/posix-headers/locale.texi (locale.h): Likewise.
31859         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
31860         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
31861         * doc/posix-headers/string.texi (string.h): Likewise.
31862         * doc/posix-headers/time.texi (time.h): Likewise.
31863         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
31864         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
31865
31866 2009-08-14  Eric Blake  <ebb9@byu.net>
31867
31868         doc: improve git diff of texinfo files
31869         * .gitattributes: Add rule for *.texi files, with hint on how to
31870         use it.
31871         Copied from m4, and based on a report by Bruno Haible.
31872
31873 2009-08-14  Bruno Haible  <bruno@clisp.org>
31874
31875         Disable multithread support by default on Cygwin 1.5.x for real.
31876         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
31877
31878 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
31879
31880         update-copyright: much ado about intervals
31881         * build-aux/update-copyright: Implement and document
31882         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
31883         of copyright year intervals.
31884         Also, document UPDATE_COPYRIGHT_YEAR.
31885         * tests/test-update-copyright.sh: Test it.
31886
31887         update-copyright: convert 2-digit to 4-digit years
31888         * build-aux/update-copyright: Implement and document.
31889         * tests/test-update-copyright.sh: Update.
31890
31891 2009-08-14  Jim Meyering  <meyering@redhat.com>
31892
31893         test-exclude: avoid coreutils "make check" failure
31894         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
31895         just as in test-argmatch.c.
31896
31897 2009-08-13  Eric Blake  <ebb9@byu.net>
31898
31899         test-dup2: fix bad assumption
31900         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
31901         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
31902
31903         test-version-etc: fix CRLF portability issue
31904         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
31905         recognize \r.
31906         * tests/test-argp-version-etc-1.sh: Likewise.
31907
31908         getopt: update client modules
31909         * modules/argp (Depends-on): Use getopt-gnu.
31910         * modules/git-merge-changelog (Depends-on): Likewise.
31911         * modules/long-options (Depends-on): Likewise.
31912         * modules/xstrtol (Depends-on): Likewise.
31913
31914 2009-08-13  Simon Josefsson  <simon@josefsson.org>
31915
31916         * tests/test-version-etc.sh: Don't fail on different
31917         project/version.  Don't fail on CRLF differences.  Rewrite to use
31918         multiple -e instead of multiple sed forks, suggested by Eric Blake
31919         <ebb9@byu.net>.
31920         * tests/test-argp-version-etc-1.sh: Likewise.
31921
31922 2009-08-13  Simon Josefsson  <simon@josefsson.org>
31923
31924         * tests/test-version-etc.sh: Don't fail on different
31925         project/version.
31926
31927 2009-08-12  Bruno Haible  <bruno@clisp.org>
31928
31929         Tests for modules 'getopt-posix', 'getopt-gnu'.
31930         * modules/getopt-posix-tests: New file.
31931         * tests/test-getopt.c: New file.
31932         * tests/test-getopt.h: New file.
31933         * tests/test-getopt_long.h: New file.
31934
31935         New modules 'getopt-posix', 'getopt-gnu'.
31936         * modules/getopt-gnu: New file, renamed from modules/getopt.
31937         * modules/getopt-posix: New file.
31938         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
31939         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
31940         (gl_GETOPT): Remove macro.
31941         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
31942         Disable the test against BSD systems that declare optreset. Test
31943         against mingw bug. Test against lack of support of optional arguments
31944         on many platforms.
31945         * doc/glibc-headers/getopt.texi: Update module name and list of
31946         relevant platforms.
31947         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
31948         'getopt-gnu' and more portability problems.
31949         * NEWS: Mention the changes.
31950
31951 2009-08-12  Bruno Haible  <bruno@clisp.org>
31952
31953         Ensure that optarg etc. get declared by <unistd.h>.
31954         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
31955         AC_USE_SYSTEM_EXTENSIONS.
31956         * modules/getopt (Depends-on): Add 'extensions'.
31957
31958 2009-08-12  Bruno Haible  <bruno@clisp.org>
31959
31960         Avoid test link errors.
31961         * modules/pipe-filter-ii-tests (Makefile.am): Define
31962         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
31963         * modules/pipe-filter-gi-tests (Makefile.am): Define
31964         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
31965         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
31966
31967 2009-08-12  Bruno Haible  <bruno@clisp.org>
31968
31969         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
31970         gl_GETOPT_SUBSTITUTE before.
31971         (gl_GETOPT): Use it.
31972         * m4/argp.m4 (gl_ARGP): Update.
31973         Reported by Sergey Poznyakoff.
31974
31975         * m4/getopt.m4: Reorder macros.
31976         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
31977         (gl_GETOPT_SUBSTITUTE): Remove macro.
31978
31979 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
31980
31981         Minor improvement in gitlog-to-changelog
31982
31983         * build-aux/gitlog-to-changelog: New option `--format' makes
31984         output format string configurable.
31985
31986 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
31987
31988         Optimize exclude: use hash tables for non-wildcard patterns.
31989
31990         * lib/exclude.c: Include hash.h and mbuiter.h
31991         (struct exclude_pattern, exclude_segment): New data types.
31992         (struct exclude): Rewrite.
31993         (fnmatch_pattern_has_wildcards): New function.
31994         (new_exclude_segment, free_exclude_segment): New functions.
31995         (excluded_file_pattern_p, excluded_file_name_p): New functions.
31996         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
31997         * lib/exclude.h (is_fnmatch_pattern): New prototype.
31998         * modules/exclude: Depend on hash and mbuiter.
31999
32000         * modules/exclude-tests: New file.
32001         * tests/test-exclude.c: New file.
32002         * tests/test-exclude1.sh: New file.
32003         * tests/test-exclude2.sh: New file.
32004         * tests/test-exclude3.sh: New file.
32005         * tests/test-exclude4.sh: New file.
32006         * tests/test-exclude5.sh: New file.
32007         * tests/test-exclude6.sh: New file.
32008         * tests/test-exclude7.sh: New file.
32009
32010 2009-08-12  Bruno Haible  <bruno@clisp.org>
32011
32012         Ensure that getopt() gets declared by <unistd.h>.
32013         * lib/unistd.in.h: Conditionally include getopt.h.
32014         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
32015         Set GNULIB_UNISTD_H_GETOPT.
32016         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
32017         GNULIB_UNISTD_H_GETOPT.
32018         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
32019
32020 2009-08-12  Bruno Haible  <bruno@clisp.org>
32021
32022         Clarify logic.
32023         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
32024         gl_replace_getopt instead of GETOPT_H.
32025
32026 2009-08-12  Bruno Haible  <bruno@clisp.org>
32027
32028         * m4/getopt.m4: Add comments.
32029
32030 2009-08-12  Bruno Haible  <bruno@clisp.org>
32031
32032         Disable multithread support by default on Cygwin 1.5.x.
32033         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
32034         set gl_use_threads=no if not specified otherwise.
32035
32036 2009-08-11  Bruno Haible  <bruno@clisp.org>
32037
32038         Avoid compilation error on NetBSD 5.0.
32039         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
32040         * tests/test-stdio.c: Likewise.
32041         * tests/test-stdlib.c: Likewise.
32042         * tests/test-string.c: Likewise.
32043         * tests/test-unistd.c: Likewise.
32044         Reported by Greg Troxel <gdt@ir.bbn.com>
32045         at <https://savannah.gnu.org/support/?106973>.
32046
32047 2009-08-11  Bruno Haible  <bruno@clisp.org>
32048
32049         * modules/dup2-tests (Depends-on): Remove close.
32050
32051         Undo 2009-07-19 commit.
32052         * modules/acl-tests (Depends-on): Remove close.
32053         * modules/binary-io-tests (Depends-on): Likewise.
32054         * modules/closein-tests (Depends-on): Likewise.
32055         * modules/flock-tests (Depends-on): Likewise.
32056         * modules/fsync-tests (Depends-on): Likewise.
32057         * modules/lseek-tests (Depends-on): Likewise.
32058         * modules/pipe-tests (Depends-on): Likewise.
32059         * modules/posix_spawn-tests (Depends-on): Likewise.
32060         * modules/posix_spawnp-tests (Depends-on): Likewise.
32061         * modules/stat-time-tests (Depends-on): Likewise.
32062         * modules/yesno-tests (Depends-on): Likewise.
32063
32064 2009-08-10  Bruno Haible  <bruno@clisp.org>
32065
32066         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
32067
32068 2009-08-10  Bruno Haible  <bruno@clisp.org>
32069
32070         Fix a gcc warning.
32071         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
32072
32073 2009-08-10  Bruno Haible  <bruno@clisp.org>
32074
32075         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
32076         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
32077         not only the first time.
32078         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
32079         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
32080         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
32081         is 1, not only the the first time.
32082
32083 2009-08-10  Bruno Haible  <bruno@clisp.org>
32084
32085         Make it possible to use module 'gethostname' without module 'close'.
32086         * lib/unistd.in.h (close): Evoke a link error only if
32087         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
32088         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
32089         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
32090         * modules/unistd (Makefile.am): Substitute
32091         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
32092         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
32093         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
32094         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
32095         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
32096         * modules/sys_ioctl (Makefile.am): Substitute
32097         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
32098         * modules/socket (configure.ac): On native Windows, set
32099         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
32100         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
32101         Reported by Sam Steingold <sds@gnu.org>.
32102
32103 2009-08-10  Bruno Haible  <bruno@clisp.org>
32104
32105         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
32106         * modules/ioctl (configure.ac): Likewise.
32107
32108 2009-08-10  Bruno Haible  <bruno@clisp.org>
32109
32110         Avoid collision between gnulib wrapper and libintl wrapper.
32111         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
32112         already defined in intl/printf.c.
32113         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
32114         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
32115
32116 2009-08-09  Bruno Haible  <bruno@clisp.org>
32117
32118         Make <sys/select.h> really self-contained, also on Solaris 10.
32119         * lib/sys_select.in.h: Include <string.h>.
32120         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
32121         Solaris 10 problem.
32122         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
32123         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
32124         Reported by Jim Meyering.
32125
32126 2009-08-09  Bruno Haible  <bruno@clisp.org>
32127
32128         Avoid warnings from 'aclocal' that are due to a use of macro name
32129         AM_XGETTEXT_OPTION that is not defined in automake.
32130         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
32131         automake.
32132         * modules/error (configure.ac): Likewise.
32133         * modules/propername (configure.ac): Likewise.
32134         * modules/vasprintf (configure.ac): Likewise.
32135         * modules/verror (configure.ac): Likewise.
32136         * modules/xprintf (configure.ac): Likewise.
32137         * modules/xvasprintf (configure.ac): Likewise.
32138
32139 2009-08-08  Bruno Haible  <bruno@clisp.org>
32140
32141         Avoid compilation error in C++ mode.
32142         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
32143         Reported by Sam Steingold <sds@gnu.org>.
32144
32145 2009-08-08  Bruno Haible  <bruno@clisp.org>
32146
32147         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
32148         for the various Unix platforms.
32149         * doc/posix-headers/limits.texi: Update platforms list regarding
32150         HOST_NAME_MAX.
32151         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
32152
32153 2009-08-07  Jim Meyering  <meyering@redhat.com>
32154
32155         selinux-at: fix typo in a comment
32156         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
32157         Spotted by Paolo Bonzini.
32158
32159         selinux-at: remove redundant m4 code, add documentation
32160         * modules/selinux-at (configure.ac): Remove redundant code.
32161         LIB_SELINUX is already set via the dependent module, selinux-h.
32162         (Include): Add quotes around selinux-at.h.
32163         * lib/selinux-at.h: Add documentation.
32164         Reported by Bruno Haible in
32165         http://marc.info/?l=gnulib-bug&m=124958988300749
32166
32167 2009-08-07  Bruno Haible  <bruno@clisp.org>
32168
32169         Avoid link error on MacOS X 10.3 and 10.4.
32170         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
32171         on non-ELF systems.
32172         * lib/argp-pv.c (argp_program_version): Likewise.
32173         Reported by Simon Josefsson.
32174
32175 2009-08-07  Simon Josefsson  <simon@josefsson.org>
32176
32177         * tests/test-version-etc.sh: Use $EXEEXT.
32178
32179 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
32180
32181         update-copyright: update documentation to point to maint.mk
32182         * build-aux/update-copyright: Here.
32183
32184 2009-08-06  Jim Meyering  <meyering@redhat.com>
32185
32186         maint.mk: support update-copyright-local
32187         * top/maint.mk (update-copyright-local): Define place-holder.
32188         (update-copyright): Depend on $(update-copyright-local).
32189
32190 2009-08-06  Jim Meyering  <meyering@redhat.com>
32191
32192         selinux-at: new module
32193         Initially written for coreutils, this module will soon be
32194         used by findutils, too.
32195         * MODULES.html.sh [Misc]: Add selinux-at.
32196         * lib/selinux-at.h: New file, from coreutils.
32197         * lib/selinux-at.c: Likewise.
32198         * modules/selinux-at: Likewise.
32199         (License): Change from LGPL to GPL, since it depends
32200         on the GPL'd openat module.
32201
32202         doc: update README
32203         * README: Remove references to cogito.
32204         Remove cvs-repo-updating instructions from 2007.
32205         Don't imply that CVS is better if you have limited disk space.
32206
32207 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
32208
32209         update-copyright: support C-style comments
32210         * build-aux/update-copyright: Implement and document.
32211         * tests/test-update-copyright.sh: Test.
32212
32213 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
32214
32215         update-copyright: support omitted "(C)"
32216         * build-aux/update-copyright: Implement and document.  Also,
32217         allow variable whitespace before "(C)".
32218         * tests/test-update-copyright.sh: Test.
32219
32220 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
32221
32222         update-copyright: don't trip on non-FSF copyright statements
32223         * build-aux/update-copyright: Fix so that the first correctly
32224         formatted FSF copyright statement is recognized no matter what
32225         appears before it.  Update documentation.
32226         * tests/test-update-copyright.sh: Test that.
32227
32228 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
32229
32230         update-copyright: clean up code a little
32231         * build-aux/update-copyright: Append "_re" to the name of any
32232         variable holding a regular expression.
32233         Replace "old" and "new" with "stmt" in variable names.
32234         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
32235         handled correctly.
32236         Format code more consistently.
32237
32238 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
32239
32240         update-copyright-tests: improve portability
32241         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
32242         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
32243
32244 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
32245
32246         update-copyright: support @copyright{} and &copy;
32247         * build-aux/update-copyright: Implement and document.
32248         * tests/test-update-copyright.sh: Test.
32249
32250 2009-08-04  Jim Meyering  <meyering@redhat.com>
32251
32252         update-copyright-tests: correctly test EOL=\r\n handling
32253         * tests/test-update-copyright.sh: Put \r at the end of some lines
32254         for the dos-eol tests.  Based on a patch by Joel E. Denny.
32255
32256         maint.mk: make update-copyright exclusion list more configurable
32257         * top/maint.mk (update-copyright): Default to excluding COPYING,
32258         but allow an override, in case someone does want to update that file.
32259
32260         maint.mk: don't update copyright date in COPYING
32261         * top/maint.mk (update-copyright): Exclude COPYING.
32262
32263         maint.mk: add a copyright-updating rule
32264         * top/maint.mk (update-copyright): New rule.
32265         Derived from coreutils/Makefile.am.
32266
32267         update-copyright: rename some variables
32268         * build-aux/update-copyright: Rename a few variables for clarity.
32269         Tweak syntax.  List Joel E. Denny as coauthor.
32270
32271 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
32272
32273         update-copyright: fix bug for 2-digit last year and add tests
32274         * build-aux/update-copyright: Fix bug.
32275         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
32276         specified.
32277         * modules/update-copyright-tests: New
32278         * tests/test-update-copyright.sh: New.
32279
32280 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
32281
32282         update-copyright: handle leading tabs in line prefix
32283         * build-aux/update-copyright: Count leading tabs as 8 spaces
32284         when computing margin.  This helps with the formatting of
32285         ChangeLogs, for example.
32286         Fix documentation a little.
32287
32288 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
32289
32290         update-copyright: support EOL=\r\n
32291         * build-aux/update-copyright: Implement that.
32292
32293 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
32294
32295         update-copyright: automatically format copyright statements
32296         * build-aux/update-copyright: Implement that.
32297         Also, be a little more predictable and safer by always failing
32298         when the full copyright format is not perfectly recognized as an
32299         unbroken whole.  Discussed at
32300         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
32301         Rewrite documentation.
32302
32303 2009-08-03  Bruno Haible  <bruno@clisp.org>
32304
32305         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
32306
32307 2009-08-02  Bruno Haible  <bruno@clisp.org>
32308
32309         Tests for module 'uname'.
32310         * modules/uname-tests: New file.
32311         * tests/test-uname.c: New file.
32312
32313         New module 'uname'.
32314         * lib/uname.c: New file.
32315         * m4/uname.m4: New file.
32316         * modules/uname: New file.
32317         * doc/posix-functions/uname.texi: Mention the new module.
32318
32319 2009-08-02  Bruno Haible  <bruno@clisp.org>
32320
32321         Tests for module 'sys_utsname'.
32322         * modules/sys_utsname-tests: New file.
32323         * tests/test-sys_utsname.c: New file.
32324
32325         New module 'sys_utsname'.
32326         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
32327         * m4/sys_utsname_h.m4: New file.
32328         * modules/sys_utsname: New file.
32329         * doc/posix-headers/sys_utsname.texi: Mention the new module.
32330
32331 2009-08-02  Bruno Haible  <bruno@clisp.org>
32332
32333         Implicitly initialize the sockets library.
32334         * lib/gethostname.c: Include sockets.h.
32335         (rpl_gethostname): Invoke gl_sockets_startup.
32336         * lib/socket.c: Include sockets.h.
32337         (rpl_socket): Invoke gl_sockets_startup.
32338         * modules/gethostname (Depends-on): Add sockets.
32339         * modules/socket (Depends-on): Likewise.
32340         * tests/test-poll.c: Don't include sockets.h.
32341         (main): Don't invoke gl_sockets_startup.
32342         * tests/test-select.c: Don't include sockets.h.
32343         (main): Don't invoke gl_sockets_startup.
32344
32345 2009-08-02  Bruno Haible  <bruno@clisp.org>
32346
32347         Allow multiple calls to gl_sockets_startup.
32348         * lib/sockets.c (initialized_sockets_version): New variable.
32349         (gl_sockets_startup): Do nothing if already called for this or a higher
32350         version.
32351         (gl_sockets_cleanup): Reset initialized_sockets_version.
32352
32353 2009-08-03  Simon Josefsson  <simon@josefsson.org>
32354
32355         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
32356         different project/version.
32357
32358 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
32359             Bruno Haible  <bruno@clisp.org>
32360
32361         Tests for module 'pipe-filter-gi'.
32362         * modules/pipe-filter-gi-tests: New file.
32363         * tests/test-pipe-filter-gi1.sh: New file.
32364         * tests/test-pipe-filter-gi1.c: New file.
32365         * tests/test-pipe-filter-gi2.sh: New file.
32366         * tests/test-pipe-filter-gi2-main.c: New file.
32367         * tests/test-pipe-filter-gi2-child.c: New file.
32368
32369         New module 'pipe-filter-gi'.
32370         * lib/pipe-filter-gi.c: New file.
32371         * modules/pipe-filter-gi: New file.
32372
32373 2009-08-02  Bruno Haible  <bruno@clisp.org>
32374             Paolo Bonzini  <bonzini@gnu.org>
32375
32376         Tests for module 'pipe-filter-ii'.
32377         * modules/pipe-filter-ii-tests: New file.
32378         * tests/test-pipe-filter-ii1.sh: New file.
32379         * tests/test-pipe-filter-ii1.c: New file.
32380         * tests/test-pipe-filter-ii2.sh: New file.
32381         * tests/test-pipe-filter-ii2-main.c: New file.
32382         * tests/test-pipe-filter-ii2-child.c: New file.
32383
32384         New module 'pipe-filter-ii'.
32385         * lib/pipe-filter.h: New file.
32386         * lib/pipe-filter-ii.c: New file.
32387         * lib/pipe-filter-aux.h: New file.
32388         * modules/pipe-filter-ii: New file.
32389
32390 2009-08-02  Simon Josefsson  <simon@josefsson.org>
32391
32392         * lib/gc-libgcrypt.c: Change copyright to FSF.
32393         * lib/gc-gnulib.c: Likewise.
32394
32395 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
32396
32397         * lib/gethostname.c: Include limits.h.
32398
32399 2009-08-02  Simon Josefsson  <simon@josefsson.org>
32400             Bruno Haible  <bruno@clisp.org>
32401
32402         Ensure HOST_NAME_MAX as part of the gethostname module.
32403         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
32404         define also HOST_NAME_MAX.
32405         * tests/test-gethostname.c: Include <limits.h>.
32406         (main): Check also HOST_NAME_MAX.
32407         * doc/posix-headers/limits.texi: Document the mingw problem.
32408
32409 2009-08-02  Bruno Haible  <bruno@clisp.org>
32410
32411         * lib/gethostname.c (gethostname): Fix handling of large len argument.
32412         Add comments.
32413
32414 2009-03-31  Simon Josefsson  <simon@josefsson.org>
32415
32416         * lib/gethostname.c: Add Windows wrapper.
32417         * m4/gethostname.m4: Look for gethostname in -lws2_32.
32418         * modules/gethostname: Depend on sys_socket & errno, for also
32419         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
32420         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
32421
32422 2009-07-31  Jim Meyering  <meyering@redhat.com>
32423
32424         getloadavg: fix symbol name in comment
32425         * lib/getloadavg.c: Correct a typo I introduced when adding
32426         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
32427         Matt Kraai spotted the problem.
32428
32429 2009-07-29  Matt Kraai  <mkraai@beckman.com>
32430
32431         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
32432         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
32433         code also if ! defined N_NAME_POINTER.
32434         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
32435         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
32436         but the n_name member is a 12-byte array.
32437
32438 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
32439
32440         update-copyright: generalize comment handling
32441         * build-aux/update-copyright: Handle copyright statements
32442         within more comment styles.
32443         Document usage.
32444         Report any file with an external copyright holder or parse failure.
32445
32446 2009-07-29  Jim Meyering  <meyering@redhat.com>
32447
32448         mktime: correct setting of REPLACE_MKTIME
32449         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
32450
32451         update-copyright: new module
32452         * modules/update-copyright: New file.
32453         * build-aux/update-copyright: New file.
32454         * MODULES.html.sh (maint+release support): Add update-copyright.
32455
32456 2009-07-27  Bruno Haible  <bruno@clisp.org>
32457
32458         Fix compilation error when <ctime> is used and mktime is replaced.
32459         * lib/time.in.h (mktime): New declaration.
32460         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
32461         REPLACE_MKTIME instead of defining mktime in config.h.
32462         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
32463         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
32464         Reported by Ross McFarland <rwmcfa1@neces.com>.
32465
32466 2009-07-27  Bruno Haible  <bruno@clisp.org>
32467
32468         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
32469         Reported by Matt Kraai <mkraai@beckman.com>.
32470
32471 2009-07-25  Jim Meyering  <meyering@redhat.com>
32472
32473         maint.mk: avoid warnings about missing files
32474         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
32475         diagnostic when .prev-version does not exist.
32476         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
32477         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
32478         nonexistent cfg.mk.
32479         Suggestions from Simon Josefsson.
32480
32481 2009-07-25  Bruno Haible  <bruno@clisp.org>
32482
32483         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
32484         defined as macros. Needed on QNX 6.4.1.
32485         Reported by Matt Kraai <mkraai@beckman.com>.
32486
32487 2009-07-23  Jim Meyering  <meyering@redhat.com>
32488
32489         maint.mk: invoke "make dist" with a working value of XZ_OPT
32490         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
32491
32492 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
32493
32494         Make fseeko.c compile on QNX.
32495         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
32496
32497 2009-07-22  Peter Simons  <simons@cryp.to>
32498
32499         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
32500         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
32501         * lib/md4.h: Likewise.
32502         * lib/md5.h: Likewise.
32503         * lib/sha1.h: Likewise.
32504         * lib/sha256.h: Likewise.
32505         * lib/sha512.h: Likewise.
32506
32507         tests-sha1: don't assign literal string to 'char *' variable
32508         * tests/test-sha1.c (main): Declare locals with "const" to match
32509         attributes of the right hand side.
32510
32511 2009-07-21  Eric Blake  <ebb9@byu.net>
32512
32513         dup2: fix more mingw problems
32514         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
32515         fd to itself.
32516         * doc/posix-functions/dup2.texi (dup2): Document the bug.
32517         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
32518         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
32519         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
32520         care of mingw bugs.
32521
32522 2009-07-21  Jim Meyering  <meyering@redhat.com>
32523
32524         vc-list-files: avoid failure when /bin/sh is dash
32525         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
32526         On some Debian based systems, /bin/sh is a symlink to dash, and running
32527         this command would omit the "/" following each 'tests' prefix:
32528           dash -x build-aux/vc-list-files -C . tests
32529         That is because bash and dash work differently:
32530           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
32531           bash ok
32532           dash odd
32533
32534 2009-07-21  Eric Blake  <ebb9@byu.net>
32535
32536         dup2-tests: test previous patch
32537         * modules/dup2-tests: New file.
32538         * tests/test-dup2.c: Likewise.
32539         * tests/test-open.c (main): Avoid unspecified behavior.
32540         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
32541         test.
32542
32543         dup2: work around mingw and cygwin 1.5 bug
32544         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
32545         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
32546         * modules/unistd (Makefile.am): Substitute it.
32547         * lib/unistd.in.h (dup2): Declare the replacement.
32548         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
32549         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
32550         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
32551         * modules/execute (Depends-on): Add dup2.
32552         * modules/fseterr (Depends-on): Likewise.
32553         * modules/pipe (Depends-on): Likewise.
32554         * modules/posix_spawn-internal (Depends-on): Likewise.
32555
32556 2009-07-21  Bruno Haible  <bruno@clisp.org>
32557
32558         * modules/.gitattributes: New file.
32559
32560 2009-07-20  Bruno Haible  <bruno@clisp.org>
32561
32562         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
32563         (main): Use it.
32564
32565 2009-07-20  Eric Blake  <ebb9@byu.net>
32566
32567         test-pipe: make a bit more robust.
32568         * tests/test-pipe.c (myerr): Allow error messages regardless of
32569         what we do to stderr.
32570         (test_pipe): Rearrange to avoid deadlock.
32571         (child_main): Try a larger read, to ensure we avoided deadlock.
32572         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
32573         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
32574         if misused.
32575
32576 2009-07-19  Jim Meyering  <meyering@redhat.com>
32577
32578         fts: avoid false-positive cycle-detection
32579         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
32580         for each new command line argument.
32581
32582 2009-07-19  Bruno Haible  <bruno@clisp.org>
32583
32584         Fix build error on mingw with the modules sys_select and unistd.
32585         * modules/acl-tests (Depends-on): Add close.
32586         * modules/binary-io-tests (Depends-on): Likewise.
32587         * modules/closein-tests (Depends-on): Likewise.
32588         * modules/flock-tests (Depends-on): Likewise.
32589         * modules/fsync-tests (Depends-on): Likewise.
32590         * modules/lseek-tests (Depends-on): Likewise.
32591         * modules/pipe-tests (Depends-on): Likewise.
32592         * modules/posix_spawn-tests (Depends-on): Likewise.
32593         * modules/posix_spawnp-tests (Depends-on): Likewise.
32594         * modules/stat-time-tests (Depends-on): Likewise.
32595         * modules/yesno-tests (Depends-on): Likewise.
32596
32597 2009-07-19  Bruno Haible  <bruno@clisp.org>
32598
32599         Unify conditionals.
32600         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
32601         macros, not at the compiler macros.
32602         * lib/pipe.c: Likewise.
32603         * lib/execute.c: Likewise.
32604         * lib/spawni.c: Likewise.
32605
32606 2009-07-19  Bruno Haible  <bruno@clisp.org>
32607
32608         Fix handling of closed stdin/stdout/stderr on mingw.
32609         * lib/w32spawn.h: Include unistd.h.
32610         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
32611         file descriptor with O_NOINHERIT flag.
32612         (fd_safer_noinherit): New function, based on fd-safer.c.
32613         (dup_safer_noinherit): New function, based on dup-safer.c.
32614         (undup_safer_noinherit): New function.
32615         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
32616         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
32617         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
32618         instead of fd_safer.
32619         * tests/test-pipe.c: Include <windows.h>.
32620         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
32621         result.
32622
32623         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
32624         from main.
32625         (test_pipe): Pass an extra argument for disambiguation.
32626         (main): Invoke parent_main or child_main.
32627
32628         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
32629         consistently.
32630
32631 2009-07-18  Eric Blake  <ebb9@byu.net>
32632
32633         test-pipe: fix mingw build
32634         * tests/test-pipe.c (main): Avoid fcntl on mingw.
32635
32636 2009-07-18  Bruno Haible  <bruno@clisp.org>
32637
32638         * modules/pipe-tests (Makefile.am): Fix typo.
32639
32640 2009-07-18  Eric Blake  <ebb9@byu.net>
32641
32642         error: fix mingw build
32643         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
32644         Reported by Bruno Haible.
32645
32646         error: avoid undefined use of stdout
32647         * lib/error.c (error, error_at_line): Check that fd 1 is open
32648         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
32649         is handling faults and the close_stdout module wants to report the
32650         detection of closed stdout as an error.
32651
32652 2009-07-17  Eric Blake  <ebb9@byu.net>
32653
32654         pipe: be robust in face of closed fds
32655         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
32656         should cause child to misbehave.
32657         * modules/pipe-tests: New module.
32658         * tests/test-pipe.c: New file.
32659         * tests/test-pipe.sh: New file.
32660         Reported by Akim Demaille.
32661
32662 2009-07-14  Bruno Haible  <bruno@clisp.org>
32663
32664         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
32665         Reported by anonymous kc.
32666
32667 2009-07-07  Jim Meyering  <meyering@redhat.com>
32668
32669         maint.mk: don't look for translatable strings in *.m4 or *.mk
32670         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
32671         when searching for translatable strings.
32672
32673 2009-07-05  Jim Meyering  <meyering@redhat.com>
32674
32675         remove superfluous parentheses in STREQ definition
32676         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
32677         * lib/getugroups.c (STREQ): Likewise.
32678         * lib/fnmatch.c (STREQ): Likewise.
32679         Spotted by Bruno Haible.
32680
32681 2009-07-04  Jim Meyering  <meyering@redhat.com>
32682
32683         argv-iter: new module
32684         * MODULES.html.sh: Add argv-iter.
32685         * lib/argv-iter.c, lib/argv-iter.h: New files.
32686         * modules/argv-iter: New file.
32687         * modules/argv-iter-tests: New file.
32688         * tests/test-argv-iter.c: Test it.
32689
32690 2009-07-04  Bruno Haible  <bruno@clisp.org>
32691
32692         Fix assertion.
32693         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
32694         contains more exact copies of a given entry than file2, leave the extra
32695         copies unpaired rather than aborting.
32696         Reported by Eric Blake.
32697
32698 2009-07-02  Bruno Haible  <bruno@clisp.org>
32699
32700         Speedup git-merge-changelog for git cherry-pick.
32701         * lib/git-merge-changelog.c (struct entries_mapping): New type.
32702         (entries_mapping_get): New function, extracted from compute_mapping.
32703         (entries_mapping_reverse_get): New function.
32704         (compute_mapping): Add a 'full' argument. Return the result in a
32705         'struct entries_mapping'.
32706         (main): Update. Access the mappings through entries_mapping_get.
32707         Reported by Eric Blake.
32708
32709 2009-07-02  Bruno Haible  <bruno@clisp.org>
32710
32711         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
32712         best_i.
32713
32714 2009-07-02  Bruno Haible  <bruno@clisp.org>
32715
32716         Speed up approximate search for matching ChangeLog entries.
32717         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
32718         argument. Call fstrcmp_bounded instead of fstrcmp.
32719         (compute_mapping, try_split_merged_entry, main): Update callers.
32720
32721 2009-07-02  Bruno Haible  <bruno@clisp.org>
32722
32723         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
32724
32725 2009-06-30  Bruno Haible  <bruno@clisp.org>
32726
32727         Reduce the number of uc_is_cased calls.
32728         * lib/unicase.h (casing_suffix_context_t): Add
32729         'first_char_except_ignorable' field.
32730         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
32731         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
32732         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
32733         Update initializer.
32734         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
32735         case-ignorable characters.
32736         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
32737         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
32738         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
32739         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
32740         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
32741
32742 2009-06-30  Bruno Haible  <bruno@clisp.org>
32743
32744         Tests for module 'unicase/ignorable'.
32745         * modules/unicase/ignorable-tests: New file.
32746         * tests/unicase/test-ignorable.c: New file, generated by
32747         gen-uni-tables.
32748
32749         Tests for module 'unicase/cased'.
32750         * modules/unicase/cased-tests: New file.
32751         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
32752         * tests/unicase/test-predicate-part1.h: New file, derived from
32753         tests/unictype/test-predicate-part1.h.
32754         * tests/unicase/test-predicate-part2.h: New file, same as
32755         tests/unictype/test-predicate-part2.h.
32756
32757         Fix evaluation of "Before C" condition of FINAL_SIGMA.
32758         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
32759         (output_casing_properties): New function.
32760         (main): Call it.
32761         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
32762         * lib/unicase/cased.c: Include unictype/bitmap.h.
32763         (uc_is_cased): Define through a bitmap lookup.
32764         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
32765         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
32766         (uc_is_case_ignorable): Define through a bitmap lookup.
32767         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
32768         lib/unictype/bitmap.h.
32769         (Depends-on): Add inline. Clean up.
32770         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
32771         lib/unictype/bitmap.h.
32772         (Depends-on): Add inline. Clean up.
32773         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
32774         recognition.
32775         * tests/unicase/test-u16-tolower.c (main): Likewise.
32776         * tests/unicase/test-u32-tolower.c (main): Likewise.
32777
32778 2009-06-30  Bruno Haible  <bruno@clisp.org>
32779
32780         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
32781         * lib/unicase/u16-casemap.c: Likewise.
32782         * lib/unicase/u32-casemap.c: Likewise.
32783
32784 2009-06-29  Bruno Haible  <bruno@clisp.org>
32785
32786         Define u32_casefold as a wrapper around u32_ct_casefold.
32787         * lib/unicase/u32-casefold.c: Update.
32788         * modules/unicase/u32-casefold (Depends-on): Add
32789         unicase/u32-ct-casefold, unicase/empty-prefix-context,
32790         unicase/empty-suffix-context. Clean up.
32791
32792         Define u16_casefold as a wrapper around u16_ct_casefold.
32793         * lib/unicase/u16-casefold.c: Update.
32794         * modules/unicase/u16-casefold (Depends-on): Add
32795         unicase/u16-ct-casefold, unicase/empty-prefix-context,
32796         unicase/empty-suffix-context. Clean up.
32797
32798         Define u8_casefold as a wrapper around u8_ct_casefold.
32799         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
32800         * lib/unicase/u8-casefold.c: Update.
32801         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
32802         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
32803
32804         Define u32_totitle as a wrapper around u32_ct_totitle.
32805         * lib/unicase/u32-totitle.c: Update.
32806         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
32807         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
32808
32809         Define u16_totitle as a wrapper around u16_ct_totitle.
32810         * lib/unicase/u16-totitle.c: Update.
32811         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
32812         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
32813
32814         Define u8_totitle as a wrapper around u8_ct_totitle.
32815         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
32816         functions.
32817         (FUNC): Delegate to U_CT_TOTITLE.
32818         * lib/unicase/u8-totitle.c: Update.
32819         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
32820         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
32821
32822         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
32823         invocation.
32824         * modules/unicase/u32-tolower (Depends-on): Add
32825         unicase/empty-prefix-context, unicase/empty-suffix-context.
32826
32827         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
32828         invocation.
32829         * modules/unicase/u16-tolower (Depends-on): Add
32830         unicase/empty-prefix-context, unicase/empty-suffix-context.
32831
32832         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
32833         * modules/unicase/u8-tolower (Depends-on): Add
32834         unicase/empty-prefix-context, unicase/empty-suffix-context.
32835
32836         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
32837         invocation.
32838         * modules/unicase/u32-toupper (Depends-on): Add
32839         unicase/empty-prefix-context, unicase/empty-suffix-context.
32840
32841         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
32842         invocation.
32843         * modules/unicase/u16-toupper (Depends-on): Add
32844         unicase/empty-prefix-context, unicase/empty-suffix-context.
32845
32846         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
32847         * modules/unicase/u8-toupper (Depends-on): Add
32848         unicase/empty-prefix-context, unicase/empty-suffix-context.
32849
32850         New module 'unicase/u32-ct-casefold'.
32851         * lib/unicase/u32-ct-casefold.c: New file.
32852         * modules/unicase/u32-ct-casefold: New file.
32853
32854         New module 'unicase/u16-ct-casefold'.
32855         * lib/unicase/u16-ct-casefold.c: New file.
32856         * modules/unicase/u16-ct-casefold: New file.
32857
32858         New module 'unicase/u8-ct-casefold'.
32859         * lib/unicase/u8-ct-casefold.c: New file.
32860         * lib/unicase/u-ct-casefold.h: New file, derived from
32861         lib/unicase/u-casefold.h.
32862         * modules/unicase/u8-ct-casefold: New file.
32863
32864         New module 'unicase/u32-ct-totitle'.
32865         * lib/unicase/u32-ct-totitle.c: New file.
32866         * modules/unicase/u32-ct-totitle: New file.
32867
32868         New module 'unicase/u16-ct-totitle'.
32869         * lib/unicase/u16-ct-totitle.c: New file.
32870         * modules/unicase/u16-ct-totitle: New file.
32871
32872         New module 'unicase/u8-ct-totitle'.
32873         * lib/unicase/u8-ct-totitle.c: New file.
32874         * lib/unicase/u-ct-totitle.h: New file, derived from
32875         lib/unicase/u-totitle.h.
32876         * modules/unicase/u8-ct-totitle: New file.
32877
32878         New module 'unicase/u32-ct-tolower'.
32879         * lib/unicase/u32-ct-tolower.c: New file.
32880         * modules/unicase/u32-ct-tolower: New file.
32881
32882         New module 'unicase/u16-ct-tolower'.
32883         * lib/unicase/u16-ct-tolower.c: New file.
32884         * modules/unicase/u16-ct-tolower: New file.
32885
32886         New module 'unicase/u8-ct-tolower'.
32887         * lib/unicase/u8-ct-tolower.c: New file.
32888         * modules/unicase/u8-ct-tolower: New file.
32889
32890         New module 'unicase/u32-ct-toupper'.
32891         * lib/unicase/u32-ct-toupper.c: New file.
32892         * modules/unicase/u32-ct-toupper: New file.
32893
32894         New module 'unicase/u16-ct-toupper'.
32895         * lib/unicase/u16-ct-toupper.c: New file.
32896         * modules/unicase/u16-ct-toupper: New file.
32897
32898         New module 'unicase/u8-ct-toupper'.
32899         * lib/unicase/u8-ct-toupper.c: New file.
32900         * modules/unicase/u8-ct-toupper: New file.
32901
32902         Add context arguments to u*_casemap functions.
32903         * lib/unicase/unicasemap.h: Include unicase.h.
32904         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
32905         suffix_context arguments.
32906         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
32907         functions.
32908         (FUNC): Add prefix_context and suffix_context arguments. Use
32909         uc_is_cased and uc_is_case_ignorable.
32910         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
32911         * lib/unicase/u16-casemap.c: Likewise.
32912         * lib/unicase/u32-casemap.c: Likewise.
32913         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
32914         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
32915         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
32916         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
32917         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
32918         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
32919
32920         New module 'unicase/u32-suffix-context'.
32921         * lib/unicase/u32-suffix-context.c: New file.
32922         * modules/unicase/u32-suffix-context: New file.
32923
32924         New module 'unicase/u16-suffix-context'.
32925         * lib/unicase/u16-suffix-context.c: New file.
32926         * modules/unicase/u16-suffix-context: New file.
32927
32928         New module 'unicase/u8-suffix-context'.
32929         * lib/unicase/u8-suffix-context.c: New file.
32930         * lib/unicase/u-suffix-context.h: New file.
32931         * modules/unicase/u8-suffix-context: New file.
32932
32933         New module 'unicase/empty-suffix-context'.
32934         * lib/unicase/empty-suffix-context.c: New file.
32935         * modules/unicase/empty-suffix-context: New file.
32936
32937         New module 'unicase/u32-prefix-context'.
32938         * lib/unicase/u32-prefix-context.c: New file.
32939         * modules/unicase/u32-prefix-context: New file.
32940
32941         New module 'unicase/u16-prefix-context'.
32942         * lib/unicase/u16-prefix-context.c: New file.
32943         * modules/unicase/u16-prefix-context: New file.
32944
32945         New module 'unicase/u8-prefix-context'.
32946         * lib/unicase/u8-prefix-context.c: New file.
32947         * lib/unicase/u-prefix-context.h: New file.
32948         * lib/unicase/context.h: New file.
32949         * modules/unicase/u8-prefix-context: New file.
32950
32951         New module 'unicase/empty-prefix-context'.
32952         * lib/unicase/empty-prefix-context.c: New file.
32953         * modules/unicase/empty-prefix-context: New file.
32954
32955         New module 'unicase/ignorable'.
32956         * lib/unicase/ignorable.c: New file.
32957         * modules/unicase/ignorable: New file.
32958
32959         New module 'unicase/cased'.
32960         * lib/unicase/caseprop.h: New file.
32961         * lib/unicase/cased.c: New file.
32962         * modules/unicase/cased: New file.
32963
32964         New functions for case mapping of substrings.
32965         * lib/unicase.h (casing_prefix_context_t): New type.
32966         (unicase_empty_prefix_context): New variable.
32967         (u8_casing_prefix_context, u16_casing_prefix_context,
32968         u32_casing_prefix_context, u8_casing_prefixes_context,
32969         u16_casing_prefixes_context, u32_casing_prefixes_context): New
32970         declarations.
32971         (casing_suffix_context_t): New type.
32972         (unicase_empty_suffix_context): New variable.
32973         (u8_casing_suffix_context, u16_casing_suffix_context,
32974         u32_casing_suffix_context, u8_casing_suffixes_context,
32975         u16_casing_suffixes_context, u32_casing_suffixes_context,
32976         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
32977         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
32978         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
32979         declarations.
32980
32981 2009-06-28  Jim Meyering  <meyering@redhat.com>
32982
32983         boostrap: indent only with spaces
32984         * build-aux/bootstrap: Indent only with spaces, never TABs.
32985
32986         bootstrap: split long lines
32987         * build-aux/bootstrap: Keep line length < 80.
32988
32989         bootstrap: sync from coreutils
32990         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
32991         just as autoreconf does.  Verify a list of prerequisite
32992         package-name,version-number pairs if defined in bootstrap.conf.
32993         Refer to README-prereq, if prerequisites are not satisfied.
32994
32995 2009-06-27  Eric Blake  <ebb9@byu.net>
32996
32997         tests: add test for bogus NULL definition
32998         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
32999         * tests/test-stdlib.c: Likewise.
33000         * tests/test-string.c: Likewise.
33001         * tests/test-locale.c: Likewise.
33002         * tests/test-unistd.c: Likewise.
33003         * modules/stdio-tests (Depends-on): Add verify.
33004         * modules/stdlib-tests (Depends-on): Likewise.
33005         * modules/string-tests (Depends-on): Likewise.
33006         * modules/locale-tests (Depends-on): Likewise.
33007         * modules/unistd-tests (Depends-on): Likewise.
33008
33009 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
33010
33011         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
33012         self-explaining comment.
33013         * m4/selinux-selinux-h: Update serial.
33014         (gl_LIBSELINUX): New macro, adding a warning for missing development
33015         packages to code extracted from...
33016         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
33017         Add warning for missing development packages here, too.
33018
33019 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
33020
33021         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
33022
33023 2009-06-25  Eric Blake  <ebb9@byu.net>
33024
33025         version-etc: fix regression
33026         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
33027         gcc.
33028         (version_etc): Use it, to catch bugs with trailing NULL.
33029         * lib/version-etc.c (version_etc_arn): Delete unused argument.
33030         (version_etc_va): Fix logic bug.
33031         * modules/version-etc-tests: Add test.
33032         * tests/test-version-etc.c: New file.
33033         * tests/test-version-etc.sh: Likewise.
33034
33035 2009-06-25  Sam Steingold  <sds@gnu.org>
33036
33037         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
33038         mbtowc declaration.
33039
33040 2009-06-25  Eric Blake  <ebb9@byu.net>
33041
33042         fpurge: migrate into <stdio.h>
33043         * lib/fpurge.h: Delete...
33044         * lib/stdio.in.h (fpurge): ...and declare here, instead.
33045         * lib/fpurge.c (fpurge): Change declaring header.
33046         * modules/fpurge (Files): Drop deleted file.
33047         (Depends-on): Add stdio.
33048         (configure.ac): Set witness.
33049         * modules/stdio (Makefile.am): Support fpurge macros.
33050         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
33051         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
33052         * lib/fflush.c: Update client.
33053         * tests/test-fpurge.c: Likewise.
33054         * NEWS: Mention the change.
33055
33056 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
33057
33058         * lib/argp-version-etc.c (program_authors): Add const
33059         qualifier.
33060         * lib/version-etc.c: Fix typos in the comments.
33061         * modules/argp-version-etc: Depends on version-etc.
33062
33063 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
33064
33065         argp-version-etc: new module.
33066
33067         * lib/argp-version-etc.c: New file.
33068         * lib/argp-version-etc.h: New file.
33069         * modules/argp-version-etc: New file.
33070         * modules/argp-version-etc-tests: New file.
33071         * tests/test-argp-version-etc.c: New test.
33072         * tests/test-argp-version-etc-1.sh: New test.
33073
33074 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
33075
33076         Provide additional interfaces and documentation for version-etc
33077         module.
33078
33079         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
33080         interfaces.
33081         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
33082         prototypes.
33083
33084 2009-06-24  Bruno Haible  <bruno@clisp.org>
33085
33086         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
33087         HAVE_LIB${NAME} macro.
33088         Reported by Sam Steingold <sds@gnu.org>.
33089
33090 2009-06-23  Simon Josefsson  <simon@josefsson.org>
33091
33092         * modules/hash-tests (test_hash_LDADD): Link to libintl when
33093         needed.
33094
33095 2009-06-21  Bruno Haible  <bruno@clisp.org>
33096
33097         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
33098         work.
33099         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
33100         together with LIB${NAME}, LTLIB${NAME}.
33101         Reported by Sam Steingold <sds@gnu.org>.
33102
33103 2009-06-20  Jim Meyering  <meyering@redhat.com>
33104
33105         tests: make sc_require_test_exit_idiom more generic
33106         * top/maint.mk (Exit_witness_file): New overridable variable.
33107         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
33108         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
33109
33110 2009-06-19  Jim Meyering  <meyering@redhat.com>
33111
33112         hash: reverse order of src/dst parameters in an internal interface
33113         * lib/hash.c (transfer_entries): Reverse order of parameters to
33114         put DST before SRC.  Adjust callers.
33115
33116         tests: test-hash: avoid wholesale duplication
33117         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
33118         Instead, use a loop and add a single conditional.
33119
33120         tests: test-hash: allow seed selection via a command line argument
33121         * tests/test-hash.c (get_seed): New function.
33122         (main): Use it.
33123
33124 2009-06-19  Eric Blake  <ebb9@byu.net>
33125
33126         hash: avoid memory leak on allocation failure
33127         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
33128         failure.  Factor repeated algorithm...
33129         (transfer_entries): ...into new helper routine.
33130         (hash_delete): React to hash_rehash return value.
33131
33132         hash: reduce memory pressure in hash_rehash no-op case
33133         * lib/hash.c (next_prime): Avoid overflow.
33134         (hash_initialize): Factor bucket size computation...
33135         (compute_bucket_size): ...into new helper function.
33136         (hash_rehash): Use new function and open coding to reduce memory
33137         pressure, and avoid a memory leak in USE_OBSTACK code.
33138         Reported by Jim Meyering.
33139
33140 2009-06-18  Eric Blake  <ebb9@byu.net>
33141
33142         hash: make rotation more obvious
33143         * modules/hash (Depends-on): Add bitrotate and stdint.
33144         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
33145         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
33146         (SIZE_MAX): Rely on headers for definition.
33147         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
33148         (raw_hasher): Use rotr_sz.
33149         Suggested by Jim Meyering.
33150
33151         hash: fix memory leak in last patch
33152         * lib/hash.c (hash_rehash): Avoid memory leak.
33153
33154         hash: avoid no-op rehashing
33155         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
33156
33157         hash: provide default callback functions
33158         * lib/hash.c (raw_hasher, raw_comparator): New functions.
33159         (hash_initialize): Use them as defaults.
33160         * tests/test-hash.c (main): Test this.
33161
33162         hash: minor optimization
33163         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
33164         when possible.
33165         (hash_initialize): Document this promise.
33166         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
33167         * tests/test-hash.c (hash_compare_strings): Test this.
33168
33169 2009-06-18  Bruno Haible  <bruno@clisp.org>
33170
33171         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
33172         going to be replaced anyway.
33173
33174 2009-06-18  Bruno Haible  <bruno@clisp.org>
33175
33176         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
33177         in one place.
33178         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
33179         be replaced anyway.
33180
33181 2009-06-18  Eric Blake  <ebb9@byu.net>
33182
33183         hash: check for resize before insertion
33184         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
33185         threshold before insertion, so that a pathological hash_rehash
33186         that fills every bucket can still trigger another rehash.
33187
33188 2009-06-18  Jim Meyering  <meyering@redhat.com>
33189
33190         hash-tests: add a loop around the small tests
33191         * tests/test-hash.c (main): Repeat small tests with selected
33192         small initial table sizes.
33193
33194 2009-06-17  Eric Blake  <ebb9@byu.net>
33195
33196         hash: minor cleanups
33197         * lib/hash.h (hash_entry): Make opaque, by moving...
33198         * lib/hash.c (hash_entry): ...here.
33199         (hash_insert): Clarify restrictions on what can be inserted.
33200         (hash_get_next): Clarify when it is safe to remove an element
33201         during traversal.
33202         (check_tuning): Skip verification when tuning is known safe.
33203         (hash_initialize): Clarify restrictions on tuning.
33204
33205 2009-06-17  Jim Meyering  <jim@meyering.net>
33206         and Eric Blake  <ebb9@byu.net>
33207
33208         hash-tests: new module
33209         * modules/hash-tests: New file.
33210         * tests/test-hash.c: New file.
33211
33212 2009-06-17  Eric Blake  <ebb9@byu.net>
33213
33214         strstr-simple: document new module
33215         * MODULES.html.sh: Document new module.
33216
33217         strstr, strcasestr: replace on platforms with broken memchr
33218         * modules/strstr: Split into...
33219         * modules/strstr-simple: ...new module that does not care about
33220         performance, but does care about glibc bug.
33221         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
33222         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
33223         if platform memchr is broken, per Debian bug 521737.
33224         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
33225         memchr.
33226         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
33227         * doc/posix-functions/strstr.texi (strstr): Document the fix.
33228         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
33229         * modules/mountlist (Depends-on): Add strstr-simple.
33230         * modules/gen-uni-tables (Depends-on): Likewise.
33231         * modules/argz (Depends-on): Add strstr.
33232
33233 2009-06-17  Bruno Haible  <bruno@clisp.org>
33234
33235         * modules/posix_spawn-internal (Depends-on): Add errno.
33236
33237 2009-06-17  Bruno Haible  <bruno@clisp.org>
33238
33239         Define missing ESTALE on Interix 3.5.
33240         * lib/errno.in.h (ESTALE): Assign a value if missing.
33241         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
33242         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
33243         missing.
33244         * doc/posix-headers/errno.texi: Mention the Interix bug.
33245         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
33246
33247 2009-06-15  Eric Blake  <ebb9@byu.net>
33248
33249         memchr, memchr2: add valgrind exception
33250         * lib/memchr.valgrind: New file.
33251         * lib/memchr2.valgrind: New file.
33252         * modules/memchr (Files): Distribute valgrind file.
33253         * modules/memchr2 (Files): Likewise.
33254
33255         docs: memchr is no longer obsolete
33256         * MODULES.html.sh: Move memchr from obsolete to string.h section.
33257         * lib/string.in.h (memchr): Simplify logic.
33258
33259 2009-06-14  Jim Meyering  <meyering@redhat.com>
33260
33261         link-follow: fix the "checking..." message to not mention trailing slash
33262         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
33263         never considered trailing slashes.
33264
33265 2009-06-14  Bruno Haible  <bruno@clisp.org>
33266
33267         * m4/memchr.m4: Mention also the bug on IA-64.
33268         * doc/posix-functions/memchr.texi: Likewise.
33269
33270 2009-06-12  Eric Blake  <ebb9@byu.net>
33271
33272         memchr: detect broken x86_64 and alpha implementations
33273         * modules/memchr-tests (Depends-on): Move mmap detection...
33274         * modules/memchr (Depends-on): ...here.
33275         (configure.ac): Set indicator.
33276         * lib/string.in.h (memchr): Declare replacement.
33277         * modules/string (Makefile.am): Trigger replacement.
33278         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
33279         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
33280         bugs.
33281         * doc/posix-functions/memchr.texi (memchr): Document the bug.
33282         * modules/getpagesize (License): Relax license.
33283
33284 2009-06-11  Bruno Haible  <bruno@clisp.org>
33285
33286         * lib/idpriv.h: Add more references.
33287
33288 2009-06-08  Bruno Haible  <bruno@clisp.org>
33289
33290         Tests for module 'idpriv-droptemp'.
33291         * modules/idpriv-droptemp-tests: New file.
33292         * tests/test-idpriv-droptemp.sh: New file.
33293         * tests/test-idpriv-droptemp.su.sh: New file.
33294         * tests/test-idpriv-droptemp.c: New file.
33295
33296         New module 'idpriv-droptemp'.
33297         * lib/idpriv-droptemp.c: New file.
33298         * modules/idpriv-droptemp: New file.
33299
33300 2009-06-08  Bruno Haible  <bruno@clisp.org>
33301
33302         Tests for module 'idpriv-drop'.
33303         * modules/idpriv-drop-tests: New file.
33304         * tests/test-idpriv-drop.sh: New file.
33305         * tests/test-idpriv-drop.su.sh: New file.
33306         * tests/test-idpriv-drop.c: New file.
33307
33308         New module 'idpriv-drop'.
33309         * lib/idpriv.h: New file.
33310         * lib-idpriv-drop.c: New file.
33311         * m4/idpriv.m4: New file.
33312         * modules/idpriv-drop: New file.
33313
33314 2009-06-08  Bruno Haible  <bruno@clisp.org>
33315
33316         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
33317         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
33318         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
33319         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
33320         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
33321         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
33322         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
33323
33324 2009-06-08  Eric Blake  <ebb9@byu.net>
33325
33326         test-strstr: use memory fence, when possible
33327         * tests/test-strstr.c (main): Use memory fence, in order to be
33328         more likely to trigger Debian bug 521737.
33329         * modules/strstr-tests (Files): Pull in additional files.
33330
33331         memchr: no longer obsolete, for wider field testing
33332         * modules/memchr (Status, Notice): Delete, this module is no
33333         longer obsolete.
33334         * modules/vasnprintf (Depends-on): Add memchr.
33335
33336 2009-06-07  Jim Meyering  <meyering@redhat.com>
33337
33338         hash: declare some functions with the warn_unused_result attribute
33339         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
33340
33341 2009-06-07  Bruno Haible  <bruno@clisp.org>
33342
33343         * tests/test-alignof.c: Don't test int64_t if it does not exist.
33344         Reported by Eric Blake.
33345
33346 2009-06-06  Eric Blake  <ebb9@byu.net>
33347
33348         test-alignof: fix typo with long double
33349         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
33350         compiler error.
33351
33352 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
33353
33354         Escape non-texinfo { and }s.
33355         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
33356         markup error.
33357
33358 2009-06-04  Jim Meyering  <meyering@redhat.com>
33359
33360         gitlog-to-changelog: don't infloop on an empty commit log
33361         * build-aux/gitlog-to-changelog: Warn about an empty log message.
33362         Reported by Boris Petersen <transacid@centerim.org>.
33363
33364 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
33365
33366         version-etc: extend for packagers
33367         Add three new configure options, intended for packagers:
33368           --with-packager="packager name"
33369           --with-packager-version="packager-specific version"
33370           --with-packager-bug-reports="packager bug reporting"
33371         An example with coreutils:
33372           $ ./configure \
33373             --with-packager=Gentoo \
33374             --with-packager-bug-report=http://bugs.gentoo.org/ \
33375             --with-packager-version="patchset 1.6"
33376           $ ./src/ls --version | head -n2
33377           ls (GNU coreutils) 7.1-dirty
33378           Packaged by Gentoo (patchset 1.6)
33379         Note that the bug reporting info via --help doesn't show up because
33380         coreutils uses its own custom emit_bug_reporting_address() implementation
33381         in src/system.h.  If it didn't, it'd look like:
33382           $ ./src/ls --help | tail -n4
33383           Report bugs to <bug-coreutils@gnu.org>.
33384           Report Gentoo bugs to <http://bugs.gentoo.org/>.
33385           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
33386           General help using GNU software: <http://www.gnu.org/gethelp/>.
33387         * lib/version-etc.c: Print new information, if provided.
33388         * m4/version-etc.m4: New file.
33389         * modules/version-etc (Files): Add m4/version-etc.m4.
33390         (configure.ac): Add gl_VERSION_ETC.
33391
33392 2009-05-31  Bruno Haible  <bruno@clisp.org>
33393
33394         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
33395         and 'int64_t'.
33396         * modules/alignof-tests (Dependencies): Add stdint.
33397         Reported by Eric Blake.
33398
33399 2009-05-31  Bruno Haible  <bruno@clisp.org>
33400
33401         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
33402         restriction due to compiler bugs.
33403         Reported by Eric Blake.
33404
33405 2009-05-31  Simon Josefsson  <simon@josefsson.org>
33406             Bruno Haible  <bruno@clisp.org>
33407
33408         Fix test-alignof failure.
33409         * lib/alignof.h (alignof_slot): New macro.
33410         (alignof_type): New macro, with the same semantics as the previous
33411         'alignof'.
33412         (alignof): Alias to alignof_slot.
33413         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
33414         check that the results are usable as constant expressions.
33415
33416 2009-05-31  Bruno Haible  <bruno@clisp.org>
33417
33418         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
33419         * tests/test-memchr.c (main): Check that memchr does not read past the
33420         first occurrence of the byte.
33421         * tests/test-strstr.c (main): Update comment.
33422         Suggested by Eric Blake.
33423
33424 2009-05-30  Bruno Haible  <bruno@clisp.org>
33425
33426         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
33427         detail how to use dumpbin.
33428         Reported by David Byron <dbyron@dbyron.com>.
33429
33430 2009-06-02  Simon Josefsson  <simon@josefsson.org>
33431
33432         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
33433
33434 2009-06-02  Simon Josefsson  <simon@josefsson.org>
33435
33436         * m4/manywarnings.m4: Add GCC 4.4 warnings.
33437
33438 2009-05-28  Bruno Haible  <bruno@clisp.org>
33439
33440         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
33441         build-aux/ files.
33442
33443 2009-05-28  Simon Josefsson  <simon@josefsson.org>
33444
33445         * gnulib-tool (func_import): Transform license on build-aux/ files too.
33446
33447 2009-05-27  Simon Josefsson  <simon@josefsson.org>
33448
33449         * gnulib-tool (sed_transform_main_lib_file)
33450         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
33451         regexps.
33452
33453 2009-05-26  Simon Josefsson  <simon@josefsson.org>
33454
33455         * tests/test-strstr.c: Add another self-test.
33456         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
33457         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
33458
33459 2009-05-23  Bruno Haible  <bruno@clisp.org>
33460
33461         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
33462         change.
33463
33464 2009-05-21  Bruno Haible  <bruno@clisp.org>
33465
33466         Simplify use of mode_t varargs.
33467         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
33468         uses 'mode_t' or 'int'.
33469         * lib/openat.c (openat): Likewise.
33470         * lib/open-safer.c (open_safer): Likewise.
33471         * m4/mode_t.m4: New file.
33472         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
33473         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
33474         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
33475         * modules/open (Files): Add m4/mode_t.m4.
33476         * modules/openat (Files): Likewise.
33477         * modules/fcntl-safer (Files): Likewise.
33478         Suggested by Eric Blake.
33479
33480 2009-05-21  Pádraig Brady  <P@draigbrady.com>
33481
33482         * doc/glibc-functions/fallocate.texi: New file.
33483         * doc/gnulib.texi: Include it.
33484
33485 2009-05-21  Eric Blake  <ebb9@byu.net>
33486             Bruno Haible  <bruno@clisp.org>
33487
33488         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
33489         invocations.
33490         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
33491
33492 2009-05-21  Eric Blake  <ebb9@byu.net>
33493             Bruno Haible  <bruno@clisp.org>
33494
33495         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
33496         include_next. Fix of 2008-11-20 commit.
33497         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
33498         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
33499         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
33500         NEXT_MATH_H.
33501         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
33502         instead of NEXT_MATH_H.
33503
33504 2009-05-21  Bruno Haible  <bruno@clisp.org>
33505
33506         Avoid redefinition warnings for SIZE_MAX.
33507         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
33508         Reported by Simon Josefsson.
33509
33510 2009-05-21  Bruno Haible  <bruno@clisp.org>
33511
33512         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
33513         AC_CACHE_VAL.
33514
33515 2009-05-20  Bruno Haible  <bruno@clisp.org>
33516
33517         Make zeroptr.h work on mingw.
33518         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
33519         mprotect.
33520         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
33521         * modules/memchr2-tests (configure.ac): Likewise.
33522         * modules/memcmp-tests (configure.ac): Likewise.
33523         * modules/memmem-tests (configure.ac): Likewise.
33524         * modules/memrchr-tests (configure.ac): Likewise.
33525         Reported by Simon Josefsson.
33526
33527 2009-05-20  Simon Josefsson  <simon@josefsson.org>
33528
33529         * tests/test-glob.c: Include string.h for strcmp prototype.
33530
33531 2009-05-20  Simon Josefsson  <simon@josefsson.org>
33532
33533         * modules/getdelim (Depends-on): Add explicit stdint, although it
33534         was implicitly already pulled in via realloc-posix.
33535         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
33536
33537 2009-05-20  Simon Josefsson  <simon@josefsson.org>
33538
33539         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
33540         G. Christensen" <tgc@jupiterrise.com>.
33541         * m4/sys_socket_h.m4: Check for sa_family_t.
33542         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
33543         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
33544         * tests/test-sys_socket.c: Check that sa_family_t works.
33545
33546 2009-05-18  Eric Blake  <ebb9@byu.net>
33547
33548         maint.mk: allow gnulib_dir in VPATH build
33549         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
33550
33551 2009-05-15  Jim Meyering  <meyering@redhat.com>
33552
33553         maint.mk: Give gnulib_dir a default definition.
33554         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
33555         Thus, most packages no longer need to specify this variable in cfg.mk
33556
33557 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
33558
33559         rename.m4: fix typos that would make non-mingw cross-configure fail
33560         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
33561
33562 2009-05-13  Eric Blake  <ebb9@byu.net>
33563
33564         mmap-anon: avoid out-of-order autoconf expansion
33565         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
33566         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
33567         * modules/memchr-tests (Depends-on): Add extensions.
33568         * modules/memchr2-tests (Depends-on): Add extensions.
33569         * modules/memcmp-tests (Depends-on): Add extensions.
33570         * modules/memmem-tests (Depends-on): Add extensions.
33571         * modules/memrchr-tests (Depends-on): Add extensions.
33572
33573 2009-05-13  Bruno Haible  <bruno@clisp.org>
33574
33575         Make some tests ISO C 99 compliant.
33576         * tests/zerosize-ptr.h: New file.
33577         * tests/test-memchr.c: Include zerosize-ptr.h.
33578         (main): Use a zero-size object pointer instead of NULL.
33579         * tests/test-memchr2.c: Include zerosize-ptr.h.
33580         (main): Use a zero-size object pointer instead of NULL.
33581         * tests/test-memcmp.c: Include zerosize-ptr.h.
33582         (main): Use a zero-size object pointer instead of NULL.
33583         * tests/test-memmem.c: Include zerosize-ptr.h.
33584         (main): Use a zero-size object pointer instead of NULL.
33585         * tests/test-memrchr.c: Include zerosize-ptr.h.
33586         (main): Use a zero-size object pointer instead of NULL.
33587         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
33588         m4/mmap-anon.m4.
33589         (Depends-on): Add getpagesize.
33590         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
33591         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
33592         m4/mmap-anon.m4.
33593         (Depends-on): Add getpagesize.
33594         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
33595         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
33596         m4/mmap-anon.m4.
33597         (Depends-on): Add getpagesize.
33598         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
33599         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
33600         m4/mmap-anon.m4.
33601         (Depends-on): Add getpagesize.
33602         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
33603         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
33604         m4/mmap-anon.m4.
33605         (Depends-on): Add getpagesize.
33606         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
33607
33608 2009-05-12  Bruno Haible  <bruno@clisp.org>
33609
33610         Tests for module 'alignof'.
33611         * modules/alignof-tests: New file.
33612         * tests/test-alignof.c: New file.
33613
33614 2009-05-12  Bruno Haible  <bruno@clisp.org>
33615
33616         Fix alignof macro.
33617         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
33618         vendor compilers that are always correct.
33619
33620 2009-05-12  Bruno Haible  <bruno@clisp.org>
33621
33622         Make the MAP_ANONYMOUS detection work on HP-UX 11.
33623         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
33624         not whether its fully works.
33625
33626 2009-05-12  Bruno Haible  <bruno@clisp.org>
33627
33628         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
33629
33630 2009-05-12  Jim Meyering  <meyering@redhat.com>
33631
33632         * top/maint.mk: Adjust backslash alignment.
33633
33634 2009-05-11  Simon Josefsson  <simon@josefsson.org>
33635
33636         * top/maint.mk: Make $(srcdir)/build-aux configurable.
33637
33638 2009-05-11  Eric Blake  <ebb9@byu.net>
33639
33640         argp: avoid undefined behavior
33641         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
33642         macros.
33643
33644 2009-05-08  Simon Josefsson  <simon@josefsson.org>
33645
33646         * tests/test-vc-list-files-git.sh: Do git config of user.email and
33647         user.name to prevent git commit from complaining.
33648
33649 2009-05-10  Bruno Haible  <bruno@clisp.org>
33650
33651         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
33652         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
33653         it rewrites every file name only once.
33654         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
33655
33656 2009-05-08  Bruno Haible  <bruno@clisp.org>
33657
33658         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
33659         instead of 'max'.
33660
33661 2009-05-08  Simon Josefsson  <simon@josefsson.org>
33662
33663         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
33664         sockaddr_storage test.
33665
33666 2009-05-07  Simon Josefsson  <simon@josefsson.org>
33667
33668         * modules/sys_socket (Makefile.am): Substitute
33669         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
33670         * m4/sys_socket_h.m4: Check for sockaddr_storage.
33671         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
33672         * tests/test-sys_socket.c: Check sockaddr_storage.
33673
33674 2009-05-08  Bruno Haible  <bruno@clisp.org>
33675
33676         New module 'alignof'.
33677         * lib/alignof.h: New file.
33678         * modules/alignof: New file.
33679
33680 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
33681             Bruno Haible  <bruno@clisp.org>
33682
33683         Fix test-file-has-acl on FreeBSD.
33684         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
33685         mask is implicitly added.
33686         * tests/test-file-has-acl.c: Include <signal.h>.
33687         (main): Terminate the test after 5 seconds.
33688         * modules/acl-tests (configure.ac): Check for alarm function.
33689
33690 2009-05-04  Bruno Haible  <bruno@clisp.org>
33691
33692         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
33693         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
33694         * modules/errno (configure.ac): Drop AC_REQUIRE.
33695         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
33696         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
33697
33698 2009-05-04  Simon Josefsson  <simon@josefsson.org>
33699
33700         * modules/glob-tests: New module.
33701         * tests/test-glob.c: Add.
33702
33703 2009-05-04  Simon Josefsson  <simon@josefsson.org>
33704
33705         * modules/fnmatch-tests: New module.
33706         * tests/test-fnmatch.c: Add.
33707
33708 2009-05-04  Eric Blake  <ebb9@byu.net>
33709
33710         maint: make the new no-submodule-changes rule VPATH-safe
33711         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
33712
33713 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
33714             Bruno Haible  <bruno@clisp.org>
33715
33716         acl: Fix infinite loop on FreeBSD.
33717         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
33718         of return value from acl_get_entry.
33719         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
33720         Likewise.
33721
33722 2009-05-03  Bruno Haible  <bruno@clisp.org>
33723
33724         * lib/acl-internal.h (acl_entries): Clarify return value.
33725         * lib/acl_entries.c (acl_entries): Likewise.
33726
33727 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
33728
33729         Bug fix in acl module.
33730         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
33731
33732 2009-05-03  Bruno Haible  <bruno@clisp.org>
33733
33734         Create gperf-generated file in the source dir, not in the build dir.
33735         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
33736         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
33737         * modules/unicase/locale-language (unicase/locale-languages.h):
33738         Likewise.
33739         * modules/unicase/special-casing (unicase/special-casing-table.h):
33740         Likewise.
33741         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
33742         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
33743         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
33744         Reported by Ralf Wildenhues.
33745
33746 2009-05-03  Bruno Haible  <bruno@clisp.org>
33747
33748         * modules/fnmatch (Description, configure.ac): Taken from
33749         fnmatch-posix.
33750         * modules/fnmatch-posix: Turn into a symbolic reference to the
33751         'fnmatch' module, and deprecate.
33752         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
33753
33754 2009-05-03  Bruno Haible  <bruno@clisp.org>
33755
33756         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
33757         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
33758         Reported by Ralf Wildenhues.
33759
33760 2009-05-04  Simon Josefsson  <simon@josefsson.org>
33761
33762         * m4/fnmatch.m4: Fix fnmatch re-define.
33763
33764 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
33765
33766         priv-set: new module and tests; adapt write-any-file
33767         * lib/priv-set.c: New file.
33768         * lib/priv-set.h: New file.
33769         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
33770         * lib/write-any-file.c: Simplify by using priv-set module.
33771         * m4/priv-set.m4: New file.
33772         * modules/priv-set: New file.
33773         * modules/unlinkdir: Add dependency on priv-set module.
33774         * modules/write-any-file: Likewise.
33775
33776         Tests for module 'priv-set'.
33777         * modules/priv-set-tests: New file.
33778         * tests/test-priv-set.c: New file.
33779
33780 2009-05-03  Jim Meyering  <meyering@redhat.com>
33781             Bruno Haible  <bruno@clisp.org>
33782
33783         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
33784         use the converted UTF-8 variant of the name instead.
33785
33786 2009-05-03  Jim Meyering  <meyering@redhat.com>
33787
33788         tests: tighten some getdate tests
33789         * tests/test-getdate.c (main): Tighten tests: require equality,
33790         not just greater than.  Set TZ envvar to UTC0.
33791
33792 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
33793
33794         getdate: correctly interpret "next monday" when run on a Monday
33795         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
33796         that e.g., "next tues" (when run on a tuesday) results in a date
33797         that is one week in the future, and not today's date.
33798         I.e., add a week when the wday is the same as the current one.
33799         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
33800         and earlier by Martin Bernreuther and Jan Minář.
33801         * tests/test-getdate.c (main): Check that "next DAY" is always in
33802         the future and that "last DAY" is always in the past.
33803
33804 2009-05-02  Jim Meyering  <meyering@redhat.com>
33805
33806         build: ensure that a release build fails when a submodule is unclean
33807         * top/maint.mk (no-submodule-changes): New rule.
33808         (alpha beta major): Depend on it.
33809
33810 2009-05-02  Bruno Haible  <bruno@clisp.org>
33811
33812         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
33813         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
33814         shell variable gl_fnmatch_required to detect which variant is
33815         requested.
33816         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
33817         gl_FUNC_FNMATCH_POSIX.
33818         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
33819         exclude fnmatch-posix.
33820
33821 2009-05-02  Bruno Haible  <bruno@clisp.org>
33822
33823         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
33824         * modules/mbsrtowcs (License): Change to LGPLv2+.
33825         * modules/strnlen1 (License): Likewise.
33826         Reported by Simon Josefsson.
33827
33828 2009-05-02  Bruno Haible  <bruno@clisp.org>
33829
33830         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
33831         "cross".
33832         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
33833         gnulib-tool was called with option --source-base=lib.
33834
33835 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33836
33837         Use automake *-local hooks without commands, for extensibility.
33838         * modules/localcharset (Makefile.am): Rename install-exec-local
33839         rule to install-exec-localcharset, and make it a prerequisite of
33840         install-exec-local.  Likewise, rename the uninstall-local rule to
33841         uninstall-localcharset, and make it a prerequisite of the former.
33842
33843 2009-05-01  Bruno Haible  <bruno@clisp.org>
33844
33845         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
33846         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
33847         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
33848         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
33849         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
33850         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
33851         m4/locale-zh.m4, m4/codeset.m4.
33852
33853         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
33854         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
33855         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
33856         m4/locale-zh.m4.
33857
33858         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
33859         REPLACE_WCRTOMB if mbstate_t must be replaced.
33860         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
33861         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
33862
33863 2009-05-01  Bruno Haible  <bruno@clisp.org>
33864
33865         Avoid compiler warnings when redefining macros defined by <libintl.h>.
33866         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
33867         dngettext, dcngettext, textdomain, bindtextdomain,
33868         bind_textdomain_codeset): Undefine before redefining.
33869
33870 2009-04-30  Bruno Haible  <bruno@clisp.org>
33871
33872         Fix bug introduced on 2009-04-25.
33873         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
33874         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
33875         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
33876         is defined.
33877         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
33878         is defined.
33879         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
33880         is defined.
33881         Reported by Elbert_Pol <elbert.pol@gmail.com>.
33882
33883 2009-04-28  Bruno Haible  <bruno@clisp.org>
33884
33885         Comment tweaks.
33886         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
33887         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
33888         * lib/unicase.h (u*_casexfrm): Likewise.
33889         Reported by Paolo Bonzini.
33890
33891 2009-04-28  Bruno Haible  <bruno@clisp.org>
33892
33893         Fix a compilation error.
33894         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
33895         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
33896         Reported by Jim Meyering.
33897
33898 2009-04-27  Bruno Haible  <bruno@clisp.org>
33899
33900         New module 'libunistring'.
33901         * modules/libunistring: New file.
33902         * m4/libunistring.m4: New file.
33903         * MODULES.html.sh (Unicode string functions): Add it.
33904
33905 2009-04-27  Eric Blake  <ebb9@byu.net>
33906
33907         maint.mk: allow package-specific header to provide <config.h>
33908         * top/maint.mk (sc_require_config_h): New variable.
33909         (sc_require_config_h, sc_require_config_h_first): Use it.
33910
33911 2009-04-27  Simon Josefsson  <simon@josefsson.org>
33912
33913         * top/maint.mk (sc_avoid_if_before_free): Except
33914         useless-if-before-free script.
33915
33916 2009-04-27  Eric Blake  <ebb9@byu.net>
33917
33918         maintainer-makefile: depend on all required helper scripts
33919         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
33920         useless-if-before-free.
33921         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
33922         version, rather than assuming gnulib checkout is available.
33923         Reported by Simen Josefsson.
33924
33925 2009-04-26  Bruno Haible  <bruno@clisp.org>
33926
33927         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
33928         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
33929         "../" or "..".
33930
33931 2009-04-26  Bruno Haible  <bruno@clisp.org>
33932
33933         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
33934         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
33935         AC_LIB_HAVE_LINKFLAGS.
33936
33937 2009-04-26  Bruno Haible  <bruno@clisp.org>
33938
33939         Simplify calling convention of u*_conv_from_encoding.
33940         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
33941         u32_conv_from_encoding): Expect a resultbuf argument and return the
33942         result directly as a pointer.
33943         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
33944         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
33945         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
33946         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
33947         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
33948         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
33949         Update.
33950         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
33951         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
33952         * lib/vasnprintf.c (VASNPRINTF): Update.
33953         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
33954         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
33955         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
33956         * NEWS: Mention the change.
33957
33958 2009-04-26  Bruno Haible  <bruno@clisp.org>
33959
33960         Simplify calling convention of u*_conv_to_encoding.
33961         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
33962         u32_conv_to_encoding): Expect a resultbuf argument and return the
33963         result directly as a pointer.
33964         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
33965         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
33966         freeing scaled_offsets if mem_iconveha failed.
33967         * lib/unicase/u-casexfrm.h (FUNC): Update.
33968         * lib/uninorm/u-normxfrm.h (FUNC): Update.
33969         * lib/vasnprintf.c (VASNPRINTF): Update.
33970         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
33971         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
33972         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
33973         * NEWS: Mention the change.
33974
33975 2009-04-26  Bruno Haible  <bruno@clisp.org>
33976
33977         Avoid test failures on AIX and OSF/1.
33978         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
33979         malloc(0).
33980         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
33981         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
33982         Likewise.
33983         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
33984         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
33985         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
33986         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
33987         * doc/posix-functions/malloc.texi: Document the portability problem
33988         related to malloc(0).
33989
33990 2009-04-26  Bruno Haible  <bruno@clisp.org>
33991
33992         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
33993         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
33994         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
33995
33996 2009-04-25  Bruno Haible  <bruno@clisp.org>
33997
33998         Avoid link error when creating a namespace clean library.
33999         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
34000         as macro with arguments if already defined as an alias.
34001         * lib/signbitf.c (gl_signbitf): Don't undefine.
34002         * lib/signbitd.c (gl_signbitd): Don't undefine.
34003         * lib/signbitl.c (gl_signbitl): Don't undefine.
34004
34005 2009-04-25  Jim Meyering  <meyering@redhat.com>
34006
34007         vc-list-files: fix another quoting bug
34008         * build-aux/vc-list-files: Avoid sed backslash expansion
34009         of pathological directory names.
34010
34011 2009-04-25  Eric Blake  <ebb9@byu.net>
34012
34013         vc-list-files: fix shell quoting error
34014         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
34015         timestamp.
34016
34017 2009-04-25  Jim Meyering  <meyering@redhat.com>
34018
34019         vc-list-files: restore lost functionality with subdir argument
34020         * build-aux/vc-list-files: When given a non-"." sub-directory
34021         argument, substitute the $dir/ prefix back onto each resulting name.
34022         Otherwise, coreutils' root_tests check would fail.
34023
34024 2009-04-24  Eric Blake  <ebb9@byu.net>
34025
34026         vc-list-files: ignore git symlinks
34027         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
34028         than ls-files, to ignore git symlinks.
34029
34030         maint.mk: import improvements from m4
34031         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
34032         (move_if_change): Delete unused macro.
34033         (news-date-check, vc-diff-check): Support VPATH builds.
34034         (announcement): Likewise.  Split --bootstrap-tools list...
34035         (boostrap-tools): ...into separate list, which can be overridden
34036         in cfg.mk.
34037         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
34038         requiring dependency on useless-if-before-free module.
34039         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
34040         Support VPATH builds.
34041
34042 2009-04-24  Jim Meyering  <meyering@redhat.com>
34043
34044         maint.mk: remove coreutils-specific rules and variables
34045         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
34046         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
34047         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
34048
34049         maint.mk: remove obsolete rule
34050         * top/maint.mk (rel-check): Remove rule.
34051         (WGET, WGETFLAGS): Remove now-unused variables.
34052
34053 2009-04-24  Simon Josefsson  <simon@josefsson.org>
34054
34055         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
34056         consistency.
34057
34058         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
34059         '$(PATH_SEPARATOR)' instead of ':'.
34060
34061 2009-04-24  Simon Josefsson  <simon@josefsson.org>
34062
34063         * lib/getopt1.c (main): Use 'const' for static array.
34064
34065 2009-04-24  Simon Josefsson  <simon@josefsson.org>
34066
34067         * top/maint.mk: Sync with coreutils.
34068         * NEWS: Explain incompatibilities.
34069
34070 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
34071             Bruno Haible  <bruno@clisp.org>
34072
34073         Fix cross-compilation results.
34074         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
34075         statement, as third argument of AC_TRY_RUN.
34076         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
34077         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
34078         Likewise.
34079         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
34080         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
34081         Likewise.
34082         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
34083         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
34084         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
34085
34086 2009-04-20  Bruno Haible  <bruno@clisp.org>
34087
34088         Avoid test failure on mingw.
34089         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
34090
34091 2009-04-20  Bruno Haible  <bruno@clisp.org>
34092
34093         Avoid compilation error on mingw.
34094         * modules/localename-tests (Depends-on): Add locale.
34095
34096 2009-04-19  Bruno Haible  <bruno@clisp.org>
34097
34098         Support for building a shared library on Windows platforms.
34099         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
34100         (main): Test the presence of UNINORM_NFC here.
34101         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
34102         (main): Test the presence of UNINORM_NFD here.
34103         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
34104         (main): Test the presence of UNINORM_NFKC here.
34105         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
34106         (main): Test the presence of UNINORM_NFKD here.
34107
34108 2009-04-19  Bruno Haible  <bruno@clisp.org>
34109
34110         Avoid a compiler warning.
34111         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
34112         Change type of variable 'sequence'.
34113
34114 2009-04-19  Bruno Haible  <bruno@clisp.org>
34115
34116         * modules/configmake (Makefile.am): When the contents of configmake.h
34117         does not change, arrange to preserve its modification time.
34118
34119 2009-04-17  Simon Josefsson  <simon@josefsson.org>
34120
34121         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
34122         gettext domain.
34123
34124 2009-04-16  Jim Meyering  <meyering@redhat.com>
34125
34126         useless-if-before-free: improve conversion code
34127         * build-aux/useless-if-before-free: Adjust code-in-comment to match
34128         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
34129
34130 2009-04-14  Bruno Haible  <bruno@clisp.org>
34131
34132         * modules/fcntl (Depends-on): Add extensions.
34133         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
34134
34135 2009-04-12  Ben Pfaff  <blp@gnu.org>
34136
34137         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
34138         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
34139
34140 2009-03-20  Ben Pfaff  <blp@gnu.org>
34141
34142         Make rename replace existing destinations on Windows.
34143         * m4/rename.m4: Add test for Mingw.
34144         * lib/rename.c: Add rename replacement that uses MoveFileEx with
34145         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
34146         * doc/posix-functions/rename.texi: Document.
34147
34148 2009-04-10  Bruno Haible  <bruno@clisp.org>
34149
34150         New include file "iconveh.h".
34151         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
34152         * lib/striconveh.h: Include it.
34153         (enum iconv_ilseq_handler): Remove definition.
34154         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
34155         striconveh.h.
34156         * lib/striconveha.c: Include striconveh.h.
34157         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
34158         * modules/striconveh (Files): Add lib/iconveh.h.
34159         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
34160         lib/striconveh.h.
34161
34162 2009-04-10  Bruno Haible  <bruno@clisp.org>
34163
34164         * lib/uniconv.h: Update comment.
34165
34166 2009-04-10  Bruno Haible  <bruno@clisp.org>
34167
34168         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
34169         always.
34170         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
34171         * lib/unistr/u16-mbtouc-aux.c: Likewise.
34172         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
34173         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
34174         "unistring-notinline.h", so that the function gets defined always.
34175         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
34176         * lib/unistr/u8-uctomb.c: Likewise.
34177         * lib/unistr/u16-mbtouc.c: Likewise.
34178         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
34179         * lib/unistr/u16-uctomb.c: Likewise.
34180         * lib/unistr/u32-mbtouc.c: Likewise.
34181         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
34182         * lib/unistr/u32-uctomb.c: Likewise.
34183
34184 2009-04-10  Bruno Haible  <bruno@clisp.org>
34185
34186         Mark 'utime' obsolete.
34187         * modules/utime (Status, Notice): New sections.
34188         Suggested by Jim Meyering.
34189
34190         Fix cross-compile guess for utime test.
34191         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
34192         autoconf.
34193         * doc/posix-functions/utime.texi: Give more precisions.
34194         Reported by Jan <ipif@ymail.com>.
34195
34196 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
34197
34198         filevercmp: correct today's change
34199         * lib/filevercmp.c: Also handle coreutils' test inputs.
34200         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
34201
34202         Fix regression in 'filevercmp' module. Thanks Sven Joachim
34203         for reporting it.
34204         * lib/filevercmp.c: Special handle for "", "." and "..".
34205         * tests/test-filevercmp.c: Enlarge the set suite.
34206
34207 2009-04-07  Jim Meyering  <meyering@redhat.com>
34208
34209         useless-if-before-free: show how to remove braced useless free, too
34210         * build-aux/useless-if-before-free: still only in a comment, though.
34211
34212 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
34213
34214         maint.mk: import changes to syntax-check macros from coreutils
34215         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
34216         Use them in the relevant macros.
34217
34218 2009-04-06  Bruno Haible  <bruno@clisp.org>
34219
34220         Fix unportable use of bit-fields.
34221         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
34222         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
34223         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
34224
34225 2009-04-06  Bruno Haible  <bruno@clisp.org>
34226
34227         Avoid test failures on AIX and OSF/1.
34228         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
34229         that malloc(0) = NULL.
34230         * tests/unicase/test-u8-tolower.c (check): Likewise.
34231         * tests/unicase/test-u8-totitle.c (check): Likewise.
34232         * tests/unicase/test-u8-toupper.c (check): Likewise.
34233         * tests/unicase/test-u16-casefold.c (check): Likewise.
34234         * tests/unicase/test-u16-tolower.c (check): Likewise.
34235         * tests/unicase/test-u16-totitle.c (check): Likewise.
34236         * tests/unicase/test-u16-toupper.c (check): Likewise.
34237         * tests/unicase/test-u32-casefold.c (check): Likewise.
34238         * tests/unicase/test-u32-tolower.c (check): Likewise.
34239         * tests/unicase/test-u32-totitle.c (check): Likewise.
34240         * tests/unicase/test-u32-toupper.c (check): Likewise.
34241         * tests/uninorm/test-u8-nfc.c (check): Likewise.
34242         * tests/uninorm/test-u8-nfd.c (check): Likewise.
34243         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
34244         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
34245         * tests/uninorm/test-u16-nfc.c (check): Likewise.
34246         * tests/uninorm/test-u16-nfd.c (check): Likewise.
34247         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
34248         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
34249         * tests/uninorm/test-u32-nfc.c (check): Likewise.
34250         * tests/uninorm/test-u32-nfd.c (check): Likewise.
34251         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
34252         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
34253
34254 2009-04-05  Bruno Haible  <bruno@clisp.org>
34255
34256         Work around an autoconf limitation.
34257         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
34258         comment line if it would be longer than 3 KB.
34259
34260 2009-04-05  Bruno Haible  <bruno@clisp.org>
34261
34262         Avoid test failure with libiconv-1.13.
34263         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
34264         of the expected test results.
34265
34266 2009-04-05  Bruno Haible  <bruno@clisp.org>
34267
34268         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
34269         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
34270         that it should be installed.
34271
34272 2009-04-05  Bruno Haible  <bruno@clisp.org>
34273
34274         * gnulib-tool: New option --copy-file.
34275         (func_usage): Document it.
34276         (func_dest_tmpfilename): Moved out of func_import.
34277         (func_add_file, func_update_file): New functions, extracted from
34278         func_import.
34279         (func_import): Update.
34280
34281 2009-04-05  Karl Berry  <karl@gnu.org>
34282
34283         * README: prominently mention gnulib-tool.
34284         Rearrange sections so getting the code is near the top.
34285
34286 2009-04-05  Bruno Haible  <bruno@clisp.org>
34287
34288         * lib/unicase.h: Mention u*_cmp2.
34289         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
34290         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
34291         * lib/unicase/ulc-casecmp.c: Likewise.
34292         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
34293         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
34294         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
34295         unistr/u8-cmp.
34296         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
34297         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
34298         unistr/u16-cmp.
34299         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
34300         unistr/u32-cmp.
34301
34302         * lib/uninorm.h: Mention u*_cmp2.
34303         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
34304         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
34305         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
34306         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
34307         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
34308         unistr/u8-cmp.
34309         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
34310         unistr/u16-cmp.
34311         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
34312         unistr/u32-cmp.
34313
34314         New module 'unistr/u32-cmp2'.
34315         * lib/unistr/u32-cmp2.c: New file.
34316         * modules/unistr/u32-cmp2: New file.
34317
34318         New module 'unistr/u16-cmp2'.
34319         * lib/unistr/u16-cmp2.c: New file.
34320         * modules/unistr/u16-cmp2: New file.
34321
34322         New module 'unistr/u8-cmp2'.
34323         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
34324         * lib/unistr/u8-cmp2.c: New file.
34325         * lib/unistr/u-cmp2.h: New file.
34326         * modules/unistr/u8-cmp2: New file.
34327
34328 2009-04-05  Bruno Haible  <bruno@clisp.org>
34329
34330         * lib/unictype.h (uc_property_is_valid): New macro.
34331         * tests/unictype/test-pr_byname.c (main): Use it.
34332
34333         * lib/unistr.h: Doc fixes.
34334         * lib/uniconv.h: Doc fixes.
34335         * lib/unictype.h: Doc fixes.
34336
34337 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
34338
34339         Port coreutils 7.2 to Solaris 8.
34340
34341         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
34342         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
34343         for Solaris 8.  This is a bit of a hack, as it means it's the
34344         caller's responsibility to add -lnsl if needed, but most likely it
34345         won't be needed since only getaddrinfo uses this and getaddrinfo
34346         isn't needed on Solaris 8.
34347
34348         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
34349         problem to Solaris 8 encountered with coreutils 7.2, which
34350         resulted in a message "fnmatch.c:292: warning: passing argument 4
34351         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
34352         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
34353
34354 2009-04-03  Simon Josefsson  <simon@josefsson.org>
34355
34356         * m4/ld-version-script.m4: Add FIXME comment.
34357
34358 2009-04-02  Simon Josefsson  <simon@josefsson.org>
34359
34360         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
34361         SOVERSION variable.
34362
34363 2009-04-02  Bruno Haible  <bruno@clisp.org>
34364
34365         * Makefile (info, html, dvi, pdf): Combine the rules.
34366         Suggested by Jim Meyering.
34367
34368 2009-04-01  Bruno Haible  <bruno@clisp.org>
34369
34370         * Makefile (info, html, dvi, pdf): New targets.
34371         Reported by Reuben Thomas <rrt@sc3d.org>.
34372
34373 2009-04-01  Bruno Haible  <bruno@clisp.org>
34374
34375         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
34376         can be put into PATH.
34377         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
34378
34379 2009-04-01  Bruno Haible  <bruno@clisp.org>
34380
34381         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
34382
34383 2009-04-01  Bruno Haible  <bruno@clisp.org>
34384
34385         Rename module 'visibility'.
34386         * modules/lib-symbol-visibility: Renamed from modules/visibility.
34387         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
34388         * doc/gnulib.texi: Update.
34389         * MODULES.html.sh (Misc): Update.
34390         * NEWS: Mention the change.
34391
34392 2009-04-01  Simon Josefsson  <simon@josefsson.org>
34393
34394         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
34395         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
34396         Eric Blake <ebb9@byu.net> for review.
34397         * MODULES.html.sh: Add lib-msvc-compat.
34398         * doc/gnulib.texi: Link to new section.
34399         * m4/ld-output-def.m4: New file.
34400         * doc/ld-output-def.texi: New file.
34401
34402 2009-04-01  Simon Josefsson  <simon@josefsson.org>
34403
34404         Rename ld-version-script to lib-symbol-versions.  Suggested by
34405         Bruno Haible <bruno@clisp.org>.
34406         * modules/ld-version-script: Renamed to lib-symbol-versions.
34407         * doc/ld-version-script.texi: Fix module name.
34408         * MODULES.html.sh: Add lib-symbol-versions.
34409
34410 2009-03-31  Simon Josefsson  <simon@josefsson.org>
34411
34412         * modules/u64-tests: New file.
34413         * tests/test-u64.c: New file.
34414
34415 2009-03-04  Simon Josefsson  <simon@josefsson.org>
34416
34417         * MODULES.html.sh: Mention u64.
34418         * modules/u64: New module.
34419         * modules/crypto/sha512: Depend on u64 module instead of providing
34420         u64.h.
34421
34422 2009-03-27  Eric Blake  <ebb9@byu.net>
34423
34424         test-strerror: make debugging EAI_SYSTEM easier
34425         * modules/getaddrinfo-tests (Depends-on): Add strerror.
34426         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
34427         failure was EAI_SYSTEM.
34428
34429 2009-03-25  Bruno Haible  <bruno@clisp.org>
34430
34431         Fix a problem with --enable-relocatable on Solaris 7.
34432         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
34433         since 2008-02-24.
34434
34435 2009-03-25  Eric Blake  <ebb9@byu.net>
34436
34437         test-sockets: avoid gcc warning
34438         * tests/test-sockets.c (main): Silence compiler warning.
34439
34440 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
34441
34442         New modules nproc, pthread, contributed by Glen Lenker.
34443
34444         * MODULES.html.sh: Add pthread, nproc.
34445         * lib/nproc.c: New file.
34446         * lib/nproc.h: New file.
34447         * lib/pthread.in.h: New file.
34448         * m4/pthread.m4: New file.
34449         * modules/nproc: New file.
34450         * modules/pthread: New file.
34451
34452 2009-03-24  Simon Josefsson  <simon@josefsson.org>
34453
34454         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
34455         New variable.
34456
34457 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
34458
34459         filevercmp: handle simple~ and numbered.~3~ backup suffixes
34460         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
34461         * tests/test-filevercmp.c: Add tests for backup suffixes.
34462
34463 2009-03-24  Simon Josefsson  <simon@josefsson.org>
34464
34465         * modules/stdlib (Depends-on): Add stdint, needed when defining
34466         struct random_data on, for example, HP-UX 10.20.  Reported by
34467         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
34468
34469 2009-03-24  Simon Josefsson  <simon@josefsson.org>
34470
34471         * lib/readline.c (readline): Call fflush on stdout after printing
34472         prompt.
34473
34474 2009-03-20  Bruno Haible  <bruno@clisp.org>
34475
34476         Remove dependency from 'close' module to -lws2_32 on native Windows.
34477         * lib/close-hook.h: New file.
34478         * lib/close-hook.c: New file.
34479         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
34480         w32sock.h.
34481         (_gl_close_fd_maybe_socket): Remove function.
34482         (rpl_close): Invoke execute_all_close_hooks instead of
34483         _gl_close_fd_maybe_socket.
34484         * lib/sockets.c: Include close-hook.h, w32sock.h.
34485         (close_fd_maybe_socket): New function, essentially from lib/close.c.
34486         (close_sockets_hook): New variable.
34487         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
34488         (gl_sockets_cleanup): Unregister it.
34489         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
34490         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
34491         * modules/close-hook: New file.
34492         * modules/close (Files): Remove lib/w32sock.h.
34493         (Depends-on): Add close-hook.
34494         (Link): Remove section.
34495         * modules/sockets (Files): Add lib/w32sock.h.
34496         (Depends-on): Add close-hook.
34497         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
34498         invocation.
34499         * NEWS: Mention that LIB_CLOSE is gone.
34500
34501 2009-03-23  Eric Blake  <ebb9@byu.net>
34502
34503         signal-tests: test previous patch
34504         * tests/test-signal.c: New file.
34505         * modules/signal-tests: Likewise.
34506
34507         signal.h: always support 'volatile sig_atomic_t'
34508         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
34509         (gl_SIGNAL_H_DEFAULTS): Add a default.
34510         * modules/signal (Makefile.am): Substitute if needed.
34511         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
34512         users can blindly add volatile.
34513         * doc/posix-headers/signal.texi (signal.h): Document it.
34514         Reported by Matthew Woehlke.
34515
34516 2009-03-23  Jim Meyering  <meyering@redhat.com>
34517
34518         pathmax: PATH_MAX: use pathconf only when available
34519         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
34520         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
34521         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
34522         This avoids a link failure in a PSP cross-compilation environment
34523         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
34524
34525         * lib/vasnprintf.c (divide): Fix typo in comment.
34526
34527 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34528
34529         * gnulib-tool (func_filter_filelist): Fix comment.
34530
34531 2009-03-20  Bruno Haible  <bruno@clisp.org>
34532
34533         Make sockets.h self-contained.
34534         * lib/sockets.c: Include sockets.h first.
34535         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
34536
34537 2009-03-19  Eric Blake  <ebb9@byu.net>
34538
34539         doc: mention more functions added in cygwin 1.7.0
34540         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
34541         addition.
34542         * doc/posix-functions/log2f.texi: Likewise.
34543
34544 2009-03-19  Jim Meyering  <meyering@redhat.com>
34545
34546         fsusage: avoid syntax error due to statement-before-declaration
34547         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
34548         after all declarations.  Reported by Matthew Woehlke in
34549         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
34550
34551 2009-03-18  Eric Blake  <ebb9@byu.net>
34552
34553         build-aux/compile: sync from automake
34554         * build-aux/compile: New file, from automake.
34555         * config/srclist.txt: Mention build-aux/compile.
34556
34557 2009-03-17  Bruno Haible  <bruno@clisp.org>
34558
34559         * lib/git-merge-changelog.c: Fix typo in comment.
34560         Reported by Reuben Thomas <rrt@sc3d.org>.
34561
34562 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
34563
34564         * m4/regex.m4: update and improve help for
34565         --without-included-regex.
34566
34567 2009-03-17  Simon Josefsson  <simon@josefsson.org>
34568
34569         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
34570         failure on missing include files.
34571
34572 2009-03-17  Eric Blake  <ebb9@byu.net>
34573
34574         doc: mention more functions added in cygwin 1.7.0
34575         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
34576         addition.
34577         * doc/posix-functions/fwscanf.texi: Likewise.
34578         * doc/posix-functions/swprintf.texi: Likewise.
34579         * doc/posix-functions/swscanf.texi: Likewise.
34580         * doc/posix-functions/vfwprintf.texi: Likewise.
34581         * doc/posix-functions/vfwscanf.texi: Likewise.
34582         * doc/posix-functions/vswprintf.texi: Likewise.
34583         * doc/posix-functions/vswscanf.texi: Likewise.
34584         * doc/posix-functions/vwprintf.texi: Likewise.
34585         * doc/posix-functions/vwscanf.texi: Likewise.
34586         * doc/posix-functions/wcscasecmp.texi: Likewise.
34587         * doc/posix-functions/wcsdup.texi: Likewise.
34588         * doc/posix-functions/wcsftime.texi: Likewise.
34589         * doc/posix-functions/wcsncasecmp.texi: Likewise.
34590         * doc/posix-functions/wprintf.texi: Likewise.
34591         * doc/posix-functions/wscanf.texi: Likewise.
34592         * doc/glibc-functions/gethostbyname2.texi: Likewise.
34593
34594 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34595
34596         maint.mk: really add $(AM_MAKEFLAGS)
34597         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
34598         was inadvertently omitted in the last commit.
34599         Spotted by Bruno Haible.
34600
34601         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
34602         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
34603         $(AM_MAKEFLAGS)' rather than plain `make'.
34604
34605         gnulib-tool: execute $MAKE not make
34606         * gnulib-tool: Default $MAKE to 'make'.
34607         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
34608         than make.  Initialize $MAKE in the do-autobuild script.
34609
34610         gnulib-tool: use $MAKE not make in generated files
34611         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
34612         make, in generated files.  Initialize $MAKE in the do-autobuild
34613         script.
34614
34615         * top/GNUmakefile (_have-git-version-gen): Fix typo.
34616
34617         GNUmakefile: disable parallelism only for multiple, recursive targets
34618         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
34619         additions in the Makefile.
34620         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
34621         by Automake.
34622         (.NOTPARALLEL): Only disable parallel builds if multiple targets
34623         are listed on the command line and at least one of them is
34624         listed in $(ALL_RECURSIVE_TARGETS).
34625
34626 2009-03-14  Bruno Haible  <bruno@clisp.org>
34627
34628         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
34629         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
34630         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
34631         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
34632         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
34633         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
34634         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
34635         unistr/u8-uctomb.
34636         * modules/unistr/u8-strchr (Depends-on): Likewise.
34637         * modules/unistr/u8-strrchr (Depends-on): Likewise.
34638         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
34639         unistr/u16-uctomb.
34640         * modules/unistr/u16-strchr (Depends-on): Likewise.
34641         * modules/unistr/u16-strrchr (Depends-on): Likewise.
34642
34643 2009-03-12  Bruno Haible  <bruno@clisp.org>
34644
34645         Work around select() bug on Interix 3.5.
34646         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
34647         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
34648         * m4/select.m4: New file.
34649         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
34650         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
34651         * modules/select (Files): Add m4/select.m4.
34652         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
34653         * modules/nanosleep (Depends-on): Add select.
34654         * modules/poll (Depends-on): Likewise.
34655         * doc/posix-functions/select.texi: Mention the Interix bug.
34656         Reported by Markus Duft <mduft@gentoo.org>.
34657
34658         * lib/select.c: Renamed from lib/winsock-select.c.
34659         * modules/select (Files): Add lib/select.c, remove
34660         lib/winsock-select.c.
34661         (configure.ac): Update.
34662
34663 2009-03-12  Jim Meyering  <meyering@redhat.com>
34664
34665         avoid gcc warnings about unused macro definitions
34666         * lib/readtokens.c (STREQ): Remove unused definition.
34667         * lib/xmalloc.c (SIZE_MAX): Likewise.
34668         * lib/openat-die.c (N_): Likewise.
34669         * lib/mountlist.c (SIZE_MAX): Remove definition.
34670         Instead, include <stdint.h>.
34671         * lib/readutmp.c: Likewise.
34672         * modules/readutmp (Depends-on): Add stdint.
34673         * modules/mountlist (Depends-on): Add stdint.
34674         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
34675
34676 2009-03-10  Bruno Haible  <bruno@clisp.org>
34677
34678         Tests for module 'mbmemcasecoll'.
34679         * modules/mbmemcasecoll-tests: New file.
34680         * tests/test-mbmemcasecoll1.sh: New file.
34681         * tests/test-mbmemcasecoll2.sh: New file.
34682         * tests/test-mbmemcasecoll3.sh: New file.
34683         * tests/test-mbmemcasecoll.c: New file.
34684
34685         New module 'mbmemcasecoll'.
34686         * lib/mbmemcasecoll.h: New file.
34687         * lib/mbmemcasecoll.c: New file.
34688         * modules/mbmemcasecoll: New file.
34689
34690         * tests/test-mbmemcasecmp.h: New file, extracted from
34691         tests/test-mbmemcasecmp.c.
34692         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
34693         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
34694         (main): Update.
34695         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
34696
34697 2009-03-09  Bruno Haible  <bruno@clisp.org>
34698
34699         Tests for module 'mbmemcasecmp'.
34700         * modules/mbmemcasecmp-tests: New file.
34701         * tests/test-mbmemcasecmp1.sh: New file.
34702         * tests/test-mbmemcasecmp2.sh: New file.
34703         * tests/test-mbmemcasecmp3.sh: New file.
34704         * tests/test-mbmemcasecmp.c: New file.
34705
34706         New module 'mbmemcasecmp'.
34707         * lib/mbmemcasecmp.h: New file.
34708         * lib/mbmemcasecmp.c: New file.
34709         * modules/mbmemcasecmp: New file.
34710
34711 2009-03-09  Bruno Haible  <bruno@clisp.org>
34712
34713         Tests for module 'unicase/ulc-casecoll'.
34714         * modules/unicase/ulc-casecoll-tests: New file.
34715         * tests/unicase/test-ulc-casecoll1.sh: New file.
34716         * tests/unicase/test-ulc-casecoll2.sh: New file.
34717         * tests/unicase/test-ulc-casecoll.c: New file.
34718
34719         New module 'unicase/ulc-casecoll'.
34720         * lib/unicase.h (ulc_casecoll): New declaration.
34721         * lib/unicase/ulc-casecoll.c: New file.
34722         * modules/unicase/ulc-casecoll: New file.
34723
34724         New module 'unicase/ulc-casexfrm'.
34725         * lib/unicase.h (ulc_casexfrm): New declaration.
34726         * lib/unicase/ulc-casexfrm.c: New file.
34727         * modules/unicase/ulc-casexfrm: New file.
34728
34729 2009-03-09  Bruno Haible  <bruno@clisp.org>
34730
34731         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
34732         invocations.
34733
34734         * m4/mbscasecmp.m4: Remove file.
34735         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
34736         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
34737
34738         * m4/mbscasestr.m4: Remove file.
34739         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
34740         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
34741
34742         * m4/mbschr.m4: Remove file.
34743         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
34744         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
34745
34746         * m4/mbscspn.m4: Remove file.
34747         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
34748         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
34749
34750         * m4/mbslen.m4: Remove file.
34751         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
34752         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
34753
34754         * m4/mbsncasecmp.m4: Remove file.
34755         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
34756         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
34757
34758         * m4/mbsnlen.m4: Remove file.
34759         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
34760         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
34761
34762         * m4/mbspbrk.m4: Remove file.
34763         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
34764         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
34765
34766         * m4/mbspcasecmp.m4: Remove file.
34767         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
34768         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
34769
34770         * m4/mbsrchr.m4: Remove file.
34771         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
34772         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
34773
34774         * m4/mbssep.m4: Remove file.
34775         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
34776         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
34777
34778         * m4/mbsspn.m4: Remove file.
34779         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
34780         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
34781
34782         * m4/mbsstr.m4: Remove file.
34783         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
34784         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
34785
34786         * m4/mbstok_r.m4: Remove file.
34787         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
34788         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
34789
34790         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
34791
34792         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
34793         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
34794
34795         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
34796
34797 2009-03-08  Bruno Haible  <bruno@clisp.org>
34798
34799         Tests for module 'unicase/ulc-casecmp'.
34800         * modules/unicase/ulc-casecmp-tests: New file.
34801         * tests/unicase/test-ulc-casecmp1.sh: New file.
34802         * tests/unicase/test-ulc-casecmp2.sh: New file.
34803         * tests/unicase/test-ulc-casecmp.c: New file.
34804
34805         New module 'unicase/ulc-casecmp'.
34806         * lib/unicase.h (ulc_casecmp): New declaration.
34807         * lib/unicase/ulc-casecmp.c: New file.
34808         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
34809         'const SRC_UNIT *'.
34810         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
34811         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
34812         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
34813         * modules/unicase/ulc-casecmp: New file.
34814
34815         Tests for module 'unicase/u32-is-cased'.
34816         * modules/unicase/u32-is-cased-tests: New file.
34817         * tests/unicase/test-u32-is-cased.c: New file.
34818
34819         Tests for module 'unicase/u16-is-cased'.
34820         * modules/unicase/u16-is-cased-tests: New file.
34821         * tests/unicase/test-u16-is-cased.c: New file.
34822
34823         Tests for module 'unicase/u8-is-cased'.
34824         * modules/unicase/u8-is-cased-tests: New file.
34825         * tests/unicase/test-u8-is-cased.c: New file.
34826         * tests/unicase/test-is-cased.h: New file.
34827
34828         New module 'unicase/u32-is-cased'.
34829         * lib/unicase/u32-is-cased.c: New file.
34830         * modules/unicase/u32-is-cased: New file.
34831
34832         New module 'unicase/u16-is-cased'.
34833         * lib/unicase/u16-is-cased.c: New file.
34834         * modules/unicase/u16-is-cased: New file.
34835
34836         New module 'unicase/u8-is-cased'.
34837         * lib/unicase/u8-is-cased.c: New file.
34838         * lib/unicase/u-is-cased.h: New file.
34839         * modules/unicase/u8-is-cased: New file.
34840
34841         Tests for module 'unicase/u32-is-casefolded'.
34842         * modules/unicase/u32-is-casefolded-tests: New file.
34843         * tests/unicase/test-u32-is-casefolded.c: New file.
34844
34845         Tests for module 'unicase/u16-is-casefolded'.
34846         * modules/unicase/u16-is-casefolded-tests: New file.
34847         * tests/unicase/test-u16-is-casefolded.c: New file.
34848
34849         Tests for module 'unicase/u8-is-casefolded'.
34850         * modules/unicase/u8-is-casefolded-tests: New file.
34851         * tests/unicase/test-u8-is-casefolded.c: New file.
34852         * tests/unicase/test-is-casefolded.h: New file.
34853
34854         New module 'unicase/u32-is-casefolded'.
34855         * lib/unicase/u32-is-casefolded.c: New file.
34856         * modules/unicase/u32-is-casefolded: New file.
34857
34858         New module 'unicase/u16-is-casefolded'.
34859         * lib/unicase/u16-is-casefolded.c: New file.
34860         * modules/unicase/u16-is-casefolded: New file.
34861
34862         New module 'unicase/u8-is-casefolded'.
34863         * lib/unicase/u8-is-casefolded.c: New file.
34864         * modules/unicase/u8-is-casefolded: New file.
34865
34866         Tests for module 'unicase/u32-is-titlecase'.
34867         * modules/unicase/u32-is-titlecase-tests: New file.
34868         * tests/unicase/test-u32-is-titlecase.c: New file.
34869
34870         Tests for module 'unicase/u16-is-titlecase'.
34871         * modules/unicase/u16-is-titlecase-tests: New file.
34872         * tests/unicase/test-u16-is-titlecase.c: New file.
34873
34874         Tests for module 'unicase/u8-is-titlecase'.
34875         * modules/unicase/u8-is-titlecase-tests: New file.
34876         * tests/unicase/test-u8-is-titlecase.c: New file.
34877         * tests/unicase/test-is-titlecase.h: New file.
34878
34879         New module 'unicase/u32-is-titlecase'.
34880         * lib/unicase/u32-is-titlecase.c: New file.
34881         * modules/unicase/u32-is-titlecase: New file.
34882
34883         New module 'unicase/u16-is-titlecase'.
34884         * lib/unicase/u16-is-titlecase.c: New file.
34885         * modules/unicase/u16-is-titlecase: New file.
34886
34887         New module 'unicase/u8-is-titlecase'.
34888         * lib/unicase/u8-is-titlecase.c: New file.
34889         * modules/unicase/u8-is-titlecase: New file.
34890
34891         Tests for module 'unicase/u32-is-lowercase'.
34892         * modules/unicase/u32-is-lowercase-tests: New file.
34893         * tests/unicase/test-u32-is-lowercase.c: New file.
34894
34895         Tests for module 'unicase/u16-is-lowercase'.
34896         * modules/unicase/u16-is-lowercase-tests: New file.
34897         * tests/unicase/test-u16-is-lowercase.c: New file.
34898
34899         Tests for module 'unicase/u8-is-lowercase'.
34900         * modules/unicase/u8-is-lowercase-tests: New file.
34901         * tests/unicase/test-u8-is-lowercase.c: New file.
34902         * tests/unicase/test-is-lowercase.h: New file.
34903
34904         New module 'unicase/u32-is-lowercase'.
34905         * lib/unicase/u32-is-lowercase.c: New file.
34906         * modules/unicase/u32-is-lowercase: New file.
34907
34908         New module 'unicase/u16-is-lowercase'.
34909         * lib/unicase/u16-is-lowercase.c: New file.
34910         * modules/unicase/u16-is-lowercase: New file.
34911
34912         New module 'unicase/u8-is-lowercase'.
34913         * lib/unicase/u8-is-lowercase.c: New file.
34914         * modules/unicase/u8-is-lowercase: New file.
34915
34916         Tests for module 'unicase/u32-is-uppercase'.
34917         * modules/unicase/u32-is-uppercase-tests: New file.
34918         * tests/unicase/test-u32-is-uppercase.c: New file.
34919
34920         Tests for module 'unicase/u16-is-uppercase'.
34921         * modules/unicase/u16-is-uppercase-tests: New file.
34922         * tests/unicase/test-u16-is-uppercase.c: New file.
34923
34924         Tests for module 'unicase/u8-is-uppercase'.
34925         * modules/unicase/u8-is-uppercase-tests: New file.
34926         * tests/unicase/test-u8-is-uppercase.c: New file.
34927         * tests/unicase/test-is-uppercase.h: New file.
34928
34929         New module 'unicase/u32-is-uppercase'.
34930         * lib/unicase/u32-is-uppercase.c: New file.
34931         * modules/unicase/u32-is-uppercase: New file.
34932
34933         New module 'unicase/u16-is-uppercase'.
34934         * lib/unicase/u16-is-uppercase.c: New file.
34935         * modules/unicase/u16-is-uppercase: New file.
34936
34937         New module 'unicase/u8-is-uppercase'.
34938         * lib/unicase/u8-is-uppercase.c: New file.
34939         * modules/unicase/u8-is-uppercase: New file.
34940
34941         New module 'unicase/u32-is-invariant'.
34942         * lib/unicase/u32-is-invariant.c: New file.
34943         * modules/unicase/u32-is-invariant: New file.
34944
34945         New module 'unicase/u16-is-invariant'.
34946         * lib/unicase/u16-is-invariant.c: New file.
34947         * modules/unicase/u16-is-invariant: New file.
34948
34949         New module 'unicase/u8-is-invariant'.
34950         * lib/unicase/u8-is-invariant.c: New file.
34951         * lib/unicase/invariant.h: New file.
34952         * lib/unicase/u-is-invariant.h: New file.
34953         * modules/unicase/u8-is-invariant: New file.
34954
34955         Tests for module 'unicase/u32-casecoll'.
34956         * modules/unicase/u32-casecoll-tests: New file.
34957         * tests/unicase/test-u32-casecoll.c: New file.
34958
34959         Tests for module 'unicase/u16-casecoll'.
34960         * modules/unicase/u16-casecoll-tests: New file.
34961         * tests/unicase/test-u16-casecoll.c: New file.
34962
34963         Tests for module 'unicase/u8-casecoll'.
34964         * modules/unicase/u8-casecoll-tests: New file.
34965         * tests/unicase/test-u8-casecoll.c: New file.
34966
34967         New module 'unicase/u32-casecoll'.
34968         * lib/unicase/u32-casecoll.c: New file.
34969         * modules/unicase/u32-casecoll: New file.
34970
34971         New module 'unicase/u16-casecoll'.
34972         * lib/unicase/u16-casecoll.c: New file.
34973         * modules/unicase/u16-casecoll: New file.
34974
34975         New module 'unicase/u8-casecoll'.
34976         * lib/unicase/u8-casecoll.c: New file.
34977         * lib/unicase/u-casecoll.h: New file.
34978         * modules/unicase/u8-casecoll: New file.
34979
34980         New module 'unicase/u32-casexfrm'.
34981         * lib/unicase/u32-casexfrm.c: New file.
34982         * modules/unicase/u32-casexfrm: New file.
34983
34984         New module 'unicase/u16-casexfrm'.
34985         * lib/unicase/u16-casexfrm.c: New file.
34986         * modules/unicase/u16-casexfrm: New file.
34987
34988         New module 'unicase/u8-casexfrm'.
34989         * lib/unicase/u8-casexfrm.c: New file.
34990         * lib/unicase/u-casexfrm.h: New file.
34991         * modules/unicase/u8-casexfrm: New file.
34992
34993         Tests for module 'unicase/u32-casecmp'.
34994         * modules/unicase/u32-casecmp-tests: New file.
34995         * tests/unicase/test-u32-casecmp.c: New file.
34996
34997         Tests for module 'unicase/u16-casecmp'.
34998         * modules/unicase/u16-casecmp-tests: New file.
34999         * tests/unicase/test-u16-casecmp.c: New file.
35000
35001         Tests for module 'unicase/u8-casecmp'.
35002         * modules/unicase/u8-casecmp-tests: New file.
35003         * tests/unicase/test-u8-casecmp.c: New file.
35004         * tests/unicase/test-casecmp.h: New file.
35005
35006         New module 'unicase/u32-casecmp'.
35007         * lib/unicase/u32-casecmp.c: New file.
35008         * modules/unicase/u32-casecmp: New file.
35009
35010         New module 'unicase/u16-casecmp'.
35011         * lib/unicase/u16-casecmp.c: New file.
35012         * modules/unicase/u16-casecmp: New file.
35013
35014         New module 'unicase/u8-casecmp'.
35015         * lib/unicase/u8-casecmp.c: New file.
35016         * lib/unicase/u-casecmp.h: New file.
35017         * modules/unicase/u8-casecmp: New file.
35018
35019         Tests for module 'unicase/u32-casefold'.
35020         * modules/unicase/u32-casefold-tests: New file.
35021         * tests/unicase/test-u32-casefold.c: New file.
35022
35023         Tests for module 'unicase/u16-casefold'.
35024         * modules/unicase/u16-casefold-tests: New file.
35025         * tests/unicase/test-u16-casefold.c: New file.
35026
35027         Tests for module 'unicase/u8-casefold'.
35028         * modules/unicase/u8-casefold-tests: New file.
35029         * tests/unicase/test-u8-casefold.c: New file.
35030
35031         New module 'unicase/u32-casefold'.
35032         * lib/unicase/u32-casefold.c: New file.
35033         * modules/unicase/u32-casefold: New file.
35034
35035         New module 'unicase/u16-casefold'.
35036         * lib/unicase/u16-casefold.c: New file.
35037         * modules/unicase/u16-casefold: New file.
35038
35039         New module 'unicase/u8-casefold'.
35040         * lib/unicase/u8-casefold.c: New file.
35041         * lib/unicase/u-casefold.h: New file.
35042         * modules/unicase/u8-casefold: New file.
35043
35044         New module 'unicase/tocasefold'.
35045         * lib/unicase/casefold.h: New file.
35046         * lib/unicase/tocasefold.c: New file.
35047         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
35048         * modules/unicase/tocasefold: New file.
35049
35050         Tests for module 'unicase/u32-totitle'.
35051         * modules/unicase/u32-totitle-tests: New file.
35052         * tests/unicase/test-u32-totitle.c: New file.
35053
35054         Tests for module 'unicase/u16-totitle'.
35055         * modules/unicase/u16-totitle-tests: New file.
35056         * tests/unicase/test-u16-totitle.c: New file.
35057
35058         Tests for module 'unicase/u8-totitle'.
35059         * modules/unicase/u8-totitle-tests: New file.
35060         * tests/unicase/test-u8-totitle.c: New file.
35061
35062         New module 'unicase/u32-totitle'.
35063         * lib/unicase/u32-totitle.c: New file.
35064         * modules/unicase/u32-totitle: New file.
35065
35066         New module 'unicase/u16-totitle'.
35067         * lib/unicase/u16-totitle.c: New file.
35068         * modules/unicase/u16-totitle: New file.
35069
35070         New module 'unicase/u8-totitle'.
35071         * lib/unicase/u8-totitle.c: New file.
35072         * lib/unicase/u-totitle.h: New file.
35073         * modules/unicase/u8-totitle: New file.
35074
35075         Tests for module 'unicase/u32-tolower'.
35076         * modules/unicase/u32-tolower-tests: New file.
35077         * tests/unicase/test-u32-tolower.c: New file.
35078
35079         Tests for module 'unicase/u16-tolower'.
35080         * modules/unicase/u16-tolower-tests: New file.
35081         * tests/unicase/test-u16-tolower.c: New file.
35082
35083         Tests for module 'unicase/u8-tolower'.
35084         * modules/unicase/u8-tolower-tests: New file.
35085         * tests/unicase/test-u8-tolower.c: New file.
35086
35087         New module 'unicase/u32-tolower'.
35088         * lib/unicase/u32-tolower.c: New file.
35089         * modules/unicase/u32-tolower: New file.
35090
35091         New module 'unicase/u16-tolower'.
35092         * lib/unicase/u16-tolower.c: New file.
35093         * modules/unicase/u16-tolower: New file.
35094
35095         New module 'unicase/u8-tolower'.
35096         * lib/unicase/u8-tolower.c: New file.
35097         * modules/unicase/u8-tolower: New file.
35098
35099         Tests for module 'unicase/u32-toupper'.
35100         * modules/unicase/u32-toupper-tests: New file.
35101         * tests/unicase/test-u32-toupper.c: New file.
35102
35103         Tests for module 'unicase/u16-toupper'.
35104         * modules/unicase/u16-toupper-tests: New file.
35105         * tests/unicase/test-u16-toupper.c: New file.
35106
35107         Tests for module 'unicase/u8-toupper'.
35108         * modules/unicase/u8-toupper-tests: New file.
35109         * tests/unicase/test-u8-toupper.c: New file.
35110
35111         New module 'unicase/u32-toupper'.
35112         * lib/unicase/u32-toupper.c: New file.
35113         * modules/unicase/u32-toupper: New file.
35114
35115         New module 'unicase/u16-toupper'.
35116         * lib/unicase/u16-toupper.c: New file.
35117         * modules/unicase/u16-toupper: New file.
35118
35119         New module 'unicase/u8-toupper'.
35120         * lib/unicase/u8-toupper.c: New file.
35121         * modules/unicase/u8-toupper: New file.
35122
35123         New module 'unicase/u32-casemap'.
35124         * lib/unicase/u32-casemap.c: New file.
35125         * modules/unicase/u32-casemap: New file.
35126
35127         New module 'unicase/u16-casemap'.
35128         * lib/unicase/u16-casemap.c: New file.
35129         * modules/unicase/u16-casemap: New file.
35130
35131         New module 'unicase/u8-casemap'.
35132         * lib/unicase/unicasemap.h: New file.
35133         * lib/unicase/u8-casemap.c: New file.
35134         * lib/unicase/u-casemap.h: New file.
35135         * modules/unicase/u8-casemap: New file.
35136
35137         New module 'unicase/special-casing'.
35138         * lib/unicase/special-casing.h: New file.
35139         * lib/unicase/special-casing.c: New file.
35140         * lib/unicase/special-casing-table.gperf: New file, generated by
35141         gen-uni-tables.c.
35142         * modules/unicase/special-casing: New file.
35143
35144         Tests for module 'unicase/locale-language'.
35145         * modules/unicase/locale-language-tests: New file.
35146         * tests/unicase/test-locale-language.sh: New file.
35147         * tests/unicase/test-locale-language.c: New file.
35148
35149         New module 'unicase/locale-language'.
35150         * lib/unicase/locale-language.c: New file.
35151         * lib/unicase/locale-languages.gperf: New file.
35152         * modules/unicase/locale-language: New file.
35153
35154         Generate more tables for case conversion and case folding.
35155         * lib/gen-uni-tables.c (SCC_*): New enum items.
35156         (struct special_casing_rule): New type.
35157         (casing_rules, num_casing_rules, allocated_casing_rules): New
35158         variables.
35159         (add_casing_rule, fill_casing_rules): New functions.
35160         (struct casefold_rule): New type.
35161         (casefolding_rules, num_casefolding_rules,
35162         allocated_casefolding_rules): New variables.
35163         (fill_casefolding_rules): New function.
35164         (unicode_casefold): New variable.
35165         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
35166         sort_casing_rules, output_casing_rules): New functions.
35167         (main): Accept to more arguments: SpecialCasing.txt and
35168         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
35169         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
35170         Output mapping for casefolding.
35171
35172         * lib/unicase.h: Include stdbool.h, uninorm.h.
35173         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
35174         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
35175         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
35176         arguments.
35177         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
35178         resultp arguments.
35179         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
35180         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
35181         resultp arguments.
35182         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
35183         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
35184         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
35185         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
35186         declarations.
35187         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
35188
35189 2009-03-08  Bruno Haible  <bruno@clisp.org>
35190
35191         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
35192         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
35193         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
35194         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
35195
35196 2009-03-07  Bruno Haible  <bruno@clisp.org>
35197
35198         Adjust u*_normcmp, u*_normcoll API.
35199         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
35200         u16_normcoll, u32_normcoll): Change failure conventions.
35201         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
35202         errno and return -1.
35203         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
35204
35205 2009-03-07  Bruno Haible  <bruno@clisp.org>
35206
35207         Tests for module 'uninorm/u32-normcoll'.
35208         * modules/uninorm/u32-normcoll-tests: New file.
35209         * tests/uninorm/test-u32-normcoll.c: New file.
35210
35211         Tests for module 'uninorm/u16-normcoll'.
35212         * modules/uninorm/u16-normcoll-tests: New file.
35213         * tests/uninorm/test-u16-normcoll.c: New file.
35214
35215         Tests for module 'uninorm/u8-normcoll'.
35216         * modules/uninorm/u8-normcoll-tests: New file.
35217         * tests/uninorm/test-u8-normcoll.c: New file.
35218
35219 2009-03-07  Bruno Haible  <bruno@clisp.org>
35220
35221         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
35222         tests/uninorm/test-u32-normcmp.c.
35223         * tests/uninorm/test-u32-normcmp.c: Include it.
35224         (test_nonascii): New function, extracted from main. Add some more
35225         tests.
35226         (main): Invoke test_ascii and test_nonascii.
35227         * modules/uninorm/u32-normcmp-tests (Files): Add
35228         tests/uninorm/test-u32-normcmp.h.
35229         (Depends-on): Remove uninorm/u32-normcmp.
35230
35231         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
35232         tests/uninorm/test-u16-normcmp.c.
35233         * tests/uninorm/test-u16-normcmp.c: Include it.
35234         (test_nonascii): New function, extracted from main. Add some more
35235         tests.
35236         (main): Invoke test_ascii and test_nonascii.
35237         * modules/uninorm/u16-normcmp-tests (Files): Add
35238         tests/uninorm/test-u16-normcmp.h.
35239         (Depends-on): Remove uninorm/u16-normcmp.
35240
35241         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
35242         tests/uninorm/test-u8-normcmp.c.
35243         * tests/uninorm/test-u8-normcmp.c: Include it.
35244         (test_nonascii): New function, extracted from main. Add some more
35245         tests.
35246         (main): Invoke test_ascii and test_nonascii.
35247         * modules/uninorm/u8-normcmp-tests (Files): Add
35248         tests/uninorm/test-u8-normcmp.h.
35249         (Depends-on): Remove uninorm/u8-normcmp.
35250
35251 2009-03-07  Bruno Haible  <bruno@clisp.org>
35252
35253         New module 'uninorm/u32-normcoll'.
35254         * lib/uninorm/u32-normcoll.c: New file.
35255         * modules/uninorm/u32-normcoll: New file.
35256
35257         New module 'uninorm/u16-normcoll'.
35258         * lib/uninorm/u16-normcoll.c: New file.
35259         * modules/uninorm/u16-normcoll: New file.
35260
35261         New module 'uninorm/u8-normcoll'.
35262         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
35263         declarations.
35264         * lib/uninorm/u8-normcoll.c: New file.
35265         * lib/uninorm/u-normcoll.h: New file.
35266         * modules/uninorm/u8-normcoll: New file.
35267
35268         New module 'uninorm/u32-normxfrm'.
35269         * lib/uninorm/u32-normxfrm.c: New file.
35270         * modules/uninorm/u32-normxfrm: New file.
35271
35272         New module 'uninorm/u16-normxfrm'.
35273         * lib/uninorm/u16-normxfrm.c: New file.
35274         * modules/uninorm/u16-normxfrm: New file.
35275
35276         New module 'uninorm/u8-normxfrm'.
35277         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
35278         declarations.
35279         * lib/uninorm/u8-normxfrm.c: New file.
35280         * lib/uninorm/u-normxfrm.h: New file.
35281         * modules/uninorm/u8-normxfrm: New file.
35282
35283 2009-03-07  Bruno Haible  <bruno@clisp.org>
35284
35285         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
35286         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
35287         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
35288
35289 2009-03-07  Bruno Haible  <bruno@clisp.org>
35290
35291         New module 'memxfrm'.
35292         * lib/memxfrm.h: New file.
35293         * lib/memxfrm.c: New file.
35294         * modules/memxfrm: New file.
35295
35296 2009-03-07  Bruno Haible  <bruno@clisp.org>
35297
35298         New module 'memcmp2'.
35299         * lib/memcmp2.h: New file.
35300         * lib/memcmp2.c: New file.
35301         * modules/memcmp2: New file.
35302
35303 2009-03-07  Bruno Haible  <bruno@clisp.org>
35304
35305         Tests for module 'uninorm/decomposing-form'.
35306         * modules/uninorm/decomposing-form-tests: New file.
35307         * tests/uninorm/test-decomposing-form.c: New file.
35308
35309         New module 'uninorm/decomposing-form'.
35310         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
35311         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
35312         Add 'decomposing_variant' field.
35313         * lib/uninorm/decomposing-form.c: New file.
35314         * lib/uninorm/nfc.c (uninorm_nfc): Update.
35315         * lib/uninorm/nfd.c (uninorm_nfd): Update.
35316         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
35317         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
35318         * modules/uninorm/decomposing-form: New file.
35319         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
35320         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
35321
35322 2009-03-07  Bruno Haible  <bruno@clisp.org>
35323
35324         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
35325         strings.
35326
35327 2009-03-06  Bruno Haible  <bruno@clisp.org>
35328
35329         Tests for module 'uninorm/u32-normcmp'.
35330         * tests/uninorm/test-u32-normcmp.c: New file.
35331         * modules/uninorm/u32-normcmp-tests: New file.
35332
35333         Tests for module 'uninorm/u16-normcmp'.
35334         * tests/uninorm/test-u16-normcmp.c: New file.
35335         * modules/uninorm/u16-normcmp-tests: New file.
35336
35337         Tests for module 'uninorm/u8-normcmp'.
35338         * tests/uninorm/test-u8-normcmp.c: New file.
35339         * modules/uninorm/u8-normcmp-tests: New file.
35340
35341         New module 'uninorm/u32-normcmp'.
35342         * lib/uninorm/u32-normcmp.c: New file.
35343         * modules/uninorm/u32-normcmp: New file.
35344
35345         New module 'uninorm/u16-normcmp'.
35346         * lib/uninorm/u16-normcmp.c: New file.
35347         * modules/uninorm/u16-normcmp: New file.
35348
35349         New module 'uninorm/u8-normcmp'.
35350         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
35351         declarations.
35352         * lib/uninorm/u8-normcmp.c: New file.
35353         * lib/uninorm/u-normcmp.h: New file.
35354         * modules/uninorm/u8-normcmp: New file.
35355
35356 2009-03-06  Bruno Haible  <bruno@clisp.org>
35357
35358         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
35359         Reported by Eric Blake.
35360
35361 2009-03-06  Eric Blake  <ebb9@byu.net>
35362             Bruno Haible  <bruno@clisp.org>
35363
35364         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
35365         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
35366         condition.
35367         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
35368         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
35369         condition.
35370         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
35371
35372 2009-03-06  Eric Blake  <ebb9@byu.net>
35373
35374         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
35375         to avoid compiler warnings.
35376         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
35377
35378 2009-03-05  Bruno Haible  <bruno@clisp.org>
35379
35380         * tests/test-ftell.c (main): Disable test beyond end of file on
35381         FreeMiNT.
35382         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
35383
35384 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
35385
35386         * lib/filevercmp.c: Move hidden files up in ordering.
35387         * tests/test-filevercmp.c: Add tests for hidden files.
35388
35389 2009-03-04  Bruno Haible  <bruno@clisp.org>
35390
35391         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
35392         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
35393         AM_CFLAGS.
35394         Reported by Simon Josefsson.
35395
35396 2009-03-03  Bruno Haible  <bruno@clisp.org>
35397
35398         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
35399         Reported by Simon Josefsson.
35400
35401         * doc/ld-version-script.texi: Update node reference.
35402
35403 2009-03-03  Bruno Haible  <bruno@clisp.org>
35404
35405         * modules/visibility (License): Change to 'unlimited'.
35406         Suggested by Simon Josefsson.
35407
35408 2009-03-03  Jim Meyering  <meyering@redhat.com>
35409
35410         unlinkdir: cannot_unlink_dir may modify process state
35411         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
35412         it's neither thread-safe nor appropriate for use in a library.
35413
35414 2009-03-03  Eric Blake  <ebb9@byu.net>
35415
35416         test-closein: silence test under Darwin
35417         * tests/test-closein.sh: Ignore stderr from cat, since we don't
35418         care if it dies from EPIPE or EBADF.
35419
35420 2009-03-03  Bruno Haible  <bruno@clisp.org>
35421
35422         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
35423         earlier.
35424         * doc/visibility.texi: Fix @node and @section.
35425
35426 2009-03-03  Simon Josefsson  <simon@josefsson.org>
35427
35428         * doc/gnulib.texi: Link to sections for ld version script and
35429         visibility.
35430         * doc/visibility.texi: Add @node and @section.
35431         * modules/ld-version-script: New module.
35432         * m4/ld-version-script.m4: New file.
35433         * doc/ld-version-script.texi: New file.
35434
35435 2009-03-02  David Lutterkort  <lutter@redhat.com>
35436
35437         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
35438         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
35439
35440 2009-03-02  Bruno Haible  <bruno@clisp.org>
35441
35442         * doc/visibility.texi: Mention libtool's -export-symbols option.
35443
35444 2009-03-02  Jim Meyering  <meyering@redhat.com>
35445
35446         announce-gen: new option: --no-print-checksums
35447         * build-aux/announce-gen (usage): Describe it.
35448         (print_checksums): Print a newline here, not in the [*] footnote.
35449         (main): Honor it.
35450
35451 2009-03-01  Bruno Haible  <bruno@clisp.org>
35452
35453         Use socklen_t in the native Windows replacements prototypes.
35454         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
35455         instead of 'int'.
35456         * lib/getsockopt.c (rpl_getsockopt): Likewise.
35457         * lib/setsockopt.c (rpl_setsockopt): Likewise.
35458         * modules/getsockopt (Depends-on): Add socklen.
35459         * modules/setsockopt (Depends-on): Add socklen.
35460
35461 2009-03-01  Bruno Haible  <bruno@clisp.org>
35462
35463         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
35464         least 4.2.
35465
35466 2009-03-01  Eric Blake  <ebb9@byu.net>
35467             Bruno Haible  <bruno@clisp.org>
35468
35469         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
35470         error messages.
35471         * lib/wait-process.c (wait_subprocess): Omit error message about
35472         deadly signal sent to the child of termsigp != NULL.
35473
35474 2009-03-01  Eric Blake  <ebb9@byu.net>
35475
35476         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
35477
35478 2009-03-01  Bruno Haible  <bruno@clisp.org>
35479
35480         Avoid a gcc warning.
35481         * tests/test-sched.c (b): Make global.
35482         Reported by Eric Blake.
35483
35484 2009-01-19  Martin Lambers  <marlam@marlam.de>
35485
35486         Provide POSIX semantics for socket timeout options on W32.
35487         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
35488         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
35489         * modules/setsockopt: Depend on sys_time module for struct timeval.
35490         * modules/getsockopt: Depend on sys_time module for struct timeval.
35491
35492 2009-03-01  Simon Josefsson  <simon@josefsson.org>
35493
35494         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
35495         __USE_GNU, for consistency with netdb.in.h.
35496         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
35497
35498 2009-03-01  Bruno Haible  <bruno@clisp.org>
35499
35500         More support for FreeMiNT.
35501         * lib/fseeko.c (rpl_fseeko): Complete last commit.
35502         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
35503
35504 2009-03-01  Bruno Haible  <bruno@clisp.org>
35505
35506         More support for FreeMiNT.
35507         * lib/fpurge.c (fpurge): Correct last commit.
35508         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
35509
35510 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35511
35512         Fix unportable awk script in vc-list-files.
35513         * build-aux/vc-list-files: In the replacement awk script, use
35514         substr with a second argument of 1, not zero.
35515         Report by Simon Josefsson.
35516
35517 2009-02-28  Bruno Haible  <bruno@clisp.org>
35518
35519         More support for FreeMiNT.
35520         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
35521         to FreeMiNT today.
35522         * lib/fwriting.c (fwriting): Likewise.
35523         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
35524
35525 2009-02-28  Bruno Haible  <bruno@clisp.org>
35526
35527         * tests/test-freadseek.c (main): Disable test beyond end of file on
35528         FreeMiNT.
35529         * tests/test-ftello.c (main): Likewise.
35530         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
35531
35532 2009-02-28  Bruno Haible  <bruno@clisp.org>
35533
35534         Add tentative support for FreeMiNT.
35535         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
35536         * lib/fpurge.c (fpurge): Likewise.
35537         * lib/freadable.c (freadable): Likewise.
35538         * lib/freading.c (freading): Likewise.
35539         * lib/freadptr.c (freadptr): Likewise.
35540         * lib/freadseek.c (freadptrinc): Likewise.
35541         * lib/fseeko.c (rpl_fseeko): Likewise.
35542         * lib/fseterr.c (fseterr): Likewise.
35543         * lib/fwritable.c (fwritable): Likewise.
35544         * lib/fwriting.c (fwriting): Likewise.
35545         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
35546         Hourihane.
35547         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
35548
35549 2009-02-28  Bruno Haible  <bruno@clisp.org>
35550
35551         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
35552         SIGCHLD.
35553         Reported by Jim Meyering.
35554
35555 2009-02-28  Bruno Haible  <bruno@clisp.org>
35556
35557         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
35558         Mention the results of these tests on various platforms.
35559         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
35560         order.
35561         * doc/posix-functions/printf.texi: Likewise.
35562         * doc/posix-functions/snprintf.texi: Likewise.
35563         * doc/posix-functions/sprintf.texi: Likewise.
35564         * doc/posix-functions/vfprintf.texi: Likewise.
35565         * doc/posix-functions/vprintf.texi: Likewise.
35566         * doc/posix-functions/vsnprintf.texi: Likewise.
35567         * doc/posix-functions/vsprintf.texi: Likewise.
35568         * doc/glibc-functions/obstack_printf.texi: Likewise.
35569         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
35570
35571 2009-02-28  Bruno Haible  <bruno@clisp.org>
35572
35573         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
35574         Reported by Loïc Minier <lool@dooz.org>.
35575
35576 2009-02-27  Bruno Haible  <bruno@clisp.org>
35577
35578         * gnulib-tool (func_import): Make the sed expression used to create the
35579         sed script for updating the .gitignore file POSIX compliant.
35580         Reported by Eric Blake.
35581
35582 2009-02-27  Bruno Haible  <bruno@clisp.org>
35583
35584         * gnulib-tool (sed): Don't alias as "sed --posix".
35585         Reported by Eric Blake.
35586
35587 2009-02-27  Bruno Haible  <bruno@clisp.org>
35588
35589         Avoid test link errors.
35590         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
35591         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
35592         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
35593         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
35594         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
35595
35596 2009-02-27  Bruno Haible  <bruno@clisp.org>
35597
35598         Avoid spurious "(cached)" in configure output.
35599         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
35600         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
35601         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
35602         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
35603         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
35604         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
35605         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
35606         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
35607         Reported by Eric Blake.
35608
35609 2009-02-27  Eric Blake  <ebb9@byu.net>
35610
35611         printf: fix regression in previous patch
35612         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
35613
35614 2009-02-27  Bruno Haible  <bruno@clisp.org>
35615
35616         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
35617         value.
35618         * lib/stdint.in.h: Likewise.
35619         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
35620
35621 2009-02-27  Eric Blake  <ebb9@byu.net>
35622
35623         doc: mention more functions added in cygwin 1.7.0
35624         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
35625         addition.
35626         * doc/posix-functions/open_wmemstream.texi: Likewise.
35627         * doc/posix-functions/wcsnlen.texi: Likewise.
35628         * doc/posix-functions/wcsnrtombs.texi: Likewise.
35629         * doc/posix-functions/wcstod.texi: Likewise.
35630         * doc/posix-functions/wcstof.texi: Likewise.
35631         * doc/posix-functions/wcstoimax.texi: Likewise.
35632         * doc/posix-functions/wcstok.texi: Likewise.
35633         * doc/posix-functions/wcstoumax.texi: Likewise.
35634
35635         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
35636         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
35637         * doc/posix-functions/fprintf.texi: Update.
35638         * doc/posix-functions/printf.texi: Update.
35639         * doc/posix-functions/snprintf.texi: Update.
35640         * doc/posix-functions/sprintf.texi: Update.
35641         * doc/posix-functions/vfprintf.texi: Update.
35642         * doc/posix-functions/vprintf.texi: Update.
35643         * doc/posix-functions/vsnprintf.texi: Update.
35644         * doc/posix-functions/vsprintf.texi: Update.
35645         * doc/glibc-functions/obstack_printf.texi: Update.
35646         * doc/glibc-functions/obstack_vprintf.texi: Update.
35647
35648 2009-02-26  Eric Blake  <ebb9@byu.net>
35649
35650         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
35651         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
35652         compilation bug by using runtime conversion.
35653         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
35654         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
35655         * modules/ceill-tests (Files): Use nan.h.
35656         * modules/floorl-tests (Files): Likewise.
35657         * modules/frexpl-tests (Files): Likewise.
35658         * modules/isnanl-tests (Files): Likewise.
35659         * modules/ldexpl-tests (Files): Likewise.
35660         * modules/roundl-tests (Files): Likewise.
35661         * modules/truncl-tests (Files): Likewise.
35662         * tests/test-ceill.c (main): Use a working NaN.
35663         * tests/test-floorl.c (main): Likewise.
35664         * tests/test-frexpl.c (main): Likewise.
35665         * tests/test-isnan.c (test_long_double): Likewise.
35666         * tests/test-isnanl.h (main): Likewise.
35667         * tests/test-ldexpl.h (main): Likewise.
35668         * tests/test-roundl.h (main): Likewise.
35669         * tests/test-truncl.h (main): Likewise.
35670         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
35671
35672 2009-02-26  Eric Blake  <ebb9@byu.net>
35673             Bruno Haible  <bruno@clisp.org>
35674
35675         Work around a *printf bug with %ls on Solaris.
35676         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
35677         precision is specified, sprintf stops converting the wide string
35678         argument when the number of bytes that have been produced by this
35679         conversion equals or exceeds the precision.
35680         * doc/posix-functions/fprintf.texi: Update.
35681         * doc/posix-functions/printf.texi: Update.
35682         * doc/posix-functions/snprintf.texi: Update.
35683         * doc/posix-functions/sprintf.texi: Update.
35684         * doc/posix-functions/vfprintf.texi: Update.
35685         * doc/posix-functions/vprintf.texi: Update.
35686         * doc/posix-functions/vsnprintf.texi: Update.
35687         * doc/posix-functions/vsprintf.texi: Update.
35688         * doc/glibc-functions/obstack_printf.texi: Update.
35689         * doc/glibc-functions/obstack_vprintf.texi: Update.
35690
35691 2009-02-26  Eric Blake  <ebb9@byu.net>
35692
35693         stdlib: favor compiler check of random.h
35694         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
35695         to avoid an ObjC random.h installed by Swarm.
35696
35697 2009-02-26  Bruno Haible  <bruno@clisp.org>
35698
35699         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
35700         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
35701         Reported by Gary V. Vaughan <gary@gnu.org>.
35702
35703 2009-02-26  Bruno Haible  <bruno@clisp.org>
35704
35705         Fix *printf behaviour regarding the %ls directive.
35706         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
35707         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
35708         NEED_PRINTF_DIRECTIVE_LS.
35709         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
35710         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
35711         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
35712         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
35713         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
35714         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
35715         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
35716         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
35717         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
35718         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
35719         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
35720         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
35721         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
35722         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
35723         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
35724         * doc/posix-functions/fprintf.texi: Update.
35725         * doc/posix-functions/printf.texi: Update.
35726         * doc/posix-functions/snprintf.texi: Update.
35727         * doc/posix-functions/sprintf.texi: Update.
35728         * doc/posix-functions/vfprintf.texi: Update.
35729         * doc/posix-functions/vprintf.texi: Update.
35730         * doc/posix-functions/vsnprintf.texi: Update.
35731         * doc/posix-functions/vsprintf.texi: Update.
35732         * doc/glibc-functions/obstack_printf.texi: Update.
35733         * doc/glibc-functions/obstack_vprintf.texi: Update.
35734         Reported by Eric Blake.
35735
35736 2009-02-25  Bruno Haible  <bruno@clisp.org>
35737
35738         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
35739         with known value.
35740         Reported by Gary V. Vaughan <gary@gnu.org>.
35741
35742 2009-02-25  Bruno Haible  <bruno@clisp.org>
35743
35744         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
35745         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
35746         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
35747         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
35748         Reported by Gary V. Vaughan <gary@gnu.org>.
35749
35750 2009-02-25  Bruno Haible  <bruno@clisp.org>
35751
35752         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
35753         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
35754         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
35755         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
35756         Reported by Gary V. Vaughan <gary@gnu.org>.
35757
35758 2009-02-25  Eric Blake  <ebb9@byu.net>
35759
35760         tests: skip fseek/ftell tests if ungetc is broken
35761         * m4/ungetc.m4: New file.
35762         * modules/fseek-tests: Split test, so ungetc dependency is
35763         separate from rest of test.
35764         * modules/fseeko-tests: Likewise.
35765         * modules/ftell-tests: Likewise.
35766         * modules/ftello-tests: Likewise.
35767         * tests/test-fseek.c (main): Isolate ungetc dependency.
35768         * tests/test-fseeko.c (main): Likewise.
35769         * tests/test-ftell.c (main): Likewise.
35770         * tests/test-ftello.c (main): Likewise.
35771         * tests/test-fseek2.sh: New file.
35772         * tests/test-fseeko2.sh: Likewise.
35773         * tests/test-ftell2.sh: Likewise.
35774         * tests/test-ftello2.sh: Likewise.
35775
35776 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
35777
35778         test-getaddrinfo: fix usage of skip return code 77
35779         * tests/test-gettaddrinfo.c: Return skip code 77 only
35780         for first occurance of skip (4x77 is not 77)
35781
35782 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
35783
35784         strtod: avoid C99 decl-after-statement
35785         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
35786
35787 2009-02-24  Eric Blake  <ebb9@byu.net>
35788
35789         strtod: detect HP-UX 11.31 bug
35790         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
35791         Reported by Gary V. Vaughan.
35792
35793 2009-02-23  Bruno Haible  <bruno@clisp.org>
35794
35795         Fix invalid read past end of memory block.
35796         * lib/vasnprintf.c (DCHAR_SET): Define.
35797         (local_wcslen): Define only when needed.
35798         (local_strnlen, local_wcsnlen): New functions.
35799         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
35800         directives that involve a conversion ourselves.
35801         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
35802         wcsnlen, mbrtowc, wcrtomb.
35803         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
35804         * tests/test-vasprintf-posix.c (test_function): Likewise.
35805         * tests/test-snprintf-posix.h (test_function): Likewise.
35806         * tests/test-sprintf-posix.h (test_function): Likewise.
35807         Reported by Ben Pfaff <blp@cs.stanford.edu>.
35808
35809 2009-02-22  Bruno Haible  <bruno@clisp.org>
35810
35811         Implement new clarified decomposition of Hangul syllables.
35812         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
35813         of type LTV, return only a pairwise decomposition.
35814         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
35815         Likewise.
35816         * tests/uninorm/test-decomposition.c (main): Updated expected result.
35817         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
35818         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
35819
35820 2009-02-22  Bruno Haible  <bruno@clisp.org>
35821
35822         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
35823         zero-length results and shrink excess allocated memory.
35824         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
35825         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
35826         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
35827         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
35828         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
35829         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
35830         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
35831         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
35832         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
35833         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
35834         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
35835         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
35836
35837 2009-02-21  Bruno Haible  <bruno@clisp.org>
35838
35839         * doc/gnulib.texi: Include safe-alloc.texi earlier.
35840         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
35841         spaces after a period. Put a space between a macro name and its
35842         argument list. Trivial rewordings.
35843         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
35844         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
35845         (main): Return 0 explicitly.
35846
35847 2009-02-21  Bruno Haible  <bruno@clisp.org>
35848
35849         Tests for module 'uninorm/filter'.
35850         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
35851         * modules/uninorm/filter-tests: New file.
35852
35853         New module 'uninorm/filter'.
35854         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
35855         uninorm_filter_flush, uninorm_filter_free): New declarations.
35856         * lib/uninorm/uninorm-filter.c: New file.
35857         * modules/uninorm/filter: New file.
35858
35859 2009-02-21  Bruno Haible  <bruno@clisp.org>
35860
35861         Tests for module 'uninorm/nfkc'.
35862         * tests/uninorm/test-nfkc.c: New file.
35863         * tests/uninorm/test-u8-nfkc.c: New file.
35864         * tests/uninorm/test-u16-nfkc.c: New file.
35865         * tests/uninorm/test-u32-nfkc.c: New file.
35866         * tests/uninorm/test-u32-nfkc-big.sh: New file.
35867         * tests/uninorm/test-u32-nfkc-big.c: New file.
35868         * modules/uninorm/nfkc-tests: New file.
35869
35870         New module 'uninorm/nfkc'.
35871         * lib/uninorm/nfkc.c: New file.
35872         * modules/uninorm/nfkc: New file.
35873
35874         Tests for module 'uninorm/nfkd'.
35875         * tests/uninorm/test-nfkd.c: New file.
35876         * tests/uninorm/test-u8-nfkd.c: New file.
35877         * tests/uninorm/test-u16-nfkd.c: New file.
35878         * tests/uninorm/test-u32-nfkd.c: New file.
35879         * tests/uninorm/test-u32-nfkd-big.sh: New file.
35880         * tests/uninorm/test-u32-nfkd-big.c: New file.
35881         * modules/uninorm/nfkd-tests: New file.
35882
35883         New module 'uninorm/nfkd'.
35884         * lib/uninorm/nfkd.c: New file.
35885         * modules/uninorm/nfkd: New file.
35886
35887         Tests for module 'uninorm/nfc'.
35888         * tests/uninorm/test-nfc.c: New file.
35889         * tests/uninorm/test-u8-nfc.c: New file.
35890         * tests/uninorm/test-u16-nfc.c: New file.
35891         * tests/uninorm/test-u32-nfc.c: New file.
35892         * tests/uninorm/test-u32-nfc-big.sh: New file.
35893         * tests/uninorm/test-u32-nfc-big.c: New file.
35894         * modules/uninorm/nfc-tests: New file.
35895
35896         New module 'uninorm/nfc'.
35897         * lib/uninorm/nfc.c: New file.
35898         * modules/uninorm/nfc: New file.
35899
35900         Tests for module 'uninorm/nfd'.
35901         * tests/uninorm/test-nfd.c: New file.
35902         * tests/uninorm/test-u8-nfd.c: New file.
35903         * tests/uninorm/test-u16-nfd.c: New file.
35904         * tests/uninorm/test-u32-nfd.c: New file.
35905         * tests/uninorm/test-u32-nfd-big.sh: New file.
35906         * tests/uninorm/test-u32-nfd-big.c: New file.
35907         * tests/uninorm/test-u32-normalize-big.h: New file.
35908         * tests/uninorm/test-u32-normalize-big.c: New file.
35909         * tests/uninorm/NormalizationTest.txt: New file, created from
35910         Unicode 5.1.0 NormalizationTest.txt.
35911         * modules/uninorm/nfd-tests: New file.
35912
35913         New module 'uninorm/nfd'.
35914         * lib/uninorm/nfd.c: New file.
35915         * modules/uninorm/nfd: New file.
35916
35917         New module 'uninorm/u32-normalize'.
35918         * lib/uninorm/u32-normalize.c: New file.
35919         * modules/uninorm/u32-normalize: New file.
35920
35921         New module 'uninorm/u16-normalize'.
35922         * lib/uninorm/u16-normalize.c: New file.
35923         * modules/uninorm/u16-normalize: New file.
35924
35925         New module 'uninorm/u8-normalize'.
35926         * lib/uninorm/u8-normalize.c: New file.
35927         * lib/uninorm/normalize-internal.h: New file.
35928         * lib/uninorm/u-normalize-internal.h: New file.
35929         * modules/uninorm/u8-normalize: New file.
35930
35931         New module 'uninorm/decompose-internal'.
35932         * lib/uninorm/decompose-internal.c: New file.
35933         * modules/uninorm/decompose-internal: New file.
35934
35935         Tests for module 'uninorm/composition'.
35936         * tests/uninorm/test-composition.c: New file.
35937         * modules/uninorm/composition-tests: New file.
35938
35939         New module 'uninorm/composition'.
35940         * lib/uninorm/composition.c: New file.
35941         * lib/uninorm/composition-table.gperf: New file, generated by
35942         gen-uni-tables.
35943         * modules/uninorm/composition: New file.
35944
35945         Tests for module 'uninorm/compat-decomposition'.
35946         * tests/uninorm/test-compat-decomposition.c: New file.
35947         * modules/uninorm/compat-decomposition-tests: New file.
35948
35949         New module 'uninorm/compat-decomposition'.
35950         * lib/uninorm/decompose-internal.h: New file.
35951         * lib/uninorm/compat-decomposition.c: New file.
35952         * modules/uninorm/compat-decomposition: New file.
35953
35954         Tests for module 'uninorm/canonical-decomposition'.
35955         * tests/uninorm/test-canonical-decomposition.c: New file.
35956         * modules/uninorm/canonical-decomposition-tests: New file.
35957
35958         New module 'uninorm/canonical-decomposition'.
35959         * lib/uninorm/canonical-decomposition.c: New file.
35960         * modules/uninorm/canonical-decomposition: New file.
35961
35962         Tests for module 'uninorm/decomposition'.
35963         * tests/uninorm/test-decomposition.c: New file.
35964         * modules/uninorm/decomposition-tests: New file.
35965
35966         New module 'uninorm/decomposition'.
35967         * lib/uninorm/decomposition.c: New file.
35968         * modules/uninorm/decomposition: New file.
35969
35970         New module 'uninorm/decomposition-table'.
35971         * lib/uninorm/decomposition-table.h: New file.
35972         * lib/uninorm/decomposition-table.c: New file.
35973         * lib/uninorm/decomposition-table1.h: New file, generated by
35974         gen-uni-tables.
35975         * lib/uninorm/decomposition-table2.h: New file, generated by
35976         gen-uni-tables.
35977         * modules/uninorm/decomposition-table: New file.
35978
35979         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
35980         (UC_DECOMP_*): New enumeration items.
35981         (get_decomposition): New function.
35982         (struct decomp_table): New type.
35983         (output_decomposition, output_decomposition_tables): New functions.
35984         (unicode_composition_exclusions): New variable.
35985         (fill_composition_exclusions, debug_output_composition_tables): New
35986         functions.
35987         (main): Accept one more argument. Invoke fill_composition_exclusions.
35988         Output decomposition and composition tables.
35989
35990         New module 'uninorm/base'.
35991         * lib/uninorm.h: New file.
35992         * lib/unictype.h: Update comment.
35993         * modules/uninorm/base: New file.
35994
35995 2009-02-21  David Lutterkort  <lutter@redhat.com>
35996
35997         Tests for module 'safe-alloc'.
35998         * tests/test-safe-alloc.c: New file.
35999         * modules/safe-alloc-tests: New file.
36000
36001         New module 'safe-alloc'.
36002         * lib/safe-alloc.h: New file.
36003         * lib/safe-alloc.c: New file.
36004         * m4/safe-alloc.m4: New file.
36005         * modules/safe-alloc: New file.
36006         * doc/safe-alloc.texi: New file.
36007         * doc/gnulib.texi: Include it.
36008         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
36009         safe-alloc.
36010
36011 2009-02-18  Bruno Haible  <bruno@clisp.org>
36012
36013         Fix link error on non-glibc systems.
36014         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
36015         variable.
36016         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
36017
36018 2009-02-18  Jim Meyering  <meyering@redhat.com>
36019
36020         fts: avoid used-uninitialized error due to recent change
36021         * lib/fts.c (fts_read): Guard uses of the new member,
36022         parent->fts_n_dirs_remaining, since it's not relevant for
36023         the parent of a directory specified on the command-line.
36024
36025 2009-02-17  James Youngman  <jay@gnu.org>
36026             Bruno Haible  <bruno@clisp.org>
36027
36028         * m4/include_next.m4: Reformulate comment.
36029
36030 2009-02-16  Jim Meyering  <meyering@redhat.com>
36031
36032         fts: add #if guards so that the fts_lgpl module still builds
36033         * lib/fts.c: Guard just-added hash-table-using parts with
36034         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
36035         Reported by Simon Josefsson.
36036
36037 2009-02-15  Bruno Haible  <bruno@clisp.org>
36038
36039         * modules/array-mergesort-tests: New file.
36040         * tests/test-array-mergesort.c: New file.
36041
36042         New module 'array-mergesort'.
36043         * modules/array-mergesort: New file.
36044         * lib/array-mergesort.h: New file.
36045
36046 2009-02-15  Bruno Haible  <bruno@clisp.org>
36047
36048         Fix 2009-02-07 commit.
36049         * lib/gen-uni-tables.c (output_predicate, output_category,
36050         output_combclass, output_bidi_category, output_decimal_digit,
36051         output_digit, output_numeric, output_mirror, output_scripts,
36052         output_ident_category, output_simple_mapping): Fix format directives.
36053         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
36054
36055 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
36056
36057         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
36058         fixes are available from IBM.
36059
36060 2009-02-13  Jim Meyering  <meyering@redhat.com>
36061
36062         fts: arrange not to stat non-directories in more cases
36063         This makes GNU find (when it doesn't need to stat each file)
36064         *much* more efficient at traversing reiserfs file systems.
36065         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
36066         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
36067         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
36068         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
36069         (leaf_optimization_applies): New function.
36070         (LCO_hash, LCO_compare): New helper functions.
36071         (link_count_optimize_ok): New function.
36072         (fts_stat): Initialize new member (if dir).
36073         (fts_read): Decrement parent's fts_n_dirs_remaining count if
36074         we've just stat'ed a directory.  Skip the stat call when possible.
36075         ---
36076         Note this AFS-related exchange:
36077         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
36078         and note find's pioctl call in find/fstype.c.
36079         But that is necessary only if you want to enable the
36080         optimization for AFS, and for now, I don't.
36081
36082         fts: move a function definition "up" (no semantic change)
36083         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
36084         "up" to precede upcoming use of a related function.
36085
36086 2009-02-11  Jim Meyering  <meyering@redhat.com>
36087
36088         fts: correct internal computation of nlinks (optimization-related)
36089         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
36090         whether the current entry is a directory, so don't test it.
36091
36092 2009-02-10  Bruno Haible  <bruno@clisp.org>
36093
36094         Tests for module 'uniwbrk/ulc-wordbreaks'.
36095         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
36096         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
36097         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
36098
36099         Tests for module 'uniwbrk/u32-wordbreaks'.
36100         * modules/uniwbrk/u32-wordbreaks-tests: New file.
36101         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
36102
36103         Tests for module 'uniwbrk/u16-wordbreaks'.
36104         * modules/uniwbrk/u16-wordbreaks-tests: New file.
36105         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
36106
36107         Tests for module 'uniwbrk/u8-wordbreaks'.
36108         * modules/uniwbrk/u8-wordbreaks-tests: New file.
36109         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
36110
36111 2009-02-10  Bruno Haible  <bruno@clisp.org>
36112
36113         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
36114         property.
36115         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
36116         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
36117         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
36118
36119 2009-02-10  Simon Josefsson  <simon@josefsson.org>
36120
36121         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
36122         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
36123
36124 2009-02-10  Bruno Haible  <bruno@clisp.org>
36125
36126         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
36127         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
36128         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
36129         * lib/unilbrk/u8-possible-linebreaks.c: Update.
36130         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
36131         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
36132
36133 2009-02-09  Simon Josefsson  <simon@josefsson.org>
36134
36135         * lib/sockets.h (gl_fd_to_handle): New function.
36136
36137         * tests/test-sockets.c: Call gl_fd_to_handle.
36138
36139 2009-02-09  Bruno Haible  <bruno@clisp.org>
36140
36141         * doc/havelib.texi: Document the conventions on bi-arch systems.
36142
36143 2009-02-08  Bruno Haible  <bruno@clisp.org>
36144
36145         Document the AC_LIB_LINKFLAGS macro.
36146         * doc/havelib.texi: New file, mostly written on 2005-05-24.
36147         * doc/gnulib.texi: Include it.
36148
36149 2009-02-08  Bruno Haible  <bruno@clisp.org>
36150
36151         Fix wrong order of sections, compared to TOC.
36152         * doc/gnulib.texi: Include relocatable-maint.texi after the
36153         "Regular expressions" node, not before.
36154
36155 2009-02-08  Bruno Haible  <bruno@clisp.org>
36156
36157         Tests for module 'unicase/totitle'.
36158         * modules/unicase/totitle-tests: New file.
36159
36160         Tests for module 'unicase/tolower'.
36161         * modules/unicase/tolower-tests: New file.
36162
36163         Tests for module 'unicase/toupper'.
36164         * modules/unicase/toupper-tests: New file.
36165         * tests/unicase/test-mapping-part1.h: New file.
36166         * tests/unicase/test-mapping-part2.h: New file.
36167
36168         New module 'unicase/totitle'.
36169         * modules/unicase/totitle: New file.
36170         * lib/unicase/totitle.c: New file.
36171
36172         New module 'unicase/tolower'.
36173         * modules/unicase/tolower: New file.
36174         * lib/unicase/tolower.c: New file.
36175
36176         New module 'unicase/toupper'.
36177         * modules/unicase/toupper: New file.
36178         * lib/unicase/toupper.c: New file.
36179         * lib/unicase/simple-mapping.h: New file.
36180
36181         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
36182         (mapping_table): New structure.
36183         (output_simple_mapping): New function.
36184         (main): Invoke output_simple_mapping_test and output_simple_mapping.
36185         * modules/gen-uni-tables (Description): Update.
36186         * lib/unicase/toupper.h: New file, automatically generated by
36187         gen-uni-tables.
36188         * lib/unicase/tolower.h: New file, automatically generated by
36189         gen-uni-tables.
36190         * lib/unicase/totitle.h: New file, automatically generated by
36191         gen-uni-tables.
36192         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
36193         gen-uni-tables.
36194         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
36195         gen-uni-tables.
36196         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
36197         gen-uni-tables.
36198
36199         New module 'unicase/base'.
36200         * modules/unicase/base: New file.
36201         * lib/unicase.h: New file.
36202
36203 2009-02-08  Bruno Haible  <bruno@clisp.org>
36204
36205         New module 'uniwbrk/ulc-wordbreaks'.
36206         * modules/uniwbrk/ulc-wordbreaks: New file.
36207         * lib/uniwbrk/ulc-wordbreaks.c: New file.
36208
36209         New module 'uniwbrk/u32-wordbreaks'.
36210         * modules/uniwbrk/u32-wordbreaks: New file.
36211         * lib/uniwbrk/u32-wordbreaks.c: New file.
36212
36213         New module 'uniwbrk/u16-wordbreaks'.
36214         * modules/uniwbrk/u16-wordbreaks: New file.
36215         * lib/uniwbrk/u16-wordbreaks.c: New file.
36216
36217         New module 'uniwbrk/u8-wordbreaks'.
36218         * modules/uniwbrk/u8-wordbreaks: New file.
36219         * lib/uniwbrk/u8-wordbreaks.c: New file.
36220         * lib/uniwbrk/u-wordbreaks.h: New file.
36221
36222         New module 'uniwbrk/table'.
36223         * modules/uniwbrk/table: New file.
36224         * lib/uniwbrk/wbrktable.h: New file.
36225         * lib/uniwbrk/wbrktable.c: New file.
36226
36227         New module 'uniwbrk/wordbreak-property'.
36228         * modules/uniwbrk/wordbreak-property: New file.
36229         * lib/uniwbrk/wordbreak-property.c: New file.
36230
36231         * lib/gen-uni-tables.c (WBP_*): New enum items.
36232         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
36233         (unicode_org_wbp): New variable.
36234         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
36235         New functions.
36236         (wbp_table): New structure.
36237         (output_wbp, output_wbrk_tables): New functions.
36238         (main): Accept additional argument. Invoke fill_org_wbp,
36239         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
36240         output_wbrk_tables.
36241         * modules/gen-uni-tables (Description): Update.
36242         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
36243         gen-uni-tables.
36244
36245         New module 'uniwbrk/base'.
36246         * modules/uniwbrk/base: New file.
36247         * lib/uniwbrk.h: New file.
36248
36249 2009-02-08  Bruno Haible  <bruno@clisp.org>
36250
36251         Update to Unicode 5.1.0.
36252         * lib/gen-uni-tables.c (is_property_alphabetic): Include
36253         U+2185..U+2188.
36254         (is_property_default_ignorable_code_point): Don't include characters
36255         of category Cc or Cs and not-a-characters.
36256         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
36257         U+0D79, U+109E, U+109F, U+A60C.
36258         * lib/unictype/bidi_of.h: Regenerated.
36259         * lib/unictype/blocks.h: Regenerated.
36260         * lib/unictype/categ_C.h: Regenerated.
36261         * lib/unictype/categ_Cf.h: Regenerated.
36262         * lib/unictype/categ_Cn.h: Regenerated.
36263         * lib/unictype/categ_L.h: Regenerated.
36264         * lib/unictype/categ_Ll.h: Regenerated.
36265         * lib/unictype/categ_Lm.h: Regenerated.
36266         * lib/unictype/categ_Lo.h: Regenerated.
36267         * lib/unictype/categ_Lu.h: Regenerated.
36268         * lib/unictype/categ_M.h: Regenerated.
36269         * lib/unictype/categ_Mc.h: Regenerated.
36270         * lib/unictype/categ_Me.h: Regenerated.
36271         * lib/unictype/categ_Mn.h: Regenerated.
36272         * lib/unictype/categ_N.h: Regenerated.
36273         * lib/unictype/categ_Nd.h: Regenerated.
36274         * lib/unictype/categ_Nl.h: Regenerated.
36275         * lib/unictype/categ_No.h: Regenerated.
36276         * lib/unictype/categ_P.h: Regenerated.
36277         * lib/unictype/categ_Pd.h: Regenerated.
36278         * lib/unictype/categ_Pe.h: Regenerated.
36279         * lib/unictype/categ_Pf.h: Regenerated.
36280         * lib/unictype/categ_Pi.h: Regenerated.
36281         * lib/unictype/categ_Po.h: Regenerated.
36282         * lib/unictype/categ_Ps.h: Regenerated.
36283         * lib/unictype/categ_S.h: Regenerated.
36284         * lib/unictype/categ_Sk.h: Regenerated.
36285         * lib/unictype/categ_Sm.h: Regenerated.
36286         * lib/unictype/categ_So.h: Regenerated.
36287         * lib/unictype/categ_of.h: Regenerated.
36288         * lib/unictype/combining.h: Regenerated.
36289         * lib/unictype/ctype_alnum.h: Regenerated.
36290         * lib/unictype/ctype_alpha.h: Regenerated.
36291         * lib/unictype/ctype_graph.h: Regenerated.
36292         * lib/unictype/ctype_lower.h: Regenerated.
36293         * lib/unictype/ctype_print.h: Regenerated.
36294         * lib/unictype/ctype_punct.h: Regenerated.
36295         * lib/unictype/ctype_upper.h: Regenerated.
36296         * lib/unictype/decdigit.h: Regenerated.
36297         * lib/unictype/digit.h: Regenerated.
36298         * lib/unictype/mirror.h: Regenerated.
36299         * lib/unictype/numeric.h: Regenerated.
36300         * lib/unictype/pr_alphabetic.h: Regenerated.
36301         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
36302         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
36303         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
36304         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
36305         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
36306         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
36307         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
36308         * lib/unictype/pr_combining.h: Regenerated.
36309         * lib/unictype/pr_dash.h: Regenerated.
36310         * lib/unictype/pr_decimal_digit.h: Regenerated.
36311         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
36312         * lib/unictype/pr_deprecated.h: Regenerated.
36313         * lib/unictype/pr_diacritic.h: Regenerated.
36314         * lib/unictype/pr_extender.h: Regenerated.
36315         * lib/unictype/pr_format_control.h: Regenerated.
36316         * lib/unictype/pr_grapheme_base.h: Regenerated.
36317         * lib/unictype/pr_grapheme_extend.h: Regenerated.
36318         * lib/unictype/pr_grapheme_link.h: Regenerated.
36319         * lib/unictype/pr_id_continue.h: Regenerated.
36320         * lib/unictype/pr_id_start.h: Regenerated.
36321         * lib/unictype/pr_ideographic.h: Regenerated.
36322         * lib/unictype/pr_ignorable_control.h: Regenerated.
36323         * lib/unictype/pr_lowercase.h: Regenerated.
36324         * lib/unictype/pr_math.h: Regenerated.
36325         * lib/unictype/pr_numeric.h: Regenerated.
36326         * lib/unictype/pr_other_alphabetic.h: Regenerated.
36327         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
36328         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
36329         * lib/unictype/pr_other_id_continue.h: Regenerated.
36330         * lib/unictype/pr_other_lowercase.h: Regenerated.
36331         * lib/unictype/pr_other_math.h: Regenerated.
36332         * lib/unictype/pr_punctuation.h: Regenerated.
36333         * lib/unictype/pr_sentence_terminal.h: Regenerated.
36334         * lib/unictype/pr_soft_dotted.h: Regenerated.
36335         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
36336         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
36337         * lib/unictype/pr_unified_ideograph.h: Regenerated.
36338         * lib/unictype/pr_uppercase.h: Regenerated.
36339         * lib/unictype/pr_xid_continue.h: Regenerated.
36340         * lib/unictype/pr_xid_start.h: Regenerated.
36341         * lib/unictype/pr_zero_width.h: Regenerated.
36342         * lib/unictype/scripts.h: Regenerated.
36343         * lib/unictype/scripts_byname.gperf: Regenerated.
36344         * lib/unictype/sy_java_ident.h: Regenerated.
36345         * lib/unilbrk/lbrkprop1.h: Regenerated.
36346         * lib/unilbrk/lbrkprop2.h: Regenerated.
36347         * tests/unictype/test-categ_C.c: Regenerated.
36348         * tests/unictype/test-categ_Cf.c: Regenerated.
36349         * tests/unictype/test-categ_Cn.c: Regenerated.
36350         * tests/unictype/test-categ_L.c: Regenerated.
36351         * tests/unictype/test-categ_Ll.c: Regenerated.
36352         * tests/unictype/test-categ_Lm.c: Regenerated.
36353         * tests/unictype/test-categ_Lo.c: Regenerated.
36354         * tests/unictype/test-categ_Lu.c: Regenerated.
36355         * tests/unictype/test-categ_M.c: Regenerated.
36356         * tests/unictype/test-categ_Mc.c: Regenerated.
36357         * tests/unictype/test-categ_Me.c: Regenerated.
36358         * tests/unictype/test-categ_Mn.c: Regenerated.
36359         * tests/unictype/test-categ_N.c: Regenerated.
36360         * tests/unictype/test-categ_Nd.c: Regenerated.
36361         * tests/unictype/test-categ_Nl.c: Regenerated.
36362         * tests/unictype/test-categ_No.c: Regenerated.
36363         * tests/unictype/test-categ_P.c: Regenerated.
36364         * tests/unictype/test-categ_Pd.c: Regenerated.
36365         * tests/unictype/test-categ_Pe.c: Regenerated.
36366         * tests/unictype/test-categ_Pf.c: Regenerated.
36367         * tests/unictype/test-categ_Pi.c: Regenerated.
36368         * tests/unictype/test-categ_Po.c: Regenerated.
36369         * tests/unictype/test-categ_Ps.c: Regenerated.
36370         * tests/unictype/test-categ_S.c: Regenerated.
36371         * tests/unictype/test-categ_Sk.c: Regenerated.
36372         * tests/unictype/test-categ_Sm.c: Regenerated.
36373         * tests/unictype/test-categ_So.c: Regenerated.
36374         * tests/unictype/test-ctype_alnum.c: Regenerated.
36375         * tests/unictype/test-ctype_alpha.c: Regenerated.
36376         * tests/unictype/test-ctype_graph.c: Regenerated.
36377         * tests/unictype/test-ctype_lower.c: Regenerated.
36378         * tests/unictype/test-ctype_print.c: Regenerated.
36379         * tests/unictype/test-ctype_punct.c: Regenerated.
36380         * tests/unictype/test-ctype_upper.c: Regenerated.
36381         * tests/unictype/test-decdigit.h: Regenerated.
36382         * tests/unictype/test-digit.h: Regenerated.
36383         * tests/unictype/test-numeric.h: Regenerated.
36384         * tests/unictype/test-pr_alphabetic.c: Regenerated.
36385         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
36386         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
36387         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
36388         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
36389         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
36390         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
36391         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
36392         * tests/unictype/test-pr_combining.c: Regenerated.
36393         * tests/unictype/test-pr_dash.c: Regenerated.
36394         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
36395         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
36396         * tests/unictype/test-pr_deprecated.c: Regenerated.
36397         * tests/unictype/test-pr_diacritic.c: Regenerated.
36398         * tests/unictype/test-pr_extender.c: Regenerated.
36399         * tests/unictype/test-pr_format_control.c: Regenerated.
36400         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
36401         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
36402         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
36403         * tests/unictype/test-pr_id_continue.c: Regenerated.
36404         * tests/unictype/test-pr_id_start.c: Regenerated.
36405         * tests/unictype/test-pr_ideographic.c: Regenerated.
36406         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
36407         * tests/unictype/test-pr_lowercase.c: Regenerated.
36408         * tests/unictype/test-pr_math.c: Regenerated.
36409         * tests/unictype/test-pr_numeric.c: Regenerated.
36410         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
36411         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
36412         Regenerated.
36413         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
36414         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
36415         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
36416         * tests/unictype/test-pr_other_math.c: Regenerated.
36417         * tests/unictype/test-pr_punctuation.c: Regenerated.
36418         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
36419         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
36420         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
36421         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
36422         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
36423         * tests/unictype/test-pr_uppercase.c: Regenerated.
36424         * tests/unictype/test-pr_xid_continue.c: Regenerated.
36425         * tests/unictype/test-pr_xid_start.c: Regenerated.
36426         * tests/unictype/test-pr_zero_width.c: Regenerated.
36427
36428         Update to Unicode 5.1.0.
36429         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
36430         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
36431         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
36432         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
36433         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
36434         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
36435         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
36436         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
36437         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
36438         (nonspacing_table_ind): Update.
36439         * tests/uniwidth/test-uc_width2.sh: Update expected result.
36440
36441         Update to Unicode 5.1.0.
36442         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
36443         code transform.
36444         * lib/uniname/uniname.c (unicode_character_name,
36445         unicode_name_character): Add the range 0x1Fxxx to the code transform.
36446         * lib/uniname/uninames.h: Regenerated.
36447         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
36448
36449 2009-02-07  Bruno Haible  <bruno@clisp.org>
36450
36451         Merge gen-ctype and gen-lbrk into a single program.
36452         * lib/gen-uni-tables.c: New file, incorporating
36453         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
36454         Add directory prefixes to the names of the generated files.
36455         * lib/unictype/gen-ctype.c: Remove file.
36456         * lib/unilbrk/gen-lbrk.c: Remove file.
36457         * modules/gen-uni-tables: New file.
36458         * modules/unictype/gen-ctype: Remove file.
36459         * modules/unilbrk/gen-lbrk: Remove file.
36460
36461 2009-02-07  Bruno Haible  <bruno@clisp.org>
36462
36463         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
36464
36465         New module 'unistr/u32-strcoll'.
36466         * modules/unistr/u32-strcoll: New file.
36467         * lib/unistr/u32-strcoll.c: New file.
36468
36469         New module 'unistr/u16-strcoll'.
36470         * modules/unistr/u16-strcoll: New file.
36471         * lib/unistr/u16-strcoll.c: New file.
36472
36473         New module 'unistr/u8-strcoll'.
36474         * modules/unistr/u8-strcoll: New file.
36475         * lib/unistr/u8-strcoll.c: New file.
36476         * lib/unistr/u-strcoll.h: New file.
36477
36478 2009-02-07  Bruno Haible  <bruno@clisp.org>
36479
36480         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
36481         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
36482         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
36483         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
36484         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
36485         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
36486
36487 2009-02-07  Bruno Haible  <bruno@clisp.org>
36488
36489         Make 64-bit clean.
36490         * lib/unictype/gen-ctype.c (output_predicate, output_category,
36491         output_combclass, output_bidi_category, output_decimal_digit,
36492         output_digit, output_numeric, output_mirror, output_scripts,
36493         output_ident_category): Use proper width specifier in format strings.
36494
36495 2009-02-07  Bruno Haible  <bruno@clisp.org>
36496
36497         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
36498         failure behaviour.
36499
36500 2009-02-07  Jim Meyering  <meyering@redhat.com>
36501
36502         regex: avoid compilation failure with upcoming gcc-4.4
36503         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
36504         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
36505         "... error: integer overflow in preprocessor expression".
36506
36507 2009-02-05  Ben Pfaff  <blp@gnu.org>
36508
36509         Fix link errors on Windows when close module is used.
36510         * modules/close: Add $(LIB_CLOSE) to Link section.
36511         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
36512         $(LIB_CLOSE) on Windows.
36513
36514 2009-02-05  Jim Meyering  <meyering@redhat.com>
36515
36516         still avoid unused-parameter warnings, but do it cleanly
36517         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
36518         (get_fs_usage): Cast to void instead.
36519         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
36520         (dev_from_mount_options, read_file_system_list): Cast to void.
36521         Prompted by Bruno Haible.
36522
36523 2009-02-04  Jim Meyering  <meyering@redhat.com>
36524
36525         fsusage.c: correct copyright year
36526         * lib/fsusage.c: Reflect year in which the change is pushed into
36527
36528         avoid misc. warnings
36529         * lib/fsusage.c (UNUSED_PARAM): Define.
36530         (get_fs_usage): Mark parameter "disk" as unused.
36531         * lib/getugroups.c (getgrent): Use "void" in prototype.
36532         * lib/mountlist.c: Mark unused parameters.
36533         (read_file_system_list): Declare a local with "const".
36534         * lib/nanosleep.c (getnow): Declare static.
36535         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
36536
36537         dirfd: set errno upon failure
36538         * lib/dirfd.c: Include <errno.h>.
36539         Set errno to ENOTSUP when returning -1.
36540         * modules/dirfd (Depends-on): Add errno.
36541         Suggested by John Kodis <kodis@comcast.net>.
36542
36543 2009-02-01  Bruno Haible  <bruno@clisp.org>
36544
36545         Don't assume sizeof (long) >= sizeof (void *).
36546         * lib/memcmp.c: Include stdint.h.
36547         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
36548         srcp2 to 'const byte *'.
36549         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
36550         types to uintptr_t.
36551         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
36552         * modules/memcmp (Depends-on): Add stdint.
36553         Reported by Ozkan Sezer <sezeroz@gmail.com>.
36554
36555 2009-01-30  Eric Blake  <ebb9@byu.net>
36556
36557         fix more require-before-expand issues
36558         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
36559         expand, AC_PROG_AWK.
36560         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
36561
36562 2009-01-28  Eric Blake  <ebb9@byu.net>
36563
36564         version-etc: use consistent URL formatting
36565         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
36566         Improve formatting.  Use fputs for string without %.
36567
36568 2009-01-28  Jim Meyering  <meyering@redhat.com>
36569
36570         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
36571         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
36572         "underquoted definition of NAME" from autoconf-2.59.
36573
36574 2009-01-28  Bruno Haible  <bruno@clisp.org>
36575
36576         * doc/gnulib.texi: Add "Obsolete modules" to index.
36577
36578 2009-01-28  Jim Meyering  <meyering@redhat.com>
36579
36580         useless-if-before-free: recognize more variants
36581         * build-aux/useless-if-before-free: Also recognize e.g.,
36582         if (NULL != p) free (p);
36583
36584 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
36585
36586         test-getaddrinfo: skip (don't fail) this test when there's no network
36587         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
36588         on the presumption that it means you lack network access.
36589
36590 2009-01-26  Jim Meyering  <meyering@redhat.com>
36591
36592         fflush: avoid warnings on modern systems
36593         * lib/fflush.c (rpl_fflush): Move declarations of locals,
36594         pos and result, into scopes where they're used.
36595
36596 2009-01-26  Eric Blake  <ebb9@byu.net>
36597
36598         Silence warning reintroduced by recent extensions patch.
36599         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
36600         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
36601         autoconf.
36602
36603         Backport improved autoconf semantics of AC_DEFUN_ONCE.
36604         * m4/00gnulib.m4: New file.
36605         * gnulib-tool (func_get_filelist): Always use it.
36606         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
36607         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
36608
36609 2009-01-25  Bruno Haible  <bruno@clisp.org>
36610
36611         Make test-quotearg work on MacOS X and AIX.
36612         * tests/test-quotearg.sh: New file.
36613         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
36614         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
36615         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
36616         include <libintl.h>.
36617         (fake_locale): Remove variable.
36618         (gettext, dgettext, dcgettext): Remove functions.
36619         (main): Instead of setting a fake locale, set a real locale. Call
36620         textdomain and bindtextdomain.
36621         * modules/quotearg-tests (Files): Add the new files.
36622         (Depends-on): Add gettext, setenv, unsetenv.
36623         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
36624         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
36625         Augment TESTS_ENVIRONMENT.
36626
36627 2009-01-25  Bruno Haible  <bruno@clisp.org>
36628
36629         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
36630         fr_FR.ISO8859-1 locale on MacOS X.
36631         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
36632         ja_JP.eucJP locale on MacOS X.
36633         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
36634         zh_CN.GB18030 locale on MacOS X.
36635
36636 2009-01-25  Bruno Haible  <bruno@clisp.org>
36637
36638         Avoid link errors on MacOS X 10.3.
36639         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
36640         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
36641
36642 2009-01-25  Bruno Haible  <bruno@clisp.org>
36643
36644         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
36645         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
36646         * modules/pipe (Files): Remove m4/posix_spawn.m4.
36647         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
36648         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
36649         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
36650         posix_spawnattr_init, posix_spawnattr_setsigmask,
36651         posix_spawnattr_setflags, posix_spawnattr_destroy.
36652
36653         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
36654         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
36655         * modules/execute (Files): Remove m4/posix_spawn.m4.
36656         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
36657         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
36658         posix_spawnattr_init, posix_spawnattr_setsigmask,
36659         posix_spawnattr_setflags, posix_spawnattr_destroy.
36660
36661 2009-01-25  Bruno Haible  <bruno@clisp.org>
36662
36663         * lib/glthread/threadlib.c: Include <stdlib.h>.
36664
36665 2009-01-25  Bruno Haible  <bruno@clisp.org>
36666
36667         * lib/glthread/threadlib.c (dummy): New declaration.
36668
36669 2009-01-25  Bruno Haible  <bruno@clisp.org>
36670
36671         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
36672         multibyte characters also for the GB18030 encoding. Don't crash when
36673         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
36674
36675 2009-01-25  Bruno Haible  <bruno@clisp.org>
36676
36677         Avoid redefining 'struct random_data' on OSF/1 5.1.
36678         * lib/stdlib.in.h: Include <random.h> if it exists.
36679         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
36680         HAVE_RANDOM_H. Include <random.h> when testing whether
36681         'struct random_data' exists.
36682         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
36683
36684 2009-01-25  Bruno Haible  <bruno@clisp.org>
36685
36686         Don't install charset.alias on MacOS X >= 10.3.
36687         * lib/localcharset.c (DARWIN7): New macro.
36688         (get_charset_aliases): Hardcode the result for Darwin7.
36689         * modules/localcharset (install-exec-local): Don't install
36690         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
36691
36692 2009-01-25  Bruno Haible  <bruno@clisp.org>
36693
36694         Don't install charset.alias on mingw and Cygwin.
36695         * modules/localcharset (install-exec-local): Don't install
36696         charset.alias on mingw and Cygwin, if the file does not yet exist.
36697         The result for these platforms is hardcoded in localcharset.c.
36698
36699 2009-01-25  Bruno Haible  <bruno@clisp.org>
36700
36701         Make it possible again to use AC_GNU_SOURCE together with gnulib.
36702         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
36703         before requiring AC_USE_SYSTEM_EXTENSIONS.
36704
36705 2009-01-25  Jim Meyering  <meyering@redhat.com>
36706
36707         c-strtod: avoid warnings
36708         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
36709         "assignment discards qualifiers from pointer target type" warnings.
36710
36711 2009-01-24  Bruno Haible  <bruno@clisp.org>
36712
36713         Add support for non-UTF-8 locales on MacOS X.
36714         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
36715         canonical encodings. For Darwin 7 and newer, don't map traditional
36716         encodings to UTF-8.
36717         Reported by Vincent Lefevre <vincent@vinc17.org>
36718         at <http://savannah.gnu.org/bugs/?25235>.
36719
36720 2009-01-24  Bruno Haible  <bruno@clisp.org>
36721
36722         * doc/gnulib.texi (Obsolete modules): New section.
36723         Reported by Mike Frysinger <vapier@gentoo.org>.
36724
36725 2009-01-24  Bruno Haible  <bruno@clisp.org>
36726
36727         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
36728         (%.dvi): New rule.
36729
36730 2009-01-24  Bruno Haible  <bruno@clisp.org>
36731
36732         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
36733         Reported by Eric Blake.
36734
36735 2009-01-24  Bruno Haible  <bruno@clisp.org>
36736
36737         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
36738         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
36739         Reported by Gary V. Vaughan <gary@gnu.org>.
36740
36741 2009-01-24  Bruno Haible  <bruno@clisp.org>
36742
36743         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
36744
36745 2009-01-23  Bruno Haible  <bruno@clisp.org>
36746
36747         Make c-strtod, c-strtold usable in libraries.
36748         * lib/c-strtod.c: Include string.h instead of xalloc.h.
36749         (C_STRTOD): Call strdup instead of xstrdup.
36750         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
36751         * modules/c-strtold (Depends-on): Likewise.
36752         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
36753         * NEWS: Mention the change.
36754         Reported by Michael Gold <mgold@ncf.ca>.
36755
36756 2009-01-23  Jim Meyering  <meyering@redhat.com>
36757
36758         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
36759         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
36760         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
36761
36762 2009-01-23  Simon Josefsson  <simon@josefsson.org>
36763
36764         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
36765         GNU CoreUtils.
36766         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
36767         * modules/version-etc (Description): Update.
36768
36769 2009-01-22  Bruno Haible  <bruno@clisp.org>
36770
36771         Cache the C locale object.
36772         * lib/c-strtod.c (c_locale_cache): New variable.
36773         (c_locale): New function.
36774         (C_STRTOD): Use it, and don't call freelocale.
36775         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
36776         Suggested by Paolo Bonzini.
36777
36778 2009-01-21  Bruno Haible  <bruno@clisp.org>
36779
36780         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
36781         conditions other than overflow.
36782
36783 2009-01-21  Bruno Haible  <bruno@clisp.org>
36784
36785         * lib/c-strtod.c: Include errno.h.
36786         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
36787         value from STRTOD_L and STRTOD.
36788
36789 2009-01-21  Bruno Haible  <bruno@clisp.org>
36790         and Jim Meyering  <meyering@redhat.com>
36791
36792         nanosleep: skip configure test (fail it) for apple universal builds
36793         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
36794         universal builds, assume that nanosleep does not work.
36795         * modules/nanosleep (Depends-on): Add multiarch.
36796
36797         mktime: skip configure test (fail it) for apple universal builds
36798         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
36799         universal builds, assume that mktime does not work.
36800         * modules/mktime (Depends-on): Add multiarch.
36801
36802 2009-01-21  Eric Blake  <ebb9@byu.net>
36803
36804         multiarch: avoid expand-before-require warning
36805         * modules/multiarch (configure.ac): Require, rather than expand,
36806         gl_MULTIARCH.
36807         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
36808         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
36809         enforce that all clients require it.  Partial reversion of
36810         2008-12-29 patch.
36811
36812         error: avoid expand-before-require warning
36813         * modules/errno (configure.ac): Require, rather than expand,
36814         gl_HEADER_ERRNO_H.
36815         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
36816         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
36817         enforce that all clients require it.
36818
36819         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
36820         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
36821         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
36822         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
36823
36824 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
36825
36826         Revert:
36827         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
36828
36829         regex: do not depend on obsolete modules.
36830         * modules/regex: Remove memcmp and memmove.
36831
36832 2009-01-20  Bruno Haible  <bruno@clisp.org>
36833
36834         Make the 'link' module link on Windows NT 4.
36835         * lib/link.c (_WIN32_WINNT): Don't define.
36836         (CreateHardLinkFuncType): New type.
36837         (CreateHardLinkFunc, initialized): New variables.
36838         (initialize): New function.
36839         (link): Invoke CreateHardLink indirectly through the function pointer.
36840
36841 2009-01-20  Bruno Haible  <bruno@clisp.org>
36842
36843         Fix compilation failure on mingw.
36844         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
36845
36846 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
36847
36848         * doc/c-strtod.texi: Mention a couple of restrictions.
36849
36850 2009-01-20  Jim Meyering  <meyering@redhat.com>
36851
36852         gettimeofday: move more declarations out of functions
36853         * lib/gettimeofday.c: Move extern declarations of tzset and
36854         gmtime out of containing functions.  Prompted by Bruno Haible.
36855
36856 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
36857
36858         regex: do not depend on obsolete modules.
36859         * modules/regex: Remove memcmp and memmove.
36860
36861 2009-01-19  Bruno Haible  <bruno@clisp.org>
36862
36863         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
36864         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
36865         gl_BIGENDIAN, not AC_C_BIGENDIAN.
36866         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
36867         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
36868
36869 2009-01-19  Bruno Haible  <bruno@clisp.org>
36870
36871         * tests/test-link.c: Include <errno.h>.
36872         (main): Exit with code 77 when a hard link cannot be created due to
36873         the file system.
36874         * tests/test-link.sh: Skip test when a hard link cannot be created due
36875         to the file system.
36876         Suggested by Eric Blake.
36877
36878 2009-01-19  Martin Lambers  <marlam@marlam.de>
36879
36880         * modules/link-tests: New file.
36881         * tests/test-link.sh: New file.
36882         * tests/test-link.c: New file.
36883
36884 2009-01-19  Eric Blake  <ebb9@byu.net>
36885
36886         doc: mention another function added in cygwin 1.7.0
36887         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
36888         Another new function in cygwin 1.7.
36889
36890 2009-01-19  Bruno Haible  <bruno@clisp.org>
36891
36892         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
36893         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
36894         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
36895         gl_BIGENDIAN, not AC_C_BIGENDIAN.
36896         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
36897         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
36898         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
36899         * m4/md4.m4 (gl_MD4): Likewise.
36900         * m4/md5.m4 (gl_MD5): Likewise.
36901         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
36902         * m4/sha1.m4 (gl_SHA1): Likewise.
36903         * m4/sha256.m4 (gl_SHA256): Likewise.
36904         * m4/sha512.m4 (gl_SHA512): Likewise.
36905
36906 2009-01-19  Bruno Haible  <bruno@clisp.org>
36907
36908         * modules/uniname/uniname-tests (Depends-on): Add progname.
36909         * tests/uniname/test-uninames.c: Include progname.h.
36910         (main): Call set_program_name.
36911
36912         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
36913         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
36914         (main): Call set_program_name.
36915
36916         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
36917         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
36918         (main): Call set_program_name.
36919
36920         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
36921         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
36922         (main): Call set_program_name.
36923
36924         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
36925         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
36926         (main): Call set_program_name.
36927
36928         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
36929         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
36930         (main): Call set_program_name.
36931
36932         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
36933         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
36934         (main): Call set_program_name.
36935
36936         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
36937         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
36938         (main): Call set_program_name.
36939
36940         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
36941         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
36942         (main): Call set_program_name.
36943
36944 2009-01-19  Eric Blake  <ebb9@byu.net>
36945
36946         test-unistd: test previous patch
36947         * tests/test-unistd.c: Test *_FILENO macros.
36948
36949         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
36950         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
36951         Guarantee a definition.
36952         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
36953         * modules/unistd-safer (Depends-on): Add dependency on unistd.
36954         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
36955         * lib/dup-safer.c (STDERR_FILENO): Likewise.
36956         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
36957         Likewise.
36958         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
36959         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
36960         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
36961         Likewise.
36962         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
36963         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
36964         (STDERR_FILENO): Likewise.
36965         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
36966         (STDERR_FILENO): Likewise.
36967         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
36968         (STDERR_FILENO): Likewise.
36969         Reported by Elbert Pol.
36970
36971 2009-01-19  Eric Blake  <ebb9@byu.net>
36972
36973         doc: mention more functions added in cygwin 1.7.0
36974         * doc/posix-functions/abort.texi (abort): Update wording related
36975         to cygwin.
36976         * doc/posix-functions/daylight.texi (daylight): Likewise.
36977         * doc/posix-functions/optarg.texi (optarg): Likewise.
36978         * doc/posix-functions/optarg.texi (opterr): Likewise.
36979         * doc/posix-functions/optarg.texi (optind): Likewise.
36980         * doc/posix-functions/optarg.texi (optopt): Likewise.
36981         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
36982         worked in 1.5.x, and was withdrawn in 1.7.
36983         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
36984         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
36985         cygwin versions.
36986         * doc/posix-functions/perror.texi (perror): Likewise.
36987         * doc/posix-functions/printf.texi (printf): Likewise.
36988         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
36989         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
36990         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
36991         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
36992         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
36993         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
36994         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
36995         Likewise.
36996         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
36997         Likewise.
36998         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
36999         this function.
37000         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
37001         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
37002         Likewise.
37003         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
37004         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
37005         * doc/posix-functions/confstr.texi (confstr): Likewise.
37006         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
37007         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
37008         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
37009         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
37010         * doc/posix-functions/fputws.texi (fputws): Likewise.
37011         * doc/posix-functions/fwide.texi (fwide): Likewise.
37012         * doc/posix-functions/getwc.texi (getwc): Likewise.
37013         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
37014         * doc/posix-functions/putwc.texi (putwc): Likewise.
37015         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
37016         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
37017         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
37018         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
37019         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
37020         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
37021         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
37022         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
37023         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
37024         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
37025         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
37026
37027 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
37028
37029         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
37030         * lib/ioctl.c: Include <sys/ioctl.h>.
37031
37032 2009-01-19  Simon Josefsson  <simon@josefsson.org>
37033
37034         * modules/getdate-tests (Depends-on): Add progname.
37035         * tests/test-getdate.c: Use progname module, to avoid link errors
37036         on non-glibc systems.
37037
37038 2009-01-18  Simon Josefsson  <simon@josefsson.org>
37039
37040         * modules/filenamecat-tests (Depends-on): Add progname.
37041         * modules/fstrcmp-tests (Depends-on): Likewise.
37042
37043         * tests/test-filenamecat.c: Use progname module, to avoid link
37044         errors on non-glibc systems.
37045         * tests/test-fstrcmp.c: Likewise.
37046
37047 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
37048
37049         gettimeofday: avoid warning: nested extern declaration of 'localtime'
37050         * lib/gettimeofday.c: Move extern declaration out of function.
37051
37052 2009-01-18  Bruno Haible  <bruno@clisp.org>
37053
37054         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
37055         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
37056         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
37057
37058 2009-01-18  Bruno Haible  <bruno@clisp.org>
37059
37060         * lib/strftime.c (MEMPCPY): Remove unused macro.
37061         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
37062
37063 2009-01-18  Martin Lambers  <marlam@marlam.de>
37064
37065         New module 'link'.
37066         * lib/unistd.in.h (link): New declaration.
37067         * lib/link.c: New file.
37068         * m4/link.m4: New file.
37069         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
37070         HAVE_LINK.
37071         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
37072         * modules/link: New file.
37073         * doc/posix-functions/link.texi: Mention the new module.
37074
37075 2009-01-18  Bruno Haible  <bruno@clisp.org>
37076
37077         * tests/test-avltree_list.c (main): Call set_program_name.
37078         * tests/test-avltree_oset.c (main): Likewise.
37079         * tests/test-obstack-printf.c: Include progname.h.
37080         (main): Call set_program_name.
37081         * tests/test-quotearg.c: Include progname.h.
37082         (main): Call set_program_name.
37083         * tests/test-xmemdup0.c: Include progname.h.
37084         (main): Call set_program_name.
37085
37086 2009-01-18  Bruno Haible  <bruno@clisp.org>
37087
37088         New module 'alphasort'.
37089         * lib/dirent.in.h (alphasort): New declaration.
37090         * lib/alphasort.c: New file, from glibc with modifications.
37091         * m4/alphasort.m4: New file.
37092         * modules/alphasort: New file.
37093         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
37094         HAVE_ALPHASORT.
37095         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
37096         HAVE_ALPHASORT.
37097         * doc/posix-functions/alphasort.texi: Mention the new module and the
37098         portability problems.
37099
37100 2009-01-18  Bruno Haible  <bruno@clisp.org>
37101
37102         New module 'scandir'.
37103         * lib/dirent.in.h (scandir): New declaration.
37104         * lib/scandir.c: New file, from glibc with modifications.
37105         * m4/scandir.m4: New file.
37106         * modules/scandir: New file.
37107         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
37108         HAVE_SCANDIR.
37109         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
37110         HAVE_SCANDIR.
37111         * doc/posix-functions/scandir.texi: Mention the new module and the
37112         portability problems.
37113
37114 2009-01-17  Bruno Haible  <bruno@clisp.org>
37115
37116         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
37117         Update documentation.
37118         (func_remove_suffix): Escape all dots in the suffix. Update
37119         documentation.
37120         (func_filter_filelist): Update documentation.
37121         Reported by Ralf Wildenhues.
37122
37123 2009-01-17  Bruno Haible  <bruno@clisp.org>
37124
37125         * modules/dprintf-posix-tests: New file.
37126         * tests/test-dprintf-posix.sh: New file.
37127         * tests/test-dprintf-posix.c: New file.
37128
37129         New modules 'dprintf', 'dprintf-posix'.
37130         * lib/stdio.in.h (dprintf): New declaration.
37131         * lib/dprintf.c: New file.
37132         * m4/dprintf.m4: New file.
37133         * m4/dprintf-posix.m4: New file.
37134         * modules/dprintf: New file.
37135         * modules/dprintf-posix: New file.
37136         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
37137         HAVE_DPRINTF, REPLACE_DPRINTF.
37138         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
37139         HAVE_DPRINTF, REPLACE_DPRINTF.
37140         * doc/posix-functions/dprintf.texi: Mention the new modules.
37141
37142 2009-01-17  Bruno Haible  <bruno@clisp.org>
37143
37144         * modules/vdprintf-posix-tests: New file.
37145         * tests/test-vdprintf-posix.sh: New file.
37146         * tests/test-vdprintf-posix.c: New file.
37147
37148         New modules 'vdprintf', 'vdprintf-posix'.
37149         * lib/stdio.in.h (vdprintf): New declaration.
37150         * lib/vdprintf.c: New file.
37151         * m4/vdprintf.m4: New file.
37152         * m4/vdprintf-posix.m4: New file.
37153         * modules/vdprintf: New file.
37154         * modules/vdprintf-posix: New file.
37155         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
37156         HAVE_VDPRINTF, REPLACE_VDPRINTF.
37157         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
37158         HAVE_VDPRINTF, REPLACE_VDPRINTF.
37159         * doc/posix-functions/vdprintf.texi: Mention the new modules.
37160
37161 2009-01-17  Bruno Haible  <bruno@clisp.org>
37162
37163         Fix replacement of fopen on mingw.
37164         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
37165         mingw.
37166
37167 2009-01-17  Bruno Haible  <bruno@clisp.org>
37168
37169         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
37170         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
37171
37172 2009-01-17  Bruno Haible  <bruno@clisp.org>
37173
37174         Avoid test-fflush2.sh failure on mingw.
37175         * tests/test-fflush2.c: Include binary-io.h.
37176         (main): Put standard input into binary mode.
37177         * modules/fflush-tests (Depends-on): Add binary-io.
37178
37179 2009-01-17  Bruno Haible  <bruno@clisp.org>
37180
37181         * lib/wchar.in.h: In another particular situation, include only the
37182         system's <wchar.h> file.
37183         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
37184         Reported by Albert Chin-A-Young <china@thewrittenword.com>
37185         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
37186
37187 2009-01-17  Bruno Haible  <bruno@clisp.org>
37188
37189         Support for stripping executables in --enable-relocatable.
37190         * build-aux/install-reloc: Expect one more argument, or an environment
37191         variable RELOC_STRIP_PROG. If set, strip the destination program and
37192         its wrapper.
37193         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
37194         RELOC_STRIP_PROG.
37195         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
37196         to set RELOCATABLE_STRIP.
37197         * NEWS: Mention the new Makefile requirement.
37198
37199 2009-01-17  Bruno Haible  <bruno@clisp.org>
37200
37201         * build-aux/install-reloc: Remove debugging information left over by
37202         C compiler on MacOS X.
37203
37204 2009-01-17  Bruno Haible  <bruno@clisp.org>
37205
37206         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
37207         * lib/progreloc.c (find_executable): Fix type of pointer passed to
37208         _NSGetExecutablePath.
37209
37210 2009-01-16  Jim Meyering  <meyering@redhat.com>
37211
37212         strerror: avoid warnings about discarding "const"
37213         * lib/strerror.c (rpl_strerror): Instead of returning a const
37214         string from each and every "case", use a variable, and add a single
37215         cast after the switch.
37216
37217 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
37218
37219         * lib/arpa_inet.in.h: Add extern "C" block for C++.
37220
37221 2009-01-16  Bruno Haible  <bruno@clisp.org>
37222
37223         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
37224         array initializer syntax that also works in C++ mode.
37225         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
37226
37227 2009-01-16  Jim Meyering  <meyering@redhat.com>
37228
37229         poll: suppress a warning
37230         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
37231         to ignore "...unsigned expression < 0 is always false" warnings.
37232
37233 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
37234
37235         poll: remove declarations of unused variables
37236         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
37237         sockbuf and optlen.
37238
37239 2009-01-15  Bruno Haible  <bruno@clisp.org>
37240
37241         Make fflush-after-ungetc POSIX compliant on BSD systems.
37242         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
37243         (clear_ungetc_buffer): Implement also for other systems.
37244         (rpl_fflush): On glibc systems, invoke
37245         clear_ungetc_buffer_preserving_position. Otherwise, invoke
37246         clear_ungetc_buffer after fetching the stream's position, not before.
37247
37248 2009-01-15  Bruno Haible  <bruno@clisp.org>
37249
37250         Make fflush-after-ungetc POSIX compliant on glibc systems.
37251         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
37252         after ungetc.
37253         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
37254         (rpl_fflush): On glibc systems, simply call the system's fflush
37255         function after clearing the ungetc buffer.
37256         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
37257         Instead, lseek only to the end of file, then use the system's fseeko
37258         for the rest. On glibc systems, reset the EOF indicator bit.
37259
37260 2009-01-15  Jim Meyering  <meyering@redhat.com>
37261
37262         openmp.m4: revert quote-adding change, for portability to older autoconf
37263         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
37264         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
37265         Simon Josefsson noticed the problem when using autoconf-2.61.
37266
37267 2009-01-15  Bruno Haible  <bruno@clisp.org>
37268
37269         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
37270         * tests/test-fflush2.c (ASSERT): Always fail.
37271         (main): Add two tests for fflush() after ungetc(), taking into account
37272         the Austin Group's clarification.
37273         Suggested by Eric Blake.
37274
37275 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
37276
37277         mktime.m4: remove K&R-style function prototypes
37278         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
37279         for the Sun C++ compiler.
37280
37281 2009-01-14  Bruno Haible  <bruno@clisp.org>
37282
37283         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
37284         while including <wchar.h>.
37285         * lib/wchar.in.h: In two particular situations on HP-UX, include only
37286         the system's <wchar.h> file.
37287         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
37288
37289 2009-01-14  Bruno Haible  <bruno@clisp.org>
37290
37291         * m4/csharp.m4: Don't mention gettext on the serial number line.
37292         * m4/csharpexec.m4: Likewise.
37293         * m4/eaccess.m4: Likewise.
37294         * m4/javaexec.m4: Likewise.
37295         * m4/sig_atomic_t.m4: Likewise.
37296         * m4/tmpdir.m4: Likewise.
37297         * m4/intldir.m4: Bump gettext version.
37298         * m4/lib-ld.m4: Likewise.
37299
37300 2009-01-14  Bruno Haible  <bruno@clisp.org>
37301
37302         * lib/progname.c (set_program_name): Add more comments.
37303         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
37304
37305 2009-01-14  Simon Josefsson  <simon@josefsson.org>
37306
37307         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
37308         were sys/stat.h does not define it.
37309
37310 2009-01-14  Jim Meyering  <meyering@redhat.com>
37311
37312         many *.m4 files: improve m4 quoting
37313         99% of this change was performed by running the following commands:
37314         git ls-files | grep '\.m4$' | xargs perl -pi \
37315           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
37316           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
37317           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
37318           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
37319         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
37320         The remainder were to add Copyright dates, increment serial numbers,
37321         undo some changes in comments, exclude m4/intl.m4, and add quotes
37322         around the "1" in ",1" where the unusual spacing prohibited the
37323         above regexps from doing the job.  For more details, see
37324         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
37325         * m4/acl.m4: Modified.
37326         * m4/afs.m4: Likewise.
37327         * m4/alloca.m4: Likewise.
37328         * m4/argp.m4: Likewise.
37329         * m4/argz.m4: Likewise.
37330         * m4/atexit.m4: Likewise.
37331         * m4/bison-i18n.m4: Likewise.
37332         * m4/bison.m4: Likewise.
37333         * m4/byteswap.m4: Likewise.
37334         * m4/c-stack.m4: Likewise.
37335         * m4/c-strtod.m4: Likewise.
37336         * m4/calloc.m4: Likewise.
37337         * m4/canonicalize-lgpl.m4: Likewise.
37338         * m4/chown.m4: Likewise.
37339         * m4/clock_time.m4: Likewise.
37340         * m4/codeset.m4: Likewise.
37341         * m4/copy-file.m4: Likewise.
37342         * m4/csharp.m4: Likewise.
37343         * m4/csharpcomp.m4: Likewise.
37344         * m4/csharpexec.m4: Likewise.
37345         * m4/d-ino.m4: Likewise.
37346         * m4/d-type.m4: Likewise.
37347         * m4/dirfd.m4: Likewise.
37348         * m4/double-slash-root.m4: Likewise.
37349         * m4/eaccess.m4: Likewise.
37350         * m4/eealloc.m4: Likewise.
37351         * m4/environ.m4: Likewise.
37352         * m4/errno_h.m4: Likewise.
37353         * m4/euidaccess.m4: Likewise.
37354         * m4/execute.m4: Likewise.
37355         * m4/fatal-signal.m4: Likewise.
37356         * m4/fchdir.m4: Likewise.
37357         * m4/fcntl_h.m4: Likewise.
37358         * m4/fileblocks.m4: Likewise.
37359         * m4/filenamecat.m4: Likewise.
37360         * m4/findprog.m4: Likewise.
37361         * m4/flexmember.m4: Likewise.
37362         * m4/fnmatch.m4: Likewise.
37363         * m4/fopen.m4: Likewise.
37364         * m4/fpending.m4: Likewise.
37365         * m4/fprintf-posix.m4: Likewise.
37366         * m4/free.m4: Likewise.
37367         * m4/frexp.m4: Likewise.
37368         * m4/frexpl.m4: Likewise.
37369         * m4/fsusage.m4: Likewise.
37370         * m4/ftruncate.m4: Likewise.
37371         * m4/gc-camellia.m4: Likewise.
37372         * m4/gc-random.m4: Likewise.
37373         * m4/gc.m4: Likewise.
37374         * m4/getaddrinfo.m4: Likewise.
37375         * m4/getcwd-abort-bug.m4: Likewise.
37376         * m4/getcwd-path-max.m4: Likewise.
37377         * m4/getdate.m4: Likewise.
37378         * m4/getdomainname.m4: Likewise.
37379         * m4/getgroups.m4: Likewise.
37380         * m4/gethostname.m4: Likewise.
37381         * m4/gethrxtime.m4: Likewise.
37382         * m4/getline.m4: Likewise.
37383         * m4/getloadavg.m4: Likewise.
37384         * m4/getndelim2.m4: Likewise.
37385         * m4/getpass.m4: Likewise.
37386         * m4/gettext.m4: Likewise.
37387         * m4/gettime.m4: Likewise.
37388         * m4/gettimeofday.m4: Likewise.
37389         * m4/gnulib-common.m4: Likewise.
37390         * m4/group-member.m4: Likewise.
37391         * m4/host-os.m4: Likewise.
37392         * m4/iconv.m4: Likewise.
37393         * m4/iconv_open.m4: Likewise.
37394         * m4/inet_ntop.m4: Likewise.
37395         * m4/inet_pton.m4: Likewise.
37396         * m4/inline.m4: Likewise.
37397         * m4/intldir.m4: Likewise.
37398         * m4/intlmacosx.m4: Likewise.
37399         * m4/intmax.m4: Likewise.
37400         * m4/intmax_t.m4: Likewise.
37401         * m4/inttypes.m4: Likewise.
37402         * m4/inttypes_h.m4: Likewise.
37403         * m4/inttypes-pri.m4: Likewise.
37404         * m4/isapipe.m4: Likewise.
37405         * m4/isnand.m4: Likewise.
37406         * m4/isnanf.m4: Likewise.
37407         * m4/isnanl.m4: Likewise.
37408         * m4/javacomp.m4: Likewise.
37409         * m4/javaexec.m4: Likewise.
37410         * m4/jm-winsz1.m4: Likewise.
37411         * m4/jm-winsz2.m4: Likewise.
37412         * m4/lchown.m4: Likewise.
37413         * m4/lcmessage.m4: Likewise.
37414         * m4/ldexpl.m4: Likewise.
37415         * m4/lib-ld.m4: Likewise.
37416         * m4/lib-link.m4: Likewise.
37417         * m4/libsigsegv.m4: Likewise.
37418         * m4/link-follow.m4: Likewise.
37419         * m4/localcharset.m4: Likewise.
37420         * m4/locale-fr.m4: Likewise.
37421         * m4/locale-ja.m4: Likewise.
37422         * m4/locale-tr.m4: Likewise.
37423         * m4/locale-zh.m4: Likewise.
37424         * m4/lock.m4: Likewise.
37425         * m4/longlong.m4: Likewise.
37426         * m4/ls-mntd-fs.m4: Likewise.
37427         * m4/lstat.m4: Likewise.
37428         * m4/malloc.m4: Likewise.
37429         * m4/mathl.m4: Likewise.
37430         * m4/mbrtowc.m4: Likewise.
37431         * m4/mbstate_t.m4: Likewise.
37432         * m4/mbswidth.m4: Likewise.
37433         * m4/memchr.m4: Likewise.
37434         * m4/memcmp.m4: Likewise.
37435         * m4/memcpy.m4: Likewise.
37436         * m4/memmem.m4: Likewise.
37437         * m4/memmove.m4: Likewise.
37438         * m4/mempcpy.m4: Likewise.
37439         * m4/memrchr.m4: Likewise.
37440         * m4/memset.m4: Likewise.
37441         * m4/minmax.m4: Likewise.
37442         * m4/mkdir-slash.m4: Likewise.
37443         * m4/mkdtemp.m4: Likewise.
37444         * m4/mktime.m4: Likewise.
37445         * m4/mmap-anon.m4: Likewise.
37446         * m4/mountlist.m4: Likewise.
37447         * m4/nanosleep.m4: Likewise.
37448         * m4/nls.m4: Likewise.
37449         * m4/nocrash.m4: Likewise.
37450         * m4/open.m4: Likewise.
37451         * m4/openat.m4: Likewise.
37452         * m4/openmp.m4: Likewise.
37453         * m4/pathmax.m4: Likewise.
37454         * m4/perl.m4: Likewise.
37455         * m4/physmem.m4: Likewise.
37456         * m4/pipe.m4: Likewise.
37457         * m4/po.m4: Likewise.
37458         * m4/poll.m4: Likewise.
37459         * m4/posixtm.m4: Likewise.
37460         * m4/posixver.m4: Likewise.
37461         * m4/printf-frexp.m4: Likewise.
37462         * m4/printf-frexpl.m4: Likewise.
37463         * m4/printf-posix.m4: Likewise.
37464         * m4/printf-posix-rpl.m4: Likewise.
37465         * m4/printf.m4: Likewise.
37466         * m4/progtest.m4: Likewise.
37467         * m4/putenv.m4: Likewise.
37468         * m4/readline.m4: Likewise.
37469         * m4/readlink.m4: Likewise.
37470         * m4/readutmp.m4: Likewise.
37471         * m4/realloc.m4: Likewise.
37472         * m4/regex.m4: Likewise.
37473         * m4/relocatable.m4: Likewise.
37474         * m4/relocatable-lib.m4: Likewise.
37475         * m4/rename-dest-slash.m4: Likewise.
37476         * m4/rename.m4: Likewise.
37477         * m4/rmdir-errno.m4: Likewise.
37478         * m4/rmdir.m4: Likewise.
37479         * m4/roundf.m4: Likewise.
37480         * m4/roundl.m4: Likewise.
37481         * m4/rpmatch.m4: Likewise.
37482         * m4/save-cwd.m4: Likewise.
37483         * m4/selinux-selinux-h.m4: Likewise.
37484         * m4/setenv.m4: Likewise.
37485         * m4/settime.m4: Likewise.
37486         * m4/sig2str.m4: Likewise.
37487         * m4/sig_atomic_t.m4: Likewise.
37488         * m4/signalblocking.m4: Likewise.
37489         * m4/signbit.m4: Likewise.
37490         * m4/sigpipe.m4: Likewise.
37491         * m4/sockets.m4: Likewise.
37492         * m4/sockpfaf.m4: Likewise.
37493         * m4/st_dm_mode.m4: Likewise.
37494         * m4/stat-time.m4: Likewise.
37495         * m4/stdbool.m4: Likewise.
37496         * m4/stdint.m4: Likewise.
37497         * m4/stdint_h.m4: Likewise.
37498         * m4/stpcpy.m4: Likewise.
37499         * m4/stpncpy.m4: Likewise.
37500         * m4/strcase.m4: Likewise.
37501         * m4/strchrnul.m4: Likewise.
37502         * m4/strcspn.m4: Likewise.
37503         * m4/strdup.m4: Likewise.
37504         * m4/strftime.m4: Likewise.
37505         * m4/strndup.m4: Likewise.
37506         * m4/strnlen.m4: Likewise.
37507         * m4/strpbrk.m4: Likewise.
37508         * m4/strptime.m4: Likewise.
37509         * m4/strsep.m4: Likewise.
37510         * m4/strtod.m4: Likewise.
37511         * m4/strtoimax.m4: Likewise.
37512         * m4/strtok_r.m4: Likewise.
37513         * m4/strtol.m4: Likewise.
37514         * m4/strtoll.m4: Likewise.
37515         * m4/strtoul.m4: Likewise.
37516         * m4/strtoull.m4: Likewise.
37517         * m4/strtoumax.m4: Likewise.
37518         * m4/strverscmp.m4: Likewise.
37519         * m4/threadlib.m4: Likewise.
37520         * m4/timegm.m4: Likewise.
37521         * m4/tm_gmtoff.m4: Likewise.
37522         * m4/tmpdir.m4: Likewise.
37523         * m4/tmpfile.m4: Likewise.
37524         * m4/tzset.m4: Likewise.
37525         * m4/uintmax_t.m4: Likewise.
37526         * m4/unlinkdir.m4: Likewise.
37527         * m4/unlocked-io.m4: Likewise.
37528         * m4/uptime.m4: Likewise.
37529         * m4/userspec.m4: Likewise.
37530         * m4/utimbuf.m4: Likewise.
37531         * m4/utime.m4: Likewise.
37532         * m4/utimes-null.m4: Likewise.
37533         * m4/utimes.m4: Likewise.
37534         * m4/vararrays.m4: Likewise.
37535         * m4/vasnprintf.m4: Likewise.
37536         * m4/vfprintf-posix.m4: Likewise.
37537         * m4/vprintf-posix.m4: Likewise.
37538         * m4/wait-process.m4: Likewise.
37539         * m4/wchar_t.m4: Likewise.
37540         * m4/wint_t.m4: Likewise.
37541         * m4/write-any-file.m4: Likewise.
37542         * m4/yield.m4: Likewise.
37543
37544 2009-01-13  Bruno Haible  <bruno@clisp.org>
37545
37546         Avoid test-copy-file.sh failures when ACL support insufficient.
37547         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
37548         TESTS_ENVIRONMENT.
37549         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
37550         Reported by Jim Meyering.
37551
37552 2009-01-13  Bruno Haible  <bruno@clisp.org>
37553
37554         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
37555         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
37556         * modules/unistdio/u8-printf-parse (Files): Likewise.
37557         * modules/unistdio/u32-printf-parse (Files): Likewise.
37558         * modules/unistdio/ulc-printf-parse (Files): Likewise.
37559
37560 2009-01-13  Simon Josefsson  <simon@josefsson.org>
37561
37562         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
37563         and m4/inttypes_h.m4 too.
37564
37565 2009-01-12  Eric Blake  <ebb9@byu.net>
37566
37567         tests: IRIX 6.2 cc can't compile -0.0 into .data
37568         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
37569         rather than at compile-time.
37570         * tests/test-floorl.c (minus_zero): Likewise.
37571         * tests/test-frexpl.c (minus_zero): Likewise.
37572         * tests/test-isnan.c (minus_zerol): Likewise.
37573         * tests/test-isnanl.h (minus_zero): Likewise.
37574         * tests/test-ldexpl.c (minus_zero): Likewise.
37575         * tests/test-roundl.c (minus_zero): Likewise.
37576         * tests/test-signbit.c (minus_zerol): Likewise.
37577         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
37578         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
37579         * tests/test-truncl.c (minus_zero): Likewise.
37580         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
37581         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
37582         Reported by Tom G. Christensen and Nelson H. F. Beebe.
37583
37584 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
37585
37586         regex: fix glibc bug 9697
37587         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
37588         handling.
37589
37590 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
37591
37592         regex: fix glibc bug 697
37593         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
37594         being NULL also if there are no backreferences.
37595
37596 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
37597
37598         regex: merge glibc changes
37599         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
37600         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
37601         re_string_skip_chars, re_string_reconstruct): Likewise.
37602         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
37603
37604 2009-01-07  Jim Meyering  <meyering@redhat.com>
37605
37606         poll: filter through cppi
37607         * lib/poll.c: Indent cpp directives to reflect nesting.
37608
37609 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
37610
37611         poll: don't return uninitialized
37612         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
37613
37614 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
37615
37616         avoid compile failure on AIX 6.1
37617         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
37618         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
37619
37620 2009-01-04  Jim Meyering  <meyering@redhat.com>
37621
37622         remove duplicate inclusion of <stdio.h>
37623         * tests/test-fprintf-posix.c: Likewise.
37624         * tests/test-printf-posix.c: Likewise.
37625         * tests/test-snprintf-posix.c: Likewise.
37626         * tests/test-sprintf-posix.c: Likewise.
37627         * tests/test-vasprintf-posix.c: Likewise.
37628         * tests/test-vfprintf-posix.c: Likewise.
37629         * tests/test-vprintf-posix.c: Likewise.
37630         * tests/test-vsnprintf-posix.c: Likewise.
37631         * tests/test-vsprintf-posix.c: Likewise.
37632
37633 2009-01-03  Jim Meyering  <meyering@redhat.com>
37634
37635         gnulib-tool: fix sed-based filtering
37636         * gnulib-tool (func_filter_filelist): Remove extra backslash
37637         in sed_fff_filter definition.
37638
37639 2009-01-02  Jim Meyering  <meyering@redhat.com>
37640
37641         strftime: avoid compilation failure on Solaris 2.6
37642         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
37643         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
37644         Don't #define mbrlen or mbsinit, since now they're guaranteed to
37645         be available.  Reported by Tom G. Christensen.  Details in
37646         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
37647
37648 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37649             Bruno Haible  <bruno@clisp.org>
37650
37651         Speed up gnulib-tool by doing more string processing through shell
37652         built-ins.
37653         * gnulib-tool (fast_func_append): New variable.
37654         (func_remove_prefix, func_remove_suffix): New functions.
37655         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
37656         (func_filter_filelist): New function.
37657         (func_get_dependencies): Use func_remove_suffix instead of sed.
37658         (func_get_automake_snippet): Use func_filter_filelist instead of a
37659         subshell and sed invocation.
37660
37661 2009-01-01  Bruno Haible  <bruno@clisp.org>
37662
37663         Fix a security bug.
37664         * gnulib-tool (func_import, import, update): Don't allow the characters
37665         '"', '$', '`', '\' in macro arguments that become part of commands that
37666         are evaluated.
37667
37668 2009-01-01  Bruno Haible  <bruno@clisp.org>
37669
37670         * gnulib-tool (func_reset_sigpipe): Add more comments.
37671
37672 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37673
37674         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
37675         func_emit_tests_Makefile_am, func_import): Abort loops early if we
37676         already know the answer.
37677
37678 2009-01-01  Jim Meyering  <meyering@redhat.com>
37679
37680         * lib/version-etc.c (version_etc_va): Update copyright year.
37681
37682 2008-12-30  Bruno Haible  <bruno@clisp.org>
37683
37684         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
37685         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
37686         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
37687
37688 2008-12-29  Eric Blake  <ebb9@byu.net>
37689
37690         multiarch: avoid autoconf AC_REQUIRE bug
37691         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
37692         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
37693         2.63 and older.
37694         Reported by Bruno Haible, and analyzed in
37695         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
37696
37697 2008-12-29  Bruno Haible  <bruno@clisp.org>
37698
37699         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
37700         files in subdirectories correctly.
37701         Reported by Ralf Wildenhues.
37702
37703 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37704
37705         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
37706         rather than 'join FILE -', for Solaris join.
37707
37708 2008-12-29  Bruno Haible  <bruno@clisp.org>
37709
37710         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
37711         quoting.
37712         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
37713         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
37714         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
37715         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
37716         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
37717         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
37718         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
37719         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
37720         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
37721         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
37722         * m4/nls.m4 (AM_NLS): Likewise.
37723         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
37724         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
37725         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
37726         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
37727         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
37728         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
37729         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
37730         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
37731         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
37732         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
37733         * m4/xsize.m4 (gl_XSIZE): Likewise.
37734         Suggested by Jim Meyering.
37735
37736 2008-11-17  Bruce Korb  <bkorb@gnu.org>
37737
37738         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
37739         * lib/parse-duration.c: use a switch instead of cascading if's.
37740
37741 2008-12-29  Eric Blake  <ebb9@byu.net>
37742
37743         wchar.h: supply WEOF on Irix 5.3
37744         * lib/wchar.in.h (wint_t): Also supply WEOF.
37745         * lib/wctype.in.h (wint_t): Likewise.
37746         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
37747         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
37748         Reported by Tom G. Christensen.
37749
37750 2008-12-26  Bruno Haible  <bruno@clisp.org>
37751
37752         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
37753         i486, i586, i686.
37754
37755 2008-12-26  Bruno Haible  <bruno@clisp.org>
37756
37757         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
37758
37759 2008-12-26  Bruno Haible  <bruno@clisp.org>
37760
37761         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
37762         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
37763         not __STDC_CONSTANT_MACROS.
37764         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
37765
37766 2008-12-25  Bruno Haible  <bruno@clisp.org>
37767
37768         Add support for universal builds to vasnprintf.
37769         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
37770         universal builds, guess no.
37771         * modules/vasnprintf-posix (Depends-on): Add multiarch.
37772         * modules/vasprintf-posix (Depends-on): Likewise.
37773         * modules/fprintf-posix (Depends-on): Likewise.
37774         * modules/vfprintf-posix (Depends-on): Likewise.
37775         * modules/snprintf-posix (Depends-on): Likewise.
37776         * modules/vsnprintf-posix (Depends-on): Likewise.
37777         * modules/sprintf-posix (Depends-on): Likewise.
37778         * modules/vsprintf-posix (Depends-on): Likewise.
37779         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
37780         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
37781         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
37782         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
37783         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
37784         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
37785         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
37786
37787         Add support for universal builds to <inttypes.h>.
37788         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
37789         _SCNu64_PREFIX): In Apple
37790         universal builds, define directly, using _LP64.
37791         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
37792         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
37793         * modules/inttypes (Depends-on): Add multiarch.
37794         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
37795
37796         Add support for universal builds to <stdint.h>.
37797         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
37798         universal builds, define directly, using _LP64.
37799         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
37800         Apple universal builds, don't test for the size and suffix of ptrdiff_t
37801         and size_t.
37802         * modules/stdint (Depends-on): Add multiarch.
37803         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
37804
37805         New module 'multiarch'.
37806         * modules/multiarch: New file.
37807         * m4/multiarch.m4: New file.
37808
37809 2008-12-25  Bruno Haible  <bruno@clisp.org>
37810
37811         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
37812
37813 2008-12-25  Bruno Haible  <bruno@clisp.org>
37814
37815         * modules/btowc (License): Relicense under LGPLv2+.
37816         * modules/mbsinit (License): Likewise.
37817         * modules/mbrtowc (License): Likewise.
37818         * modules/wcrtomb (License): Likewise.
37819         * modules/streq (License): Likewise.
37820         Reported by David Lutterkort <lutter@redhat.com>.
37821
37822 2008-12-23  Bruno Haible  <bruno@clisp.org>
37823
37824         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
37825
37826 2008-12-23  Bruno Haible  <bruno@clisp.org>
37827
37828         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
37829         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
37830         GETADDRINFO_LIB, not in LIBS.
37831         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
37832         * modules/canon-host (Link): Likewise.
37833         * NEWS: Mention the change.
37834         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
37835         GETADDRINFO_LIB.
37836
37837 2008-12-22  Bruno Haible  <bruno@clisp.org>
37838
37839         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
37840         * doc/posix-functions/iswalpha_l.texi: Likewise.
37841         * doc/posix-functions/iswblank_l.texi: Likewise.
37842         * doc/posix-functions/iswcntrl_l.texi: Likewise.
37843         * doc/posix-functions/iswctype_l.texi: Likewise.
37844         * doc/posix-functions/iswdigit_l.texi: Likewise.
37845         * doc/posix-functions/iswgraph_l.texi: Likewise.
37846         * doc/posix-functions/iswlower_l.texi: Likewise.
37847         * doc/posix-functions/iswprint_l.texi: Likewise.
37848         * doc/posix-functions/iswpunct_l.texi: Likewise.
37849         * doc/posix-functions/iswspace_l.texi: Likewise.
37850         * doc/posix-functions/iswupper_l.texi: Likewise.
37851         * doc/posix-functions/iswxdigit_l.texi: Likewise.
37852         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
37853         * doc/posix-functions/open_wmemstream.texi: Likewise.
37854         * doc/posix-functions/swscanf.texi: Likewise.
37855         * doc/posix-functions/towctrans_l.texi: Likewise.
37856         * doc/posix-functions/towlower.texi: Likewise.
37857         * doc/posix-functions/towlower_l.texi: Likewise.
37858         * doc/posix-functions/towupper.texi: Likewise.
37859         * doc/posix-functions/towupper_l.texi: Likewise.
37860         * doc/posix-functions/vfwprintf.texi: Likewise.
37861         * doc/posix-functions/vfwscanf.texi: Likewise.
37862         * doc/posix-functions/vswscanf.texi: Likewise.
37863         * doc/posix-functions/vwprintf.texi: Likewise.
37864         * doc/posix-functions/vwscanf.texi: Likewise.
37865         * doc/posix-functions/wcpcpy.texi: Likewise.
37866         * doc/posix-functions/wcpncpy.texi: Likewise.
37867         * doc/posix-functions/wcscasecmp.texi: Likewise.
37868         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
37869         * doc/posix-functions/wcscoll_l.texi: Likewise.
37870         * doc/posix-functions/wcsdup.texi: Likewise.
37871         * doc/posix-functions/wcsncasecmp.texi: Likewise.
37872         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
37873         * doc/posix-functions/wcsnlen.texi: Likewise.
37874         * doc/posix-functions/wcsnrtombs.texi: Likewise.
37875         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
37876         * doc/posix-functions/wctrans_l.texi: Likewise.
37877         * doc/posix-functions/wctype_l.texi: Likewise.
37878         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
37879         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
37880         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
37881         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
37882         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
37883         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
37884         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
37885         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
37886         * doc/glibc-functions/wcschrnul.texi: Likewise.
37887         * doc/glibc-functions/wcsftime_l.texi: Likewise.
37888         * doc/glibc-functions/wcstod_l.texi: Likewise.
37889         * doc/glibc-functions/wcstof_l.texi: Likewise.
37890         * doc/glibc-functions/wcstol_l.texi: Likewise.
37891         * doc/glibc-functions/wcstold_l.texi: Likewise.
37892         * doc/glibc-functions/wcstoll_l.texi: Likewise.
37893         * doc/glibc-functions/wcstoq.texi: Likewise.
37894         * doc/glibc-functions/wcstoul_l.texi: Likewise.
37895         * doc/glibc-functions/wcstoull_l.texi: Likewise.
37896         * doc/glibc-functions/wcstouq.texi: Likewise.
37897         * doc/glibc-functions/wmempcpy.texi: Likewise.
37898
37899 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
37900             Eric Blake  <ebb9@byu.net>
37901             Paolo Bonzini  <bonzini@gnu.org>
37902             Bruno Haible  <bruno@clisp.org>
37903
37904         Make c-stack work on Haiku.
37905         * lib/c-stack.c (SA_ONSTACK): Define fallback.
37906         (c_stack_action): Use SA_ONSTACK flag.
37907
37908 2008-12-22  Bruno Haible  <bruno@clisp.org>
37909
37910         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
37911
37912 2008-12-22  Bruno Haible  <bruno@clisp.org>
37913
37914         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
37915         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
37916         being overridden.
37917         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
37918         New macros.
37919         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
37920         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
37921         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
37922         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
37923
37924 2008-12-22  Bruno Haible  <bruno@clisp.org>
37925
37926         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
37927         from test code.
37928
37929 2008-12-22  Eric Blake  <ebb9@byu.net>
37930
37931         Avoid gcc warnings on cygwin.
37932         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
37933         Avoid unused variable.
37934         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
37935         Likewise.
37936
37937 2008-12-22  Bruno Haible  <bruno@clisp.org>
37938
37939         Remove HAVE_MBRTOWC conditionals.
37940         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
37941         (mbscasecmp): Assume mbrtowc function.
37942         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
37943         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
37944         * lib/mbschr.c: Include mbuiter.h unconditionally.
37945         (mbschr): Assume mbrtowc function.
37946         * lib/mbscspn.c: Include mbuiter.h unconditionally.
37947         (mbscspn): Assume mbrtowc function.
37948         * lib/mbslen.c: Include mbuiter.h unconditionally.
37949         (mbslen): Assume mbrtowc function.
37950         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
37951         (mbsncasecmp): Assume mbrtowc function.
37952         * lib/mbsnlen.c: Include mbiter.h unconditionally.
37953         (mbsnlen): Assume mbrtowc function.
37954         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
37955         (mbspbrk): Assume mbrtowc function.
37956         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
37957         (mbspcasecmp): Assume mbrtowc function.
37958         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
37959         (mbsrchr): Assume mbrtowc function.
37960         * lib/mbssep.c: Include mbuiter.h unconditionally.
37961         (mbssep): Assume mbrtowc function.
37962         * lib/mbsspn.c: Include mbuiter.h unconditionally.
37963         (mbsspn): Assume mbrtowc function.
37964         * lib/mbsstr.c: Include mbuiter.h unconditionally.
37965         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
37966         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
37967         (mbstok_r): Assume mbrtowc function.
37968         * lib/propername.c: Include mbuiter.h unconditionally.
37969         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
37970         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
37971         (trim2): Assume mbrtowc function.
37972         * lib/mbswidth.c (mbsinit): Remove fallback definition.
37973         (mbsnwidth): Assume mbrtowc function.
37974         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
37975         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
37976         fallback definitions.
37977         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
37978
37979 2008-12-22  Bruno Haible  <bruno@clisp.org>
37980
37981         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
37982
37983 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
37984
37985         * modules/regex: Request emulations for the mb*/wc* functions we need.
37986         * m4/regex.m4: Don't look for those functions here.
37987         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
37988
37989 2008-12-22  Bruno Haible  <bruno@clisp.org>
37990
37991         * modules/fnmatch (Depends-on): Remove duplicated dependency.
37992
37993 2008-12-21  Bruno Haible  <bruno@clisp.org>
37994
37995         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
37996         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
37997         (Include): Remove conditionalization.
37998         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
37999         (Include): Remove conditionalization.
38000         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
38001         (Include): Remove conditionalization.
38002         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
38003         * m4/mbfile.m4 (gl_MBFILE): Likewise.
38004         * NEWS: Mention the change.
38005         Reported by Alan Hourihane <alanh@fairlite.co.uk>
38006         via Sergey Poznyakoff <gray@gnu.org.ua>.
38007
38008 2008-12-21  Bruno Haible  <bruno@clisp.org>
38009
38010         * MODULES.html.sh (Extended multibyte and wide character utilities
38011         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
38012         wcrtomb, wcsrtombs.
38013         (Support for systems lacking POSIX:2008): Add accept, bind, close,
38014         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
38015         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
38016         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
38017
38018 2008-12-21  Bruno Haible  <bruno@clisp.org>
38019
38020         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
38021
38022 2008-12-21  Bruno Haible  <bruno@clisp.org>
38023
38024         * modules/wcsnrtombs-tests: New file.
38025         * tests/test-wcsnrtombs1.sh: New file.
38026         * tests/test-wcsnrtombs2.sh: New file.
38027         * tests/test-wcsnrtombs3.sh: New file.
38028         * tests/test-wcsnrtombs4.sh: New file.
38029         * tests/test-wcsnrtombs.c: New file.
38030
38031         New module 'wcsnrtombs'.
38032         * lib/wchar.in.h (wcsnrtombs): New declaration.
38033         * lib/wcsnrtombs.c: New file.
38034         * lib/wcsrtombs-state.c: New file.
38035         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
38036         (internal_state): Remove variable.
38037         * m4/wcsnrtombs.m4: New file.
38038         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
38039         compilation units.
38040         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
38041         HAVE_WCSNRTOMBS.
38042         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
38043         HAVE_WCSNRTOMBS.
38044         * modules/wcsnrtombs: New file.
38045         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
38046         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
38047
38048 2008-12-21  Bruno Haible  <bruno@clisp.org>
38049
38050         * modules/wcsrtombs-tests: New file.
38051         * tests/test-wcsrtombs1.sh: New file.
38052         * tests/test-wcsrtombs2.sh: New file.
38053         * tests/test-wcsrtombs3.sh: New file.
38054         * tests/test-wcsrtombs4.sh: New file.
38055         * tests/test-wcsrtombs.c: New file.
38056
38057         New module 'wcsrtombs'.
38058         * lib/wchar.in.h (wcsrtombs): New declaration.
38059         * lib/wcsrtombs.c: New file.
38060         * m4/wcsrtombs.m4: New file.
38061         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
38062         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
38063         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
38064         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
38065         * modules/wcsrtombs: New file.
38066         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
38067         bugs.
38068
38069 2008-12-21  Bruno Haible  <bruno@clisp.org>
38070
38071         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
38072         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
38073         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
38074         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
38075         if not correct.
38076         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
38077         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
38078         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
38079         m4/locale-zh.m4, m4/codeset.m4.
38080         * doc/posix-functions/wcrtomb.texi: Document the bug.
38081
38082 2008-12-21  Bruno Haible  <bruno@clisp.org>
38083
38084         Work around a btowc() bug on IRIX 6.5.
38085         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
38086         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
38087         REPLACE_WTOBC if not.
38088         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
38089         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
38090         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
38091
38092 2008-12-21  Bruno Haible  <bruno@clisp.org>
38093
38094         * modules/wcrtomb-tests: New file.
38095         * tests/test-wcrtomb.sh: New file.
38096         * tests/test-wcrtomb.c: New file.
38097
38098         New module 'wcrtomb'.
38099         * lib/wchar.in.h (wcrtomb): New declaration.
38100         * lib/wcrtomb.c: New file.
38101         * m4/wcrtomb.m4: New file.
38102         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
38103         HAVE_WCRTOMB.
38104         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
38105         HAVE_WCRTOMB.
38106         * modules/wcrtomb: New file.
38107         * doc/posix-functions/wcrtomb.texi: Mention the new module.
38108
38109 2008-12-21  Bruno Haible  <bruno@clisp.org>
38110
38111         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
38112         * modules/mbsrtowcs (Files): Likewise.
38113         * modules/wctob (Files): Likewise.
38114         * modules/c-strcase-tests (Files): Likewise.
38115         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
38116         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
38117         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
38118         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
38119         * modules/vasnprintf-posix-tests (Files): Likewise.
38120
38121 2008-12-21  William Pursell  <bill.pursell@gmail.com>
38122
38123         gitlog-to-changelog: pass all command-line arguments to git-log
38124         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
38125         it is sometimes convenient to filter the commits in various ways.
38126         gitlog-to-changelog only allows --since to specify a start date,
38127         but git-log itself supports many other filtering mechanisms.
38128         At the moment, I want to filter by branch name.  Rather than
38129         adding a --branch option to gitlog-to-changelog, it seems more
38130         flexible to simply pass all options directly to git-log and let
38131         git do the work.  Notice that this effectively makes --since a
38132         redundant option for gitlog-to-changelog, but removing it would
38133         require current usage to change since calls would then require
38134         an additional '--'.
38135
38136 2008-12-21  Bruno Haible  <bruno@clisp.org>
38137
38138         * modules/mbsnrtowcs-tests: New file.
38139         * tests/test-mbsnrtowcs1.sh: New file.
38140         * tests/test-mbsnrtowcs2.sh: New file.
38141         * tests/test-mbsnrtowcs3.sh: New file.
38142         * tests/test-mbsnrtowcs4.sh: New file.
38143         * tests/test-mbsnrtowcs.c: New file.
38144
38145         New module 'mbsnrtowcs'.
38146         * lib/wchar.in.h (mbsnrtowcs): New declaration.
38147         * lib/mbsnrtowcs.c: New file.
38148         * lib/mbsrtowcs-state.c: New file.
38149         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
38150         (internal_state): Remove variable.
38151         * m4/mbsnrtowcs.m4: New file.
38152         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
38153         compilation units.
38154         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
38155         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
38156         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
38157         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
38158         * modules/mbsnrtowcs: New file.
38159         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
38160         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
38161         portability problem.
38162
38163 2008-12-21  Bruno Haible  <bruno@clisp.org>
38164
38165         Work around mbsrtowcs bug.
38166         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
38167         (gl_FUNC_MBSRTOWCS): Invoke it.
38168         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
38169         m4/locale-zh.m4.
38170         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
38171
38172 2008-12-21  Bruno Haible  <bruno@clisp.org>
38173
38174         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
38175
38176 2008-12-21  Bruno Haible  <bruno@clisp.org>
38177
38178         Update doc for AIX.
38179         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
38180         16-bit wchar_t type.
38181         * doc/posix-functions/btowc.texi: Likewise.
38182         * doc/posix-functions/fgetwc.texi: Likewise.
38183         * doc/posix-functions/fgetws.texi: Likewise.
38184         * doc/posix-functions/fputwc.texi: Likewise.
38185         * doc/posix-functions/fputws.texi: Likewise.
38186         * doc/posix-functions/fwide.texi: Likewise.
38187         * doc/posix-functions/fwprintf.texi: Likewise.
38188         * doc/posix-functions/fwscanf.texi: Likewise.
38189         * doc/posix-functions/getwchar.texi: Likewise.
38190         * doc/posix-functions/getwc.texi: Likewise.
38191         * doc/posix-functions/iswalnum.texi: Likewise.
38192         * doc/posix-functions/iswalpha.texi: Likewise.
38193         * doc/posix-functions/iswblank.texi: Likewise.
38194         * doc/posix-functions/iswcntrl.texi: Likewise.
38195         * doc/posix-functions/iswctype.texi: Likewise.
38196         * doc/posix-functions/iswdigit.texi: Likewise.
38197         * doc/posix-functions/iswgraph.texi: Likewise.
38198         * doc/posix-functions/iswlower.texi: Likewise.
38199         * doc/posix-functions/iswprint.texi: Likewise.
38200         * doc/posix-functions/iswpunct.texi: Likewise.
38201         * doc/posix-functions/iswspace.texi: Likewise.
38202         * doc/posix-functions/iswupper.texi: Likewise.
38203         * doc/posix-functions/iswxdigit.texi: Likewise.
38204         * doc/posix-functions/mbrtowc.texi: Likewise.
38205         * doc/posix-functions/mbsrtowcs.texi: Likewise.
38206         * doc/posix-functions/mbstowcs.texi: Likewise.
38207         * doc/posix-functions/mbtowc.texi: Likewise.
38208         * doc/posix-functions/putwchar.texi: Likewise.
38209         * doc/posix-functions/putwc.texi: Likewise.
38210         * doc/posix-functions/swprintf.texi: Likewise.
38211         * doc/posix-functions/tolower.texi: Likewise.
38212         * doc/posix-functions/toupper.texi: Likewise.
38213         * doc/posix-functions/towctrans.texi: Likewise.
38214         * doc/posix-functions/ungetwc.texi: Likewise.
38215         * doc/posix-functions/vswprintf.texi: Likewise.
38216         * doc/posix-functions/wcrtomb.texi: Likewise.
38217         * doc/posix-functions/wcscat.texi: Likewise.
38218         * doc/posix-functions/wcschr.texi: Likewise.
38219         * doc/posix-functions/wcscmp.texi: Likewise.
38220         * doc/posix-functions/wcscoll.texi: Likewise.
38221         * doc/posix-functions/wcscpy.texi: Likewise.
38222         * doc/posix-functions/wcscspn.texi: Likewise.
38223         * doc/posix-functions/wcsftime.texi: Likewise.
38224         * doc/posix-functions/wcslen.texi: Likewise.
38225         * doc/posix-functions/wcsncat.texi: Likewise.
38226         * doc/posix-functions/wcsncmp.texi: Likewise.
38227         * doc/posix-functions/wcsncpy.texi: Likewise.
38228         * doc/posix-functions/wcspbrk.texi: Likewise.
38229         * doc/posix-functions/wcsrchr.texi: Likewise.
38230         * doc/posix-functions/wcsrtombs.texi: Likewise.
38231         * doc/posix-functions/wcsspn.texi: Likewise.
38232         * doc/posix-functions/wcsstr.texi: Likewise.
38233         * doc/posix-functions/wcstod.texi: Likewise.
38234         * doc/posix-functions/wcstof.texi: Likewise.
38235         * doc/posix-functions/wcstoimax.texi: Likewise.
38236         * doc/posix-functions/wcstok.texi: Likewise.
38237         * doc/posix-functions/wcstold.texi: Likewise.
38238         * doc/posix-functions/wcstoll.texi: Likewise.
38239         * doc/posix-functions/wcstol.texi: Likewise.
38240         * doc/posix-functions/wcstombs.texi: Likewise.
38241         * doc/posix-functions/wcstoull.texi: Likewise.
38242         * doc/posix-functions/wcstoul.texi: Likewise.
38243         * doc/posix-functions/wcstoumax.texi: Likewise.
38244         * doc/posix-functions/wcswidth.texi: Likewise.
38245         * doc/posix-functions/wcsxfrm.texi: Likewise.
38246         * doc/posix-functions/wctob.texi: Likewise.
38247         * doc/posix-functions/wctomb.texi: Likewise.
38248         * doc/posix-functions/wctrans.texi: Likewise.
38249         * doc/posix-functions/wctype.texi: Likewise.
38250         * doc/posix-functions/wcwidth.texi: Likewise.
38251         * doc/posix-functions/wmemchr.texi: Likewise.
38252         * doc/posix-functions/wmemcmp.texi: Likewise.
38253         * doc/posix-functions/wmemcpy.texi: Likewise.
38254         * doc/posix-functions/wmemmove.texi: Likewise.
38255         * doc/posix-functions/wmemset.texi: Likewise.
38256         * doc/posix-functions/wprintf.texi: Likewise.
38257         * doc/posix-functions/wscanf.texi: Likewise.
38258
38259 2008-12-21  Bruno Haible  <bruno@clisp.org>
38260
38261         Update doc for HP-UX 11.11.
38262         * doc/posix-functions/btowc.texi: Clarify that the function is missing
38263         in HP-UX version 11.00, not in all versions of HP-UX 11.
38264         * doc/posix-functions/fwide.texi: Likewise.
38265         * doc/posix-functions/fwprintf.texi: Likewise.
38266         * doc/posix-functions/fwscanf.texi: Likewise.
38267         * doc/posix-functions/inet_ntop.texi: Likewise.
38268         * doc/posix-functions/inet_pton.texi: Likewise.
38269         * doc/posix-functions/mbrlen.texi: Likewise.
38270         * doc/posix-functions/mbrtowc.texi: Likewise.
38271         * doc/posix-functions/mbsinit.texi: Likewise.
38272         * doc/posix-functions/mbsrtowcs.texi: Likewise.
38273         * doc/posix-functions/swprintf.texi: Likewise.
38274         * doc/posix-functions/swscanf.texi: Likewise.
38275         * doc/posix-functions/towctrans.texi: Likewise.
38276         * doc/posix-functions/vfwprintf.texi: Likewise.
38277         * doc/posix-functions/vswprintf.texi: Likewise.
38278         * doc/posix-functions/vwprintf.texi: Likewise.
38279         * doc/posix-functions/wcrtomb.texi: Likewise.
38280         * doc/posix-functions/wcsrtombs.texi: Likewise.
38281         * doc/posix-functions/wcsstr.texi: Likewise.
38282         * doc/posix-functions/wctob.texi: Likewise.
38283         * doc/posix-functions/wctrans.texi: Likewise.
38284         * doc/posix-functions/wmemchr.texi: Likewise.
38285         * doc/posix-functions/wmemcmp.texi: Likewise.
38286         * doc/posix-functions/wmemcpy.texi: Likewise.
38287         * doc/posix-functions/wmemmove.texi: Likewise.
38288         * doc/posix-functions/wmemset.texi: Likewise.
38289         * doc/posix-functions/wprintf.texi: Likewise.
38290         * doc/posix-functions/wscanf.texi: Likewise.
38291
38292 2008-12-21  Bruno Haible  <bruno@clisp.org>
38293
38294         Work around a portability problem.
38295         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
38296         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
38297
38298 2008-12-20  Bruno Haible  <bruno@clisp.org>
38299
38300         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
38301         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
38302         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
38303         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
38304         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
38305
38306         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
38307         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
38308         set.
38309         (GNULIB_defined_mbstate_t): New macro.
38310         (mbsinit): Redefine if REPLACE_MBSINIT is set.
38311         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
38312         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
38313         reuses the system's mbrtowc function but works around the bugs.
38314         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
38315         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
38316         macros.
38317         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
38318         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
38319         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
38320         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
38321         REPLACE_MBSINIT if mbsinit needs to be overridden.
38322         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
38323         REPLACE_MBSINIT, REPLACE_MBRTOWC.
38324         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
38325         REPLACE_MBSINIT, REPLACE_MBRTOWC.
38326         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
38327         m4/locale-zh.m4.
38328         (Depends): Add mbsinit.
38329         * modules/mbsinit (Depends): Add mbrtowc.
38330         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
38331
38332 2008-12-20  Bruno Haible  <bruno@clisp.org>
38333
38334         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
38335         so that there are no conversion errors on AIX.
38336         * tests/test-mbsrtowcs.c (main): LIkewise.
38337
38338 2008-12-20  Bruno Haible  <bruno@clisp.org>
38339
38340         Work around wctob bug on Solaris <= 9.
38341         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
38342         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
38343         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
38344         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
38345         * modules/wctob (Files): Add m4/locale-fr.m4.
38346         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
38347
38348 2008-12-20  Bruno Haible  <bruno@clisp.org>
38349
38350         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
38351         /dev/null.
38352         * tests/test-select-in.sh: Likewise.
38353         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
38354
38355 2008-12-20  Bruno Haible  <bruno@clisp.org>
38356
38357         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
38358         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
38359         Cygwin 1.5.x.
38360
38361 2008-12-20  Bruno Haible  <bruno@clisp.org>
38362
38363         Ensure mbstate_t is defined on HP-UX 11.11.
38364         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
38365         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
38366         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
38367         AC_USE_SYSTEM_EXTENSIONS.
38368         * modules/fnmatch (Depends-on): Add extensions.
38369         * modules/mbrlen (Depends-on): Likewise.
38370         * modules/mbrtowc (Depends-on): Likewise.
38371         * modules/mbsinit (Depends-on): Likewise.
38372         * modules/mbsrtowcs (Depends-on): Likewise.
38373         * modules/mbswidth (Depends-on): Likewise.
38374         * modules/quotearg (Depends-on): Likewise.
38375         * modules/strftime (Depends-on): Likewise.
38376
38377 2008-12-20  Bruno Haible  <bruno@clisp.org>
38378
38379         Ensure wctob is declared on IRIX 6.5.
38380         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
38381         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
38382         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
38383         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
38384         of HAVE_WCTOB.
38385         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
38386         HAVE_WCTOB.
38387         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
38388
38389 2008-12-19  Bruno Haible  <bruno@clisp.org>
38390
38391         * modules/mbsrtowcs-tests: New file.
38392         * tests/test-mbsrtowcs1.sh: New file.
38393         * tests/test-mbsrtowcs2.sh: New file.
38394         * tests/test-mbsrtowcs3.sh: New file.
38395         * tests/test-mbsrtowcs4.sh: New file.
38396         * tests/test-mbsrtowcs.c: New file.
38397
38398         New module 'mbsrtowcs'.
38399         * lib/wchar.in.h (mbsrtowcs): New declaration.
38400         * lib/mbsrtowcs.c: New file.
38401         * m4/mbsrtowcs.m4: New file.
38402         * modules/mbsrtowcs: New file.
38403         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
38404         HAVE_MBSRTOWCS.
38405         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
38406         HAVE_MBSRTOWCS.
38407         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
38408
38409 2008-12-19  Bruno Haible  <bruno@clisp.org>
38410
38411         New module 'mbrlen'.
38412         * lib/wchar.in.h (mbrlen): New declaration.
38413         * lib/mbrlen.c: New file.
38414         * m4/mbrlen.m4: New file.
38415         * modules/mbrlen: New file.
38416         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
38417         HAVE_MBRLEN.
38418         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
38419         HAVE_MBRLEN.
38420         * doc/posix-functions/mbrlen.texi: Document the new module.
38421
38422 2008-12-19  Bruno Haible  <bruno@clisp.org>
38423
38424         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
38425         * modules/mbrtowc (Depends-on): Add verify.
38426         Suggested by Paul Eggert.
38427
38428 2008-12-18  Bruno Haible  <bruno@clisp.org>
38429
38430         * modules/mbsinit-tests: New file.
38431         * tests/test-mbsinit.sh: New file.
38432         * tests/test-mbsinit.c: New file.
38433
38434 2008-12-18  Bruno Haible  <bruno@clisp.org>
38435
38436         * modules/mbrtowc-tests: New file.
38437         * tests/test-mbrtowc1.sh: New file.
38438         * tests/test-mbrtowc2.sh: New file.
38439         * tests/test-mbrtowc3.sh: New file.
38440         * tests/test-mbrtowc4.sh: New file.
38441         * tests/test-mbrtowc.c: New file.
38442
38443         New module 'mbrtowc'.
38444         * lib/wchar.in.h (mbstate_t): Override when the system does not have
38445         mbsinit and mbrtowc.
38446         (mbrtowc): New declaration.
38447         * lib/mbrtowc.c: New file.
38448         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
38449         * modules/mbrtowc: New file.
38450         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
38451         HAVE_MBRTOWC.
38452         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
38453         HAVE_MBRTOWC.
38454         * doc/posix-functions/mbrtowc.texi: Document the new module.
38455
38456 2008-12-18  Bruno Haible  <bruno@clisp.org>
38457
38458         New module 'wctob'.
38459         * lib/wchar.in.h (wctob): New declaration.
38460         * lib/wctob.c: New file.
38461         * m4/wctob.m4: New file.
38462         * modules/wctob: New file.
38463         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
38464         HAVE_WCTOB.
38465         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
38466         * doc/posix-functions/wctob.texi: Document the new module.
38467
38468 2008-12-18  Bruno Haible  <bruno@clisp.org>
38469
38470         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
38471         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
38472
38473 2008-12-18  Simon Josefsson  <simon@josefsson.org>
38474
38475         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
38476         G. Christensen" <tgc@jupiterrise.com>.
38477
38478         * lib/flock.c: Need to include errno.h.  Reported by "Tom
38479         G. Christensen" <tgc@jupiterrise.com>.
38480
38481         * lib/flock.c: Need to include string.h.  Reported by "Tom
38482         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
38483         <ebb9@byu.net>.
38484
38485 2008-12-18  Bruno Haible  <bruno@clisp.org>
38486
38487         * m4/locale-ja.m4: New file, from GNU gettext.
38488
38489 2008-12-17  Bruno Haible  <bruno@clisp.org>
38490
38491         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
38492         Suggested by Eric Blake.
38493
38494 2008-12-17  Bruno Haible  <bruno@clisp.org>
38495
38496         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
38497
38498 2008-12-17  Bruno Haible  <bruno@clisp.org>
38499
38500         * lib/mbsinit.c: Include verify.h. Verify an assumption.
38501         * modules/mbsinit (Depends-on): Add verify.
38502         Suggested by Paul Eggert.
38503
38504 2008-12-17  Bruno Haible  <bruno@clisp.org>
38505
38506         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
38507         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
38508         gl_FUNC_MBRTOWC.
38509         * m4/mbiter.m4 (gl_MBITER): LIkewise.
38510         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
38511         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
38512         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
38513         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
38514         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
38515         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
38516         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
38517         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
38518         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
38519         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
38520         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
38521         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
38522         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
38523         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
38524         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
38525         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
38526         * modules/trim (configure.ac): Likewise.
38527
38528 2008-12-17  Bruno Haible  <bruno@clisp.org>
38529
38530         * modules/btowc-tests: New file.
38531         * tests/test-btowc1.sh: New file.
38532         * tests/test-btowc2.sh: New file.
38533         * tests/test-btowc.c: New file.
38534
38535         New module 'btowc'.
38536         * lib/wchar.in.h (btowc): New declaration.
38537         * lib/btowc.c: New file.
38538         * m4/btowc.m4: New file.
38539         * modules/btowc: New file.
38540         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
38541         HAVE_BTOWC.
38542         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
38543         * doc/posix-functions/btowc.texi: Document the new module.
38544
38545 2008-12-17  Bruno Haible  <bruno@clisp.org>
38546
38547         New module 'mbsinit'.
38548         * lib/wchar.in.h (mbsinit): New declaration.
38549         * lib/mbsinit.c: New file.
38550         * m4/mbsinit.m4: New file.
38551         * modules/mbsinit: New file.
38552         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
38553         HAVE_MBSINIT.
38554         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
38555         HAVE_MBSINIT.
38556         * doc/posix-functions/mbsinit.texi: Document the new module.
38557
38558 2008-12-16  Bruno Haible  <bruno@clisp.org>
38559
38560         * lib/unistd.in.h: Add comment.
38561         * tests/test-environ.c: Don't include <stdlib.h>.
38562
38563 2008-12-16  Bruno Haible  <bruno@clisp.org>
38564
38565         * lib/parse-duration.h (parse_duration): Document return value
38566         convention.
38567         * lib/parse-duration.c: Include specification header first. Add
38568         comments.
38569         (_): Remove macro.
38570         (parse_year_month_day, parse_hour_minute_second): Move side effects
38571         outside of strchr call.
38572         (parse_non_iso8601): Move side effects outside of isspace call.
38573         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
38574         call.
38575
38576 2008-12-16  Bruno Haible  <bruno@clisp.org>
38577
38578         * tests/test-parse-duration.sh: Produce no output when the test
38579         succeeds.
38580
38581 2008-12-16  Bruno Haible  <bruno@clisp.org>
38582
38583         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
38584         expressions.
38585
38586 2008-12-15  Bruno Haible  <bruno@clisp.org>
38587
38588         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
38589         * doc/glibc-functions/flistxattr.texi: Likewise.
38590         * doc/glibc-functions/fopencookie.texi: Likewise.
38591         * doc/glibc-functions/fremovexattr.texi: Likewise.
38592         * doc/glibc-functions/fsetxattr.texi: Likewise.
38593         * doc/glibc-functions/getxattr.texi: Likewise.
38594         * doc/glibc-functions/lgetxattr.texi: Likewise.
38595         * doc/glibc-functions/listxattr.texi: Likewise.
38596         * doc/glibc-functions/llistxattr.texi: Likewise.
38597         * doc/glibc-functions/lremovexattr.texi: Likewise.
38598         * doc/glibc-functions/lsetxattr.texi: Likewise.
38599         * doc/glibc-functions/removexattr.texi: Likewise.
38600         * doc/glibc-functions/setxattr.texi: Likewise.
38601         * doc/posix-functions/open_memstream.texi: Likewise.
38602
38603 2008-12-15  Eric Blake  <ebb9@byu.net>
38604
38605         Update doc for cygwin 1.7.
38606         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
38607         functions.
38608         * doc/posix-functions/fchmodat.texi: Likewise.
38609         * doc/posix-functions/fchownat.texi: Likewise.
38610         * doc/posix-functions/fdopendir.texi: Likewise.
38611         * doc/posix-functions/fmemopen.texi: Likewise.
38612         * doc/posix-functions/freeaddrinfo.texi: Likewise.
38613         * doc/posix-functions/fstatat.texi: Likewise.
38614         * doc/posix-functions/futimens.texi: Likewise.
38615         * doc/posix-functions/gai_strerror.texi: Likewise.
38616         * doc/posix-functions/getaddrinfo.texi: Likewise.
38617         * doc/posix-functions/getnameinfo.texi: Likewise.
38618         * doc/posix-functions/if_freenameindex.texi: Likewise.
38619         * doc/posix-functions/if_indextoname.texi: Likewise.
38620         * doc/posix-functions/if_nameindex.texi: Likewise.
38621         * doc/posix-functions/if_nametoindex.texi: Likewise.
38622         * doc/posix-functions/insque.texi: Likewise.
38623         * doc/posix-functions/linkat.texi: Likewise.
38624         * doc/posix-functions/llrint.texi: Likewise.
38625         * doc/posix-functions/llrintf.texi: Likewise.
38626         * doc/posix-functions/llrintl.texi: Likewise.
38627         * doc/posix-functions/lockf.texi: Likewise.
38628         * doc/posix-functions/lrintl.texi: Likewise.
38629         * doc/posix-functions/mkdirat.texi: Likewise.
38630         * doc/posix-functions/mkfifoat.texi: Likewise.
38631         * doc/posix-functions/mknodat.texi: Likewise.
38632         * doc/posix-functions/mq_close.texi: Likewise.
38633         * doc/posix-functions/mq_getattr.texi: Likewise.
38634         * doc/posix-functions/mq_notify.texi: Likewise.
38635         * doc/posix-functions/mq_open.texi: Likewise.
38636         * doc/posix-functions/mq_receive.texi: Likewise.
38637         * doc/posix-functions/mq_send.texi: Likewise.
38638         * doc/posix-functions/mq_setattr.texi: Likewise.
38639         * doc/posix-functions/mq_timedreceive.texi: Likewise.
38640         * doc/posix-functions/mq_timedsend.texi: Likewise.
38641         * doc/posix-functions/mq_unlink.texi: Likewise.
38642         * doc/posix-functions/open_memstream.texi: Likewise.
38643         * doc/posix-functions/openat.texi: Likewise.
38644         * doc/posix-functions/posix_fadvise.texi: Likewise.
38645         * doc/posix-functions/posix_fallocate.texi: Likewise.
38646         * doc/posix-functions/posix_madvise.texi: Likewise.
38647         * doc/posix-functions/posix_memalign.texi: Likewise.
38648         * doc/posix-functions/posix_openpt.texi: Likewise.
38649         * doc/posix-functions/readlinkat.texi: Likewise.
38650         * doc/posix-functions/remque.texi: Likewise.
38651         * doc/posix-functions/renameat.texi: Likewise.
38652         * doc/posix-functions/rintl.texi: Likewise.
38653         * doc/posix-functions/sem_unlink.texi: Likewise.
38654         * doc/posix-functions/shm_open.texi: Likewise.
38655         * doc/posix-functions/shm_unlink.texi: Likewise.
38656         * doc/posix-functions/signgam.texi: Likewise.
38657         * doc/posix-functions/sigset.texi: Likewise.
38658         * doc/posix-functions/stpcpy.texi: Likewise.
38659         * doc/posix-functions/stpncpy.texi: Likewise.
38660         * doc/posix-functions/strerror.texi: Likewise.
38661         * doc/posix-functions/strtod.texi: Likewise.
38662         * doc/posix-functions/symlinkat.texi: Likewise.
38663         * doc/posix-functions/unlinkat.texi: Likewise.
38664         * doc/posix-functions/utimensat.texi: Likewise.
38665         * doc/glibc-functions/bindresvport.texi: Likewise.
38666         * doc/glibc-functions/dn_expand.texi: Likewise.
38667         * doc/glibc-functions/exp10.texi: Likewise.
38668         * doc/glibc-functions/exp10f.texi: Likewise.
38669         * doc/glibc-functions/fgetxattr.texi: Likewise.
38670         * doc/glibc-functions/flistxattr.texi: Likewise.
38671         * doc/glibc-functions/fopencookie.texi: Likewise.
38672         * doc/glibc-functions/freeifaddrs.texi: Likewise.
38673         * doc/glibc-functions/fremovexattr.texi: Likewise.
38674         * doc/glibc-functions/fsetxattr.texi: Likewise.
38675         * doc/glibc-functions/getifaddrs.texi: Likewise.
38676         * doc/glibc-functions/getxattr.texi: Likewise.
38677         * doc/glibc-functions/lgetxattr.texi: Likewise.
38678         * doc/glibc-functions/listxattr.texi: Likewise.
38679         * doc/glibc-functions/llistxattr.texi: Likewise.
38680         * doc/glibc-functions/lremovexattr.texi: Likewise.
38681         * doc/glibc-functions/lsetxattr.texi: Likewise.
38682         * doc/glibc-functions/pow10.texi: Likewise.
38683         * doc/glibc-functions/pow10f.texi: Likewise.
38684         * doc/glibc-functions/rcmd_af.texi: Likewise.
38685         * doc/glibc-functions/removexattr.texi: Likewise.
38686         * doc/glibc-functions/res_init.texi: Likewise.
38687         * doc/glibc-functions/res_mkquery.texi: Likewise.
38688         * doc/glibc-functions/res_query.texi: Likewise.
38689         * doc/glibc-functions/res_querydomain.texi: Likewise.
38690         * doc/glibc-functions/res_send.texi: Likewise.
38691         * doc/glibc-functions/rresvport_af.texi: Likewise.
38692         * doc/glibc-functions/setxattr.texi: Likewise.
38693         * doc/glibc-functions/strcasestr.texi: Likewise.
38694
38695 2008-12-15  Bruno Haible  <bruno@clisp.org>
38696
38697         Fix compilation error on OSF/1 4.0.
38698         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
38699         <sys/time.h>, simply delegate to the system header.
38700         Reported by Daniel Richard G. <oss@teragram.com>.
38701
38702 2008-12-15  Bruno Haible  <bruno@clisp.org>
38703
38704         * doc/posix-functions/openat.texi: Mention the 'openat' module.
38705         * doc/posix-functions/fchmodat.texi: Likewise.
38706         * doc/posix-functions/fchownat.texi: Likewise.
38707         * doc/posix-functions/fdopendir.texi: Likewise.
38708         * doc/posix-functions/fstatat.texi: Likewise.
38709         * doc/posix-functions/mkdirat.texi: Likewise.
38710         * doc/posix-functions/unlinkat.texi: Likewise.
38711
38712 2008-12-14  Bruno Haible  <bruno@clisp.org>
38713
38714         Update doc for POSIX:2008.
38715         * doc/posix-functions/faccessat.texi: New file.
38716         * doc/posix-functions/fchmodat.texi: New file.
38717         * doc/posix-functions/fchownat.texi: New file.
38718         * doc/posix-functions/fdopendir.texi: New file.
38719         * doc/posix-functions/fstatat.texi: New file.
38720         * doc/posix-functions/futimens.texi: New file.
38721         * doc/posix-functions/linkat.texi: New file.
38722         * doc/posix-functions/mkdirat.texi: New file.
38723         * doc/posix-functions/mkfifoat.texi: New file.
38724         * doc/posix-functions/mknodat.texi: New file.
38725         * doc/posix-functions/open_wmemstream.texi: New file.
38726         * doc/posix-functions/openat.texi: New file.
38727         * doc/posix-functions/psiginfo.texi: New file.
38728         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
38729         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
38730         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
38731         * doc/posix-functions/readlinkat.texi: New file.
38732         * doc/posix-functions/renameat.texi: New file.
38733         * doc/posix-functions/strerror_l.texi: New file.
38734         * doc/posix-functions/symlinkat.texi: New file.
38735         * doc/posix-functions/unlinkat.texi: New file.
38736         * doc/posix-functions/utimensat.texi: New file.
38737         * doc/gnulib.texi (Function Substitutes): Add these subsections.
38738
38739 2008-12-14  Bruno Haible  <bruno@clisp.org>
38740
38741         Update doc for POSIX:2008.
38742         * doc/posix-functions/alphasort.texi: Renamed from
38743         doc/glibc-functions/alphasort.texi.
38744         * doc/posix-functions/dirfd.texi: Renamed from
38745         doc/glibc-functions/dirfd.texi.
38746         * doc/posix-functions/dprintf.texi: Renamed from
38747         doc/glibc-functions/dprintf.texi.
38748         * doc/posix-functions/duplocale.texi: Renamed from
38749         doc/glibc-functions/duplocale.texi.
38750         * doc/posix-functions/fexecve.texi: Renamed from
38751         doc/glibc-functions/fexecve.texi.
38752         * doc/posix-functions/fmemopen.texi: Renamed from
38753         doc/glibc-functions/fmemopen.texi.
38754         * doc/posix-functions/freelocale.texi: Renamed from
38755         doc/glibc-functions/freelocale.texi.
38756         * doc/posix-functions/getdate_err.texi: Renamed from
38757         doc/glibc-functions/getdate_err.texi.
38758         * doc/posix-functions/isalnum_l.texi: Renamed from
38759         doc/glibc-functions/isalnum_l.texi.
38760         * doc/posix-functions/isalpha_l.texi: Renamed from
38761         doc/glibc-functions/isalpha_l.texi.
38762         * doc/posix-functions/isblank_l.texi: Renamed from
38763         doc/glibc-functions/isblank_l.texi.
38764         * doc/posix-functions/iscntrl_l.texi: Renamed from
38765         doc/glibc-functions/iscntrl_l.texi.
38766         * doc/posix-functions/isdigit_l.texi: Renamed from
38767         doc/glibc-functions/isdigit_l.texi.
38768         * doc/posix-functions/isgraph_l.texi: Renamed from
38769         doc/glibc-functions/isgraph_l.texi.
38770         * doc/posix-functions/islower_l.texi: Renamed from
38771         doc/glibc-functions/islower_l.texi.
38772         * doc/posix-functions/isprint_l.texi: Renamed from
38773         doc/glibc-functions/isprint_l.texi.
38774         * doc/posix-functions/ispunct_l.texi: Renamed from
38775         doc/glibc-functions/ispunct_l.texi.
38776         * doc/posix-functions/isspace_l.texi: Renamed from
38777         doc/glibc-functions/isspace_l.texi.
38778         * doc/posix-functions/isupper_l.texi: Renamed from
38779         doc/glibc-functions/isupper_l.texi.
38780         * doc/posix-functions/iswalnum_l.texi: Renamed from
38781         doc/glibc-functions/iswalnum_l.texi.
38782         * doc/posix-functions/iswalpha_l.texi: Renamed from
38783         doc/glibc-functions/iswalpha_l.texi.
38784         * doc/posix-functions/iswblank_l.texi: Renamed from
38785         doc/glibc-functions/iswblank_l.texi.
38786         * doc/posix-functions/iswcntrl_l.texi: Renamed from
38787         doc/glibc-functions/iswcntrl_l.texi.
38788         * doc/posix-functions/iswctype_l.texi: Renamed from
38789         doc/glibc-functions/iswctype_l.texi.
38790         * doc/posix-functions/iswdigit_l.texi: Renamed from
38791         doc/glibc-functions/iswdigit_l.texi.
38792         * doc/posix-functions/iswgraph_l.texi: Renamed from
38793         doc/glibc-functions/iswgraph_l.texi.
38794         * doc/posix-functions/iswlower_l.texi: Renamed from
38795         doc/glibc-functions/iswlower_l.texi.
38796         * doc/posix-functions/iswprint_l.texi: Renamed from
38797         doc/glibc-functions/iswprint_l.texi.
38798         * doc/posix-functions/iswpunct_l.texi: Renamed from
38799         doc/glibc-functions/iswpunct_l.texi.
38800         * doc/posix-functions/iswspace_l.texi: Renamed from
38801         doc/glibc-functions/iswspace_l.texi.
38802         * doc/posix-functions/iswupper_l.texi: Renamed from
38803         doc/glibc-functions/iswupper_l.texi.
38804         * doc/posix-functions/iswxdigit_l.texi: Renamed from
38805         doc/glibc-functions/iswxdigit_l.texi.
38806         * doc/posix-functions/isxdigit_l.texi: Renamed from
38807         doc/glibc-functions/isxdigit_l.texi.
38808         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
38809         doc/glibc-functions/mbsnrtowcs.texi.
38810         * doc/posix-functions/mkdtemp.texi: Renamed from
38811         doc/glibc-functions/mkdtemp.texi.
38812         * doc/posix-functions/newlocale.texi: Renamed from
38813         doc/glibc-functions/newlocale.texi.
38814         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
38815         doc/glibc-functions/nl_langinfo_l.texi.
38816         * doc/posix-functions/open_memstream.texi: Renamed from
38817         doc/glibc-functions/open_memstream.texi.
38818         * doc/posix-functions/opterr.texi: Renamed from
38819         doc/glibc-functions/opterr.texi.
38820         * doc/posix-functions/optind.texi: Renamed from
38821         doc/glibc-functions/optind.texi.
38822         * doc/posix-functions/optopt.texi: Renamed from
38823         doc/glibc-functions/optopt.texi.
38824         * doc/posix-functions/psignal.texi: Renamed from
38825         doc/glibc-functions/psignal.texi.
38826         * doc/posix-functions/scandir.texi: Renamed from
38827         doc/glibc-functions/scandir.texi.
38828         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
38829         doc/glibc-functions/sched_get_priority_min.texi.
38830         * doc/posix-functions/signgam.texi: Renamed from
38831         doc/glibc-functions/signgam.texi.
38832         * doc/posix-functions/stpcpy.texi: Renamed from
38833         doc/glibc-functions/stpcpy.texi.
38834         * doc/posix-functions/stpncpy.texi: Renamed from
38835         doc/glibc-functions/stpncpy.texi.
38836         * doc/posix-functions/strcasecmp_l.texi: Renamed from
38837         doc/glibc-functions/strcasecmp_l.texi.
38838         * doc/posix-functions/strcoll_l.texi: Renamed from
38839         doc/glibc-functions/strcoll_l.texi.
38840         * doc/posix-functions/strfmon_l.texi: Renamed from
38841         doc/glibc-functions/strfmon_l.texi.
38842         * doc/posix-functions/strftime_l.texi: Renamed from
38843         doc/glibc-functions/strftime_l.texi.
38844         * doc/posix-functions/strncasecmp_l.texi: Renamed from
38845         doc/glibc-functions/strncasecmp_l.texi.
38846         * doc/posix-functions/strndup.texi: Renamed from
38847         doc/glibc-functions/strndup.texi.
38848         * doc/posix-functions/strnlen.texi: Renamed from
38849         doc/glibc-functions/strnlen.texi.
38850         * doc/posix-functions/strsignal.texi: Renamed from
38851         doc/glibc-functions/strsignal.texi.
38852         * doc/posix-functions/strxfrm_l.texi: Renamed from
38853         doc/glibc-functions/strxfrm_l.texi.
38854         * doc/posix-functions/timer_gettime.texi: Renamed from
38855         doc/glibc-functions/timer_gettime.texi.
38856         * doc/posix-functions/tolower_l.texi: Renamed from
38857         doc/glibc-functions/tolower_l.texi.
38858         * doc/posix-functions/toupper_l.texi: Renamed from
38859         doc/glibc-functions/toupper_l.texi.
38860         * doc/posix-functions/towctrans_l.texi: Renamed from
38861         doc/glibc-functions/towctrans_l.texi.
38862         * doc/posix-functions/towlower_l.texi: Renamed from
38863         doc/glibc-functions/towlower_l.texi.
38864         * doc/posix-functions/towupper_l.texi: Renamed from
38865         doc/glibc-functions/towupper_l.texi.
38866         * doc/posix-functions/uselocale.texi: Renamed from
38867         doc/glibc-functions/uselocale.texi.
38868         * doc/posix-functions/vdprintf.texi: Renamed from
38869         doc/glibc-functions/vdprintf.texi.
38870         * doc/posix-functions/wcpcpy.texi:
38871         Renamed from doc/glibc-functions/wcpcpy.texi.
38872         * doc/posix-functions/wcpncpy.texi: Renamed from
38873         doc/glibc-functions/wcpncpy.texi.
38874         * doc/posix-functions/wcscasecmp.texi: Renamed from
38875         doc/glibc-functions/wcscasecmp.texi.
38876         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
38877         doc/glibc-functions/wcscasecmp_l.texi.
38878         * doc/posix-functions/wcscoll_l.texi: Renamed from
38879         doc/glibc-functions/wcscoll_l.texi.
38880         * doc/posix-functions/wcsdup.texi: Renamed from
38881         doc/glibc-functions/wcsdup.texi.
38882         * doc/posix-functions/wcsncasecmp.texi: Renamed from
38883         doc/glibc-functions/wcsncasecmp.texi.
38884         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
38885         doc/glibc-functions/wcsncasecmp_l.texi.
38886         * doc/posix-functions/wcsnlen.texi: Renamed from
38887         doc/glibc-functions/wcsnlen.texi.
38888         * doc/posix-functions/wcsnrtombs.texi: Renamed from
38889         doc/glibc-functions/wcsnrtombs.texi.
38890         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
38891         doc/glibc-functions/wcsxfrm_l.texi.
38892         * doc/posix-functions/wctrans_l.texi: Renamed from
38893         doc/glibc-functions/wctrans_l.texi.
38894         * doc/posix-functions/wctype_l.texi: Renamed from
38895         doc/glibc-functions/wctype_l.texi.
38896         * doc/gnulib.texi (Function Substitutes): Add these subsections.
38897         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
38898         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
38899         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
38900         these subsections.
38901         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
38902         Remove sections.
38903
38904 2008-12-14  Bruno Haible  <bruno@clisp.org>
38905
38906         Update doc for POSIX:2008.
38907         * doc/posix-functions/*.texi: Update URL of POSIX specification.
38908
38909 2008-12-14  Bruno Haible  <bruno@clisp.org>
38910
38911         Update doc for POSIX:2008.
38912         * doc/pastposix-functions/bcmp.texi: Renamed from
38913         doc/posix-functions/bcmp.texi.
38914         * doc/pastposix-functions/bcopy.texi: Renamed from
38915         doc/posix-functions/bcopy.texi.
38916         * doc/pastposix-functions/bsd_signal.texi: Renamed from
38917         doc/posix-functions/bsd_signal.texi.
38918         * doc/pastposix-functions/bzero.texi: Renamed from
38919         doc/posix-functions/bzero.texi.
38920         * doc/pastposix-functions/ecvt.texi: Renamed from
38921         doc/posix-functions/ecvt.texi.
38922         * doc/pastposix-functions/fcvt.texi: Renamed from
38923         doc/posix-functions/fcvt.texi.
38924         * doc/pastposix-functions/ftime.texi: Renamed from
38925         doc/posix-functions/ftime.texi.
38926         * doc/pastposix-functions/gcvt.texi: Renamed from
38927         doc/posix-functions/gcvt.texi.
38928         * doc/pastposix-functions/getcontext.texi: Renamed from
38929         doc/posix-functions/getcontext.texi.
38930         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
38931         doc/posix-functions/gethostbyaddr.texi.
38932         * doc/pastposix-functions/gethostbyname.texi: Renamed from
38933         doc/posix-functions/gethostbyname.texi.
38934         * doc/pastposix-functions/getwd.texi: Renamed from
38935         doc/posix-functions/getwd.texi.
38936         * doc/pastposix-functions/h_errno.texi: Renamed from
38937         doc/posix-functions/h_errno.texi.
38938         * doc/pastposix-functions/index.texi: Renamed from
38939         doc/posix-functions/index.texi.
38940         * doc/pastposix-functions/makecontext.texi: Renamed from
38941         doc/posix-functions/makecontext.texi.
38942         * doc/pastposix-functions/mktemp.texi: Renamed from
38943         doc/posix-functions/mktemp.texi.
38944         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
38945         doc/posix-functions/pthread_attr_getstackaddr.texi.
38946         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
38947         doc/posix-functions/pthread_attr_setstackaddr.texi.
38948         * doc/pastposix-functions/rindex.texi: Renamed from
38949         doc/posix-functions/rindex.texi.
38950         * doc/pastposix-functions/scalb.texi: Renamed from
38951         doc/posix-functions/scalb.texi.
38952         * doc/pastposix-functions/setcontext.texi: Renamed from
38953         doc/posix-functions/setcontext.texi.
38954         * doc/pastposix-functions/swapcontext.texi: Renamed from
38955         doc/posix-functions/swapcontext.texi.
38956         * doc/pastposix-functions/ualarm.texi: Renamed from
38957         doc/posix-functions/ualarm.texi.
38958         * doc/pastposix-functions/usleep.texi: Renamed from
38959         doc/posix-functions/usleep.texi.
38960         * doc/pastposix-functions/vfork.texi: Renamed from
38961         doc/posix-functions/vfork.texi.
38962         * doc/pastposix-functions/wcswcs.texi: Renamed from
38963         doc/posix-functions/wcswcs.texi.
38964         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
38965         (Function Substitutes): Update.
38966
38967 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38968
38969         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
38970         m4/strerror.m4.
38971
38972 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38973             Bruno Haible  <bruno@clisp.org>
38974
38975         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
38976
38977 2008-12-13  Bruno Haible  <bruno@clisp.org>
38978
38979         * modules/strtoull (Depends-on): Remove unistd.
38980
38981 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38982
38983         * modules/strtoull (Depends-on): Add stdlib.
38984
38985 2008-12-11  Simon Josefsson  <simon@josefsson.org>
38986
38987         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
38988
38989 2008-12-10  Jim Meyering  <meyering@redhat.com>
38990
38991         gl_ASSERT: don't say assertions are disabled when they're not
38992         * m4/assert.m4 (gl_ASSERT): Do not make configure report
38993         "checking whether to enable assertions... no", when they are in
38994         fact enabled.  This is solely a bug in the output of configure.
38995         In spite of saying "no", NDEBUG was not defined in that case.
38996         Also, as noted by Eric Blake, leave assertions enabled upon
38997         --enable-assert=INVALID.
38998
38999 2008-12-10  Bruno Haible  <bruno@clisp.org>
39000
39001         Change MODULES.html to refer to POSIX:2008 where possible.
39002         * MODULES.html.sh (POSIX2008_URL): New variable.
39003         (posix_headers): Remove sys/timeb, ucontext.
39004         (posix2001_headers): New variable.
39005         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
39006         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
39007         index, makecontext, mktemp, pthread_attr_getstackaddr,
39008         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
39009         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
39010         (posix2001_functions): New variable.
39011         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
39012         otherwise.
39013
39014 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39015
39016         add missing include to parse-duration.c
39017         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
39018         * modules/parse-duration (Depends-on): Add xalloc.
39019
39020         fix sed script reading maint.mk
39021         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
39022         (syntax-check-rules): Use it.
39023
39024 2008-12-09  Bruno Haible  <bruno@clisp.org>
39025
39026         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
39027         MacOS X 10.4/PowerPC.
39028         Reported by Simon Josefsson.
39029
39030 2008-12-08  Jim Meyering  <meyering@redhat.com>
39031
39032         work around mingw's lack of some S_IF definitions
39033         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
39034         Reported by Simon Josefsson.
39035
39036 2008-12-08  Bruno Haible  <bruno@clisp.org>
39037
39038         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
39039         applied to variables. Needed on MacOS X 10.4/PowerPC.
39040         Reported by Simon Josefsson.
39041
39042 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
39043         and Eric Blake  <ebb9@byu.net>
39044
39045         assert: honor --enable-assert
39046         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
39047         order to honor --enable-assert, rather than treating it as a
39048         synonym for --disable-assert.
39049
39050 2008-12-08  Jim Meyering  <meyering@redhat.com>
39051
39052         * lib/posixtm.c: Remove now-useless declaration of mktime.
39053
39054         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
39055
39056 2008-12-07  Bruno Haible  <bruno@clisp.org>
39057
39058         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
39059         test_once): Mark functions as static.
39060         * tests/test-tls.c (test_tls): Likewise.
39061
39062 2008-12-07  Bruno Haible  <bruno@clisp.org>
39063
39064         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
39065         iconv_register_autodetect.
39066
39067 2008-12-07  Jim Meyering  <meyering@redhat.com>
39068
39069         posixtm.c: avoid a warning
39070         * lib/posixtm.c (posixtime): Don't initialize tm0.
39071         It's no longer needed to placate gcc4's -Wuninitialized,
39072         and the attempt to placate would elicit a new warning.
39073
39074         unicodeio.c: mark unused parameters
39075         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
39076         (fallback_failure_callback): Likewise.
39077
39078 2008-12-07  Bruno Haible  <bruno@clisp.org>
39079
39080         * gnulib-tool (func_create_testdir): When building the tests
39081         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
39082         Reported by Simon Josefsson.
39083
39084 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39085
39086         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
39087
39088 2008-12-06  Bruno Haible  <bruno@clisp.org>
39089
39090         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
39091         Suggested by Eric Blake.
39092
39093 2008-12-06  Bruno Haible  <bruno@clisp.org>
39094
39095         Fix a c-stack test failure on MacOS X.
39096         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
39097         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
39098         handler for SIGBUS as well.
39099         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
39100         install a signal handler for SIGBUS as well.
39101         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
39102
39103 2008-12-06  Bruno Haible  <bruno@clisp.org>
39104
39105         Advocacy documentation.
39106         * doc/gnulib-intro.texi (Benefits): New section.
39107         * doc/gnulib.texi: Update.
39108
39109 2008-12-06  Bruno Haible  <bruno@clisp.org>
39110
39111         Document the 'manywarnings' module.
39112         * doc/manywarnings.texi: New file.
39113         * doc/gnulib.texi: Include it.
39114
39115 2008-12-05  Eric Blake  <ebb9@byu.net>
39116
39117         tests: silence some gcc warnings
39118         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
39119         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
39120         type mismatches.
39121
39122 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39123             Bruno Haible  <bruno@clisp.org>
39124
39125         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
39126
39127 2008-11-29  Jim Meyering  <meyering@redhat.com>
39128
39129         unicodeio.c: mark unused parameters
39130         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
39131         (fallback_failure_callback): Likewise.
39132
39133         fts: fix a thinko
39134         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
39135         (set_stat_type): Return S_IF*-valued "type" directly.
39136         Prompted by James Youngman's spotting a related bug.
39137         Confirmed by further testing through find.
39138
39139         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
39140         * lib/fts.c (D_TYPE): Define.
39141         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
39142         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
39143         (s_ifmt_shift_bits): New function.
39144         (set_stat_type): New function.
39145         (fts_build): When not calling fts_stat, call set_stat_type
39146         to propagate dirent.d_type info to fts_read caller.
39147         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
39148         fts_statp->st_mode type information may be valid.
39149
39150 2008-11-28  Simon Josefsson  <simon@josefsson.org>
39151
39152         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
39153         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
39154         <sds@gnu.org>.
39155
39156 2008-11-20  Bruno Haible  <bruno@clisp.org>
39157
39158         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
39159         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
39160         INCLUDE_NEXT.
39161         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
39162         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
39163         * modules/math (Makefile.am): Substitute
39164         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
39165         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
39166
39167 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
39168             Bruno Haible  <bruno@clisp.org>
39169
39170         * lib/stdint.in.h: Define all type macros so that their expansion is
39171         a single typedef'ed token. Fixes a compilation failure in Boost which
39172         does "using ::int8_t;".
39173
39174 2008-11-18  Simon Josefsson  <simon@josefsson.org>
39175
39176         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
39177         gl_MANYWARN_ALL_GCC.
39178         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
39179         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
39180         * modules/manywarnings: New file.
39181         * MODULES.html.sh: Mention manywarnings module.
39182
39183 2008-11-18  Bruno Haible  <bruno@clisp.org>
39184
39185         * doc/gnulib-tool.texi (Unit tests): New section.
39186
39187 2008-11-18  Simon Josefsson  <simon@josefsson.org>
39188
39189         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
39190         paths like 'lib/po/foo.po'.
39191
39192 2008-11-17  Simon Josefsson  <simon@josefsson.org>
39193
39194         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
39195         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
39196
39197 2008-11-17  Simon Josefsson  <simon@josefsson.org>
39198
39199         * m4/warnings.m4: Use CPPFLAGS to really check whether the
39200         parameter works.
39201
39202 2008-11-17  Simon Josefsson  <simon@josefsson.org>
39203
39204         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
39205
39206 2008-11-17  Bruce Korb  <bkorb@gnu.org>
39207
39208         * modules/parse-duration-tests: New file.
39209         * tests/test-parse-duration.sh: New file.
39210         * tests/test-parse-duration.c: New file.
39211
39212         New module 'parse-duration'.
39213         * lib/parse-duration.h: New file.
39214         * lib/parse-duration.c: New file.
39215         * modules/parse-duration: New file.
39216
39217 2008-11-17  Bruno Haible  <bruno@clisp.org>
39218
39219         * tests/test-select-out.sh: Comment out the first pipe test.
39220         Reported by Simon Josefsson.
39221
39222 2008-11-17  Bruno Haible  <bruno@clisp.org>
39223
39224         * modules/getaddrinfo (Depends-on): Add servent, hostent.
39225         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
39226         gl_HOSTENT.
39227
39228 2008-11-17  Bruno Haible  <bruno@clisp.org>
39229
39230         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
39231         -lnetwork and -lnet. Needed for Haiku and BeOS.
39232
39233 2008-11-16  Bruno Haible  <bruno@clisp.org>
39234
39235         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
39236
39237 2008-11-16  Bruno Haible  <bruno@clisp.org>
39238
39239         Avoid test failure on Haiku.
39240         * tests/test-fsync.c: Include <errno.h>.
39241         (main): Don't require that fsync (0) fails.
39242
39243 2008-11-15  Bruno Haible  <bruno@clisp.org>
39244
39245         New module 'hostent'.
39246         * modules/hostent: New file.
39247         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
39248
39249 2008-11-15  Bruno Haible  <bruno@clisp.org>
39250
39251         New module 'servent'.
39252         * modules/servent: New file.
39253         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
39254
39255 2008-11-15  Bruno Haible  <bruno@clisp.org>
39256
39257         Avoid generating same test program with two different rules.
39258         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
39259         test-frexp to test-frexp-nolibm.
39260         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
39261         test-frexpl to test-frexpl-nolibm.
39262
39263 2008-11-15  Bruno Haible  <bruno@clisp.org>
39264
39265         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
39266         $(FREXPL_LIBM).
39267
39268 2008-11-15  Bruno Haible  <bruno@clisp.org>
39269
39270         * lib/netdb.in.h: Activate the definitions also when the system's
39271         <netdb.h> has 'struct addrinfo'.
39272         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
39273         EAI_OVERFLOW or AI_NUMERICSERV.
39274         * doc/posix-headers/netdb.texi: Document the problem.
39275
39276 2008-11-15  Bruno Haible  <bruno@clisp.org>
39277
39278         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
39279
39280         Make the 'sched' module work on platforms where <sched.h> exists but
39281         is incomplete (such as Haiku).
39282         * lib/sched.in.h; Include the system's <sched.h> if it exists.
39283         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
39284         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
39285         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
39286         HAVE_STRUCT_SCHED_PARAM.
39287         * modules/sched (Depends-on): Add include_next.
39288         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
39289         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
39290         * doc/posix-headers/sched.texi: Document the issue.
39291
39292 2008-11-13  Jim Meyering  <meyering@redhat.com>
39293
39294         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
39295         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
39296         test would fail due to the difference in the Report bugs to ...
39297         line.  The expected address is empty, "<>", while the actual
39298         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
39299
39300 2008-11-12  Bruno Haible  <bruno@clisp.org>
39301
39302         lstat: don't compile lstat.c on systems lacking lstat
39303         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
39304         which don't have lstat; this is handled by lib/sys_stat.in.h already.
39305         Reported by Daniel P. Berrange via Jim Meyering.
39306
39307 2008-11-12  Jim Meyering  <meyering@redhat.com>
39308
39309         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
39310
39311 2008-11-12  Simon Josefsson  <simon@josefsson.org>
39312
39313         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
39314         instead.
39315
39316 2008-11-12  Bruno Haible  <bruno@clisp.org>
39317
39318         * lib/unicodeio.c: Include unistr.h.
39319         (utf8_wctomb): Remove function.
39320         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
39321
39322 2008-11-12  Simon Josefsson  <simon@josefsson.org>
39323
39324         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
39325         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
39326         <bruno@clisp.org>.
39327         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
39328
39329 2008-11-12  Simon Josefsson  <simon@josefsson.org>
39330
39331         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
39332         * doc/gnulib.texi: Add section for warnings.
39333
39334 2008-11-11  Bruno Haible  <bruno@clisp.org>
39335
39336         * lib/sockets.h: Add a comment.
39337
39338 2008-11-11  Karl Berry  <karl@gnu.org>
39339
39340         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
39341
39342 2008-11-11  Eric Blake  <ebb9@byu.net>
39343
39344         fdl.texi: avoid git symlinks
39345         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
39346
39347 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
39348
39349         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
39350
39351 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
39352
39353         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
39354         (gl_WARN_ADD): Substitute $2 if literal.
39355
39356 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
39357
39358         * m4/warning.m4: Remove.
39359
39360 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
39361
39362         * m4/warnings.m4: Almost complete rewrite. :-)
39363
39364 2008-11-10  Simon Josefsson  <simon@josefsson.org>
39365
39366         * modules/warnings: New module.
39367         * m4/warnings.m4: New file.
39368         * MODULES.html.sh: Mention warnings module.
39369         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
39370         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
39371
39372 2008-11-10  Eric Blake  <ebb9@byu.net>
39373
39374         fdl.texi: make a symlink to the latest version
39375         * doc/standards.texi: Revert today's earlier change.
39376         * doc/fdl-1.2.texi: Rename from old fdl.texi...
39377         * doc/fdl.texi: ...and replace this with a symlink to the newer
39378         fdl-1.3.texi.
39379
39380 2008-11-10  Bruno Haible  <bruno@clisp.org>
39381
39382         * tests/test-select-fd.c (main): Accept the result file name as fourth
39383         argument.
39384         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
39385         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
39386
39387 2008-11-10  Bruno Haible  <bruno@clisp.org>
39388
39389         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
39390         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
39391         as autoconf-substituted macros.
39392         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
39393         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
39394         gl_NETDB_H_DEFAULTS. Set these variables.
39395         * modules/netdb (Makefile.am): Substitute these variables.
39396
39397 2008-11-10  Eric Blake  <ebb9@byu.net>
39398
39399         standards.texi: include correct file for FDL 1.3
39400         * doc/standards.texi (GNU Free Documentation License): Change
39401         include file to pull in FDL 1.3, not 1.2.
39402
39403         fdl.texi: revert accidental change to license
39404         * doc/fdl.texi: This is FDL 1.2, not 1.3.
39405
39406 2008-11-10  Bruno Haible  <bruno@clisp.org>
39407
39408         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
39409         cross-compiling guesses also when the native compile gives no result.
39410
39411 2008-11-10  Bruno Haible  <bruno@clisp.org>
39412
39413         * lib/spawni.c (__spawni): Force variable into the stack.
39414
39415 2008-11-10  Bruno Haible  <bruno@clisp.org>
39416
39417         Add support for Haiku.
39418         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
39419         glibc and BeOS, but also on Haiku.
39420         * lib/fpurge.c (fpurge): Likewise.
39421         * lib/freadable.c (freadable): Likewise.
39422         * lib/freadahead.c (freadahead): Likewise.
39423         * lib/freading.c (freading): Likewise.
39424         * lib/freadptr.c (freadptr): Likewise.
39425         * lib/freadseek.c (freadptrinc): Likewise.
39426         * lib/fseeko.c (rpl_fseeko): Likewise.
39427         * lib/fseterr.c (fseterr): Likewise.
39428         * lib/fwritable.c (fwritable): Likewise.
39429         * lib/fwriting.c (fwriting): Likewise.
39430         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
39431
39432 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
39433
39434         * lib/config.charset: Treat Haiku like BeOS.
39435
39436 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
39437
39438         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
39439         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
39440
39441 2008-11-08  Bruno Haible  <bruno@clisp.org>
39442
39443         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
39444         AC_CACHE_CHECK.
39445
39446 2008-11-08  Bruno Haible  <bruno@clisp.org>
39447
39448         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
39449
39450 2008-11-08  Bruno Haible  <bruno@clisp.org>
39451
39452         * tests/test-select-fd.c: New file.
39453         * tests/test-select-in.sh: New file.
39454         * tests/test-select-out.sh: New file.
39455         * tests/test-select-stdin.c: New file.
39456         * modules/select-tests (Files): Add the new files.
39457         (Depends-on): Add gettimeofday.
39458         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
39459         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
39460         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
39461
39462 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
39463             Bruno Haible  <bruno@clisp.org>
39464
39465         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
39466
39467 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
39468
39469         * build-aux/pmccabe2html: Added support for C++ source files.
39470
39471 2008-11-05  Ben Pfaff  <blp@gnu.org>
39472
39473         Fix lib/close.c build on Windows.
39474         * modules/close (Files): Add lib/w32sock.h.
39475
39476 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
39477
39478         Accept Bison's NEWS format.
39479         * build-aux/announce-gen (print_news_deltas): Tweak
39480         $re_prefix.
39481
39482 2008-11-04  Bruno Haible  <bruno@clisp.org>
39483
39484         * modules/random_r (Maintainer): Add glibc.
39485
39486 2008-11-04  Simon Josefsson  <simon@josefsson.org>
39487
39488         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
39489         by karl@freefriends.org (Karl Berry).
39490         * doc/alloca.texi: Likewise.
39491         * doc/c-ctype.texi: Likewise.
39492         * doc/c-strcase.texi: Likewise.
39493         * doc/c-strcaseeq.texi: Likewise.
39494         * doc/c-strcasestr.texi: Likewise.
39495         * doc/c-strstr.texi: Likewise.
39496         * doc/c-strtod.texi: Likewise.
39497         * doc/c-strtold.texi: Likewise.
39498         * doc/ctime.texi: Likewise.
39499         * doc/error.texi: Likewise.
39500         * doc/fdl.texi: Likewise.
39501         * doc/gcd.texi: Likewise.
39502         * doc/getdate.texi: Likewise.
39503         * doc/gnulib-intro.texi: Likewise.
39504         * doc/gnulib-tool.texi: Likewise.
39505         * doc/gnulib.texi: Likewise.
39506         * doc/inet_ntoa.texi: Likewise.
39507         * doc/maintain.texi: Likewise.
39508         * doc/make-stds.texi: Likewise.
39509         * doc/quote.texi: Likewise.
39510         * doc/regexprops-generic.texi: Likewise.
39511         * doc/standards.texi: Likewise.
39512         * doc/verify.texi: Likewise.
39513         * doc/visibility.texi: Likewise.
39514         * doc/gnulib.texi (GNU Free Documentation License): Include
39515         fdl-1.3.texi instead of fdl.texi.
39516
39517 2008-11-04  Simon Josefsson  <simon@josefsson.org>
39518
39519         * doc/fdl-1.3.texi: New file, from
39520         <http://www.gnu.org/licenses/fdl-1.3.texi>.
39521         * modules/fdl-1.3: Add.
39522         * MODULES.html.sh: Add fdl-1.3.
39523
39524 2008-11-03  Bruno Haible  <bruno@clisp.org>
39525
39526         Make determination of absolute name of header file work with AIX xlc.
39527         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
39528         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
39529         preprocessing.
39530         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
39531         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
39532
39533 2008-11-03  Simon Josefsson  <simon@josefsson.org>
39534
39535         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
39536         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
39537         <ludo@gnu.org>.
39538
39539 2008-11-02  Bruno Haible  <bruno@clisp.org>
39540
39541         Mark 'strpbrk' obsolete.
39542         * modules/strpbrk (Status, Notice): New sections.
39543         * modules/strtok_r (Depends-on): Add strpbrk.
39544
39545 2008-11-02  Bruno Haible  <bruno@clisp.org>
39546
39547         Mark 'strdup' obsolete.
39548         * modules/strdup (Status, Notice): New sections.
39549         * modules/findprog (Depends-on): Add strdup.
39550         * modules/getaddrinfo (Depends-on): Likewise.
39551         * modules/localename (Depends-on): Likewise.
39552         * modules/relocatable-lib (Depends-on): Likewise.
39553         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
39554         * modules/relocatable-prog (Depends-on): Likewise.
39555         * modules/trim (Depends-on): Likewise.
39556         * modules/unictype/gen-ctype (Depends-on): Likewise.
39557         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
39558
39559 2008-11-02  Bruno Haible  <bruno@clisp.org>
39560
39561         Mark 'strcspn' obsolete.
39562         * modules/strcspn (Status, Notice): New sections.
39563
39564 2008-11-02  Bruno Haible  <bruno@clisp.org>
39565
39566         Mark 'rmdir' obsolete.
39567         * modules/rmdir (Status, Notice): New sections.
39568         * modules/clean-temp (Depends-on): Add rmdir.
39569         * modules/openat (Depends-on): Likewise.
39570
39571 2008-11-02  Bruno Haible  <bruno@clisp.org>
39572
39573         Mark 'raise' obsolete.
39574         * modules/raise (Status, Notice): New sections.
39575         (Include): Specify <signal.h>.
39576         * modules/stdio (Depends-on): Add raise.
39577         * modules/write (Depends-on): Likewise.
39578
39579 2008-11-02  Bruno Haible  <bruno@clisp.org>
39580
39581         Mark 'memset' obsolete.
39582         * modules/memset (Status, Notice): New sections.
39583
39584 2008-11-02  Bruno Haible  <bruno@clisp.org>
39585
39586         Mark 'memmove' obsolete.
39587         * modules/memmove (Status, Notice): New sections.
39588         * modules/argp (Depends-on): Add memmove.
39589         * modules/argz (Depends-on): Likewise.
39590         * modules/canonicalize (Depends-on): Likewise.
39591         * modules/canonicalize-lgpl (Depends-on): Likewise.
39592         * modules/fts (Depends-on): Likewise.
39593         * modules/getcwd (Depends-on): Likewise.
39594         * modules/human (Depends-on): Likewise.
39595         * modules/regex (Depends-on): Likewise.
39596         * modules/striconveh (Depends-on): Likewise.
39597         * modules/trim (Depends-on): Likewise.
39598         * modules/unistr/u8-move (Depends-on): Likewise.
39599         * modules/unistr/u16-move (Depends-on): Likewise.
39600         * modules/unistr/u32-move (Depends-on): Likewise.
39601
39602 2008-11-02  Bruno Haible  <bruno@clisp.org>
39603
39604         Mark 'memcpy' obsolete.
39605         * modules/memcpy (Status, Notice): New sections.
39606
39607 2008-11-02  Bruno Haible  <bruno@clisp.org>
39608
39609         Mark 'memcmp' obsolete.
39610         * modules/memcmp (Status, Notice): New sections.
39611         * modules/argmatch (Depends-on): Add memchr.
39612         * modules/backupfile (Depends-on): Likewise.
39613         * modules/c-strcasestr (Depends-on): Likewise.
39614         * modules/crypto/des (Depends-on): Likewise.
39615         * modules/csharpcomp (Depends-on): Likewise.
39616         * modules/fnmatch (Depends-on): Likewise.
39617         * modules/git-merge-changelog (Depends-on): Likewise.
39618         * modules/isnand (Depends-on): Likewise.
39619         * modules/isnand-nolibm (Depends-on): Likewise.
39620         * modules/isnanf (Depends-on): Likewise.
39621         * modules/isnanf-nolibm (Depends-on): Likewise.
39622         * modules/isnanl (Depends-on): Likewise.
39623         * modules/isnanl-nolibm (Depends-on): Likewise.
39624         * modules/mbchar (Depends-on): Likewise.
39625         * modules/memcoll (Depends-on): Likewise.
39626         * modules/quotearg (Depends-on): Likewise.
39627         * modules/regex (Depends-on): Likewise.
39628         * modules/relocatable-prog (Depends-on): Likewise.
39629         * modules/same (Depends-on): Likewise.
39630         * modules/signbit (Depends-on): Likewise.
39631         * modules/strcasestr-simple (Depends-on): Likewise.
39632         * modules/unictype/gen-ctype (Depends-on): Likewise.
39633         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
39634         * modules/uniname/uniname (Depends-on): Likewise.
39635         * modules/unistr/u8-cmp (Depends-on): Likewise.
39636
39637 2008-11-02  Bruno Haible  <bruno@clisp.org>
39638
39639         Mark 'memchr' obsolete.
39640         * modules/memchr (Status, Notice): New sections.
39641         * modules/argp (Depends-on): Add memchr.
39642         * modules/base64 (Depends-on): Likewise.
39643         * modules/c-strcasestr (Depends-on): Likewise.
39644         * modules/chdir-long (Depends-on): Likewise.
39645         * modules/fnmatch (Depends-on): Likewise.
39646         * modules/getsubopt (Depends-on): Likewise.
39647         * modules/git-merge-changelog (Depends-on): Likewise.
39648         * modules/glob (Depends-on): Likewise.
39649         * modules/strcasestr-simple (Depends-on): Likewise.
39650         * modules/strnlen (Depends-on): Likewise.
39651
39652 2008-11-02  Bruno Haible  <bruno@clisp.org>
39653
39654         Mark 'atexit' obsolete.
39655         * modules/atexit (Status, Notice): New sections.
39656         * modules/chdir-long (Depends-on): Add atexit.
39657         * modules/wait-process (Depends-on): Likewise.
39658
39659 2008-11-02  Bruno Haible  <bruno@clisp.org>
39660
39661         * gnulib-tool: New option --with-obsolete.
39662         (func_usage): Document it.
39663         (func_modules_transitive_closure): Drop obsolete dependencies if
39664         incobsolete is not true.
39665         (func_import): Read and save the incobsolete variable to the cache.
39666
39667 2008-11-02  Bruno Haible  <bruno@clisp.org>
39668
39669         * modules/TEMPLATE-EXTENDED: New field 'Status'.
39670         * gnulib-tool: New option --extract-status.
39671         (func_usage): Document it.
39672         (sed_extract_prog): Recognize it.
39673         (func_get_status): New function.
39674
39675 2008-10-30  Simon Josefsson  <simon@josefsson.org>
39676
39677         * modules/sockets (License): Change from LGPL to LGPLv2+.
39678
39679 2008-10-28  Simon Josefsson  <simon@josefsson.org>
39680
39681         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
39682
39683 2008-10-28  Simon Josefsson  <simon@josefsson.org>
39684
39685         * MODULES.html.sh (Support for systems lacking POSIX:2001):
39686         Mention times and sys_times.
39687         * modules/sys_times, modules/sys_times-tests: New modules.
39688         * modules/times, modules/times-tests: Likewise
39689         * m4/sys_times_h.m4: New file.
39690         * lib/sys_times.in.h: Likewise
39691         * lib/times.c: Likewise.
39692         * tests/test-sys_times.c: Likewise.
39693         * tests/test-times.c: Likewise.
39694         * doc/posix-headers/sys_times.texi: Update.
39695         * doc/posix-functions/times.texi: Update.
39696
39697 2008-10-28  Jim Meyering  <meyering@redhat.com>
39698
39699         * modules/tempname (Depends-on): Add lstat.
39700
39701         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
39702
39703 2008-10-28  Simon Josefsson  <simon@josefsson.org>
39704
39705         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
39706         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
39707         using idiom used elsewhere in gnulib.
39708
39709 2008-10-27  Jim Meyering  <meyering@redhat.com>
39710
39711         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
39712
39713 2008-10-27  Simon Josefsson  <simon@josefsson.org>
39714
39715         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
39716         TESTS_ENVIRONMENT, for shell scripts that needs to call built
39717         programs.
39718         * tests/test-argp-2.sh: Use $EXEEXT when needed.
39719
39720 2008-10-27  Simon Josefsson  <simon@josefsson.org>
39721
39722         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
39723
39724 2008-10-27  Bruno Haible  <bruno@clisp.org>
39725
39726         * tests/test-lstat.c: Include <stdio.h>.
39727
39728 2008-10-27  Simon Josefsson  <simon@josefsson.org>
39729
39730         * modules/lstat-tests: New module.
39731         * tests/test-lstat.c: New file.
39732
39733 2008-10-26  Jim Meyering  <meyering@redhat.com>
39734
39735         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
39736
39737 2008-10-26  Simon Josefsson  <simon@josefsson.org>
39738             Bruno Haible  <bruno@clisp.org>
39739
39740         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
39741         * modules/configmake (Include): Add a note that the include must come
39742         after all system headers.
39743         * lib/javaversion.c: Include configmake.h after all other includes.
39744
39745 2008-10-26  Bruno Haible  <bruno@clisp.org>
39746
39747         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
39748         HAVE_STRUCT_RANDOM_DATA to 1.
39749         (gl_STDLIB_H): Simplify.
39750
39751 2008-10-26  Simon Josefsson  <simon@josefsson.org>
39752
39753         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
39754         substitute HAVE_STRUCT_RANDOM_DATA.
39755         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
39756         random_data.
39757         * modules/stdlib (Makefile.am): Substitute
39758         HAVE_STRUCT_RANDOM_DATA.
39759
39760 2008-10-26  Simon Josefsson  <simon@josefsson.org>
39761
39762         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
39763         * doc/gnulib-intro.texi (Copyright): Likewise.
39764
39765 2008-10-26  Simon Josefsson  <simon@josefsson.org>
39766
39767         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
39768         findings.
39769
39770 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
39771             Bruno Haible  <bruno@clisp.org>
39772
39773         * lib/unistd.in.h: Include <winsock2.h>.
39774         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
39775         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
39776         Provide dummy declarations.
39777         (gethostname): Override.
39778         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
39779         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
39780         gl_PREREQ_SYS_H_WINSOCK2.
39781         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
39782         * doc/posix-functions/gethostname.texi: More details.
39783
39784 2008-10-25  Bruno Haible  <bruno@clisp.org>
39785
39786         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
39787         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
39788         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
39789
39790         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
39791         here ...
39792         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
39793         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
39794         gl_UNISTD_H_DEFAULTS.
39795
39796 2008-10-25  Eric Blake  <ebb9@byu.net>
39797
39798         signbit: avoid spurious compiler failure
39799         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
39800         declarations inside function.
39801
39802 2008-10-24  Simon Josefsson  <simon@josefsson.org>
39803             Bruno Haible  <bruno@clisp.org>
39804
39805         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
39806         * modules/random_r (Depends-on): Add stdint.
39807
39808 2008-10-24  Bruno Haible  <bruno@clisp.org>
39809
39810         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
39811         Eggert.
39812         * modules/strerror (License): Likewise.
39813
39814 2008-10-24  Jim Meyering  <meyering@redhat.com>
39815
39816         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
39817         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
39818
39819 2008-10-24  Eric Blake  <ebb9@byu.net>
39820
39821         getgroups: fix compilation when getgroups is available
39822         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
39823         but with <config.h> override of getgroups disabled.
39824
39825 2008-10-24  Simon Josefsson  <simon@josefsson.org>
39826
39827         * doc/gnulib.texi (Header files): Add note about C++ problems.
39828         Explained by Bruno Haible <bruno@clisp.org>.
39829
39830 2008-10-23  Bruno Haible  <bruno@clisp.org>
39831
39832         Define a dummy SA_NODEFER macro on Interix.
39833         * lib/signal.in.h (SA_NODEFER): Define fallback.
39834         Reported by Aleksey Cheusov <cheusov@tut.by> via
39835         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
39836
39837 2008-10-23  Bruno Haible  <bruno@clisp.org>
39838
39839         * modules/freadahead (License): Change to LGPLv2+.
39840         Suggested by Simon Josefsson.
39841
39842 2008-10-23  Jim Meyering  <meyering@redhat.com>
39843
39844         random_r: new module
39845         * modules/random_r: New file.
39846         * m4/random_r.m4: New file.
39847         * lib/random_r.c: New file, from glibc.
39848         * modules/random_r-tests: New file.
39849         * tests/test-random_r.c: New file.
39850         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
39851          Declare.
39852         (RAND_MAX): Define.
39853         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
39854         * modules/stdlib: Substitute them, too.
39855         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
39856         * doc/glibc-functions/initstate_r.texi: Mention the new module.
39857         * doc/glibc-functions/random_r.texi: Likewise.
39858         * doc/glibc-functions/setstate_r.texi: Likewise.
39859         * doc/glibc-functions/srandom_r.texi: Likewise.
39860         * config/srclist.txt: Mention it.
39861
39862 2008-10-23  David Lutterkort  <lutter@redhat.com>
39863
39864         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
39865         link requirement
39866
39867 2008-10-23  Jim Meyering  <meyering@redhat.com>
39868
39869         selinux-h: mark parameters of stub functions as intentionally unused
39870         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
39871         * lib/se-context.in.h: Likewise.
39872
39873 2008-10-22  Simon Josefsson  <simon@josefsson.org>
39874
39875         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
39876
39877 2008-10-22  Simon Josefsson  <simon@josefsson.org>
39878
39879         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
39880
39881 2008-10-22  Eric Blake  <ebb9@byu.net>
39882
39883         glthread/thread: avoid compiler warning
39884         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
39885         Add unreachable abort to silence compiler.
39886
39887 2008-10-22  Eric Blake  <ebb9@byu.net>
39888
39889         netdb: also supply struct addrinfo for cygwin 1.5.x
39890         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
39891         older cygwin.
39892         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
39893         cygwin.
39894         * doc/posix-headers/netdb.texi (netdb.h): Document this.
39895
39896 2008-10-22  Bruno Haible  <bruno@clisp.org>
39897
39898         * users.txt: Update entry about pspp.
39899
39900 2008-10-21  Bruno Haible  <bruno@clisp.org>
39901
39902         Simplification.
39903         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
39904         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
39905
39906         Simplification.
39907         * lib/ioctl.c (ioctl): Don't undefine.
39908         * lib/socket.c (socket): Don't undefine.
39909
39910         Remove unused module indicator macros.
39911         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
39912         GNULIB_$1 as a C macro.
39913
39914         * doc/posix-functions/close.texi: Undo last change.
39915         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
39916         Windows platforms.
39917
39918 2008-10-21  Bruno Haible  <bruno@clisp.org>
39919
39920         Add gethostname() declaration to <unistd.h>.
39921         * lib/unistd.in.h (gethostname): New declaration.
39922         * lib/gethostname.c: Include <unistd.h>.
39923         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
39924         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
39925         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
39926         and HAVE_GETHOSTNAME.
39927         * modules/gethostname (Depends-on): Add unistd.
39928         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
39929         (Include): Specify <unistd.h>.
39930         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
39931         HAVE_GETHOSTNAME.
39932         * tests/test-gethostname.c: Include <unistd.h> first.
39933
39934 2008-10-21  Bruno Haible  <bruno@clisp.org>
39935
39936         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
39937         * modules/select-tests (Depends-on): Likewise.
39938         Reported by Simon Josefsson.
39939
39940 2008-10-21  Simon Josefsson  <simon@josefsson.org>
39941
39942         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
39943         * lib/accept.c: New file, based on winsock.c.
39944         * lib/bind.c: New file, based on winsock.c.
39945         * lib/connect.c: New file, based on winsock.c.
39946         * lib/getpeername.c: New file, based on winsock.c.
39947         * lib/getsockname.c: New file, based on winsock.c.
39948         * lib/getsockopt.c: New file, based on winsock.c.
39949         * lib/ioctl.c: New file, based on winsock.c.
39950         * lib/listen.c: New file, based on winsock.c.
39951         * lib/recv.c: New file, based on winsock.c.
39952         * lib/recvfrom.c: New file, based on winsock.c.
39953         * lib/send.c: New file, based on winsock.c.
39954         * lib/sendto.c: New file, based on winsock.c.
39955         * lib/setsockopt.c: New file, based on winsock.c.
39956         * lib/shutdown.c: New file, based on winsock.c.
39957         * lib/socket.c: New file, based on winsock.c.
39958         * lib/w32sock.h: New file, based on winsock.c.
39959         * lib/winsock.c: Remove file.
39960         * modules/accept: Likewise.
39961         * modules/bind: Likewise.
39962         * modules/connect: Likewise.
39963         * modules/getpeername: Likewise.
39964         * modules/getsockname: Likewise.
39965         * modules/getsockopt: Likewise.
39966         * modules/ioctl: Likewise.
39967         * modules/listen: Likewise.
39968         * modules/recv: Likewise.
39969         * modules/recvfrom: Likewise.
39970         * modules/send: Likewise.
39971         * modules/sendto: Likewise.
39972         * modules/setsockopt: Likewise.
39973         * modules/shutdown: Likewise.
39974         * modules/socket: Use socket.c instead of winsock.c.
39975         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
39976         * doc/posix-functions/accept.texi: Doc fix.
39977         * doc/posix-functions/bind.texi: Doc fix.
39978         * doc/posix-functions/close.texi: Doc fix.
39979         * doc/posix-functions/connect.texi: Doc fix.
39980         * doc/posix-functions/getpeername.texi: Doc fix.
39981         * doc/posix-functions/getsockname.texi: Doc fix.
39982         * doc/posix-functions/getsockopt.texi: Doc fix.
39983         * doc/posix-functions/ioctl.texi: Doc fix.
39984         * doc/posix-functions/listen.texi: Doc fix.
39985         * doc/posix-functions/recv.texi: Doc fix.
39986         * doc/posix-functions/recvfrom.texi: Doc fix.
39987         * doc/posix-functions/send.texi: Doc fix.
39988         * doc/posix-functions/sendto.texi: Doc fix.
39989         * doc/posix-functions/setsockopt.texi: Doc fix.
39990         * doc/posix-functions/shutdown.texi: Doc fix.
39991         * doc/posix-functions/socket.texi: Doc fix.
39992
39993 2008-10-20  Bruno Haible  <bruno@clisp.org>
39994
39995         Take into account the role of SIGABRT_COMPAT on Windows 2008.
39996         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
39997         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
39998         as an alias for SIGABRT.
39999         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
40000         (sigaction): Map it to SIGABRT.
40001         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
40002
40003 2008-10-20  Bruno Haible  <bruno@clisp.org>
40004
40005         * lib/fts.c: Don't include lstat.h.
40006         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
40007
40008         Move the lstat() declaration to <sys/stat.h>.
40009         * lib/lstat.h: Remove file.
40010         * lib/sys_stat.in.h: Add special invocation convention.
40011         (lstat): New declaration.
40012         * lib/lstat.c (orig_lstat): New function.
40013         (rpl_lstat): Use orig_lstat instead of lstat.
40014         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
40015         AC_C_INLINE. Set REPLACE_LSTAT.
40016         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
40017         and REPLACE_LSTAT.
40018         * modules/lstat (Files): Remove lib/lstat.h.
40019         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
40020         (Include): Specify <sys/stat.h> instead of lstat.h.
40021         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
40022         REPLACE_LSTAT.
40023         * NEWS: Mention the change.
40024
40025 2008-10-20  Bruno Haible  <bruno@clisp.org>
40026
40027         * modules/posix_spawn-tests: New file.
40028         * tests/test-posix_spawn3.c: New file.
40029
40030 2008-10-20  Bruno Haible  <bruno@clisp.org>
40031
40032         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
40033         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
40034         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
40035         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
40036         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
40037
40038 2008-10-20  Bruno Haible  <bruno@clisp.org>
40039
40040         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
40041         of posix_spawn on AIX 5.3.
40042
40043 2008-10-20  Bruno Haible  <bruno@clisp.org>
40044
40045         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
40046
40047 2008-10-20  Bruno Haible  <bruno@clisp.org>
40048
40049         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
40050         of AC_LANG_PROGRAM.
40051
40052 2008-10-20  Simon Josefsson  <simon@josefsson.org>
40053
40054         * lib/netdb.in.h: Don't define GNU specific constants until they
40055         are supported or needed.  Reported by Bruno Haible
40056         <bruno@clisp.org>.
40057
40058 2008-10-20  Simon Josefsson  <simon@josefsson.org>
40059
40060         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
40061
40062 2008-10-20  Simon Josefsson  <simon@josefsson.org>
40063
40064         * lib/getaddrinfo.h: Remove file.
40065         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
40066         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
40067         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
40068         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
40069         * modules/netdb: Substitute GNULIB_GETADDRINFO.
40070         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
40071         * tests/test-getaddrinfo.c: Likewise.
40072         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
40073         * NEWS: Mention change.
40074
40075 2008-10-19  Bruno Haible  <bruno@clisp.org>
40076
40077         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
40078
40079 2008-10-19  Bruno Haible  <bruno@clisp.org>
40080
40081         * lib/wait-process.c: Include simply <sys/wait.h>.
40082         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
40083         WIFSTOPPED): Remove fallback definitions.
40084         * modules/wait-process (Depends-on): Add sys_wait.
40085
40086         New module 'sys_wait'.
40087         * modules/sys_wait: New file.
40088         * lib/sys_wait.in.h: New file, partially copied from
40089         lib/wait-process.c.
40090         * m4/sys_wait_h.m4: New file.
40091         * doc/posix-headers/sys_wait.texi: Mention the new module.
40092
40093 2008-10-19  Bruno Haible  <bruno@clisp.org>
40094
40095         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
40096
40097 2008-10-19  Bruno Haible  <bruno@clisp.org>
40098
40099         Assume that waitpid() fills an 'int' status, not a 'union wait'.
40100         * lib/wait-process.c (WAIT_T): Remove type.
40101         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
40102         (wait_subprocess): Update.
40103
40104 2008-10-19  Bruno Haible  <bruno@clisp.org>
40105
40106         New module 'atoll'.
40107         * modules/atoll: New file.
40108         * lib/stdlib.in.h (atoll): New declaration.
40109         * lib/atoll.c: New file, from glibc with modifications.
40110         * m4/atoll.m4: New file.
40111         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
40112         HAVE_ATOLL.
40113         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
40114         * doc/posix-functions/atoll.texi: Mention the new module.
40115
40116 2008-10-19  Bruno Haible  <bruno@clisp.org>
40117
40118         Add strtoull() declaration to <stdlib.h>.
40119         * lib/stdlib.in.h (strtoull): New declaration.
40120         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
40121         Set HAVE_STRTOULL.
40122         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
40123         HAVE_STRTOULL.
40124         * modules/strtoull (Depends-on): Add stdlib.
40125         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
40126         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
40127         HAVE_STRTOULL.
40128
40129 2008-10-19  Bruno Haible  <bruno@clisp.org>
40130
40131         Add strtoll() declaration to <stdlib.h>.
40132         * lib/stdlib.in.h (strtoll): New declaration.
40133         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
40134         Set HAVE_STRTOLL.
40135         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
40136         HAVE_STRTOLL.
40137         * modules/strtoll (Depends-on): Add stdlib.
40138         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
40139         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
40140
40141 2008-10-19  Bruno Haible  <bruno@clisp.org>
40142
40143         * modules/bcopy (Depends-on): Add strings.
40144         (Include): Specify <strings.h>.
40145
40146 2008-10-19  Bruno Haible  <bruno@clisp.org>
40147
40148         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
40149
40150 2008-10-19  Bruno Haible  <bruno@clisp.org>
40151
40152         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
40153         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
40154         mingw.
40155
40156 2008-10-19  Bruno Haible  <bruno@clisp.org>
40157
40158         * lib/atanl.c: Don't include isnanl.h.
40159         * lib/cosl.c: Likewise.
40160         * lib/ldexpl.c: Likewise.
40161         * lib/logl.c: Likewise.
40162         * lib/sinl.c: Likewise.
40163         * lib/sqrtl.c: Likewise.
40164         * lib/tanl.c: Likewise.
40165
40166         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
40167         * lib/isnanf.h: Remove file.
40168         * lib/isnand.h: Remove file.
40169         * lib/isnanl.h: Remove file.
40170         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
40171         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
40172         macros.
40173         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
40174         HAVE_ISNANF, don't define it as a C macro.
40175         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
40176         HAVE_ISNAND, don't define it as a C macro.
40177         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
40178         HAVE_ISNANL, don't define it as a C macro.
40179         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
40180         HAVE_ISNAN[FDL].
40181         * modules/isnanf (Files): Remove lib/isnanf.h.
40182         (Depends-on): Add math.
40183         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
40184         (Include): Specify <math.h> instead of isnanf.h.
40185         * modules/isnand (Files): Remove lib/isnand.h.
40186         (Depends-on): Add math.
40187         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
40188         (Include): Specify <math.h> instead of isnand.h.
40189         * modules/isnanl (Files): Remove lib/isnanl.h.
40190         (Depends-on): Add math.
40191         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
40192         (Include): Specify <math.h> instead of isnanl.h.
40193         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
40194         HAVE_ISNAN[FDL].
40195         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
40196         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
40197         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
40198         * NEWS: Mention the change.
40199
40200 2008-10-18  Bruno Haible  <bruno@clisp.org>
40201
40202         Add getusershell(), setusershell(), endusershell() declarations to
40203         <unistd.h>.
40204         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
40205         declarations.
40206         * lib/getusershell.c: Include unistd.h.
40207         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
40208         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
40209         HAVE_GETUSERSHELL.
40210         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
40211         and HAVE_GETUSERSHELL.
40212         * modules/getusershell (Depends-on): Add unistd, extensions.
40213         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
40214         (Include): Specify <unistd.h>.
40215         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
40216         HAVE_GETUSERSHELL.
40217
40218 2008-10-18  Bruno Haible  <bruno@clisp.org>
40219
40220         Add a getloadavg() declaration to <stdlib.h>.
40221         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
40222         getloadavg declaration.
40223         (getloadavg): New declaration.
40224         * lib/getloadavg.c: Include <stdlib.h> first.
40225         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
40226         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
40227         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
40228         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
40229         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
40230         * modules/getloadavg (Depends-on): Add stdlib, extensions.
40231         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
40232         (Include): Specify <stdlib.h>.
40233         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
40234         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
40235
40236 2008-10-18  Bruno Haible  <bruno@clisp.org>
40237
40238         * lib/dirchownmod.c: Don't include lchmod.h.
40239
40240         Move the lchmod() declaration to <sys/stat.h>.
40241         * lib/lchmod.h: Remove file.
40242         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
40243         (lchmod): New declaration, moved here from lib/lchown.h.
40244         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
40245         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
40246         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
40247         and HAVE_LCHMOD.
40248         * modules/lchmod (Files): Remove lib/lchmod.h.
40249         (Depends-on): Add sys_stat, extensions.
40250         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
40251         (Include): Specify <sys/stat.h> instead of lchmod.h.
40252         * modules/sys_stat (Depends-on): Add link-warning.
40253         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
40254         definition of GL_LINK_WARNING.
40255         * NEWS: Mention the change.
40256
40257 2008-10-18  Bruno Haible  <bruno@clisp.org>
40258
40259         * lib/fchdir.c: Don't include dirfd.h.
40260         * lib/fts.c: Likewise.
40261         * lib/getcwd.c: Likewise.
40262         * lib/glob.c: Likewise.
40263
40264         Move the dirfd() declaration to <dirent.h>.
40265         * lib/dirfd.h: Remove file.
40266         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
40267         (dirfd): New declaration.
40268         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
40269         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
40270         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
40271         HAVE_DECL_DIRFD.
40272         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
40273         HAVE_DECL_DIRFD.
40274         * modules/dirfd (Files): Remove lib/dirfd.h.
40275         (Depends-on): Add dirent, extensions.
40276         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
40277         (Include): Specify <dirent.h> instead of dirfd.h.
40278         * modules/dirent (Depends-on): Add link-warning.
40279         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
40280         definition of GL_LINK_WARNING.
40281         * NEWS: Mention the change.
40282
40283 2008-10-18  Bruno Haible  <bruno@clisp.org>
40284
40285         Move the euidaccess() declaration to <unistd.h>.
40286         * lib/euidaccess.h: Remove file.
40287         * lib/unistd.in.h (euidaccess): New declaration.
40288         * lib/euidaccess.c: Don't include euidaccess.h.
40289         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
40290         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
40291         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
40292         and HAVE_EUIDACCESS.
40293         * modules/euidaccess (Files): Remove lib/euidaccess.h.
40294         (Depends-on): Add unistd.
40295         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
40296         (Include): Specify <unistd.h> instead of euidaccess.h.
40297         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
40298         HAVE_EUIDACCESS.
40299         * NEWS: Mention the change.
40300
40301 2008-10-18  Bruno Haible  <bruno@clisp.org>
40302
40303         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
40304
40305         Move the getdomainname() declaration to <unistd.h>.
40306         * lib/getdomainname.h: Remove file.
40307         * lib/unistd.in.h (getdomainname): New declaration.
40308         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
40309         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
40310         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
40311         HAVE_GETDOMAINNAME.
40312         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
40313         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
40314         * modules/getdomainname (Files): Remove lib/getdomainname.h.
40315         (Depends-on): Add unistd, extensions.
40316         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
40317         (Includes): Specify <unistd.h> instead of getdomainname.h.
40318         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
40319         HAVE_GETDOMAINNAME.
40320         * NEWS: Mention the change.
40321
40322 2008-10-18  Bruno Haible  <bruno@clisp.org>
40323
40324         * modules/dirent: New file.
40325         * m4/dirent_h.m4: New file.
40326         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
40327         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
40328         * modules/fchdir (Files): Remove lib/dirent.in.h.
40329         (Depends-on): Add dirent.
40330         (Makefile.am): Move rules to modules/dirent.
40331         * doc/posix-headers/dirent.texi: Mention the new module.
40332
40333 2008-10-18  Bruno Haible  <bruno@clisp.org>
40334
40335         Avoid -Wunused-parameter warnings in public gnulib header files.
40336         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
40337         macro.
40338         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
40339
40340 2008-10-18  Bruno Haible  <bruno@clisp.org>
40341
40342         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
40343         * doc/glibc-functions/error.texi: Mention the module 'error'.
40344         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
40345         * doc/glibc-functions/getdomainname.texi: Mention the module
40346         'getdomainname'.
40347         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
40348         * doc/glibc-functions/getpagesize.texi: Mention the module
40349         'getpagesize'.
40350         * doc/glibc-functions/getusershell.texi: Mention the module
40351         'getusershell'.
40352         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
40353         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
40354         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
40355         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
40356         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
40357         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
40358         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
40359         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
40360         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
40361         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
40362         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
40363         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
40364         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
40365         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
40366
40367 2008-10-17  Bruno Haible  <bruno@clisp.org>
40368
40369         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
40370         HP-UX and IRIX, use -0.0L.
40371         * tests/test-ceill.c (minus_zero): Likewise.
40372         * tests/test-floorl.c (minus_zero): Likewise.
40373         * tests/test-frexpl.c (minus_zero): Likewise.
40374         * tests/test-isnan.c (minus_zerol): Likewise.
40375         * tests/test-isnanl.h (minus_zero): Likewise.
40376         * tests/test-ldexpl.c (minus_zero): Likewise.
40377         * tests/test-roundl.c (minus_zero): Likewise.
40378         * tests/test-signbit.c (minus_zerol): Likewise.
40379         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
40380         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
40381         * tests/test-truncl.c (minus_zero): Likewise.
40382         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
40383         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
40384         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
40385         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
40386
40387 2008-10-17  Bruno Haible  <bruno@clisp.org>
40388
40389         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
40390         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
40391         that it gets activated only for gcc >= 3.0.
40392         * lib/dirent.in.h: Likewise.
40393         * lib/errno.in.h: Likewise.
40394         * lib/fcntl.in.h: Likewise.
40395         * lib/float.in.h: Likewise.
40396         * lib/iconv.in.h: Likewise.
40397         * lib/inttypes.in.h: Likewise.
40398         * lib/locale.in.h: Likewise.
40399         * lib/math.in.h: Likewise.
40400         * lib/netdb.in.h: Likewise.
40401         * lib/netinet_in.in.h: Likewise.
40402         * lib/search.in.h: Likewise.
40403         * lib/signal.in.h: Likewise.
40404         * lib/spawn.in.h: Likewise.
40405         * lib/stdarg.in.h: Likewise.
40406         * lib/stdint.in.h: Likewise.
40407         * lib/stdio.in.h: Likewise.
40408         * lib/stdlib.in.h: Likewise.
40409         * lib/string.in.h: Likewise.
40410         * lib/strings.in.h: Likewise.
40411         * lib/sys_file.in.h: Likewise.
40412         * lib/sys_ioctl.in.h: Likewise.
40413         * lib/sys_select.in.h: Likewise.
40414         * lib/sys_socket.in.h: Likewise.
40415         * lib/sys_stat.in.h: Likewise.
40416         * lib/sys_time.in.h: Likewise.
40417         * lib/sysexits.in.h: Likewise.
40418         * lib/time.in.h: Likewise.
40419         * lib/unistd.in.h: Likewise.
40420         * lib/wchar.in.h: Likewise.
40421         * lib/wctype.in.h: Likewise.
40422         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
40423
40424 2008-10-17  Jim Meyering  <meyering@redhat.com>
40425
40426         ignore-value: don't depend on inline module
40427         * modules/ignore-value (Depends-on): Remove 'inline'.
40428         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
40429         Suggestion from Bruno Haible.
40430
40431 2008-10-17  Bruno Haible  <bruno@clisp.org>
40432
40433         New implementation of condition variables for Win32.
40434         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
40435         (gl_linked_waitqueue_t): New type.
40436         (gl_cond_t): Use it.
40437         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
40438         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
40439         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
40440         (glthread_cond_init_func, glthread_cond_wait_func,
40441         glthread_cond_timedwait_func, glthread_cond_signal_func,
40442         glthread_cond_broadcast_func, glthread_cond_destroy_func):
40443         Reimplemented on the basis of gl_linked_waitqueue_t.
40444         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
40445         gl_waitqueue_t.
40446         (gl_rwlock_t): Update.
40447         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
40448
40449 2008-10-17  Simon Josefsson  <simon@josefsson.org>
40450
40451         * modules/recvfrom (Depends-on): Add dependency on getpeername.
40452         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
40453
40454 2008-10-17  Jim Meyering  <meyering@redhat.com>
40455
40456         ignore-value: new module
40457         * modules/ignore-value: New file.
40458         * lib/ignore-value.h: New file.
40459         * MODULES.html.sh (Compiler warning management): New section,
40460         just for this module.  More to come.
40461
40462 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
40463
40464         open-safer.c: avoid 'signed and unsigned in conditional...' warning
40465         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
40466         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
40467
40468 2008-10-16  Jim Meyering  <meyering@redhat.com>
40469
40470         openat-die.c: avoid 'no previous prototype' warning
40471         * lib/openat-die.c: Include "openat.h".
40472         Reported by Reuben Thomas <rrt@sc3d.org>.
40473
40474 2008-10-16  Simon Josefsson  <simon@josefsson.org>
40475
40476         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
40477         * lib/netdb.in.h: Fix typo.
40478         Reported by Bruno Haible  <bruno@clisp.org>
40479
40480         * lib/netdb.in.h: Include sys/socket.h for platforms without
40481         netdb.h, to get structures like hostent on MinGW.
40482         * modules/netdb (Depends-on): Add sys_socket.
40483
40484 2008-10-15  Simon Josefsson  <simon@josefsson.org>
40485
40486         * modules/netdb, modules/netdb-tests: New file.
40487         * m4/netdb_h.m4: New file.
40488         * lib/netdb.in.h: Add, currently just an empty file pending
40489         definitions.
40490         * tests/test-netdb.c: New file.
40491         * doc/posix-headers/netdb.texi: Mention that we replace it if
40492         needed.
40493         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
40494         netdb.
40495
40496 2008-10-15  Simon Josefsson  <simon@josefsson.org>
40497
40498         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
40499         with code.
40500
40501 2008-10-13  Bruno Haible  <bruno@clisp.org>
40502
40503         * lib/glthread/cond.c (glthread_cond_wait_func,
40504         glthread_cond_timedwait_func): Add a comment.
40505
40506 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
40507
40508         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
40509         * tests/test-select.c: Likewise,
40510
40511 2008-10-13  Bruno Haible  <bruno@clisp.org>
40512
40513         * lib/glthread/cond.c (glthread_cond_wait_func,
40514         glthread_cond_timedwait_func): Fix variable name.
40515         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
40516
40517 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
40518
40519         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
40520         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
40521         struct sockaddr.sa_len.
40522         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
40523
40524 2008-10-13  Simon Josefsson  <simon@josefsson.org>
40525
40526         * build-aux/pmccabe2html: Add css and css_url parameters.
40527
40528 2008-10-12  Bruno Haible  <bruno@clisp.org>
40529
40530         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
40531         calling aclx_get.
40532         Reported by Rainer Tammer <tammer@tammer.net>.
40533
40534 2008-10-12  Bruno Haible  <bruno@clisp.org>
40535
40536         Use msvcrt aware primitives for creation/termination of Win32 threads.
40537         * lib/glthread/thread.c: Include <process.h>.
40538         (glthread_create_func): Use _beginthreadex instead of CreateThread.
40539         (wrapper_func): Update signature.
40540         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
40541
40542 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
40543             Bruno Haible  <bruno@clisp.org>
40544
40545         Provide a Win32 implementation of the 'cond' module.
40546         * lib/glthread/cond.h [USE_WIN32]: New implementation.
40547         * lib/glthread/cond.c (glthread_cond_init_func,
40548         glthread_cond_wait_func, glthread_cond_timedwait_func,
40549         glthread_cond_signal_func, glthread_cond_broadcast_func,
40550         glthread_cond_destroy_func) [USE_WIN32]: New functions.
40551         * modules/cond (Dependencies): Add gettimeofday.
40552
40553 2008-10-11  Bruno Haible  <bruno@clisp.org>
40554
40555         Make sleep work on older versions of mingw.
40556         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
40557         only whether it exists.
40558         * doc/posix-functions/sleep.texi: Mention the problem with older
40559         versions of mingw.
40560
40561 2008-10-11  Bruno Haible  <bruno@clisp.org>
40562
40563         New module 'shutdown'.
40564         * modules/shutdown: New file.
40565         * lib/sys_socket.in.h (shutdown): New declaration.
40566         * lib/winsock.c (shutdown): New function.
40567         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
40568         GNULIB_SHUTDOWN.
40569         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
40570         * doc/posix-functions/shutdown.texi: Document the new module.
40571
40572 2008-10-11  Jim Meyering  <meyering@redhat.com>
40573
40574         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
40575
40576 2008-10-11  Bruno Haible  <bruno@clisp.org>
40577
40578         New module 'fclose'.
40579         * modules/fclose: New file.
40580         * lib/stdio.in.h (fclose): New declaration.
40581         * lib/fclose.c: New file.
40582         * m4/fclose.m4: New file.
40583         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
40584         REPLACE_FCLOSE.
40585         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
40586         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
40587         REPLACE_FCLOSE.
40588         * modules/close (Depends-on): fclose.
40589         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
40590
40591 2008-10-11  Bruno Haible  <bruno@clisp.org>
40592
40593         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
40594         set errno and don't call _close.
40595
40596 2008-10-10  Bruno Haible  <bruno@clisp.org>
40597
40598         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
40599         ACL, not afterwards. Fixes test failure on Cygwin.
40600
40601 2008-10-09  Ben Pfaff  <blp@gnu.org>
40602
40603         * build-aux/announce-gen: Fix gnulib version related part of usage
40604         message.  Die with a useful error message if no tarballs are
40605         found.
40606
40607 2008-10-10  Jim Meyering  <meyering@redhat.com>
40608
40609         bootstrap: use git's --depth=N option only if it's supported
40610         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
40611         recognize the --depth option.  Reported by Pádraig Brady.
40612
40613 2008-10-09  Bruno Haible  <bruno@clisp.org>
40614
40615         New module 'ioctl'.
40616         * modules/ioctl: New file.
40617         * lib/sys_socket.in.h (ioctl): Remove declaration.
40618         * lib/winsock.c: Include <sys/ioctl.h>.
40619         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
40620         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
40621         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
40622         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
40623         * doc/posix-functions/ioctl.texi: Mention the new module.
40624
40625 2008-10-09  Bruno Haible  <bruno@clisp.org>
40626
40627         New module 'sys_ioctl'.
40628         * lib/sys_ioctl.in.h: New file.
40629         * m4/sys_ioctl_h.m4: New file.
40630         * modules/sys_ioctl: New file.
40631         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
40632
40633 2008-10-09  Bruno Haible  <bruno@clisp.org>
40634
40635         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
40636         * lib/winsock.c: Include <stdarg.h>.
40637         (rpl_ioctl): Change to second argument 'int' and then varargs.
40638
40639 2008-10-09  Bruno Haible  <bruno@clisp.org>
40640
40641         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
40642         when the sys_socket module is present and the system has <winsock2.h>.
40643
40644 2008-10-09  Bruno Haible  <bruno@clisp.org>
40645
40646         * doc/posix-functions/close.texi: Mention module 'close' instead of
40647         module 'sys_socket'.
40648
40649 2008-10-09  Bruno Haible  <bruno@clisp.org>
40650
40651         * doc/glibc-headers/sys_ioctl.texi: New file.
40652         * doc/gnulib.texi: Include it.
40653
40654 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
40655             Bruno Haible  <bruno@clisp.org>
40656
40657         Combine the two replacements of 'close'.
40658         * lib/sys_socket.in.h (close): Define to a reminder to include
40659         <unistd.h>.
40660         (_gl_close_fd_maybe_socket): New declaration.
40661         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
40662         * lib/winsock.c (close): Remove undefinition.
40663         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
40664         needed for the gnulib module 'close'.
40665         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
40666         define to an error symbol or to a warning, if suitable.
40667         * lib/close.c: Include <sys/socket.h>.
40668         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
40669         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
40670         UNISTD_H_HAVE_WINSOCK2_H.
40671         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
40672         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
40673         UNISTD_H_HAVE_WINSOCK2_H.
40674         * modules/sys_socket (Files): Add m4/unistd_h.m4.
40675         (configure.ac): Set a module indicator.
40676         (Makefile.am): Substitute GNULIB_CLOSE.
40677         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
40678         * modules/poll-tests (Depends-on): Add close.
40679         * modules/select-tests (Depends-on): Likewise.
40680
40681 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
40682             Bruno Haible  <bruno@clisp.org>
40683
40684         New module 'close'.
40685         * modules/close: New file.
40686         * lib/unistd.in.h (close): Move declaration out of the
40687         FCHDIR_REPLACEMENT scope.
40688         (_gl_unregister_fd): New declaration.
40689         * lib/close.c: New file.
40690         * lib/fchdir.c (rpl_close): Remove function.
40691         * m4/close.m4: New file.
40692         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
40693         close.
40694         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
40695         REPLACE_CLOSE.
40696         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
40697         REPLACE_CLOSE.
40698         * modules/fchdir (Depends-on): Add close.
40699
40700 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
40701             Bruno Haible  <bruno@clisp.org>
40702
40703         * lib/fcntl.in.h (open): Simplify conditionals.
40704         (_gl_register_fd): New declaration.
40705         * lib/fchdir.c (rpl_open): Remove function.
40706         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
40707         also.
40708         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
40709         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
40710         open.
40711
40712 2008-10-09  Jim Meyering  <meyering@redhat.com>
40713
40714         GNUmakefile: use the more name-space-friendly "_version"
40715         * top/GNUmakefile (_dummy): Update.
40716         (_version): Rename from "version".
40717
40718 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
40719             Bruno Haible  <bruno@clisp.org>
40720
40721         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
40722         rpl_close.
40723         (_gl_register_fd): New function, extracted from rpl_open.
40724         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
40725         (rpl_open, rpl_opendir): Use _gl_register_fd.
40726
40727 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
40728
40729         Fix organization of 'open' replacement.
40730         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
40731         (gl_FUNC_OPEN): Use it.
40732         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
40733
40734 2008-10-08  Bruno Haible  <bruno@clisp.org>
40735
40736         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
40737
40738 2008-10-08  Simon Josefsson  <simon@josefsson.org>
40739
40740         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
40741         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
40742         listen).
40743
40744 2008-10-08  Eric Blake  <ebb9@byu.net>
40745
40746         GNUmakefile: add 'make version' target
40747         * top/GNUmakefile (_curr-ver): Split version update rules...
40748         (version): ...into a target.
40749
40750 2008-10-07  Bruno Haible  <bruno@clisp.org>
40751
40752         Use a more portable replacement expression for -0.0L.
40753         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
40754         instead of -0.0L. Fix m4 quotation.
40755
40756         * tests/test-signbit.c: Include <float.h>.
40757         (minus_zero): New variable.
40758         (test_signbitl): Use minus_zero instead of -zero.
40759         * modules/signbit-tests (Depends-on): Add float.
40760
40761         * tests/test-ceill.c: Include <float.h>.
40762         (zero): Remove variable.
40763         (minus_zero): New variable.
40764         (main): Use minus_zero instead of -zero.
40765         * modules/ceill-tests (Depends-on): Add float.
40766
40767         * tests/test-floorl.c: Include <float.h>.
40768         (zero): Remove variable.
40769         (minus_zero): New variable.
40770         (main): Use minus_zero instead of -zero.
40771         * modules/floorl-tests (Depends-on): Add float.
40772
40773         * tests/test-roundl.c: Include <float.h>.
40774         (zero): Remove variable.
40775         (minus_zero): New variable.
40776         (main): Use minus_zero instead of -zero.
40777         * modules/roundl-tests (Depends-on): Add float.
40778
40779         * tests/test-truncl.c: Include <float.h>.
40780         (zero): Remove variable.
40781         (minus_zero): New variable.
40782         (main): Use minus_zero instead of -zero.
40783         * modules/truncl-tests (Depends-on): Add float.
40784
40785         * tests/test-frexpl.c (zero): Remove variable.
40786         (minus_zero): New variable.
40787         (main): Use minus_zero instead of -zero.
40788         * modules/frexpl-tests (Depends-on): Add float.
40789
40790         * tests/test-isnan.c (zerol): Remove variable.
40791         (minus_zerol): New variable.
40792         (test_long_double): Use minus_zerol instead of -zerol.
40793         * modules/isnan-tests (Depends-on): Add float.
40794
40795         * tests/test-isnanl.h (zero): Remove variable.
40796         (minus_zero): New variable.
40797         (main): Use minus_zero instead of -zero.
40798         * modules/isnanl-nolibm-tests (Depends-on): Add float.
40799         * modules/isnanl-tests (Depends-on): Add float.
40800
40801         * tests/test-ldexpl.c (zero): Remove variable.
40802         (minus_zero): New variable.
40803         (main): Use minus_zero instead of -zero.
40804         * modules/ldexpl-tests (Depends-on): Add float.
40805
40806         * tests/test-snprintf-posix.h (zerol): Remove variable.
40807         (minus_zerol): New variable.
40808         (test_function): Use minus_zerol instead of -zerol.
40809         * modules/snprintf-posix-tests (Depends-on): Add float.
40810         * modules/vsnprintf-posix-tests (Depends-on): Add float.
40811
40812         * tests/test-sprintf-posix.h (zerol): Remove variable.
40813         (minus_zerol): New variable.
40814         (test_function): Use minus_zerol instead of -zerol.
40815         * modules/sprintf-posix-tests (Depends-on): Add float.
40816         * modules/vsprintf-posix-tests (Depends-on): Add float.
40817
40818         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
40819         (minus_zerol): New variable.
40820         (test_function): Use minus_zerol instead of -zerol.
40821         * modules/vasnprintf-posix-tests (Depends-on): Add float.
40822
40823         * tests/test-vasprintf-posix.c (zerol): Remove variable.
40824         (minus_zerol): New variable.
40825         (test_function): Use minus_zerol instead of -zerol.
40826         * modules/vasprintf-posix-tests (Depends-on): Add float.
40827
40828 2008-10-07  Simon Josefsson  <simon@josefsson.org>
40829
40830         * MODULES.html.sh (Support for building documentation): Mention
40831         pmccabe2html.  Sort entries.
40832
40833         Add pmccabe2html module, from gnupdf.
40834         * build-aux/pmccabe.css: New file.
40835         * build-aux/pmccabe2html: New file.
40836         * m4/pmccabe2html.m4: New file.
40837         * modules/pmccabe2html: New file.
40838
40839 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
40840
40841         flock: new module
40842         * MODULES.html.sh: Add to list of modules.
40843         * lib/flock.c: flock implementation for Windows and Unix systems
40844         which have fcntl.
40845         * doc/glibc-functions/flock.texi: Update documentation.
40846         * lib/sys_file.in.h: <sys/file.h> header file.
40847         * m4/flock.m4: M4 macros.
40848         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
40849         * modules/flock: flock module.
40850         * modules/flock-tests: flock tests module.
40851         * modules/sys_file: sys/file.h module.
40852         * tests/test-flock.c: test suite for flock.
40853
40854 2008-10-06  Jim Meyering  <meyering@redhat.com>
40855
40856         bootstrap: check for LT_INIT more portably still ;-)
40857         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
40858         Spotted by Bruno Haible.
40859
40860 2008-10-06  Eric Blake  <ebb9@byu.net>
40861
40862         test-signbit: avoid tripping Irix cc bug on -0.0L
40863         * tests/test-signbit.c (minus_zerol): Delete, and replace with
40864         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
40865         entire testsuite consistent and avoids an Irix 6.2 bug.
40866
40867 2008-10-05  Bruno Haible  <bruno@clisp.org>
40868             Jim Meyering  <jim@meyering.net>
40869
40870         Add an option for ignoring EPIPE during close_stdout.
40871         * lib/closeout.h: Include <stdbool.h>.
40872         (close_stdout_set_ignore_EPIPE): New declaration.
40873         * lib/closeout.c: Include <stdbool.h>.
40874         (ignore_EPIPE): New variable.
40875         (close_stdout_set_ignore_EPIPE): New function.
40876         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
40877         * lib/close-stream.c (close_stream): Mention the possible EPIPE
40878         failure.
40879         * modules/closeout (Depends-on): Add stdbool.
40880
40881 2008-10-05  Bruno Haible  <bruno@clisp.org>
40882
40883         * modules/accept: New file.
40884         * modules/bind: New file.
40885         * modules/connect: New file.
40886         * modules/getpeername: New file.
40887         * modules/getsockname: New file.
40888         * modules/getsockopt: New file.
40889         * modules/listen: New file.
40890         * modules/recv: New file.
40891         * modules/recvfrom: New file.
40892         * modules/send: New file.
40893         * modules/sendto: New file.
40894         * modules/setsockopt: New file.
40895         * modules/socket: New file.
40896         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
40897         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
40898         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
40899         the particular module is requested. Add a link warning when the
40900         particular module is not requested.
40901         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
40902         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
40903         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
40904         the particular module is requested.
40905         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
40906         gl_SYS_SOCKET_H_DEFAULTS): New macros.
40907         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
40908         * modules/sys_socket (Depends-on): Add link-warning.
40909         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
40910         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
40911         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
40912         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
40913         GL_LINK_WARNING.
40914         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
40915         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
40916         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
40917         * doc/posix-functions/getpeername.texi: Mention the new module
40918         'getpeername'.
40919         * doc/posix-functions/getsockname.texi: Mention the new module
40920         'getsockname'.
40921         * doc/posix-functions/getsockopt.texi: Mention the new module
40922         'getsockopt'.
40923         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
40924         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
40925         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
40926         * doc/posix-functions/send.texi: Mention the new module 'send'.
40927         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
40928         * doc/posix-functions/setsockopt.texi: Mention the new module
40929         'setsockopt'.
40930         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
40931         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
40932         listen, connect, accept.
40933         * modules/select-tests (Depends-on): Likewise.
40934
40935 2008-10-05  Bruno Haible  <bruno@clisp.org>
40936
40937         * lib/winsock.c (strerror): Remove unused #undef.
40938         (rpl_close): Remove unused local variable.
40939
40940         * modules/sys_socket (Depends-on); Add errno.
40941
40942 2008-10-05  Bruno Haible  <bruno@clisp.org>
40943
40944         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
40945         (select): Add a link warning when the 'select' module is not used.
40946         * modules/sys_select (Depends-on): Add link-warning.
40947         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
40948         Suggested by Paolo Bonzini.
40949
40950 2008-10-05  Jim Meyering  <meyering@redhat.com>
40951
40952         bootstrap: check for LT_INIT more portably
40953         * build-aux/bootstrap: Avoid using grep -E, since it's not
40954         portable enough.  Suggestion from Bruno Haible.
40955
40956 2008-10-05  Bruno Haible  <bruno@clisp.org>
40957
40958         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
40959         as being fixed by gnulib.
40960
40961 2008-10-05  Bruno Haible  <bruno@clisp.org>
40962
40963         * modules/select-tests: New file, mostly copied from
40964         modules/sys_select-tests.
40965         * tests/test-select.c: New file, mostly copied from
40966         tests/test-sys_select.c.
40967         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
40968         * modules/sys_select-tests (Depends-on): Remove all dependencies.
40969         (Makefile.am): Remove test_sys_select_LDADD.
40970
40971         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
40972         to an undefined symbol, for an error message.
40973         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
40974         (gl_SYS_SELECT_H_DEFAULTS): New macro.
40975         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
40976         winsock-select.c here.
40977         * modules/sys_select (Files): Remove lib/winsock-select.c.
40978         (Depends-on): Remove alloca.
40979         (Makefile.am): Substitute GNULIB_SELECT.
40980         * modules/select: New file.
40981         * doc/posix-functions/select.texi: Update.
40982
40983 2008-10-05  Bruno Haible  <bruno@clisp.org>
40984
40985         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
40986         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
40987         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
40988         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
40989         getdtablesize.
40990         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
40991         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
40992
40993 2008-10-05  Bruno Haible  <bruno@clisp.org>
40994
40995         * modules/getdtablesize-tests: New file.
40996         * tests/test-getdtablesize.c: New file.
40997
40998         New module 'getdtablesize'.
40999         * lib/unistd.in.h (getdtablesize): New declaration.
41000         * lib/getdtablesize.c: New file.
41001         * m4/getdtablesize.m4: New file.
41002         * modules/getdtablesize: New file.
41003         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
41004         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
41005         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
41006         HAVE_GETDTABLESIZE.
41007         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
41008
41009 2008-10-05  Bruno Haible  <bruno@clisp.org>
41010
41011         * modules/sched (Makefile.am): Fix typo.
41012         Reported by Simon Josefsson.
41013
41014 2008-10-05  Jim Meyering  <meyering@redhat.com>
41015
41016         bootstrap: check for LT_INIT, too
41017         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
41018         are deprecated.  Suggestion from Ralf Wildenhues.
41019
41020 2008-10-05  Bruno Haible  <bruno@clisp.org>
41021
41022         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
41023         overriding them by ours.
41024         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
41025
41026 2008-10-05  Jim Meyering  <meyering@redhat.com>
41027
41028         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
41029         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
41030         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
41031
41032 2008-10-04  Bruno Haible  <bruno@clisp.org>
41033
41034         * modules/dup2 (License): Change to LGPLv2+.
41035         * modules/sleep (License): Likewise.
41036         * modules/perror (License): Likewise.
41037         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
41038         Blake.
41039         * modules/signal (License): Likewise.
41040         * modules/sigprocmask (License): Likewise.
41041         * modules/raise (License): Change to LGPLv2+, with approval by Jim
41042         Meyering.
41043
41044 2008-10-04  Bruno Haible  <bruno@clisp.org>
41045
41046         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
41047         Reported by Rainer Tammer <tammer@tammer.net>.
41048
41049 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
41050             Bruno Haible  <bruno@clisp.org>
41051
41052         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
41053         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
41054         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
41055
41056 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
41057
41058         filevercmp: new module
41059         * lib/filevercmp.h: New function filevercmp comparing version strings.
41060         * lib/filevercmp.c: Implementation of filevercmp function.
41061         * modules/filevercmp: Module metadata.
41062         * tests/test-filevercmp.c: Unit test for new module.
41063         * modules/filevercmp-tests: Unit test metadata.
41064         * MODULES.html.sh: Add filevercmp module.
41065
41066 2008-10-03  Bruno Haible  <bruno@clisp.org>
41067
41068         * lib/c-ctype.h: Add comment.
41069         Reported by Jim Meyering.
41070
41071 2008-10-02  Bruno Haible  <bruno@clisp.org>
41072
41073         * modules/posix_spawn-internal (Depends-on): Add 'open'.
41074
41075 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
41076
41077         * build-aux/bootstrap: Allow renaming bootstrap, and change the
41078         name of bootstrap.conf accordingly.
41079
41080 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
41081
41082         * build-aux/bootstrap: Install git-merge-changelog configuration
41083         items into .gitconfig if needed.
41084
41085 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
41086
41087         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
41088         git repository, and initialize/update it accordingly.
41089
41090 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
41091
41092         * modules/fsync-tests: New file.
41093         * tests/test-fsync.c: New file.
41094
41095         New module 'fsync'.
41096         * lib/fsync.c: New file.
41097         * m4/fsync.m4: New file.
41098         * modules/fsync: New file.
41099         * lib/unistd.in.h (fsync): New declaration.
41100         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
41101         GNULIB_FSYNC and HAVE_FSYNC.
41102         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
41103         * MODULES.html.sh (posix_functions): Add fsync.
41104         * doc/posix-functions/fsync.texi: Mention the new module.
41105
41106 2008-10-02  Jim Meyering  <meyering@redhat.com>
41107
41108         fts.c: sync with similar code from coreutils' remove.c
41109         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
41110         Guard also with "#if defined __linux__", since for now at least,
41111         this code is Linux-kernel-specific.
41112
41113 2008-10-02  Jim Meyering  <meyering@redhat.com>
41114
41115         fts: bug fixes
41116         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
41117         Include <sys/vfs.h>, not <sys/statfs.h>.
41118
41119         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
41120         Include <sys/vfs.h>, not <sys/statfs.h>.
41121
41122 2008-10-01  Bruno Haible  <bruno@clisp.org>
41123
41124         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
41125         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
41126         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
41127         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
41128         * doc/posix-functions/posix_spawnp.texi: Likewise.
41129         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
41130         whether posix_spawn actually works.
41131         * m4/pipe.m4 (gl_PIPE): Likewise.
41132         * modules/execute (Files): Add m4/posix_spawn.m4.
41133         * modules/pipe (Files): Add m4/posix_spawn.m4.
41134         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
41135
41136 2008-10-01  Jim Meyering  <meyering@redhat.com>
41137
41138         remove trailing spaces
41139         * NEWS: Likewise.
41140         * lib/poll.c (poll): Likewise.
41141         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
41142         * lib/winsock.c (rpl_close): Likewise.
41143         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
41144         * modules/yield: Likewise.
41145         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
41146         * tests/test-sys_select.c (connect_to_socket): Likewise.
41147
41148         fts.c: adjust a new interface to be more generally useful
41149         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
41150         (fts_build): Adjust caller.
41151
41152 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
41153
41154         * modules/cond-tests: New file.
41155         * tests/test-cond.c: New file.
41156
41157 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
41158             Bruno Haible  <bruno@clisp.org>
41159
41160         * modules/cond (Dependencies): Add errno, time.
41161         * lib/glthread/cond.h: Include <time.h>.
41162         (gl_cond_define, gl_cond_define_initialized): Use the same definition
41163         across platforms.
41164
41165 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
41166             Bruno Haible  <bruno@clisp.org>
41167
41168         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
41169
41170 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
41171             Bruno Haible  <bruno@clisp.org>
41172
41173         * modules/tls-tests (Depends-on): Add thread, yield.
41174         (configure.ac): Remove all checks.
41175         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
41176         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
41177         gl_thread_self): Remove definitions. Include glthread/thread.h and
41178         glthread/yield.h instead.
41179         (test_tls): Pass an additional NULL argument to gl_thread_join.
41180
41181 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
41182             Bruno Haible  <bruno@clisp.org>
41183
41184         * modules/lock-tests (Depends-on): Add thread, yield.
41185         (configure.ac): Remove all checks.
41186         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
41187         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
41188         gl_thread_self): Remove definitions. Include glthread/thread.h and
41189         glthread/yield.h instead.
41190         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
41191         additional NULL argument to gl_thread_join.
41192
41193 2008-09-30  Bruno Haible  <bruno@clisp.org>
41194
41195         Fix the Win32 implementation of the 'thread' module.
41196         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
41197         pointer type.
41198         (gl_thread_self): Invoke gl_thread_self_func.
41199         (gl_thread_self_func): New declaration.
41200         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
41201         (do_init_self_key, init_self_key): New functions.
41202         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
41203         Remove some fields.
41204         (running_threads, running_lock): Remove variables.
41205         (get_current_thread_handle): New function.
41206         (gl_thread_self_func, wrapper_func, glthread_create_func,
41207         glthread_join_func, gl_thread_exit_func): Largely rewritten and
41208         simplified.
41209
41210 2008-09-30  Bruno Haible  <bruno@clisp.org>
41211
41212         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
41213         files.
41214
41215 2008-09-30  Jim Meyering  <meyering@redhat.com>
41216
41217         fts.m4: correct the test for statfs.f_type
41218         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
41219         when checking for statfs.f_type.
41220
41221 2008-09-15  Simon Josefsson  <simon@josefsson.org>
41222
41223         tests: avoid some compiler warnings
41224         * tests/test-memchr.c (main): Pass NULL indirectly.
41225         * tests/test-getdate.c (main): Remove unused variable 'ret'.
41226
41227 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
41228
41229         getdate.y: disallow countable dayshifts like "4 yesterday ago"
41230         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
41231         exactly specified dayshifts.
41232         (dayshift): New rule.
41233         (rel): Add dayshift.
41234         (relative_time_table) [tomorrow, yesterday, today, now]:
41235         Use tDAY_SHIFT in place of tDAY_UNIT.
41236         * tests/test-getdate.c: Add tests for now-disallowed countable
41237         dayshifts, e.g., "4 yesterday ago".
41238
41239 2008-09-29  Bruno Haible  <bruno@clisp.org>
41240
41241         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
41242         * tests/test-posix_spawn1.in.sh: Renamed from
41243         tests/test-posix_spawn.in.sh.
41244         * tests/test-posix_spawn2.c: New file.
41245         * tests/test-posix_spawn2.in.sh: New file.
41246         * modules/posix_spawnp-tests (Files): Update.
41247         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
41248
41249 2008-09-29  Bruno Haible  <bruno@clisp.org>
41250
41251         Propagate effects of putenv/setenv/unsetenv to child processes.
41252         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
41253         * lib/pipe.c (create_pipe): Likewise.
41254
41255 2008-09-29  Bruno Haible  <bruno@clisp.org>
41256
41257         Enable use of shell scripts as executables in mingw.
41258         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
41259         run the program as a shell script.
41260         * lib/pipe.c (create_pipe): Likewise.
41261         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
41262         resulting array.
41263
41264 2008-09-29  Eric Blake  <ebb9@byu.net>
41265
41266         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
41267
41268 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
41269
41270         * doc/posix-functions/accept.texi: Update mingw problems.
41271         * doc/posix-functions/bind.texi: Update mingw problems.
41272         * doc/posix-functions/close.texi: Update mingw problems.
41273         * doc/posix-functions/connect.texi: Update mingw problems.
41274         * doc/posix-functions/getpeername.texi: Update mingw problems.
41275         * doc/posix-functions/getsockname.texi: Update mingw problems.
41276         * doc/posix-functions/getsockopt.texi: Update mingw problems.
41277         * doc/posix-functions/ioctl.texi: Update mingw problems.
41278         * doc/posix-functions/listen.texi: Update mingw problems.
41279         * doc/posix-functions/recv.texi: Update mingw problems.
41280         * doc/posix-functions/recvfrom.texi: Update mingw problems.
41281         * doc/posix-functions/select.texi: Update mingw problems.
41282         * doc/posix-functions/send.texi: Update mingw problems.
41283         * doc/posix-functions/sendto.texi: Update mingw problems.
41284         * doc/posix-functions/setsockopt.texi: Update mingw problems.
41285         * doc/posix-functions/socket.texi: Update mingw problems.
41286
41287 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
41288             Bruno Haible  <bruno@clisp.org>
41289
41290         * lib/sys_select.in.h: Include sys/time.h.
41291         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
41292         * modules/sys_select: Depend on sys_time.
41293         * tests/test-sys_select.c: Test that sys/select.h defines struct
41294         timeval fully.
41295
41296 2008-09-29  Bruno Haible  <bruno@clisp.org>
41297
41298         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
41299         * lib/sys_select.in.h: Likewise.
41300
41301 2008-09-29  Bruno Haible  <bruno@clisp.org>
41302
41303         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
41304
41305 2008-09-29  Bruno Haible  <bruno@clisp.org>
41306
41307         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
41308         Set LIBSOCKET instead of augmenting LIBS.
41309         * modules/sockets (Link): New section.
41310         * modules/sockets-tests (test_sockets_LDADD): New variable.
41311         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
41312         * modules/poll-tests (test_poll_LDADD): New variable.
41313         * NEWS: Document the change.
41314
41315 2008-09-29  Bruno Haible  <bruno@clisp.org>
41316
41317         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
41318         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
41319         ARPA_INET_H directly.
41320         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
41321
41322 2008-09-28  Bruno Haible  <bruno@clisp.org>
41323
41324         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
41325         from gl_HEADER_SYS_SOCKET.
41326         (gl_HEADER_SYS_SOCKET): Invoke it.
41327         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
41328
41329 2008-09-28  Bruno Haible  <bruno@clisp.org>
41330
41331         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
41332         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
41333         Needed on OSF/1 4.0.
41334
41335 2008-09-28  Bruno Haible  <bruno@clisp.org>
41336
41337         Override open more carefully.
41338         * lib/open.c (orig_open): New function.
41339         (rpl_open): Use orig_open instead of open.
41340         * lib/fcntl.in.h: Add special invocation convention.
41341         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
41342         (gl_FUNC_OPEN): Invoke it.
41343
41344         Override freopen more carefully.
41345         * lib/freopen.c (orig_freopen): New function.
41346         (rpl_freopen): Use orig_freopen instead of freopen.
41347         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
41348         (gl_FUNC_FREOPEN): Invoke it.
41349
41350         Override fopen more carefully.
41351         * lib/fopen.c (orig_fopen): New function.
41352         (rpl_fopen): Use orig_fopen instead of fopen.
41353         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
41354         (gl_FUNC_FOPEN): Invoke it.
41355         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
41356
41357 2008-09-28  Bruno Haible  <bruno@clisp.org>
41358
41359         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
41360         SIGPIPE.
41361
41362 2008-09-28  Bruno Haible  <bruno@clisp.org>
41363
41364         * tests/test-sigaction.c (handler, main): Disable the check whether
41365         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
41366         glibc systems with LinuxThreads.
41367
41368 2008-09-28  Bruno Haible  <bruno@clisp.org>
41369
41370         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
41371
41372         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
41373         with AIX xlc.
41374         * lib/fcntl.in.h (open): Likewise.
41375         Reported by Rainer Tammer <tammer@tammer.net>.
41376
41377 2008-09-28  Bruno Haible  <bruno@clisp.org>
41378
41379         * modules/posix_spawnp-tests: New file.
41380         * tests/test-posix_spawn.c: New file.
41381         * tests/test-posix_spawn.in.sh: New file.
41382
41383         New module 'posix_spawnp'.
41384         * modules/posix_spawnp: New file.
41385         * lib/spawnp.c: New file, from GNU libc with modifications.
41386         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
41387
41388         New module 'posix_spawn'.
41389         * modules/posix_spawn: New file.
41390         * lib/spawn.c: New file, from GNU libc with modifications.
41391         * doc/posix-functions/posix_spawn.texi: Mention the new module.
41392
41393         New module 'posix_spawnattr_destroy'.
41394         * modules/posix_spawnattr_destroy: New file.
41395         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
41396         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
41397         module.
41398
41399         New module 'posix_spawnattr_setsigmask'.
41400         * modules/posix_spawnattr_setsigmask: New file.
41401         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
41402         modifications.
41403         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
41404         new module.
41405
41406         New module 'posix_spawnattr_getsigmask'.
41407         * modules/posix_spawnattr_getsigmask: New file.
41408         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
41409         modifications.
41410         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
41411         new module.
41412
41413         New module 'posix_spawnattr_setsigdefault'.
41414         * modules/posix_spawnattr_setsigdefault: New file.
41415         * lib/spawnattr_setdefault.c: New file, from GNU libc with
41416         modifications.
41417         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
41418         new module.
41419
41420         New module 'posix_spawnattr_getsigdefault'.
41421         * modules/posix_spawnattr_getsigdefault: New file.
41422         * lib/spawnattr_getdefault.c: New file, from GNU libc with
41423         modifications.
41424         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
41425         new module.
41426
41427         New module 'posix_spawnattr_setschedpolicy'.
41428         * modules/posix_spawnattr_setschedpolicy: New file.
41429         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
41430         modifications.
41431         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
41432         new module.
41433
41434         New module 'posix_spawnattr_getschedpolicy'.
41435         * modules/posix_spawnattr_getschedpolicy: New file.
41436         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
41437         modifications.
41438         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
41439         new module.
41440
41441         New module 'posix_spawnattr_setschedparam'.
41442         * modules/posix_spawnattr_setschedparam: New file.
41443         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
41444         modifications.
41445         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
41446         new module.
41447
41448         New module 'posix_spawnattr_getschedparam'.
41449         * modules/posix_spawnattr_getschedparam: New file.
41450         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
41451         modifications.
41452         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
41453         new module.
41454
41455         New module 'posix_spawnattr_setpgroup'.
41456         * modules/posix_spawnattr_setpgroup: New file.
41457         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
41458         modifications.
41459         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
41460         module.
41461
41462         New module 'posix_spawnattr_getpgroup'.
41463         * modules/posix_spawnattr_getpgroup: New file.
41464         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
41465         modifications.
41466         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
41467         module.
41468
41469         New module 'posix_spawnattr_setflags'.
41470         * modules/posix_spawnattr_setflags: New file.
41471         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
41472         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
41473         module.
41474
41475         New module 'posix_spawnattr_getflags'.
41476         * modules/posix_spawnattr_getflags: New file.
41477         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
41478         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
41479         module.
41480
41481         New module 'posix_spawnattr_init'.
41482         * modules/posix_spawnattr_init: New file.
41483         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
41484         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
41485         module.
41486
41487         New module 'posix_spawn_file_actions_destroy'.
41488         * modules/posix_spawn_file_actions_destroy: New file.
41489         * lib/spawn_faction_destroy.c: New file, from GNU libc with
41490         modifications.
41491         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
41492         the new module.
41493
41494         New module 'posix_spawn_file_actions_addopen'.
41495         * modules/posix_spawn_file_actions_addopen: New file.
41496         * lib/spawn_faction_addopen.c: New file, from GNU libc with
41497         modifications.
41498         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
41499         the new module.
41500
41501         New module 'posix_spawn_file_actions_adddup2'.
41502         * modules/posix_spawn_file_actions_adddup2: New file.
41503         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
41504         modifications.
41505         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
41506         the new module.
41507
41508         New module 'posix_spawn_file_actions_addclose'.
41509         * modules/posix_spawn_file_actions_addclose: New file.
41510         * lib/spawn_faction_addclose.c: New file, from GNU libc with
41511         modifications.
41512         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
41513         the new module.
41514
41515         New module 'posix_spawn_file_actions_init'.
41516         * modules/posix_spawn_file_actions_init: New file.
41517         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
41518         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
41519         new module.
41520
41521         New module 'posix_spawn-internal'.
41522         * modules/posix_spawn-internal: New file.
41523         * lib/spawn_int.h: New file, from GNU libc with modifications.
41524         * lib/spawni.c: New file, from GNU libc with modifications.
41525         * m4/posix_spawn.m4: New file.
41526
41527         New module 'spawn'.
41528         * modules/spawn: New file.
41529         * lib/spawn.in.h: New file, from GNU libc with modifications.
41530         * m4/spawn_h.m4: New file.
41531         * doc/posix-headers/spawn.texi: Mention the new module.
41532
41533 2008-09-28  Bruno Haible  <bruno@clisp.org>
41534
41535         * modules/sched-tests: New file.
41536         * tests/test-sched.c: New file.
41537
41538         New module 'sched'.
41539         * modules/sched: New file.
41540         * lib/sched.in.h: New file.
41541         * m4/sched_h.m4: New file.
41542         * doc/posix-headers/sched.texi: Mention the new module.
41543
41544 2008-09-27  Eric Blake  <ebb9@byu.net>
41545
41546         Fix previous patch, and tweak references to $0.
41547         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
41548         (func_version, func_gnulib_dir): Don't call this program
41549         gnulib-tool.
41550         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
41551         with using $0 in function.
41552         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
41553         (func_fatal_error): Reuse the name the user invoked us with.
41554
41555 2008-09-27  Bruno Haible  <bruno@clisp.org>
41556
41557         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
41558         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
41559         (gl_ICONV_H): Not here.
41560         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
41561         instead of assigning ICONV_H directly.
41562
41563         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
41564         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
41565         WCHAR_H directly.
41566
41567 2008-09-27  Bruno Haible  <bruno@clisp.org>
41568
41569         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
41570         * modules/arpa_inet (Depends-on): Add link-warning.
41571         (Makefile.am): Insert the definition of GL_LINK-WARNING.
41572         * modules/unistd (Makefile.am): Likewise.
41573
41574 2008-09-26  Bruno Haible  <bruno@clisp.org>
41575
41576         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
41577         variables.
41578         (func_version): Essentially copied from gnulib-tool.
41579         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
41580         func_readlink): Copied from gnulib-tool.
41581
41582 2008-09-26  Bruno Haible  <bruno@clisp.org>
41583
41584         * gnulib-tool (func_version): Change directory to $gnulib_dir before
41585         invoking git-version-gen.
41586
41587 2008-09-26  Bruno Haible  <bruno@clisp.org>
41588
41589         * posix-modules: Update to directory names changed on 2008-01-19.
41590         Remove commas in output before splitting into words. No more need to
41591         avoid 'ftruncate' since 2007-02-19.
41592
41593 2008-09-26  Bruno Haible  <bruno@clisp.org>
41594
41595         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
41596
41597 2008-09-26  Bruno Haible  <bruno@clisp.org>
41598
41599         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
41600         * modules/fwriteerror (Depends-on): Add errno.
41601
41602 2008-09-26  Bruno Haible  <bruno@clisp.org>
41603
41604         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
41605         * tests/test-vc-list-files-cvs.sh: Likewise.
41606
41607 2008-09-26  Bruno Haible  <bruno@clisp.org>
41608
41609         * doc/posix-headers/sys_resource.texi: Reorder items.
41610
41611 2008-09-26  Jim Meyering  <meyering@redhat.com>
41612
41613         fts: tweak inode comparison function
41614         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
41615         inode numbers, as documented.
41616
41617         fts: sort dirent entries on inode number before traversing
41618         This avoids a quadratic, seek-related performance penalty when
41619         operating on a directory containing many entries (measurable at 10k;
41620         3.5 hours at 2 million entries with a cold cache) on certain types
41621         of file systems, including ext3 and ext4, but not tmpfs.
41622         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
41623         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
41624         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
41625         (fs_handles_readdir_ordered_dirents_efficiently): New function.
41626         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
41627         (fts_build): Set the stat.st_ino member from D_INO.
41628         If it is likely to be useful, sort dirent entries on inode number.
41629
41630         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
41631         and the struct statfs.f_type member.
41632         * modules/fts (Depends-on): Add d-ino.
41633
41634 2008-09-26  Bruno Haible  <bruno@clisp.org>
41635
41636         * modules/sigpipe-die (Depends-on): Add sigpipe.
41637
41638         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
41639         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
41640         and GNULIB_STDIO_H_SIGPIPE are set.
41641         * lib/stdio-write.c: New file.
41642         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
41643         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
41644         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
41645         REPLACE_STDIO_WRITE_FUNCS.
41646         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
41647         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
41648         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
41649         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
41650         * modules/stdio (Files): Add lib/stdio-write.c.
41651         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
41652         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
41653         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
41654         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
41655         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
41656         REPLACE_FPRINTF_POSIX.
41657         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
41658         REPLACE_PRINTF_POSIX.
41659         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
41660         REPLACE_VFPRINTF_POSIX.
41661         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
41662         REPLACE_VPRINTF_POSIX.
41663         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
41664         SIGPIPE issue.
41665         * doc/posix-functions/fputc.texi: Likewise.
41666         * doc/posix-functions/fputs.texi: Likewise.
41667         * doc/posix-functions/fwrite.texi: Likewise.
41668         * doc/posix-functions/printf.texi: Likewise.
41669         * doc/posix-functions/putc.texi: Likewise.
41670         * doc/posix-functions/putchar.texi: Likewise.
41671         * doc/posix-functions/puts.texi: Likewise.
41672         * doc/posix-functions/vfprintf.texi: Likewise.
41673         * doc/posix-functions/vprintf.texi: Likewise.
41674
41675         * modules/safe-write (Depends-on): Add write.
41676
41677         * modules/sigpipe-tests: New file.
41678         * tests/test-sigpipe.c: New file.
41679         * tests/test-sigpipe.sh: New file.
41680
41681         * modules/write: New file.
41682         * lib/unistd.in.h: Include <sys/types.h>.
41683         (write): New declaration.
41684         * lib/write.c: New file.
41685         * m4/write.m4: New file.
41686         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
41687         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
41688         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
41689         GNULIB_WRITE, REPLACE_WRITE.
41690         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
41691         and the SIGPIPE issue.
41692
41693         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
41694         (raise): New declaration.
41695         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
41696         (ext_signal): New function.
41697         (rpl_raise): New function.
41698         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
41699         GNULIB_SIGNAL_H_SIGPIPE.
41700         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
41701         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
41702
41703         * modules/sigpipe: New file.
41704         * m4/sigpipe.m4: New file.
41705
41706 2008-09-25  Derek Price  <derek@ximbiot.com>
41707             Bruno Haible  <bruno@clisp.org>
41708
41709         * gnulib-tool (func_import): Report all license incompatibilities, not
41710         just the first one.
41711
41712 2008-09-25  Bruno Haible  <bruno@clisp.org>
41713
41714         * gnulib-tool (func_import): When computing the edits, consider not
41715         only the Makefile.ams that exist but also those that will be generated.
41716
41717 2008-09-25  Simon Josefsson  <simon@josefsson.org>
41718
41719         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
41720         fixes gnulib-tool --test warning about duplicate dependency.
41721
41722 2008-09-25  Bruno Haible  <bruno@clisp.org>
41723
41724         * gnulib-tool: Don't ask the user to perform edits in the generated
41725         Makefile.ams.
41726         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
41727         apply to the Makefile.am being generated.
41728         (func_emit_tests_Makefile_am): Execute edits that apply to the
41729         Makefile.am being generated.
41730         (func_import): Setup list of Makefile.am edits before emitting the
41731         Makefile.ams, not at the end.
41732         (func_create_testdir): Update.
41733         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
41734
41735 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
41736
41737         * gnulib-tool (func_import): Store the --tests-base option in the
41738         comment in gnulib-cache.m4.
41739
41740 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
41741
41742         * NEWS: Document increased portability that sys_select now provides.
41743
41744         * lib/sys_select.in.h: Install select wrapper.
41745         * lib/sys_socket.in.h: Use more descriptive name when there is no
41746         select wrapper.
41747         * lib/winsock-select.c: New.
41748         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
41749         Require gl_HEADER_SYS_SOCKET.
41750         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
41751         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
41752         * tests/test-sys_select.c: Add functional tests.
41753
41754 2008-09-24  Eric Blake  <ebb9@byu.net>
41755
41756         open, fopen: close fd leak in last patch
41757         * lib/open.c (rpl_open): Close fd before returning error.
41758         * lib/fopen.c (rpl_fopen): Close fd before returning error.
41759         * doc/posix-functions/open.texi (open): Document that Irix also
41760         has the bug.
41761         * doc/posix-functions/fopen.texi (fopen): Likewise.
41762         Reported by Paolo Bonzini.
41763
41764 2008-09-24  Bruno Haible  <bruno@clisp.org>
41765
41766         Ensure that a filename ending in a slash cannot be used to access a
41767         non-directory.
41768         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
41769         to check whether it's really a directory.
41770         * lib/fopen.c: Include fcntl.h, unistd.h.
41771         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
41772         and fdopen().
41773         * modules/fopen (Depends-on): Add unistd.
41774         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
41775         * tests/test-fopen.c (main): Likewise.
41776         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
41777         * doc/posix-functions/fopen.texi: Likewise.
41778         Reported by Eric Blake.
41779
41780 2008-09-23  Eric Blake  <ebb9@byu.net>
41781
41782         c-stack: avoid compiler optimizations when provoking overflow
41783         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
41784         recursion harder to optimize, to ensure a stack overflow occurs.
41785         * tests/test-c-stack.c (recurse): Likewise.
41786         Borrowed from libsigsegv.
41787
41788         c-stack: work around Irix sigaltstack bug
41789         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
41790         whether sigaltstack uses wrong end of stack_t (copied in part from
41791         libsigsegv).
41792         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
41793         Irix bug, without requiring an over-allocation.
41794         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
41795         bug.
41796
41797         fopen: document mingw bug on directories
41798         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
41799         not allowing a stream visiting a directory, even though reading
41800         from such a stream is not portable.
41801
41802 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
41803
41804         * lib/poll.c: Rewrite.
41805         * modules/poll: Depend on alloca.
41806
41807 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
41808
41809         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
41810         instead define prototypes for a full set of wrappers.  Ensure
41811         that Cygwin does not use the compatibility code, which is only
41812         for MinGW.
41813         * lib/winsock.c: New.
41814         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
41815         * modules/sys_socket: Add lib/winsock.c.
41816
41817         * modules/poll-tests: Add errno and perror.
41818         * tests/test-poll.c: Use ioctl, not ioctlsocket.
41819
41820 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
41821
41822         * tests/test-poll.c: Downgrade minimum needed Winsock version.
41823
41824 2008-09-23  Bruno Haible  <bruno@clisp.org>
41825
41826         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
41827         * doc/glibc-functions/*: Likewise.
41828
41829 2008-09-23  Simon Josefsson  <simon@josefsson.org>
41830
41831         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
41832         success.
41833
41834 2008-09-22  Eric Blake  <ebb9@byu.net>
41835             Bruno Haible  <bruno@clisp.org>
41836
41837         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
41838         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
41839         supply %A but mishandle pseudo-NaN.
41840         Reported by Simon Josefsson.
41841
41842 2008-09-21  Bruno Haible  <bruno@clisp.org>
41843
41844         * tests/test-lock.c (main): Tweak skip message.
41845         * tests/test-tls.c (main): Likewise.
41846
41847 2008-09-21  Bruno Haible  <bruno@clisp.org>
41848
41849         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
41850         whether 'struct sigaction' has sa_sigaction here...
41851         (gl_PREREQ_SIG_HANDLER_H): ... not here.
41852         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
41853
41854 2008-09-21  Bruno Haible  <bruno@clisp.org>
41855
41856         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
41857         section.
41858         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
41859         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
41860         the new section.
41861         (Support for obsolete systems lacking POSIX:2001): New section.
41862         (String handling <string.h>): Move strdup to the new section.
41863         Suggested by Simon Josefsson and Paolo Bonzini.
41864
41865 2008-09-21  Bruno Haible  <bruno@clisp.org>
41866
41867         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
41868         exponents in %e and %g results on 'long double'. Needed for mingw's
41869         improved *printf functions.
41870         * tests/test-vasprintf-posix.c (test_function): Likewise.
41871         * tests/test-snprintf-posix.h (test_function): Likewise.
41872         * tests/test-sprintf-posix.h (test_function): Likewise.
41873         Reported by Eric Blake.
41874
41875 2008-09-21  Bruno Haible  <bruno@clisp.org>
41876
41877         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
41878         * tests/test-sprintf-posix.h (test_function): Likewise.
41879
41880 2008-09-21  Bruno Haible  <bruno@clisp.org>
41881
41882         * modules/getpass (Depends-on): Add strdup-posix.
41883
41884         New module 'strdup-posix'.
41885         * modules/strdup-posix: New file.
41886         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
41887         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
41888         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
41889         REPLACE_STRDUP.
41890         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
41891         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
41892         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
41893         strdup-posix.
41894
41895         * modules/strdup (Depends-on): Remove malloc-posix.
41896
41897 2008-09-20  Bruno Haible  <bruno@clisp.org>
41898
41899         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
41900         Wildenhues.
41901
41902 2008-09-20  Bruno Haible  <bruno@clisp.org>
41903
41904         Ensure that wint_t gets defined on IRIX 5.3.
41905         * lib/wchar.in.h (wint_t): Define if not defined by the system.
41906         * lib/wctype.in.h (wint_t): Likewise.
41907         (__wctype_wint_t): Remove type.
41908         (isw*): Use wint_t instead of __wctype_wint_t.
41909         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
41910         * modules/wchar (Files): Add m4/wint_t.m4.
41911         (Makefile.am): Substitute HAVE_WINT_T.
41912         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
41913         * tests/test-wctype.c: Check that wint_t is defined.
41914         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
41915         * doc/posix-headers/wctype.texi: Likewise.
41916         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
41917
41918 2008-09-18  Bruno Haible  <bruno@clisp.org>
41919
41920         * gnulib-tool (func_exit): Update comment.
41921
41922 2008-09-18  Simon Josefsson  <simon@josefsson.org>
41923
41924         * modules/getaddrinfo (Depends-on): Remove strdup, this module
41925         assumes strdup exists and does not depend on strdup to return
41926         ENOMEM on out of memory conditions.
41927
41928 2008-09-18  Bruno Haible  <bruno@clisp.org>
41929
41930         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
41931         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
41932         digits for the exponent.
41933
41934 2008-09-18  Jim Meyering  <meyering@redhat.com>
41935             Bruno Haible  <bruno@clisp.org>
41936
41937         * lib/vasnprintf.c (decimal_point_char): Define also if
41938         NEED_PRINTF_INFINITE_LONG_DOUBLE.
41939
41940 2008-09-16  Bruno Haible  <bruno@clisp.org>
41941         and Eric Blake  <ebb9@byu.net>
41942
41943         vasnprintf: support Irix 5.3
41944         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
41945         that mishandle long double infinity.
41946         Reported by Tom G. Christensen.
41947
41948 2008-09-16  Bruno Haible  <bruno@clisp.org>
41949
41950         * doc/glibc-functions/scandir.texi: Mention the function is missing on
41951         Solaris 9.
41952         * doc/glibc-functions/alphasort.texi: Likewise.
41953         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
41954
41955 2008-09-16  Jim Meyering  <meyering@redhat.com>
41956
41957         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
41958         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
41959         a umask modification leak out of a subshell.  Otherwise, the
41960         opensolaris /bin/sh would be accepted and thus cause unwarranted
41961         failures in the coreutils test suite.
41962
41963 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
41964
41965         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
41966         to succeed.
41967
41968 2008-09-16  Jim Meyering  <meyering@redhat.com>
41969
41970         avoid spurious test failure when library is built without ACL support
41971         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
41972         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
41973         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
41974         * tests/test-copy-acl.sh: Likewise.
41975
41976 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41977
41978         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
41979         based on character occurrence counts.
41980
41981 2008-09-15  Eric Blake  <ebb9@byu.net>
41982
41983         tests: avoid some compiler warnings
41984         * tests/test-memchr.c (main): Pass NULL indirectly.
41985         * tests/test-closein.c (main): Avoid unused variable.
41986
41987 2008-09-15  Bruno Haible  <bruno@clisp.org>
41988
41989         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
41990         are missing on OpenBSD 4.0 individually.
41991         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
41992
41993 2008-09-15  Bruno Haible  <bruno@clisp.org>
41994
41995         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
41996         * doc/posix-functions/strerror.texi: Mention also Cygwin.
41997         * doc/posix-functions/perror.texi: Likewise.
41998         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
41999         is missing.
42000         Reported by Eric Blake.
42001
42002         * lib/errno.in.h: Use replacement values >= 2000.
42003         Reported by Eric Blake.
42004
42005 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42006
42007         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
42008         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
42009         limit.
42010         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
42011         compareseq was aborted.
42012
42013 2008-09-14  Bruno Haible  <bruno@clisp.org>
42014
42015         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
42016         yvec_edit_count.
42017         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
42018         (fstrcmp_bounded): Simplify result computation accordingly.
42019
42020 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42021
42022         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
42023         (fstrcmp): Define in terms of fstrcmp_bounded.
42024         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
42025         lower_bound argument.
42026         Return quickly if the result is certainly < lower_bound.
42027         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
42028
42029 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42030
42031         * lib/diffseq.h (EARLY_ABORT): New macro.
42032         (compareseq): Change return type to bool. Return true when EARLY_ABORT
42033         evaluates to true.
42034
42035 2008-09-14  Bruno Haible  <bruno@clisp.org>
42036
42037         * modules/perror-tests: New file.
42038         * tests/test-perror.sh: New file.
42039         * tests/test-perror.c: New file.
42040
42041         New module 'perror'.
42042         * lib/stdio.in.h (perror): New declaration.
42043         * lib/perror.c: New file.
42044         * m4/perror.m4: New file.
42045         * modules/perror: New file.
42046         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
42047         * doc/posix-functions/perror.texi: Mention the perror module.
42048         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
42049         REPLACE_PERROR.
42050         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
42051         REPLACE_PERROR.
42052
42053 2008-09-14  Bruno Haible  <bruno@clisp.org>
42054
42055         * modules/stdio (Makefile.am): Reorder to match the order in
42056         lib/stdio.in.h.
42057         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
42058
42059 2008-09-13  Bruno Haible  <bruno@clisp.org>
42060
42061         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
42062
42063 2008-09-13  Bruno Haible  <bruno@clisp.org>
42064
42065         Extend strerror to cover the added errno values.
42066         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
42067         (rpl_strerror): Provide error messages for the added errno values and
42068         for the WSA* values.
42069         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
42070         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
42071         strerror.
42072         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
42073         * modules/strerror (Depends-on): Add errno.
42074         * doc/posix-functions/strerror.texi: Document the change.
42075         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
42076         and EOVERFLOW.
42077
42078 2008-09-13  Bruno Haible  <bruno@clisp.org>
42079
42080         * modules/EOVERFLOW: Remove file.
42081         * m4/eoverflow.m4: Remove file.
42082         * modules/EOVERFLOW-tests: Remove file.
42083         * tests/test-EOVERFLOW.c: Remove file.
42084         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
42085         * modules/ftell (Depends-on): Likewise.
42086         * modules/getdelim (Depends-on): Likewise.
42087         * modules/getugroups (Depends-on): Likewise.
42088         * modules/poll (Depends-on): Likewise.
42089         * modules/snprintf (Depends-on): Likewise.
42090         * modules/sprintf-posix (Depends-on): Likewise.
42091         * modules/vasnprintf (Depends-on): Likewise.
42092         * modules/vasprintf (Depends-on): Likewise.
42093         * modules/vfprintf-posix (Depends-on): Likewise.
42094         * modules/vsnprintf (Depends-on): Likewise.
42095         * modules/vsprintf-posix (Depends-on): Likewise.
42096         * modules/xvasprintf (Depends-on): Likewise.
42097         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
42098         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
42099         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
42100         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
42101         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
42102         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
42103         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
42104         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
42105         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
42106         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
42107         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
42108         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
42109         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
42110         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
42111         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
42112         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
42113         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
42114         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
42115         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
42116         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
42117         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
42118         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
42119         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
42120         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
42121         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
42122         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
42123         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
42124         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
42125         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
42126         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
42127         * MODULES.html.sh: Remove EOVERFLOW.
42128         * NEWS: Mention the change.
42129
42130 2008-09-13  Bruno Haible  <bruno@clisp.org>
42131
42132         * modules/errno-tests: New file.
42133         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
42134
42135         * lib/errno.in.h: New file.
42136         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
42137         * modules/errno: New file.
42138         * doc/posix-headers/errno.texi: Update documentation.
42139         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
42140
42141 2008-09-13  Bruno Haible  <bruno@clisp.org>
42142
42143         * tests/test-poll.c: Use #if for native Windows, rather than testing
42144         __MSVCRT__.
42145
42146 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42147             Bruno Haible  <bruno@clisp.org>
42148
42149         * lib/glob.c: Don't include <pwd.h> on native Windows.
42150         (WINDOWS32): New macro.
42151         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
42152
42153 2008-09-13  Bruno Haible  <bruno@clisp.org>
42154
42155         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
42156         (ETIMEDOUT): Remove macro.
42157         (glthread_cond_timedwait_multithreaded): New declaration.
42158         (glthread_cond_timedwait): Use it.
42159         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
42160         (glthread_cond_timedwait_multithreaded): New function.
42161
42162 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
42163
42164         * modules/poll-tests: Do not check for io.h.
42165         * tests/test-poll.c: Check for __MSVCRT__ instead.
42166
42167 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
42168
42169         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
42170         * modules/poll-tests: Add inet_pton, stdbool, sockets.
42171         * tests/test-poll.c: Use them.  Use _pipe on Windows.
42172
42173 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
42174
42175         * modules/poll-tests: New.
42176         * tests/test-poll.c: New.
42177
42178 2008-09-12  Eric Blake  <ebb9@byu.net>
42179
42180         frexp: test for NetBSD failure on -0.0
42181         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
42182         not all, bugs from NetBSD 3.0 have been fixed.
42183         * doc/posix-functions/frexp.texi (frexp): Document bug.
42184         Reported by Thomas Klausner.
42185
42186         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
42187         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
42188         literal -0.0.
42189         Reported by Jonathan C. Patschke <jp@centtech.com>.
42190
42191 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42192
42193         * lib/glthread/cond.h: Use dummy implementation also if
42194         USE_WIN32_THREADS.
42195
42196 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42197
42198         * modules/fnmatch-posix (License): Change to LGPLv2+.
42199         * modules/fnmatch-gnu (License): Likewise.
42200
42201 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42202
42203         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
42204
42205 2008-09-11  Jim Meyering  <meyering@redhat.com>
42206
42207         * users.txt: Add gtk-vnc.
42208
42209 2008-09-08  Simon Josefsson  <simon@josefsson.org>
42210
42211         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
42212         rotate amounts.
42213
42214         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
42215         required for 16-bit and 8-bit rotates.
42216         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
42217         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
42218         UINT8_MAX instead of hard-coded constants.
42219         Suggested by Paul Eggert.
42220
42221 2008-09-07  Bruno Haible  <bruno@clisp.org>
42222
42223         * tests/test-striconveh.c (main): Check behaviour when converting from
42224         UTF-7.
42225
42226         Make striconveh work better with stateful encodings.
42227         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
42228         that iconv does not increment the inptr when returning -1/EINVAL.
42229
42230 2008-09-07  Bruno Haible  <bruno@clisp.org>
42231
42232         * build-aux/config.rpath: Update according to libtool-2.2.6.
42233         * build-aux/config.libpath: Likewise.
42234
42235 2008-09-06  Bruno Haible  <bruno@clisp.org>
42236
42237         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
42238         * lib/freadptr.c (freadptr): Likewise.
42239         * lib/freadseek.c (freadptrinc): Likewise.
42240         Reported by Simon Josefsson.
42241
42242 2008-09-06  Bruno Haible  <bruno@clisp.org>
42243
42244         * modules/freadptr (License): Change to LGPLv2+.
42245         * modules/freadseek (License): Likewise.
42246         Suggested by Eric Blake.
42247
42248         * modules/memchr2 (License): Change to LGPLv2+.
42249         Approved by Eric Blake.
42250
42251 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42252             Bruno Haible  <bruno@clisp.org>
42253
42254         Make gnulib-tool work with native 'sed' on AIX.
42255         * gnulib-tool (sed_noop): New variable.
42256         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
42257         func_add_or_update, func_create_testdir): Use it to initialize sed
42258         script variables.
42259         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
42260
42261 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
42262             Bruno Haible  <bruno@clisp.org>
42263
42264         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
42265         also works after #include directives.
42266
42267 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
42268
42269         getdate.y: reject an out-of-range timezone value
42270         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
42271         the range [-24...+24].  When specified with only one or two digits,
42272         * tests/test-getdate.c: Tests for the fix.
42273         * doc/getdate.texi: Document this change.
42274
42275 2008-09-03  Bruno Haible  <bruno@clisp.org>
42276
42277         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
42278
42279 2008-09-02  Simon Josefsson  <simon@josefsson.org>
42280
42281         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
42282         <bruce.korb@gmail.com> with ideas from Ben Pfaff
42283         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
42284         Blake <ebb9@byu.net>.
42285
42286         * tests/test-bitrotate.c: Add more test vectors.
42287
42288 2008-09-02  Eric Blake  <ebb9@byu.net>
42289
42290         vasnprintf-posix: handle large precision via %.*d
42291         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
42292         when handling it ourselves.
42293         * tests/test-vasnprintf-posix.c (test_function): Add test.
42294         * tests/test-snprintf-posix.h (test_function): Likewise.
42295         * tests/test-sprintf-posix.h (test_function): Likewise.
42296         * tests/test-vasprintf-posix.c (test_function): Likewise.
42297         Reported by Alain Guibert.
42298
42299 2008-09-01  Eric Blake  <ebb9@byu.net>
42300
42301         c-stack: make configure-time check more robust
42302         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
42303         successful sigaction call.
42304         Reported by Tom G. Christensen.
42305
42306 2008-09-01  Bruno Haible  <bruno@clisp.org>
42307
42308         New module 'findprog-lgpl'.
42309         * modules/findprog-lgpl: New file.
42310         * lib/findprog-lgpl.c: New file.
42311         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
42312         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
42313         to decide whether to use strdup or xstrdup, concatenated_filename or
42314         xconcatenated_filename.
42315
42316 2008-09-01  Bruno Haible  <bruno@clisp.org>
42317
42318         Split module 'concat-filename' into 'concat-filename' (LGPL) and
42319         'xconcat-filename' (GPL).
42320         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
42321         (License): Change to LGPLv2+.
42322         * modules/xconcat-filename: New file.
42323         * lib/concat-filename.h (concatenated_filename): Change specification.
42324         (xconcatenated_filename): New declaration.
42325         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
42326         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
42327         memory situations.
42328         * lib/xconcat-filename.c: New file.
42329         * NEWS: Mention the change.
42330         * lib/findprog.c: Include concat-filename.h, not filename.h.
42331         (find_in_path): Use xconcatenated_filename instead of
42332         concatenated_filename.
42333         * lib/javacomp.c: Include concat-filename.h, not filename.h.
42334         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
42335         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
42336         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
42337         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
42338         instead of concatenated_filename.
42339         * lib/javaexec.c: Include concat-filename.h, not filename.h.
42340         (execute_java_class): Use xconcatenated_filename instead of
42341         concatenated_filename.
42342         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
42343         * modules/javacomp (Depends-on): Likewise.
42344         * modules/javaexec (Depends-on): Likewise.
42345
42346 2008-09-01  Bruno Haible  <bruno@clisp.org>
42347
42348         Split module 'filename' into 'filename' and 'concat-filename'.
42349         * modules/filename: Keep only lib/filename.h.
42350         (License): Change to LGPLv2+.
42351         * modules/concat-filename: New file, extracted from modules/filename.
42352         * lib/filename.h (concatenated_filename): Remove declaration.
42353         * lib/concat-filename.h: New file, extracted from lib/filename.h.
42354         * lib/concat-filename.c: Include concat-filename.h.
42355         * NEWS: Mention the change.
42356
42357 2008-09-01  Simon Josefsson  <simon@josefsson.org>
42358
42359         * lib/bitrotate.h (rotl8, rotr8): Add.
42360
42361         * modules/bitrotate (configure.ac): Need
42362         AC_REQUIRE([AC_C_INLINE]).
42363         (Description): Mention stdint.h.  Reported by Bruno Haible
42364         <bruno@clisp.org>.
42365
42366         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
42367         Paolo Bonzini <bonzini@gnu.org>.
42368
42369 2008-08-31  Bruno Haible  <bruno@clisp.org>
42370
42371         Assume Solaris specific bi-arch conventions on Solaris systems.
42372         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
42373         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
42374         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
42375         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
42376         like acl_libdirstem.
42377         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
42378         acl_libdirstem.
42379         * NEWS: Mention the change.
42380         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
42381
42382 2008-08-31  Jim Meyering  <meyering@redhat.com>
42383
42384         * lib/strftime.h: Add comments describing the two added arguments.
42385
42386         remove duplicate #include directives
42387         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
42388         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
42389
42390 2008-08-31  Bruno Haible  <bruno@clisp.org>
42391
42392         New module 'sigpipe-die'.
42393         * modules/sigpipe-die: New file.
42394         * lib/sigpipe-die.h: New file.
42395         * lib/sigpipe-die.c: New file.
42396         * MODULES.html.sh (Signal handling): Add sigpipe-die.
42397
42398 2008-08-31  Bruno Haible  <bruno@clisp.org>
42399
42400         Don't override previously installed signal handlers.
42401         * lib/fatal-signal.c (saved_sigactions): New variable.
42402         (uninstall_handlers): Reset the signal to the saved handler, not
42403         to SIG_DFL (except when ignored).
42404         (install_handlers): Save the previous handlers.
42405
42406 2008-08-30  Bruno Haible  <bruno@clisp.org>
42407
42408         * gnulib-tool (func_reset_sigpipe): New function.
42409         (func_get_automake_snippet, func_modules_transitive_closure,
42410         func_import): Invoke it before a join command that reads from stdin,
42411         to avoid "echo: write error: Broken pipe" error messages on stderr.
42412         Reported by Sam Steingold <sds@gnu.org>.
42413
42414 2008-08-30  Bruno Haible  <bruno@clisp.org>
42415
42416         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
42417         Code copied from m4/open.m4.
42418         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
42419         access and the filename ends in a slash. Code copied from lib/open.c.
42420         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
42421         * tests/test-fopen.c (main): Check against bug with trailing slash.
42422
42423 2008-08-29  Bruno Haible  <bruno@clisp.org>
42424
42425         Avoid some "gcc -pedantic" warnings.
42426         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
42427         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
42428         * lib/dirent.in.h: Likewise.
42429         * lib/fcntl.in.h: Likewise.
42430         * lib/float.in.h: Likewise.
42431         * lib/iconv.in.h: Likewise.
42432         * lib/inttypes.in.h: Likewise.
42433         * lib/locale.in.h: Likewise.
42434         * lib/math.in.h: Likewise.
42435         * lib/netinet_in.in.h: Likewise.
42436         * lib/search.in.h: Likewise.
42437         * lib/signal.in.h: Likewise.
42438         * lib/stdarg.in.h: Likewise.
42439         * lib/stdint.in.h: Likewise.
42440         * lib/stdio.in.h: Likewise.
42441         * lib/stdlib.in.h: Likewise.
42442         * lib/string.in.h: Likewise.
42443         * lib/strings.in.h: Likewise.
42444         * lib/sys_select.in.h: Likewise.
42445         * lib/sys_socket.in.h: Likewise.
42446         * lib/sys_stat.in.h: Likewise.
42447         * lib/sys_time.in.h: Likewise.
42448         * lib/sysexits.in.h: Likewise.
42449         * lib/time.in.h: Likewise.
42450         * lib/unistd.in.h: Likewise.
42451         * lib/wchar.in.h: Likewise.
42452         * lib/wctype.in.h: Likewise.
42453         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
42454         * modules/fchdir (Makefile.am): Likewise.
42455         * modules/fcntl (Makefile.am): Likewise.
42456         * modules/float (Makefile.am): Likewise.
42457         * modules/iconv_open (Makefile.am): Likewise.
42458         * modules/inttypes (Makefile.am): Likewise.
42459         * modules/locale (Makefile.am): Likewise.
42460         * modules/math (Makefile.am): Likewise.
42461         * modules/netinet_in (Makefile.am): Likewise.
42462         * modules/search (Makefile.am): Likewise.
42463         * modules/signal (Makefile.am): Likewise.
42464         * modules/stdarg (Makefile.am): Likewise.
42465         * modules/stdint (Makefile.am): Likewise.
42466         * modules/stdio (Makefile.am): Likewise.
42467         * modules/stdlib (Makefile.am): Likewise.
42468         * modules/string (Makefile.am): Likewise.
42469         * modules/strings (Makefile.am): Likewise.
42470         * modules/sys_select (Makefile.am): Likewise.
42471         * modules/sys_socket (Makefile.am): Likewise.
42472         * modules/sys_stat (Makefile.am): Likewise.
42473         * modules/sys_time (Makefile.am): Likewise.
42474         * modules/sysexits (Makefile.am): Likewise.
42475         * modules/time (Makefile.am): Likewise.
42476         * modules/unistd (Makefile.am): Likewise.
42477         * modules/wchar (Makefile.am): Likewise.
42478         * modules/wctype (Makefile.am): Likewise.
42479         Reported by Reuben Thomas <rrt@sc3d.org>.
42480
42481 2008-08-29  Bruno Haible  <bruno@clisp.org>
42482
42483         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
42484         any more.
42485
42486 2008-08-29  Simon Josefsson  <simon@josefsson.org>
42487
42488         * MODULES.html.sh (Misc): Add bitrotate.
42489
42490         * modules/bitrotate: New file.
42491
42492         * lib/bitrotate.h: New file.
42493
42494         * modules/bitrotate-tests: New file.
42495
42496         * tests/test-bitrotate.c: New file.
42497
42498         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
42499         on the bitrotate module.
42500
42501         * lib/arctwo.c: Use new bitrotate module.
42502
42503 2008-08-29  Jim Meyering  <meyering@redhat.com>
42504
42505         bootstrap: merge changes from coreutils
42506         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
42507         of copied files.  Remove a kludge, now that this is fixed.
42508         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
42509         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
42510         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
42511
42512 2008-08-29  Bruno Haible  <bruno@clisp.org>
42513
42514         * MODULES.html.sh: Remove --cvs-urls option.
42515
42516 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
42517
42518         maint.mk: adjust to file name change
42519         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
42520
42521 2008-08-28  Jim Meyering  <meyering@redhat.com>
42522
42523         * modules/getndelim2 (License): Relicense to LGPLv2+.
42524         Approved by Richard Stallman for the version of 1995, and by
42525         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
42526
42527 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
42528
42529         * lib/getdelim.c (flockfile, funlockfile): Make all of them
42530         dummy if one is not available.  Do not touch them if
42531         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
42532         (getc_maybe_unlocked): New.
42533         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
42534
42535 2008-08-26  Eric Blake  <ebb9@byu.net>
42536
42537         doc/INSTALL: resync from autoconf
42538         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
42539         (INSTALL_PRELUDE): Delete; this is done more efficiently by
42540         moving...
42541         * install.texi [!autoconf]: ...here.  Resync from autoconf.
42542         * INSTALL: Regenerate.
42543         * INSTALL.ISO: New file.
42544         * INSTALL.UTF-8: Likewise.
42545
42546 2008-08-26  Jim Meyering  <meyering@redhat.com>
42547
42548         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
42549         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
42550         these definitions conditional, so that they may be overridden, too.
42551
42552 2008-08-26  Bruno Haible  <bruno@clisp.org>
42553
42554         Generate INSTALL file variants with prettier quotes.
42555         * doc/Makefile (INSTALL_PRELUDE): New macro.
42556         (INSTALL): Use it.
42557         (INSTALL.ISO, INSTALL.UTF-8): New rules.
42558
42559 2008-08-26  Bruno Haible  <bruno@clisp.org>
42560
42561         Run makeinfo in an English locale.
42562         * doc/Makefile (MAKEINFO): New variable.
42563
42564 2008-08-26  Bruno Haible  <bruno@clisp.org>
42565
42566         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
42567         Suggested by Eric Blake.
42568
42569 2008-08-25  Bruno Haible  <bruno@clisp.org>
42570
42571         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
42572
42573 2008-08-25  Eric Blake  <ebb9@byu.net>
42574
42575         c-stack: test that stack overflow can be caught
42576         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
42577         that platform allows handling stack overflow; at least OS/2 EMX
42578         has sigaltstack, but crashes before transferring control to
42579         handler on stack overflow.
42580         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
42581         check for HAVE_STACK_OVERFLOW_HANDLING.
42582         Reported by Elbert Pol.
42583
42584 2008-08-25  Bruno Haible  <bruno@clisp.org>
42585
42586         * doc/posix-functions/strftime.texi: Fix description of strftime
42587         module.
42588
42589 2008-08-24  Bruno Haible  <bruno@clisp.org>
42590
42591         * tests/uniwidth/test-uc_width2.c: New file.
42592         * tests/uniwidth/test-uc_width2.sh: New file.
42593         * modules/uniwidth/width-tests (Files): Add the new files.
42594         (TESTS): Add uniwidth/test-uc_width2.sh.
42595         (TESTS_ENVIRONMENT): New variable.
42596         (check_PROGRAMS): Add test-uc_width2.
42597         (test_uc_width2_SOURCES): New variable.
42598
42599         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
42600         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
42601         not 0x00AB.
42602         Reported by Alexander V. Lukyanov <lav@netis.ru>.
42603
42604 2008-08-22  Eric Blake  <ebb9@byu.net>
42605
42606         test-lock, test-tls: mention why a test is skipped
42607         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
42608         skipped.
42609         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
42610
42611         count-one-bits: relax license
42612         * modules/count-one-bits (License): Relicense to LGPLv2+.
42613         Suggested by Ludovic Courtès, approved by Ben Pfaff.
42614
42615 2008-08-22  Andreas Schwab  <schwab@suse.de>
42616
42617         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
42618         Remove spurious space in assignment.
42619
42620 2008-08-21  Simon Josefsson  <simon@josefsson.org>
42621
42622         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
42623         Paul Eggert <eggert@CS.UCLA.EDU>.
42624
42625 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
42626
42627         * modules/gettext: Add m4/threadlib.m4.
42628
42629 2008-08-19  Eric Blake  <ebb9@byu.net>
42630
42631         test-c-stack: fix compilation failure on FreeBSD 5.0
42632         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
42633         headers before <sys/resource.h>.
42634         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
42635         the bug.
42636         Reported by Nelson H. F. Beebe.
42637
42638         strverscmp: migrate from "strverscmp.h" to <string.h>
42639         * modules/string (Makefile.am): Add new hooks.
42640         * modules/strverscmp (Files): Remove strverscmp.h.
42641         (Depends-on): Add string.
42642         (configure.ac): Add indicator.
42643         (Include): Mention new header.
42644         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
42645         defaults.
42646         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
42647         results.
42648         * lib/strverscmp.h: Delete.
42649         * lib/string.in.h (strverscmp): Provide declaration, when needed.
42650         * tests/test-strverscmp.c (includes): Adjust client.
42651         * lib/check-version.c (includes): Likewise.
42652         * NEWS: Document the change.
42653
42654         strverscmp: add unit test
42655         * modules/strverscmp-tests: New file.
42656         * tests/test-strverscmp.c: Likewise.
42657
42658 2008-08-19  Simon Josefsson  <simon@josefsson.org>
42659
42660         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
42661         regarding Windows crypto stuff, from Mono.
42662
42663 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
42664
42665         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
42666         if present, for intel RND.  Return error on failures.
42667
42668 2008-08-18  Ben Pfaff  <blp@gnu.org>
42669
42670         gitlog-to-changelog: give better diagnostic for failed pipe-open
42671         * build-aux/gitlog-to-changelog: Improve error message: suggest
42672         that the version of Git may be too old.
42673
42674 2008-08-18  Simon Josefsson  <simon@josefsson.org>
42675
42676         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
42677         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
42678
42679 2008-08-18  Bruno Haible  <bruno@clisp.org>
42680
42681         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
42682         pthread_in_use().
42683
42684 2008-08-18  Bruno Haible  <bruno@clisp.org>
42685
42686         * lib/glthread/threadlib.c: Include <pthread.h>.
42687
42688 2008-08-18  Bruno Haible  <bruno@clisp.org>
42689
42690         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
42691         glthread_recursive_lock_* macros.
42692         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
42693         Fix syntax error.
42694
42695 2008-08-18  Bruno Haible  <bruno@clisp.org>
42696
42697         * lib/glthread/thread.c: Avoid forcing a context switch right after
42698         thread creation.
42699
42700 2008-08-17  Bruno Haible  <bruno@clisp.org>
42701
42702         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
42703         * lib/glthread/thread.h: Provide Win32 specific implementation.
42704         * modules/thread (Files): Add lib/glthread/thread.c.
42705         (Depends-on): Add lock.
42706         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
42707
42708 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42709
42710         New module 'yield'.
42711         * modules/yield: New file.
42712         * lib/glthread/yield.h: New file.
42713         * m4/yield.m4: New file.
42714         * MODULES.html.sh (Multithreading): Add yield.
42715
42716 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42717
42718         New module 'thread'.
42719         * modules/thread: New file.
42720         * lib/glthread/thread.h: New file.
42721         * m4/thread.m4: New file.
42722         * MODULES.html.sh (Multithreading): Add thread.
42723
42724 2008-08-17  Bruno Haible  <bruno@clisp.org>
42725
42726         * lib/glthread/lock.h: Include <stdlib.h> always.
42727         * lib/glthread/tls.h: Likewise.
42728         * lib/glthread/cond.h: Likewise.
42729
42730 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42731
42732         New module 'cond'.
42733         * modules/cond: New file.
42734         * lib/glthread/cond.h: New file.
42735         * lib/glthread/cond.c: New file.
42736         * m4/cond.m4: New file.
42737         * MODULES.html.sh (Multithreading): Add cond.
42738
42739 2008-08-16  Eric Blake  <ebb9@byu.net>
42740
42741         c-stack: fix regression on Irix 5.3 from 2008-06-21
42742         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
42743         sa_sigaction...
42744         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
42745         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
42746         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
42747         * modules/signal (Makefile.am): Use the value.
42748         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
42749         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
42750         * doc/posix-headers/signal.texi (signal.h): Document this
42751         portability issue.
42752         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
42753         Reported by Tom G. Christensen.
42754
42755 2008-08-17  Bruno Haible  <bruno@clisp.org>
42756
42757         New module 'threadlib'.
42758         * modules/threadlib: New file.
42759         * lib/glthread/threadlib.c: New file, extracted from
42760         lib/glthread/lock.c.
42761         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
42762         functions.
42763         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
42764         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
42765         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
42766         macros.
42767         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
42768         (gl_DISABLE_THREADS): Remove macro.
42769         * modules/lock (Files): Remove build-aux/config.rpath.
42770         (Depends-on): Remove havelib. Add threadlib.
42771         (configure.ac-early): Remove section.
42772         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
42773         * modules/tls (Depends-on): Remove lock. Add threadlib.
42774         (Link): New section, copied from threadlib.
42775         * MODULES.html.sh (Multithreading): Add threadlib.
42776
42777 2008-08-14  Bruno Haible  <bruno@clisp.org>
42778
42779         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
42780         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
42781         glthread_rwlock_unlock, glthread_rwlock_destroy,
42782         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
42783         glthread_recursive_lock_destroy): Define as macros always.
42784         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
42785         glthread_lock_lock.
42786         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
42787         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
42788         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
42789         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
42790         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
42791         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
42792         (glthread_recursive_lock_lock_func): Renamed from
42793         glthread_recursive_lock_lock.
42794         (glthread_recursive_lock_unlock_func): Renamed from
42795         glthread_recursive_lock_unlock.
42796         (glthread_recursive_lock_destroy_func): Renamed from
42797         glthread_recursive_lock_destroy.
42798
42799 2008-08-14  Bruno Haible  <bruno@clisp.org>
42800
42801         * lib/glthread/lock.h: Renamed from lib/lock.h.
42802         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
42803         * lib/glthread/tls.h: Renamed from lib/tls.h.
42804         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
42805         * lib/fstrcmp.c: Update includes.
42806         * lib/strsignal.c: Update includes.
42807         * modules/lock (Files, Makefile.am): Update.
42808         (Include): Change to "glthread/lock.h".
42809         * modules/tls (Files, Makefile.am): Update.
42810         (Include): Change to "glthread/tls.h".
42811         * tests/test-lock.c: Update includes.
42812         * tests/test-tls.c: Update includes.
42813         * NEWS: Mention the renamed header files.
42814
42815 2008-08-11  Jim Meyering  <meyering@redhat.com>
42816
42817         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
42818
42819 2008-08-11  Eric Blake  <ebb9@byu.net>
42820
42821         test-c-stack: avoid C99-ism
42822         * tests/test-c-stack.c (main): Fix whitespace, move declaration
42823         before statement.
42824         Reported by Alain Guibert.
42825
42826 2008-08-10  Jim Meyering  <meyering@redhat.com>
42827
42828         ensure that return value of uinttostr et al are not ignored
42829         * lib/inttostr.h (__GNUC_PREREQ): Define.
42830         (__attribute_warn_unused_result__): Define.
42831         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
42832
42833 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
42834
42835         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
42836         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
42837
42838 2008-08-07  Jim Meyering  <meyering@redhat.com>
42839
42840         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
42841
42842         * modules/mkstemp (License): Relicense under LGPLv2+.
42843         * modules/tempname (License): Likewise.
42844
42845 2008-08-06  Bruno Haible  <bruno@clisp.org>
42846
42847         * lib/poll.c (poll): Further micro-optimization.
42848
42849 2008-08-06  Jim Meyering  <meyering@redhat.com>
42850
42851         inet_pton.c: use locale-independent tolower
42852         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
42853         (inet_pton6): Use c_tolower rather than tolower.
42854         * modules/inet_pton (Depends-on): Add c-ctype.
42855
42856 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
42857
42858         * lib/poll.c (poll): Avoid division when timeout is 0, cache
42859         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
42860
42861 2008-08-06  Jim Meyering  <meyering@redhat.com>
42862
42863         * modules/inet_pton (License): Relicense under LGPLv2+.
42864
42865 2008-08-03  Bruno Haible  <bruno@clisp.org>
42866
42867         Additional non-aborting API for lock and tls.
42868         * lib/lock.h: Include <errno.h>.
42869         (glthread_lock_init): New macro/function.
42870         (gl_lock_init): Define as wrapper around glthread_lock_init.
42871         (glthread_lock_lock): New macro/function.
42872         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
42873         (glthread_lock_unlock): New macro/function.
42874         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
42875         (glthread_lock_destroy): New macro/function.
42876         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
42877         (glthread_rwlock_init): New macro/function.
42878         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
42879         (glthread_rwlock_rdlock): New macro/function.
42880         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
42881         (glthread_rwlock_wrlock): New macro/function.
42882         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
42883         (glthread_rwlock_unlock): New macro/function.
42884         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
42885         (glthread_rwlock_destroy): New macro/function.
42886         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
42887         (glthread_recursive_lock_init): New macro/function.
42888         (gl_recursive_lock_init): Define as wrapper around
42889         glthread_recursive_lock_init.
42890         (glthread_recursive_lock_lock): New macro/function.
42891         (gl_recursive_lock_lock): Define as wrapper around
42892         glthread_recursive_lock_lock.
42893         (glthread_recursive_lock_unlock): New macro/function.
42894         (gl_recursive_lock_unlock): Define as wrapper around
42895         glthread_recursive_lock_unlock.
42896         (glthread_recursive_lock_destroy): New macro/function.
42897         (gl_recursive_lock_destroy): Define as wrapper around
42898         glthread_recursive_lock_destroy.
42899         (glthread_once): New macro/function.
42900         (gl_once): Define as wrapper around glthread_once.
42901         Update function declarations.
42902         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
42903         glthread_rwlock_init. Return error code.
42904         (glthread_rwlock_rdlock_multithreaded): Renamed from
42905         glthread_rwlock_rdlock. Return error code.
42906         (glthread_rwlock_wrlock_multithreaded): Renamed from
42907         glthread_rwlock_wrlock. Return error code.
42908         (glthread_rwlock_unlock_multithreaded): Renamed from
42909         glthread_rwlock_unlock. Return error code.
42910         (glthread_rwlock_destroy_multithreaded): Renamed from
42911         glthread_rwlock_destroy. Return error code.
42912         (glthread_recursive_lock_init_multithreaded): Renamed from
42913         glthread_recursive_lock_init. Return error code.
42914         (glthread_recursive_lock_lock_multithreaded): Renamed from
42915         glthread_recursive_lock_lock. Return error code.
42916         (glthread_recursive_lock_unlock_multithreaded): Renamed from
42917         glthread_recursive_lock_unlock. Return error code.
42918         (glthread_recursive_lock_destroy_multithreaded): Renamed from
42919         glthread_recursive_lock_destroy. Return error code.
42920         (glthread_once_call): Make static.
42921         (glthread_once_multithreaded): Renamed from glthread_once.
42922         * lib/tls.h: Include <errno.h>.
42923         (glthread_tls_key_init): New macro/function.
42924         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
42925         (glthread_tls_set): New macro/function.
42926         (gl_tls_set): Define as wrapper around glthread_tls_set.
42927         (glthread_tls_key_destroy): New macro/function.
42928         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
42929         Update function declarations.
42930         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
42931         glthread_tls_get.
42932         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
42933
42934 2008-08-04  Eric Blake  <ebb9@byu.net>
42935
42936         gnumakefile: use space, not TAB, outside of targets
42937         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
42938
42939 2008-08-02  Jim Meyering  <meyering@redhat.com>
42940
42941         getdate.y: avoid locale-dependent date parsing failure
42942         In Turkish locales, getdate would fail to recognize keywords
42943         containing a lowercase "i".  The solution is not to rely on
42944         locale-sensitive case-conversion.
42945         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
42946         (lookup_word): Use c_toupper in place of toupper.
42947         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
42948         Reported by Vefa Bicakci <bicave@superonline.com> in
42949         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
42950         * modules/getdate (Depends-on): Add c-ctype.
42951
42952 2008-08-02  Bruno Haible  <bruno@clisp.org>
42953
42954         * gnulib-tool (func_import): When updating or creating a .gitignore
42955         file, prepend each added line with a slash, and ignore leading slashes
42956         from the existing lines.
42957         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
42958
42959 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42960
42961         Portability fix for GNU make 3.79.1.
42962         * top/GNUmakefile: Avoid 'else COND', which older GNU make
42963         versions do not understand.
42964
42965 2008-08-01  Bruno Haible  <bruno@clisp.org>
42966
42967         Work around bug of HP-UX 10.20 cc with -0.0 literal.
42968         * tests/test-isnanf.h (zero): New variable.
42969         (main): Avoid literal -0.0f.
42970         * tests/test-isnand.h (zero): New variable.
42971         (main): Avoid literal -0.0.
42972         * tests/test-isnanl.h (zero): New variable.
42973         (main): Avoid literal -0.0L.
42974         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
42975         (test_float, test_double, test_long_double): Avoid literals -0.0f,
42976         -0.0, -0.0L.
42977         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
42978         (test_signbitd): Avoid literal -0.0.
42979         (test_signbitl): Avoid literal -0.0L.
42980         * tests/test-ceilf1.c (zero): New variable.
42981         (main): Avoid literal -0.0f.
42982         * tests/test-ceill.c (zero): New variable.
42983         (main): Avoid literal -0.0L.
42984         * tests/test-floorf1.c (zero): New variable.
42985         (main): Avoid literal -0.0f.
42986         * tests/test-floorl.c (zero): New variable.
42987         (main): Avoid literal -0.0L.
42988         * tests/test-roundf1.c (zero): New variable.
42989         (main): Avoid literal -0.0f.
42990         * tests/test-round1.c (zero): New variable.
42991         (main): Avoid literal -0.0.
42992         * tests/test-roundl.c (zero): New variable.
42993         (main): Avoid literal -0.0L.
42994         * tests/test-truncf1.c (zero): New variable.
42995         (main): Avoid literal -0.0f.
42996         * tests/test-trunc1.c (zero): New variable.
42997         (main): Avoid literal -0.0.
42998         * tests/test-truncl.c (zero): New variable.
42999         (main): Avoid literal -0.0L.
43000         * tests/test-frexp.c (zero): New variable.
43001         (main): Avoid literal -0.0.
43002         * tests/test-frexpl.c (zero): New variable.
43003         (main): Avoid literal -0.0L.
43004         * tests/test-ldexpl.c (zero): New variable.
43005         (main): Avoid literal -0.0L.
43006         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
43007         (zerod, zerol): New variables.
43008         (test_function): Avoid literals -0.0, -0.0L.
43009         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
43010         (zerod, zerol): New variables.
43011         (test_function): Avoid literals -0.0, -0.0L.
43012         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
43013         (zerod, zerol): New variables.
43014         (test_function): Avoid literals -0.0, -0.0L.
43015         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
43016         (zerod, zerol): New variables.
43017         (test_function): Avoid literals -0.0, -0.0L.
43018         * tests/test-strtod.c (zero): New variable.
43019         (main): Avoid literal -0.0.
43020         Reported by Jonathan C. Patschke <jp@centtech.com>.
43021
43022 2008-07-31  Jim Meyering  <meyering@redhat.com>
43023
43024         sha256.h: correct definition of SHA224_DIGEST_SIZE
43025         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
43026         Reported by Paulie Pena IV <paulie4@gmail.com>.
43027         Define as 224 / 8, rather than as a literal.
43028         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
43029         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
43030         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
43031
43032 2008-07-31  Bruno Haible  <bruno@clisp.org>
43033
43034         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
43035         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
43036         Reported by Jonathan Patschke <jp@centtech.com>.
43037
43038 2008-07-31  Bruno Haible  <bruno@clisp.org>
43039
43040         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
43041         Reported by Paolo Bonzini <bonzini@gnu.org>.
43042
43043 2008-07-30  Eric Blake  <ebb9@byu.net>
43044
43045         test-strtod: allow compilation without -lm
43046         * tests/test-strtod.c (main): Avoid link dependence on fabs.
43047         Reported by Dennis Clarke <blastwave@gmail.com>.
43048
43049 2008-07-28  Jim Meyering  <meyering@redhat.com>
43050
43051         bootstrap: work also when there are no .po files in po/
43052         * build-aux/bootstrap (update_po_files): Complete the change
43053         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
43054
43055 2008-07-27  Jim Meyering  <meyering@redhat.com>
43056
43057         * users.txt: Add zile.
43058
43059 2008-07-26  Ben Pfaff  <blp@gnu.org>
43060
43061         Add missing dependencies on new m4/exponent[fdl].m4 files.
43062         * modules/isnanf-nolibm: Add m4/exponentf.m4.
43063         * modules/isnand-nolibm: Add m4/exponentd.m4.
43064         * modules/isnanl-nolibm: Add m4/exponentl.m4.
43065         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
43066         m4/isnan[fdl].m4, because the macros actually used moved.
43067         Reported by Jim Meyering.
43068
43069 2008-07-14  Ben Pfaff  <blp@gnu.org>
43070
43071         Add isinf module.
43072         * lib/isinf.c: New file.
43073         * lib/math.in.h: Define isinf macro if we have decided to replace
43074         it.
43075         * m4/isinf.m4: New file.
43076         * m4/math_h.m4: Initialize and substitute variables for isinf
43077         module.
43078         * modules/isinf: New file.
43079         * modules/isinf-tests: New file.
43080         * modules/math: Add substitutions for new module.
43081         * tests/test-isinf.c: New file.
43082         * doc/posix-functions/isinf.texi: Mention new module.
43083         * MODULES.html.sh: Mention new module.
43084
43085 2008-07-14  Ben Pfaff  <blp@gnu.org>
43086
43087         Factor out some macros for use by additional modules.
43088         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
43089         exponentf.m4.
43090         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
43091         exponentd.m4.
43092         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
43093         file exponentl.m4.
43094         * m4/exponentf.m4: New file.
43095         * m4/exponentd.m4: New file.
43096         * m4/exponentl.m4: New file.
43097         * modules/isnanf: Use new file m4/exponentf.m4.
43098         * modules/isnand: Use new file m4/exponentd.m4.
43099         * modules/isnanl: Use new file m4/exponentl.m4.
43100
43101 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
43102
43103         mktime.c: normalize tp->tm_isdst value to -1/0/1.
43104         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
43105         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
43106         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
43107
43108         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
43109         readlink on platforms without PATH_MAX.
43110
43111 2008-07-21  Eric Blake  <ebb9@byu.net>
43112
43113         Warn, not fail, on stale version.
43114         * top/GNUmakefile (_curr-ver): Tone down previous patch.
43115
43116         Don't allow installation with stale devel version number.
43117         * top/GNUmakefile (_is-install-target): New macro.
43118         (_curr-ver): Forbid installation with stale version number.
43119
43120 2008-07-20  Bruno Haible  <bruno@clisp.org>
43121
43122         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
43123         TESTS_ENVIRONMENT.
43124         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
43125
43126 2008-07-20  Bruno Haible  <bruno@clisp.org>
43127
43128         * lib/c-stack.h (c_stack_action): Add documentation.
43129         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
43130
43131 2008-07-20  Bruno Haible  <bruno@clisp.org>
43132
43133         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
43134         * modules/readlink (License): Likewise.
43135
43136 2008-07-17  Eric Blake  <ebb9@byu.net>
43137
43138         * modules/c-stack (Link): Fix typo.
43139
43140         Make c-stack use libsigsegv, when available.
43141         * modules/c-stack (Depends-on): Add libsigsegv.
43142         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
43143         needed.
43144         * lib/c-stack.c (SIGSTKSZ): Define fallback.
43145         (segv_handler, overflow_handler, c_stack_action)
43146         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
43147         implementation when libsigsegv is available, but only when using
43148         the library is necessary.
43149         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
43150         comment, explaining why XSI check fails on Linux.
43151         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
43152         * tests/test-c-stack2.sh: Tweak skip message.
43153         * NEWS: Document new link-time requirements.
43154
43155 2008-07-16  Eric Blake  <ebb9@byu.net>
43156
43157         c-stack: Expose false positives when not using libsigsegv.
43158         * modules/c-stack-tests (Files): Expand test.
43159         * tests/test-c-stack.c (main): Add means to conditionally trigger
43160         non-overflow SIGSEGV.
43161         * tests/test-c-stack2.sh: New file.
43162
43163 2008-07-14  Bruno Haible  <bruno@clisp.org>
43164
43165         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
43166         Reported by Eric Blake.
43167
43168 2008-07-14  Sam Steingold  <sds@gnu.org>
43169             Bruno Haible  <bruno@clisp.org>
43170
43171         New module libsigsegv.
43172         * modules/libsigsegv: New file.
43173         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
43174         modifications.
43175         * MODULES.html.sh (Signal handling): New section.
43176
43177 2008-07-14  Bruno Haible  <bruno@clisp.org>
43178
43179         * modules/unictype/ctype-* (Description): Add the word "function".
43180         Improves the resulting doc in MODULES.html.
43181
43182 2008-07-12  Ben Pfaff  <blp@gnu.org>
43183
43184         Add longlong module.
43185         * modules/longlong: New file.
43186
43187 2008-07-12  Bruno Haible  <bruno@clisp.org>
43188
43189         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
43190         to empty.
43191
43192 2008-07-10  Ben Pfaff  <blp@gnu.org>
43193
43194         Add isnan module.
43195         * doc/posix-functions/isnan.texi: Mention new module.
43196         * lib/math.in.h: Define isnan macro if we have decided to replace
43197         it.
43198         * m4/isnan.m4: New file.
43199         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
43200         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
43201         also.
43202         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
43203         redundancy.
43204         * m4/math_h.m4: Initialize and substitute variables for isnan
43205         module.
43206         * modules/isnan: New file.
43207         * modules/isnan-tests: New file.
43208         * modules/math: Add substitutions for new module.
43209         * tests/test-isnan.c: New file.
43210         * MODULES.html.sh: Mention new module.
43211
43212 2008-07-10  Ben Pfaff  <blp@gnu.org>
43213
43214         Add isnanf module.
43215         * lib/isnanf.m4: New file.
43216         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
43217         (gl_HAVE_ISNANF_IN_LIBM): New macro.
43218         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
43219         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
43220         * modules/isnanf: New file.
43221         * modules/isnanf-tests: New file.
43222         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
43223         files.
43224         * tests/test-isnanf-nolibm.c: factored most of its contents into
43225         new file tests/test-isnanf.h.
43226         * tests/test-isnanf.h: New file.
43227         * tests/test-isnanf.c: New file.
43228         * MODULES.html.sh: Mention new module.
43229         * doc/glibc-functions/isnanf.texi: Mention new module.
43230
43231 2008-07-10  Ben Pfaff  <blp@gnu.org>
43232
43233         Add isnand module.
43234         * lib/isnand.h: New file.
43235         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
43236         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
43237         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
43238         functionality also.
43239         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
43240         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
43241         (gl_HAVE_ISNAND_IN_LIBM): New macro.
43242         * modules/isnand: New file.
43243         * modules/isnand-tests: New file.
43244         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
43245         files.
43246         * tests/test-isnand-nolibm.c: factored most of its contents into
43247         new file tests/test-isnand.h.
43248         * tests/test-isnand.h: New file.
43249         * tests/test-isnand.c: New file.
43250         * MODULES.html.sh: Mention new module.
43251
43252 2008-07-10  Ben Pfaff  <blp@gnu.org>
43253
43254         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
43255         * lib/isnand.h: Rename lib/isnand-nolibm.h.
43256         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
43257         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
43258         * modules/isnanf-nolibm: Update references to renamed files.
43259         * modules/isnand-nolibm: Likewise.
43260         * modules/isnanf-nolibm-tests: Likewise.
43261         * modules/isnand-nolibm-tests: Likewise.
43262         * lib/frexp.c: Likewise.
43263         * lib/isfinite.c: Likewise.
43264         * lib/signbitd.c: Likewise.
43265         * lib/signbitf.c: Likewise.
43266         * lib/vasnprintf.c: Likewise.
43267         * tests/test-ceilf1.c: Likewise.
43268         * tests/test-ceilf2.c: Likewise.
43269         * tests/test-floorf1.c: Likewise.
43270         * tests/test-floorf2.c: Likewise.
43271         * tests/test-frexp.c: Likewise.
43272         * tests/test-round1.c: Likewise.
43273         * tests/test-round2.c: Likewise.
43274         * tests/test-roundf1.c: Likewise.
43275         * tests/test-strtod.c: Likewise.
43276         * tests/test-trunc1.c: Likewise.
43277         * tests/test-trunc2.c: Likewise.
43278         * tests/test-truncf1.c: Likewise.
43279         * tests/test-truncf2.c: Likewise.
43280         * NEWS: Mention the renamed header files.
43281
43282 2008-07-11  Jim Meyering  <meyering@redhat.com>
43283
43284         vc-list-files: make the last-resort awk code more portable
43285         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
43286         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
43287         does not support it.
43288
43289 2008-07-10  Eric Blake  <ebb9@byu.net>
43290
43291         Work with tar's bootstrap.
43292         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
43293         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
43294         an m4 comment.
43295
43296 2008-07-09  Jim Meyering  <meyering@redhat.com>
43297
43298         posix-shell.m4: fix typo that made this test malfunction
43299         * m4/posix-shell.m4: Remove capitalization in variable name.
43300
43301 2008-07-08  Bruno Haible  <bruno@clisp.org>
43302
43303         * m4/onceonly.m4: Update comments.
43304         Reported by Ben Pfaff <blp@cs.stanford.edu>.
43305
43306 2008-07-04  Jim Meyering  <meyering@redhat.com>
43307
43308         * users.txt: Add vc-dwim.
43309         (bison, coreutils): Use the gitweb URL.
43310
43311 2008-07-03  Jim Meyering  <meyering@redhat.com>
43312
43313         * users.txt: Add libffcall.  From Sam Steingold.
43314
43315 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
43316
43317         getdate.y: do not ignore TZ with relative day, month or year offset
43318         * lib/getdate.y (get_date): Move the tz-handling block to follow the
43319         relative-date-handling, since otherwise, the latter would clobber the
43320         sole output (an updated Start value) of the tz-handling block.
43321         * tests/test-getdate.c: Tests for the fix
43322
43323 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43324
43325         Recognize 'foo_LIBRARIES += libgnu.a'.
43326         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
43327         makefile snippet has already specified an installation location,
43328         also using '+='.
43329
43330 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
43331
43332         getdate.y: factor out common actions
43333         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
43334         Use them in place of open-coded actions.
43335
43336 2008-07-01  Simon Josefsson  <simon@josefsson.org>
43337
43338         Add self-test for getdate module.
43339         * modules/getdate-tests: New file.
43340         * tests/test-getdate.c: New file.
43341
43342 2008-06-29  Bruno Haible  <bruno@clisp.org>
43343
43344         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
43345         .gitignore.
43346         Reported by Sylvain Beucler <beuc@beuc.net>.
43347
43348 2008-06-29  Bruno Haible  <bruno@clisp.org>
43349
43350         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
43351         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
43352
43353 2008-06-29  Bruno Haible  <bruno@clisp.org>
43354
43355         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
43356         EXTRA_DIST.
43357         Reported by Sylvain Beucler <beuc@beuc.net>.
43358
43359 2008-06-26  Jim Meyering  <meyering@redhat.com>
43360
43361         make several modules depend on the "open" module
43362         This provides slightly increased consistency when opening-for-write
43363         the name of a non-directory spelled with a trailing slash.
43364         * modules/chdir-safer: Likewise.
43365         * modules/chown: Likewise.
43366         * modules/clean-temp: Likewise.
43367         * modules/copy-file: Likewise.
43368         * modules/fchdir: Likewise.
43369         * modules/fcntl-safer: Likewise.
43370         * modules/pipe: Likewise.
43371         * modules/utime: Likewise.
43372         Prompted by Eric Blake and Bruno Haible.
43373
43374 2008-06-24  Andreas Schwab  <schwab@suse.de>
43375
43376         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
43377         literals can be used as initializers for global variables.
43378
43379 2008-06-23  Eric Blake  <ebb9@byu.net>
43380
43381         Make gnulib-cache.m4 easier to diff.
43382         * gnulib-tool (func_import): Allow newlines when reading cached
43383         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
43384
43385 2008-06-23  Bruno Haible  <bruno@clisp.org>
43386
43387         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
43388         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
43389         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
43390         m4/signalblocking.m4.
43391         (gl_PREREQ_SIGACTION): Don't invoke it.
43392         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
43393         gl_PREREQ_SIG_HANDLER_H.
43394         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
43395         Don't check for sigaction here.
43396
43397 2008-06-23  Bruno Haible  <bruno@clisp.org>
43398
43399         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
43400         (install_handlers): Don't set the SA_RESETHAND flag.
43401
43402 2008-06-23  Bruno Haible  <bruno@clisp.org>
43403
43404         * m4/sigaction.m4: Comment fixes.
43405         * lib/signal.in.h: Likewise.
43406
43407 2008-06-23  Eric Blake  <ebb9@byu.net>
43408
43409         Fix typo.
43410         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
43411
43412         Avoid SA_ namespace.
43413         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
43414         Reported by Ralf Wildenhues.
43415
43416         Avoid test failure due to SA_RESTORER.
43417         * tests/test-sigaction.c (SA_MASK): New macro.
43418         (main): Avoid failing due to extension flags being set.
43419         Reported by Jim Meyering.
43420
43421         Revert use of sig-handler.h in sigprocmask.c.
43422         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
43423         it requires the existence of struct sigaction.
43424         * lib/sigprocmask.c (handler_t): Restore typedef.
43425         (rpl_signal, old_handlers): Use local type.
43426
43427 2008-06-22  Bruno Haible  <bruno@clisp.org>
43428
43429         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
43430         conditionally.
43431         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
43432
43433 2008-06-22  Bruno Haible  <bruno@clisp.org>
43434
43435         * doc/posix-functions/siginterrupt.texi: Move note.
43436
43437         * lib/signal.in.h (SA_RESTART): New macro.
43438         * lib/sigaction.c: Update comment.
43439
43440         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
43441
43442         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
43443         (gl_PREREQ_SIGPROCMASK): Invoke it.
43444         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
43445
43446         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
43447
43448         * lib/sigprocmask.c: Update a comment.
43449
43450 2008-06-21  Eric Blake  <ebb9@byu.net>
43451
43452         Use sigaction module rather than signal().
43453         * modules/c-stack (Depends-on): Add sigaction.
43454         * modules/fatal-signal (Depends-on): Likewise.
43455         * modules/nanosleep (Depends-on): Likewise.
43456         * modules/sigprocmask (Files): Add sig-handler.h.
43457         * modules/sigaction (Files): Likewise.
43458         * lib/sig-handler.h (get_handler): New file, suggested by Paul
43459         Eggert.
43460         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
43461         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
43462         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
43463         (init_fatal_signals): Likewise.
43464         * lib/nanosleep.c (rpl_nanosleep): Likewise.
43465         (siginterrupt): Delete fallback.
43466         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
43467         instead.
43468         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
43469         siginterrupt.
43470
43471         New module sigaction, for mingw.
43472         * modules/sigaction: New module...
43473         * modules/sigaction-tests: ...and its test.
43474         * m4/sigaction.m4: New file.
43475         * lib/sigaction.c: Likewise.
43476         * tests/test-sigaction.c: Likewise.
43477         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
43478         * modules/signal (Makefile.am): Likewise.
43479         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
43480         needed.
43481         * doc/posix-headers/signal.texi (signal.h): Mention provided
43482         types.
43483         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
43484         that sigaction is preferable.
43485         * doc/posix-functions/sigaction.texi (sigaction): Mention new
43486         module.
43487         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
43488         sigaction.
43489
43490         Improve robustness of sigprocmask by overriding signal.
43491         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
43492         is in use.
43493         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
43494         (SIGKILL, SIGSTOP): Provide fallbacks.
43495         (rpl_signal): Implement.
43496         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
43497         signal can be called inside handlers.
43498
43499         Fix nanosleep module on mingw.
43500         * modules/nanosleep (Depends-on): Add sys_select.
43501         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
43502
43503         Fix licensing of sigprocmask.
43504         * modules/raise (License): Relicense as LGPL.
43505
43506 2008-06-21  Bruno Haible  <bruno@clisp.org>
43507
43508         * lib/propername.c (proper_name_utf8): Don't use the transliterated
43509         result if it contains question marks.
43510         Reported by Michael Geng <linux@michaelgeng.de>.
43511
43512 2008-06-19  Bruno Haible  <bruno@clisp.org>
43513
43514         Fix CVS-ism.
43515         * doc/gnulib.texi: Include updated-stamp.texi.
43516         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
43517         (updated-stamp.texi): New rule.
43518         (gnulib.info): Depend on it.
43519         * doc/.gitignore: Add updated-stamp.texi.
43520         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
43521
43522 2008-06-19  Bruno Haible  <bruno@clisp.org>
43523
43524         * doc/Makefile (gnulib.info): Update and simplify dependencies.
43525         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
43526
43527 2008-06-19  Eric Blake  <ebb9@byu.net>
43528
43529         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
43530         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
43531         Reported by Stepan Kasal.
43532
43533 2008-06-18  Bruno Haible  <bruno@clisp.org>
43534
43535         * lib/fatal-signal.c (init_fatal_signals): Add comment.
43536         Reported by Eric Blake.
43537
43538 2008-06-18  Eric Blake  <ebb9@byu.net>
43539
43540         Work around cygwin 1.5.25 strsignal bug.
43541         * tests/test-strsignal.c: Allow for const char *.
43542         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
43543
43544 2008-06-18  Simon Josefsson  <simon@josefsson.org>
43545
43546         * users.txt: Update URL to article and add author/date
43547         information.
43548
43549 2008-06-17  Bruno Haible  <bruno@clisp.org>
43550
43551         New macro gl_DISABLE_THREADS.
43552         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
43553         if the user did not pass --enable-threads or --disable-threads option.
43554         (gl_DISABLE_THREADS): New macro.
43555         Reported by Eric Blake <ebb9@byu.net>.
43556
43557 2008-06-17  Bruno Haible  <bruno@clisp.org>
43558
43559         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
43560         when the macro ignores it.
43561         Based on a patch by Eric Blake <ebb9@byu.net>.
43562
43563 2008-06-17  Bruno Haible  <bruno@clisp.org>
43564
43565         * modules/tls (License): Change to LGPLv2+.
43566         Reported by Eric Blake.
43567
43568 2008-06-17  Eric Blake  <ebb9@byu.net>
43569
43570         Simplify c-stack prerequisites.
43571         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
43572         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
43573         no longer requires <ucontext.h> to exist.  Optimize setrlimit
43574         check.
43575         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
43576         <sys/resource.h>.
43577
43578         Move c-stack test into testsuite.
43579         * modules/c-stack-tests: New file.
43580         * lib/c-stack.c [DEBUG]: Move test program...
43581         * tests/test-c-stack.c: ...into this new file.  Skip rather than
43582         fail test if sigaltstack is lacking.
43583         * tests/test-c-stack.sh: New driver file.
43584
43585 2008-06-16  Eric Blake  <ebb9@byu.net>
43586
43587         Use raise module consistently.
43588         * modules/fatal-signal (Depends-on): Add raise.
43589         * modules/sigprocmask (Depends-on): Likewise.
43590         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
43591         * lib/sigprocmask.c (sigprocmask): Likewise.
43592         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
43593         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
43594
43595         Fix compliance bug in sigpending.
43596         * lib/sigprocmask.c (sigpending): Return pending array via
43597         parameter, not return value.
43598
43599 2008-06-14  Eric Blake  <ebb9@byu.net>
43600
43601         Improve obstack-printf test code.
43602         * tests/test-obstack-printf.c (test_function): Fix comment, and
43603         simplify usage of obstack_* in macros.  Add a test for coverage.
43604         Reported by Bruno Haible.
43605
43606 2008-06-14  Bruno Haible  <bruno@clisp.org>
43607
43608         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
43609         array size as a constant, not as a const variable.
43610         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
43611         AC_USE_SYSTEM_EXTENSIONS.
43612         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
43613         Test whether the obstack_printf function actually exists.
43614         * modules/obstack-printf (Depends-on): Add extensions.
43615         (Include): Remove obstack.h.
43616         * modules/obstack-printf-posix (Depends-on): Add extensions.
43617         (Include): Remove obstack.h.
43618
43619 2008-06-13  Eric Blake  <ebb9@byu.net>
43620
43621         Add obstack-printf and obstack-printf-posix modules.
43622         * modules/obstack-printf: New file.
43623         * modules/obstack-printf-posix: Likewise.
43624         * MODULES.html.sh (Misc): Mention them.
43625         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
43626         Likewise.
43627         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
43628         Likewise.
43629         * modules/stdio (Makefile.am): Accomodate new modules.
43630         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
43631         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
43632         Declare.
43633         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
43634         functions.
43635         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
43636         (gl_REPLACE_OBSTACK_PRINTF): New macros
43637         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
43638         * tests/test-obstack-printf.c: New file.
43639         * modules/obstack-printf-tests: Likewise.
43640         * modules/obstack-printf-posix-tests: Likewise.
43641
43642 2008-06-11  Bruno Haible  <bruno@clisp.org>
43643
43644         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
43645         * lib/open.c: Include errno.h.
43646         (open): Fail when attempting to write to a file that has a trailing
43647         slash.
43648         * tests/test-open.c (main): Test against trailing slash bug.
43649         * doc/posix-functions/open.texi: Mention the trailing slash bug.
43650
43651 2008-06-10  Bruno Haible  <bruno@clisp.org>
43652
43653         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
43654         for $? to work inside the trap command, with various /bin/sh-s.
43655         * tests/test-vc-list-files-cvs.sh: Likewise.
43656
43657 2008-06-10  Bruno Haible  <bruno@clisp.org>
43658
43659         * lib/acl-internal.h: Don't include gettext.h here.
43660         * lib/set-mode-acl.c: Include gettext.h here.
43661         * lib/copy-acl.c: Likewise.
43662
43663 2008-06-10  Bruno Haible  <bruno@clisp.org>
43664
43665         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
43666         * lib/wait-process.c (wait_subprocess): Likewise.
43667         * lib/execute.h (execute): Add termsigp argument.
43668         * lib/execute.c (execute): Likewise.
43669         * lib/csharpcomp.c (compile_csharp_using_pnet,
43670         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
43671         * lib/csharpexec.c (execute_csharp_using_pnet,
43672         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
43673         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
43674         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
43675         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
43676         is_jikes_present): Update.
43677         * lib/javaexec.c (execute_java_class): Update.
43678         * lib/javaversion.c (execute_and_read_line): Update.
43679         * NEWS: Document the changes.
43680         Reported by Eric Blake.
43681
43682 2008-06-10  Eric Blake  <ebb9@byu.net>
43683
43684         Add missing include.
43685         * tests/test-strstr.c (includes): Add <signal.h>.
43686         * tests/test-strcasestr.c (includes): Likewise.
43687         * tests/test-memmem.c (includes): Likewise.
43688
43689 2008-06-10  Bruno Haible  <bruno@clisp.org>
43690
43691         * lib/wait-process.c (wait_subprocess): Add an assertion.
43692
43693 2008-06-10  Bruno Haible  <bruno@clisp.org>
43694
43695         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
43696
43697 2008-06-10  Bruno Haible  <bruno@clisp.org>
43698
43699         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
43700         using alarm().
43701         * tests/test-strcasestr.c (main): Likewise.
43702         * tests/test-strstr.c (main): Likewise.
43703
43704 2008-06-09  Bruno Haible  <bruno@clisp.org>
43705
43706         Work around the Solaris 10 ACE ACLs ABI change.
43707         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
43708         declare if ACL_NO_TRIVIAL is present.
43709         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
43710         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
43711         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
43712         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
43713         define if ACL_NO_TRIVIAL is present.
43714         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
43715         and use the current ABI.
43716         (file_has_acl): Use same #if condition as elsewhere.
43717         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
43718         in use, and use the current ABI.
43719         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
43720         Reported by Jim Meyering.
43721
43722 2008-06-09  Eric Blake  <ebb9@byu.net>
43723
43724         Work around environments that (stupidly) ignore SIGALRM.
43725         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
43726         before using alarm().
43727         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
43728         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
43729         Reported by Ian Beckwith <ianb@erislabs.net>.
43730
43731         Produce autobuild blurb earlier in log.
43732         * modules/autobuild (configure.ac-early): Move AB_INIT here.
43733
43734 2008-06-09  Jim Meyering  <meyering@redhat.com>
43735         and OndÅ™ej Vašík  <ovasik@redhat.com>
43736
43737         utimens.c: correct kernel bug work-around
43738         OndÅ™ej Vašík found that the invalid return value of 280 indicates
43739         failure, not success, and the kernel bug we're trying to work
43740         around affects not just the utimensat call, but also the fallback
43741         futimens call.
43742         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
43743         not success.
43744         [HAVE_FUTIMENS]: Use the same work-around, here.
43745
43746 2008-06-09  Jim Meyering  <meyering@redhat.com>
43747
43748         add more guards around definition of ACE_-related code
43749         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
43750         ALLOW and ACE_OWNER are also defined.
43751
43752 2008-06-08  Bruno Haible  <bruno@clisp.org>
43753
43754         * lib/acl-internal.h: Add me as co-author.
43755         * lib/file-has-acl.c: Likewise.
43756         * lib/set-mode-acl.c: Likewise.
43757         * lib/copy-acl.c: Likewise.
43758
43759 2008-06-08  Bruno Haible  <bruno@clisp.org>
43760
43761         Add support for AIX ACLs.
43762         * lib/acl-internal.h (acl_nontrivial): New declaration.
43763         * lib/file-has-acl.c (acl_nontrivial): New function.
43764         (file_has_acl): Add implementation using AIX 4 ACL API.
43765         * lib/set-mode-acl.c (qset_acl): Likewise.
43766         * lib/copy-acl.c (qcopy_acl): Likewise.
43767
43768 2008-06-08  Bruno Haible  <bruno@clisp.org>
43769
43770         Add support for HP-UX ACLs.
43771         * lib/acl-internal.h (acl_nontrivial): New declaration.
43772         * lib/file-has-acl.c (acl_nontrivial): New function.
43773         (file_has_acl): Add implementation using HP-UX 11 ACL API.
43774         * lib/set-mode-acl.c (qset_acl): Likewise.
43775         * lib/copy-acl.c (qcopy_acl): Likewise.
43776
43777 2008-06-08  Bruno Haible  <bruno@clisp.org>
43778
43779         Add support for Cygwin ACLs.
43780         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
43781         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
43782         the chmod_or_fchmod call.
43783         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
43784
43785 2008-06-08  Bruno Haible  <bruno@clisp.org>
43786
43787         Fix bug with setuid modes in Solaris 10+ code.
43788         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
43789         succeeded, when the mode contains some special bits.
43790
43791 2008-06-08  Bruno Haible  <bruno@clisp.org>
43792
43793         Add support for Solaris 7..10 ACLs.
43794         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
43795         declarations.
43796         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
43797         functions.
43798         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
43799         * lib/set-mode-acl.c (qset_acl): Likewise.
43800         * lib/copy-acl.c (qcopy_acl): Likewise.
43801
43802 2008-06-08  Bruno Haible  <bruno@clisp.org>
43803
43804         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
43805         declaration.
43806         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
43807         (acl_access_nontrivial): Remove MacOS X case.
43808         (file_has_acl): Use acl_extended_nontrivial.
43809         * lib/copy-acl.c (qcopy_acl): Likewise.
43810
43811 2008-06-08  Bruno Haible  <bruno@clisp.org>
43812
43813         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
43814
43815 2008-06-08  Jim Meyering  <meyering@redhat.com>
43816
43817         * modules/acl (Maintainer): Add Bruno Haible.
43818
43819 2008-06-07  Bruno Haible  <bruno@clisp.org>
43820
43821         Improve support for Tru64 ACLs.
43822         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
43823         ACL on OSF/1.
43824
43825 2008-06-07  Bruno Haible  <bruno@clisp.org>
43826
43827         Add support for MacOS X ACLs.
43828         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
43829         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
43830         * lib/set-mode-acl.c (qset_acl): Likewise.
43831         * lib/copy-acl.c (qcopy_acl): Likewise.
43832
43833 2008-06-07  Bruno Haible  <bruno@clisp.org>
43834
43835         Fix memory leak introduced on 2008-05-22.
43836         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
43837         use.
43838
43839 2008-06-07  Bruno Haible  <bruno@clisp.org>
43840
43841         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
43842         to construct an empty ACL.
43843
43844 2008-06-07  Bruno Haible  <bruno@clisp.org>
43845
43846         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
43847         precisely.
43848         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
43849
43850 2008-06-07  Bruno Haible  <bruno@clisp.org>
43851
43852         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
43853         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
43854
43855 2008-06-07  Bruno Haible  <bruno@clisp.org>
43856
43857         * doc/posix-functions/_setjmp.texi: Explain the use of this function
43858         regardless of POSIX.
43859         * doc/posix-functions/_longjmp.texi: Likewise.
43860         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
43861         SystemV platform in this case.
43862
43863 2008-06-06  Eric Blake  <ebb9@byu.net>
43864
43865         Document abort() bugs.
43866         * doc/posix-functions/abort.texi (abort): Mention anomalies.
43867
43868         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
43869         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
43870         sigsetjmp.
43871         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
43872         siglongjmp, but only as a macro.
43873         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
43874         is obsolete.
43875         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
43876
43877         Tweak documentation to cover cygwin argz bugs.
43878         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
43879         argz bug fix; no code change needed since no cygwin releases
43880         occurred between the last fix and the bug being tested.
43881         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
43882         module and recently fixed cygwin bugs.
43883         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
43884         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
43885         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
43886         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
43887         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
43888         Likewise.
43889         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
43890         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
43891         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
43892         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
43893         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
43894         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
43895         Likewise.
43896
43897         Avoid gcc warning on cygwin.
43898         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
43899         !ACL_NO_TRIVIAL]: Avoid unused variable.
43900
43901 2008-06-05  Eric Blake  <ebb9@byu.net>
43902
43903         Be tolerant of UNKNOWN version in gnulib-tool test dir.
43904         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
43905         git-version-gen fails to come up with a version.
43906         Reported by Simon Josefsson.
43907
43908 2008-06-05  Jim Meyering  <meyering@redhat.com>
43909             Paul Eggert  <eggert@cs.ucla.edu>
43910
43911         utimens.c: work around a probable Linux kernel bug
43912         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
43913         appears to be a kernel bug that causes utimensat to return 280
43914         instead of 0, indicating success.
43915
43916 2008-06-04  Bruno Haible  <bruno@clisp.org>
43917
43918         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
43919         2008-06-01 commit.
43920
43921 2008-06-04  Bruno Haible  <bruno@clisp.org>
43922
43923         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
43924         * lib/file-has-acl.c (acl_access_nontrivial): New function.
43925         (file_has_acl): Use it. Save errno afterwards.
43926         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
43927
43928 2008-06-03  Bruno Haible  <bruno@clisp.org>
43929
43930         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
43931         draft code. Simplify #ifs.
43932         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
43933         Put Solaris code after POSIX-draft code. Fix comments regarding
43934         Solaris 10, HP-UX. Mention Cygwin.
43935         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
43936
43937 2008-06-03  Eric Blake  <ebb9@byu.net>
43938
43939         Provide fallback for older kernels.
43940         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
43941         Provide runtime fallback if kernel lacks support.
43942         Reported by Mike Frysinger.
43943
43944 2008-06-02  Bruno Haible  <bruno@clisp.org>
43945
43946         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
43947         it exists.
43948
43949 2008-06-02  Bruno Haible  <bruno@clisp.org>
43950
43951         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
43952         * lib/copy-acl.c (qcopy_acl): Update comment.
43953
43954 2008-06-02  Bruno Haible  <bruno@clisp.org>
43955
43956         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
43957         like ACL APIs.
43958
43959 2008-06-02  Bruno Haible  <bruno@clisp.org>
43960
43961         * tests/test-file-has-acl.sh: Use different code for Cygwin.
43962         * tests/test-set-mode-acl.sh: Likewise.
43963         * tests/test-copy-acl.sh: Likewise.
43964         * tests/test-copy-file.sh: Likewise.
43965
43966 2008-06-02  Bruno Haible  <bruno@clisp.org>
43967
43968         * tests/test-file-has-acl.sh: Remove unused code.
43969
43970 2008-06-01  Bruno Haible  <bruno@clisp.org>
43971
43972         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
43973         (copy_acl): Just a wrapper around qcopy_acl that emits the error
43974         messages.
43975         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
43976
43977 2008-06-01  Bruno Haible  <bruno@clisp.org>
43978
43979         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
43980         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
43981         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
43982         APIs.
43983         * modules/acl-tests (configure.ac): Remove tests now contained in
43984         m4/acl.m4.
43985
43986 2008-06-02  Jim Meyering  <meyering@redhat.com>
43987
43988         announce-gen: use a better key-server host name
43989         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
43990         it may be more consistently reliable.  Suggested by Werner Koch
43991         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
43992
43993 2008-06-01  Bruno Haible  <bruno@clisp.org>
43994
43995         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
43996         Reported by Voroskoi Andras <voroskoi@gmail.com>.
43997
43998 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
43999
44000         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
44001
44002 2008-06-01  Bruno Haible  <bruno@clisp.org>
44003
44004         New ACL tests.
44005         * tests/test-file-has-acl.sh: New file.
44006         * tests/test-file-has-acl.c: New file.
44007         * tests/test-set-mode-acl.sh: New file.
44008         * tests/test-set-mode-acl.c: New file.
44009         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
44010         * tests/test-copy-acl.c: New file.
44011         * modules/acl-tests: New file, based on modules/copy-file-tests.
44012         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
44013         (Depends-on): Add acl-tests.
44014         (configure.ac): Remove checks.
44015         (Makefile.am): Don't create test-sameacls program here any more.
44016
44017 2008-06-01  Bruno Haible  <bruno@clisp.org>
44018
44019         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
44020         * tests/test-sameacls.c: Include progname.h.
44021         (main): Invoke set_program_name. Portability fixes for MacOS X,
44022         Solaris, HP-UX.
44023
44024 2008-06-01  Bruno Haible  <bruno@clisp.org>
44025
44026         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
44027         function.
44028         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
44029
44030 2008-06-01  Bruno Haible  <bruno@clisp.org>
44031
44032         * modules/rpmatch (Depends-on): Add strdup.
44033
44034 2008-06-01  Bruno Haible  <bruno@clisp.org>
44035
44036         * lib/pipe.c: Include unistd-safer.h.
44037         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
44038         * modules/pipe (Depends-on): Add unistd-safer.
44039
44040 2008-05-30  Simon Josefsson  <simon@josefsson.org>
44041
44042         * modules/autobuild (configure.ac): Call AB_INIT.
44043
44044 2008-05-30  Simon Josefsson  <simon@josefsson.org>
44045
44046         * tests/test-getaddrinfo.c: Don't print debug messages by default.
44047         Suggested by Bruno Haible <bruno@clisp.org>.
44048
44049 2008-05-30  Simon Josefsson  <simon@josefsson.org>
44050
44051         * tests/test-base64.c: Cast size_t to unsigned long when invoking
44052         printf.  Use %lu instead of %d.  Reported by Bruno Haible
44053         <bruno@clisp.org>.
44054
44055 2008-05-29  Eric Blake  <ebb9@byu.net>
44056
44057         Prefer new POSIX 200x interfaces over futimesat.
44058         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
44059         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
44060         when available.
44061         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
44062
44063 2008-05-28  Bruno Haible  <bruno@clisp.org>
44064
44065         * modules/stpcpy (License): Change to LGPLv2+.
44066         Requested by David Lutterkort <dlutter@redhat.com>.
44067
44068 2008-05-27  Bruno Haible  <bruno@clisp.org>
44069
44070         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
44071         current mingw.
44072         Reported by Jose E. Marchesi <jemarch@gnu.org>.
44073
44074 2008-05-27  Bruno Haible  <bruno@clisp.org>
44075
44076         * modules/iconv_open (Link): New section, from module 'iconv'.
44077         * modules/striconv (Link): Likewise.
44078         * modules/striconveh (Link): Likewise.
44079         * modules/xstriconv (Link): Likewise.
44080         * modules/unicodeio (Link): Likewise.
44081         * modules/propername (Link): Likewise.
44082         Reported by Jim Meyering.
44083
44084 2008-05-26  Jim Meyering  <meyering@redhat.com>
44085
44086         sha256: do not artificially restrict buffer length to be < 2^32
44087         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
44088         uint32_t to size_t.
44089         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
44090         to match.
44091
44092         avoid unaligned access errors, e.g., on sparc
44093         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
44094         direct access through a possibly-unaligned uint64* pointer.
44095         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
44096         direct access through a possibly-unaligned uint32* pointer.
44097         Prompted by this patch from Tom "spot" Callaway:
44098         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
44099
44100         sha512.c: fix typo in comment
44101         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
44102
44103 2008-05-25  Bruno Haible  <bruno@clisp.org>
44104
44105         * lib/set-mode-acl.c: Renamed from lib/acl.c.
44106         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
44107         (Makefile.am): Update lib_SOURCES.
44108
44109 2008-05-25  Bruno Haible  <bruno@clisp.org>
44110
44111         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
44112
44113 2008-05-25  Jim Meyering  <meyering@redhat.com>
44114
44115         useless-if-before-free: freed expr may have white-space differences
44116         * build-aux/useless-if-before-free: Recognize cases in which the
44117         freed expression differs from the tested one in embedded white
44118         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
44119         $1 was used, so we can't make any regexp shy.  Improved tests now
44120         detect this.
44121
44122         useless-if-before-free: accept white space in the expression.
44123         * build-aux/useless-if-before-free: For now, any white space
44124         in the expression must be identical in the free argument.
44125
44126         useless-if-before-free: efficiency tweak
44127         * build-aux/useless-if-before-free: Make the expression-matching
44128         regexp "shy".
44129         Make the *outer* regexp shy, not the expr-matching one.
44130
44131         update code-in-comment to accept cast of free arg
44132         * build-aux/useless-if-before-free: Update regexp.
44133
44134 2008-05-25  Bruno Haible  <bruno@clisp.org>
44135
44136         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
44137         * modules/copy-file-tests (Files, Makefile.am): Update.
44138         * tests/test-copy-file.c (func_test_copy): Update.
44139
44140 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
44141
44142         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
44143
44144 2008-05-23  Bruno Haible  <bruno@clisp.org>
44145
44146         Improve support for ACLs on OSF/1.
44147         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
44148         Remove fallback for unknown flavors of ACLs.
44149
44150 2008-05-22  Bruno Haible  <bruno@clisp.org>
44151
44152         Add support for ACLs on OSF/1.
44153         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
44154         replacements.
44155         (acl_free_text): New macro fallback.
44156         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
44157         acl_free.
44158         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
44159         acl_free_text function. Require AC_C_INLINE.
44160
44161 2008-05-22  Bruno Haible  <bruno@clisp.org>
44162
44163         Make copy_acl work on MacOS X 10.5.
44164         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
44165         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
44166         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
44167         If MODE_INSIDE_ACL, don't assume that every system has the same text
44168         representation for ACLs as FreeBSD.
44169         * lib/copy-acl.c (copy_acl): Add support for platforms with
44170         !MODE_INSIDE_ACL.
44171         * lib/file-has-acl.c (file_has_acl): Likewise.
44172         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
44173         FreeBSD, MacOS X, or IRIX, respectively.
44174
44175 2008-05-22  Bruno Haible  <bruno@clisp.org>
44176
44177         * lib/acl.h: Don't include <sys/acl.h>.
44178         (GETACLCNT): Move fallback to lib/acl-internal.h.
44179         * lib/acl-internal.h: Include <sys/acl.h> here.
44180         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
44181
44182 2008-05-22  Bruno Haible  <bruno@clisp.org>
44183
44184         Split off copy_acl function to separate file.
44185         * lib/copy-acl.c: New file, extracted from lib/acl.c.
44186         * lib/acl.c (copy_acl): Moved function to separate file.
44187         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
44188         * modules/acl (Files): Add lib/copy-acl.c.
44189         (Makefiles.am): Augment lib_SOURCES.
44190
44191 2008-05-22  Bruno Haible  <bruno@clisp.org>
44192
44193         * modules/copy-file-tests: New file.
44194         * tests/test-copy-file.sh: New file.
44195         * tests/test-copy-file.c: New file.
44196         * tests/test-copy-file-sameacls.c: New file.
44197
44198 2008-05-22  Eric Blake  <ebb9@byu.net>
44199
44200         Avoid gcc warning.
44201         * tests/test-memcmp.c (main): Pass NULL indirectly.
44202
44203 2008-05-21  Bruno Haible  <bruno@clisp.org>
44204
44205         Add reference doc about ACLs.
44206         * doc/acl-resources.txt: New file.
44207         * doc/acl-cygwin.txt: New file.
44208
44209 2008-05-21  Bruno Haible  <bruno@clisp.org>
44210
44211         Avoid one more warning from gcc.
44212         * lib/vasnprintf.c (IF_LINT): Update comments.
44213         (VASNPRINTF): Use it also for the 'prefix' array initializer.
44214
44215 2008-05-21  Jim Meyering  <meyering@redhat.com>
44216
44217         avoid a warning from gcc
44218         * lib/vasnprintf.c (IF_LINT): Define.
44219         (scale10_round_decimal_long_double):
44220         Use it to avoid a "may be used uninitialized" warning.
44221         (scale10_round_decimal_double): Likewise.
44222
44223 2008-05-21  Simon Josefsson  <simon@josefsson.org>
44224
44225         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
44226         declared.
44227
44228 2008-05-20  Bruno Haible  <bruno@clisp.org>
44229
44230         * tests/test-memcmp.c (main): Test also the sign of the result. Test
44231         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
44232
44233 2008-05-20  Simon Josefsson  <simon@josefsson.org>
44234
44235         * modules/memcmp-tests: New file.
44236         * tests/test-memcmp.c: New file.
44237
44238 2008-05-19  Bruno Haible  <bruno@clisp.org>
44239
44240         * modules/propername (Notice, configure.ac): Put quoted "..." into
44241         --keyword option.
44242         * lib/propername.h: Update comments accordingly.
44243         Reported by Eric Blake.
44244
44245 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
44246
44247         * modules/getpass-gnu (Depends-on): Add fseeko.
44248
44249 2008-05-19  Simon Josefsson  <simon@josefsson.org>
44250
44251         * modules/base64-tests: New file.
44252
44253 2008-05-19  Bo Borgerson <gigabo@gmail.com>
44254
44255         * lib/base64.c (base64_decode_ctx): If a decode context structure
44256         was passed in use it to ignore newlines.  If a context structure
44257         was _not_ passed in, continue to treat newlines as garbage (this
44258         is the historical behavior).  Formerly base64_decode.
44259         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
44260         takes a decode context structure.
44261         * lib/base64.h (base64_decode): Macro for four-argument calls.
44262         (base64_decode_alloc): Likewise.
44263         * lib/base64.c (base64_decode_ctx): If a decode context structure
44264         was passed in use it to ignore newlines.  If a context structure
44265         was _not_ passed in, continue to treat newlines as garbage (this
44266         is the historical behavior).  Formerly base64_decode.
44267         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
44268         takes a decode context structure.
44269         * lib/base64.h (base64_decode): Macro for four-argument calls.
44270         (base64_decode_alloc): Likewise.
44271
44272 2008-05-19  Jim Meyering  <meyering@redhat.com>
44273
44274         avoid a warning from gcc
44275         * lib/trim.c (IF_LINT): Define.
44276         (trim2): Use it to avoid a "may be used uninitialized" warning.
44277
44278         Fix doc typo.
44279         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
44280
44281 2008-05-19  Bruno Haible  <bruno@clisp.org>
44282
44283         * doc/glibc-functions/getpass.texi: Document limits of other
44284         implementations.
44285
44286 2008-05-19  Simon Josefsson  <simon@josefsson.org>
44287             Bruno Haible <bruno@clisp.org>
44288
44289         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
44290
44291 2008-05-18  Bruno Haible  <bruno@clisp.org>
44292
44293         * modules/propername: New file, from GNU gettext.
44294         * lib/propername.h: New file, from GNU gettext.
44295         * lib/propername.c: New file, from GNU gettext.
44296         * MODULES.html.sh (Internationalization functions): Add propername.
44297
44298 2008-05-16  Jim Meyering  <meyering@redhat.com>
44299             Bruno Haible  <bruno@clisp.org>
44300
44301         Avoid some warnings from "gcc -Wshadow".
44302         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
44303
44304 2008-05-15  Eric Blake  <ebb9@byu.net>
44305
44306         Extend previous patch to cygwin 1.7.0.
44307         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
44308         fast implementation in cygwin >= 1.7.0.
44309         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
44310         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
44311
44312 2008-05-15  Bruno Haible  <bruno@clisp.org>
44313
44314         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
44315         implementation in glibc >= 2.9.
44316         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
44317         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
44318
44319 2008-05-15  Bruno Haible  <bruno@clisp.org>
44320
44321         * MODULES.html.sh (Internationalization functions): Remove linebreak.
44322         (Unicode string functions): Add unilbrk/*.
44323         Reported by Karl Berry.
44324
44325 2008-05-15  Eric Blake  <ebb9@byu.net>
44326
44327         Fix violation of <stdbool.h> replacement in regex.
44328         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
44329         * lib/regexec.c (re_search_internal): Likewise.
44330         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
44331
44332 2008-05-15  Jim Meyering  <meyering@redhat.com>
44333
44334         avoid distracting test output when git or cvs is not found
44335         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
44336         * tests/test-vc-list-files-git.sh: Likewise.
44337
44338 2008-05-15  Eric Blake  <ebb9@byu.net>
44339
44340         Glibc finally accepted the memmem speedup code, bugzilla #5514.
44341         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
44342         glibc version.
44343         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
44344         * doc/posix-functions/strstr.texi (strstr): Likewise.
44345         * lib/str-two-way.h (MAX): Sychronize with glibc.
44346
44347 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
44348
44349         * lib/regcomp.c (optimize_utf8): Add a note on why we test
44350         opr.ctx_type.
44351         (calc_first): Initialize constraint field.
44352         (duplicate_node_closure): Use it instead of special casing ANCHORS.
44353         Fix grammar.
44354         (duplicate_node): Merge constraint field for all node types.
44355         (calc_eclosure_iter): Look at constraint field for all node types.
44356         * lib/regex_internal.c (create_cd_newstate): Don't look at
44357         opr.ctx_type.
44358
44359 2008-05-14  Bruno Haible  <bruno@clisp.org>
44360
44361         Help GCC to do better code generation.
44362         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
44363         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
44364         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
44365         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
44366         Declare with attribute 'malloc' if supported.
44367
44368 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
44369
44370         use "echo STR|wc -c" rather than unportable "expr length STR"
44371         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
44372         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
44373
44374 2008-05-14  Jim Meyering  <meyering@redhat.com>
44375
44376         use dd ibs=$n count=1 ... rather than less-portable head -c$n
44377         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
44378         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
44379         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
44380         via Collin Lasse.
44381
44382 2008-05-14  Eric Blake  <ebb9@byu.net>
44383
44384         Avoid quadratic growth in gl_LIBSOURCES.
44385         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
44386         Suggested by Bruno Haible.
44387
44388         Test xmemdup0.
44389         * modules/xmemdup0-tests: New file.
44390         * tests/test-xmemdup0.c: Likewise.
44391
44392 2008-05-13  Eric Blake  <ebb9@byu.net>
44393
44394         Split xmemdup0 into its own module.
44395         * modules/xmemdup0: New file.
44396         * lib/xmemdup0.h: Likewise.
44397         * lib/xmemdup0.c: Likewise.
44398         * MODULES.html.sh (Memory management functions): Add xmemdup0.
44399         * lib/xalloc.h (xmemdup0): Remove.
44400         * lib/xmalloc.c (xmemdup0): Likewise.
44401
44402 2008-05-13  Eric Blake  <ebb9@byu.net>
44403             Bruno Haible  <bruno@clisp.org>
44404
44405         Reduce number of forks required during autoconf.
44406         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
44407         and gl_LIBSOURCES_DIR.
44408         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
44409         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
44410         m4_syscmd per file.
44411         <m4_foreach_w>: Move...
44412         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
44413
44414 2008-05-13  Eric Blake  <ebb9@byu.net>
44415
44416         * gnulib-tool: Fix various comment typos.
44417
44418 2008-05-12  Bruno Haible  <bruno@clisp.org>
44419
44420         Tailor the linebreaking algorithm.
44421         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
44422
44423 2008-05-12  Bruno Haible  <bruno@clisp.org>
44424
44425         Update to Unicode 5.0.0.
44426         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
44427         LBP_JV, LBP_JT. Redistribute values.
44428         (unilbrk_table): Change size.
44429         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
44430         Unicode TR#14 rev. 22.
44431         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
44432         LBP_JV, LBP_JT. Redistribute values.
44433         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
44434         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
44435         Update.
44436         * lib/unilbrk/lbrkprop1.h: Regenerated.
44437         * lib/unilbrk/lbrkprop2.h: Regenerated.
44438         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
44439         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
44440         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
44441         Likewise.
44442         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
44443         Likewise.
44444         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
44445         result.
44446         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
44447         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
44448         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
44449         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
44450         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
44451         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
44452
44453 2008-05-11  Bruno Haible  <bruno@clisp.org>
44454
44455         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
44456
44457 2008-05-11  Bruno Haible  <bruno@clisp.org>
44458
44459         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
44460         * modules/unilbrk/gen-lbrk: New file.
44461
44462 2008-05-11  Bruno Haible  <bruno@clisp.org>
44463
44464         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
44465         * m4/sha512.m4 (gl_SHA512): Likewise.
44466
44467 2008-05-11  Jim Meyering  <meyering@redhat.com>
44468
44469         New modules: crypto/sha256, crypto/sha512 (from coreutils)
44470         * modules/crypto/sha256: New file.
44471         * modules/crypto/sha512: Likewise.
44472         * lib/sha256.c: Likewise.
44473         * lib/sha256.h: Likewise.
44474         * lib/sha512.c: Likewise.
44475         * lib/sha512.h: Likewise.
44476         * lib/u64.h: Likewise.
44477         * m4/sha256.m4: Likewise.
44478         * m4/sha512.m4: Likewise.
44479         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
44480
44481 2008-05-10  Bruno Haible  <bruno@clisp.org>
44482
44483         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
44484         (Input/Output <stdio.h>): Add xprintf.
44485         (Signal handling <signal.h>): Add strsignal.
44486         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
44487         (Core language properties): Add func.
44488         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
44489         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
44490         strings.
44491         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
44492         (Input/output): New section.
44493         (File system functions): Add openat-die, stat-macros.
44494         (Networking functions): Add sockets.
44495         (Unicode string functions): Add unictype/*.
44496         (Support for building libraries and executables): Add gperf.
44497         (Support for building documentation): Add agpl-3.0.
44498         (Misc): Add nocrash.
44499
44500 2008-05-10  Bruno Haible  <bruno@clisp.org>
44501
44502         * modules/unictype/gen-ctype: New file.
44503
44504 2008-05-10  Jim Meyering  <meyering@redhat.com>
44505
44506         Make chdir-safer.c more efficient on a system with no symlinks.
44507         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
44508         also if ELOOP is zero.  Suggested by Bruno Haible.
44509
44510         Make chdir-safer.c slightly safer.
44511         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
44512         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
44513
44514         Avoid compile failure on systems without ELOOP (like mingw).
44515         * lib/chdir-safer.c (ELOOP): Define if not already defined.
44516         Reported by Bruno Haible.
44517
44518 2008-05-10  Bruno Haible  <bruno@clisp.org>
44519
44520         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
44521         (is_utf8_encoding): Use a case-insensitive comparison.
44522         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
44523         streq.
44524
44525 2008-05-10  Bruno Haible  <bruno@clisp.org>
44526
44527         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
44528         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
44529         * lib/unilbrk/ulc-common.h (iconv_string_length,
44530         iconv_string_keeping_offsets): Remove declarations.
44531         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
44532         Don't include <iconv.h>, streq.h, xsize.h.
44533         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
44534         conversion.
44535         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
44536         <iconv.h>, streq.h, xsize.h.
44537         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
44538         conversion.
44539         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
44540         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
44541         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
44542         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
44543
44544 2008-05-10  Bruno Haible  <bruno@clisp.org>
44545
44546         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
44547         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
44548
44549         * modules/unilbrk/u32-width-linebreaks-tests: New file.
44550         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
44551
44552         * modules/unilbrk/u16-width-linebreaks-tests: New file.
44553         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
44554
44555         * modules/unilbrk/u8-width-linebreaks-tests: New file.
44556         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
44557
44558         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
44559         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
44560
44561         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
44562         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
44563
44564         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
44565         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
44566
44567         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
44568         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
44569
44570 2008-05-10  Bruno Haible  <bruno@clisp.org>
44571
44572         Split up 'linebreak' module.
44573         * lib/unilbrk.h: New file, based on lib/linebreak.h.
44574         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
44575         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
44576         modifications.
44577         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
44578         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
44579         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
44580         lib/linebreak.c.
44581         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
44582         lib/linebreak.c.
44583         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
44584         lib/linebreak.c.
44585         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
44586         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
44587         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
44588         lib/linebreak.c.
44589         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
44590         lib/linebreak.c.
44591         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
44592         lib/linebreak.c.
44593         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
44594         lib/linebreak.c.
44595         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
44596         lib/linebreak.c.
44597         * modules/unilbrk/base: New file.
44598         * modules/unilbrk/tables: New file.
44599         * modules/unilbrk/u8-possible-linebreaks: New file.
44600         * modules/unilbrk/u16-possible-linebreaks: New file.
44601         * modules/unilbrk/u32-possible-linebreaks: New file.
44602         * modules/unilbrk/ulc-common: New file.
44603         * modules/unilbrk/ulc-possible-linebreaks: New file.
44604         * modules/unilbrk/u8-width-linebreaks: New file.
44605         * modules/unilbrk/u16-width-linebreaks: New file.
44606         * modules/unilbrk/u32-width-linebreaks: New file.
44607         * modules/unilbrk/ulc-width-linebreaks: New file.
44608         * lib/linebreak.h: Remove file.
44609         * lib/linebreak.c: Remove file.
44610         * m4/linebreak.m4: Remove file.
44611         * modules/linebreak: Remove file.
44612         * NEWS: Mention the changes.
44613
44614 2008-05-09  Eric Blake  <ebb9@byu.net>
44615
44616         Add xmemdup0.
44617         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
44618         implementation.
44619         * lib/xmalloc.c (xmemdup0): New C implementation.
44620
44621 2008-05-08  Bruno Haible  <bruno@clisp.org>
44622
44623         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
44624
44625 2008-05-07  Eric Blake  <ebb9@byu.net>
44626
44627         Support cross-compilation of <wctype.h>.
44628         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
44629         AC_CACHE_CHECK.
44630
44631 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
44632
44633         * build-aux/vc-list-files: Add support for bzr.
44634
44635 2008-05-03  Jim Meyering  <meyering@redhat.com>
44636
44637         avoid failed assertion with tight malloc
44638         * tests/test-getndelim2.c: Correct an off-by-one assertion.
44639
44640 2008-05-03  Simon Josefsson  <simon@josefsson.org>
44641
44642         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
44643         are needed from arpa/inet.h.
44644         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
44645         Reported by Bruno Haible.
44646
44647 2008-05-02  Jim Meyering  <meyering@redhat.com>
44648
44649         avoid compilation error on FreeBSD 6
44650         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
44651
44652 2008-05-01  Jim Meyering  <meyering@redhat.com>
44653
44654         useless-if-before-free: correct --help's exit status description
44655         * build-aux/useless-if-before-free (usage): Like grep, exit 0
44656         for one or more matches, etc.  Reported by Bruno Haible.
44657
44658         vc-list-files: make the stand-alone gnulib test work
44659         * modules/vc-list-files-tests (configure.ac):
44660         Define and AC_SUBST abs_aux_dir.
44661         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
44662         $(abs_top_srcdir) to each script and having each of them
44663         duplicate the work of setting PATH, set PATH here, using
44664         the new variable, abs_aux_dir instead.
44665         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
44666         * tests/test-vc-list-files-git.sh: Likewise.
44667         Reported by Bruno Haible.
44668
44669 2008-05-01  Bruno Haible  <bruno@clisp.org>
44670
44671         * lib/getndelim2.c (getndelim2): Fix newsize computation during
44672         reallocation. Rename 'done' to 'found_delimiter'.
44673
44674 2008-05-01  Jim Meyering  <meyering@redhat.com>
44675
44676         vc-list-files: accommodate /bin/sh like the one from Solaris 10
44677         * build-aux/vc-list-files: Use `...`, not $(...).
44678
44679 2008-04-30  Jim Meyering  <meyering@redhat.com>
44680
44681         add tests for vc-list-files
44682         * modules/vc-list-files-tests: New module.
44683         * tests/test-vc-list-files-cvs.sh: New file.
44684         * tests/test-vc-list-files-git.sh: New file.
44685
44686         avoid a warning from gcc
44687         * lib/getndelim2.c (IF_LINT): Define.
44688         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
44689
44690         vc-list-files: work properly with build-aux/cvsu, too
44691         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
44692         to all cvs-based clauses.
44693
44694         vc-list-files: work properly in the CVS+awk case, too
44695         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
44696
44697         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
44698         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
44699         take more than one file argument, so .  Add quotes, just in case $dir
44700         ever contains a shell meta-character.  Prompted by Soren Hansen in
44701         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
44702
44703 2008-04-29  Eric Blake  <ebb9@byu.net>
44704
44705         Optimize getndelim2 to use block operations when possible.
44706         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
44707         freadseek, and memchr2.
44708         * lib/getndelim2.c (getndelim2): Use them for block reads.
44709
44710 2008-04-29  Bruno Haible  <bruno@clisp.org>
44711
44712         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
44713         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
44714         * modules/inet_ntop (Depends-on): Add extensions.
44715         * modules/inet_pton (Depends-on): Likewise.
44716         Reported by Simon Josefsson.
44717
44718 2008-04-29  Jim Meyering  <meyering@redhat.com>
44719
44720         When the is more than one match in a block, match all of them.
44721         * build-aux/useless-if-before-free: Iterate through each block
44722         until there are no more matches.
44723
44724         Fix broken useless-if-before-free script.
44725         * build-aux/useless-if-before-free: Fix typo: missing "?" after
44726         the expression to match cast of argument to free-like function.
44727
44728 2008-04-29  Eric Blake  <ebb9@byu.net>
44729
44730         Use new header.
44731         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
44732
44733 2008-04-29  Jim Meyering  <meyering@redhat.com>
44734
44735         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
44736         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
44737         by gnulib to exist and to declare e.g., inet_ntop.
44738         Don't include "inet_ntop.h", now removed.
44739
44740         * m4/arpa_inet_h.m4: Remove trailing blanks.
44741
44742 2008-04-29  Eric Blake  <ebb9@byu.net>
44743
44744         Silence valgrind on safe reads beyond potential array bounds.
44745         * lib/rawmemchr.valgrind: New file.
44746         * lib/strchrnul.valgrind: Likewise.
44747         * modules/rawmemchr (Files): Distribute new file.
44748         * modules/strchrnul (Files): Likewise.
44749         Suggested by Bruno Haible.
44750
44751 2008-04-29  Bruno Haible  <bruno@clisp.org>
44752
44753         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
44754         (inet_ntop, inet_pton): Change portability warning's wording.
44755         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
44756         Invoke gl_CHECK_NEXT_HEADERS.
44757         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
44758         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
44759         set ARPA_INET_H.
44760         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
44761         * modules/arpa_inet (Description): No longer only for systems that
44762         lack it.
44763         (Depends-on): Add include_next.
44764         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
44765         HAVE_ARPA_INET_H.
44766
44767 2008-04-29  Jim Meyering  <meyering@redhat.com>
44768
44769         * modules/mkdir (License): Re-license as LGPLv2+.
44770
44771 2008-04-29  Bruno Haible  <bruno@clisp.org>
44772
44773         * modules/rawmemchr (Maintainer): Set to Eric.
44774         * modules/strchrnul (Maintainer): Likewise.
44775
44776 2008-04-29  Simon Josefsson  <simon@josefsson.org>
44777
44778         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
44779         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
44780
44781         * modules/arpa_inet (arpa/inet.h): Use them.
44782
44783 2008-04-28  Eric Blake  <ebb9@byu.net>
44784
44785         Test getndelim2.
44786         * modules/getndelim2-tests: New file.
44787         * tests/test-getndelim2.c: Likewise.
44788         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
44789         stream.
44790         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
44791
44792         * MODULES.html.sh: Document new module.
44793
44794 2008-04-20  Bruno Haible  <bruno@clisp.org>
44795
44796         * lib/c-stack.c (die): Use raise.
44797         * modules/c-stack (Depends-on): Add raise.
44798
44799 2008-04-28  Bruno Haible  <bruno@clisp.org>
44800
44801         Expect rpmatch to be declared.
44802         * lib/yesno.c (rpmatch): Remove declaration.
44803
44804         Declare rpmatch.
44805         * lib/stdlib.in.h (rpmatch): New declaration.
44806         * lib/rpmatch.c: Include <stdlib.h> first.
44807         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
44808         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
44809         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
44810         HAVE_RPMATCH.
44811         * modules/rpmatch (Depends-on): Add stdlib, extensions.
44812         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
44813         (Include): Set to <stdlib.h>.
44814         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
44815         HAVE_RPMATCH.
44816         * NEWS: Document the change.
44817
44818 2008-04-28  Bruno Haible  <bruno@clisp.org>
44819
44820         Change rpmatch to use nl_langinfo when appropriate.
44821         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
44822         (N_): New macro.
44823         (localized_pattern): New function/macro.
44824         (try): Remove match, nomatch arguments. Copy the pattern into safe
44825         memory before caching it.
44826         (rpmatch): Use localized_pattern. Add translator comments.
44827         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
44828         Suggested by Eric Blake.
44829         * modules/rpmatch (Depends-on): Add stdbool.
44830
44831 2008-04-28  Eric Blake  <ebb9@byu.net>
44832
44833         Add rawmemchr module, matching glibc.
44834         * modules/string (Makefile.am): New indicator.
44835         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
44836         * lib/string.in.h (rawmemchr): Declare when appropriate.
44837         * modules/rawmemchr: New file.
44838         * m4/rawmemchr.m4: Likewise.
44839         * lib/rawmemchr.c: Likewise.
44840         * modules/rawmemchr-tests: Likewise.
44841         * tests/test-rawmemchr.c: Likewise.
44842         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
44843         module.
44844         * modules/strchrnul (Depends-on): Add rawmemchr.
44845         * lib/strchrnul.c (strchrnul): Optimize a corner case.
44846
44847         Whitespace cleanup.
44848         * tests/test-strchrnul.c: Reindent.
44849         * lib/strchrnul.c: Likewise.
44850
44851         Optimize and test strchrnul.
44852         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
44853         * modules/strchrnul-tests: New file.
44854         * tests/test-strchrnul.c: Likewise.
44855
44856         Remove intprops dependency.
44857         * modules/memchr (Depends-on): Remove intprops.
44858         * modules/memrchr (Depends-on): Likewise.
44859         * modules/memchr2 (Depends-on): Likewise.
44860         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
44861         * lib/memrchr.c (__memrchr): Likewise.
44862         * lib/memrchr2.c (memchr2): Likewise.
44863         Reported by Simon Josefsson.
44864
44865 2008-04-28  Simon Josefsson  <simon@josefsson.org>
44866
44867         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
44868         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
44869
44870 2008-04-28  Simon Josefsson  <simon@josefsson.org>
44871
44872         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
44873
44874         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
44875
44876         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
44877
44878         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
44879         declarations.
44880         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
44881
44882         * m4/inet_pton.m4: Don't check for header files.
44883
44884         * m4/inet_ntop.m4: Don't check for header files.
44885
44886 2008-04-28  Simon Josefsson  <simon@josefsson.org>
44887
44888         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
44889         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
44890         trigger for cygwin).
44891         Reported by Bruno Haible  <bruno@clisp.org>.
44892
44893 2008-04-28  Bruno Haible  <bruno@clisp.org>
44894
44895         * doc/posix-functions/strdup.texi: Mention mingw problem.
44896
44897 2008-04-27  Bruno Haible  <bruno@clisp.org>
44898
44899         * modules/stat-time-tests (Depends-on): Add sleep.
44900         * tests/test-stat-time.c (force_unlink): New function.
44901         (cleanup): Use it.
44902         (test_mtime): Remove the ctime related tests.
44903         (test_ctime): New function, containing the ctime related tests.
44904         (main): Call test_ctime, except on native Windows platforms.
44905
44906 2008-04-27  Bruno Haible  <bruno@clisp.org>
44907
44908         * lib/rpmatch.c (rpmatch): Add some comments.
44909         Reported by James Youngman <jay@gnu.org>.
44910
44911 2008-04-27  Bruno Haible  <bruno@clisp.org>
44912
44913         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
44914         quiet NaNs.
44915
44916 2008-04-27  Bruno Haible  <bruno@clisp.org>
44917
44918         Make test-yesno.sh work on mingw.
44919         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
44920         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
44921         (main): Set stdin to binary mode.
44922         * modules/yesno-tests (Depends-on): Add binary-io.
44923
44924 2008-04-27  Bruno Haible  <bruno@clisp.org>
44925
44926         Fix 'isfinite' on x86, x86_64, ia64 platforms.
44927         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
44928         argument that lie outside the IEEE 854 domain.
44929         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
44930         (gl_ISFINITE): Use it.
44931         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
44932
44933 2008-04-27  Bruno Haible  <bruno@clisp.org>
44934
44935         Allow local renaming in config.h.
44936         * lib/memrchr.c (memrchr): Don't undefine outside libc.
44937
44938 2008-04-27  Bruno Haible  <bruno@clisp.org>
44939
44940         * lib/memchr.c (__memchr): Change type of 'i'.
44941         * lib/memchr2.c (memchr2): Likewise.
44942
44943 2008-04-26  Eric Blake  <ebb9@byu.net>
44944         and Bruno Haible  <bruno@clisp.org>
44945
44946         Optimize and test memrchr.
44947         * modules/memrchr (Depends-on): Add intprops.
44948         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
44949         * modules/memrchr-tests: New file.
44950         * tests/test-memrchr.c: New file.
44951
44952 2008-04-26  Bruno Haible  <bruno@clisp.org>
44953
44954         Add tentative support for DragonFly BSD.
44955         * lib/stdio-impl.h: Add macros for DragonFly BSD.
44956         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
44957         fp.
44958         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
44959         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
44960         * lib/fpurge.c (fpurge): Likewise.
44961         * lib/freadable.c (freaadable): Likewise.
44962         * lib/freadahead.c (freadahead): Likewise.
44963         * lib/freading.c (freading): Likewise.
44964         * lib/freadptr.c (freadptr): Likewise.
44965         * lib/freadseek.c (freadptrinc): Likewise.
44966         * lib/fseeko.c (fseeko): Likewise.
44967         * lib/fseterr.c (fseterr): Likewise.
44968         * lib/fwritable.c (fwritable): Likewise.
44969         * lib/fwriting.c (fwriting): Likewise.
44970
44971 2008-04-26  Bruno Haible  <bruno@clisp.org>
44972
44973         * lib/stdio-impl.h: New file.
44974         * lib/fbufmode.c: Include stdio-impl.h.
44975         (fbufmode): Use fp_, remove redundant #defines.
44976         * lib/fflush.c: Include stdio-impl.h.
44977         (clear_ungetc_buffer): Remove redundant #defines.
44978         * lib/fpurge.c: Include stdio-impl.h.
44979         (fpurge): Remove redundant #defines.
44980         * lib/freadable.c: Include stdio-impl.h.
44981         (freadable): Remove redundant #defines.
44982         * lib/freadahead.c: Include stdio-impl.h.
44983         (freadahead): Remove redundant #defines.
44984         * lib/freading.c: Include stdio-impl.h.
44985         (freading): Remove redundant #defines.
44986         * lib/freadptr.c: Include stdio-impl.h.
44987         (freadptr): Remove redundant #defines.
44988         * lib/freadseek.c: Include stdio-impl.h.
44989         (freadptrinc): Remove redundant #defines.
44990         * lib/fseeko.c: Include stdio-impl.h.
44991         (rpl_fseeko): Remove redundant #defines.
44992         * lib/fseterr.c: Include stdio-impl.h.
44993         (fseterr): Remove redundant #defines.
44994         * lib/fwritable.c: Include stdio-impl.h.
44995         (fwritable: Remove redundant #defines.
44996         * lib/fwriting.c: Include stdio-impl.h.
44997         (fwriting): Remove redundant #defines.
44998         * modules/fbufmode (Files): Add lib/stdio-impl.h.
44999         * modules/fflush (Files): Likewise.
45000         * modules/fpurge (Files): Likewise.
45001         * modules/freadable (Files): Likewise.
45002         * modules/freadahead (Files): Likewise.
45003         * modules/freading (Files): Likewise.
45004         * modules/freadptr (Files): Likewise.
45005         * modules/freadseek (Files): Likewise.
45006         * modules/fseeko (Files): Likewise.
45007         * modules/fseterr (Files): Likewise.
45008         * modules/fwritable (Files): Likewise.
45009         * modules/fwriting (Files): Likewise.
45010
45011 2008-04-26  Bruno Haible  <bruno@clisp.org>
45012
45013         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
45014         restore_seek_optimization, update_fpos_cache): New functions, extracted
45015         from rpl_fflush.
45016         (rpl_fflush): Use them.
45017         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
45018         (gl_REPLACE_FFLUSH): Use it.
45019
45020 2008-04-26  Bruno Haible  <bruno@clisp.org>
45021
45022         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
45023         on Solaris.
45024         * tests/test-xstrtoimax.sh: Likewise.
45025         * tests/test-xstrtoumax.sh: Likewise.
45026         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
45027
45028 2008-04-26  Bruno Haible  <bruno@clisp.org>
45029
45030         * modules/memchr-tests: New file.
45031         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
45032
45033 2008-04-26  Eric Blake  <ebb9@byu.net>
45034             Bruno Haible  <bruno@clisp.org>
45035
45036         * lib/memchr.c: Include intprops.h.
45037         (__memchr): Optimize parallel detection of matching bytes. Rename local
45038         variables. Add explanatory comments.
45039
45040 2008-04-26  Bruno Haible  <bruno@clisp.org>
45041
45042         Fix module 'memchr', broken since 2000-10-28.
45043         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
45044
45045 2008-04-26  Bruno Haible  <bruno@clisp.org>
45046
45047         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
45048         comments.
45049
45050 2008-04-25  Eric Blake  <ebb9@byu.net>
45051
45052         Use native fstatat on cygwin 1.7.0.
45053         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
45054         first.
45055
45056 2008-04-23  Eric Blake  <ebb9@byu.net>
45057
45058         Improve memchr2 performance.
45059         * lib/memchr2.c (memchr2): Further optimize parallel detection of
45060         NUL bytes.
45061         * modules/memchr2 (Depends-on): Use intprops.h.
45062
45063 2008-04-23  Simon Josefsson  <simon@josefsson.org>
45064
45065         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
45066         an inline function instead of a CPP macro.  Patch by Ben Pfaff
45067         <blp@cs.stanford.edu>.
45068
45069 2008-04-23  Simon Josefsson  <simon@josefsson.org>
45070
45071         * lib/arpa_inet.in.h: New file.
45072
45073         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
45074         (Makefile.am): Sed in substitute header file.
45075
45076         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
45077         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
45078
45079         * modules/inet_ntop (configure.ac): Use
45080         gl_ARPA_INET_MODULE_INDICATOR.
45081
45082         * modules/inet_pton (configure.ac): Use
45083         gl_ARPA_INET_MODULE_INDICATOR.
45084
45085 2008-04-22  Jim Meyering  <meyering@redhat.com>
45086
45087         * modules/verify (License): Re-license as LGPLv2+.
45088
45089 2008-04-22  Simon Josefsson  <simon@josefsson.org>
45090
45091         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
45092         parameter to void* as per POSIX standard (MinGW uses char*).
45093
45094 2008-04-21  Bruno Haible  <bruno@clisp.org>
45095
45096         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
45097         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
45098         Define to replacements if REPLACE_ISWCNTRL is 1.
45099         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
45100         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
45101         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
45102         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
45103         what it fixes.
45104         * doc/posix-functions/iswalpha.texi: Likewise.
45105         * doc/posix-functions/iswblank.texi: Likewise.
45106         * doc/posix-functions/iswcntrl.texi: Likewise.
45107         * doc/posix-functions/iswdigit.texi: Likewise.
45108         * doc/posix-functions/iswgraph.texi: Likewise.
45109         * doc/posix-functions/iswlower.texi: Likewise.
45110         * doc/posix-functions/iswprint.texi: Likewise.
45111         * doc/posix-functions/iswpunct.texi: Likewise.
45112         * doc/posix-functions/iswspace.texi: Likewise.
45113         * doc/posix-functions/iswupper.texi: Likewise.
45114         * doc/posix-functions/iswxdigit.texi: Likewise.
45115         Reported by Alain Guibert.
45116
45117 2008-04-21  Bruno Haible  <bruno@clisp.org>
45118
45119         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
45120         Patch by Alain Guibert.
45121
45122 2008-04-21  Bruno Haible  <bruno@clisp.org>
45123
45124         Fix test failures on mingw.
45125         * tests/test-xstrtol.c (print_no_progname): New function.
45126         (main): Install it in error_print_progname hook.
45127         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
45128         * tests/test-xstrtoimax.sh: Likewise.
45129         * tests/test-xstrtoumax.sh: Likewise.
45130
45131 2008-04-21  Bruno Haible  <bruno@clisp.org>
45132
45133         Fix test failure on mingw.
45134         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
45135
45136 2008-04-21  Bruno Haible  <bruno@clisp.org>
45137
45138         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
45139         Actually assign a value.
45140
45141 2008-04-20  Bruno Haible  <bruno@clisp.org>
45142
45143         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
45144         take 2.
45145         * lib/canonicalize.c (canonicalize_file_name): Elide if the
45146         'canonicalize-lgpl' module is also used.
45147         * lib/canonicalize-lgpl.c: Undo last change.
45148         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
45149
45150 2008-04-20  Bruno Haible  <bruno@clisp.org>
45151
45152         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
45153         config.h. Provide _mkdir based fallback for mingw.
45154         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
45155         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
45156         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
45157         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
45158         rather than defining mkdir in config.h.
45159         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
45160         (gl_SYS_STAT_H_DEFAULTS): New macro.
45161         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
45162         HAVE_IO_H any more.
45163         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
45164         HAVE_DECL_MKDIR and HAVE_IO_H.
45165
45166 2008-04-20  Bruno Haible  <bruno@clisp.org>
45167
45168         * lib/isapipe.c: Port to native Windows platforms.
45169
45170 2008-04-20  Bruno Haible  <bruno@clisp.org>
45171
45172         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
45173
45174 2008-04-21  Eric Blake  <ebb9@byu.net>
45175
45176         Work around preprocessors that don't handle UINTMAX_MAX.
45177         * lib/memchr2.c (memchr2): Avoid embedded #if.
45178         Reported by Alain Guibert, fix suggested by Bruno Haible.
45179
45180 2008-04-21  Simon Josefsson  <simon@josefsson.org>
45181
45182         * doc/posix-functions/strftime.texi (strftime): Explain better
45183         Windows incompatibility.  Suggested by Micah Cowan
45184         <micah@cowan.name>.
45185
45186 2008-04-20  Bruno Haible  <bruno@clisp.org>
45187
45188         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
45189         unistr/u8-mblen.
45190
45191 2008-04-20  Bruno Haible  <bruno@clisp.org>
45192
45193         Fix test failure on platforms with non-GNU iconv.
45194         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
45195         (U_TO_U8): Use it, rather than u16_to_u8.
45196         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
45197         units at the end of the input string.
45198         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
45199
45200 2008-04-20  Bruno Haible  <bruno@clisp.org>
45201
45202         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
45203         when the resulting length is 0.
45204         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
45205
45206 2008-04-20  Bruno Haible  <bruno@clisp.org>
45207
45208         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
45209         works.
45210         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
45211
45212 2008-04-20  Bruno Haible  <bruno@clisp.org>
45213
45214         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
45215         * modules/tsearch-tests (configure.ac): Test for initstate function.
45216
45217 2008-04-20  Bruno Haible  <bruno@clisp.org>
45218
45219         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
45220         for nlink_t if missing.
45221         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
45222
45223 2008-04-19  Bruno Haible  <bruno@clisp.org>
45224
45225         Work around snprintf bug on Linux libc5.
45226         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
45227         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
45228         gl_SNPRINTF_SIZE1.
45229         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
45230         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
45231         that test failed.
45232         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
45233         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
45234         * modules/snprintf (Files): Add m4/printf.m4.
45235         * modules/vsnprintf (Files): Likewise.
45236         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
45237         * doc/posix-functions/vsnprintf.texi: Likewise.
45238
45239 2008-04-19  Bruno Haible  <bruno@clisp.org>
45240
45241         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
45242         from 0.0058 to less than 10^-7.
45243
45244 2008-04-19  Bruno Haible  <bruno@clisp.org>
45245
45246         Fix rounding when a precision is given.
45247         * lib/vasnprintf.c (is_borderline): New function.
45248         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
45249         9...9x.
45250         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
45251         %e, %g.
45252         * tests/test-vasprintf-posix.c (test_function): Likewise.
45253         * tests/test-snprintf-posix.h (test_function): Likewise.
45254         * tests/test-sprintf-posix.h (test_function): Likewise.
45255         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
45256         * tests/test-printf-posix.h (test_function): Likewise.
45257         * tests/test-printf-posix.output: Update.
45258         Reported by John Darrington <john@darrington.wattle.id.au> via
45259         Ben Pfaff <blp@cs.stanford.edu>.
45260
45261 2008-04-18  Simon Josefsson  <simon@josefsson.org>
45262
45263         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
45264         Suggested by Bruno Haible <bruno@clisp.org>.
45265
45266 2008-04-17  Bruno Haible  <bruno@clisp.org>
45267
45268         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
45269         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
45270         implementation.
45271         Patch by Bruce Merry <bmerry@gmail.com>.
45272
45273 2008-04-17  Simon Josefsson  <simon@josefsson.org>
45274
45275         * doc/posix-functions/strftime.texi (strftime): Mention that %e
45276         doesn't work under Windows.
45277
45278 2008-04-16  Bruno Haible  <bruno@clisp.org>
45279
45280         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
45281         New macros.
45282         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
45283         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
45284         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
45285         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
45286         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
45287         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
45288         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
45289         macros.
45290         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
45291         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
45292         Northern Sotho, Uighur.
45293
45294 2008-04-16  Bruno Haible  <bruno@clisp.org>
45295
45296         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
45297         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
45298         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
45299         Reported by Daniel Bergström <daniel@octocode.com>.
45300
45301 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
45302             Bruno Haible  <bruno@clisp.org>
45303
45304         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
45305         function.
45306         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
45307         New functions, mostly extracted from gl_locale_name_default.
45308         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
45309
45310 2008-04-16  Eric Blake  <ebb9@byu.net>
45311
45312         Adjust strtod detection to catch glibc 2.7 bug.
45313         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
45314         Reported by John Gatewood Ham.
45315
45316 2008-04-16  Bruno Haible  <bruno@clisp.org>
45317
45318         Add tentative support for Linux libc5.
45319         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
45320         * lib/fpurge.c (fpurge): Likewise.
45321         * lib/freadable.c (freadable): Likewise.
45322         * lib/freadahead.c (freadahead): Likewise.
45323         * lib/freading.c (freading): Likewise.
45324         * lib/freadptr.c (freadptr): Likewise.
45325         * lib/freadseek.c (freadptrinc): Likewise.
45326         * lib/fseeko.c (rpl_fseeko): Likewise.
45327         * lib/fseterr.c (fseterr): Likewise.
45328         * lib/fwritable.c (fwritable): Likewise.
45329         * lib/fwriting.c (fwriting): Likewise.
45330         Reported by Alain Guibert <alguibert+bts@free.fr>.
45331
45332 2008-04-15  Bruno Haible  <bruno@clisp.org>
45333
45334         * modules/mathl (configure.ac): Define module indicator.
45335
45336 2008-04-15  Bruno Haible  <bruno@clisp.org>
45337
45338         * lib/logl.c (logl): Remove unused variables.
45339
45340 2008-04-15  Bruno Haible  <bruno@clisp.org>
45341
45342         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
45343         fails.
45344
45345 2008-04-15  Bruno Haible  <bruno@clisp.org>
45346
45347         * lib/trim.c (trim2): Fix argument of isspace() macro.
45348
45349 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
45350
45351         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
45352         to 0.
45353         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
45354
45355 2008-04-14  Bruno Haible  <bruno@clisp.org>
45356
45357         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
45358         AC_LANG_PROGRAM argument.
45359         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
45360         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
45361         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
45362         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
45363         * m4/math_h.m4 (gl_MATH_H): Likewise.
45364         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
45365         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
45366         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
45367         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
45368         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
45369         * m4/regex.m4 (gl_REGEX): Likewise.
45370         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
45371         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
45372         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
45373         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
45374         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
45375         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
45376         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
45377         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
45378
45379 2008-04-14  Jim Meyering  <meyering@redhat.com>
45380
45381         test-strtod: fix typos: s/abs/fabs/
45382         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
45383
45384 2008-04-13  Bruno Haible  <bruno@clisp.org>
45385
45386         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
45387         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
45388         module is also used and while not building the reloc-wrapper.
45389
45390 2008-04-13  Bruno Haible  <bruno@clisp.org>
45391
45392         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
45393
45394 2008-04-13  Bruno Haible  <bruno@clisp.org>
45395
45396         Fix AIX compilation failure introduced on 2008-04-02.
45397         * tests/test-frexp.c (exp): Undefine before redefining.
45398         * tests/test-frexpl.c (exp): Likewise.
45399
45400 2008-04-13  Bruno Haible  <bruno@clisp.org>
45401
45402         Work around a HP-UX stdio bug.
45403         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
45404         * tests/test-ftello.c (main): Likewise.
45405         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
45406         * doc/posix-functions/ftello.texi: Likewise.
45407
45408 2008-04-13  Bruno Haible  <bruno@clisp.org>
45409
45410         Make test-signbit pass on HP-UX/hppa.
45411         * tests/test-signbit.c (minus_zerol): New variable.
45412         (test_signbitl): Use it.
45413
45414 2008-04-13  Bruno Haible  <bruno@clisp.org>
45415
45416         Make truncl work on OSF/1 4.0.
45417         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
45418         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
45419         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
45420         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
45421         HAVE_DECL_TRUNCL.
45422         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
45423         HAVE_DECL_TRUNCL.
45424         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
45425
45426 2008-04-13  Bruno Haible  <bruno@clisp.org>
45427
45428         * lib/unictype.h: Remove trailing comma from enumeration definitions.
45429
45430 2008-04-13  Bruno Haible  <bruno@clisp.org>
45431
45432         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
45433         expression, so as to avoid HP-UX 11 cc compiler bug.
45434
45435 2008-04-13  Bruno Haible  <bruno@clisp.org>
45436
45437         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
45438
45439 2008-04-13  Bruno Haible  <bruno@clisp.org>
45440
45441         * lib/git-merge-changelog.c: Remove empty declaration outside of
45442         functions.
45443
45444 2008-04-13  Bruno Haible  <bruno@clisp.org>
45445
45446         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
45447
45448 2008-04-13  Bruno Haible  <bruno@clisp.org>
45449
45450         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
45451         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
45452         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
45453         also if it exists but lacks definitions of the SHUT_* macros.
45454         * modules/sys_socket (Description): Update.
45455         Reported by Elbert Pol <e.pol@chello.nl>.
45456
45457 2008-04-13  Bruno Haible  <bruno@clisp.org>
45458
45459         * lib/localcharset.c (OS2): Don't redefine if already defined.
45460         Reported by Elbert Pol <e.pol@chello.nl>.
45461
45462 2008-04-13  Bruno Haible  <bruno@clisp.org>
45463
45464         * lib/binary-io.h [__EMX__]: Include <io.h>.
45465         Reported by Elbert Pol <e.pol@chello.nl>.
45466
45467 2008-04-12  Bruno Haible  <bruno@clisp.org>
45468
45469         * lib/fpucw.h: Enable the definitions also for x86_64.
45470         Needed for NetBSD/x86_64.
45471         Reported by Thomas Klausner <tk@giga.or.at>.
45472
45473 2008-04-12  Bruno Haible  <bruno@clisp.org>
45474
45475         * tests/test-strtod.c: Include isnand.h.
45476         (main): Use isnand instead of isnan.
45477         Reported by Jim Meyering.
45478
45479 2008-04-12  Bruno Haible  <bruno@clisp.org>
45480
45481         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
45482         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
45483
45484 2008-04-12  Jim Meyering  <meyering@redhat.com>
45485
45486         * m4/math_h.m4 (gl_MATH_H): Fix typos.
45487
45488 2008-04-12  Bruno Haible  <bruno@clisp.org>
45489
45490         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
45491         Reported by Elbert Pol <e.pol@chello.nl>.
45492
45493 2008-04-12  Eric Blake  <ebb9@byu.net>
45494
45495         Work around Solaris 10 math.h bug.
45496         * m4/math_h.m4 (gl_MATH_H): Check for bug.
45497         (gl_MATH_H_DEFAULTS): Set up default.
45498         * modules/math (Makefile.am): Replace new indicators.
45499         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
45500         * tests/test-math.c (main): Test this.
45501         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
45502         * doc/posix-headers/math.texi (math.h): Mention bug.
45503         Reported by Nelson H. F. Beebe and Jim Meyering.
45504
45505 2008-04-11  Bruno Haible  <bruno@clisp.org>
45506
45507         Adapt to future versions of Apple GCC.
45508         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
45509         Reported by Peter O'Gorman <peter@pogma.com>.
45510
45511 2008-04-11  Bruno Haible  <bruno@clisp.org>
45512
45513         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
45514
45515 2008-04-11  Bruno Haible  <bruno@clisp.org>
45516
45517         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
45518
45519         * modules/getaddrinfo-tests (Makefile.am): Define
45520         test_getaddrinfo_LDADD.
45521
45522 2008-04-11  Bruno Haible  <bruno@clisp.org>
45523
45524         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
45525         (init): Fix syntax error.
45526         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
45527         is declared.
45528
45529 2008-04-11  Bruno Haible  <bruno@clisp.org>
45530
45531         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
45532         * modules/glob (Depends-on): Add stdbool.
45533
45534 2008-04-11  Bruno Haible  <bruno@clisp.org>
45535
45536         * lib/trim.c: Include <string.h>.
45537
45538 2008-04-11  Eric Blake  <ebb9@byu.net>
45539
45540         Avoid compile failure on OS/2.
45541         * lib/regex_internal.h (internal_function): Disable optimization
45542         on OS/2 (__EMX__), where it caused compiler error.
45543         Reported by Elbert Pol.
45544
45545 2008-04-11  Bruno Haible  <bruno@clisp.org>
45546
45547         Flush the standard error stream before aborting. Needed on mingw.
45548         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
45549         * tests/test-array_list.c (ASSERT): Likewise.
45550         * tests/test-array_oset.c (ASSERT): Likewise.
45551         * tests/test-avltree_list.c (ASSERT): Likewise.
45552         * tests/test-avltree_oset.c (ASSERT): Likewise.
45553         * tests/test-avltreehash_list.c (ASSERT): Likewise.
45554         * tests/test-binary-io.c (ASSERT): Likewise.
45555         * tests/test-byteswap.c (ASSERT): Likewise.
45556         * tests/test-c-ctype.c (ASSERT): Likewise.
45557         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
45558         * tests/test-c-strcasestr.c (ASSERT): Likewise.
45559         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
45560         * tests/test-c-strstr.c (ASSERT): Likewise.
45561         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
45562         * tests/test-canonicalize.c (ASSERT): Likewise.
45563         * tests/test-carray_list.c (ASSERT): Likewise.
45564         * tests/test-ceilf1.c (ASSERT): Likewise.
45565         * tests/test-ceilf2.c (ASSERT): Likewise.
45566         * tests/test-ceill.c (ASSERT): Likewise.
45567         * tests/test-count-one-bits.c (ASSERT): Likewise.
45568         * tests/test-fbufmode.c (ASSERT): Likewise.
45569         * tests/test-fflush2.c (ASSERT): Likewise.
45570         * tests/test-floorf1.c (ASSERT): Likewise.
45571         * tests/test-floorf2.c (ASSERT): Likewise.
45572         * tests/test-floorl.c (ASSERT): Likewise.
45573         * tests/test-fopen.c (ASSERT): Likewise.
45574         * tests/test-fpending.c (ASSERT): Likewise.
45575         * tests/test-fprintf-posix.c (ASSERT): Likewise.
45576         * tests/test-fpurge.c (ASSERT): Likewise.
45577         * tests/test-freadable.c (ASSERT): Likewise.
45578         * tests/test-freadahead.c (ASSERT): Likewise.
45579         * tests/test-freading.c (ASSERT): Likewise.
45580         * tests/test-freadptr.c (ASSERT): Likewise.
45581         * tests/test-freadptr2.c (ASSERT): Likewise.
45582         * tests/test-freadseek.c (ASSERT): Likewise.
45583         * tests/test-freopen.c (ASSERT): Likewise.
45584         * tests/test-frexp.c (ASSERT): Likewise.
45585         * tests/test-frexpl.c (ASSERT): Likewise.
45586         * tests/test-fseek.c (ASSERT): Likewise.
45587         * tests/test-fseeko.c (ASSERT): Likewise.
45588         * tests/test-fstrcmp.c (ASSERT): Likewise.
45589         * tests/test-ftell.c (ASSERT): Likewise.
45590         * tests/test-ftello.c (ASSERT): Likewise.
45591         * tests/test-func.c (ASSERT): Likewise.
45592         * tests/test-fwritable.c (ASSERT): Likewise.
45593         * tests/test-fwriting.c (ASSERT): Likewise.
45594         * tests/test-getdelim.c (ASSERT): Likewise.
45595         * tests/test-getline.c (ASSERT): Likewise.
45596         * tests/test-i-ring.c (ASSERT): Likewise.
45597         * tests/test-iconv-utf.c (ASSERT): Likewise.
45598         * tests/test-iconv.c (ASSERT): Likewise.
45599         * tests/test-isfinite.c (ASSERT): Likewise.
45600         * tests/test-isnand.c (ASSERT): Likewise.
45601         * tests/test-isnanf.c (ASSERT): Likewise.
45602         * tests/test-isnanl.h (ASSERT): Likewise.
45603         * tests/test-ldexpl.c (ASSERT): Likewise.
45604         * tests/test-linked_list.c (ASSERT): Likewise.
45605         * tests/test-linkedhash_list.c (ASSERT): Likewise.
45606         * tests/test-localename.c (ASSERT): Likewise.
45607         * tests/test-lseek.c (ASSERT): Likewise.
45608         * tests/test-mbscasecmp.c (ASSERT): Likewise.
45609         * tests/test-mbscasestr1.c (ASSERT): Likewise.
45610         * tests/test-mbscasestr2.c (ASSERT): Likewise.
45611         * tests/test-mbscasestr3.c (ASSERT): Likewise.
45612         * tests/test-mbscasestr4.c (ASSERT): Likewise.
45613         * tests/test-mbschr.c (ASSERT): Likewise.
45614         * tests/test-mbscspn.c (ASSERT): Likewise.
45615         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
45616         * tests/test-mbspbrk.c (ASSERT): Likewise.
45617         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
45618         * tests/test-mbsrchr.c (ASSERT): Likewise.
45619         * tests/test-mbsspn.c (ASSERT): Likewise.
45620         * tests/test-mbsstr1.c (ASSERT): Likewise.
45621         * tests/test-mbsstr2.c (ASSERT): Likewise.
45622         * tests/test-mbsstr3.c (ASSERT): Likewise.
45623         * tests/test-memchr2.c (ASSERT): Likewise.
45624         * tests/test-memmem.c (ASSERT): Likewise.
45625         * tests/test-open.c (ASSERT): Likewise.
45626         * tests/test-printf-frexp.c (ASSERT): Likewise.
45627         * tests/test-printf-frexpl.c (ASSERT): Likewise.
45628         * tests/test-printf-posix.c (ASSERT): Likewise.
45629         * tests/test-quotearg.c (ASSERT): Likewise.
45630         * tests/test-rbtree_list.c (ASSERT): Likewise.
45631         * tests/test-rbtree_oset.c (ASSERT): Likewise.
45632         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
45633         * tests/test-round1.c (ASSERT): Likewise.
45634         * tests/test-roundf1.c (ASSERT): Likewise.
45635         * tests/test-roundl.c (ASSERT): Likewise.
45636         * tests/test-signbit.c (ASSERT): Likewise.
45637         * tests/test-sleep.c (ASSERT): Likewise.
45638         * tests/test-snprintf-posix.c (ASSERT): Likewise.
45639         * tests/test-snprintf.c (ASSERT): Likewise.
45640         * tests/test-sprintf-posix.c (ASSERT): Likewise.
45641         * tests/test-stat-time.c (ASSERT): Likewise.
45642         * tests/test-strcasestr.c (ASSERT): Likewise.
45643         * tests/test-strerror.c (ASSERT): Likewise.
45644         * tests/test-striconv.c (ASSERT): Likewise.
45645         * tests/test-striconveh.c (ASSERT): Likewise.
45646         * tests/test-striconveha.c (ASSERT): Likewise.
45647         * tests/test-strsignal.c (ASSERT): Likewise.
45648         * tests/test-strstr.c (ASSERT): Likewise.
45649         * tests/test-strtod.c (ASSERT): Likewise.
45650         * tests/test-trunc1.c (ASSERT): Likewise.
45651         * tests/test-trunc2.c (ASSERT): Likewise.
45652         * tests/test-truncf1.c (ASSERT): Likewise.
45653         * tests/test-truncf2.c (ASSERT): Likewise.
45654         * tests/test-truncl.c (ASSERT): Likewise.
45655         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
45656         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
45657         * tests/test-vasnprintf.c (ASSERT): Likewise.
45658         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
45659         * tests/test-vasprintf.c (ASSERT): Likewise.
45660         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
45661         * tests/test-vprintf-posix.c (ASSERT): Likewise.
45662         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
45663         * tests/test-vsnprintf.c (ASSERT): Likewise.
45664         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
45665         * tests/test-wcwidth.c (ASSERT): Likewise.
45666         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
45667         * tests/test-xprintf-posix.c (ASSERT): Likewise.
45668         * tests/test-xvasprintf.c (ASSERT): Likewise.
45669         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
45670         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
45671         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
45672         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
45673         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
45674         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
45675         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
45676         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
45677         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
45678         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
45679         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
45680         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
45681         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
45682         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
45683         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
45684         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
45685         * tests/unictype/test-block_list.c (ASSERT): Likewise.
45686         * tests/unictype/test-block_of.c (ASSERT): Likewise.
45687         * tests/unictype/test-block_test.c (ASSERT): Likewise.
45688         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
45689         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
45690         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
45691         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
45692         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
45693         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
45694         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
45695         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
45696         * tests/unictype/test-combining.c (ASSERT): Likewise.
45697         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
45698         * tests/unictype/test-digit.c (ASSERT): Likewise.
45699         * tests/unictype/test-mirror.c (ASSERT): Likewise.
45700         * tests/unictype/test-numeric.c (ASSERT): Likewise.
45701         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
45702         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
45703         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
45704         * tests/unictype/test-scripts.c (ASSERT): Likewise.
45705         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
45706         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
45707         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
45708         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
45709         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
45710         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
45711         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
45712         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
45713         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
45714         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
45715         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
45716         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
45717         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
45718         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
45719         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
45720         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
45721         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
45722         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
45723         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
45724         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
45725         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
45726         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
45727         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
45728         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
45729         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
45730         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
45731         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
45732         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
45733         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
45734         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
45735         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
45736         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
45737         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
45738         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
45739         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
45740         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
45741         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
45742         Reported by Eric Blake.
45743
45744 2008-04-11  Bruno Haible  <bruno@clisp.org>
45745
45746         * lib/wchar.in.h: Tweak comment.
45747
45748 2008-04-11  Bruno Haible  <bruno@clisp.org>
45749
45750         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
45751         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
45752         gl_COMMON.
45753         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
45754
45755 2008-04-11  Bruno Haible  <bruno@clisp.org>
45756
45757         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
45758
45759 2008-04-11  Simon Josefsson  <simon@josefsson.org>
45760
45761         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
45762         of attempting to use non-existing /dev/*random.  Based on patch
45763         from Adam Strzelecki <ono@java.pl> in
45764         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
45765
45766 2008-04-08  Bruno Haible  <bruno@clisp.org>
45767
45768         Add tentative support for emx+gcc.
45769         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
45770         * lib/fpurge.c (fpurge): Likewise.
45771         * lib/freadable.c (freadable): Likewise.
45772         * lib/freadahead.c (freadahead): Likewise.
45773         * lib/freading.c (freading): Likewise.
45774         * lib/freadptr.c (freadptr): Likewise.
45775         * lib/freadseek.c (freadptrinc): Likewise.
45776         * lib/fseeko.c (rpl_fseeko): Likewise.
45777         * lib/fseterr.c (fseterr): Likewise.
45778         * lib/fwritable.c (fwritable): Likewise.
45779         * lib/fwriting.c (fwriting): Likewise.
45780         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
45781
45782 2008-04-09  Eric Blake  <ebb9@byu.net>
45783
45784         Avoid some autoconf warnings.
45785         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
45786         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
45787         * m4/afs.m4 (gl_AFS): Likewise.
45788         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
45789         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
45790         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
45791         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
45792         (gl_INTEGER_TYPE_SUFFIX): Likewise.
45793         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
45794         (AC_CHECK_DECLS_ONCE): Likewise.
45795         Rename file...
45796         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
45797         gnulib-tool requires autoconf 2.59 or better.
45798         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
45799
45800 2008-04-08  Eric Blake  <ebb9@byu.net>
45801
45802         Use 'git describe --match' if present (added in git 1.5.5).
45803         * build-aux/git-version-gen: Limit result to tags that match 'v*'
45804         if possible.
45805
45806 2008-04-08  Bruno Haible  <bruno@clisp.org>
45807
45808         Add tentative support for OpenServer.
45809         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
45810         _ptr, _cnt.
45811         * lib/fpurge.c (fpurge): Likewise.
45812         * lib/freadable.c (freadable): Likewise.
45813         * lib/freadahead.c (freadahead): Likewise.
45814         * lib/freading.c (freading): Likewise.
45815         * lib/freadptr.c (freadptr): Likewise.
45816         * lib/freadseek.c (freadptrinc): Likewise.
45817         * lib/fseeko.c (rpl_fseeko): Likewise.
45818         * lib/fseterr.c (fseterr): Likewise.
45819         * lib/fwritable.c (fwritable): Likewise.
45820         * lib/fwriting.c (fwriting): Likewise.
45821         Reported by Roger Cornelius <rac@tenzing.org> and
45822         Brian K. White <brian@aljex.com>.
45823
45824 2008-04-06  Jim Meyering  <meyering@redhat.com>
45825
45826         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
45827
45828 2008-04-06  Bruno Haible  <bruno@clisp.org>
45829
45830         Avoid possible error with non-ASCII bytes in UTF-8 locales.
45831         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
45832         * tests/test-printf-posix.sh: Likewise.
45833         * tests/test-vfprintf-posix.sh: Likewise.
45834         * tests/test-vprintf-posix.sh: Likewise.
45835         * tests/test-xprintf-posix.sh: Likewise.
45836
45837 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45838
45839         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
45840         hide error from 'ls', needed on OS/2.
45841         Report by Elbert Pol <elbert.pol@gmail.com>.
45842
45843 2008-04-04  Eric Blake  <ebb9@byu.net>
45844
45845         Make test-fseeko.c failures meaningful.
45846         * tests/test-fseeko.c: Print line number on failure.
45847         * tests/test-fseek.c: Likewise.
45848         Reported by Nelson H. F. Beebe.
45849
45850         Improve strtod bug detection check.
45851         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
45852         required for Solaris 10.
45853         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
45854
45855 2008-04-04  Bruno Haible  <bruno@clisp.org>
45856
45857         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
45858         by m4/setenv.m4.
45859
45860 2008-04-03  Eric Blake  <ebb9@byu.net>
45861
45862         Ensure sane .version contents.
45863         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
45864         version string.
45865         * build-aux/git-version-gen: Improve documentation.
45866
45867         Make GNU make output nicer.
45868         * top/GNUmakefile [!_have-Makefile]: Add dependency on
45869         MAKECMDGOALS to enforce message for all command line targets.  Set
45870         srcdir for use in maint.mk.
45871
45872         Another maintainer tweak.
45873         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
45874         a target that regenerates version.
45875
45876 2008-04-03  Jim Meyering  <meyering@redhat.com>
45877
45878         vc-list-files: don't cause coreutils "make po-check" failure
45879         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
45880
45881 2008-04-03  Eric Blake  <ebb9@byu.net>
45882
45883         Allow VPATH usage of vc-list-files.
45884         * build-aux/vc-list-files (scriptversion): Add timestamp.
45885         (options): Add --help, --version, -C.
45886         (CVS): Support installed cvsu.
45887
45888 2008-04-02  Bruno Haible  <bruno@clisp.org>
45889
45890         Avoid some "statement with no effect" warnings from gcc.
45891         * tests/test-wctype.c (main): Explicitly ignore unused values.
45892         Reported by Jim Meyering.
45893
45894 2008-04-02  Jim Meyering  <meyering@redhat.com>
45895
45896         Avoid some warnings from "gcc -Wshadow".
45897         * tests/test-frexp.c (exp): Define to a different identifier.
45898         * tests/test-frexpl.c (exp): Likewise.
45899
45900 2008-04-03  Jim Meyering  <meyering@redhat.com>
45901
45902         bootstrap: remove dangling *.[ch] symlinks from lib
45903         * build-aux/bootstrap [dangling symlink removal]: Move find's
45904         -depth option to precede all others, to avoid a warning.
45905         Remove *.[ch] files too, and from "$source_base" (usually lib/).
45906
45907 2008-04-02  Bruno Haible  <bruno@clisp.org>
45908
45909         Avoid some warnings from "gcc -Wshadow".
45910         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
45911         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
45912         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
45913         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
45914         Reported by Jim Meyering.
45915
45916 2008-04-01  Bruno Haible  <bruno@clisp.org>
45917
45918         Fix test to work on IRIX 6.5 with cc.
45919         * tests/test-math.c (numeric_equal): New function.
45920         (main): Use it.
45921
45922 2008-04-01  Bruno Haible  <bruno@clisp.org>
45923
45924         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
45925
45926 2008-04-01  Bruno Haible  <bruno@clisp.org>
45927
45928         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
45929         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
45930         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
45931         (Depends-on): Remove math.
45932
45933         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
45934         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
45935         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
45936         (Depends-on): Remove math.
45937
45938         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
45939         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
45940         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
45941         (Depends-on): Remove math.
45942         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
45943         (Depends-on): Remove math.
45944
45945         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
45946         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
45947         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
45948         (Depends-on): Remove math.
45949         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
45950         (Depends-on): Remove math.
45951
45952         * tests/test-round1.c: Include nan.h.
45953         (main): Use NaNd instead of NAN.
45954         * modules/round-tests (Files): Add tests/nan.h.
45955
45956         * tests/test-trunc1.c: Include nan.h.
45957         (main): Use NaNd instead of NAN.
45958         * modules/trunc-tests (Files): Add tests/nan.h.
45959
45960         * tests/test-roundf1.c: Include nan.h.
45961         (main): Use NaNf instead of NAN.
45962         * modules/roundf-tests (Files): Add tests/nan.h.
45963
45964         * tests/test-truncf1.c: Include nan.h.
45965         (main): Use NaNf instead of NAN.
45966         * modules/truncf-tests (Files): Add tests/nan.h.
45967
45968         * tests/test-ceilf1.c: Include nan.h.
45969         (main): Use NaNf instead of NAN.
45970         * modules/ceilf-tests (Files): Add tests/nan.h.
45971
45972         * tests/test-floorf1.c: Include nan.h.
45973         (main): Use NaNf instead of NAN.
45974         * modules/floorf-tests (Files): Add tests/nan.h.
45975
45976         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
45977         (main): Use NaNf instead of NAN.
45978         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
45979
45980         * tests/test-isnand.c: Include nan.h instead of <math.h>.
45981         (main): Use NaNd instead of NAN.
45982         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
45983
45984         * tests/test-frexp.c: Include nan.h.
45985         (main): Use NaNd instead of NAN.
45986         * modules/frexp-tests (Files): Add tests/nan.h.
45987
45988         * lib/isnan.c: Don't include <math.h>.
45989         (FUNC): Don't use NAN macro.
45990         * modules/isnand-nolibm (Depends-on): Remove math.
45991         * modules/isnanf-nolibm (Depends-on): Remove math.
45992         * modules/isnanl (Depends-on): Remove math.
45993         * modules/isnanl-nolibm (Depends-on): Remove math.
45994
45995         * tests/nan.h: New file.
45996
45997 2008-04-01  Eric Blake  <ebb9@byu.net>
45998
45999         Fix typos.
46000         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
46001         values to be the right type.
46002
46003         For now, cater to gnulib strtod inaccuracies.
46004         * tests/test-strtod.c (main): Allow 1-ulp error on expected
46005         fractional results.  While not as nice from a QoI perspective, it
46006         is a quicker patch than correctly implementing decimal to binary
46007         rounding.
46008
46009 2008-03-31  Eric Blake  <ebb9@byu.net>
46010
46011         Guarantee a definition of NAN.
46012         * lib/math.in.h (NAN): Define if missing.
46013         * tests/test-math.c (main): Test it.
46014         * doc/posix-headers/math.texi (math.h): Document this.
46015         * lib/isnan.c (rpl_isnand): Use it.
46016         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
46017         * tests/test-floorf1.c (NaN): Likewise.
46018         * tests/test-frexp.c (NaN): Likewise.
46019         * tests/test-isnand.c (NaN): Likewise.
46020         * tests/test-isnanf.c (NaN): Likewise.
46021         * tests/test-round1.c (NaN): Likewise.
46022         * tests/test-roundf1.c (NaN): Likewise.
46023         * tests/test-snprintf-posix.h (NaN): Likewise.
46024         * tests/test-sprintf-posix.h (NaN): Likewise.
46025         * tests/test-trunc1.c (NaN): Likewise.
46026         * tests/test-truncf1.c (NaN): Likewise.
46027         * tests/test-vasnprintf-posix.c (NaN): Likewise.
46028         * tests/test-vasprintf-posix.c (NaN): Likewise.
46029         * modules/isnand-nolibm (Depends-on): Add math.
46030         * modules/isnanf-nolibm (Depends-on): Likewise.
46031         * modules/isnanl (Depends-on): Likewise.
46032         * modules/isnanl-nolibm (Depends-on): Likewise.
46033         * modules/snprintf-posix-tests (Depends-on): Likewise.
46034         * modules/sprintf-posix-tests (Depends-on): Likewise.
46035         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
46036         * modules/vsprintf-posix-tests (Depends-on): Likewise.
46037         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
46038         * modules/vasprintf-posix-tests (Depends-on): Likewise.
46039
46040 2008-03-31  Bruno Haible  <bruno@clisp.org>
46041
46042         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
46043         * doc/posix-functions/strtod.texi: Likewise.
46044
46045 2008-03-31  Bruno Haible  <bruno@clisp.org>
46046
46047         * tests/test-strtod.c (main): Don't use C99 syntax.
46048
46049 2008-03-31  Bruno Haible  <bruno@clisp.org>
46050
46051         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
46052         Reported by Eric Blake.
46053
46054 2008-03-31  Jim Meyering  <meyering@redhat.com>
46055
46056         Don't compare actual signbit return values.
46057         * tests/test-strtod.c (main): Rather, compare only their
46058         zero/non-zero nature.
46059
46060 2008-03-31  Eric Blake  <ebb9@byu.net>
46061
46062         More strtod documentation.
46063         * doc/posix-functions/strtod.texi (strtod): Interpret more test
46064         failures as distinct bugs.
46065
46066 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
46067
46068         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
46069         Problem reported by Erik Benada in
46070         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
46071
46072 2008-03-30  Bruno Haible  <bruno@clisp.org>
46073
46074         * tests/test-strtod.c: Add comments about which assertion fails on which
46075         platform.
46076         * doc/posix-functions/strtod.texi: Add info about many more platforms.
46077
46078 2008-03-30  Eric Blake  <ebb9@byu.net>
46079
46080         Test signbit behavior on zeros.
46081         * tests/test-signbit.c (test_signbitf): Add tests for zero.
46082         (test_signbitd, test_signbitl): Likewise.
46083
46084         More strtod touchups.
46085         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
46086         sign of negative underflow, for now.  Use .5, not .1.
46087         * doc/posix-functions/strtod.texi (strtod): Mention these
46088         limitations.
46089         Reported by Jim Meyering.
46090
46091 2008-03-30  Bruno Haible  <bruno@clisp.org>
46092
46093         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
46094         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
46095
46096 2008-03-30  Bruno Haible  <bruno@clisp.org>
46097
46098         Avoid failure when attempting to return empty iconv results on some
46099         platforms.
46100         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
46101         allocation, don't report ENOMEM when the resulting string is empty.
46102
46103 2008-03-30  Bruno Haible  <bruno@clisp.org>
46104
46105         Fix buffer overrun.
46106         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
46107         Don't consider the width for tmp_length. Check count against tmp_length
46108         before doing the padding. Ensure enough allocation during padding.
46109
46110 2008-03-30  Eric Blake  <ebb9@byu.net>
46111
46112         strtod touchups.
46113         * lib/strtod.c (strtod): Avoid compiler warnings.
46114         Reported by Jim Meyering.
46115
46116 2008-03-30  Bruno Haible  <bruno@clisp.org>
46117
46118         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
46119         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
46120         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
46121         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
46122         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
46123         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
46124         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
46125         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
46126
46127         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
46128         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
46129         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
46130         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
46131         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
46132         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
46133         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
46134         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
46135
46136         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
46137         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
46138         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
46139         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
46140         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
46141         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
46142         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
46143         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
46144
46145         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
46146         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
46147
46148         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
46149         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
46150
46151         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
46152         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
46153
46154         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
46155         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
46156         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
46157
46158         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
46159         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
46160         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
46161
46162         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
46163         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
46164         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
46165
46166         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
46167         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
46168         * modules/vasprintf (Depends-on): Add EOVERFLOW.
46169
46170         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
46171         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
46172         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
46173         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
46174         (Depends-on): Add EOVERFLOW.
46175         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
46176         (Depends-on): Add EOVERFLOW.
46177         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
46178         (Depends-on): Add EOVERFLOW.
46179         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
46180         (Depends-on): Add EOVERFLOW.
46181         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
46182         (Depends-on): Add EOVERFLOW.
46183         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
46184         (Depends-on): Add EOVERFLOW.
46185         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
46186         (Depends-on): Add EOVERFLOW.
46187         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
46188         (Depends-on): Add EOVERFLOW.
46189
46190         * lib/sprintf.c (EOVERFLOW): Remove fallback.
46191         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
46192         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
46193
46194         * lib/snprintf.c (EOVERFLOW): Remove fallback.
46195         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
46196         * modules/snprintf (Depends-on): Add EOVERFLOW.
46197
46198         * lib/poll.c (EOVERFLOW): Remove fallback.
46199         * modules/poll (Depends-on): Add EOVERFLOW.
46200
46201         * lib/getugroups.c (EOVERFLOW): Remove fallback.
46202         * modules/getugroups (Depends-on): Add EOVERFLOW.
46203
46204         * lib/getdelim.c (EOVERFLOW): Remove fallback.
46205         * modules/getdelim (Depends-on): Add EOVERFLOW.
46206
46207         * lib/ftell.c (EOVERFLOW): Remove fallback.
46208         * modules/ftell (Depends-on): Add EOVERFLOW.
46209
46210         * lib/fprintf.c (EOVERFLOW): Remove fallback.
46211         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
46212         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
46213
46214         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
46215
46216         * modules/EOVERFLOW-tests: New file.
46217         * tests/test-EOVERFLOW.c: New file.
46218
46219         * modules/EOVERFLOW: New file.
46220         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
46221
46222 2008-03-30  Bruno Haible  <bruno@clisp.org>
46223
46224         Fix bug introduced on 2007-06-10.
46225         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
46226         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
46227
46228 2008-03-30  Bruno Haible  <bruno@clisp.org>
46229
46230         Improve freadseek's efficiency after ungetc.
46231         * lib/freadseek.c: Include freadahead.h.
46232         (freadptrinc): New function, extracted from freadseek.
46233         (freadseek): Use it in a loop. Use freadahead to determine the number
46234         of loop iterations.
46235         * modules/freadseek (Depends-on): Add freadahead.
46236         (configure.ac): Require AC_C_INLINE.
46237
46238 2008-03-30  Bruno Haible  <bruno@clisp.org>
46239
46240         * lib/freadseek.c (freadseek): Don't ignore the return value of
46241         freadptr.
46242
46243 2008-03-29  Eric Blake  <ebb9@byu.net>
46244
46245         Add hex float support.
46246         * modules/strtod (Depends-on): Add c-ctype.
46247         (Link): Mention POW_LIB.
46248         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
46249         whitespace between 'e' and exponent.
46250         * tests/test-strtod.c (main): Enable hex float tests.
46251         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
46252         now provides.
46253
46254         Document various strtod bugs, with some fixes.
46255         * doc/posix-functions/strtod.texi (strtod): Document bugs with
46256         "-0x", "inf", "nan", and hex constants.
46257         * doc/posix-functions/atof.texi (atof): Likewise.
46258         * modules/stdlib (Makefile.am): Support strtod.
46259         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
46260         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
46261         detect additional strtod bugs.
46262         * lib/stdlib.in.h (rpl_strtod): Add declarations.
46263         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
46264         bool where appropriate.  Parse 'inf' and 'nan'.
46265         * tests/test-strtod.c: New file.
46266         * modules/strtod (Depends-on): Add stdbool, stdlib.
46267         (configure.ac): Turn on module indicator.
46268         * modules/strtod-tests: New module.
46269
46270 2008-03-29  Eric Blake  <ebb9@byu.net>
46271
46272         Fix ftell on mingw.
46273         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
46274         * modules/ftell-tests (Depends-on): Add binary-io.
46275         * modules/ftello-tests (Depends-on): Likewise.
46276         * tests/test-ftell.c (main): Enhance test to cover behavior after
46277         ungetc.  Enforce binary mode.
46278         * tests/test-ftello.c (main): Likewise.
46279
46280         Pass test-freadseek on cygwin.
46281         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
46282         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
46283         ungetc buffer.
46284
46285         * tests/test-fflush2.c (main): Fix typo.
46286
46287 2008-03-29  Bruno Haible  <bruno@clisp.org>
46288
46289         * tests/test-fflush2.c (main): Temporarily disable the contents of
46290         this test.
46291         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
46292         Reported by Eric Blake.
46293
46294 2008-03-28  Simon Josefsson  <simon@josefsson.org>
46295
46296         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
46297         (GC_SHA224_DIGEST_SIZE): Add.
46298
46299         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
46300         (gc_hash_digest_length): Likewise.
46301         (gc_hash_buffer): Likewise.
46302
46303 2008-03-25  Bruno Haible  <bruno@clisp.org>
46304
46305         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
46306         detail which gettext release to use.
46307         Reported by Simon Josefsson.
46308
46309 2008-03-26  Jim Meyering  <meyering@redhat.com>
46310
46311         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
46312         * modules/gnumakefile (clean-GNUmakefile): Also, use
46313         test ... && ... || : syntax rather than if-then ... fi.
46314
46315         gnumakefile: Don't double-quote-expand $(VPATH) value.
46316         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
46317
46318 2008-03-24  Eric Blake  <ebb9@byu.net>
46319
46320         Alter GNUmakefile to install into top directory.
46321         * modules/maintainer-makefile: Split, and add dependency...
46322         * modules/gnumakefile: to this new module.
46323         * build-aux/GNUmakefile: Move...
46324         * top/GNUmakefile: ...here.
46325         * build-aux/maint.mk: Move...
46326         * top/maint.mk: ...here.
46327         * MODULES.html.sh (Support for maintaining...): Document new
46328         module.
46329
46330 2008-03-23  Bruno Haible  <bruno@clisp.org>
46331
46332         * gnulib-tool: New options --vc-files, --no-vc-files.
46333         (func_usage): Document them.
46334         (vc_files): New variable.
46335         (func_import): Consider vc_files.
46336         (func_create_testdir): Set vc_files to empty.
46337         Suggested by Jim Meyering and Karl Berry.
46338
46339 2008-03-23  Bruno Haible  <bruno@clisp.org>
46340
46341         Fix regex compilation error on HP-UX 11.
46342         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
46343         * modules/regex (Files): Add m4/mbstate_t.m4.
46344         Reported by Ton Voon <ton.voon@altinity.com>.
46345
46346 2008-03-23  Bruno Haible  <bruno@clisp.org>
46347
46348         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
46349
46350 2008-03-23  Eric Blake  <ebb9@byu.net>
46351             Bruno Haible  <bruno@clisp.org>
46352
46353         Install files from top/ in the destination directory.
46354         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
46355         augmentation also for the files from top/.
46356         (func_import, func_create_testdir): Rewrite file names:
46357         top/filename -> filename.
46358
46359 2008-03-23  Bruno Haible  <bruno@clisp.org>
46360
46361         Tweak "gnulib --version" output.
46362         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
46363
46364 2008-03-23  Bruno Haible  <bruno@clisp.org>
46365
46366         Tweak "gnulib --version" output.
46367         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
46368         rather than contents of ChangeLog, when possible.
46369
46370 2008-03-21  Eric Blake  <ebb9@byu.net>
46371
46372         More --version tweaks.
46373         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
46374         date of last ChangeLog entry.
46375
46376 2008-03-21  Jim Meyering  <meyering@redhat.com>
46377
46378         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
46379
46380 2008-03-20  Eric Blake  <ebb9@byu.net>
46381
46382         VPATH fix.
46383         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
46384
46385 2008-03-20  Simon Josefsson  <simon@josefsson.org>
46386
46387         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
46388         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
46389
46390 2008-03-20  Eric Blake  <ebb9@byu.net>
46391
46392         Sync GNUmakefile with coreutils.
46393         * build-aux/GNUmakefile (have-Makefile): Rename...
46394         (_have-Makefile): ...to this, for namespace consideration.
46395         (GNUmakefile.cfg): Include, if present.
46396         (_autoreconf): Define a default.
46397         (_is-dist-target): New rule for rebuilds to pick up intra-release
46398         version.
46399         (maint-cfg.mk): Rename...
46400         (cfg.mk): ...to this.
46401
46402 2008-03-18  Jim Meyering  <meyering@redhat.com>
46403
46404         New script and module: mktempd
46405         * MODULES.html.sh (maint+release support): Add mktempd.
46406         * build-aux/mktempd: New file.
46407         * modules/mktempd: New file.
46408
46409 2008-03-15  Jim Meyering  <meyering@redhat.com>
46410
46411         Undo last change.
46412         * lib/sha1.c, lib/md5.c: 63 != ~63.
46413         Reported by Andreas Schwab.
46414
46415         sha1.c, md5.c: Hoist a redundant expression.
46416         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
46417         "ctx->buflen" only once, before calling *_process_block.
46418         * lib/md5.c (md5_process_bytes): Likewise.
46419
46420 2008-03-14  Eric Blake  <ebb9@byu.net>
46421
46422         Bump copyright year in files generated by gnulib-tool.
46423         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
46424         gnulib-tool, rather than hard-coding it.
46425
46426         Fix 'gnulib-tool --version' output to work with git.
46427         * gnulib-tool (func_gnulib_dir): New function, extracted from...
46428         (startup): ...here.
46429         (func_version): Use it to invoke git-version-gen, rather than
46430         relying on CVS keyword expansion.  Modernize wording.
46431         (cvsdatestamp, last_checkin_date, version): Kill unused
46432         variables.
46433
46434 2008-03-12  Jim Meyering  <meyering@redhat.com>
46435
46436         Recognize optional cast of the argument to free.
46437         * build-aux/useless-if-before-free: Update regexps.
46438
46439         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
46440
46441 2008-03-11  Bruno Haible  <bruno@clisp.org>
46442
46443         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
46444         by a single package.
46445         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
46446         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
46447         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
46448         Reported by Sam Steingold <sds@gnu.org>.
46449
46450 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
46451
46452         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
46453         repositories.
46454
46455 2008-03-11  Bruno Haible  <bruno@clisp.org>
46456
46457         Avoid conflicts between local macro definitions.
46458         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
46459         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
46460
46461 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
46462             Bruno Haible  <bruno@clisp.org>
46463
46464         Make va_copy work with some version of xlc on AIX 5.1.
46465         * lib/stdarg.in.h: New file.
46466         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
46467         On AIX, use a <stdarg.h> file substitute.
46468         * modules/stdarg (Files): Add lib/stdarg.in.h.
46469         (Depends-on): Add include_next.
46470         (Makefile.am): Build a stdarg.h substitute if requested.
46471         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
46472
46473 2008-03-10  Bruno Haible  <bruno@clisp.org>
46474
46475         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
46476         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
46477         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
46478
46479 2008-03-10  Bruno Haible  <bruno@clisp.org>
46480
46481         * modules/stdlib (Depends-on): Add include_next, remove
46482         absolute-header.
46483
46484 2008-03-09  Bruno Haible  <bruno@clisp.org>
46485
46486         * lib/freadahead.h (freadahead): Document more precisely.
46487         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
46488         the sum of both buffer sizes.
46489         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
46490         * NEWS: Document the change.
46491
46492 2008-03-09  Bruno Haible  <bruno@clisp.org>
46493
46494         Extend freadptr to return also the buffer size.
46495         * lib/freadptr.h (freadptr): Add sizep argument.
46496         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
46497         (freadptr): Add sizep argument. Determine buffer size like freadahead
46498         does.
46499         * tests/test-freadptr.c: Don't include freadahead.h.
46500         (main): Adapt for new calling convention of freadptr.
46501         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
46502         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
46503         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
46504         tests/test-freadptr2.sh.
46505         (Depends): Remove freadahead.
46506         (TESTS): Add test-freadptr2.sh.
46507         (check_PROGRAMS): Add test-freadptr2.
46508
46509 2008-03-09  Bruno Haible  <bruno@clisp.org>
46510
46511         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
46512         Report and solution by Simon Josefsson.
46513
46514 2008-03-06  Bruno Haible  <bruno@clisp.org>
46515
46516         Make fflush after ungetc work on BSD platforms.
46517         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
46518         * tests/test-fflush2.c: New file.
46519         * tests/test-fflush2.sh: New file.
46520         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
46521         tests/test-fflush2.c.
46522         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
46523         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
46524
46525 2008-03-06  Eric Blake  <ebb9@byu.net>
46526
46527         Likewise for ftello.
46528         * modules/ftello (Dependencies): Add extensions.
46529         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
46530
46531 2008-03-06  Bruno Haible  <bruno@clisp.org>
46532
46533         * modules/fseeko (Dependencies): Add extensions.
46534         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
46535         Needed on glibc systems.
46536
46537 2008-03-06  Bruno Haible  <bruno@clisp.org>
46538
46539         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
46540         email address.
46541         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
46542
46543 2008-03-06  Bruno Haible  <bruno@clisp.org>
46544
46545         * users.txt: Add libgnupdf.
46546
46547 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
46548
46549         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
46550         (Header File Substitutes, Function Substitutes,
46551         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
46552         (Build robot for gnulib): Fix typo.
46553
46554 2008-03-06  Bruno Haible  <bruno@clisp.org>
46555
46556         * doc/gnulib-tool.texi (VCS Issues): Small updates.
46557         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
46558
46559 2008-03-06  Bruno Haible  <bruno@clisp.org>
46560
46561         * doc/func.texi: New file, extracted from doc/gnulib.texi.
46562         * doc/gnulib.texi: Include it.
46563
46564 2008-03-06  Simon Josefsson  <simon@josefsson.org>
46565
46566         * modules/func (License): Change license to unlimited; there was
46567         no LGPL parts in the module anyway.
46568
46569 2008-03-06  Simon Josefsson  <simon@josefsson.org>
46570
46571         * modules/__func__: Renamed to modules/func.
46572         * modules/__func__-tests: Renamed to modules/func-tests.
46573         * tests/test-__func__.c: Renamed to tests/test-func.c.
46574         * m4/__func__.m4: Renamed to m4/func.m4.
46575         * doc/gnulib.texi (__func__): Section renamed to func.
46576         Suggested by Eric Blake <ebb9@byu.net>.
46577
46578 2008-03-06  Simon Josefsson  <simon@josefsson.org>
46579
46580         * doc/gnulib.texi (__func__): Use C99 terminology when talking
46581         about __func__.  Make example self-contained.  Suggested by Eric
46582         Blake <ebb9@byu.net>.
46583
46584         * tests/test-__func__.c (main): Avoid extraneous () around __func.
46585         Suggested by Eric Blake <ebb9@byu.net>.
46586
46587 2008-03-06  Simon Josefsson  <simon@josefsson.org>
46588
46589         * modules/__func__: New file.
46590         * modules/__func__-tests: New file.
46591         * tests/test-__func__.c: New file.
46592         * m4/__func__.m4: New file.
46593         * doc/gnulib.texi (__func__): Document __func__ module.
46594
46595 2008-03-05  Simon Josefsson  <simon@josefsson.org>
46596
46597         * modules/byteswap (License): Re-license as LGPLv2+.
46598
46599 2008-03-05  Simon Josefsson  <simon@josefsson.org>
46600
46601         * doc/Makefile: Add pdf target.
46602
46603 2008-03-05  Simon Josefsson  <simon@josefsson.org>
46604
46605         * modules/inline (License): Use 'unlimited', since there are only
46606         *.m4 files in this module.
46607
46608 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
46609             Bruno Haible  <bruno@clisp.org>
46610
46611         Add support for HP C 7.1 on OpenVMS 8.3.
46612         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
46613
46614 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
46615
46616         Update VMS specifics.
46617         * lib/getopt.c [VMS]: Remove include of unixlib.h.
46618
46619 2008-03-02  Jim Meyering  <meyering@redhat.com>
46620
46621         Remove the last dependency on the "free" module.
46622         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
46623         Reported by Bob Proulx.
46624
46625         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
46626
46627         Remove useless "if" tests before free.  Deprecate "free" module.
46628         * doc/posix-functions/free.texi: Mention that this
46629         module is no longer useful.
46630         * modules/free (Notice): Say this module is obsolete.
46631         * modules/readutmp (Depends-on): Remove free.
46632         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
46633         * lib/putenv.c (putenv): Likewise.
46634         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
46635         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
46636         * tests/test-c-strcasestr.c (main): Likewise.
46637         * tests/test-c-strstr.c (main): Likewise.
46638         * tests/test-mbscasestr1.c (main): Likewise.
46639         * tests/test-mbscasestr2.c (main): Likewise.
46640         * tests/test-mbsstr1.c (main): Likewise.
46641         * tests/test-mbsstr2.c (main): Likewise.
46642         * tests/test-memmem.c (main): Likewise.
46643         * tests/test-strcasestr.c (main): Likewise.
46644         * tests/test-striconv.c (main): Likewise.
46645         * tests/test-striconveh.c (main): Likewise.
46646         * tests/test-striconveha.c (main): Likewise.
46647         * tests/test-strstr.c (main): Likewise.
46648
46649         * build-aux/git-version-gen: Adjust a comment and the Usage string.
46650
46651         bootstrap: sync from coreutils again
46652         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
46653
46654 2008-03-01  Jim Meyering  <meyering@redhat.com>
46655
46656         bootstrap: sync from coreutils
46657         * build-aux/bootstrap (update_po_files): Copy a .po file into place
46658         also when the target doesn't exist.
46659
46660 2008-03-01  Eric Blake  <ebb9@byu.net>
46661
46662         Fix bugs in last patch.
46663         * lib/memchr2.c (memchr2): Fix typo.
46664         * tests/test-memchr2.c: Test previous bug, and don't use GNU
46665         extension.
46666         Reported by Bruce Korb.
46667
46668         New module 'memchr2'.
46669         * modules/memchr2: New file.
46670         * modules/memchr2-tests: Likewise.
46671         * lib/memchr2.h: Likewise.
46672         * lib/memchr2.c: Likewise, based on memchr.c.
46673         * tests/test-memchr2.c: New test.
46674         * MODULES.html.sh (String handling): Add memchr2.
46675
46676 2008-02-29  Bruno Haible  <bruno@clisp.org>
46677
46678         * modules/freadseek-tests: New file.
46679         * tests/test-freadseek.sh: New file.
46680         * tests/test-freadseek.c: New file.
46681
46682         New module 'freadseek'.
46683         * modules/freadseek: New file.
46684         * lib/freadseek.h: New file.
46685         * lib/freadseek.c: New file.
46686         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
46687
46688 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
46689
46690         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
46691         wydawca.
46692
46693         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
46694         program_invocation_name and program_invocation_short_name are
46695         present.
46696
46697 2008-02-28  Bruno Haible  <bruno@clisp.org>
46698
46699         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
46700         * tests/test-freadptr.sh: Also test non-seekable stdin.
46701
46702 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
46703
46704         * build-aux/bootstrap (source_base, m4_base)
46705         (doc_base, tests_base): New variables.
46706         (gnulib_tool_options): Do not hardcode base directories, use
46707         the above variables instead.
46708
46709 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
46710
46711         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
46712
46713 2008-02-28  Bruno Haible  <bruno@clisp.org>
46714
46715         * modules/freadptr-tests: New file.
46716         * tests/test-freadptr.sh: New file.
46717         * tests/test-freadptr.c: New file.
46718
46719         New module 'freadptr'.
46720         * modules/freadptr: New file.
46721         * lib/freadptr.h: New file.
46722         * lib/freadptr.c: New file.
46723         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
46724
46725 2008-02-26  Karl Berry  <karl@freefriends.org>
46726
46727         Sync from Libtool:
46728         * libltdl/argz.c (argz_add, argz_count): New functions.
46729         * libltdl/argz.in.h: Declare them.
46730         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
46731
46732 2008-02-22  Bruno Haible  <bruno@clisp.org>
46733
46734         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
46735         is a pointer type.  Needed for HP-UX 10.
46736         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
46737         * doc/posix-functions/gmtime_r.texi: Likewise.
46738         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
46739
46740 2008-02-24  Bruno Haible  <bruno@clisp.org>
46741
46742         * modules/environ-tests: New file.
46743         * tests/test-environ.c: New file.
46744
46745         New module 'environ'.
46746         * modules/environ: New file.
46747         * lib/unistd.in.h (environ): New declaration.
46748         * m4/environ.m4: New file.
46749         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
46750         after use.
46751         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
46752         HAVE_DECL_ENVIRON.
46753         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
46754         HAVE_DECL_ENVIRON.
46755         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
46756         wrong claim that 'environ' is missing on some systems.
46757         * modules/execute (Depends-on): Add environ.
46758         * lib/execute.c (environ): Remove fallback declaration.
46759         * modules/pipe (Depends-on): Add environ.
46760         * lib/pipe.c (environ): Remove fallback declaration.
46761         * modules/setenv (Depends-on): Add environ.
46762         * lib/setenv.c (environ): Remove fallback declaration.
46763         * modules/unsetenv (Depends-on): Add environ.
46764         * lib/unsetenv.c (environ): Remove fallback declaration.
46765         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
46766         m4/environ.m4.
46767         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
46768         (gl_PREREQ_UNSETENV): Likewise.
46769
46770 2008-02-24  Bruno Haible  <bruno@clisp.org>
46771
46772         * doc/posix-functions/environ.texi: Document the MacOS X problem.
46773
46774 2008-02-20  Bob Proulx  <bob@proulx.com>
46775
46776         Enable use of older two part flavor 'git describe'.
46777         * build-aux/git-version-gen: If using the older two part flavor of
46778         git version then recreate the third part now present in the
46779         newer three part flavor of git describe.
46780
46781 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
46782
46783         * lib/fts.c (fts_build): Typo correction to comment.
46784
46785 2008-02-17  Bruno Haible  <bruno@clisp.org>
46786
46787         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
46788         generating no-op conflicts.
46789
46790 2008-02-17  Bruno Haible  <bruno@clisp.org>
46791
46792         Speed up by 10%.
46793         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
46794         result_entries, rather than an index-based loop.
46795
46796 2008-02-17  Bruno Haible  <bruno@clisp.org>
46797
46798         Speed up by 25%.
46799         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
46800         'hashcode_cached'.
46801         (entry_create): New function.
46802         (entry_hashcode): Use the cached hashcode if possible.
46803         (read_changelog_file, try_split_merged_entry): Use entry_create.
46804
46805 2008-02-17  Bruno Haible  <bruno@clisp.org>
46806
46807         Speed up from O(n^2) to O(n) for long ChangeLog files.
46808         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
46809         (read_changelog_file): Change implementation of entries_reversed list
46810         to rbtreehash.
46811         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
46812
46813 2008-02-17  Bruno Haible  <bruno@clisp.org>
46814
46815         New option --split-merged-entry.
46816         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
46817         (find_paragraph_end, try_split_merged_entry): New functions.
46818         (long_options): Add option --split-merged-entry.
46819         (usage): Document option --split-merged-entry.
46820         (main): Implement option --split-merged-entry.
46821         Reported by Eric Blake.
46822
46823 2008-02-17  Bruno Haible  <bruno@clisp.org>
46824
46825         * lib/git-merge-changelog.c: Include c-strstr.h.
46826         (main): Support the "git pull --rebase" situation.
46827         * modules/git-merge-changelog (Depends-on): Add c-strstr.
46828         Reported by Eric Blake.
46829
46830 2008-02-16  Eric Blake  <ebb9@byu.net>
46831
46832         Avoid doubling \ in common case of "c-maybe" quoting style.
46833         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
46834         eliding outer quotes.
46835         * lib/quotearg.h: Document this.
46836         * tests/test-quotearg.c (result_strings, inputs, results_g)
46837         (flag_results, locale_results): Test it by adding a new string to
46838         each test group.
46839         (compare_strings): Test new string.
46840
46841 2008-02-13  Eric Blake  <ebb9@byu.net>
46842
46843         Avoid trigraph quoting in default output.
46844         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
46845         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
46846         unless explicitly requested.
46847         * tests/test-quotearg.c (flag_results, main): Add additional tests.
46848
46849 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
46850
46851         Don't rely on signed integer overflowing to negative value.
46852         * lib/getugroups.c (getugroups): Include <limits.h>.
46853         Instead, compare against INT_MAX, and increment only if the test passes.
46854
46855 2008-02-13  Jim Meyering  <meyering@redhat.com>
46856         and Eric Blake  <ebb9@byu.net>
46857
46858         Avoid shadowing warning and compile errors on Linux.
46859         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
46860         forwarding macros on Linux.
46861         (dcgettext): Define a stub, for Linux.
46862         (results_g, main): Avoid warnings.
46863
46864 2008-02-12  Eric Blake  <ebb9@byu.net>
46865
46866         Silence warning in last patch.
46867         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
46868
46869         Quotearg part 4: add tests, fix c-maybe colon quoting.
46870         * lib/quotearg.h: Improve documentation.
46871         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
46872         escapes when adding outer quotes.  When quoting trigraphs, use
46873         valid C notation.  When quoting NUL, omit extra characters if next
46874         character is not digit.  Alter prototype.
46875         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
46876         callers.
46877         * modules/quotearg-tests: New module.
46878         * tests/test-quotearg.c: New test.
46879
46880 2008-02-07  Eric Blake  <ebb9@byu.net>
46881
46882         Quotearg part 3: add flag to control outer quote elision.
46883         * lib/quotearg.h (c_maybe_quoting_style): New style.
46884         (enum quoting_flags): Better documentation of flags.
46885         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
46886         c-maybe style.
46887         (quotearg_buffer_restyled): Handle new flag to elide outer
46888         quotes.
46889
46890         Quotearg part 2: add flag that can control NUL elision.
46891         * lib/quotearg.h (set_quoting_flags): New prototype.
46892         * lib/quotearg.c (struct quoting_options): Add flag field.
46893         (set_quoting_flags): New function.
46894         (quotearg_buffer_restyled): Add flags parameter.
46895         (quotearg_alloc_mem): Set the flag if length cannot be returned.
46896         (quotearg_n_options): Set the flag, since length cannot be
46897         returned.
46898         (quoting_options_from_style): Default flags correctly.
46899
46900         Quotearg part 1: more wrappers, restore quotearg_char state.
46901         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
46902         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
46903         (quotearg_colon_mem): New wrappers.
46904         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
46905         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
46906         functions.
46907         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
46908         (quotearg_colon_mem): New functions.
46909
46910 2008-02-11  Bruno Haible  <bruno@clisp.org>
46911
46912         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
46913         library in the current directory: it does not work with parallel make.
46914         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
46915
46916 2008-02-11  Bruno Haible  <bruno@clisp.org>
46917
46918         * .gitattributes: New file.
46919
46920 2008-02-11  Jim Meyering  <meyering@redhat.com>
46921
46922         useless-if-before-free: Fix reversed exit values.
46923         * build-aux/useless-if-before-free: Use correct values
46924         for EXIT_MATCH and EXIT_NO_MATCH.
46925
46926         * build-aux/useless-if-before-free: Close stdout carefully.
46927
46928 2008-02-10  Bruno Haible  <bruno@clisp.org>
46929
46930         New module 'git-merge-changelog'.
46931         * modules/git-merge-changelog: New file.
46932         * lib/git-merge-changelog.c: New file.
46933
46934 2008-02-10  Jim Meyering  <meyering@redhat.com>
46935
46936         useless-if-before-free: New option: --list (-l).
46937
46938         useless-if-before-free: Don't exit immediately upon open failure.
46939         * build-aux/useless-if-before-free: Exit 2 for errors.
46940         Upon failure to open a file, don't exit immediately.
46941         Rather, just warn and continue with any remaining files.
46942
46943 2008-02-10  Bruno Haible  <bruno@clisp.org>
46944
46945         New abstract list operation 'node_set_value'.
46946         * lib/gl_list.h (gl_list_node_set_value): New function.
46947         (struct gl_list_implementation): New field node_set_value.
46948         * lib/gl_list.c (gl_list_node_set_value): New function.
46949         * lib/gl_array_list.c (gl_array_node_set_value): New function.
46950         (gl_array_list_implementation): Update.
46951         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
46952         (gl_carray_list_implementation): Update.
46953         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
46954         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
46955         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
46956         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
46957         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
46958         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
46959         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
46960         Update.
46961         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
46962         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
46963         (gl_sublist_list_implementation): Update.
46964
46965 2008-02-10  Bruno Haible  <bruno@clisp.org>
46966
46967         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
46968         Needed when ELEMENT is #defined to 'some_type *'.
46969
46970 2008-02-10  Jim Meyering  <meyering@redhat.com>
46971
46972         New script and module: useless-if-before-free
46973         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
46974         * build-aux/useless-if-before-free: New file.
46975         * modules/useless-if-before-free: New file.
46976
46977         * build-aux/gitlog-to-changelog: Use committer date, not author date.
46978
46979         xstrtol_error: Fix typo.
46980         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
46981         s/exit_failure/exit_status/.
46982
46983 2008-02-09  Jim Meyering  <meyering@redhat.com>
46984
46985         New script and module: gitlog-to-changelog
46986         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
46987         * modules/gitlog-to-changelog: New file.
46988         * build-aux/gitlog-to-changelog: New file.
46989
46990 2008-02-08  Jim Meyering  <meyering@redhat.com>
46991
46992         Avoid two "parameter unused" warnings.
46993         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
46994         Mark "st" as used.
46995
46996         Use "git COMMAND", not "git-COMMAND".
46997         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
46998         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
46999         * build-aux/git-version-gen: Use "git status", not "git-status".
47000
47001 2008-02-07  Bruno Haible  <bruno@clisp.org>
47002
47003         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
47004         Avoids a crash on Windows Vista.
47005         Reported by Adam Strzelecki <ono@java.pl> via
47006         Simon Josefsson <simon@josefsson.org>.
47007
47008 2008-02-06  Bruno Haible  <bruno@clisp.org>
47009
47010         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
47011         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
47012         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
47013         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
47014         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
47015         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
47016         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
47017         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
47018         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
47019         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
47020         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
47021         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
47022         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
47023         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
47024         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
47025         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
47026         left-adjust flag.
47027         * tests/test-snprintf-posix.h (test_function): Likewise.
47028         * tests/test-sprintf-posix.h (test_function): Likewise.
47029         * tests/test-vasprintf-posix.c (test_function): Likewise.
47030         * doc/posix-functions/fprintf.texi: Update.
47031         * doc/posix-functions/printf.texi: Update.
47032         * doc/posix-functions/snprintf.texi: Update.
47033         * doc/posix-functions/sprintf.texi: Update.
47034         * doc/posix-functions/vfprintf.texi: Update.
47035         * doc/posix-functions/vprintf.texi: Update.
47036         * doc/posix-functions/vsnprintf.texi: Update.
47037         * doc/posix-functions/vsprintf.texi: Update.
47038         Reported by Peter Fales <psfales@alcatel-lucent.com>.
47039
47040 2008-02-06  Bruno Haible  <bruno@clisp.org>
47041
47042         Fix bug introduced on 2008-01-26.
47043         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
47044
47045 2008-02-06  Bruno Haible  <bruno@clisp.org>
47046
47047         Fix bug introduced on 2007-06-10.
47048         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
47049         !NEED_PRINTF_FLAG_ZERO.
47050
47051 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
47052
47053         getloadavg: use libperfstat on AIX5
47054         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
47055
47056 2008-02-03  Bruno Haible  <bruno@clisp.org>
47057
47058         * lib/diffseq.h: Add comments about required #includes.
47059         Reported by Michael Biggs <gnulib@doubleplum.net>.
47060
47061 2008-02-01  Bruno Haible  <bruno@clisp.org>
47062
47063         * users.txt: Add gnuit.
47064
47065 2008-01-31  Bruno Haible  <bruno@clisp.org>
47066
47067         * lib/md4.c (set_uint32): Mark as inline.
47068         * lib/md5.c (set_uint32): Likewise.
47069         * lib/sha1.c (set_uint32): Likewise.
47070         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
47071         * m4/md5.m4 (gl_MD5): Likewise.
47072         * m4/sha1.m4 (gl_SHA1): Likewise.
47073
47074 2008-01-31  Jim Meyering  <meyering@redhat.com>
47075
47076         Use "sizeof VAR", rather than a literal "4".
47077         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
47078         * lib/md4.c (md4_read_ctx): Likewise.
47079         * lib/sha1.c (sha1_read_ctx): Likewise.
47080
47081 2008-01-31  Simon Josefsson  <simon@josefsson.org>
47082
47083         * tests/test-sha1.c: New file, based on test-md5.c.
47084
47085         * modules/crypto/sha1-tests: New file.
47086
47087 2008-01-31  Simon Josefsson  <simon@josefsson.org>
47088
47089         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
47090
47091 2008-01-31  Jim Meyering  <meyering@redhat.com>
47092
47093         Prefer "sizeof v" over the equivalent "4".
47094         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
47095         * lib/md5.c (set_uint32): Likewise.
47096         * lib/sha1.c (set_uint32): Likewise.
47097
47098 2008-01-31  Simon Josefsson  <simon@josefsson.org>
47099
47100         * lib/sha1.c (set_uint32): Mark function as static.
47101
47102 2008-01-31  Simon Josefsson  <simon@josefsson.org>
47103
47104         md2: clarify comments to say that alignment is not required.
47105         * lib/md2.h: Remove warning about alignment in comment.
47106         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
47107         never been required.
47108
47109 2008-01-31  Simon Josefsson  <simon@josefsson.org>
47110
47111         md4: adapt alignment constraint fix from sha1.
47112         * lib/md4.c (set_uint32): New function, from sha1.c
47113         (md4_read_ctx): Use it.
47114         (md4_finish_ctx): Doc fix.
47115         * lib/md4.h: Doc fix.
47116
47117 2008-01-31  Simon Josefsson  <simon@josefsson.org>
47118
47119         md5: adapt alignment constraint fix from sha1.
47120         * lib/md5.c (set_uint32): New function, from sha1.c
47121         (md5_read_ctx): Use it.
47122         (md5_finish_ctx): Doc fix.
47123         * lib/md5.h: Doc fix.
47124
47125 2008-01-30  Peter Palfrader  <weasel@debian.org>
47126
47127         sha1: remove the result buffer alignment constraint
47128         * lib/sha1.c (set_uint32): New function.
47129         (sha1_read_ctx): Rewrite to remove the result buffer alignment
47130         constraint.
47131         (sha1_finish_ctx): Remove comment warning about alignment constraint.
47132         * lib/sha1.h: Likewise.
47133
47134 2008-01-30  Andreas Schwab  <schwab@suse.de>
47135             Bruno Haible  <bruno@clisp.org>
47136
47137         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
47138         correct definition of LDBL_MIN_EXP.
47139
47140 2008-01-30  Karl Berry  <karl@gnu.org>
47141
47142         * config/srclist-update: try to preserve x bit on updates.
47143         * config/srclistvars.sh: update for karl.
47144
47145 2008-01-29  Jim Meyering  <meyering@redhat.com>
47146
47147         vasnprintf.c: Avoid warning about unused label
47148         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
47149         "overflow" label definition and associated code with the
47150         same cpp condition that guards the sole use of that label.
47151
47152 2008-01-26  Bruno Haible  <bruno@clisp.org>
47153
47154         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
47155         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
47156         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
47157         * lib/isnanl-nolibm.h (isnanl): Likewise.
47158         Reported by Paul Eggert <eggert@cs.ucla.edu>.
47159
47160 2008-01-26  Bruno Haible  <bruno@clisp.org>
47161
47162         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
47163         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
47164
47165 2008-01-26  Bruno Haible  <bruno@clisp.org>
47166
47167         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
47168         GCC >= 4.0 built-in.
47169         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
47170
47171 2008-01-26  Bruno Haible  <bruno@clisp.org>
47172
47173         Rename isnan, applicable to 'double' only, to isnand.
47174         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
47175         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
47176         (configure.ac): Update.
47177         (Include): Replace "isnan.h" with "isnand.h".
47178         * m4/isnand.m4: Renamed from m4/isnan.m4.
47179         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
47180         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
47181         instead of isnan.c.
47182         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
47183         instead of HAVE_ISNAN_IN_LIBC.
47184         (isnand): Renamed from isnan.
47185         * lib/isnand.c: New file.
47186         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
47187         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
47188         (Makefile.am): Update.
47189         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
47190         Include isnand.h instead of isnan.h.
47191         (main): Test isnand instead of isnan.
47192         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
47193         isnan-nolibm.
47194         * modules/frexp (Depends-on): Likewise.
47195         * modules/frexp-tests (Depends-on): Likewise.
47196         * modules/frexp-nolibm (Depends-on): Likewise.
47197         * modules/frexp-nolibm-tests (Depends-on): Likewise.
47198         * modules/isfinite (Depends-on): Likewise.
47199         * modules/round-tests (Depends-on): Likewise.
47200         * modules/signbit (Depends-on): Likewise.
47201         * modules/signbit-tests (Depends-on): Likewise.
47202         * modules/snprintf-posix (Depends-on): Likewise.
47203         * modules/sprintf-posix (Depends-on): Likewise.
47204         * modules/trunc-tests (Depends-on): Likewise.
47205         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
47206         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
47207         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
47208         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
47209         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
47210         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
47211         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
47212         * modules/vasnprintf-posix (Depends-on): Likewise.
47213         * modules/vasprintf-posix (Depends-on): Likewise.
47214         * modules/vfprintf-posix (Depends-on): Likewise.
47215         * modules/vsnprintf-posix (Depends-on): Likewise.
47216         * modules/vsprintf-posix (Depends-on): Likewise.
47217         * lib/frexp.c: Include isnand.h instead of isnan.h.
47218         (ISNAN): Set to isnand instead of isnan.
47219         * lib/isfinite.c: Include isnand.h instead of isnan.h.
47220         (gl_isfinited): Use isnand instead of isnan.
47221         * lib/signbitd.c: Include isnand.h instead of isnan.h.
47222         (gl_signbitd): Use isnand instead of isnan.
47223         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
47224         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
47225         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
47226         (main): Use isnand instead of isnan.
47227         * tests/test-round1.c: Include isnand.h.
47228         (main): Use isnand instead of isnan.
47229         * tests/test-round2.c: Include isnand.h instead of isnan.h.
47230         (ISNAN): Set to isnand instead of isnan.
47231         * tests/test-trunc1.c: Include isnand.h.
47232         (main): Use isnand instead of isnan.
47233         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
47234         (equal): Use isnand instead of isnan.
47235         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
47236         isnand-nolibm.
47237         * NEWS: Mention the change.
47238
47239 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
47240             Bruno Haible  <bruno@clisp.org>
47241
47242         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
47243         the GCC builtins for signbits are present and set
47244         REPLACE_SIGNBIT_USING_GCC if so.
47245         * lib/math.in.h (signbit): Define using GCC builtins if
47246         REPLACE_SIGNBIT_USING_GCC is set.
47247         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
47248         REPLACE_SIGNBIT_USING_GCC.
47249         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
47250
47251 2008-01-25  Jim Meyering  <meyering@redhat.com>
47252
47253         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
47254         * lib/poll.c: Include <config.h>, not "config.h".
47255         * tests/test-getaddrinfo.c: Likewise.
47256
47257 2008-01-25  Simon Josefsson  <simon@josefsson.org>
47258
47259         * modules/sockets-tests: New file.
47260
47261 2008-01-24  Simon Josefsson  <simon@josefsson.org>
47262
47263         * modules/sockets: New module, can be used to call WSA_Startup and
47264         WSA_Cleanup when needed.
47265
47266         * lib/sockets.h, lib/sockets.c: New files.
47267
47268         * m4/sockets.m4: New file.
47269
47270         * tests/test-sockets.c: New file.
47271
47272 2008-01-19  Bruno Haible  <bruno@clisp.org>
47273
47274         * doc/posix-headers: Renamed from doc/headers.
47275         * doc/posix-functions: Renamed from doc/functions.
47276         * doc/gnulib.texi: Update.
47277
47278 2008-01-19  Bruno Haible  <bruno@clisp.org>
47279
47280         * doc/glibc-functions/strcasestr.texi: Include contents of
47281         doc/functions/strcasestr.texi, fixing the list of platforms.
47282         * doc/functions/strcasestr.texi: Remove file.
47283
47284 2008-01-19  Bruno Haible  <bruno@clisp.org>
47285
47286         * doc/glibc-functions/memmem.texi: Include contents of
47287         doc/functions/memmem.texi.
47288         * doc/functions/memmem.texi: Remove file.
47289
47290 2008-01-18  Bruno Haible  <bruno@clisp.org>
47291
47292         * doc/glibc-functions/*.texi: New files.
47293         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
47294         to use the new files.
47295
47296 2008-01-17  Bruno Haible  <bruno@clisp.org>
47297
47298         * tests/test-gethostname.c (main): Fix printf statement.
47299
47300 2008-01-17  Simon Josefsson  <simon@josefsson.org>
47301
47302         * modules/gethostname-tests: New file.
47303
47304         * tests/test-gethostname.c: New file.
47305
47306 2008-01-17  Simon Josefsson  <simon@josefsson.org>
47307
47308         * lib/gethostname.c: Include string.h unconditionally, strncpy is
47309         used by the UNAME case.  Reported by Bruno Haible
47310         <bruno@clisp.org>.
47311
47312 2008-01-17  Eric Blake  <ebb9@byu.net>
47313
47314         Convert c-strcasestr to be more efficient.
47315         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
47316         (Depends-on): Add c-strcase, remove malloca, strnlen.
47317         * tests/test-c-strcasestr.c (main): Enhance test.
47318         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
47319
47320 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
47321
47322         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
47323         Use it in creating po/Makevars.
47324
47325 2008-01-15  Simon Josefsson  <simon@josefsson.org>
47326
47327         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
47328         Applications that requires it should initialize libgcrypt
47329         manually.
47330
47331 2008-01-16  Simon Josefsson  <simon@josefsson.org>
47332
47333         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
47334
47335 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
47336
47337         Fix problem with getdate on mingw32 reported by Simon Josefsson
47338         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
47339         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
47340         tzname", when deciding whether to declare tzname.
47341         * lib/strftime.c (tzname): Likewise.
47342
47343 2008-01-15  Bruno Haible  <bruno@clisp.org>
47344
47345         Work around a MacOS X 10.5 bug in frexpl().
47346         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
47347         * doc/functions/frexpl.texi: Document the bug.
47348         Reported by Elias Pipping <pipping@gentoo.org>.
47349
47350 2008-01-14  Eric Blake  <ebb9@byu.net>
47351
47352         Touch up previous patch.
47353         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
47354         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
47355
47356         Convert strcasestr module to use Two-Way algorithm.
47357         * modules/strcasestr-simple: New module, based on the old
47358         strcasestr, but with Two-Way rather than KMP.
47359         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
47360         * lib/string.in.h (rpl_strcasestr): Declare.
47361         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
47362         performance.
47363         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
47364         * modules/string (Makefile.am): Support strcasestr.
47365         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
47366         * modules/strcasestr-tests (Depends-on): Check for alarm.
47367         * tests/test-strcasestr.c: Augment test.
47368         * lib/str-two-way.h: Clean up stray macro.
47369         * NEWS: Document new module.
47370         * MODULES.html.sh (string handling): Likewise.
47371         * doc/functions/strcasestr.texi: New file.
47372         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
47373         here, since it is not a POSIX function.
47374
47375 2008-01-14  Colin Watson  <cjwatson@debian.org>
47376             Bruno Haible  <bruno@clisp.org>
47377
47378         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
47379         works fine; if not, set REPLACE_STRSIGNAL.
47380         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
47381         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
47382         REPLACE_STRSIGNAL.
47383         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
47384         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
47385         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
47386
47387 2008-01-14  Bruno Haible  <bruno@clisp.org>
47388
47389         * modules/strsignal (Include): Change to <string.h>.
47390
47391 2008-01-14  Colin Watson  <cjwatson@debian.org>
47392
47393         * modules/argp (Notice): Add a notice recommending to change
47394         XGETTEXT_OPTIONS.
47395         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
47396
47397 2008-01-13  Colin Watson  <cjwatson@debian.org>
47398
47399         * modules/strsignal-tests: New file.
47400         * tests/test-strsignal.c: New file.
47401
47402         * lib/strsignal.c: New file, from glibc with modifications.
47403         * lib/siglist.h: New file, from glibc with modifications.
47404         * lib/string.in.h (strsignal): New declaration.
47405         * m4/strsignal.m4: New file.
47406         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
47407         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
47408         * modules/strsignal: New file.
47409         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
47410         HAVE_DECL_STRSIGNAL.
47411
47412 2008-01-13  Bruno Haible  <bruno@clisp.org>
47413
47414         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
47415         locale encoding is not ASCII. Needed for OpenBSD 4.0.
47416         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
47417         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
47418
47419 2008-01-13  Bruno Haible  <bruno@clisp.org>
47420
47421         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
47422         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
47423         * lib/argp.h (__attribute__): Likewise.
47424         * lib/c-stack.c (__attribute__): Likewise.
47425         * lib/error.h (__attribute__): Likewise.
47426         * lib/fts.c (__attribute__): Likewise.
47427         * lib/openat.h (__attribute__): Likewise.
47428         * lib/stdio.in.h (__attribute__): Likewise.
47429         * lib/string.in.h (__attribute__): Likewise.
47430         * lib/utimens.c (__attribute__): Likewise.
47431         * lib/vasnprintf.h (__attribute__): Likewise.
47432         * lib/xalloc.h (__attribute__): Likewise.
47433         * lib/xprintf.h (__attribute__): Likewise.
47434         * lib/xstrtol.h (__attribute__): Likewise.
47435         * lib/xvasprintf.h (__attribute__): Likewise.
47436
47437 2008-01-12  Bruno Haible  <bruno@clisp.org>
47438
47439         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
47440         * doc/glibc-headers/a.out.texi: New file.
47441         * doc/glibc-headers/aliases.texi: New file.
47442         * doc/glibc-headers/alloca.texi: New file.
47443         * doc/glibc-headers/ar.texi: New file.
47444         * doc/glibc-headers/argp.texi: New file.
47445         * doc/glibc-headers/argz.texi: New file.
47446         * doc/glibc-headers/byteswap.texi: New file.
47447         * doc/glibc-headers/crypt.texi: New file.
47448         * doc/glibc-headers/endian.texi: New file.
47449         * doc/glibc-headers/envz.texi: New file.
47450         * doc/glibc-headers/err.texi: New file.
47451         * doc/glibc-headers/error.texi: New file.
47452         * doc/glibc-headers/execinfo.texi: New file.
47453         * doc/glibc-headers/fpu_control.texi: New file.
47454         * doc/glibc-headers/fstab.texi: New file.
47455         * doc/glibc-headers/fts.texi: New file.
47456         * doc/glibc-headers/getopt.texi: New file.
47457         * doc/glibc-headers/ieee754.texi: New file.
47458         * doc/glibc-headers/ifaddrs.texi: New file.
47459         * doc/glibc-headers/libintl.texi: New file.
47460         * doc/glibc-headers/mcheck.texi: New file.
47461         * doc/glibc-headers/mntent.texi: New file.
47462         * doc/glibc-headers/obstack.texi: New file.
47463         * doc/glibc-headers/paths.texi: New file.
47464         * doc/glibc-headers/printf.texi: New file.
47465         * doc/glibc-headers/pty.texi: New file.
47466         * doc/glibc-headers/resolv.texi: New file.
47467         * doc/glibc-headers/shadow.texi: New file.
47468         * doc/glibc-headers/sysexits.texi: New file.
47469         * doc/glibc-headers/ttyent.texi: New file.
47470
47471 2008-01-12  Jim Meyering  <meyering@redhat.com>
47472
47473         announce-gen: emit Gnulib's git-based version string.
47474         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
47475         New option --gnulib-version=V, where V is expected to be
47476         the output of running git describe in the gnulib directory.
47477         (get_tool_versions): Request feedback on xdelta.  I suspect it's
47478         not useful, and plan to stop publishing an xdelta file with each
47479         coreutils release.
47480
47481         * build-aux/announce-gen: Also check for lzma-compressed files.
47482
47483 2008-01-11  Bruno Haible  <bruno@clisp.org>
47484
47485         * tests/test-memmem.c (main): Increase maximum allowed time.
47486         * tests/test-strstr.c (main): Likewise.
47487
47488 2008-01-11  Bruno Haible  <bruno@clisp.org>
47489
47490         * doc/functions/memmem.texi: Add more precisions about platforms.
47491         * doc/functions/strstr.texi: Likewise.
47492
47493 2008-01-10  Eric Blake  <ebb9@byu.net>
47494
47495         * m4/strstr.m4: Delete cruft from copy-n-paste.
47496         Reported by Bruno Haible.
47497
47498 2008-01-10  Bruno Haible  <bruno@clisp.org>
47499
47500         Make c-strstr rely on strstr.
47501         * lib/c-strstr.c: Don't include str-kmp.h.
47502         (c_strstr): Define in terms of strstr.
47503         * modules/c-strstr (Files): Remove lib/str-kmp.h.
47504         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
47505
47506 2008-01-10  Bruno Haible  <bruno@clisp.org>
47507
47508         * doc/gnulib.texi (String Functions in C Locale): New section.
47509         * doc/c-ctype.texi: New file.
47510         * doc/c-strcase.texi: New file.
47511         * doc/c-strcaseeq.texi: New file.
47512         * doc/c-strcasestr.texi: New file.
47513         * doc/c-strstr.texi: New file.
47514         * doc/c-strtod.texi: New file.
47515         * doc/c-strtold.texi: New file.
47516
47517 2008-01-10  Eric Blake  <ebb9@byu.net>
47518
47519         * lib/relocatable.h: Fix a comment.
47520
47521 2008-01-10  Eric Blake  <ebb9@byu.net>
47522
47523         Share two-way algorithm.
47524         * lib/str-two-way.h: New file, merged from...
47525         * lib/memmem.c: ...here...
47526         * lib/strstr.c: ...and here.
47527         * modules/memmem (Files): Use it.
47528         * modules/strstr (Files): Likewise.
47529
47530         Avoid quadratic strstr implementations.
47531         * lib/strstr.c: New file.
47532         * m4/strstr.m4: Likewise.
47533         * modules/strstr: Likewise.
47534         * modules/strstr-tests: Likewise.
47535         * tests/test-strstr.c: Likewise.
47536         * lib/string.in.h (rpl_strstr): Declare.
47537         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
47538         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
47539         * modules/string (Makefile.am): Likewise.
47540         * MODULES.html.sh (string handling): Mention new module.
47541         * doc/functions/strstr.texi (strstr): Document the bug.
47542
47543 2008-01-10  Bruno Haible  <bruno@clisp.org>
47544
47545         * lib/relocatable.h (relocate): State whether result is freshly
47546         allocated or not.
47547         * lib/relocatable.c (relocate): Return a freshly allocated string
47548         instead of a pointer to a privately held string.
47549         Reported by Sylvain Beucler <beuc@gnu.org>.
47550
47551 2008-01-10  Colin Watson  <cjwatson@debian.org>
47552
47553         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
47554         s/S_ISNLK/S_ISLNK/.
47555
47556 2008-01-09  Bruno Haible  <bruno@clisp.org>
47557
47558         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
47559         and other files.
47560         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
47561         if it's only a guess.
47562         * modules/memmem: Simplify by depending on memmem-simple.
47563
47564 2008-01-09  Bruno Haible  <bruno@clisp.org>
47565
47566         Work around OpenBSD 4.0 tdelete() bug.
47567         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
47568         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
47569         macros and don't redefine the enum values.
47570         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
47571         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
47572         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
47573
47574 2008-01-09  Bruno Haible  <bruno@clisp.org>
47575
47576         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
47577         (main): Don't perform the tests if setlocale did not install a UTF-8
47578         locale. Needed on OpenBSD 4.0.
47579         * modules/wcwidth-tests (Depends-on): Add localcharset.
47580
47581 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
47582
47583         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
47584         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
47585         * NEWS: announce this.
47586         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
47587
47588 2008-01-09  Simon Josefsson  <simon@josefsson.org>
47589         and Eric Blake  <ebb9@byu.net>
47590
47591         Add memmem-simple module.
47592         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
47593         (gl_FUNC_MEMMEM): Separate performance from presence checks.
47594         * modules/memmem-simple: New file.
47595         * modules/memmem (Description): Tweak.
47596         * MODULES.html.sh (string handling): Mention new module.
47597         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
47598         addressed by memmem-simple.
47599         * NEWS: Document the difference.
47600
47601 2008-01-09  Eric Blake  <ebb9@byu.net>
47602
47603         Give gcc some memmem optimization hints.
47604         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
47605         (strcasestr): Declare as pure.
47606         * modules/memmem (Maintainer): Claim my implementation.
47607
47608 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47609
47610         Support AIX 6.1 and higher.
47611         * build-aux/config.libpath: Likewise.
47612         * build-aux/config.rpath: Likewise.
47613
47614 2008-01-08  Jim Meyering  <meyering@redhat.com>
47615             Bruno Haible  <bruno@clisp.org>
47616
47617         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
47618         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
47619         Reported by Peter Fales in
47620         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
47621
47622 2008-01-08  Bruno Haible  <bruno@clisp.org>
47623
47624         * modules/unictype/category-of (Depends-on): Add
47625         unictype/category-none.
47626         * modules/unictype/category-and-tests (Depends-on): Add
47627         unictype/category-{L,N,Lu,Nd}.
47628         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
47629         * modules/unictype/category-or-tests (Depends-on): Add
47630         unictype/category-{L,N}.
47631         * modules/unictype/category-name-tests (Depends-on): Add
47632         unictype/category-{Z,Nl}.
47633         Reported by Simon Josefsson.
47634
47635 2008-01-08  Bruno Haible  <bruno@clisp.org>
47636
47637         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
47638         convention better.
47639         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
47640         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
47641         Reported by Peter Miller <millerp@canb.auug.org.au>.
47642
47643 2008-01-08  Eric Blake  <ebb9@byu.net>
47644
47645         Rewrite memmem to guarantee linear complexity without malloc.
47646         * lib/memmem.c (memmem): Use Two-Way rather than
47647         Knuth-Morris-Pratt, to allow O(1) space usage.
47648         (critical_factorization, two_way_short_needle)
47649         (two_way_long_needle): New functions.
47650         (knuth_morris_pratt): Delete.
47651         * modules/memmem (Depends-on): No longer need malloca or stdbool.
47652         Add stdint.
47653         * tests/test-memmem.c (main): Add tests for periodic needle and
47654         sublinear performance.
47655         * doc/functions/memmem.texi (memmem): Document other deficiencies
47656         in cygwin and older glibc.
47657
47658 2008-01-08  Bruno Haible  <bruno@clisp.org>
47659
47660         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
47661         augmentation.
47662
47663 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
47664
47665         Add a configure time option: --disable-acl.
47666         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
47667         AC_ARG_ENABLE(acl).
47668
47669 2008-01-06  Simon Josefsson  <simon@josefsson.org>
47670
47671         * tests/test-localename.c: Don't include obsolete "setenv.h".
47672
47673         * modules/localename-tests (Depends-on): Need unsetenv.
47674
47675 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47676
47677         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
47678
47679 2008-01-06  Colin Watson  <cjwatson@debian.org>
47680
47681         * users.txt: Add man-db.
47682
47683 2008-01-07  Bruno Haible  <bruno@clisp.org>
47684
47685         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
47686         previous section name.
47687
47688 2008-01-07  Bruno Haible  <bruno@clisp.org>
47689
47690         * lib/progname.c (set_program_name): Don't strip off a leading
47691         "lt-" prefix outside a .libs directory.
47692         Suggested by Paul Eggert.
47693
47694 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
47695             Bruno Haible  <bruno@clisp.org>
47696
47697         Improve memory cleanup in 'relocatable' module.
47698         * lib/relocatable.h (compute_curr_prefix): Change return type to
47699         'char *'.
47700         * lib/relocatable.c (compute_curr_prefix): Change return type to
47701         'char *'. Free curr_installdir after use.
47702         (relocate): Free curr_prefix_better after use.
47703         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
47704
47705 2008-01-01  Bruno Haible  <bruno@clisp.org>
47706
47707         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
47708         failure on older glibc systems.
47709         Reported by Peter Fales <psfales@alcatel-lucent.com>.
47710
47711 2008-01-05  Eric Blake  <ebb9@byu.net>
47712
47713         Avoid quadratic system memmem.
47714         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
47715         Reported by Ralf Wildenhues.
47716
47717         Fix memmem test for mingw.
47718         * modules/memmem-tests (configure.ac): Check for alarm.
47719         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
47720         it.
47721         * doc/functions/memmem.texi: New file.
47722         * doc/gnulib.texi (Function Substitutes): Add memmem.
47723         Reported by Bruno Haible.
47724
47725 2008-01-04  Bruno Haible  <bruno@clisp.org>
47726
47727         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
47728         Require gl_HEADER_STRINGS_H_DEFAULTS, not
47729         gl_HEADER_STRING_H_DEFAULTS.
47730
47731 2008-01-04  Eric Blake  <ebb9@byu.net>
47732
47733         Shorten duration of memmem test.
47734         * tests/test-memmem.c (main): Use alarm to declare failure if test
47735         is taking too long.
47736         Reported by Ralf Wildenhues.
47737
47738 2007-12-21  Simon Josefsson  <simon@josefsson.org>
47739
47740         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
47741         string, needed by strerror.
47742
47743 2008-01-03  Colin Watson  <cjwatson@debian.org>
47744             Bruno Haible  <bruno@clisp.org>
47745
47746         * doc/gnulib-tool.texi (Localization): New section.
47747
47748 2008-01-02  Bruno Haible  <bruno@clisp.org>
47749
47750         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
47751         variables to 'unsigned char *' type.
47752         Reported by Paul Eggert.
47753
47754 2008-01-02  Jim Meyering  <jim@meyering.net>
47755
47756         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
47757
47758 2007-12-31  Jim Meyering  <jim@meyering.net>
47759
47760         Avoid use of private FTS type name.
47761         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
47762
47763 2007-12-30  Karl Berry  <karl@gnu.org>
47764
47765         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
47766         work around defect in Texinfo and/or the standalone Info browser.
47767
47768 2007-12-30  Bruno Haible  <bruno@clisp.org>
47769
47770         Unify 5 copies of the KMP code.
47771         * lib/str-kmp.h: New file.
47772         * lib/c-strcasestr.c: Include str-kmp.h.
47773         (knuth_morris_pratt): Remove function.
47774         (c_strcasestr): Update.
47775         * lib/c-strstr.c: Include str-kmp.h.
47776         (knuth_morris_pratt): Remove function.
47777         (c_strcasestr): Update.
47778         * lib/mbscasestr.c: Include str-kmp.h.
47779         (knuth_morris_pratt_unibyte): Remove function.
47780         * lib/mbsstr.c: Include str-kmp.h.
47781         (knuth_morris_pratt_unibyte): Remove function.
47782         * lib/strcasestr.c: Include str-kmp.h.
47783         (knuth_morris_pratt): Remove function.
47784         (strcasestr): Update.
47785         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
47786         * modules/c-strstr (Files): Likewise.
47787         * modules/mbscasestr (Files): Likewise.
47788         * modules/mbsstr (Files): Likewise.
47789         * modules/strcasestr (Files): Likewise.
47790         Suggested by Paul Eggert.
47791
47792 2007-12-30  Bruno Haible  <bruno@clisp.org>
47793
47794         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
47795         defined.
47796
47797 2007-12-30  Bruno Haible  <bruno@clisp.org>
47798
47799         * lib/xmalloca.h: Include xalloc.h.
47800         (xnmalloca): New macro.
47801
47802 2007-12-30  Bruno Haible  <bruno@clisp.org>
47803
47804         * lib/malloca.h (nmalloca): New macro.
47805         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
47806         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
47807         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
47808         knuth_morris_pratt_multibyte): Likewise.
47809         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
47810         knuth_morris_pratt_multibyte): Likewise.
47811         * lib/memmem.c (knuth_morris_pratt): Likewise.
47812         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
47813
47814 2007-12-25  Bruno Haible  <bruno@clisp.org>
47815
47816         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
47817         * lib/glob.c: Don't include openat.h.
47818         (link_exists2_p): Add back the code that deals with the
47819         !GLOB_ALTDIRFUNC case.
47820         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
47821         let it do the filename concatenation.
47822         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
47823         * modules/glob (Depends-on): Remove openat.
47824
47825 2007-12-31  Bruno Haible  <bruno@clisp.org>
47826
47827         * modules/dirfd (License): Change to LGPLv2+.
47828         Approved by Jim Meyering.
47829
47830 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
47831
47832         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
47833         when multiplying M by sizeof (size_t).
47834
47835 2007-12-10  Martin Lambers  <marlam@marlam.de>
47836
47837         Override getpagesize on mingw.
47838         * lib/getpagesize.c: New file.
47839         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
47840         * modules/getpagesize (Files): Add lib/getpagesize.c.
47841         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
47842         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
47843         REPLACE_GETPAGESIZE.
47844         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
47845
47846 2007-12-25  Bruno Haible  <bruno@clisp.org>
47847
47848         * modules/localcharset (Notice): New field.
47849         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
47850         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
47851
47852 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
47853             Bruno Haible  <bruno@clisp.org>
47854
47855         Avoid using the syntax symbol() in formatted documentation.
47856         * MODULES.html.sh (func_module): When replacing symbol() with a
47857         hyperlink, remove the parentheses. Show an error if some remain.
47858         Recognize and render the '...' syntax.
47859         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
47860         Rework. Add paragraph about GCC's inlining.
47861         * doc/alloca.texi: Likewise.
47862         * doc/error.texi: Remove parentheses from symbol reference.
47863         * doc/gnulib-intro.texi: Likewise.
47864         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
47865         * modules/fnmatch (Description): Reword to say "the ... function".
47866         * modules/full-read (Description): Likewise.
47867         * modules/full-write (Description): Likewise.
47868         * modules/safe-read (Description): Likewise.
47869         * modules/safe-write (Description): Likewise.
47870         * modules/strchrnul (Description): Likewise.
47871         * modules/trim (Description): Likewise.
47872         * modules/error (Description): Remove parentheses from symbol
47873         references.
47874         * modules/verror (Description): Likewise.
47875         Reported by Karl Berry.
47876
47877 2007-12-25  Bruno Haible  <bruno@clisp.org>
47878
47879         Fixup after 2007-10-16 commit.
47880         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
47881
47882 2007-12-24  Bruno Haible  <bruno@clisp.org>
47883
47884         Make --enable-relocatable work with DESTDIR.
47885         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
47886         to compute installdir from destprog.
47887         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
47888         also set the RELOC_DESTDIR variable.
47889         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
47890
47891 2007-12-24  Bruno Haible  <bruno@clisp.org>
47892
47893         Fix link error due to xalloc_die().
47894         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
47895         of xreadlink.
47896         * lib/relocwrapper.c: Update comments.
47897         * build-aux/install-reloc: Remove xreadlink.c from file list.
47898         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
47899         xreadlink.c.
47900         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
47901
47902 2007-12-24  Bruno Haible  <bruno@clisp.org>
47903
47904         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
47905         * lib/setenv.h: Remove file.
47906         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
47907         lib/setenv.h.
47908         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
47909         (Depends-on): Add stdlib.
47910         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
47911         gl_FUNC_UNSETENV.
47912         (Include): Replace setenv.h with <stdlib.h>.
47913         * modules/unsetenv: New file.
47914         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
47915         * lib/unsetenv.c: Include <stdlib.h> first.
47916         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
47917         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
47918         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
47919         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
47920         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
47921         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
47922         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
47923         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
47924         * doc/functions/unsetenv.texi: Update.
47925         * modules/xsetenv (Depends-on): Add unsetenv.
47926         * modules/getdate (Depends-on): Likewise.
47927         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
47928         * lib/xsetenv.c: Don't include setenv.h.
47929         * lib/getdate.y: Likewise.
47930         * lib/relocwrapper.c: Likewise.
47931         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
47932         (Depends-on): Add stdlib.
47933         * NEWS: Mention the changes.
47934         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
47935
47936 2007-12-23  Bruno Haible  <bruno@clisp.org>
47937
47938         * lib/memmem.c (memmem): Use lowercase variable names. Tab
47939         indentation.
47940
47941 2007-12-23  Bruno Haible  <bruno@clisp.org>
47942
47943         * lib/c-strcasestr.c: Add more comments.
47944         * lib/c-strstr.c: Likewise.
47945         * lib/mbscasestr.c: Likewise.
47946         * lib/mbsstr.c: Likewise.
47947         * lib/strcasestr.c: Likewise.
47948         * lib/memmem.c: Likewise.
47949
47950 2007-12-23  Bruno Haible  <bruno@clisp.org>
47951
47952         * tests/test-memmem.c: Include <string.h> first.
47953
47954 2007-12-22  Bruno Haible  <bruno@clisp.org>
47955
47956         * gnulib-tool (func_create_testdir): Change $auxdir while generating
47957         the contents of $testsbase.
47958         Reported by Ralf Wildenhues.
47959
47960 2007-12-22  Bruno Haible  <bruno@clisp.org>
47961
47962         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
47963         two variables local_ldadd_before, local_ldadd_last.
47964
47965 2007-12-20  Eric Blake  <ebb9@byu.net>
47966
47967         Work around circular library issue when cross-compiling.
47968         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
47969         that progname.o does not need to pull in rpl_memcmp.
47970
47971 2007-12-19  Eric Blake  <ebb9@byu.net>
47972
47973         Fix memmem to avoid O(n^2) worst-case complexity.
47974         * lib/memmem.c (knuth_morris_pratt): New function.
47975         (memmem): Use it if first few naive iterations fail.
47976         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
47977         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
47978         * modules/memchr (License): Likewise.
47979         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
47980         malloca.
47981         * tests/test-memmem.c: Rewrite, borrowing ideas from
47982         test-mbsstr1.c; the old version wouldn't even compile!
47983         * modules/memmem-tests: New file.
47984         * lib/string.in.h (rpl_memmem): Add declaration.
47985         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
47986         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
47987         REPLACE_MEMMEM.
47988
47989 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
47990
47991         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
47992         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
47993         before any system include files, and undef after them all.  This
47994         should fix a problem on VMS reported by John E. Malmberg in
47995         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
47996
47997 2007-12-17  Eric Blake  <ebb9@byu.net>
47998
47999         Revert addition of verify, for BSD/OS.
48000         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
48001         can't handle large files, for the sake of obsolete platforms.
48002         * modules/fseeko (Depends-on): Remove verify.
48003         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
48004         * doc/functions/ftello.texi (ftello): Likewise.
48005         * doc/functions/fgetpos.texi (fgetpos): Likewise.
48006         Reported by Larry Jones.
48007
48008 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
48009
48010         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
48011         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
48012
48013 2007-12-17  Jim Meyering  <meyering@redhat.com>
48014
48015         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
48016         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
48017         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
48018         * modules/getcwd (Depends-on): Add openat.
48019         Reported by Petr Salinger.
48020
48021 2007-12-17  Bruno Haible  <bruno@clisp.org>
48022
48023         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
48024         avoid a segmentation fault of the configure test on x86_64 systems.
48025
48026 2007-12-15  Jim Meyering  <meyering@redhat.com>
48027
48028         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
48029
48030 2007-12-13  Eric Blake  <ebb9@byu.net>
48031
48032         Another fseek test.
48033         * tests/test-fseek.c (main): Also test ungetc handling.
48034         * tests/test-fseeko.c (main): Likewise.
48035         * modules/fseeko (Depends-on): Add verify.
48036         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
48037         large.
48038         Reported by Larry Jones.
48039
48040         Fix fseeko on mingw.
48041         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
48042         seek.
48043
48044         Beef up fseek tests.
48045         * tests/test-fseek.c (main): Also test eof handling.
48046         * tests/test-fseeko.c (main): Likewise.
48047         Reported by Larry Jones.
48048
48049 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
48050
48051         Fix fseeko on BSD-based platforms.
48052         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
48053         successful seek.
48054
48055 2007-12-12  Eric Blake  <ebb9@byu.net>
48056
48057         Allow circular dependency of separate libtests.a
48058         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
48059         when use_libtests.
48060
48061 2007-12-11  Eric Blake  <ebb9@byu.net>
48062
48063         Fix bug with -0.0L in previous patch.
48064         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
48065         * tests/test-isnan.c (main): Also test on zeroes.
48066         * tests/test-isnanf.c (main): Likewise.
48067         * tests/test-isnanl.h (main): Likewise.
48068
48069         Detect pseudo-denormals on x86 even when cross-compiling.
48070         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
48071         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
48072         invalid bit patterns that happen to satisfy ==.
48073
48074         Avoid link failures with separate libtests.a.
48075         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
48076         last, to satisfy circular dependencies.
48077
48078 2007-12-11  Eric Blake  <ebb9@byu.net>
48079         and Bruno Haible  <bruno@clisp.org>
48080
48081         Fix OpenBSD 4.0 <float.h> handling of long double.
48082         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
48083         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
48084         * doc/headers/float.texi (float.h): Document OpenBSD bug.
48085
48086 2007-12-11  Jim Meyering  <meyering@redhat.com>
48087
48088         * users.txt: Add libvirt.
48089
48090         Support versions of autoconf prior to 2.59c.
48091         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
48092         if it is not already defined.
48093
48094 2007-12-09  Bruno Haible  <bruno@clisp.org>
48095
48096         Let 'gnulib-tool --import' collect sources needed for the tests in
48097         tests/ rather than in lib/.
48098         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
48099         argument. If true, add rules to generate libtests.a, and put libtests.a
48100         into $(LDADD). Consider source files in subdirectories and set
48101         uses_subdirs.
48102         (func_emit_initmacro_start, func_emit_initmacro_end,
48103         func_emit_initmacro_done): Pass all arguments explicitly.
48104         (func_import): Determine two module lists main_modules,
48105         testsrelated_modules. Determine use_libtests. Determine two variables
48106         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
48107         instead of just sed_transform_lib_file. Determine two variables
48108         main_files and testsrelated_files. Compute 'files' as the union of
48109         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
48110         func_add_or_update. In the generated gnulib-comp.m4, collect the
48111         object files for tests/ in different variables than those for lib/.
48112         Substitute LIBTESTS_LIBDEPS.
48113         (func_create_testdir): Combine the uses_subdirs results from
48114         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
48115
48116 2007-12-09  Bruno Haible  <bruno@clisp.org>
48117
48118         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
48119         the build-aux directory.
48120
48121 2007-12-09  Bruno Haible  <bruno@clisp.org>
48122
48123         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
48124         introduced on 2006-09-09.
48125
48126 2007-12-07  Jim Meyering  <meyering@redhat.com>
48127
48128         Let these macros work also with autoconf-2.59.
48129         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
48130         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
48131         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
48132
48133 2007-12-06  Jim Meyering  <meyering@redhat.com>
48134
48135         Avoid a configure-time syntax error in gl_FUNC_ACL.
48136         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
48137         function in each branch, before testing the cache variable.
48138
48139 2007-12-04  Eric Blake  <ebb9@byu.net>
48140
48141         Make scripts executable.
48142         * build-aux/config.guess: Add execute permissions.
48143         * build-aux/config.sub: Likewise.
48144         * build-aux/gendocs.sh: Likewise.
48145
48146         Fix frexp on mingw.
48147         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
48148         cross-compiling.
48149         * doc/functions/frexp.texi (frexp): Document the bug.
48150
48151         Make cygwin fseeko check more reliable.
48152         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
48153         version numbers, rather than unrelated feature check.
48154         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
48155         * doc/functions/ftello.texi (ftello): Likewise.
48156         Reported by Bruno Haible.
48157
48158         * m4/strerror.m4: Bump version number.
48159
48160 2007-12-03  Bruno Haible  <bruno@clisp.org>
48161
48162         * doc/functions/mprotect.texi: Mention the mingw problem.
48163
48164 2007-12-03  Eric Blake  <ebb9@byu.net>
48165
48166         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
48167         REPLACE_STRERROR is initialized before this macro.
48168
48169 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
48170
48171         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
48172         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
48173         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
48174         put -lsec in even for programs other than 'ls'.  This fixes a problem
48175         for gettext reported by Bruno Haible in
48176         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
48177         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
48178         Add support for Solaris 10.  This isn't efficient, but should get the
48179         job done for now.
48180
48181 2007-12-03  James Youngman  <jay@gnu.org>
48182
48183         * doc/regexprops-generic.texi: change "an close-group" to "a
48184         close-group" and "illegal" to "not allowed".
48185
48186 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48187
48188         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
48189         pr_byname.h. Needed for the rare case when the maintainer has done
48190         "make maintainer-clean" in the source directory and then attempts a
48191         build outside the source directory.
48192         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
48193         scripts_byname.h.
48194
48195 2007-12-02  Martin Lambers <marlam@marlam.de>
48196             Bruno Haible  <bruno@clisp.org>
48197
48198         * lib/getpagesize.h: Remove file.
48199         * lib/unistd.in.h: Include declaration of getpagesize here.
48200         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
48201         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
48202         HAVE_SYS_PARAM_H.
48203         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
48204         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
48205         * modules/getpagesize (Files): Remove lib/getpagesize.h.
48206         (Depends-on): Add unistd.
48207         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
48208         (Include): Use <unistd.h> instead of getpagesize.h.
48209         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
48210         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
48211         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
48212         gl_GETPAGESIZE invocation, already handled by module dependency.
48213         * lib/pagealign_alloc.c: Don't include getpagesize.h.
48214
48215 2007-12-02  Bruno Haible  <bruno@clisp.org>
48216
48217         * modules/strings-tests: New file.
48218         * tests/test-strings.c: New file.
48219
48220         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
48221         * lib/strings.in.h: New file.
48222         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
48223         * m4/strings_h.m4: New file.
48224         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
48225         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
48226         * modules/strings: New file.
48227         * modules/string (Makefile.am): Update.
48228         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
48229         Reported by Karl Berry.
48230
48231 2007-12-01  Eric Blake  <ebb9@byu.net>
48232
48233         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
48234         accomodate fix in cygwin 1.5.25.
48235
48236 2007-12-01  Jim Meyering  <meyering@redhat.com>
48237
48238         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
48239         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
48240         that would inhibit utf8-optimization of a regexp containing line-
48241         or buffer-anchors, e.g., `^', `$'.
48242
48243 2007-11-30  Bruno Haible  <bruno@clisp.org>
48244
48245         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
48246         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
48247         glthread_recursive_lock_init.
48248         * lib/lock.c (glthread_recursive_lock_init)
48249         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
48250         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
48251
48252 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
48253
48254         New function qset_acl, like set_acl but with syscall semantics.
48255         * lib/acl.h (qset_acl): New decl.
48256         * lib/acl.c (qset_acl): New function.
48257         (set_acl): Use new function.  Use more-consistent diagnostics.
48258
48259 2007-11-28  Jim Meyering  <meyering@redhat.com>
48260
48261         * modules/physmem (License): Change from GPL to LGPLv2+.
48262
48263 2007-11-26  Bruno Haible  <bruno@clisp.org>
48264
48265         * lib/vasnprintf.c (decode_long_double): Don't abort if the
48266         'long double' type has excess precision.
48267         Reported by Jim Meyering in
48268         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
48269
48270 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48271
48272         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
48273         Sync from <http://gnu.org/licenses>.
48274         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
48275         with license text from same location.
48276         * doc/maintain.texi, doc/standards.texi:  Sync from
48277         <http://savannah.gnu.org/projects/gnustandards>.
48278
48279 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
48280         and Jim Meyering  <meyering@redhat.com>
48281
48282         Adjust getdate' grammar to accept a slightly more regular language.
48283         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
48284         Before, the former was rejected.
48285         * lib/getdate.y (digits_to_date_time): New function, factored
48286         out of ...
48287         (number): ...here.  Just call digits_to_date_time.
48288         (hybrid): New non-terminal to handle an <unsigned number,
48289         signed relative offset> sequence consistently.
48290
48291 2007-11-18  Jim Meyering  <meyering@redhat.com>
48292
48293         Pull my changes from coreutils:
48294         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
48295         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
48296         use of $gnulib_tool_option_extras, so that it's separated from the
48297         preceding argument.
48298
48299         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
48300         * build-aux/bootstrap (cp_mark_as_generated): Create any required
48301         parent destination directories before copying a file into place.
48302
48303 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
48304
48305         bootstrap: work also with 4-argument variant of AC_INIT
48306         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
48307
48308 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
48309
48310         Port test-getaddrinfo to Solaris.
48311         Problem reported by Bruno Haible in
48312         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
48313         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
48314         explanation of setting 'hints'.
48315         Don't reject an implementation merely because it returns EAI_SERVICE.
48316         (EAI_SERVICE): Define to 0 if not defined.
48317
48318 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
48319
48320         The license of gnu-make and posix-shell is now "GPLed build tool".
48321         * modules/gnu-make (License): Likewise.
48322         * modules/posix-shell (License): Likewise.
48323
48324         New module posix-shell, for determining a POSIX shell
48325         or perhaps something that is close enough to a POSIX shell.
48326         * m4/posix-shell.m4: New file.
48327         * modules/posix-shell: New file.
48328
48329         * MODULES.html.sh: Mention new module.
48330
48331         New module gnu-make, for determining whether we're using GNU Make.
48332         * m4/gnu-make.m4: New file.
48333         * modules/gnu-make: New file.
48334         * MODULES.html.sh: Mention new module.
48335
48336 2007-11-14  Jim Meyering  <meyering@redhat.com>
48337
48338         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
48339         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
48340         use this macro to create a function _definition_.
48341         Remove useless "#undef ARGMATCH_DIE".
48342
48343 2007-11-14  Bruno Haible  <bruno@clisp.org>
48344
48345         * lib/config.charset: Update for OpenBSD 4.1.
48346         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
48347
48348 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
48349
48350         Document 64-bit #if problems in stdint.texi.
48351         * doc/headers/stdint.texi (stdint.h): Mention problems with
48352         64-bit-#if, and how to work around them.
48353
48354         Don't insist on 'long long int' support in the preprocessor.  It
48355         breaks too many things.  For example, PRIdMAX still uses a 'long
48356         long int' format with the latest Sun compiler, even though
48357         HAVE_LONG_LONG_INT isn't defined due to that compiler's
48358         preprocessor problem.  This causes the latest coreutils to dump
48359         core on Solaris 10 sparc with the Sun C compiler.
48360         Instead, fix the 2007-10-16 problem in a different way, by evaluating
48361         the troublesome expressions at configure-time, not at #if-time.
48362         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
48363         preprocessor.
48364         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
48365         compile-time C checks, done at 'configure'-time.
48366         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
48367         * modules/inttypes (Makefile): Substitute the new symbols that
48368         gl_INTTYPES_H now generates.
48369         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
48370
48371 2007-11-12  Bruno Haible  <bruno@clisp.org>
48372
48373         Tests for Unicode character classification functions.
48374
48375         * modules/unictype/bidicategory-byname-tests: New file.
48376         * modules/unictype/bidicategory-name-tests: New file.
48377         * modules/unictype/bidicategory-of-tests: New file.
48378         * modules/unictype/bidicategory-test-tests: New file.
48379         * modules/unictype/block-list-tests: New file.
48380         * modules/unictype/block-of-tests: New file.
48381         * modules/unictype/block-test-tests: New file.
48382         * modules/unictype/category-C-tests: New file.
48383         * modules/unictype/category-Cc-tests: New file.
48384         * modules/unictype/category-Cf-tests: New file.
48385         * modules/unictype/category-Cn-tests: New file.
48386         * modules/unictype/category-Co-tests: New file.
48387         * modules/unictype/category-Cs-tests: New file.
48388         * modules/unictype/category-L-tests: New file.
48389         * modules/unictype/category-Ll-tests: New file.
48390         * modules/unictype/category-Lm-tests: New file.
48391         * modules/unictype/category-Lo-tests: New file.
48392         * modules/unictype/category-Lt-tests: New file.
48393         * modules/unictype/category-Lu-tests: New file.
48394         * modules/unictype/category-M-tests: New file.
48395         * modules/unictype/category-Mc-tests: New file.
48396         * modules/unictype/category-Me-tests: New file.
48397         * modules/unictype/category-Mn-tests: New file.
48398         * modules/unictype/category-N-tests: New file.
48399         * modules/unictype/category-Nd-tests: New file.
48400         * modules/unictype/category-Nl-tests: New file.
48401         * modules/unictype/category-No-tests: New file.
48402         * modules/unictype/category-P-tests: New file.
48403         * modules/unictype/category-Pc-tests: New file.
48404         * modules/unictype/category-Pd-tests: New file.
48405         * modules/unictype/category-Pe-tests: New file.
48406         * modules/unictype/category-Pf-tests: New file.
48407         * modules/unictype/category-Pi-tests: New file.
48408         * modules/unictype/category-Po-tests: New file.
48409         * modules/unictype/category-Ps-tests: New file.
48410         * modules/unictype/category-S-tests: New file.
48411         * modules/unictype/category-Sc-tests: New file.
48412         * modules/unictype/category-Sk-tests: New file.
48413         * modules/unictype/category-Sm-tests: New file.
48414         * modules/unictype/category-So-tests: New file.
48415         * modules/unictype/category-Z-tests: New file.
48416         * modules/unictype/category-Zl-tests: New file.
48417         * modules/unictype/category-Zp-tests: New file.
48418         * modules/unictype/category-Zs-tests: New file.
48419         * modules/unictype/category-and-not-tests: New file.
48420         * modules/unictype/category-and-tests: New file.
48421         * modules/unictype/category-byname-tests: New file.
48422         * modules/unictype/category-name-tests: New file.
48423         * modules/unictype/category-none-tests: New file.
48424         * modules/unictype/category-of-tests: New file.
48425         * modules/unictype/category-or-tests: New file.
48426         * modules/unictype/category-test-withtable-tests: New file.
48427         * modules/unictype/combining-class-tests: New file.
48428         * modules/unictype/ctype-alnum-tests: New file.
48429         * modules/unictype/ctype-alpha-tests: New file.
48430         * modules/unictype/ctype-blank-tests: New file.
48431         * modules/unictype/ctype-cntrl-tests: New file.
48432         * modules/unictype/ctype-digit-tests: New file.
48433         * modules/unictype/ctype-graph-tests: New file.
48434         * modules/unictype/ctype-lower-tests: New file.
48435         * modules/unictype/ctype-print-tests: New file.
48436         * modules/unictype/ctype-punct-tests: New file.
48437         * modules/unictype/ctype-space-tests: New file.
48438         * modules/unictype/ctype-upper-tests: New file.
48439         * modules/unictype/ctype-xdigit-tests: New file.
48440         * modules/unictype/decimal-digit-tests: New file.
48441         * modules/unictype/digit-tests: New file.
48442         * modules/unictype/mirror-tests: New file.
48443         * modules/unictype/numeric-tests: New file.
48444         * modules/unictype/property-alphabetic-tests: New file.
48445         * modules/unictype/property-ascii-hex-digit-tests: New file.
48446         * modules/unictype/property-bidi-arabic-digit-tests: New file.
48447         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
48448         * modules/unictype/property-bidi-block-separator-tests: New file.
48449         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
48450         * modules/unictype/property-bidi-common-separator-tests: New file.
48451         * modules/unictype/property-bidi-control-tests: New file.
48452         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
48453         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
48454         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
48455         * modules/unictype/property-bidi-european-digit-tests: New file.
48456         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
48457         * modules/unictype/property-bidi-left-to-right-tests: New file.
48458         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
48459         * modules/unictype/property-bidi-other-neutral-tests: New file.
48460         * modules/unictype/property-bidi-pdf-tests: New file.
48461         * modules/unictype/property-bidi-segment-separator-tests: New file.
48462         * modules/unictype/property-bidi-whitespace-tests: New file.
48463         * modules/unictype/property-byname-tests: New file.
48464         * modules/unictype/property-combining-tests: New file.
48465         * modules/unictype/property-composite-tests: New file.
48466         * modules/unictype/property-currency-symbol-tests: New file.
48467         * modules/unictype/property-dash-tests: New file.
48468         * modules/unictype/property-decimal-digit-tests: New file.
48469         * modules/unictype/property-default-ignorable-code-point-tests: New file.
48470         * modules/unictype/property-deprecated-tests: New file.
48471         * modules/unictype/property-diacritic-tests: New file.
48472         * modules/unictype/property-extender-tests: New file.
48473         * modules/unictype/property-format-control-tests: New file.
48474         * modules/unictype/property-grapheme-base-tests: New file.
48475         * modules/unictype/property-grapheme-extend-tests: New file.
48476         * modules/unictype/property-grapheme-link-tests: New file.
48477         * modules/unictype/property-hex-digit-tests: New file.
48478         * modules/unictype/property-hyphen-tests: New file.
48479         * modules/unictype/property-id-continue-tests: New file.
48480         * modules/unictype/property-id-start-tests: New file.
48481         * modules/unictype/property-ideographic-tests: New file.
48482         * modules/unictype/property-ids-binary-operator-tests: New file.
48483         * modules/unictype/property-ids-trinary-operator-tests: New file.
48484         * modules/unictype/property-ignorable-control-tests: New file.
48485         * modules/unictype/property-iso-control-tests: New file.
48486         * modules/unictype/property-join-control-tests: New file.
48487         * modules/unictype/property-left-of-pair-tests: New file.
48488         * modules/unictype/property-line-separator-tests: New file.
48489         * modules/unictype/property-logical-order-exception-tests: New file.
48490         * modules/unictype/property-lowercase-tests: New file.
48491         * modules/unictype/property-math-tests: New file.
48492         * modules/unictype/property-non-break-tests: New file.
48493         * modules/unictype/property-not-a-character-tests: New file.
48494         * modules/unictype/property-numeric-tests: New file.
48495         * modules/unictype/property-other-alphabetic-tests: New file.
48496         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
48497         * modules/unictype/property-other-grapheme-extend-tests: New file.
48498         * modules/unictype/property-other-id-continue-tests: New file.
48499         * modules/unictype/property-other-id-start-tests: New file.
48500         * modules/unictype/property-other-lowercase-tests: New file.
48501         * modules/unictype/property-other-math-tests: New file.
48502         * modules/unictype/property-other-uppercase-tests: New file.
48503         * modules/unictype/property-paired-punctuation-tests: New file.
48504         * modules/unictype/property-paragraph-separator-tests: New file.
48505         * modules/unictype/property-pattern-syntax-tests: New file.
48506         * modules/unictype/property-pattern-white-space-tests: New file.
48507         * modules/unictype/property-private-use-tests: New file.
48508         * modules/unictype/property-punctuation-tests: New file.
48509         * modules/unictype/property-quotation-mark-tests: New file.
48510         * modules/unictype/property-radical-tests: New file.
48511         * modules/unictype/property-sentence-terminal-tests: New file.
48512         * modules/unictype/property-soft-dotted-tests: New file.
48513         * modules/unictype/property-space-tests: New file.
48514         * modules/unictype/property-terminal-punctuation-tests: New file.
48515         * modules/unictype/property-test-tests: New file.
48516         * modules/unictype/property-titlecase-tests: New file.
48517         * modules/unictype/property-unassigned-code-value-tests: New file.
48518         * modules/unictype/property-unified-ideograph-tests: New file.
48519         * modules/unictype/property-uppercase-tests: New file.
48520         * modules/unictype/property-variation-selector-tests: New file.
48521         * modules/unictype/property-white-space-tests: New file.
48522         * modules/unictype/property-xid-continue-tests: New file.
48523         * modules/unictype/property-xid-start-tests: New file.
48524         * modules/unictype/property-zero-width-tests: New file.
48525         * modules/unictype/scripts-tests: New file.
48526         * modules/unictype/syntax-c-ident-tests: New file.
48527         * modules/unictype/syntax-c-whitespace-tests: New file.
48528         * modules/unictype/syntax-java-ident-tests: New file.
48529         * modules/unictype/syntax-java-whitespace-tests: New file.
48530         * tests/unictype/test-bidi_byname.c: New file.
48531         * tests/unictype/test-bidi_name.c: New file.
48532         * tests/unictype/test-bidi_of.c: New file.
48533         * tests/unictype/test-bidi_test.c: New file.
48534         * tests/unictype/test-block_list.c: New file.
48535         * tests/unictype/test-block_of.c: New file.
48536         * tests/unictype/test-block_test.c: New file.
48537         * tests/unictype/test-categ_and.c: New file.
48538         * tests/unictype/test-categ_and_not.c: New file.
48539         * tests/unictype/test-categ_byname.c: New file.
48540         * tests/unictype/test-categ_name.c: New file.
48541         * tests/unictype/test-categ_none.c: New file.
48542         * tests/unictype/test-categ_of.c: New file.
48543         * tests/unictype/test-categ_or.c: New file.
48544         * tests/unictype/test-categ_test_withtable.c: New file.
48545         * tests/unictype/test-combining.c: New file.
48546         * tests/unictype/test-decdigit.c: New file.
48547         * tests/unictype/test-digit.c: New file.
48548         * tests/unictype/test-mirror.c: New file.
48549         * tests/unictype/test-numeric.c: New file.
48550         * tests/unictype/test-pr_byname.c: New file.
48551         * tests/unictype/test-pr_test.c: New file.
48552         * tests/unictype/test-predicate-part1.h: New file.
48553         * tests/unictype/test-predicate-part2.h: New file.
48554         * tests/unictype/test-scripts.c: New file.
48555         * tests/unictype/test-sy_c_ident.c: New file.
48556         * tests/unictype/test-sy_java_ident.c: New file.
48557
48558         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
48559         for Unicode 5.0.0.
48560         * tests/unictype/test-categ_Cc.c: Likewise.
48561         * tests/unictype/test-categ_Cf.c: Likewise.
48562         * tests/unictype/test-categ_Cn.c: Likewise.
48563         * tests/unictype/test-categ_Co.c: Likewise.
48564         * tests/unictype/test-categ_Cs.c: Likewise.
48565         * tests/unictype/test-categ_L.c: Likewise.
48566         * tests/unictype/test-categ_Ll.c: Likewise.
48567         * tests/unictype/test-categ_Lm.c: Likewise.
48568         * tests/unictype/test-categ_Lo.c: Likewise.
48569         * tests/unictype/test-categ_Lt.c: Likewise.
48570         * tests/unictype/test-categ_Lu.c: Likewise.
48571         * tests/unictype/test-categ_M.c: Likewise.
48572         * tests/unictype/test-categ_Mc.c: Likewise.
48573         * tests/unictype/test-categ_Me.c: Likewise.
48574         * tests/unictype/test-categ_Mn.c: Likewise.
48575         * tests/unictype/test-categ_N.c: Likewise.
48576         * tests/unictype/test-categ_Nd.c: Likewise.
48577         * tests/unictype/test-categ_Nl.c: Likewise.
48578         * tests/unictype/test-categ_No.c: Likewise.
48579         * tests/unictype/test-categ_P.c: Likewise.
48580         * tests/unictype/test-categ_Pc.c: Likewise.
48581         * tests/unictype/test-categ_Pd.c: Likewise.
48582         * tests/unictype/test-categ_Pe.c: Likewise.
48583         * tests/unictype/test-categ_Pf.c: Likewise.
48584         * tests/unictype/test-categ_Pi.c: Likewise.
48585         * tests/unictype/test-categ_Po.c: Likewise.
48586         * tests/unictype/test-categ_Ps.c: Likewise.
48587         * tests/unictype/test-categ_S.c: Likewise.
48588         * tests/unictype/test-categ_Sc.c: Likewise.
48589         * tests/unictype/test-categ_Sk.c: Likewise.
48590         * tests/unictype/test-categ_Sm.c: Likewise.
48591         * tests/unictype/test-categ_So.c: Likewise.
48592         * tests/unictype/test-categ_Z.c: Likewise.
48593         * tests/unictype/test-categ_Zl.c: Likewise.
48594         * tests/unictype/test-categ_Zp.c: Likewise.
48595         * tests/unictype/test-categ_Zs.c: Likewise.
48596         * tests/unictype/test-ctype_alnum.c: Likewise.
48597         * tests/unictype/test-ctype_alpha.c: Likewise.
48598         * tests/unictype/test-ctype_blank.c: Likewise.
48599         * tests/unictype/test-ctype_cntrl.c: Likewise.
48600         * tests/unictype/test-ctype_digit.c: Likewise.
48601         * tests/unictype/test-ctype_graph.c: Likewise.
48602         * tests/unictype/test-ctype_lower.c: Likewise.
48603         * tests/unictype/test-ctype_print.c: Likewise.
48604         * tests/unictype/test-ctype_punct.c: Likewise.
48605         * tests/unictype/test-ctype_space.c: Likewise.
48606         * tests/unictype/test-ctype_upper.c: Likewise.
48607         * tests/unictype/test-ctype_xdigit.c: Likewise.
48608         * tests/unictype/test-decdigit.h: Likewise.
48609         * tests/unictype/test-digit.h: Likewise.
48610         * tests/unictype/test-numeric.h: Likewise.
48611         * tests/unictype/test-pr_alphabetic.c: Likewise.
48612         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
48613         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
48614         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
48615         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
48616         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
48617         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
48618         * tests/unictype/test-pr_bidi_control.c: Likewise.
48619         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
48620         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
48621         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
48622         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
48623         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
48624         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
48625         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
48626         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
48627         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
48628         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
48629         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
48630         * tests/unictype/test-pr_combining.c: Likewise.
48631         * tests/unictype/test-pr_composite.c: Likewise.
48632         * tests/unictype/test-pr_currency_symbol.c: Likewise.
48633         * tests/unictype/test-pr_dash.c: Likewise.
48634         * tests/unictype/test-pr_decimal_digit.c: Likewise.
48635         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
48636         * tests/unictype/test-pr_deprecated.c: Likewise.
48637         * tests/unictype/test-pr_diacritic.c: Likewise.
48638         * tests/unictype/test-pr_extender.c: Likewise.
48639         * tests/unictype/test-pr_format_control.c: Likewise.
48640         * tests/unictype/test-pr_grapheme_base.c: Likewise.
48641         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
48642         * tests/unictype/test-pr_grapheme_link.c: Likewise.
48643         * tests/unictype/test-pr_hex_digit.c: Likewise.
48644         * tests/unictype/test-pr_hyphen.c: Likewise.
48645         * tests/unictype/test-pr_id_continue.c: Likewise.
48646         * tests/unictype/test-pr_id_start.c: Likewise.
48647         * tests/unictype/test-pr_ideographic.c: Likewise.
48648         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
48649         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
48650         * tests/unictype/test-pr_ignorable_control.c: Likewise.
48651         * tests/unictype/test-pr_iso_control.c: Likewise.
48652         * tests/unictype/test-pr_join_control.c: Likewise.
48653         * tests/unictype/test-pr_left_of_pair.c: Likewise.
48654         * tests/unictype/test-pr_line_separator.c: Likewise.
48655         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
48656         * tests/unictype/test-pr_lowercase.c: Likewise.
48657         * tests/unictype/test-pr_math.c: Likewise.
48658         * tests/unictype/test-pr_non_break.c: Likewise.
48659         * tests/unictype/test-pr_not_a_character.c: Likewise.
48660         * tests/unictype/test-pr_numeric.c: Likewise.
48661         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
48662         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
48663         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
48664         * tests/unictype/test-pr_other_id_continue.c: Likewise.
48665         * tests/unictype/test-pr_other_id_start.c: Likewise.
48666         * tests/unictype/test-pr_other_lowercase.c: Likewise.
48667         * tests/unictype/test-pr_other_math.c: Likewise.
48668         * tests/unictype/test-pr_other_uppercase.c: Likewise.
48669         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
48670         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
48671         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
48672         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
48673         * tests/unictype/test-pr_private_use.c: Likewise.
48674         * tests/unictype/test-pr_punctuation.c: Likewise.
48675         * tests/unictype/test-pr_quotation_mark.c: Likewise.
48676         * tests/unictype/test-pr_radical.c: Likewise.
48677         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
48678         * tests/unictype/test-pr_soft_dotted.c: Likewise.
48679         * tests/unictype/test-pr_space.c: Likewise.
48680         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
48681         * tests/unictype/test-pr_titlecase.c: Likewise.
48682         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
48683         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
48684         * tests/unictype/test-pr_uppercase.c: Likewise.
48685         * tests/unictype/test-pr_variation_selector.c: Likewise.
48686         * tests/unictype/test-pr_white_space.c: Likewise.
48687         * tests/unictype/test-pr_xid_continue.c: Likewise.
48688         * tests/unictype/test-pr_xid_start.c: Likewise.
48689         * tests/unictype/test-pr_zero_width.c: Likewise.
48690         * tests/unictype/test-sy_c_whitespace.c: Likewise.
48691         * tests/unictype/test-sy_java_whitespace.c: Likewise.
48692
48693 2007-11-12  Bruno Haible  <bruno@clisp.org>
48694
48695         Unicode character classification functions.
48696         * lib/unictype.h: New file.
48697         * modules/unictype/base: New file.
48698         * modules/unictype/category-L: New file.
48699         * modules/unictype/category-Lu: New file.
48700         * modules/unictype/category-Ll: New file.
48701         * modules/unictype/category-Lt: New file.
48702         * modules/unictype/category-Lm: New file.
48703         * modules/unictype/category-Lo: New file.
48704         * modules/unictype/category-M: New file.
48705         * modules/unictype/category-Mn: New file.
48706         * modules/unictype/category-Mc: New file.
48707         * modules/unictype/category-Me: New file.
48708         * modules/unictype/category-N: New file.
48709         * modules/unictype/category-Nd: New file.
48710         * modules/unictype/category-Nl: New file.
48711         * modules/unictype/category-No: New file.
48712         * modules/unictype/category-P: New file.
48713         * modules/unictype/category-Pc: New file.
48714         * modules/unictype/category-Pd: New file.
48715         * modules/unictype/category-Ps: New file.
48716         * modules/unictype/category-Pe: New file.
48717         * modules/unictype/category-Pi: New file.
48718         * modules/unictype/category-Pf: New file.
48719         * modules/unictype/category-Po: New file.
48720         * modules/unictype/category-S: New file.
48721         * modules/unictype/category-Sm: New file.
48722         * modules/unictype/category-Sc: New file.
48723         * modules/unictype/category-Sk: New file.
48724         * modules/unictype/category-So: New file.
48725         * modules/unictype/category-Z: New file.
48726         * modules/unictype/category-Zs: New file.
48727         * modules/unictype/category-Zl: New file.
48728         * modules/unictype/category-Zp: New file.
48729         * modules/unictype/category-C: New file.
48730         * modules/unictype/category-Cc: New file.
48731         * modules/unictype/category-Cf: New file.
48732         * modules/unictype/category-Cs: New file.
48733         * modules/unictype/category-Co: New file.
48734         * modules/unictype/category-Cn: New file.
48735         * modules/unictype/category-or: New file.
48736         * modules/unictype/category-of: New file.
48737         * modules/unictype/category-test: New file.
48738         * modules/unictype/category-test-withtable: New file.
48739         * modules/unictype/category-byname: New file.
48740         * modules/unictype/category-none: New file.
48741         * modules/unictype/category-and: New file.
48742         * modules/unictype/category-and-not: New file.
48743         * modules/unictype/category-name: New file.
48744         * modules/unictype/combining-class: New file.
48745         * modules/unictype/category-all: New file.
48746         * modules/unictype/bidicategory-all: New file.
48747         * modules/unictype/bidicategory-byname: New file.
48748         * modules/unictype/bidicategory-name: New file.
48749         * modules/unictype/bidicategory-of: New file.
48750         * modules/unictype/bidicategory-test: New file.
48751         * modules/unictype/decimal-digit: New file.
48752         * modules/unictype/digit: New file.
48753         * modules/unictype/numeric: New file.
48754         * modules/unictype/mirror: New file.
48755         * modules/unictype/property-white-space: New file.
48756         * modules/unictype/property-alphabetic: New file.
48757         * modules/unictype/property-other-alphabetic: New file.
48758         * modules/unictype/property-not-a-character: New file.
48759         * modules/unictype/property-default-ignorable-code-point: New file.
48760         * modules/unictype/property-other-default-ignorable-code-point: New
48761         file.
48762         * modules/unictype/property-deprecated: New file.
48763         * modules/unictype/property-logical-order-exception: New file.
48764         * modules/unictype/property-variation-selector: New file.
48765         * modules/unictype/property-private-use: New file.
48766         * modules/unictype/property-unassigned-code-value: New file.
48767         * modules/unictype/property-uppercase: New file.
48768         * modules/unictype/property-other-uppercase: New file.
48769         * modules/unictype/property-lowercase: New file.
48770         * modules/unictype/property-other-lowercase: New file.
48771         * modules/unictype/property-titlecase: New file.
48772         * modules/unictype/property-soft-dotted: New file.
48773         * modules/unictype/property-id-start: New file.
48774         * modules/unictype/property-other-id-start: New file.
48775         * modules/unictype/property-id-continue: New file.
48776         * modules/unictype/property-other-id-continue: New file.
48777         * modules/unictype/property-xid-start: New file.
48778         * modules/unictype/property-xid-continue: New file.
48779         * modules/unictype/property-pattern-white-space: New file.
48780         * modules/unictype/property-pattern-syntax: New file.
48781         * modules/unictype/property-join-control: New file.
48782         * modules/unictype/property-grapheme-base: New file.
48783         * modules/unictype/property-grapheme-extend: New file.
48784         * modules/unictype/property-other-grapheme-extend: New file.
48785         * modules/unictype/property-grapheme-link: New file.
48786         * modules/unictype/property-bidi-control: New file.
48787         * modules/unictype/property-bidi-left-to-right: New file.
48788         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
48789         * modules/unictype/property-bidi-arabic-right-to-left: New file.
48790         * modules/unictype/property-bidi-european-digit: New file.
48791         * modules/unictype/property-bidi-eur-num-separator: New file.
48792         * modules/unictype/property-bidi-eur-num-terminator: New file.
48793         * modules/unictype/property-bidi-arabic-digit: New file.
48794         * modules/unictype/property-bidi-common-separator: New file.
48795         * modules/unictype/property-bidi-block-separator: New file.
48796         * modules/unictype/property-bidi-segment-separator: New file.
48797         * modules/unictype/property-bidi-whitespace: New file.
48798         * modules/unictype/property-bidi-non-spacing-mark: New file.
48799         * modules/unictype/property-bidi-boundary-neutral: New file.
48800         * modules/unictype/property-bidi-pdf: New file.
48801         * modules/unictype/property-bidi-embedding-or-override: New file.
48802         * modules/unictype/property-bidi-other-neutral: New file.
48803         * modules/unictype/property-hex-digit: New file.
48804         * modules/unictype/property-ascii-hex-digit: New file.
48805         * modules/unictype/property-ideographic: New file.
48806         * modules/unictype/property-unified-ideograph: New file.
48807         * modules/unictype/property-radical: New file.
48808         * modules/unictype/property-ids-binary-operator: New file.
48809         * modules/unictype/property-ids-trinary-operator: New file.
48810         * modules/unictype/property-zero-width: New file.
48811         * modules/unictype/property-space: New file.
48812         * modules/unictype/property-non-break: New file.
48813         * modules/unictype/property-iso-control: New file.
48814         * modules/unictype/property-format-control: New file.
48815         * modules/unictype/property-dash: New file.
48816         * modules/unictype/property-hyphen: New file.
48817         * modules/unictype/property-punctuation: New file.
48818         * modules/unictype/property-line-separator: New file.
48819         * modules/unictype/property-paragraph-separator: New file.
48820         * modules/unictype/property-quotation-mark: New file.
48821         * modules/unictype/property-sentence-terminal: New file.
48822         * modules/unictype/property-terminal-punctuation: New file.
48823         * modules/unictype/property-currency-symbol: New file.
48824         * modules/unictype/property-math: New file.
48825         * modules/unictype/property-other-math: New file.
48826         * modules/unictype/property-paired-punctuation: New file.
48827         * modules/unictype/property-left-of-pair: New file.
48828         * modules/unictype/property-combining: New file.
48829         * modules/unictype/property-composite: New file.
48830         * modules/unictype/property-decimal-digit: New file.
48831         * modules/unictype/property-numeric: New file.
48832         * modules/unictype/property-diacritic: New file.
48833         * modules/unictype/property-extender: New file.
48834         * modules/unictype/property-ignorable-control: New file.
48835         * modules/unictype/property-test: New file.
48836         * modules/unictype/property-byname: New file.
48837         * modules/unictype/property-all: New file.
48838         * modules/unictype/scripts: New file.
48839         * modules/unictype/scripts-all: New file.
48840         * modules/unictype/block-of: New file.
48841         * modules/unictype/block-test: New file.
48842         * modules/unictype/block-list: New file.
48843         * modules/unictype/block-all: New file.
48844         * modules/unictype/syntax-c-whitespace: New file.
48845         * modules/unictype/syntax-java-whitespace: New file.
48846         * modules/unictype/syntax-c-ident: New file.
48847         * modules/unictype/syntax-java-ident: New file.
48848         * modules/unictype/ctype-alnum: New file.
48849         * modules/unictype/ctype-alpha: New file.
48850         * modules/unictype/ctype-cntrl: New file.
48851         * modules/unictype/ctype-digit: New file.
48852         * modules/unictype/ctype-graph: New file.
48853         * modules/unictype/ctype-lower: New file.
48854         * modules/unictype/ctype-print: New file.
48855         * modules/unictype/ctype-punct: New file.
48856         * modules/unictype/ctype-space: New file.
48857         * modules/unictype/ctype-upper: New file.
48858         * modules/unictype/ctype-xdigit: New file.
48859         * modules/unictype/ctype-blank: New file.
48860         * lib/unictype/bidi_byname.c: New file.
48861         * lib/unictype/bidi_name.c: New file.
48862         * lib/unictype/bidi_of.c: New file.
48863         * lib/unictype/bidi_test.c: New file.
48864         * lib/unictype/bitmap.h: New file.
48865         * lib/unictype/block_test.c: New file.
48866         * lib/unictype/blocks.c: New file.
48867         * lib/unictype/categ_C.c: New file.
48868         * lib/unictype/categ_Cc.c: New file.
48869         * lib/unictype/categ_Cf.c: New file.
48870         * lib/unictype/categ_Cn.c: New file.
48871         * lib/unictype/categ_Co.c: New file.
48872         * lib/unictype/categ_Cs.c: New file.
48873         * lib/unictype/categ_L.c: New file.
48874         * lib/unictype/categ_Ll.c: New file.
48875         * lib/unictype/categ_Lm.c: New file.
48876         * lib/unictype/categ_Lo.c: New file.
48877         * lib/unictype/categ_Lt.c: New file.
48878         * lib/unictype/categ_Lu.c: New file.
48879         * lib/unictype/categ_M.c: New file.
48880         * lib/unictype/categ_Mc.c: New file.
48881         * lib/unictype/categ_Me.c: New file.
48882         * lib/unictype/categ_Mn.c: New file.
48883         * lib/unictype/categ_N.c: New file.
48884         * lib/unictype/categ_Nd.c: New file.
48885         * lib/unictype/categ_Nl.c: New file.
48886         * lib/unictype/categ_No.c: New file.
48887         * lib/unictype/categ_P.c: New file.
48888         * lib/unictype/categ_Pc.c: New file.
48889         * lib/unictype/categ_Pd.c: New file.
48890         * lib/unictype/categ_Pe.c: New file.
48891         * lib/unictype/categ_Pf.c: New file.
48892         * lib/unictype/categ_Pi.c: New file.
48893         * lib/unictype/categ_Po.c: New file.
48894         * lib/unictype/categ_Ps.c: New file.
48895         * lib/unictype/categ_S.c: New file.
48896         * lib/unictype/categ_Sc.c: New file.
48897         * lib/unictype/categ_Sk.c: New file.
48898         * lib/unictype/categ_Sm.c: New file.
48899         * lib/unictype/categ_So.c: New file.
48900         * lib/unictype/categ_Z.c: New file.
48901         * lib/unictype/categ_Zl.c: New file.
48902         * lib/unictype/categ_Zp.c: New file.
48903         * lib/unictype/categ_Zs.c: New file.
48904         * lib/unictype/categ_and.c: New file.
48905         * lib/unictype/categ_and_not.c: New file.
48906         * lib/unictype/categ_byname.c: New file.
48907         * lib/unictype/categ_name.c: New file.
48908         * lib/unictype/categ_none.c: New file.
48909         * lib/unictype/categ_of.c: New file.
48910         * lib/unictype/categ_or.c: New file.
48911         * lib/unictype/categ_test.c: New file.
48912         * lib/unictype/combining.c: New file.
48913         * lib/unictype/ctype_alnum.c: New file.
48914         * lib/unictype/ctype_alpha.c: New file.
48915         * lib/unictype/ctype_blank.c: New file.
48916         * lib/unictype/ctype_cntrl.c: New file.
48917         * lib/unictype/ctype_digit.c: New file.
48918         * lib/unictype/ctype_graph.c: New file.
48919         * lib/unictype/ctype_lower.c: New file.
48920         * lib/unictype/ctype_print.c: New file.
48921         * lib/unictype/ctype_punct.c: New file.
48922         * lib/unictype/ctype_space.c: New file.
48923         * lib/unictype/ctype_upper.c: New file.
48924         * lib/unictype/ctype_xdigit.c: New file.
48925         * lib/unictype/decdigit.c: New file.
48926         * lib/unictype/digit.c: New file.
48927         * lib/unictype/identsyntaxmap.h: New file.
48928         * lib/unictype/mirror.c: New file.
48929         * lib/unictype/numeric.c: New file.
48930         * lib/unictype/pr_alphabetic.c: New file.
48931         * lib/unictype/pr_ascii_hex_digit.c: New file.
48932         * lib/unictype/pr_bidi_arabic_digit.c: New file.
48933         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
48934         * lib/unictype/pr_bidi_block_separator.c: New file.
48935         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
48936         * lib/unictype/pr_bidi_common_separator.c: New file.
48937         * lib/unictype/pr_bidi_control.c: New file.
48938         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
48939         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
48940         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
48941         * lib/unictype/pr_bidi_european_digit.c: New file.
48942         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
48943         * lib/unictype/pr_bidi_left_to_right.c: New file.
48944         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
48945         * lib/unictype/pr_bidi_other_neutral.c: New file.
48946         * lib/unictype/pr_bidi_pdf.c: New file.
48947         * lib/unictype/pr_bidi_segment_separator.c: New file.
48948         * lib/unictype/pr_bidi_whitespace.c: New file.
48949         * lib/unictype/pr_byname.c: New file.
48950         * lib/unictype/pr_byname.gperf: New file.
48951         * lib/unictype/pr_combining.c: New file.
48952         * lib/unictype/pr_composite.c: New file.
48953         * lib/unictype/pr_currency_symbol.c: New file.
48954         * lib/unictype/pr_dash.c: New file.
48955         * lib/unictype/pr_decimal_digit.c: New file.
48956         * lib/unictype/pr_default_ignorable_code_point.c: New file.
48957         * lib/unictype/pr_deprecated.c: New file.
48958         * lib/unictype/pr_diacritic.c: New file.
48959         * lib/unictype/pr_extender.c: New file.
48960         * lib/unictype/pr_format_control.c: New file.
48961         * lib/unictype/pr_grapheme_base.c: New file.
48962         * lib/unictype/pr_grapheme_extend.c: New file.
48963         * lib/unictype/pr_grapheme_link.c: New file.
48964         * lib/unictype/pr_hex_digit.c: New file.
48965         * lib/unictype/pr_hyphen.c: New file.
48966         * lib/unictype/pr_id_continue.c: New file.
48967         * lib/unictype/pr_id_start.c: New file.
48968         * lib/unictype/pr_ideographic.c: New file.
48969         * lib/unictype/pr_ids_binary_operator.c: New file.
48970         * lib/unictype/pr_ids_trinary_operator.c: New file.
48971         * lib/unictype/pr_ignorable_control.c: New file.
48972         * lib/unictype/pr_iso_control.c: New file.
48973         * lib/unictype/pr_join_control.c: New file.
48974         * lib/unictype/pr_left_of_pair.c: New file.
48975         * lib/unictype/pr_line_separator.c: New file.
48976         * lib/unictype/pr_logical_order_exception.c: New file.
48977         * lib/unictype/pr_lowercase.c: New file.
48978         * lib/unictype/pr_math.c: New file.
48979         * lib/unictype/pr_non_break.c: New file.
48980         * lib/unictype/pr_not_a_character.c: New file.
48981         * lib/unictype/pr_numeric.c: New file.
48982         * lib/unictype/pr_other_alphabetic.c: New file.
48983         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
48984         * lib/unictype/pr_other_grapheme_extend.c: New file.
48985         * lib/unictype/pr_other_id_continue.c: New file.
48986         * lib/unictype/pr_other_id_start.c: New file.
48987         * lib/unictype/pr_other_lowercase.c: New file.
48988         * lib/unictype/pr_other_math.c: New file.
48989         * lib/unictype/pr_other_uppercase.c: New file.
48990         * lib/unictype/pr_paired_punctuation.c: New file.
48991         * lib/unictype/pr_paragraph_separator.c: New file.
48992         * lib/unictype/pr_pattern_syntax.c: New file.
48993         * lib/unictype/pr_pattern_white_space.c: New file.
48994         * lib/unictype/pr_private_use.c: New file.
48995         * lib/unictype/pr_punctuation.c: New file.
48996         * lib/unictype/pr_quotation_mark.c: New file.
48997         * lib/unictype/pr_radical.c: New file.
48998         * lib/unictype/pr_sentence_terminal.c: New file.
48999         * lib/unictype/pr_soft_dotted.c: New file.
49000         * lib/unictype/pr_space.c: New file.
49001         * lib/unictype/pr_terminal_punctuation.c: New file.
49002         * lib/unictype/pr_test.c: New file.
49003         * lib/unictype/pr_titlecase.c: New file.
49004         * lib/unictype/pr_unassigned_code_value.c: New file.
49005         * lib/unictype/pr_unified_ideograph.c: New file.
49006         * lib/unictype/pr_uppercase.c: New file.
49007         * lib/unictype/pr_variation_selector.c: New file.
49008         * lib/unictype/pr_white_space.c: New file.
49009         * lib/unictype/pr_xid_continue.c: New file.
49010         * lib/unictype/pr_xid_start.c: New file.
49011         * lib/unictype/pr_zero_width.c: New file.
49012         * lib/unictype/scripts.c: New file.
49013         * lib/unictype/sy_c_ident.c: New file.
49014         * lib/unictype/sy_c_whitespace.c: New file.
49015         * lib/unictype/sy_java_ident.c: New file.
49016         * lib/unictype/sy_java_whitespace.c: New file.
49017
49018         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
49019         Unicode 5.0.0.
49020         * lib/unictype/blocks.h: Likewise.
49021         * lib/unictype/categ_C.h: Likewise.
49022         * lib/unictype/categ_Cc.h: Likewise.
49023         * lib/unictype/categ_Cf.h: Likewise.
49024         * lib/unictype/categ_Cn.h: Likewise.
49025         * lib/unictype/categ_Co.h: Likewise.
49026         * lib/unictype/categ_Cs.h: Likewise.
49027         * lib/unictype/categ_L.h: Likewise.
49028         * lib/unictype/categ_Ll.h: Likewise.
49029         * lib/unictype/categ_Lm.h: Likewise.
49030         * lib/unictype/categ_Lo.h: Likewise.
49031         * lib/unictype/categ_Lt.h: Likewise.
49032         * lib/unictype/categ_Lu.h: Likewise.
49033         * lib/unictype/categ_M.h: Likewise.
49034         * lib/unictype/categ_Mc.h: Likewise.
49035         * lib/unictype/categ_Me.h: Likewise.
49036         * lib/unictype/categ_Mn.h: Likewise.
49037         * lib/unictype/categ_N.h: Likewise.
49038         * lib/unictype/categ_Nd.h: Likewise.
49039         * lib/unictype/categ_Nl.h: Likewise.
49040         * lib/unictype/categ_No.h: Likewise.
49041         * lib/unictype/categ_P.h: Likewise.
49042         * lib/unictype/categ_Pc.h: Likewise.
49043         * lib/unictype/categ_Pd.h: Likewise.
49044         * lib/unictype/categ_Pe.h: Likewise.
49045         * lib/unictype/categ_Pf.h: Likewise.
49046         * lib/unictype/categ_Pi.h: Likewise.
49047         * lib/unictype/categ_Po.h: Likewise.
49048         * lib/unictype/categ_Ps.h: Likewise.
49049         * lib/unictype/categ_S.h: Likewise.
49050         * lib/unictype/categ_Sc.h: Likewise.
49051         * lib/unictype/categ_Sk.h: Likewise.
49052         * lib/unictype/categ_Sm.h: Likewise.
49053         * lib/unictype/categ_So.h: Likewise.
49054         * lib/unictype/categ_Z.h: Likewise.
49055         * lib/unictype/categ_Zl.h: Likewise.
49056         * lib/unictype/categ_Zp.h: Likewise.
49057         * lib/unictype/categ_Zs.h: Likewise.
49058         * lib/unictype/categ_of.h: Likewise.
49059         * lib/unictype/combining.h: Likewise.
49060         * lib/unictype/ctype_alnum.h: Likewise.
49061         * lib/unictype/ctype_alpha.h: Likewise.
49062         * lib/unictype/ctype_blank.h: Likewise.
49063         * lib/unictype/ctype_cntrl.h: Likewise.
49064         * lib/unictype/ctype_digit.h: Likewise.
49065         * lib/unictype/ctype_graph.h: Likewise.
49066         * lib/unictype/ctype_lower.h: Likewise.
49067         * lib/unictype/ctype_print.h: Likewise.
49068         * lib/unictype/ctype_punct.h: Likewise.
49069         * lib/unictype/ctype_space.h: Likewise.
49070         * lib/unictype/ctype_upper.h: Likewise.
49071         * lib/unictype/ctype_xdigit.h: Likewise.
49072         * lib/unictype/decdigit.h: Likewise.
49073         * lib/unictype/digit.h: Likewise.
49074         * lib/unictype/mirror.h: Likewise.
49075         * lib/unictype/numeric.h: Likewise.
49076         * lib/unictype/pr_alphabetic.h: Likewise.
49077         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
49078         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
49079         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
49080         * lib/unictype/pr_bidi_block_separator.h: Likewise.
49081         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
49082         * lib/unictype/pr_bidi_common_separator.h: Likewise.
49083         * lib/unictype/pr_bidi_control.h: Likewise.
49084         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
49085         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
49086         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
49087         * lib/unictype/pr_bidi_european_digit.h: Likewise.
49088         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
49089         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
49090         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
49091         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
49092         * lib/unictype/pr_bidi_pdf.h: Likewise.
49093         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
49094         * lib/unictype/pr_bidi_whitespace.h: Likewise.
49095         * lib/unictype/pr_combining.h: Likewise.
49096         * lib/unictype/pr_composite.h: Likewise.
49097         * lib/unictype/pr_currency_symbol.h: Likewise.
49098         * lib/unictype/pr_dash.h: Likewise.
49099         * lib/unictype/pr_decimal_digit.h: Likewise.
49100         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
49101         * lib/unictype/pr_deprecated.h: Likewise.
49102         * lib/unictype/pr_diacritic.h: Likewise.
49103         * lib/unictype/pr_extender.h: Likewise.
49104         * lib/unictype/pr_format_control.h: Likewise.
49105         * lib/unictype/pr_grapheme_base.h: Likewise.
49106         * lib/unictype/pr_grapheme_extend.h: Likewise.
49107         * lib/unictype/pr_grapheme_link.h: Likewise.
49108         * lib/unictype/pr_hex_digit.h: Likewise.
49109         * lib/unictype/pr_hyphen.h: Likewise.
49110         * lib/unictype/pr_id_continue.h: Likewise.
49111         * lib/unictype/pr_id_start.h: Likewise.
49112         * lib/unictype/pr_ideographic.h: Likewise.
49113         * lib/unictype/pr_ids_binary_operator.h: Likewise.
49114         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
49115         * lib/unictype/pr_ignorable_control.h: Likewise.
49116         * lib/unictype/pr_iso_control.h: Likewise.
49117         * lib/unictype/pr_join_control.h: Likewise.
49118         * lib/unictype/pr_left_of_pair.h: Likewise.
49119         * lib/unictype/pr_line_separator.h: Likewise.
49120         * lib/unictype/pr_logical_order_exception.h: Likewise.
49121         * lib/unictype/pr_lowercase.h: Likewise.
49122         * lib/unictype/pr_math.h: Likewise.
49123         * lib/unictype/pr_non_break.h: Likewise.
49124         * lib/unictype/pr_not_a_character.h: Likewise.
49125         * lib/unictype/pr_numeric.h: Likewise.
49126         * lib/unictype/pr_other_alphabetic.h: Likewise.
49127         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
49128         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
49129         * lib/unictype/pr_other_id_continue.h: Likewise.
49130         * lib/unictype/pr_other_id_start.h: Likewise.
49131         * lib/unictype/pr_other_lowercase.h: Likewise.
49132         * lib/unictype/pr_other_math.h: Likewise.
49133         * lib/unictype/pr_other_uppercase.h: Likewise.
49134         * lib/unictype/pr_paired_punctuation.h: Likewise.
49135         * lib/unictype/pr_paragraph_separator.h: Likewise.
49136         * lib/unictype/pr_pattern_syntax.h: Likewise.
49137         * lib/unictype/pr_pattern_white_space.h: Likewise.
49138         * lib/unictype/pr_private_use.h: Likewise.
49139         * lib/unictype/pr_punctuation.h: Likewise.
49140         * lib/unictype/pr_quotation_mark.h: Likewise.
49141         * lib/unictype/pr_radical.h: Likewise.
49142         * lib/unictype/pr_sentence_terminal.h: Likewise.
49143         * lib/unictype/pr_soft_dotted.h: Likewise.
49144         * lib/unictype/pr_space.h: Likewise.
49145         * lib/unictype/pr_terminal_punctuation.h: Likewise.
49146         * lib/unictype/pr_titlecase.h: Likewise.
49147         * lib/unictype/pr_unassigned_code_value.h: Likewise.
49148         * lib/unictype/pr_unified_ideograph.h: Likewise.
49149         * lib/unictype/pr_uppercase.h: Likewise.
49150         * lib/unictype/pr_variation_selector.h: Likewise.
49151         * lib/unictype/pr_white_space.h: Likewise.
49152         * lib/unictype/pr_xid_continue.h: Likewise.
49153         * lib/unictype/pr_xid_start.h: Likewise.
49154         * lib/unictype/pr_zero_width.h: Likewise.
49155         * lib/unictype/scripts.h: Likewise.
49156         * lib/unictype/scripts_byname.gperf: Likewise.
49157         * lib/unictype/sy_c_ident.h: Likewise.
49158         * lib/unictype/sy_c_whitespace.h: Likewise.
49159         * lib/unictype/sy_java_ident.h: Likewise.
49160         * lib/unictype/sy_java_whitespace.h: Likewise.
49161
49162         * lib/unictype/Makefile: New file.
49163         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
49164         glibc.
49165         * lib/unictype/3level.h: New file, copied from glibc.
49166         * lib/unictype/3levelbit.h: New file.
49167
49168 2007-11-11  Bruno Haible  <bruno@clisp.org>
49169
49170         * modules/gperf: New file.
49171         * modules/iconv_open (Depends-on): Add it.
49172         (Makefile.am): Remove the GPERF definition.
49173
49174 2007-11-11  Bruno Haible  <bruno@clisp.org>
49175
49176         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
49177         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
49178
49179 2007-11-11  Bruno Haible  <bruno@clisp.org>
49180
49181         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
49182         (usage): Remove function.
49183
49184 2007-11-11  Bruno Haible  <bruno@clisp.org>
49185
49186         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
49187         gl_FUNC_CEILF_LIBS.
49188         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
49189         gl_FUNC_CEIL_LIBS.
49190         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
49191         gl_FUNC_CEILL_LIBS.
49192         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
49193         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
49194         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
49195
49196 2007-11-11  Bruno Haible  <bruno@clisp.org>
49197
49198         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
49199         roundf were declared but do not exist on functions.
49200         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
49201         roundl were declared but do not exist on functions.
49202         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
49203         HAVE_FLOORL_AND_CEILL, respectively.
49204         Needed for Sun C on Solaris 10.
49205
49206 2007-11-11  Bruno Haible  <bruno@clisp.org>
49207
49208         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
49209         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
49210         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
49211         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
49212         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
49213         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
49214         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
49215         HAVE_DECL_ROUNDF.
49216         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
49217         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
49218         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
49219         of HAVE_DECL_ROUND*.
49220         * modules/math (Makefile.am): Update.
49221
49222 2007-11-10  Bruno Haible  <bruno@clisp.org>
49223
49224         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
49225         ptrdiff_t as m4/intl.m4.
49226
49227 2007-11-10  Jim Meyering  <meyering@redhat.com>
49228
49229         Avoid link failure for the argmatch test.
49230         * tests/test-argmatch.c (usage): Define function to avoid a link
49231         failure: argmatch_die requires a usage function.
49232
49233 2007-11-09  Bruno Haible  <bruno@clisp.org>
49234
49235         * doc/functions/snprintf.texi: Mention BeOS deficiency.
49236         * doc/functions/vsnprintf.texi: Likewise.
49237         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
49238         with a size argument < 2.
49239
49240 2007-11-09  Bruno Haible  <bruno@clisp.org>
49241
49242         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
49243         buffer. Fixes an inefficiency introduced on 2007-11-03.
49244
49245 2007-11-09  Bruno Haible  <bruno@clisp.org>
49246
49247         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
49248         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
49249
49250 2007-11-08  Jim Meyering  <meyering@redhat.com>
49251
49252         Change cache variable name prefix "jm_" to "gl_" everywhere.
49253         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
49254         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
49255         * m4/uptime.m4: s/gl_/jm_/
49256
49257 2007-11-07  Bruno Haible  <bruno@clisp.org>
49258
49259         Update to GNU gettext 0.17.
49260         * m4/intl.m4: Update to GNU gettext 0.17.
49261         * m4/po.m4: Likewise.
49262         * modules/gettext (Files): Remove m4/ulonglong.m4.
49263         (configure.ac): Require gettext infrastructure from version 0.17.
49264
49265 2007-11-06  Bruno Haible  <bruno@clisp.org>
49266
49267         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
49268         symbolic values are not defined in a public header.
49269         * lib/freadable.c (freadable) [QNX]: Likewise.
49270         * lib/freadahead.c (freadahead) [QNX]: Likewise.
49271         * lib/freading.c (freading) [QNX]: Likewise.
49272         * lib/fseterr.c (fseterr) [QNX]: Likewise.
49273         * lib/fwritable.c (fwritable) [QNX]: Likewise.
49274         * lib/fwriting.c (fwriting) [QNX]: Likewise.
49275         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
49276         Reported by Alain Magloire.
49277
49278         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
49279
49280 2007-11-05  Bruno Haible  <bruno@clisp.org>
49281
49282         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
49283         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
49284         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
49285         Reported by Eric Blake.
49286
49287 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49288             Bruno Haible  <bruno@clisp.org>
49289
49290         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
49291         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
49292         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
49293         (malloc): Undefine also before including <stdlib.h>.
49294         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
49295         Needed on OSF/1 4.0.
49296
49297 2007-11-05  Jim Meyering  <meyering@redhat.com>
49298
49299         git-version-gen: sync from coreutils.
49300         * build-aux/git-version-gen: Add comments.
49301         Change the first '-' to '.' in the snapshot version string,
49302         e.g., 6.9-377-08144 -> 6.9.377-08144
49303         Remove first parameter.
49304         Don't declare a version "-dirty" merely because a time
49305         stamp has changed.
49306
49307 2007-11-04  Bruno Haible  <bruno@clisp.org>
49308
49309         * lib/lock.h: Protect all macro definitions containing an 'if'
49310         statement through a "do { ... } while (0)".
49311         * lib/tls.h: Likewise.
49312
49313 2007-11-04  Bruno Haible  <bruno@clisp.org>
49314
49315         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
49316
49317 2007-11-04  Bruno Haible  <bruno@clisp.org>
49318
49319         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
49320         * modules/fprintf-posix (Depends-on): Add nocrash.
49321         * modules/snprintf-posix (Depends-on): Likewise.
49322         * modules/sprintf-posix (Depends-on): Likewise.
49323         * modules/vasnprintf-posix (Depends-on): Likewise.
49324         * modules/vasprintf-posix (Depends-on): Likewise.
49325         * modules/vfprintf-posix (Depends-on): Likewise.
49326         * modules/vsnprintf-posix (Depends-on): Likewise.
49327         * modules/vsprintf-posix (Depends-on): Likewise.
49328         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
49329         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
49330         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
49331         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
49332         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
49333         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
49334         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
49335
49336 2007-11-04  Bruno Haible  <bruno@clisp.org>
49337
49338         * modules/nocrash: New file.
49339         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
49340         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
49341
49342 2007-11-04  Bruno Haible  <bruno@clisp.org>
49343
49344         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
49345         precision handling.
49346         * tests/test-vasprintf-posix.c (test_function): Likewise.
49347         * tests/test-snprintf-posix.h (test_function): Likewise.
49348         * tests/test-sprintf-posix.h (test_function): Likewise.
49349
49350         Fix *printf behaviour for large precisions on mingw and BeOS.
49351         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
49352         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
49353         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
49354         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
49355         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
49356         gl_PRINTF_PRECISION and test its result. Invoke
49357         gl_PREREQ_VASNPRINTF_PRECISION.
49358         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
49359         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
49360         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
49361         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
49362         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
49363         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
49364         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
49365         * doc/functions/fprintf.texi: Update.
49366         * doc/functions/printf.texi: Update.
49367         * doc/functions/snprintf.texi: Update.
49368         * doc/functions/sprintf.texi: Update.
49369         * doc/functions/vfprintf.texi: Update.
49370         * doc/functions/vprintf.texi: Update.
49371         * doc/functions/vsnprintf.texi: Update.
49372         * doc/functions/vsprintf.texi: Update.
49373
49374 2007-11-04  Bruno Haible  <bruno@clisp.org>
49375
49376         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
49377
49378 2007-11-04  Bruno Haible  <bruno@clisp.org>
49379
49380         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
49381         Reported by Sylvain Beucler <beuc@gnu.org>.
49382
49383 2007-11-03  Bruno Haible  <bruno@clisp.org>
49384
49385         * tests/test-fprintf-posix2.sh: New file.
49386         * tests/test-fprintf-posix2.c: New file.
49387         * modules/fprintf-posix-tests (Files): Add them.
49388         (TESTS): Add test-fprintf-posix2.sh.
49389         (configure.ac): Check for getrlimit and setrlimit.
49390         (check_PROGRAMS): Add test-fprintf-posix2.
49391
49392         * tests/test-printf-posix2.sh: New file.
49393         * tests/test-printf-posix2.c: New file.
49394         * modules/printf-posix-tests (Files): Add them.
49395         (TESTS): Add test-printf-posix2.sh.
49396         (configure.ac): Check for getrlimit and setrlimit.
49397         (check_PROGRAMS): Add test-printf-posix2.
49398
49399         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
49400         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
49401         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
49402         (decode_double): New function, copied from decode_long_double.
49403         (scale10_round_decimal_decoded): New function, extracted from
49404         scale10_round_decimal_long_double.
49405         (scale10_round_decimal_long_double): Use it.
49406         (scale10_round_decimal_double): New function.
49407         (floorlog10): New function.
49408         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
49409         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
49410         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
49411         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
49412         gl_PRINTF_ENOMEM and test its result. Invoke
49413         gl_PREREQ_VASNPRINTF_ENOMEM.
49414         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
49415         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
49416         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
49417         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
49418         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
49419         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
49420         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
49421         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
49422         * modules/snprintf-posix (Depends-on): Likewise.
49423         * modules/sprintf-posix (Depends-on): Likewise.
49424         * modules/vasnprintf-posix (Depends-on): Likewise.
49425         * modules/vasprintf-posix (Depends-on): Likewise.
49426         * modules/vfprintf-posix (Depends-on): Likewise.
49427         * modules/vsnprintf-posix (Depends-on): Likewise.
49428         * modules/vsprintf-posix (Depends-on): Likewise.
49429         * doc/functions/fprintf.texi: Update.
49430         * doc/functions/printf.texi: Update.
49431         * doc/functions/snprintf.texi: Update.
49432         * doc/functions/sprintf.texi: Update.
49433         * doc/functions/vfprintf.texi: Update.
49434         * doc/functions/vprintf.texi: Update.
49435         * doc/functions/vsnprintf.texi: Update.
49436         * doc/functions/vsprintf.texi: Update.
49437
49438 2007-11-03  Bruno Haible  <bruno@clisp.org>
49439
49440         * modules/frexp-nolibm-tests: New file.
49441
49442         * modules/frexp-nolibm: New file.
49443         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
49444
49445 2007-11-03  Bruno Haible  <bruno@clisp.org>
49446
49447         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
49448         value is C99 compliant.
49449         Needed for OSF/1 5.1.
49450
49451 2007-11-03  Bruno Haible  <bruno@clisp.org>
49452
49453         Fix out-of-memory handling of vasnprintf.
49454         * lib/printf-parse.c: Include <errno.h>.
49455         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
49456         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
49457         is already set.
49458
49459 2007-11-02  Eric Blake  <ebb9@byu.net>
49460
49461         Fix tests on cygwin.
49462         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
49463
49464 2007-11-01  Bruno Haible  <bruno@clisp.org>
49465
49466         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
49467         warning.
49468         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
49469         needed for POSIX compatibility.
49470
49471 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
49472
49473         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
49474         for compatibility with GNU.
49475
49476 2007-11-01  Bruno Haible  <bruno@clisp.org>
49477
49478         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
49479         (putenv): Renamed from rpl_putenv. Change argument type from
49480         'const char *' to 'char *'.
49481         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
49482         of defining putenv in config.h, just set REPLACE_PUTENV.
49483         * modules/putenv (Depends-on): Add stdlib.
49484         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
49485         (Include): Use <stdlib.h>.
49486         * lib/stdlib.in.h (putenv): New declaration.
49487         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
49488         REPLACE_PUTENV.
49489         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
49490         REPLACE_PUTENV.
49491         Needed for MacOS X 10.5.0.
49492         Reported by Peter O'Gorman <peter@pogma.com>.
49493
49494 2007-11-01  Jim Meyering  <meyering@redhat.com>
49495
49496         Treat an empty date string exactly like "0".
49497         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
49498         if the remaining date string (to be parsed) is empty, use "0".
49499         Reported by Mischa Molhoek and discussed in this thread:
49500         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
49501
49502 2007-10-31  Bruno Haible  <bruno@clisp.org>
49503
49504         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
49505         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
49506         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
49507         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
49508         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
49509         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
49510
49511 2007-10-31  Bruno Haible  <bruno@clisp.org>
49512
49513         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
49514         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
49515         (AC_TYPE_LONG_LONG_INT): Use it.
49516         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
49517         it as well.
49518         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
49519         to m4/longlong.m4.
49520         * modules/stdint (Files): Remove m4/ulonglong.m4.
49521         * modules/strtoull (Files): Use m4/longlong.m4 instead of
49522         m4/ulonglong.m4.
49523         * modules/strtoumax (Files): Likewise.
49524
49525 2007-10-30  Bruno Haible  <bruno@clisp.org>
49526
49527         * modules/xvasprintf-posix: New file.
49528         Suggested by Eric Blake.
49529
49530 2007-10-30  Bruno Haible  <bruno@clisp.org>
49531
49532         * modules/xprintf-posix-tests: New file.
49533         * tests/test-xprintf-posix.sh: New file.
49534         * tests/test-xprintf-posix.c: New file.
49535         * tests/test-xfprintf-posix.c: New file.
49536
49537         * modules/xprintf-posix: New file.
49538
49539 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49540
49541         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
49542         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
49543         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
49544
49545 2007-10-29  Bruno Haible  <bruno@clisp.org>
49546
49547         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
49548         contain the special marker '_cv_'.
49549         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
49550         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
49551         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
49552         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
49553         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
49554         Reported by Ralf Wildenhues.
49555
49556 2007-10-29  Bruno Haible  <bruno@clisp.org>
49557
49558         * gnulib-tool (func_import): When --lgpl is not specified, set
49559         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
49560         GPLv3.
49561         Reported by Simon Josefsson.
49562
49563 2007-10-28  Bruno Haible  <bruno@clisp.org>
49564
49565         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
49566         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
49567         HAVE_DECL_ISFINITE.
49568         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
49569         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
49570         HAVE_DECL_ISFINITE.
49571
49572 2007-10-28  Bruno Haible  <bruno@clisp.org>
49573
49574         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
49575         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
49576
49577 2007-10-28  Bruno Haible  <bruno@clisp.org>
49578
49579         Fix link errors with Sun C 5.0 on Solaris 10.
49580         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
49581         function is declared but not present in the compiler's libm.
49582         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
49583         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
49584         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
49585         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
49586         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
49587         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
49588         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
49589         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
49590         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
49591         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
49592         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
49593         HAVE_DECL_FLOORL.
49594
49595 2007-10-28  Bruno Haible  <bruno@clisp.org>
49596
49597         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
49598         gl_FUNC_FLOORL. Cache the result.
49599         (gl_FUNC_FLOORL): Use it.
49600         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
49601         gl_FUNC_CEILL. Cache the result.
49602         (gl_FUNC_CEILL): Use it.
49603
49604         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
49605         gl_FUNC_FLOOR. Cache the result.
49606         (gl_FUNC_FLOOR): Use it.
49607         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
49608         gl_FUNC_CEIL. Cache the result.
49609         (gl_FUNC_CEIL): Use it.
49610
49611         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
49612         gl_FUNC_FLOORF. Cache the result.
49613         (gl_FUNC_FLOORF): Use it.
49614         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
49615         gl_FUNC_CEILF. Cache the result.
49616         (gl_FUNC_CEILF): Use it.
49617
49618 2007-10-28  Bruno Haible  <bruno@clisp.org>
49619
49620         * gnulib-tool: Allow specifying the LGPL version number through
49621         --lgpl=2 or --lgpl=3.
49622         (func_usage): Document --lgpl with argument.
49623         Handle --lgpl=... arguments.
49624         (func_import): Recognize also gl_LGPL calls with an argument. When
49625         --lgpl=2 is used and the module's license is just LGPL, report an
49626         error. Set sed_transform_lib_file according to the lgpl variable. In
49627         the generated files, use --lgpl or gl_LGPL invocations with argument,
49628         if necessary.
49629         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
49630         an LGPv2+ license.
49631         * doc/gnulib-tool.texi (Modified imports): Update explanation of
49632         gl_LGPL macro.
49633
49634 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49635             Bruno Haible  <bruno@clisp.org>
49636
49637         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
49638         (u16_uctomb_aux): Likewise.
49639         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
49640         !HAVE_INLINE.
49641         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
49642
49643 2007-10-28  Bruno Haible  <bruno@clisp.org>
49644
49645         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
49646         Invoke AM_GETTEXT_OPTION if it exists.
49647         * modules/vasprintf: Likewise.
49648         * modules/verror: Likewise.
49649         * modules/xprintf: Likewise.
49650         * modules/xvasprintf: Likewise.
49651
49652 2007-10-27  Ben Pfaff  <blp@gnu.org>
49653
49654         * lib/math.in.h: Define isfinite macro and prototypes for
49655         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
49656         implementations.
49657         * m4/math_h.m4: New substitutions for isfinite module.
49658         * lib/isfinite.c: New file.
49659         * m4/isfinite.m4: New file.
49660         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
49661         * modules/isfinite: New file.
49662         * modules/isfinite-tests: New file.
49663         * tests/tests-isfinite.c: New file.
49664         * doc/functions/isfinite.texi: Mention isfinite module.
49665         * MODULES.html.sh: Mention new module.
49666
49667 2007-10-27  Ben Pfaff  <blp@gnu.org>
49668
49669         Ralf Wildenhues reported that Tru64 4.0D declares the round
49670         functions but does not have definitions.
49671         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
49672         cannot be found in any library, set the output variable to
49673         "missing" instead of "".
49674         * m4/round.m4: Also use our substitute if we cannot find round in
49675         any library, even if it is declared.
49676         * m4/roundf.m4: Likewise for roundf.
49677         * m4/roundl.m4: Likewise for roundl.
49678         * lib/math.in.h: Undefine roundf, round, roundl before defining
49679         their replacements, to allow for hypothetical systems where these
49680         may be defined as macros but not available in libraries.
49681
49682 2007-10-27  Bruno Haible  <bruno@clisp.org>
49683
49684         * doc/gnulib.texi: Invoke @firstparagraphindent.
49685         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
49686         changes in gnulib.
49687         (Source changes): New section.
49688
49689 2007-10-26  Bruno Haible  <bruno@clisp.org>
49690
49691         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
49692         borrowed from autoconf.
49693
49694 2007-10-26  Bruno Haible  <bruno@clisp.org>
49695
49696         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
49697         strerror returned the empty string. Needed on HP-UX 11.00.
49698
49699 2007-10-24  Micah Cowan  <micah@cowan.name>
49700
49701         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
49702         * build-aux/bootstrap: Remove support for now-unnecessary option,
49703         --cvs-user, and envvars CVS_USER, CVS_RSH.
49704
49705 2007-10-24  Jim Meyering  <meyering@redhat.com>
49706
49707         Avoid diagnostics from sha1sum when there is no cached checksum.
49708         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
49709         if the po.s1 file hasn't been created yet.
49710
49711         * build-aux/bootstrap: Sync from coreutils:
49712         2007-10-24  Jim Meyering  <meyering@redhat.com>
49713         Get gnulib from the git repository, not from an obsolete cvs one.
49714         * build-aux/bootstrap: Suggestion from Micah Cowan.
49715         2007-10-04  Jim Meyering  <jim@meyering.net>
49716         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
49717         (update_po_files): Work also when there are no .po files in po/.
49718
49719 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
49720
49721         * README: Append ".git" to git and cg examples.
49722         Problem reported by Benoit Sigoure.
49723
49724 2007-10-23  Micah Cowan  <micah@cowan.name>
49725
49726         * users.txt: Add wget.
49727
49728 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49729
49730         Fix linking of some unistdio tests on FreeBSD.
49731         * modules/unistdio/u16-vsnprintf-tests
49732         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
49733         * modules/unistdio/u16-vsprintf-tests
49734         (test_u16_vsnprintf1_LDADD): Likewise.
49735         * modules/unistdio/u32-vsnprintf-tests
49736         (test_u32_vsnprintf1_LDADD): Likewise.
49737         * modules/unistdio/u32-vsprintf-tests
49738         (test_u32_vsprintf1_LDADD): Likewise.
49739         * modules/unistdio/u8-vsnprintf-tests
49740         (test_u8_vsnprintf1_LDADD): Likewise.
49741         * modules/unistdio/u8-vsprintf-tests
49742         (test_u8_vsprintf1_LDADD): Likewise.
49743         * modules/unistdio/ulc-vsnprintf-tests
49744         (test_ulc_vsnprintf1_LDADD): Likewise.
49745         * modules/unistdio/ulc-vsprintf-tests
49746         (test_ulc_vsprintf1_LDADD): Likewise.
49747
49748         Fix linking of some uniconv tests on FreeBSD.
49749         * modules/uniconv/u16-conv-from-enc-tests
49750         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
49751         * modules/uniconv/u16-conv-to-enc-tests
49752         (test_u16_conv_to_enc_LDADD): Likewise.
49753         * modules/uniconv/u16-strconv-from-enc-tests
49754         (test_u16_strconv_from_enc_LDADD): Likewise.
49755         * modules/uniconv/u16-strconv-to-enc-tests
49756         (test_u16_strconv_to_enc_LDADD): Likewise.
49757         * modules/uniconv/u32-conv-from-enc-tests
49758         (test_u32_conv_from_enc_LDADD): Likewise.
49759         * modules/uniconv/u32-conv-to-enc-tests
49760         (test_u32_conv_to_enc_LDADD): Likewise.
49761         * modules/uniconv/u32-strconv-from-enc-tests
49762         (test_u32_strconv_from_enc_LDADD): Likewise.
49763         * modules/uniconv/u32-strconv-to-enc-tests
49764         (test_u32_strconv_to_enc_LDADD): Likewise.
49765         * modules/uniconv/u8-conv-from-enc-tests
49766         (test_u8_conv_from_enc_LDADD): Likewise.
49767         * modules/uniconv/u8-conv-to-enc-tests
49768         (test_u8_conv_to_enc_LDADD): Likewise.
49769         * modules/uniconv/u8-strconv-from-enc-tests
49770         (test_u8_strconv_from_enc_LDADD): Likewise.
49771         * modules/uniconv/u8-strconv-to-enc-tests
49772         (test_u8_strconv_to_enc_LDADD): Likewise.
49773
49774 2007-10-22  Bruno Haible  <bruno@clisp.org>
49775
49776         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
49777         size.
49778
49779 2007-10-22  Eric Blake  <ebb9@byu.net>
49780
49781         Tweak x*printf documentation.
49782         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
49783         variable name and comments.
49784         Suggested by Bruno Haible.
49785
49786 2007-10-22  Bruno Haible  <bruno@clisp.org>
49787
49788         * lib/acl.c (copy_acl): Fix file name in comment.
49789
49790 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
49791
49792         Fix Tru64 problem with stdbool.h.
49793         * lib/stdbool.in.h (false, true):
49794         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
49795         Don't declare as an enum in this situation; it runs afoul of Tru64.
49796         Problem reported by Steven M. Schweda in
49797         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
49798
49799 2007-10-22  Eric Blake  <ebb9@byu.net>
49800
49801         Also wrap vf?printf.
49802         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
49803         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
49804         (xvprintf, xvfprintf): New functions.
49805
49806 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49807
49808         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
49809         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
49810
49811         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
49812         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
49813
49814 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
49815
49816         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
49817         by Bruno Haible.
49818
49819 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49820
49821         * lib/getloadavg.c
49822         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
49823         Undef `sys' after including sys/table.h, for Tru64 4.0D.
49824
49825         * tests/test-i-ring.c: Work for C89.
49826
49827 2007-10-22  Bruno Haible  <bruno@clisp.org>
49828
49829         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
49830         -1u, in preprocessor expression, so that we don't test for the bug
49831         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
49832         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
49833
49834 2007-10-22  Eric Blake  <ebb9@byu.net>
49835
49836         * tests/test-yesno.sh: Silence stderr during test.
49837
49838 2007-10-22  Simon Josefsson  <simon@josefsson.org>
49839
49840         * modules/crypto/gc-camellia: New file.
49841
49842         * m4/gc-camellia.m4: New file.
49843
49844         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
49845
49846         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
49847
49848 2007-10-22  Simon Josefsson  <simon@josefsson.org>
49849
49850         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
49851         --help to stdout.  Reported by sms@antinode.org (Steven
49852         M. Schweda).
49853
49854 2007-10-22  Simon Josefsson  <simon@josefsson.org>
49855
49856         * users.txt: Fix link to libksba.
49857
49858 2007-10-21  Ben Pfaff  <blp@gnu.org>
49859
49860         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
49861         round.c roundf implementation that depends on floorf and ceilf to
49862         be tested unconditionally.
49863
49864 2007-10-21  Ben Pfaff  <blp@gnu.org>
49865
49866         * m4/check-libm-func.m4: Removed.
49867         * m4/check-math-lib.m4: New file.
49868         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
49869         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
49870         definition and lack of AC_LIBOBJ([roundf]).
49871         * m4/roundl.m4: Ditto, and similarly for roundl.
49872         * modules/round: Reference new m4 file.
49873         * modules/roundf: Ditto.
49874         * modules/roundl: Ditto.
49875         * tests/test-round2.c (main): Use ROUND instead of round.
49876         Bug report from Bruno Haible.
49877
49878 2007-10-21  Bruno Haible  <bruno@clisp.org>
49879
49880         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
49881         context.
49882
49883 2007-10-21  Bruno Haible  <bruno@clisp.org>
49884
49885         * tests/test-wcwidth.c (main): Allow negative result for some control
49886         characters.
49887
49888         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
49889         Needed on OSF/1 5.1.
49890
49891 2007-10-21  Bruno Haible  <bruno@clisp.org>
49892
49893         * tests/test-floorf1.c: Include isnanf.h.
49894         (main): Use isnanf() instead of isnan().
49895         * tests/test-ceilf1.c: Include isnanf.h.
49896         (main): Use isnanf() instead of isnan().
49897         * tests/test-truncf1.c: Include isnanf.h.
49898         (main): Use isnanf() instead of isnan().
49899         * tests/test-roundf1.c: Include isnanf.h.
49900         (main): Use isnanf() instead of isnan().
49901
49902 2007-10-21  Eric Blake  <ebb9@byu.net>
49903
49904         * users.txt: Update URL for m4.
49905
49906 2007-10-21  Bruno Haible  <bruno@clisp.org>
49907
49908         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
49909
49910 2007-10-21  Bruno Haible  <bruno@clisp.org>
49911
49912         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
49913         Git's management files if the CVS files are not present.
49914
49915 2007-10-20  Bruno Haible  <bruno@clisp.org>
49916
49917         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
49918         gcc-3.4.x.
49919
49920 2007-10-20  Ben Pfaff  <blp@gnu.org>
49921
49922         * lib/math.in.h: Declare round, roundf, roundl if we are providing
49923         implementations.
49924         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
49925         * lib/round.c: New file.
49926         * lib/roundf.c: New file.
49927         * lib/roundl.c: New file.
49928         * m4/round.m4: New file.
49929         * m4/roundf.m4: New file.
49930         * m4/roundl.m4: New file.
49931         * m4/check-libm-func-m4: New file.
49932         * modules/math: Replace round, roundf, roundl related @VARS@ in
49933         math.in.h.
49934         * modules/round: New file.
49935         * modules/round-tests: New file.
49936         * modules/roundf: New file.
49937         * modules/roundf-tests: New file.
49938         * modules/roundl: New file.
49939         * modules/roundl-tests: New file.
49940         * tests/test-round1.c: New file.
49941         * tests/test-round2.c: New file.
49942         * tests/test-roundf1.c: New file.
49943         * tests/test-roundf2.c: New file.
49944         * tests/test-roundl.c: New file.
49945         * doc/functions/round.texi: Mention round module.
49946         * doc/functions/roundf.texi: Mention roundf module.
49947         * doc/functions/roundl.texi: Mention roundl module.
49948         * MODULES.html.sh: Mention new modules.
49949         Thanks to Bruno Haible for suggestions.
49950
49951 2007-10-20  Jim Meyering  <meyering@redhat.com>
49952
49953         * lib/xprintf.c: Include <config.h> unconditionally.
49954
49955         Change xprintf's license to GPL.
49956         * modules/xprintf (License): s/LGPL/GPL/, since this module
49957         depends on modules (exit and exitfail) which are GPL.
49958         Suggestion from Bruno Haible.
49959
49960         xprintf fixes.
49961         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
49962         Use a clearer diagnostic.
49963         Patch from Bruno Haible.
49964
49965 2007-10-20  Bruno Haible  <bruno@clisp.org>
49966
49967         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
49968         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
49969         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
49970
49971 2007-10-20  Bruno Haible  <bruno@clisp.org>
49972
49973         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
49974         precision in the comparison result > x - 1 or similar.
49975         * tests/test-ceilf2.c (correct_result_p): Likewise.
49976         * tests/test-truncf2.c (correct_result_p): Likewise.
49977         * tests/test-trunc2.c (correct_result_p): Likewise.
49978         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
49979
49980 2007-10-20  Bruno Haible  <bruno@clisp.org>
49981
49982         * modules/ceil: New file.
49983         * m4/ceil.m4: New file.
49984         * doc/functions/ceil.texi: Mention the 'ceil' module.
49985
49986 2007-10-20  Bruno Haible  <bruno@clisp.org>
49987
49988         * modules/floor: New file.
49989         * m4/floor.m4: New file.
49990         * doc/functions/floor.texi: Mention the 'floor' module.
49991
49992 2007-10-20  Bruno Haible  <bruno@clisp.org>
49993
49994         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
49995         of %a.
49996         * modules/floorf-tests (Depends-on): Likewise.
49997         * modules/truncf-tests (Depends-on): Likewise.
49998         * modules/trunc-tests (Depends-on): Likewise.
49999         Reported by Ben Pfaff.
50000
50001 2007-10-19  Jim Meyering  <meyering@redhat.com>
50002
50003         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
50004         Don't bother testing specific errno values.  Just test ferror.
50005
50006         New module: xprintf
50007         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
50008
50009 2007-10-19  Bruno Haible  <bruno@clisp.org>
50010
50011         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
50012         syntax.
50013         * modules/javaexec (Makefile.am): Likewise.
50014         * modules/relocatable-prog (Makefile.am): Likewise.
50015         Suggested by Jim Meyering.
50016
50017 2007-10-18  Bruno Haible  <bruno@clisp.org>
50018
50019         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
50020         Reported by Jim Meyering.
50021
50022 2007-10-18  Eric Blake  <ebb9@byu.net>
50023
50024         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
50025
50026 2007-10-18  Bruno Haible  <bruno@clisp.org>
50027
50028         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
50029         the format string into writable memory. Needed in Fortify conditions.
50030
50031 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
50032             Bruno Haible  <bruno@clisp.org>
50033
50034         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
50035         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
50036         * modules/trim (Depends-on): Add mbchar.
50037         (configure.ac): Add gl_FUNC_MBRTOWC.
50038         (Makefile.am): Augment lib_SOURCES.
50039
50040 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
50041
50042         Modify glob.c to use fstatat and dirfd, to simplify it.
50043         Suggested by Eric Blake.
50044         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
50045         Don't include <stdbool.h>; not used.
50046         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
50047         (link_exists_p): Simplify implementation, since we can now assume
50048         dirfd and fstatat.
50049         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
50050
50051 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50052
50053         * gnulib-tool (func_get_dependencies): Fix sed script to
50054         match only tests.
50055
50056 2007-10-17  Bruno Haible  <bruno@clisp.org>
50057
50058         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
50059         allow locale names without encoding suffix.
50060         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
50061         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
50062
50063 2007-10-16  Bruno Haible  <bruno@clisp.org>
50064
50065         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
50066         * lib/getgroups.c (getgroups): Likewise.
50067         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
50068
50069 2007-10-16  Bruno Haible  <bruno@clisp.org>
50070
50071         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
50072         * modules/malloc-posix (License): Likewise.
50073         * modules/realloc-posix (License): Likewise.
50074         * modules/calloc-posix (License): Likewise.
50075         * modules/intprops (License): Change from GPL to LGPL, with
50076         Paul Eggert's approval.
50077
50078 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
50079
50080         Merge glibc changes into lib/glob.c.
50081
50082         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
50083         2007-10-15 04:59:03 UTC.  Here are the changes:
50084
50085         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
50086
50087         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
50088
50089         * lib/glob.c: Add some branch prediction throughout.
50090
50091         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
50092
50093         [BZ #5103]
50094         * lib/glob.c (glob): Recognize patterns starting \/.
50095
50096         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
50097
50098         [BZ #3996]
50099         * lib/glob.c (attribute_hidden): Define if not defined.
50100         (glob): Unescape dirname, filename or username when needed and not
50101         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
50102         is NULL.  Handle unescaped [ in pattern without closing ].
50103         Don't pass GLOB_CHECK down to recursive glob for directories.
50104         (__glob_pattern_type): New function.
50105         (__glob_pattern_p): Implement using __glob_pattern_type.
50106         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
50107         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
50108         Remove unreachable code.
50109
50110         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
50111
50112         * lib/glob.c (glob_in_dir): Add some comments and asserts to
50113         explain why there are no leaks.
50114
50115         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
50116
50117         [BZ #3253]
50118         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
50119         time, rather allocate increasingly bigger arrays of pointers, if
50120         possible with alloca, if too large with malloc.
50121
50122 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
50123
50124         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
50125         Problem reported by H.Merijn Brand in
50126         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
50127         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
50128         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
50129
50130 2007-10-15  Bruno Haible  <bruno@clisp.org>
50131
50132         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
50133         with explicit rpl_ prefix.
50134         * lib/fopen.c (fopen): Likewise.
50135         * lib/freopen.c (freopen): Likewise.
50136         * lib/iconv.c (iconv): Likewise.
50137         * lib/iconv_close.c (iconv_close): Likewise.
50138
50139 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50140
50141         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
50142
50143 2007-10-15  Bruno Haible  <bruno@clisp.org>
50144
50145         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
50146         <stddef.h> instead of <stdlib.h> since we only need NULL.
50147         Reported by Ben Pfaff <blp@cs.stanford.edu>.
50148
50149 2007-10-15  Bruno Haible  <bruno@clisp.org>
50150
50151         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
50152         Replace paragraph talking about LIBOBJS.
50153         Reported by Colin Watson <cjwatson@debian.org>.
50154
50155 2007-10-15  Bruno Haible  <bruno@clisp.org>
50156
50157         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
50158         <stdlib.h> before using NULL.
50159
50160 2007-10-15  Simon Josefsson  <simon@josefsson.org>
50161
50162         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
50163         Reported by Albert Chin <china@thewrittenword.com>.
50164
50165 2007-10-14  Bruno Haible  <bruno@clisp.org>
50166
50167         * modules/iconv_open-utf-tests: New file.
50168         * tests/test-iconv-utf.c: New file.
50169
50170         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
50171         * modules/iconv_open-utf: New file.
50172         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
50173         (iconv, iconv_close): New declarations.
50174         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
50175         be defined.
50176         (iconv_open): Add special handling of conversion between UTF-8 and
50177         UTF-{16,32}{BE,LE}.
50178         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
50179         * lib/iconv_close.c: New file.
50180         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
50181         gl_FUNC_ICONV_OPEN.
50182         (gl_FUNC_ICONV_OPEN): Use it.
50183         (gl_FUNC_ICONV_OPEN_UTF): New macro.
50184         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
50185         and REPLACE_ICONV_UTF.
50186         * modules/iconv_open (Depends-on): Add c-strcase.
50187         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
50188         ICONV_CONST.
50189         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
50190
50191 2007-10-13  Albert Chin  <china@thewrittenword.com>
50192             Bruno Haible  <bruno@clisp.org>
50193
50194         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
50195         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
50196
50197 2007-10-13  Bruno Haible  <bruno@clisp.org>
50198
50199         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
50200         defined, use the ISO C99 inline semantics.
50201         * lib/argp.h (ARGP_EI): Likewise.
50202
50203 2007-10-13  Bruno Haible  <bruno@clisp.org>
50204
50205         Handle 'inline' change in gcc 4.3.0.
50206         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
50207         argp_fmtstream_write, argp_fmtstream_set_lmargin,
50208         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
50209         argp_fmtstream_point): Disable 'extern' declaration if the function
50210         definition is going to be provided inline.
50211         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
50212         semantics, not the ISO C99 inline semantics.
50213         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
50214         'extern' declaration if the function definition is going to be provided
50215         inline.
50216         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
50217         the GNU C inline semantics, not the ISO C99 inline semantics. With
50218         GCC 4.2, avoid a warning.
50219
50220 2007-10-13  Bruno Haible  <bruno@clisp.org>
50221
50222         * lib/freading.h (freading): Enable the use of __freading for
50223         glibc >= 2.7.
50224         * lib/freading.c (freading): Likewise.
50225
50226 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
50227
50228         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
50229         "warning: C99 inline functions are not supported; using GNU89".
50230
50231 2007-10-12  Bruno Haible  <bruno@clisp.org>
50232
50233         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
50234         of 2.
50235         * tests/test-ceilf2.c: New file.
50236         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
50237
50238         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
50239         * modules/ceilf-tests: Update.
50240
50241 2007-10-12  Bruno Haible  <bruno@clisp.org>
50242
50243         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
50244         of 2.
50245         * tests/test-floorf2.c: New file.
50246         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
50247
50248         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
50249         * modules/floorf-tests: Update.
50250
50251 2007-10-12  Bruno Haible  <bruno@clisp.org>
50252
50253         * tests/test-trunc2.c: New file.
50254         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
50255
50256         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
50257         * modules/trunc-tests: Update.
50258
50259 2007-10-12  Bruno Haible  <bruno@clisp.org>
50260
50261         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
50262         of 2.
50263         * tests/test-truncf2.c: New file.
50264         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
50265
50266         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
50267         * modules/truncf-tests: Update.
50268
50269 2007-10-11  Eric Blake  <ebb9@byu.net>
50270
50271         Don't claim strerror is broken on Interix.
50272         * doc/functions/strerror.texi (strerror): Known broken systems are
50273         now Solaris 8, and not Interix.
50274         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
50275         Interix on cross-compile.
50276         Reported by Martin Koeppe in
50277         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
50278
50279 2007-10-11  Bruno Haible  <bruno@clisp.org>
50280
50281         * modules/i-ring-tests: New file.
50282         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
50283         instead of assert.
50284
50285 2007-10-11  Bruno Haible  <bruno@clisp.org>
50286
50287         * modules/filenamecat-tests: New file.
50288         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
50289         * lib/filenamecat.c: Remove test code.
50290
50291 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
50292
50293         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
50294
50295         * lib/strerror.c: Include <string.h> always, to test interface,
50296         and to remove the need for the dummy.
50297         Include intprops.h to compute width instead of doing it ourselves
50298         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
50299         (strerror): Define it to return NULL if there's no system strerror.
50300         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
50301         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
50302         ancient pre-strerror Unix systems well any more.  Saying "unknown
50303         system error" is enough.
50304         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
50305         simpler strerror.c implementation.
50306         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
50307         Simplify the tests to reflect the simpler strerror implementation.
50308         * modules/strerror (Depends-on): Add intprops.
50309
50310 2007-10-09  Eric Blake  <ebb9@byu.net>
50311
50312         Silence test-fpending.
50313         * modules/fpending-tests (Files): Add wrapper script.
50314         * tests/test-fpending.sh: New file.
50315
50316 2007-10-09  Bruno Haible  <bruno@clisp.org>
50317
50318         * MODULES.html.sh (func_module): Don't create a hyperlink for
50319         function names like 'printf_frexp'.
50320         (Misc): Add crc, memxor.
50321         (Characteristics of floating types): New section.
50322         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
50323         isnanf-nolibm, signbit, trunc, truncf, truncl.
50324         (Enhancements for ISO C 99 functions): New subsection Input/output.
50325         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
50326         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
50327         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
50328         (Compatibility checks for POSIX:2001 functions): Add clock-time.
50329         (Enhancements for POSIX:2001 functions): Add chdir-long.
50330         (File system functions): Add areadlink, chdir-safer, read-file.
50331         Remove cycle-check.
50332         (File system as inode set): New section.
50333         (Date and time): Add gethrxtime.
50334         (Multithreading): Add openmp.
50335         (Internationalization functions): Add localename.
50336         (Unicode string functions): Add unistr/u*-mbsnlen.
50337         (Support for maintaining and releasing projects): Add git-version-gen.
50338         (Lone files): Remove directories.
50339
50340 2007-10-08  Ben Pfaff  <blp@gnu.org>
50341
50342         * lib/xmalloca.h: Fix typo in comment.
50343
50344 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
50345
50346         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
50347         when avoiding problems with integer overflow.  Use a portable test
50348         instead.
50349
50350 2007-10-08  Simon Josefsson  <simon@josefsson.org>
50351
50352         * modules/dummy (License): Change to LGPLv2+.
50353         * modules/float (License): Likewise
50354         * modules/realloc (License): Likewise
50355         * modules/stdlib (License): Likewise
50356
50357 2007-10-07  Bruno Haible  <bruno@clisp.org>
50358
50359         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
50360         * floor.c (TWO_MANT_DIG): Likewise.
50361         * ceil.c (TWO_MANT_DIG): Likewise.
50362         Reported by Ben Pfaff.
50363
50364 2007-10-07  Bruno Haible  <bruno@clisp.org>
50365
50366         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
50367         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
50368         * lib/frexp.c (FUNC): Likewise.
50369         * lib/printf-frexp.h (printf_frexp): Likewise.
50370         * lib/printf-frexpl.h (printf_frexpl): Likewise.
50371         * lib/printf-frexp.c (FUNC): Likewise.
50372         Suggested by Jim Meyering.
50373
50374 2007-10-07  Jim Meyering  <meyering@redhat.com>
50375
50376         Make xnanosleep's integer overflow test more robust.
50377         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
50378         so that gcc-4.3.0 doesn't optimize away this test for overflow.
50379
50380 2007-10-07  Bruno Haible  <bruno@clisp.org>
50381
50382         * NEWS: Mention the license change.
50383
50384         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
50385         abbreviations in the modules files.
50386
50387         Change copyright notice from GPLv2+ to GPLv3+.
50388         * README: Change copyright notice.
50389         * MODULES.html.sh: Likewise.
50390         * build-aux/bootstrap.conf: Likewise.
50391         * build-aux/config.libpath: Likewise.
50392         * build-aux/csharpcomp.sh.in: Likewise.
50393         * build-aux/csharpexec.sh.in: Likewise.
50394         * build-aux/install-reloc: Likewise.
50395         * build-aux/javacomp.sh.in: Likewise.
50396         * build-aux/javaexec.sh.in: Likewise.
50397         * build-aux/ldd.sh.in: Likewise.
50398         * build-aux/reloc-ldflags: Likewise.
50399         * build-aux/relocatable.sh.in: Likewise.
50400         * build-aux/x-to-1.in: Likewise.
50401         * check-module: Likewise.
50402         * config/srclistvars.sh: Likewise.
50403         * gnulib-tool: Likewise.
50404         * lib/acl-internal.h: Likewise.
50405         * lib/acl.c: Likewise.
50406         * lib/acl.h: Likewise.
50407         * lib/acl_entries.c: Likewise.
50408         * lib/areadlink-with-size.c: Likewise.
50409         * lib/areadlink.c: Likewise.
50410         * lib/areadlink.h: Likewise.
50411         * lib/argmatch.c: Likewise.
50412         * lib/argmatch.h: Likewise.
50413         * lib/argp-ba.c: Likewise.
50414         * lib/argp-eexst.c: Likewise.
50415         * lib/argp-fmtstream.c: Likewise.
50416         * lib/argp-fmtstream.h: Likewise.
50417         * lib/argp-fs-xinl.c: Likewise.
50418         * lib/argp-help.c: Likewise.
50419         * lib/argp-namefrob.h: Likewise.
50420         * lib/argp-parse.c: Likewise.
50421         * lib/argp-pin.c: Likewise.
50422         * lib/argp-pv.c: Likewise.
50423         * lib/argp-pvh.c: Likewise.
50424         * lib/argp-xinl.c: Likewise.
50425         * lib/argp.h: Likewise.
50426         * lib/at-func.c: Likewise.
50427         * lib/atanl.c: Likewise.
50428         * lib/backupfile.c: Likewise.
50429         * lib/backupfile.h: Likewise.
50430         * lib/basename.c: Likewise.
50431         * lib/binary-io.h: Likewise.
50432         * lib/byteswap.in.h: Likewise.
50433         * lib/c-stack.c: Likewise.
50434         * lib/c-stack.h: Likewise.
50435         * lib/c-strcasestr.c: Likewise.
50436         * lib/c-strcasestr.h: Likewise.
50437         * lib/c-strstr.c: Likewise.
50438         * lib/c-strstr.h: Likewise.
50439         * lib/c-strtod.c: Likewise.
50440         * lib/calloc.c: Likewise.
50441         * lib/canon-host.c: Likewise.
50442         * lib/canon-host.h: Likewise.
50443         * lib/canonicalize-lgpl.c: Likewise.
50444         * lib/canonicalize.c: Likewise.
50445         * lib/canonicalize.h: Likewise.
50446         * lib/ceil.c: Likewise.
50447         * lib/ceilf.c: Likewise.
50448         * lib/ceill.c: Likewise.
50449         * lib/chdir-long.c: Likewise.
50450         * lib/chdir-long.h: Likewise.
50451         * lib/chdir-safer.c: Likewise.
50452         * lib/chdir-safer.h: Likewise.
50453         * lib/chown.c: Likewise.
50454         * lib/classpath.c: Likewise.
50455         * lib/classpath.h: Likewise.
50456         * lib/clean-temp.c: Likewise.
50457         * lib/clean-temp.h: Likewise.
50458         * lib/cloexec.c: Likewise.
50459         * lib/close-stream.c: Likewise.
50460         * lib/closein.c: Likewise.
50461         * lib/closein.h: Likewise.
50462         * lib/closeout.c: Likewise.
50463         * lib/closeout.h: Likewise.
50464         * lib/concat-filename.c: Likewise.
50465         * lib/copy-file.c: Likewise.
50466         * lib/copy-file.h: Likewise.
50467         * lib/count-one-bits.h: Likewise.
50468         * lib/crc.c: Likewise.
50469         * lib/crc.h: Likewise.
50470         * lib/creat-safer.c: Likewise.
50471         * lib/csharpcomp.c: Likewise.
50472         * lib/csharpcomp.h: Likewise.
50473         * lib/csharpexec.c: Likewise.
50474         * lib/csharpexec.h: Likewise.
50475         * lib/cycle-check.c: Likewise.
50476         * lib/cycle-check.h: Likewise.
50477         * lib/diacrit.c: Likewise.
50478         * lib/diacrit.h: Likewise.
50479         * lib/diffseq.h: Likewise.
50480         * lib/dirchownmod.c: Likewise.
50481         * lib/dirent.in.h: Likewise.
50482         * lib/dirfd.c: Likewise.
50483         * lib/dirfd.h: Likewise.
50484         * lib/dirname.c: Likewise.
50485         * lib/dirname.h: Likewise.
50486         * lib/dummy.c: Likewise.
50487         * lib/dup-safer.c: Likewise.
50488         * lib/dup2.c: Likewise.
50489         * lib/eealloc.h: Likewise.
50490         * lib/error.c: Likewise.
50491         * lib/error.h: Likewise.
50492         * lib/euidaccess.c: Likewise.
50493         * lib/exclude.c: Likewise.
50494         * lib/exclude.h: Likewise.
50495         * lib/execute.c: Likewise.
50496         * lib/execute.h: Likewise.
50497         * lib/exitfail.c: Likewise.
50498         * lib/exitfail.h: Likewise.
50499         * lib/expl.c: Likewise.
50500         * lib/fatal-signal.c: Likewise.
50501         * lib/fatal-signal.h: Likewise.
50502         * lib/fbufmode.c: Likewise.
50503         * lib/fbufmode.h: Likewise.
50504         * lib/fchdir.c: Likewise.
50505         * lib/fchmodat.c: Likewise.
50506         * lib/fchownat.c: Likewise.
50507         * lib/fcntl--.h: Likewise.
50508         * lib/fcntl-safer.h: Likewise.
50509         * lib/fcntl.in.h: Likewise.
50510         * lib/fd-safer.c: Likewise.
50511         * lib/fflush.c: Likewise.
50512         * lib/file-has-acl.c: Likewise.
50513         * lib/file-set.c: Likewise.
50514         * lib/file-type.c: Likewise.
50515         * lib/file-type.h: Likewise.
50516         * lib/fileblocks.c: Likewise.
50517         * lib/filemode.c: Likewise.
50518         * lib/filemode.h: Likewise.
50519         * lib/filename.h: Likewise.
50520         * lib/filenamecat.c: Likewise.
50521         * lib/filenamecat.h: Likewise.
50522         * lib/findprog.c: Likewise.
50523         * lib/findprog.h: Likewise.
50524         * lib/float.in.h: Likewise.
50525         * lib/floor.c: Likewise.
50526         * lib/floorf.c: Likewise.
50527         * lib/floorl.c: Likewise.
50528         * lib/fopen-safer.c: Likewise.
50529         * lib/fopen.c: Likewise.
50530         * lib/fpending.c: Likewise.
50531         * lib/fpending.h: Likewise.
50532         * lib/fprintf.c: Likewise.
50533         * lib/fprintftime.h: Likewise.
50534         * lib/fpucw.h: Likewise.
50535         * lib/fpurge.c: Likewise.
50536         * lib/fpurge.h: Likewise.
50537         * lib/freadable.c: Likewise.
50538         * lib/freadable.h: Likewise.
50539         * lib/freadahead.c: Likewise.
50540         * lib/freadahead.h: Likewise.
50541         * lib/freading.c: Likewise.
50542         * lib/freading.h: Likewise.
50543         * lib/free.c: Likewise.
50544         * lib/freopen.c: Likewise.
50545         * lib/frexp.c: Likewise.
50546         * lib/frexpl.c: Likewise.
50547         * lib/fseek.c: Likewise.
50548         * lib/fseterr.c: Likewise.
50549         * lib/fseterr.h: Likewise.
50550         * lib/fstatat.c: Likewise.
50551         * lib/fstrcmp.c: Likewise.
50552         * lib/fstrcmp.h: Likewise.
50553         * lib/fsusage.c: Likewise.
50554         * lib/fsusage.h: Likewise.
50555         * lib/ftell.c: Likewise.
50556         * lib/ftello.c: Likewise.
50557         * lib/fts-cycle.c: Likewise.
50558         * lib/fts.c: Likewise.
50559         * lib/fts_.h: Likewise.
50560         * lib/full-read.c: Likewise.
50561         * lib/full-read.h: Likewise.
50562         * lib/full-write.c: Likewise.
50563         * lib/full-write.h: Likewise.
50564         * lib/fwritable.c: Likewise.
50565         * lib/fwritable.h: Likewise.
50566         * lib/fwriteerror.c: Likewise.
50567         * lib/fwriteerror.h: Likewise.
50568         * lib/fwriting.c: Likewise.
50569         * lib/fwriting.h: Likewise.
50570         * lib/gcd.c: Likewise.
50571         * lib/gcd.h: Likewise.
50572         * lib/getcwd.c: Likewise.
50573         * lib/getdate.h: Likewise.
50574         * lib/getdate.y: Likewise.
50575         * lib/getdomainname.c: Likewise.
50576         * lib/getdomainname.h: Likewise.
50577         * lib/getgroups.c: Likewise.
50578         * lib/gethostname.c: Likewise.
50579         * lib/gethrxtime.c: Likewise.
50580         * lib/gethrxtime.h: Likewise.
50581         * lib/getloadavg.c: Likewise.
50582         * lib/getndelim2.c: Likewise.
50583         * lib/getndelim2.h: Likewise.
50584         * lib/getnline.c: Likewise.
50585         * lib/getnline.h: Likewise.
50586         * lib/getopt.c: Likewise.
50587         * lib/getopt.in.h: Likewise.
50588         * lib/getopt1.c: Likewise.
50589         * lib/getopt_int.h: Likewise.
50590         * lib/getpagesize.h: Likewise.
50591         * lib/getsubopt.c: Likewise.
50592         * lib/gettime.c: Likewise.
50593         * lib/getugroups.c: Likewise.
50594         * lib/getugroups.h: Likewise.
50595         * lib/getusershell.c: Likewise.
50596         * lib/gl_anyavltree_list1.h: Likewise.
50597         * lib/gl_anyavltree_list2.h: Likewise.
50598         * lib/gl_anyhash_list1.h: Likewise.
50599         * lib/gl_anyhash_list2.h: Likewise.
50600         * lib/gl_anylinked_list1.h: Likewise.
50601         * lib/gl_anylinked_list2.h: Likewise.
50602         * lib/gl_anyrbtree_list1.h: Likewise.
50603         * lib/gl_anyrbtree_list2.h: Likewise.
50604         * lib/gl_anytree_list1.h: Likewise.
50605         * lib/gl_anytree_list2.h: Likewise.
50606         * lib/gl_anytree_oset.h: Likewise.
50607         * lib/gl_anytreehash_list1.h: Likewise.
50608         * lib/gl_anytreehash_list2.h: Likewise.
50609         * lib/gl_array_list.c: Likewise.
50610         * lib/gl_array_list.h: Likewise.
50611         * lib/gl_array_oset.c: Likewise.
50612         * lib/gl_array_oset.h: Likewise.
50613         * lib/gl_avltree_list.c: Likewise.
50614         * lib/gl_avltree_list.h: Likewise.
50615         * lib/gl_avltree_oset.c: Likewise.
50616         * lib/gl_avltree_oset.h: Likewise.
50617         * lib/gl_avltreehash_list.c: Likewise.
50618         * lib/gl_avltreehash_list.h: Likewise.
50619         * lib/gl_carray_list.c: Likewise.
50620         * lib/gl_carray_list.h: Likewise.
50621         * lib/gl_linked_list.c: Likewise.
50622         * lib/gl_linked_list.h: Likewise.
50623         * lib/gl_linkedhash_list.c: Likewise.
50624         * lib/gl_linkedhash_list.h: Likewise.
50625         * lib/gl_list.c: Likewise.
50626         * lib/gl_list.h: Likewise.
50627         * lib/gl_oset.c: Likewise.
50628         * lib/gl_oset.h: Likewise.
50629         * lib/gl_rbtree_list.c: Likewise.
50630         * lib/gl_rbtree_list.h: Likewise.
50631         * lib/gl_rbtree_oset.c: Likewise.
50632         * lib/gl_rbtree_oset.h: Likewise.
50633         * lib/gl_rbtreehash_list.c: Likewise.
50634         * lib/gl_rbtreehash_list.h: Likewise.
50635         * lib/gl_sublist.c: Likewise.
50636         * lib/gl_sublist.h: Likewise.
50637         * lib/group-member.c: Likewise.
50638         * lib/group-member.h: Likewise.
50639         * lib/hard-locale.c: Likewise.
50640         * lib/hard-locale.h: Likewise.
50641         * lib/hash-pjw.c: Likewise.
50642         * lib/hash-pjw.h: Likewise.
50643         * lib/hash-triple.c: Likewise.
50644         * lib/hash.c: Likewise.
50645         * lib/hash.h: Likewise.
50646         * lib/human.c: Likewise.
50647         * lib/human.h: Likewise.
50648         * lib/i-ring.c: Likewise.
50649         * lib/i-ring.h: Likewise.
50650         * lib/idcache.c: Likewise.
50651         * lib/imaxabs.c: Likewise.
50652         * lib/imaxdiv.c: Likewise.
50653         * lib/inet_pton.c: Likewise.
50654         * lib/inet_pton.h: Likewise.
50655         * lib/intprops.h: Likewise.
50656         * lib/inttostr.c: Likewise.
50657         * lib/inttostr.h: Likewise.
50658         * lib/inttypes.in.h: Likewise.
50659         * lib/isapipe.c: Likewise.
50660         * lib/isdir.c: Likewise.
50661         * lib/isnan.c: Likewise.
50662         * lib/isnan.h: Likewise.
50663         * lib/isnanf.c: Likewise.
50664         * lib/isnanf.h: Likewise.
50665         * lib/isnanl-nolibm.h: Likewise.
50666         * lib/isnanl.c: Likewise.
50667         * lib/isnanl.h: Likewise.
50668         * lib/javacomp.c: Likewise.
50669         * lib/javacomp.h: Likewise.
50670         * lib/javaexec.c: Likewise.
50671         * lib/javaexec.h: Likewise.
50672         * lib/javaversion.c: Likewise.
50673         * lib/javaversion.h: Likewise.
50674         * lib/javaversion.java: Likewise.
50675         * lib/lbrkprop.h: Likewise.
50676         * lib/lchmod.h: Likewise.
50677         * lib/lchown.c: Likewise.
50678         * lib/ldexpl.c: Likewise.
50679         * lib/linebreak.c: Likewise.
50680         * lib/linebreak.h: Likewise.
50681         * lib/linebuffer.c: Likewise.
50682         * lib/linebuffer.h: Likewise.
50683         * lib/locale.in.h: Likewise.
50684         * lib/logl.c: Likewise.
50685         * lib/long-options.c: Likewise.
50686         * lib/long-options.h: Likewise.
50687         * lib/lstat.c: Likewise.
50688         * lib/lstat.h: Likewise.
50689         * lib/math.in.h: Likewise.
50690         * lib/mbchar.c: Likewise.
50691         * lib/mbchar.h: Likewise.
50692         * lib/mbfile.h: Likewise.
50693         * lib/mbiter.h: Likewise.
50694         * lib/mbscasecmp.c: Likewise.
50695         * lib/mbscasestr.c: Likewise.
50696         * lib/mbschr.c: Likewise.
50697         * lib/mbscspn.c: Likewise.
50698         * lib/mbslen.c: Likewise.
50699         * lib/mbsncasecmp.c: Likewise.
50700         * lib/mbsnlen.c: Likewise.
50701         * lib/mbspbrk.c: Likewise.
50702         * lib/mbspcasecmp.c: Likewise.
50703         * lib/mbsrchr.c: Likewise.
50704         * lib/mbssep.c: Likewise.
50705         * lib/mbsspn.c: Likewise.
50706         * lib/mbsstr.c: Likewise.
50707         * lib/mbstok_r.c: Likewise.
50708         * lib/mbswidth.c: Likewise.
50709         * lib/mbswidth.h: Likewise.
50710         * lib/mbuiter.h: Likewise.
50711         * lib/memcasecmp.c: Likewise.
50712         * lib/memcasecmp.h: Likewise.
50713         * lib/memchr.c: Likewise.
50714         * lib/memcmp.c: Likewise.
50715         * lib/memcoll.c: Likewise.
50716         * lib/memcoll.h: Likewise.
50717         * lib/memcpy.c: Likewise.
50718         * lib/memrchr.c: Likewise.
50719         * lib/mkancesdirs.c: Likewise.
50720         * lib/mkdir-p.c: Likewise.
50721         * lib/mkdir-p.h: Likewise.
50722         * lib/mkdir.c: Likewise.
50723         * lib/mkdirat.c: Likewise.
50724         * lib/mkdtemp.c: Likewise.
50725         * lib/mkstemp-safer.c: Likewise.
50726         * lib/mkstemp.c: Likewise.
50727         * lib/modechange.c: Likewise.
50728         * lib/modechange.h: Likewise.
50729         * lib/mountlist.c: Likewise.
50730         * lib/mountlist.h: Likewise.
50731         * lib/mpsort.c: Likewise.
50732         * lib/nanosleep.c: Likewise.
50733         * lib/obstack.c: Likewise.
50734         * lib/obstack.h: Likewise.
50735         * lib/open-safer.c: Likewise.
50736         * lib/open.c: Likewise.
50737         * lib/openat-die.c: Likewise.
50738         * lib/openat-priv.h: Likewise.
50739         * lib/openat-proc.c: Likewise.
50740         * lib/openat.c: Likewise.
50741         * lib/openat.h: Likewise.
50742         * lib/pagealign_alloc.c: Likewise.
50743         * lib/pagealign_alloc.h: Likewise.
50744         * lib/physmem.c: Likewise.
50745         * lib/physmem.h: Likewise.
50746         * lib/pipe-safer.c: Likewise.
50747         * lib/pipe.c: Likewise.
50748         * lib/pipe.h: Likewise.
50749         * lib/posixtm.c: Likewise.
50750         * lib/posixtm.h: Likewise.
50751         * lib/posixver.c: Likewise.
50752         * lib/printf-frexp.c: Likewise.
50753         * lib/printf-frexp.h: Likewise.
50754         * lib/printf-frexpl.c: Likewise.
50755         * lib/printf-frexpl.h: Likewise.
50756         * lib/printf.c: Likewise.
50757         * lib/progname.c: Likewise.
50758         * lib/progname.h: Likewise.
50759         * lib/progreloc.c: Likewise.
50760         * lib/putenv.c: Likewise.
50761         * lib/quote.c: Likewise.
50762         * lib/quote.h: Likewise.
50763         * lib/quotearg.c: Likewise.
50764         * lib/quotearg.h: Likewise.
50765         * lib/raise.c: Likewise.
50766         * lib/readline.c: Likewise.
50767         * lib/readline.h: Likewise.
50768         * lib/readlink.c: Likewise.
50769         * lib/readtokens.c: Likewise.
50770         * lib/readtokens.h: Likewise.
50771         * lib/readtokens0.c: Likewise.
50772         * lib/readtokens0.h: Likewise.
50773         * lib/readutmp.c: Likewise.
50774         * lib/readutmp.h: Likewise.
50775         * lib/realloc.c: Likewise.
50776         * lib/relocwrapper.c: Likewise.
50777         * lib/rename-dest-slash.c: Likewise.
50778         * lib/rename.c: Likewise.
50779         * lib/rmdir.c: Likewise.
50780         * lib/rpmatch.c: Likewise.
50781         * lib/safe-read.c: Likewise.
50782         * lib/safe-read.h: Likewise.
50783         * lib/safe-write.c: Likewise.
50784         * lib/safe-write.h: Likewise.
50785         * lib/same-inode.h: Likewise.
50786         * lib/same.c: Likewise.
50787         * lib/same.h: Likewise.
50788         * lib/save-cwd.c: Likewise.
50789         * lib/save-cwd.h: Likewise.
50790         * lib/savedir.c: Likewise.
50791         * lib/savedir.h: Likewise.
50792         * lib/savewd.c: Likewise.
50793         * lib/savewd.h: Likewise.
50794         * lib/search.in.h: Likewise.
50795         * lib/setenv.c: Likewise.
50796         * lib/setenv.h: Likewise.
50797         * lib/settime.c: Likewise.
50798         * lib/sh-quote.c: Likewise.
50799         * lib/sh-quote.h: Likewise.
50800         * lib/sig2str.c: Likewise.
50801         * lib/sig2str.h: Likewise.
50802         * lib/signal.in.h: Likewise.
50803         * lib/signbitd.c: Likewise.
50804         * lib/signbitf.c: Likewise.
50805         * lib/signbitl.c: Likewise.
50806         * lib/sigprocmask.c: Likewise.
50807         * lib/sincosl.c: Likewise.
50808         * lib/sleep.c: Likewise.
50809         * lib/sprintf.c: Likewise.
50810         * lib/sqrtl.c: Likewise.
50811         * lib/stat-time.h: Likewise.
50812         * lib/stdio--.h: Likewise.
50813         * lib/stdio-safer.h: Likewise.
50814         * lib/stdlib--.h: Likewise.
50815         * lib/stdlib-safer.h: Likewise.
50816         * lib/stdlib.in.h: Likewise.
50817         * lib/stpcpy.c: Likewise.
50818         * lib/stpncpy.c: Likewise.
50819         * lib/strchrnul.c: Likewise.
50820         * lib/strcspn.c: Likewise.
50821         * lib/strerror.c: Likewise.
50822         * lib/strftime.c: Likewise.
50823         * lib/strftime.h: Likewise.
50824         * lib/striconveh.c: Likewise.
50825         * lib/striconveh.h: Likewise.
50826         * lib/striconveha.c: Likewise.
50827         * lib/striconveha.h: Likewise.
50828         * lib/stripslash.c: Likewise.
50829         * lib/strnlen1.c: Likewise.
50830         * lib/strnlen1.h: Likewise.
50831         * lib/strtod.c: Likewise.
50832         * lib/strtoimax.c: Likewise.
50833         * lib/strtok_r.c: Likewise.
50834         * lib/strtol.c: Likewise.
50835         * lib/strtoll.c: Likewise.
50836         * lib/strtoul.c: Likewise.
50837         * lib/strtoull.c: Likewise.
50838         * lib/sysexits.in.h: Likewise.
50839         * lib/tempname.c: Likewise.
50840         * lib/tempname.h: Likewise.
50841         * lib/timespec.h: Likewise.
50842         * lib/tls.c: Likewise.
50843         * lib/tls.h: Likewise.
50844         * lib/tmpdir.c: Likewise.
50845         * lib/tmpdir.h: Likewise.
50846         * lib/tmpfile-safer.c: Likewise.
50847         * lib/tmpfile.c: Likewise.
50848         * lib/trigl.c: Likewise.
50849         * lib/trigl.h: Likewise.
50850         * lib/trim.c: Likewise.
50851         * lib/trim.h: Likewise.
50852         * lib/trunc.c: Likewise.
50853         * lib/truncf.c: Likewise.
50854         * lib/truncl.c: Likewise.
50855         * lib/tsearch.c: Likewise.
50856         * lib/unicodeio.c: Likewise.
50857         * lib/unicodeio.h: Likewise.
50858         * lib/unistd--.h: Likewise.
50859         * lib/unistd-safer.h: Likewise.
50860         * lib/unistdio/ulc-fprintf.c: Likewise.
50861         * lib/unistdio/ulc-vfprintf.c: Likewise.
50862         * lib/unlinkdir.c: Likewise.
50863         * lib/unlinkdir.h: Likewise.
50864         * lib/unlocked-io.h: Likewise.
50865         * lib/unsetenv.c: Likewise.
50866         * lib/userspec.c: Likewise.
50867         * lib/utime.c: Likewise.
50868         * lib/utimecmp.c: Likewise.
50869         * lib/utimecmp.h: Likewise.
50870         * lib/utimens.c: Likewise.
50871         * lib/verify.h: Likewise.
50872         * lib/verror.c: Likewise.
50873         * lib/verror.h: Likewise.
50874         * lib/version-etc-fsf.c: Likewise.
50875         * lib/version-etc.c: Likewise.
50876         * lib/version-etc.h: Likewise.
50877         * lib/vfprintf.c: Likewise.
50878         * lib/vprintf.c: Likewise.
50879         * lib/vsprintf.c: Likewise.
50880         * lib/w32spawn.h: Likewise.
50881         * lib/wait-process.c: Likewise.
50882         * lib/wait-process.h: Likewise.
50883         * lib/wcwidth.c: Likewise.
50884         * lib/write-any-file.c: Likewise.
50885         * lib/xalloc-die.c: Likewise.
50886         * lib/xalloc.h: Likewise.
50887         * lib/xasprintf.c: Likewise.
50888         * lib/xgetcwd.c: Likewise.
50889         * lib/xgetcwd.h: Likewise.
50890         * lib/xgetdomainname.c: Likewise.
50891         * lib/xgetdomainname.h: Likewise.
50892         * lib/xgethostname.c: Likewise.
50893         * lib/xmalloc.c: Likewise.
50894         * lib/xmalloca.c: Likewise.
50895         * lib/xmalloca.h: Likewise.
50896         * lib/xmemcoll.c: Likewise.
50897         * lib/xnanosleep.c: Likewise.
50898         * lib/xreadlink.c: Likewise.
50899         * lib/xreadlink.h: Likewise.
50900         * lib/xsetenv.c: Likewise.
50901         * lib/xsetenv.h: Likewise.
50902         * lib/xstriconv.c: Likewise.
50903         * lib/xstriconv.h: Likewise.
50904         * lib/xstrndup.c: Likewise.
50905         * lib/xstrndup.h: Likewise.
50906         * lib/xstrtod.c: Likewise.
50907         * lib/xstrtod.h: Likewise.
50908         * lib/xstrtol-error.c: Likewise.
50909         * lib/xstrtol.c: Likewise.
50910         * lib/xstrtol.h: Likewise.
50911         * lib/xtime.h: Likewise.
50912         * lib/xvasprintf.c: Likewise.
50913         * lib/xvasprintf.h: Likewise.
50914         * lib/yesno.c: Likewise.
50915         * lib/yesno.h: Likewise.
50916         * posix-modules: Likewise.
50917         * tests/test-alloca-opt.c: Likewise.
50918         * tests/test-arcfour.c: Likewise.
50919         * tests/test-arctwo.c: Likewise.
50920         * tests/test-argmatch.c: Likewise.
50921         * tests/test-argp-2.sh: Likewise.
50922         * tests/test-argp.c: Likewise.
50923         * tests/test-arpa_inet.c: Likewise.
50924         * tests/test-array_list.c: Likewise.
50925         * tests/test-array_oset.c: Likewise.
50926         * tests/test-atexit.c: Likewise.
50927         * tests/test-avltree_list.c: Likewise.
50928         * tests/test-avltree_oset.c: Likewise.
50929         * tests/test-avltreehash_list.c: Likewise.
50930         * tests/test-base64.c: Likewise.
50931         * tests/test-binary-io.c: Likewise.
50932         * tests/test-byteswap.c: Likewise.
50933         * tests/test-c-ctype.c: Likewise.
50934         * tests/test-c-strcasecmp.c: Likewise.
50935         * tests/test-c-strcasestr.c: Likewise.
50936         * tests/test-c-strncasecmp.c: Likewise.
50937         * tests/test-c-strstr.c: Likewise.
50938         * tests/test-canonicalize-lgpl.c: Likewise.
50939         * tests/test-canonicalize.c: Likewise.
50940         * tests/test-carray_list.c: Likewise.
50941         * tests/test-ceilf.c: Likewise.
50942         * tests/test-ceill.c: Likewise.
50943         * tests/test-count-one-bits.c: Likewise.
50944         * tests/test-crc.c: Likewise.
50945         * tests/test-dirname.c: Likewise.
50946         * tests/test-fbufmode.c: Likewise.
50947         * tests/test-fcntl.c: Likewise.
50948         * tests/test-fflush.c: Likewise.
50949         * tests/test-floorf.c: Likewise.
50950         * tests/test-floorl.c: Likewise.
50951         * tests/test-fopen.c: Likewise.
50952         * tests/test-fprintf-posix.c: Likewise.
50953         * tests/test-fprintf-posix.h: Likewise.
50954         * tests/test-fpurge.c: Likewise.
50955         * tests/test-freadable.c: Likewise.
50956         * tests/test-freadahead.c: Likewise.
50957         * tests/test-freading.c: Likewise.
50958         * tests/test-freopen.c: Likewise.
50959         * tests/test-frexp.c: Likewise.
50960         * tests/test-frexpl.c: Likewise.
50961         * tests/test-fseek.c: Likewise.
50962         * tests/test-fseeko.c: Likewise.
50963         * tests/test-fseterr.c: Likewise.
50964         * tests/test-fstrcmp.c: Likewise.
50965         * tests/test-ftell.c: Likewise.
50966         * tests/test-ftello.c: Likewise.
50967         * tests/test-fwritable.c: Likewise.
50968         * tests/test-fwriting.c: Likewise.
50969         * tests/test-getaddrinfo.c: Likewise.
50970         * tests/test-getpass.c: Likewise.
50971         * tests/test-gettimeofday.c: Likewise.
50972         * tests/test-hmac-md5.c: Likewise.
50973         * tests/test-hmac-sha1.c: Likewise.
50974         * tests/test-iconv.c: Likewise.
50975         * tests/test-iconvme.c: Likewise.
50976         * tests/test-inttypes.c: Likewise.
50977         * tests/test-isnan.c: Likewise.
50978         * tests/test-isnanf.c: Likewise.
50979         * tests/test-isnanl-nolibm.c: Likewise.
50980         * tests/test-isnanl.c: Likewise.
50981         * tests/test-isnanl.h: Likewise.
50982         * tests/test-ldexpl.c: Likewise.
50983         * tests/test-linked_list.c: Likewise.
50984         * tests/test-linkedhash_list.c: Likewise.
50985         * tests/test-locale.c: Likewise.
50986         * tests/test-localename.c: Likewise.
50987         * tests/test-lock.c: Likewise.
50988         * tests/test-lseek.c: Likewise.
50989         * tests/test-malloca.c: Likewise.
50990         * tests/test-math.c: Likewise.
50991         * tests/test-mbscasecmp.c: Likewise.
50992         * tests/test-mbscasestr1.c: Likewise.
50993         * tests/test-mbscasestr2.c: Likewise.
50994         * tests/test-mbscasestr3.c: Likewise.
50995         * tests/test-mbscasestr4.c: Likewise.
50996         * tests/test-mbschr.c: Likewise.
50997         * tests/test-mbscspn.c: Likewise.
50998         * tests/test-mbsncasecmp.c: Likewise.
50999         * tests/test-mbspbrk.c: Likewise.
51000         * tests/test-mbspcasecmp.c: Likewise.
51001         * tests/test-mbsrchr.c: Likewise.
51002         * tests/test-mbsspn.c: Likewise.
51003         * tests/test-mbsstr1.c: Likewise.
51004         * tests/test-mbsstr2.c: Likewise.
51005         * tests/test-mbsstr3.c: Likewise.
51006         * tests/test-md5.c: Likewise.
51007         * tests/test-memmem.c: Likewise.
51008         * tests/test-netinet_in.c: Likewise.
51009         * tests/test-open.c: Likewise.
51010         * tests/test-printf-frexp.c: Likewise.
51011         * tests/test-printf-frexpl.c: Likewise.
51012         * tests/test-printf-posix.c: Likewise.
51013         * tests/test-printf-posix.h: Likewise.
51014         * tests/test-rbtree_list.c: Likewise.
51015         * tests/test-rbtree_oset.c: Likewise.
51016         * tests/test-rbtreehash_list.c: Likewise.
51017         * tests/test-read-file.c: Likewise.
51018         * tests/test-rijndael.c: Likewise.
51019         * tests/test-search.c: Likewise.
51020         * tests/test-signbit.c: Likewise.
51021         * tests/test-sleep.c: Likewise.
51022         * tests/test-snprintf-posix.c: Likewise.
51023         * tests/test-snprintf-posix.h: Likewise.
51024         * tests/test-snprintf.c: Likewise.
51025         * tests/test-sprintf-posix.c: Likewise.
51026         * tests/test-sprintf-posix.h: Likewise.
51027         * tests/test-stat-time.c: Likewise.
51028         * tests/test-stdbool.c: Likewise.
51029         * tests/test-stdint.c: Likewise.
51030         * tests/test-stdio.c: Likewise.
51031         * tests/test-stdlib.c: Likewise.
51032         * tests/test-stpncpy.c: Likewise.
51033         * tests/test-strcasestr.c: Likewise.
51034         * tests/test-striconv.c: Likewise.
51035         * tests/test-striconveh.c: Likewise.
51036         * tests/test-striconveha.c: Likewise.
51037         * tests/test-string.c: Likewise.
51038         * tests/test-sys_select.c: Likewise.
51039         * tests/test-sys_socket.c: Likewise.
51040         * tests/test-sys_stat.c: Likewise.
51041         * tests/test-sys_time.c: Likewise.
51042         * tests/test-sysexits.c: Likewise.
51043         * tests/test-time.c: Likewise.
51044         * tests/test-tls.c: Likewise.
51045         * tests/test-trunc.c: Likewise.
51046         * tests/test-truncf.c: Likewise.
51047         * tests/test-truncl.c: Likewise.
51048         * tests/test-unistd.c: Likewise.
51049         * tests/test-vasnprintf-posix.c: Likewise.
51050         * tests/test-vasnprintf-posix2.c: Likewise.
51051         * tests/test-vasnprintf.c: Likewise.
51052         * tests/test-vasprintf-posix.c: Likewise.
51053         * tests/test-vasprintf.c: Likewise.
51054         * tests/test-verify.c: Likewise.
51055         * tests/test-vfprintf-posix.c: Likewise.
51056         * tests/test-vprintf-posix.c: Likewise.
51057         * tests/test-vsnprintf-posix.c: Likewise.
51058         * tests/test-vsnprintf.c: Likewise.
51059         * tests/test-vsprintf-posix.c: Likewise.
51060         * tests/test-wchar.c: Likewise.
51061         * tests/test-wctype.c: Likewise.
51062         * tests/test-wcwidth.c: Likewise.
51063         * tests/test-xstrtol.c: Likewise.
51064         * tests/test-xvasprintf.c: Likewise.
51065         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
51066         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
51067         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
51068         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
51069         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
51070         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
51071         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
51072         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
51073         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
51074         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
51075         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
51076         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
51077         * tests/uniname/test-uninames.c: Likewise.
51078         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
51079         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
51080         * tests/unistdio/test-u16-printf1.h: Likewise.
51081         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
51082         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
51083         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
51084         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
51085         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
51086         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
51087         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
51088         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
51089         * tests/unistdio/test-u32-printf1.h: Likewise.
51090         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
51091         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
51092         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
51093         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
51094         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
51095         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
51096         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
51097         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
51098         * tests/unistdio/test-u8-printf1.h: Likewise.
51099         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
51100         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
51101         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
51102         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
51103         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
51104         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
51105         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
51106         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
51107         * tests/unistdio/test-ulc-printf1.h: Likewise.
51108         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
51109         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
51110         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
51111         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
51112         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
51113         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
51114         * tests/uniwidth/test-u16-strwidth.c: Likewise.
51115         * tests/uniwidth/test-u16-width.c: Likewise.
51116         * tests/uniwidth/test-u32-strwidth.c: Likewise.
51117         * tests/uniwidth/test-u32-width.c: Likewise.
51118         * tests/uniwidth/test-u8-strwidth.c: Likewise.
51119         * tests/uniwidth/test-u8-width.c: Likewise.
51120         * tests/uniwidth/test-uc_width.c: Likewise.
51121         * config/srclist-update: Likewise.
51122         (fixlicense): Update to GPLv3+.
51123
51124         Change copyright notice from LGPLv2.1+ to LGPLv3+.
51125         * tests/test-tsearch.c: Change copyright notice.
51126
51127         Change copyright notice from LGPLv2.0+ to LGPLv3+.
51128         * lib/c-strcaseeq.h: Change copyright notice.
51129         * lib/streq.h: Likewise.
51130         * lib/uniconv.h: Likewise.
51131         * lib/uniconv/u-conv-from-enc.h: Likewise.
51132         * lib/uniconv/u-conv-to-enc.h: Likewise.
51133         * lib/uniconv/u-strconv-from-enc.h: Likewise.
51134         * lib/uniconv/u-strconv-to-enc.h: Likewise.
51135         * lib/uniconv/u16-conv-from-enc.c: Likewise.
51136         * lib/uniconv/u16-conv-to-enc.c: Likewise.
51137         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
51138         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
51139         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
51140         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
51141         * lib/uniconv/u32-conv-from-enc.c: Likewise.
51142         * lib/uniconv/u32-conv-to-enc.c: Likewise.
51143         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
51144         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
51145         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
51146         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
51147         * lib/uniconv/u8-conv-from-enc.c: Likewise.
51148         * lib/uniconv/u8-conv-to-enc.c: Likewise.
51149         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
51150         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
51151         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
51152         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
51153         * lib/uniname.h: Likewise.
51154         * lib/uniname/uniname.c: Likewise.
51155         * lib/unistdio.h: Likewise.
51156         * lib/unistdio/u-asnprintf.h: Likewise.
51157         * lib/unistdio/u-asprintf.h: Likewise.
51158         * lib/unistdio/u-printf-args.c: Likewise.
51159         * lib/unistdio/u-printf-args.h: Likewise.
51160         * lib/unistdio/u-printf-parse.h: Likewise.
51161         * lib/unistdio/u-snprintf.h: Likewise.
51162         * lib/unistdio/u-sprintf.h: Likewise.
51163         * lib/unistdio/u-vasprintf.h: Likewise.
51164         * lib/unistdio/u-vsnprintf.h: Likewise.
51165         * lib/unistdio/u-vsprintf.h: Likewise.
51166         * lib/unistdio/u16-asnprintf.c: Likewise.
51167         * lib/unistdio/u16-asprintf.c: Likewise.
51168         * lib/unistdio/u16-printf-parse.c: Likewise.
51169         * lib/unistdio/u16-snprintf.c: Likewise.
51170         * lib/unistdio/u16-sprintf.c: Likewise.
51171         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
51172         * lib/unistdio/u16-u16-asprintf.c: Likewise.
51173         * lib/unistdio/u16-u16-snprintf.c: Likewise.
51174         * lib/unistdio/u16-u16-sprintf.c: Likewise.
51175         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
51176         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
51177         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
51178         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
51179         * lib/unistdio/u16-vasnprintf.c: Likewise.
51180         * lib/unistdio/u16-vasprintf.c: Likewise.
51181         * lib/unistdio/u16-vsnprintf.c: Likewise.
51182         * lib/unistdio/u16-vsprintf.c: Likewise.
51183         * lib/unistdio/u32-asnprintf.c: Likewise.
51184         * lib/unistdio/u32-asprintf.c: Likewise.
51185         * lib/unistdio/u32-printf-parse.c: Likewise.
51186         * lib/unistdio/u32-snprintf.c: Likewise.
51187         * lib/unistdio/u32-sprintf.c: Likewise.
51188         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
51189         * lib/unistdio/u32-u32-asprintf.c: Likewise.
51190         * lib/unistdio/u32-u32-snprintf.c: Likewise.
51191         * lib/unistdio/u32-u32-sprintf.c: Likewise.
51192         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
51193         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
51194         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
51195         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
51196         * lib/unistdio/u32-vasnprintf.c: Likewise.
51197         * lib/unistdio/u32-vasprintf.c: Likewise.
51198         * lib/unistdio/u32-vsnprintf.c: Likewise.
51199         * lib/unistdio/u32-vsprintf.c: Likewise.
51200         * lib/unistdio/u8-asnprintf.c: Likewise.
51201         * lib/unistdio/u8-asprintf.c: Likewise.
51202         * lib/unistdio/u8-printf-parse.c: Likewise.
51203         * lib/unistdio/u8-snprintf.c: Likewise.
51204         * lib/unistdio/u8-sprintf.c: Likewise.
51205         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
51206         * lib/unistdio/u8-u8-asprintf.c: Likewise.
51207         * lib/unistdio/u8-u8-snprintf.c: Likewise.
51208         * lib/unistdio/u8-u8-sprintf.c: Likewise.
51209         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
51210         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
51211         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
51212         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
51213         * lib/unistdio/u8-vasnprintf.c: Likewise.
51214         * lib/unistdio/u8-vasprintf.c: Likewise.
51215         * lib/unistdio/u8-vsnprintf.c: Likewise.
51216         * lib/unistdio/u8-vsprintf.c: Likewise.
51217         * lib/unistdio/ulc-asnprintf.c: Likewise.
51218         * lib/unistdio/ulc-asprintf.c: Likewise.
51219         * lib/unistdio/ulc-printf-parse.c: Likewise.
51220         * lib/unistdio/ulc-snprintf.c: Likewise.
51221         * lib/unistdio/ulc-sprintf.c: Likewise.
51222         * lib/unistdio/ulc-vasnprintf.c: Likewise.
51223         * lib/unistdio/ulc-vasprintf.c: Likewise.
51224         * lib/unistdio/ulc-vsnprintf.c: Likewise.
51225         * lib/unistdio/ulc-vsprintf.c: Likewise.
51226         * lib/unistr.h: Likewise.
51227         * lib/unistr/u-cpy-alloc.h: Likewise.
51228         * lib/unistr/u-cpy.h: Likewise.
51229         * lib/unistr/u-endswith.h: Likewise.
51230         * lib/unistr/u-move.h: Likewise.
51231         * lib/unistr/u-set.h: Likewise.
51232         * lib/unistr/u-startswith.h: Likewise.
51233         * lib/unistr/u-stpcpy.h: Likewise.
51234         * lib/unistr/u-stpncpy.h: Likewise.
51235         * lib/unistr/u-strcat.h: Likewise.
51236         * lib/unistr/u-strcpy.h: Likewise.
51237         * lib/unistr/u-strcspn.h: Likewise.
51238         * lib/unistr/u-strdup.h: Likewise.
51239         * lib/unistr/u-strlen.h: Likewise.
51240         * lib/unistr/u-strncat.h: Likewise.
51241         * lib/unistr/u-strncpy.h: Likewise.
51242         * lib/unistr/u-strnlen.h: Likewise.
51243         * lib/unistr/u-strpbrk.h: Likewise.
51244         * lib/unistr/u-strspn.h: Likewise.
51245         * lib/unistr/u-strstr.h: Likewise.
51246         * lib/unistr/u-strtok.h: Likewise.
51247         * lib/unistr/u16-check.c: Likewise.
51248         * lib/unistr/u16-chr.c: Likewise.
51249         * lib/unistr/u16-cmp.c: Likewise.
51250         * lib/unistr/u16-cpy-alloc.c: Likewise.
51251         * lib/unistr/u16-cpy.c: Likewise.
51252         * lib/unistr/u16-endswith.c: Likewise.
51253         * lib/unistr/u16-mblen.c: Likewise.
51254         * lib/unistr/u16-mbsnlen.c: Likewise.
51255         * lib/unistr/u16-mbtouc-aux.c: Likewise.
51256         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
51257         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
51258         * lib/unistr/u16-mbtouc.c: Likewise.
51259         * lib/unistr/u16-mbtoucr.c: Likewise.
51260         * lib/unistr/u16-move.c: Likewise.
51261         * lib/unistr/u16-next.c: Likewise.
51262         * lib/unistr/u16-prev.c: Likewise.
51263         * lib/unistr/u16-set.c: Likewise.
51264         * lib/unistr/u16-startswith.c: Likewise.
51265         * lib/unistr/u16-stpcpy.c: Likewise.
51266         * lib/unistr/u16-stpncpy.c: Likewise.
51267         * lib/unistr/u16-strcat.c: Likewise.
51268         * lib/unistr/u16-strchr.c: Likewise.
51269         * lib/unistr/u16-strcmp.c: Likewise.
51270         * lib/unistr/u16-strcpy.c: Likewise.
51271         * lib/unistr/u16-strcspn.c: Likewise.
51272         * lib/unistr/u16-strdup.c: Likewise.
51273         * lib/unistr/u16-strlen.c: Likewise.
51274         * lib/unistr/u16-strmblen.c: Likewise.
51275         * lib/unistr/u16-strmbtouc.c: Likewise.
51276         * lib/unistr/u16-strncat.c: Likewise.
51277         * lib/unistr/u16-strncmp.c: Likewise.
51278         * lib/unistr/u16-strncpy.c: Likewise.
51279         * lib/unistr/u16-strnlen.c: Likewise.
51280         * lib/unistr/u16-strpbrk.c: Likewise.
51281         * lib/unistr/u16-strrchr.c: Likewise.
51282         * lib/unistr/u16-strspn.c: Likewise.
51283         * lib/unistr/u16-strstr.c: Likewise.
51284         * lib/unistr/u16-strtok.c: Likewise.
51285         * lib/unistr/u16-to-u32.c: Likewise.
51286         * lib/unistr/u16-to-u8.c: Likewise.
51287         * lib/unistr/u16-uctomb-aux.c: Likewise.
51288         * lib/unistr/u16-uctomb.c: Likewise.
51289         * lib/unistr/u32-check.c: Likewise.
51290         * lib/unistr/u32-chr.c: Likewise.
51291         * lib/unistr/u32-cmp.c: Likewise.
51292         * lib/unistr/u32-cpy-alloc.c: Likewise.
51293         * lib/unistr/u32-cpy.c: Likewise.
51294         * lib/unistr/u32-endswith.c: Likewise.
51295         * lib/unistr/u32-mblen.c: Likewise.
51296         * lib/unistr/u32-mbsnlen.c: Likewise.
51297         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
51298         * lib/unistr/u32-mbtouc.c: Likewise.
51299         * lib/unistr/u32-mbtoucr.c: Likewise.
51300         * lib/unistr/u32-move.c: Likewise.
51301         * lib/unistr/u32-next.c: Likewise.
51302         * lib/unistr/u32-prev.c: Likewise.
51303         * lib/unistr/u32-set.c: Likewise.
51304         * lib/unistr/u32-startswith.c: Likewise.
51305         * lib/unistr/u32-stpcpy.c: Likewise.
51306         * lib/unistr/u32-stpncpy.c: Likewise.
51307         * lib/unistr/u32-strcat.c: Likewise.
51308         * lib/unistr/u32-strchr.c: Likewise.
51309         * lib/unistr/u32-strcmp.c: Likewise.
51310         * lib/unistr/u32-strcpy.c: Likewise.
51311         * lib/unistr/u32-strcspn.c: Likewise.
51312         * lib/unistr/u32-strdup.c: Likewise.
51313         * lib/unistr/u32-strlen.c: Likewise.
51314         * lib/unistr/u32-strmblen.c: Likewise.
51315         * lib/unistr/u32-strmbtouc.c: Likewise.
51316         * lib/unistr/u32-strncat.c: Likewise.
51317         * lib/unistr/u32-strncmp.c: Likewise.
51318         * lib/unistr/u32-strncpy.c: Likewise.
51319         * lib/unistr/u32-strnlen.c: Likewise.
51320         * lib/unistr/u32-strpbrk.c: Likewise.
51321         * lib/unistr/u32-strrchr.c: Likewise.
51322         * lib/unistr/u32-strspn.c: Likewise.
51323         * lib/unistr/u32-strstr.c: Likewise.
51324         * lib/unistr/u32-strtok.c: Likewise.
51325         * lib/unistr/u32-to-u16.c: Likewise.
51326         * lib/unistr/u32-to-u8.c: Likewise.
51327         * lib/unistr/u32-uctomb.c: Likewise.
51328         * lib/unistr/u8-check.c: Likewise.
51329         * lib/unistr/u8-chr.c: Likewise.
51330         * lib/unistr/u8-cmp.c: Likewise.
51331         * lib/unistr/u8-cpy-alloc.c: Likewise.
51332         * lib/unistr/u8-cpy.c: Likewise.
51333         * lib/unistr/u8-endswith.c: Likewise.
51334         * lib/unistr/u8-mblen.c: Likewise.
51335         * lib/unistr/u8-mbsnlen.c: Likewise.
51336         * lib/unistr/u8-mbtouc-aux.c: Likewise.
51337         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
51338         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
51339         * lib/unistr/u8-mbtouc.c: Likewise.
51340         * lib/unistr/u8-mbtoucr.c: Likewise.
51341         * lib/unistr/u8-move.c: Likewise.
51342         * lib/unistr/u8-next.c: Likewise.
51343         * lib/unistr/u8-prev.c: Likewise.
51344         * lib/unistr/u8-set.c: Likewise.
51345         * lib/unistr/u8-startswith.c: Likewise.
51346         * lib/unistr/u8-stpcpy.c: Likewise.
51347         * lib/unistr/u8-stpncpy.c: Likewise.
51348         * lib/unistr/u8-strcat.c: Likewise.
51349         * lib/unistr/u8-strchr.c: Likewise.
51350         * lib/unistr/u8-strcmp.c: Likewise.
51351         * lib/unistr/u8-strcpy.c: Likewise.
51352         * lib/unistr/u8-strcspn.c: Likewise.
51353         * lib/unistr/u8-strdup.c: Likewise.
51354         * lib/unistr/u8-strlen.c: Likewise.
51355         * lib/unistr/u8-strmblen.c: Likewise.
51356         * lib/unistr/u8-strmbtouc.c: Likewise.
51357         * lib/unistr/u8-strncat.c: Likewise.
51358         * lib/unistr/u8-strncmp.c: Likewise.
51359         * lib/unistr/u8-strncpy.c: Likewise.
51360         * lib/unistr/u8-strnlen.c: Likewise.
51361         * lib/unistr/u8-strpbrk.c: Likewise.
51362         * lib/unistr/u8-strrchr.c: Likewise.
51363         * lib/unistr/u8-strspn.c: Likewise.
51364         * lib/unistr/u8-strstr.c: Likewise.
51365         * lib/unistr/u8-strtok.c: Likewise.
51366         * lib/unistr/u8-to-u16.c: Likewise.
51367         * lib/unistr/u8-to-u32.c: Likewise.
51368         * lib/unistr/u8-uctomb-aux.c: Likewise.
51369         * lib/unistr/u8-uctomb.c: Likewise.
51370         * lib/unitypes.h: Likewise.
51371         * lib/uniwidth.h: Likewise.
51372         * lib/uniwidth/cjk.h: Likewise.
51373         * lib/uniwidth/u16-strwidth.c: Likewise.
51374         * lib/uniwidth/u16-width.c: Likewise.
51375         * lib/uniwidth/u32-strwidth.c: Likewise.
51376         * lib/uniwidth/u32-width.c: Likewise.
51377         * lib/uniwidth/u8-strwidth.c: Likewise.
51378         * lib/uniwidth/u8-width.c: Likewise.
51379         * lib/uniwidth/width.c: Likewise.
51380
51381 2007-10-07  Bruno Haible  <bruno@clisp.org>
51382
51383         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
51384         The file is still under LGPL (see modules/inttypes).
51385
51386 2007-10-06  Bruno Haible  <bruno@clisp.org>
51387
51388         * modules/trunc (Dependencies): Add 'extensions'.
51389         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
51390         Reported by Ben Pfaff <blp@gnu.org>.
51391
51392 2007-10-06  Bruno Haible  <bruno@clisp.org>
51393
51394         * modules/freopen-tests: New file.
51395         * tests/test-freopen.c: New file.
51396
51397         * modules/fopen-tests: New file.
51398         * tests/test-fopen.c: New file.
51399
51400         * modules/fopen: New file.
51401         * lib/fopen.c: New file.
51402         * m4/fopen.m4: New file.
51403         * modules/freopen: New file.
51404         * lib/freopen.c: New file.
51405         * m4/freopen.m4: New file.
51406         * lib/stdio.in.h (fopen, freopen): New declarations.
51407         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
51408         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
51409         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
51410         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
51411         * doc/functions/fopen.texi: Mention the 'fopen' module.
51412         * doc/functions/freopen.texi: Mention the 'freopen' module.
51413
51414 2007-10-06  Bruno Haible  <bruno@clisp.org>
51415
51416         * modules/open-tests: New file.
51417         * tests/test-open.c: New file.
51418
51419         * modules/open: New file.
51420         * lib/open.c: New file.
51421         * m4/open.m4: New file.
51422         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
51423         lib/open.c does.
51424         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
51425         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
51426         macros.
51427         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
51428         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
51429         REPLACE_OPEN.
51430         * doc/functions/open.texi: Mention the 'open' module.
51431
51432 2007-10-04  Bruno Haible  <bruno@clisp.org>
51433
51434         * modules/ceill-tests: New file.
51435         * tests/test-ceill.c: New file.
51436
51437         * modules/ceill: New file.
51438         * lib/ceill.c: Replace entire file.
51439         * m4/ceill.m4: New file.
51440         * lib/math.in.h (ceill): Replace declaration.
51441         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
51442         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
51443         * doc/functions/ceill.texi: Mention the 'ceill' module.
51444         * modules/mathl (Files): Remove lib/ceill.c.
51445         (Depends-on): Add ceill.
51446
51447 2007-10-04  Bruno Haible  <bruno@clisp.org>
51448
51449         * modules/ceilf-tests: New file.
51450         * tests/test-ceilf.c: New file.
51451
51452         * modules/ceilf: New file.
51453         * lib/ceil.c: New file.
51454         * lib/ceilf.c: New file.
51455         * m4/ceilf.m4: New file.
51456         * lib/math.in.h (ceilf): New declaration.
51457         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
51458         HAVE_DECL_CEILF.
51459         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
51460         HAVE_DECL_CEILF.
51461         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
51462
51463 2007-10-04  Bruno Haible  <bruno@clisp.org>
51464
51465         * modules/floorl-tests: New file.
51466         * tests/test-floorl.c: New file.
51467
51468         * modules/floorl: New file.
51469         * lib/floorl.c: Replace entire file.
51470         * m4/floorl.m4: New file.
51471         * lib/math.in.h (floorl): Replace declaration.
51472         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
51473         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
51474         * doc/functions/floorl.texi: Mention the 'floorl' module.
51475         * modules/mathl (Files): Remove lib/floorl.c.
51476         (Depends-on): Add floorl.
51477
51478 2007-10-04  Bruno Haible  <bruno@clisp.org>
51479
51480         * modules/floorf-tests: New file.
51481         * tests/test-floorf.c: New file.
51482
51483         * modules/floorf: New file.
51484         * lib/floor.c: New file.
51485         * lib/floorf.c: New file.
51486         * m4/floorf.m4: New file.
51487         * lib/math.in.h (floorf): New declaration.
51488         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
51489         HAVE_DECL_FLOORF.
51490         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
51491         HAVE_DECL_FLOORF.
51492         * doc/functions/floorf.texi: Mention the 'floorf' module.
51493
51494 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
51495             Bruno Haible  <bruno@clisp.org>
51496
51497         Advertise for the Git server instead of the CVS server.
51498         * doc/gnulib-intro.texi (Steady Development): Mention the Git
51499         repository instead of the CVS one.
51500         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
51501         about all VCS systems generically.
51502         * doc/gnulib.texi (Introduction): Capitalize `Git'.
51503
51504 2007-10-04  Bruno Haible  <bruno@clisp.org>
51505
51506         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
51507         means.
51508         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
51509
51510 2007-10-04  Bruno Haible  <bruno@clisp.org>
51511
51512         * modules/truncl-tests: New file.
51513         * tests/test-truncl.c: New file.
51514
51515         * modules/truncl: New file.
51516         * lib/truncl.c: New file.
51517         * m4/truncl.m4: New file.
51518         * lib/math.in.h (truncl): New declaration.
51519         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
51520         HAVE_DECL_TRUNCL.
51521         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
51522         HAVE_DECL_TRUNCL.
51523         * doc/functions/truncl.texi: Mention the 'truncl' module.
51524
51525 2007-10-04  Bruno Haible  <bruno@clisp.org>
51526
51527         * modules/truncf-tests: New file.
51528         * tests/test-truncf.c: New file.
51529
51530         * modules/truncf: New file.
51531         * lib/trunc.c: Make paramerizable through USE_* macros.
51532         * lib/truncf.c: New file.
51533         * m4/truncf.m4: New file.
51534         * lib/math.in.h (truncf): New declaration.
51535         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
51536         HAVE_DECL_TRUNCF.
51537         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
51538         HAVE_DECL_TRUNCF.
51539         * doc/functions/truncf.texi: Mention the 'truncf' module.
51540
51541 2007-10-03  Bruno Haible  <bruno@clisp.org>
51542
51543         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
51544         augmentation also for tests modules.
51545         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
51546         * modules/atexit-tests (Makefile.am): Likewise.
51547         * modules/binary-io-tests (Makefile.am): Likewise.
51548         * modules/c-strcase-tests (Makefile.am): Likewise.
51549         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
51550         * modules/canonicalize-tests (Makefile.am): Likewise.
51551         * modules/closein-tests (Makefile.am): Likewise.
51552         * modules/fprintf-posix-tests (Makefile.am): Likewise.
51553         * modules/freadahead-tests (Makefile.am): Likewise.
51554         * modules/fseek-tests (Makefile.am): Likewise.
51555         * modules/fseeko-tests (Makefile.am): Likewise.
51556         * modules/ftell-tests (Makefile.am): Likewise.
51557         * modules/ftello-tests (Makefile.am): Likewise.
51558         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
51559         * modules/isnanl-tests (Makefile.am): Likewise.
51560         * modules/lseek-tests (Makefile.am): Likewise.
51561         * modules/mbscasecmp-tests (Makefile.am): Likewise.
51562         * modules/mbscasestr-tests (Makefile.am): Likewise.
51563         * modules/mbschr-tests (Makefile.am): Likewise.
51564         * modules/mbscspn-tests (Makefile.am): Likewise.
51565         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
51566         * modules/mbspbrk-tests (Makefile.am): Likewise.
51567         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
51568         * modules/mbsrchr-tests (Makefile.am): Likewise.
51569         * modules/mbsspn-tests (Makefile.am): Likewise.
51570         * modules/mbsstr-tests (Makefile.am): Likewise.
51571         * modules/printf-posix-tests (Makefile.am): Likewise.
51572         * modules/snprintf-posix-tests (Makefile.am): Likewise.
51573         * modules/sprintf-posix-tests (Makefile.am): Likewise.
51574         * modules/tsearch-tests (Makefile.am): Likewise.
51575         * modules/uniname/uniname-tests (Makefile.am): Likewise.
51576         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
51577         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
51578         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
51579         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
51580         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
51581         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
51582         * modules/vprintf-posix-tests (Makefile.am): Likewise.
51583         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
51584         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
51585         * modules/xstrtoimax-tests (Makefile.am): Likewise.
51586         * modules/xstrtol-tests (Makefile.am): Likewise.
51587         * modules/xstrtoumax-tests (Makefile.am): Likewise.
51588         * modules/yesno-tests (Makefile.am): Likewise.
51589
51590 2007-10-03  Bruno Haible  <bruno@clisp.org>
51591
51592         * modules/trunc-tests: New file.
51593         * tests/test-trunc.c: New file.
51594
51595         * modules/trunc: New file.
51596         * lib/trunc.c: New file.
51597         * m4/trunc.m4: New file.
51598         * lib/math.in.h (trunc): New declaration.
51599         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
51600         HAVE_DECL_TRUNC.
51601         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
51602         HAVE_DECL_TRUNC.
51603         * doc/functions/trunc.texi: Mention the 'trunc' module.
51604
51605 2007-10-03  Bruno Haible  <bruno@clisp.org>
51606
51607         * tests/test-fpending.c: New file, mostly copied
51608         from coreutils/lib/t-fpending.c.
51609         * modules/fpending-tests: New file.
51610
51611 2007-10-03  Bruno Haible  <bruno@clisp.org>
51612
51613         Port the stdio extensions to QNX (untested).
51614         * lib/fseterr.c (fseterr): Add support for QNX.
51615         * lib/fbufmode.c (fbufmode): Likewise.
51616         * lib/freadable.c (freadable): Likewise.
51617         * lib/fwritable.c (fwritable): Likewise.
51618         * lib/freading.c (freading): Likewise.
51619         * lib/fwriting.c (fwriting): Likewise.
51620         * lib/freadahead.c (freadahed): Likewise.
51621         * lib/fpurge.c (fpurge): Likewise.
51622         * lib/fseeko.c (rpl_fseeko): Likewise.
51623
51624 2007-10-03  Bruno Haible  <bruno@clisp.org>
51625             Jim Meyering  <jim@meyering.net>
51626             Eric Blake  <ebb9@byu.net>
51627
51628         * doc/relocatable.texi: Use @command instead of @program.
51629
51630 2007-10-02  Jim Meyering  <jim@meyering.net>
51631
51632         Perform one more "_.h" -> ".in.h" substitution.
51633         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
51634         instead of unistd_.h here, too.
51635
51636 2007-10-01  Bruno Haible  <bruno@clisp.org>
51637
51638         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
51639         Needed for the alloca-opt module.
51640
51641 2007-09-30  Bruno Haible  <bruno@clisp.org>
51642
51643         * lib/alloca.in.h: Renamed from lib/alloca_.h.
51644         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
51645         alloca_.h.
51646         * lib/argz.in.h: Renamed from lib/argz_.h.
51647         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
51648         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
51649         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
51650         byteswap_.h.
51651         * lib/dirent.in.h: Renamed from lib/dirent_.h.
51652         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
51653         dirent_.h.
51654         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
51655         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
51656         fcntl_.h.
51657         * lib/float.in.h: Renamed from lib/float_.h.
51658         * modules/float (Files, Makefile.am): Use float.in.h instead of
51659         float_.h.
51660         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
51661         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
51662         fnmatch_.h.
51663         * lib/getopt.in.h: Renamed from lib/getopt_.h.
51664         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
51665         getopt_.h.
51666         * lib/glob.in.h: Renamed from lib/glob_.h.
51667         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
51668         * lib/iconv.in.h: Renamed from lib/iconv_.h.
51669         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
51670         iconv_.h.
51671         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
51672         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
51673         inttypes_.h.
51674         * lib/locale.in.h: Renamed from lib/locale_.h.
51675         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
51676         locale_.h.
51677         * lib/math.in.h: Renamed from lib/math_.h.
51678         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
51679         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
51680         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
51681         of netinet_in_.h. Add dependency.
51682         * lib/poll.in.h: Renamed from lib/poll_.h.
51683         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
51684         * lib/search.in.h: Renamed from lib/search_.h.
51685         * modules/search (Files, Makefile.am): Use search.in.h instead of
51686         search_.h.
51687         * lib/signal.in.h: Renamed from lib/signal_.h.
51688         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
51689         _signal.h.
51690         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
51691         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
51692         stdbool_.h.
51693         * lib/stdint.in.h: Renamed from lib/stdint_.h.
51694         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
51695         stdint_.h.
51696         * lib/stdio.in.h: Renamed from lib/stdio_.h.
51697         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
51698         stdio_.h.
51699         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
51700         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
51701         stdlib_.h.
51702         * lib/string.in.h: Renamed from lib/string_.h.
51703         * modules/string (Files, Makefile.am): Use string.in.h instead of
51704         string_.h.
51705         * doc/gnulib-tool.texi (Initial import): Update.
51706         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
51707         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
51708         of sys_select_.h. Add dependency.
51709         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
51710         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
51711         of sys_socket_.h.
51712         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
51713         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
51714         sys_stat_.h.
51715         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
51716         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
51717         sys_time_.h.
51718         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
51719         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
51720         sysexits_.h.
51721         * lib/time.in.h: Renamed from lib/time_.h.
51722         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
51723         * lib/unistd.in.h: Renamed from lib/unistd_.h.
51724         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
51725         unistd_.h.
51726         * lib/wchar.in.h: Renamed from lib/wchar_.h.
51727         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
51728         wchar_.h.
51729         * lib/wctype.in.h: Renamed from lib/wctype_.h.
51730         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
51731         wctype_.h.
51732         * build-aux/bootstrap (slurp): Update.
51733         * lib/.cppi-disable: Update.
51734
51735 2007-09-30  Bruno Haible  <bruno@clisp.org>
51736
51737         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
51738         Needed on BeOS.
51739
51740 2007-09-30  Bruno Haible  <bruno@clisp.org>
51741
51742         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
51743
51744 2007-09-29  Bruno Haible  <bruno@clisp.org>
51745
51746         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
51747
51748 2007-09-29  Bruno Haible  <bruno@clisp.org>
51749
51750         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
51751         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
51752         * build-aux/install-reloc: Compile also areadlink.c.
51753         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
51754
51755 2007-09-29  Bruno Haible  <bruno@clisp.org>
51756
51757         * gnulib-tool (func_emit_initmacro_done): Indentation.
51758
51759 2007-09-29  Bruno Haible  <bruno@clisp.org>
51760
51761         * README: Add CVS checkout update instructions.
51762         Info from Bob Proulx <bob@proulx.com>.
51763
51764 2007-09-28  Eric Blake  <ebb9@byu.net>
51765
51766         Provide move-if-change.
51767         * build-aux/move-if-change: New file, based on best practice
51768         rather than any canonical upstream location.
51769
51770 2007-09-28  Jim Meyering  <jim@meyering.net>
51771
51772         Fix canonicalize loop-detection corner case.
51773         Do not attempt to stat the symlink values stored via seen_triple.
51774         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
51775         on linux-2.6.18, (but not 2.6.22).
51776         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
51777         triple_compare.  The former compares dev,ino,filename, while the latter
51778         would actually stat dirname(filename) when dev and ino were equal.
51779         * lib/hash-triple.c: Install <string.h>.
51780         (STREQ): Define.
51781         (triple_compare_ino_str): New function.
51782         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
51783
51784 2007-09-28  Eric Blake  <ebb9@byu.net>
51785
51786         Enforce that AC_REPLACE_FUNCS files exist.
51787         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
51788         override check for typos.
51789
51790         Fix test-closein on Solaris 10.
51791         * tests/test-closein.c (main): Don't assume stdin can be inherited
51792         closed on all systems.
51793         * tests/test-closein.sh: Likewise.
51794         Reported by Piotr Tarnowski.
51795
51796 2007-09-28  Jim Meyering  <jim@meyering.net>
51797
51798         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
51799
51800 2007-09-27  Jim Meyering  <jim@meyering.net>
51801
51802         canonicalize: Avoid a false-positive cycle failure.
51803         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
51804         Sort.  Remove cycle-check.
51805         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
51806         not cycle-check.h.
51807         (seen_triple): New function.
51808         (canonicalize_filename_mode): Use it instead of cycle-check.
51809         * tests/test-canonicalize.c: Add a test for this bug.
51810         * tests/test-canonicalize.sh: Set up and run the test.
51811
51812         New module, file-set, from coreutils.
51813         * modules/file-set: Define it.
51814         * lib/file-set.c, lib/file-set.h: Implement.
51815
51816         New module, hash-triple, from coreutils.
51817         * modules/hash-triple: Define it.
51818         * lib/hash-triple.c, lib/hash-triple.h: Implement.
51819
51820 2007-09-25  Eric Blake  <ebb9@byu.net>
51821
51822         Fix strerror on Interix.
51823         * lib/string_.h (strerror): Declare replacement.
51824         * doc/functions/strerror.texi (strerror): Document the Interix
51825         shortcoming.
51826         * modules/string (Makefile.am): Support new hooks.
51827         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
51828         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
51829         gl_FUNC_STRERROR_SEPARATE.
51830         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
51831         * lib/strerror.c (rpl_strerror): Provide replacement.
51832         * modules/strerror (Depends-on): Add string.
51833         (configure.ac): Detect use of module.
51834         * tests/test-strerror.c: New file.
51835         * modules/strerror-tests: New test module.
51836         * modules/argp (Depends-on): Add strerror.
51837         * modules/error (Depends-on): Likewise.
51838         Reported by Martin Koeppe.
51839
51840 2007-09-24  Bruno Haible  <bruno@clisp.org>
51841
51842         * README: Update git instructions.
51843
51844 2007-09-24  Eric Blake  <ebb9@byu.net>
51845
51846         Revert fpending breakage from 2007-09-08.
51847         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
51848         __fpending.c.
51849
51850 2007-09-24  Jim Meyering  <jim@meyering.net>
51851
51852         filenamecat.c: Add a test.
51853         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
51854         showing how the function works when DIR is the empty string.
51855
51856 2007-09-21  Simon Josefsson  <simon@josefsson.org>
51857
51858         * tests/test-canonicalize.sh: Turn on executable bit.
51859
51860 2007-09-19  Eric Blake  <ebb9@byu.net>
51861
51862         * README: Update CVS instructions.
51863
51864 2007-09-18  Bruno Haible  <bruno@clisp.org>
51865
51866         * modules/areadlink: New file.
51867         * lib/areadlink.h (areadlink): New declaration.
51868         * lib/areadlink.c: New file, based on lib/xreadlink.c.
51869
51870 2007-09-17  Jim Meyering  <jim@meyering.net>
51871
51872         * lib/savewd.c (ESTALE) [!defined]: Define.
51873         Reported to be required on Interix by Martin Koeppe.
51874
51875 2007-09-17  Bruno Haible  <bruno@clisp.org>
51876
51877         * gnulib-tool (func_version): Use $version.
51878
51879 2007-09-16  Bruno Haible  <bruno@clisp.org>
51880
51881         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
51882         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
51883         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
51884         Reported by Greg Schafer <gschafer@zip.com.au>.
51885
51886 2007-09-15  Bruno Haible  <bruno@clisp.org>
51887
51888         * gnulib-tool (sed): Try a little harder to make bash understand the
51889         alias.
51890         Reported by Bruce Korb <bruce.korb@gmail.com>.
51891
51892 2007-09-13  Eric Blake  <ebb9@byu.net>
51893
51894         * ChangeLog: Remove conflict markers.
51895
51896 2007-09-13  Simon Josefsson  <simon@josefsson.org>
51897
51898         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
51899         Reported by Bruno Haible <bruno@clisp.org>.
51900
51901 2007-09-12  Bruno Haible  <bruno@clisp.org>
51902
51903         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
51904         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
51905         is not defined.
51906
51907 2007-09-12  Eric Blake  <ebb9@byu.net>
51908
51909         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
51910         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
51911         Autoconf definition.
51912         * modules/euidaccess (Depends-on): Add extensions, for
51913         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
51914         * modules/fnmatch (Depends-on): Likewise.
51915         * modules/getaddrinfo (Depends-on): Likewise.
51916         * modules/getdelim (Depends-on): Likewise.
51917         * modules/getline (Depends-on): Likewise.
51918         * modules/getsubopt (Depends-on): Likewise.
51919         * modules/gettext (Depends-on): Likewise.
51920         * modules/group-member (Depends-on): Likewise.
51921         * modules/mbchar (Depends-on): Likewise.
51922         * modules/memmem (Depends-on): Likewise.
51923         * modules/mempcpy (Depends-on): Likewise.
51924         * modules/memrchr (Depends-on): Likewise.
51925         * modules/pagealign_alloc (Depends-on): Likewise.
51926         * modules/readutmp (Depends-on): Likewise.
51927         * modules/stpcpy (Depends-on): Likewise.
51928         * modules/stpncpy (Depends-on): Likewise.
51929         * modules/strchrnul (Depends-on): Likewise.
51930         * modules/strndup (Depends-on): Likewise.
51931         * modules/strsep (Depends-on): Likewise.
51932         * modules/strverscmp (Depends-on): Likewise.
51933         * modules/vasprintf (Depends-on): Likewise.
51934         * modules/wcwidth (Depends-on): Likewise.
51935         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
51936         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
51937         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
51938         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
51939         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
51940         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
51941         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
51942         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
51943         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
51944         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
51945         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
51946         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
51947         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
51948         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
51949         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
51950         * m4/readutmp.m4 (gl_READUTMP): Likewise.
51951         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
51952         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
51953         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
51954         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
51955         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
51956         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
51957         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
51958         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
51959         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
51960         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
51961         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
51962         so that lock.m4 can be used in gettext without extensions module.
51963
51964 2007-09-11  Bruno Haible  <bruno@clisp.org>
51965
51966         * m4/isc-posix.m4: Remove file.
51967         Suggested by Eric Blake.
51968
51969 2007-09-11  Eric Blake  <ebb9@byu.net>
51970
51971         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
51972
51973 2007-09-10  Bruno Haible  <bruno@clisp.org>
51974
51975         * posix-modules: Fix typo in error message.
51976         Reported by Matt <mkraai@beckman.com>.
51977
51978 2007-09-09  Bruno Haible  <bruno@clisp.org>
51979
51980         * doc/functions/getdelim.texi: Update list of platforms lacking the
51981         function.
51982         * doc/functions/getline.texi: Likewise.
51983
51984 2007-09-09  Jim Meyering  <jim@meyering.net>
51985
51986         * lib/hash.c (hash_initialize): Detect calloc failure.
51987         Reported by Bruno Haible.
51988
51989 2007-09-09  Bruno Haible  <bruno@clisp.org>
51990
51991         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
51992         malloc or realloc fails.
51993
51994 2007-09-09  Bruno Haible  <bruno@clisp.org>
51995
51996         * modules/getcwd (Depends-on): Add malloc-posix.
51997         * modules/glob (Depends-on): Likewise.
51998         * modules/putenv (Depends-on): Likewise.
51999         * modules/strdup (Depends-on): Likewise.
52000         * modules/getdelim (Depends-on): Add realloc-posix.
52001         * modules/read-file (Depends-on): Likewise.
52002
52003 2007-09-09  Bruno Haible  <bruno@clisp.org>
52004
52005         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
52006         (gl_FUNC_MALLOC_POSIX): Require it.
52007         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
52008         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
52009         * modules/realloc (Files): Add m4/malloc.m4.
52010         * modules/calloc (Files): Likewise.
52011
52012 2007-09-09  Bruno Haible  <bruno@clisp.org>
52013
52014         * modules/malloc-posix: New file.
52015         * modules/malloc (Depends-on): Add malloc-posix.
52016         * lib/malloc.c: Include errno.h.
52017         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
52018         and a POSIX-compatible malloc into a single function. Set ENOMEM
52019         when returning NULL.
52020         * m4/malloc.m4: New file.
52021         * doc/functions/malloc.texi: Mention the malloc-posix module.
52022         * lib/stdlib_.h (malloc): New declaration.
52023         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
52024         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
52025         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
52026         and HAVE_MALLOC_POSIX.
52027
52028 2007-09-09  Bruno Haible  <bruno@clisp.org>
52029
52030         * modules/realloc-posix: New file.
52031         * modules/realloc (Depends-on): Add realloc-posix.
52032         * lib/realloc.c: Include errno.h.
52033         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
52034         and a POSIX-compatible realloc into a single function. Set ENOMEM
52035         when returning NULL.
52036         * m4/realloc.m4: New file.
52037         * doc/functions/realloc.texi: Mention the realloc-posix module.
52038         * lib/stdlib_.h (realloc): New declaration.
52039         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
52040         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
52041         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
52042         and HAVE_REALLOC_POSIX.
52043
52044 2007-09-09  Bruno Haible  <bruno@clisp.org>
52045
52046         * modules/calloc-posix: New file.
52047         * modules/calloc (Depends-on): Add calloc-posix.
52048         * lib/calloc.c: Include errno.h.
52049         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
52050         and a POSIX-compatible calloc into a single function. Set ENOMEM
52051         when returning NULL.
52052         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
52053         * doc/functions/calloc.texi: Mention the calloc-posix module.
52054         * lib/stdlib_.h (calloc): New declaration.
52055         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
52056         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
52057         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
52058         and HAVE_CALLOC_POSIX.
52059
52060 2007-09-09  Bruno Haible  <bruno@clisp.org>
52061
52062         Allow for modules to show an arbitrary notice.
52063         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
52064         * gnulib-tool: New option --extract-notice.
52065         (func_usage): Document it.
52066         (sed_extract_prog): Update.
52067         (func_get_notice): New function.
52068         (func_modules_notice): New function.
52069         (func_import, func_create_testdir): Invoke it.
52070         Suggested by Jim Meyering.
52071
52072 2007-09-09  Bruno Haible  <bruno@clisp.org>
52073
52074         * gnulib-tool: New options --verbose, --quiet.
52075         (func_usage): Document them.
52076         (verbose): New variable.
52077         (func_execute_command): New function.
52078         (func_import): Don't show the module list and the file list if
52079         $verbose < 0.
52080         (func_create_testdir): Likewise. Use func_execute_command.
52081         (func_create_megatestdir): Use func_execute_command.
52082
52083 2007-09-08  Bruno Haible  <bruno@clisp.org>
52084
52085         * gnulib-tool (func_import): Prefer rsync over wget when available,
52086         for fetching the PO files.
52087
52088 2007-09-08  Bruno Haible  <bruno@clisp.org>
52089
52090         * posix-modules: New file. Portions copied from gnulib-tool.
52091         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
52092
52093 2007-09-08  Jim Meyering  <jim@meyering.net>
52094
52095         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
52096         * lib/fpending.h: Rename from __fpending.h.
52097         * lib/fpending.c: Rename from __fpending.c.
52098         Include "fpending.h", not "__fpending.h".
52099         * lib/__fpending.h, lib/__fpending.c: Remove files.
52100         * modules/fpending (Files): Reflect new file names.
52101         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
52102
52103 2007-09-08  Bruno Haible  <bruno@clisp.org>
52104
52105         * m4/inttypes-h.m4: Remove stub file.
52106
52107 2007-09-07  Simon Josefsson  <simon@josefsson.org>
52108
52109         * doc/headers/stdint.texi: Discuss #include_next issue.
52110
52111 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
52112
52113         * build-aux/bootstrap: Remove obsolete comment about wget --help.
52114
52115 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52116
52117         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
52118         in variable name.
52119
52120 2007-09-03  Jim Meyering  <jim@meyering.net>
52121
52122         New module: git-version-gen.
52123         * modules/git-version-gen: New file.
52124
52125         Import changes from coreutils for bootstrap script.
52126
52127         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
52128
52129         bootstrap: uses rsync to download the .po files
52130         * build-aux/bootstrap (po_download_command_format): New global.
52131         (download_po_files): Use rsync.
52132         (update_po_files): Don't remove .po files after download,
52133         so future rsync runs can take advantage of the copies.
52134
52135         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
52136
52137         Solve the unnecessary-.po-file-regeneration problem once and for all.
52138         * build-aux/bootstrap (download_po_files): New function, renamed from
52139         get_translations.  Now, downloads, but doesn't update LINGUAS.
52140         (update_po_files): New function.
52141
52142         bootstrap: Ignore more.
52143         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
52144         uniwidth to e.g., lib/.gitignore.
52145         (slurp): Handle the sys_stat_.h -> sys mapping, too.
52146
52147         * build-aux/bootstrap: New setting: vc_ignore.
52148         (insert_sorted_if_absent): Create $file if absent.
52149         Adapt to new, possibly empty, list: $vc_ignore.
52150
52151         bootstrap: generate more ignorable names
52152         * build-aux/bootstrap (slurp): When generating ignorable names,
52153         also map .sin to .sed, .gperf to .c, and .y to .c.
52154
52155 2007-09-03  Jim Meyering  <jim@meyering.net>
52156
52157         * build-aux/git-version-gen: New file, from coreutils.  For details, see
52158         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
52159
52160 2007-09-02  Bruno Haible  <bruno@clisp.org>
52161
52162         Fix mis-recognition of 'mcs' on QNX 6.
52163         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
52164         output contains the string "Mono".
52165         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
52166         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
52167
52168 2007-09-01  Bruno Haible  <bruno@clisp.org>
52169
52170         Fix collision between uniwidth/* and linebreak modules.
52171         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
52172         u32_width): Remove declarations.
52173         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
52174         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
52175         streq3, streq2, streq1, streq0): Remove functions.
52176         (STREQ): Remove macro.
52177         (is_cjk_encoding): Remove function.
52178         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
52179         (uc_width, u8_width, u16_width, u32_width): Remove functions.
52180         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
52181         * NEWS: Document the change.
52182
52183 2007-09-01  Bruno Haible  <bruno@clisp.org>
52184
52185         * lib/streq.h: Add double-inclusion guard.
52186
52187 2007-09-01  Karl Berry  <karl@gnu.org>
52188
52189         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
52190
52191 2007-08-28  Jim Meyering  <jim@meyering.net>
52192
52193         Rename mreadlink_with_size to areadlink_with_size.
52194         * NEWS: Document the change.
52195         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
52196         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
52197         * lib/mreadlink.h: Rename this to...
52198         * lib/areadlink.h: ...this.
52199         * modules/mreadlink-with-size: Rename this to...
52200         * modules/areadlink-with-size: ...this.
52201         * lib/canonicalize.c: Reflect the renaming.
52202         * modules/canonicalize: Likewise.
52203
52204 2007-08-26  Bruno Haible  <bruno@clisp.org>
52205
52206         * gnulib-tool (func_import): When deciding which files to remove,
52207         consider also dangling symbolic links.
52208         Reported by Eric Blake.
52209
52210 2007-08-26  Bruno Haible  <bruno@clisp.org>
52211
52212         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
52213
52214 2007-08-23  Simon Josefsson  <simon@josefsson.org>
52215
52216         * lib/readline.c: Don't include getline.h, the prototype is now
52217         found in stdio.h.
52218
52219 2007-08-23  Jim Meyering  <jim@meyering.net>
52220
52221         Getdelim touchup.
52222         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
52223         around the funlockfile call, since funlockfile never sets errno.
52224         Don't set errno upon failed realloc.
52225
52226 2007-08-22  Eric Blake  <ebb9@byu.net>
52227
52228         Getline touchups.
52229         * lib/getdelim.c (getdelim): Revert regression that required *n to
52230         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
52231         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
52232         getdelim, rather than whether implementation is missing.
52233         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
52234         * lib/stdio_.h (getline): Also declare if replacement is
52235         required.
52236         * doc/functions/getdelim.texi: New file.
52237         * doc/functions/getline.texi: Likewise.
52238         * doc/gnulib.texi (Function Substitutes): Add new files.
52239         Reported by Bruno Haible.
52240
52241 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
52242
52243         * users.txt: Add Guile.
52244
52245 2007-08-22  Eric Blake  <ebb9@byu.net>
52246
52247         * tests/test-getdelim.c (main): Use remove, not unlink.
52248         * tests/test-getline.c (main): Likewise.
52249
52250         Move getline and getdelim into stdio.h, per POSIX 200x.
52251         * modules/getline (Files): Remove getline.h.
52252         (Depends-on): Add stdio.
52253         (configure.ac): Add module indicator.
52254         * modules/getdelim (Files): Remove getdelim.h.
52255         (Depends-on): Add stdio.
52256         (configure.ac): Add module indicator.
52257         * modules/stdio (Makefile.am): Work with new indicators.
52258         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
52259         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
52260         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
52261         * lib/getdelim.h: Delete.
52262         * lib/getline.h: Delete.
52263         * lib/stdio_.h (getdelim, getline): Declare.
52264         * modules/getdelim-tests: New module.
52265         * modules/getline-tests: Likewise.
52266         * tests/test-getdelim.c: New file.
52267         * tests/test-getline.c: Likewise.
52268         * NEWS: Document the change.
52269         * lib/getline.c: Update choice of header.
52270         * lib/csharpcomp.c: Likewise.
52271         * lib/getpass.c: Likewise.
52272         * lib/javacomp.c: Likewise.
52273         * lib/javaversion.c: Likewise.
52274         * lib/yesno.c: Likewise.
52275         * lib/getdelim.c: Likewise.
52276         (getdelim): Set errno on failure, and avoid memory leak.
52277
52278 2007-08-19  Bruno Haible  <bruno@clisp.org>
52279
52280         * modules/closein (Depends-on): Add freadahead.
52281         * lib/closein.c: Include freadahead.h.
52282         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
52283         is zero.
52284
52285 2007-08-19  Bruno Haible  <bruno@clisp.org>
52286
52287         * modules/freadahead-tests: New file.
52288         * tests/test-freadahead.sh: New file.
52289         * tests/test-freadahead.c: New file.
52290
52291         * modules/freadahead: New file.
52292         * lib/freadahead.h: New file.
52293         * lib/freadahead.c: New file.
52294         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
52295         fbufmode, fpurge, freadable, fwritable.
52296
52297 2007-08-19  Eric Blake  <ebb9@byu.net>
52298
52299         Test yesno in combination with closein.
52300         * lib/yesno.c (yesno): Document use of stdin.
52301         * modules/yesno-tests (Files): New module.
52302         * tests/test-yesno.c (main): New file.
52303         * tests/test-yesno.sh: Likewise.
52304
52305 2007-08-19  Bruno Haible  <bruno@clisp.org>
52306
52307         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
52308         * lib/fseeko.c (rpl_fseeko): Likewise.
52309         * lib/fseterr.c (fseterr): Likewise.
52310
52311 2007-08-19  Bruno Haible  <bruno@clisp.org>
52312
52313         * tests/test-lseek.c (main): Disable a test for BeOS.
52314         * doc/functions/lseek.texi: Document the BeOS bug.
52315
52316 2007-08-19  Bruno Haible  <bruno@clisp.org>
52317             Eric Blake  <ebb9@byu.net>
52318
52319         * lib/lseek.c: Include <sys/stat.h>.
52320         (rpl_lseek): Add workaround code also for Unix platforms.
52321         Needed for BeOS.
52322         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
52323         * doc/functions/lseek.texi: Document BeOS definiency.
52324
52325 2007-08-18  Bruno Haible  <bruno@clisp.org>
52326
52327         * modules/fstrcmp-tests: New file.
52328         * tests/test-fstrcmp.c: New file.
52329
52330 2007-08-18  Bruno Haible  <bruno@clisp.org>
52331
52332         * modules/fstrcmp: New file, from GNU gettext with modifications.
52333         * lib/fstrcmp.h: New file, from GNU gettext.
52334         * lib/fstrcmp.c: New file, from GNU gettext.
52335         * MODULES.html.sh (String handling): Add fstrcmp.
52336
52337 2007-08-18  Bruno Haible  <bruno@clisp.org>
52338
52339         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
52340         'bool'.
52341         (diag, compareseq): Remove const from the ctxt argument.
52342         (USE_HEURISTIC): Undefine at the end.
52343
52344 2007-08-18  Jim Meyering  <jim@meyering.net>
52345
52346         New file: lib/idcache.h
52347         * NEWS: Mention the addition.
52348         * modules/idcache (Files): Add lib/idcache.h
52349         * lib/idcache.c: Include "idcache.h".
52350         Don't include <sys/types.h>.
52351         Add a FIXME comment.
52352         Move file-scoped "static" declarations to the top.
52353         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
52354
52355 2007-08-17  Bruno Haible  <bruno@clisp.org>
52356         and Paul Eggert  <eggert@cs.ucla.edu>
52357
52358         * MODULES.html.sh: Add diffseq.
52359         * modules/diffseq: New file.
52360         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
52361         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
52362
52363 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
52364
52365         Import changes from coreutils for bootstrap script.
52366
52367         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
52368
52369         * build-aux/bootstrap (slurp): Work even in environments where
52370         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
52371         current code does not slurp files whose names start with ".", and
52372         this looks like it might be a troublesome area.
52373
52374         2007-07-11  Jim Meyering  <jim@meyering.net>
52375
52376         If there's a GPL vN copyright comment, require that N == 3.
52377
52378         2007-07-08  Jim Meyering  <jim@meyering.net>
52379
52380         Run the coreutils-specific code only if tests/Makefile.am.in exists.
52381         * build-aux/bootstrap (mam_template): Move definition out of loop.
52382
52383         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
52384
52385         * build-aux/bootstrap (symlink_to_dir): Rename function from
52386         symlink_to_gnulib.  Add a directory parameter.  Update all
52387         callers.
52388         (cp_mark_as_generated): Also check for -- and link to -- files in
52389         gl/.
52390
52391         2007-07-08  Jim Meyering  <jim@meyering.net>
52392
52393         Adapt to deeper hierarchy in gnulib.
52394         * build-aux/bootstrap (symlink_to_dir): If the destination
52395         directory doesn't exist, create it. This is required at least for
52396         "lib/uniwidth/cjk.h".
52397
52398         2007-05-15  Jim Meyering  <jim@meyering.net>
52399
52400         * build-aux/bootstrap: Now that generated Makefile.am files
52401         are no longer under version control, they must be created at
52402         bootstrap time.
52403
52404 2007-08-14  Ben Pfaff  <blp@gnu.org>
52405
52406         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
52407
52408 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
52409
52410         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
52411         given the changes below.
52412         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
52413         even on hosts that have padding bits beyond the supported 64.
52414
52415 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
52416
52417         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
52418         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
52419         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
52420         depends on it.
52421         (xstrtol_error): Remove.
52422         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
52423         but with a different signature.
52424         (ATTRIBUTE_NORETURN, __attribute__): New macros.
52425         * lib/xstrtol-error.c: Include exitfail.h.
52426         (xstrtol_fatal): New function, with a different signature from the
52427         old xstrtol_error, so that the caller need not worry about passing
52428         in an exit status, or about storage management of the option argument.
52429         (xstrtol_error): Now a static function.  Redo signature to
52430         implement xstrtol_fatal.  Output the correct number of hyphens in
52431         front of the option so that the caller need not worry about
52432         storage management.
52433         (N_): New macro.
52434         (_): Remove; not used now.
52435         * modules/xstrtol: Depend on getopt.
52436         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
52437         of old STRTOL_FATAL_ERROR macro.
52438         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
52439         of test program.
52440         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
52441         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
52442
52443 2007-08-08  Eric Blake  <ebb9@byu.net>
52444
52445         * lib/xstrtol-error.c: Add missing include.
52446
52447         Move xstrtol messages into gnulib domain, when --pobase is used.
52448         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
52449         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
52450         * modules/xstrtol (Files): Distribute new file.
52451         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
52452         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
52453         * tests/test-xstrtol.c: ...into new file.
52454         * tests/test-xstrtoul.c: Also test xstrtoul.
52455         * tests/test-xstrtoimax.c: Also test xstrtoimax.
52456         * tests/test-xstrtoumax.c: Also test xstrtoumax.
52457         * tests/test-xstrtol.sh: Drive the tests.
52458         * tests/test-xstrtoimax.sh: Likewise.
52459         * tests/test-xstrtoumax.sh: Likewise.
52460         * modules/xstrtol-tests: New module.
52461         * modules/xstrtoimax-tests: Likewise.
52462         * modules/xstrtoumax-tests: Likewise.
52463
52464 2007-08-08  Jim Meyering  <jim@meyering.net>
52465
52466         New function: mfile_name_concat.
52467         * lib/filenamecat.c (mfile_name_concat): New function, just like
52468         file_name_concat, but return NULL upon failure rather than exiting
52469         with a diagnostic.
52470         * lib/filenamecat.h: Declare it.
52471
52472 2007-08-07  Bruno Haible  <bruno@clisp.org>
52473
52474         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
52475         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
52476         warning from gcc.
52477         Reported by Eric Blake.
52478
52479 2007-08-07  Simon Josefsson  <simon@josefsson.org>
52480
52481         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
52482         * modules/crypto/arcfour (License): Likewise.
52483         * modules/crypto/des-tests (License): Likewise.
52484         * modules/crypto/gc-arctwo-tests (License): Likewise.
52485         * modules/crypto/gc-des-tests (License): Likewise.
52486         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
52487         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
52488         * modules/crypto/gc-md2-tests (License): Likewise.
52489         * modules/crypto/gc-md4-tests (License): Likewise.
52490         * modules/crypto/gc-md5-tests (License): Likewise.
52491         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
52492         * modules/crypto/gc-rijndael-tests (License): Likewise.
52493         * modules/crypto/gc-sha1-tests (License): Likewise.
52494         * modules/crypto/gc-tests (License): Likewise.
52495         * modules/crypto/hmac-md5 (License): Likewise.
52496         * modules/crypto/hmac-sha1 (License): Likewise.
52497         * modules/crypto/md2-tests (License): Likewise.
52498         * modules/crypto/md4-tests (License): Likewise.
52499         * modules/crypto/md5 (License): Likewise.
52500         * modules/crypto/rijndael (License): Likewise.
52501         * modules/crypto/sha1 (License): Likewise.
52502         * modules/memxor (License): Likewise.
52503
52504 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
52505         and Bruno Haible  <bruno@clisp.org>
52506
52507         * NEWS: Describe interface changes to human, xstrtol.
52508         * lib/human.h: Include <xstrtol.h>.
52509         (human_options): Return enum strtol_error, not int.  Remove
52510         bool arg; take int * instead.
52511         * lib/human.c: Don't include "gettext.h".
52512         (_): Remove; no longer used.
52513         Don't include <xstrtol.h>, since human.h does it.
52514         (human_options): Adjust to abovementioned interface changes.
52515         Do not report error to stderr; that's now the caller's
52516         responsibility.
52517         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
52518         interface change.
52519         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
52520         Str, Argument_type_string.  All uses changed.  Put " argument"
52521         in diagnostics to make them clearer.  Change wording of suffix
52522         message for clarity.
52523         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
52524         Argument_type_string.
52525         (STRTOL_FATAL_WARN): Remove; no longer used.
52526         * modules/human (Depends-on): Remove gettext-h.
52527
52528 2007-08-06  Simon Josefsson  <simon@josefsson.org>
52529
52530         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
52531
52532 2007-07-31  Bruno Haible  <bruno@clisp.org>
52533
52534         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
52535         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
52536         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
52537
52538 2007-07-31  Bruno Haible  <bruno@clisp.org>
52539
52540         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
52541         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
52542
52543 2007-07-30  Bruno Haible  <bruno@clisp.org>
52544
52545         * modules/base64 (License): Use the synonymous term "LGPLv2+".
52546         * modules/c-ctype (License): Likewise.
52547         * modules/c-strcase (License): Likewise.
52548         * modules/check-version (License): Likewise.
52549         * modules/iconv (License): Likewise.
52550         * modules/iconv_open (License): Likewise.
52551         * modules/read-file (License): Likewise.
52552         * modules/striconv (License): Likewise.
52553         * modules/strverscmp (License): Likewise.
52554         * modules/vasprintf (License): Likewise.
52555         * modules/crypto/des (License): Likewise.
52556         * modules/crypto/gc (License): Likewise.
52557         * modules/crypto/gc-arcfour (License): Likewise.
52558         * modules/crypto/gc-arctwo (License): Likewise.
52559         * modules/crypto/gc-des (License): Likewise.
52560         * modules/crypto/gc-hmac-md5 (License): Likewise.
52561         * modules/crypto/gc-hmac-sha1 (License): Likewise.
52562         * modules/crypto/gc-md2 (License): Likewise.
52563         * modules/crypto/gc-md4 (License): Likewise.
52564         * modules/crypto/gc-md5 (License): Likewise.
52565         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
52566         * modules/crypto/gc-random (License): Likewise.
52567         * modules/crypto/gc-rijndael (License): Likewise.
52568         * modules/crypto/gc-sha1 (License): Likewise.
52569         * modules/crypto/md2 (License): Likewise.
52570         * modules/crypto/md4 (License): Likewise.
52571
52572 2007-07-30  Jim Meyering  <jim@meyering.net>
52573
52574         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
52575         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
52576         it has valid stat data.  This bug would cause du not to count the
52577         sizes of inaccessible directories.
52578         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
52579         in <http://bugzilla.redhat.com/250077>.
52580
52581 2007-07-25  Peter O'Gorman  <peter@pogma.com>
52582             Bruno Haible  <bruno@clisp.org>
52583
52584         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
52585         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
52586         #include_next, gives a diagnostic about it, but reports no error in
52587         the exit code.
52588         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
52589
52590 2007-07-24  Ben Pfaff  <blp@gnu.org>
52591
52592         Improve name: "count-one-bits" is better than "popcount".
52593         * MODULES.html.sh: Update name.
52594         * lib/popcount.h: Renamed lib/count-one-bits.h.
52595         (popcount): Renamed count_one_bits.
52596         (popcountl): Renamed count_one_bits_l.
52597         (popcountll): Renamed count_one_bits_ll.
52598         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
52599         * modules/popcount: Renamed module/count-one-bits.
52600         * modules/popcount-tests: Renamed module/count-one-bits-tests.
52601         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
52602
52603 2007-07-23  Ben Pfaff  <blp@gnu.org>
52604
52605         * lib/popcount.h (popcount32): Reduce size of constants, to allow
52606         better code generation, and add U to large constants to avoid
52607         warnings, in non-GCC case.
52608         Suggested by Bruno Haible.
52609
52610 2007-07-23  Ben Pfaff  <blp@gnu.org>
52611
52612         * lib/popcount.h: Use verify_true instead of if...abort.
52613         * modules/popcount: Depend on verify module.
52614         Suggested by Jim Meyering.
52615
52616 2007-07-23  Bruno Haible  <bruno@clisp.org>
52617
52618         * gnulib-tool (func_import): Create a .cvsignore file also when the
52619         directory is not yet in CVS but the toplevel directory is. When
52620         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
52621         Reported by Karl Berry.
52622
52623 2007-07-22  Ben Pfaff  <blp@gnu.org>
52624
52625         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
52626         case.
52627         Suggested by Eric Blake.
52628
52629 2007-07-22  Ben Pfaff  <blp@gnu.org>
52630
52631         New module: popcount.
52632         * MODULES.html.sh: Add popcount.
52633         * modules/popcount: New file.
52634         * modules/popcount-tests: New file.
52635         * tests/test-popcount.c: New file.
52636         * lib/popcount.h: New file.
52637         * m4/popcount.m4: New file.
52638
52639 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
52640
52641         * build-aux/announce-gen: Update to GPLv3.
52642
52643         * build-aux/config.guess: Update from config.
52644
52645 2007-07-21  Bruno Haible  <bruno@clisp.org>
52646
52647         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
52648         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
52649
52650 2007-07-20  Jim Meyering  <jim@meyering.net>
52651
52652         * check-module: Diagnose a self-dependency.
52653
52654 2007-07-19  Bruno Haible  <bruno@clisp.org>
52655
52656         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
52657         empty.
52658         Reported by Eric Blake.
52659
52660 2007-07-18  Bruno Haible  <bruno@clisp.org>
52661
52662         * gnulib-tool: New options --po-base, --po-domain.
52663         (func_usage): Document them.
52664         (pobase, po_domain): New variables.
52665         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
52666         DEFAULT_TEXT_DOMAIN.
52667         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
52668         (func_import): Consider pobase and po_domain. Create a po/ directory.
52669         (func_create_testdir): Set pobase and po_domain to empty.
52670         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
52671         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
52672
52673 2007-07-18  Bruno Haible  <bruno@clisp.org>
52674
52675         * gnulib-tool (func_get_automake_snippet): Synthesize also an
52676         EXTRA_DIST augmentation for files in build-aux/.
52677
52678 2007-07-16  Bruno Haible  <bruno@clisp.org>
52679
52680         * modules/lseek (License): Use the synonymous term "LGPLv2+".
52681         * modules/getdelim (License): Likewise.
52682
52683 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52684
52685         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
52686         * modules/d-type (License): Likewise.
52687         * modules/extensions (License): Likewise.
52688         * modules/fnmatch (License): Likewise.
52689         * modules/fseeko (License): Likewise.
52690         * modules/getaddrinfo (License): Likewise.
52691         * modules/getline (License): Likewise.
52692         * modules/getlogin_r (License): Likewise.
52693         * modules/getpass (License): Likewise.
52694         * modules/gettimeofday (License): Likewise.
52695         * modules/glob (License): Likewise.
52696         * modules/inet_ntop (License): Likewise.
52697         * modules/malloc (License): Likewise.
52698         * modules/malloca (License): Likewise.
52699         * modules/memmem (License): Likewise.
52700         * modules/mempcpy (License): Likewise.
52701         * modules/memset (License): Likewise.
52702         * modules/minmax (License): Likewise.
52703         * modules/mktime (License): Likewise.
52704         * modules/netinet_in (License): Likewise.
52705         * modules/pathmax (License): Likewise.
52706         * modules/poll (License): Likewise.
52707         * modules/regex (License): Likewise.
52708         * modules/snprintf (License): Likewise.
52709         * modules/stdbool (License): Likewise.
52710         * modules/stdint (License): Likewise.
52711         * modules/stdio (License): Likewise.
52712         * modules/strcase (License): Likewise.
52713         * modules/strcasestr (License): Likewise.
52714         * modules/strdup (License): Likewise.
52715         * modules/string (License): Likewise.
52716         * modules/strndup (License): Likewise.
52717         * modules/strnlen (License): Likewise.
52718         * modules/strpbrk (License): Likewise.
52719         * modules/strptime (License): Likewise.
52720         * modules/strsep (License): Likewise.
52721         * modules/sys_select (License): Likewise.
52722         * modules/sys_socket (License): Likewise.
52723         * modules/sys_stat (License): Likewise.
52724         * modules/sys_time (License): Likewise.
52725         * modules/time (License): Likewise.
52726         * modules/time_r (License): Likewise.
52727         * modules/timegm (License): Likewise.
52728         * modules/unistd (License): Likewise.
52729         * modules/vsnprintf (License): Likewise.
52730         * modules/wctype (License): Likewise.
52731
52732 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52733
52734         * modules/argz (License): LGPLv2+.
52735
52736 2007-07-15  Karl Berry  <karl@gnu.org>
52737
52738         * doc/gnulib.texi: revise node structure per new fdl.texi.
52739
52740 2007-07-14  Bruno Haible  <bruno@clisp.org>
52741
52742         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
52743         the output file.
52744         * lib/uniname/uninames.h: Regenerated.
52745
52746 2007-07-14  Karl Berry  <karl@gnu.org>
52747
52748         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
52749         omitting sectioning and index commands.
52750
52751 2007-07-13  Bruno Haible  <bruno@clisp.org>
52752
52753         New gnulib-tool option --more-symlinks.
52754         * gnulib-tool (func_usage): Document --more-symlinks.
52755         (do_copyrights): New variable.
52756         Recognize option --more-symlinks.
52757         (func_import): Don't add a copyright notice transform to
52758         sed_transform_lib_file if do_copyrights is empty.
52759
52760 2007-07-13  Bruno Haible  <bruno@clisp.org>
52761
52762         * lib/vasnprintf.c (decimal_point_char): Define also if
52763         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
52764         && !NEED_PRINTF_DIRECTIVE_A.
52765         Reported by Clemens Koller <clemens.koller@anagramm.de> via
52766         Gary V. Vaughan <gary@gnu.org>.
52767
52768 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
52769
52770         * lib/inttypes_.h: Undo previous change, since it was fixed
52771         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
52772
52773 2007-07-13  Bruno Haible  <bruno@clisp.org>
52774
52775         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
52776         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
52777
52778 2007-07-13  Jim Meyering  <jim@meyering.net>
52779
52780         df: Don't fail for Tru64's "file-on-file mount".
52781         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
52782         so we fall through and use statfs instead.  Details here:
52783         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
52784         Reported by Albert Chin.
52785
52786 2007-07-13  Bruno Haible  <bruno@clisp.org>
52787
52788         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
52789         * modules/configmake (License): Likewise.
52790         * modules/gettext (License): Likewise.
52791         * modules/gettext-h (License): Likewise.
52792         * modules/include_next (License): Likewise.
52793         * modules/link-warning (License): Likewise.
52794         * modules/localcharset (License): Likewise.
52795         * modules/localename (License): Likewise.
52796         * modules/lock (License): Likewise.
52797         * modules/relocatable-lib-lgpl (License): Likewise.
52798         * modules/size_max (License): Likewise.
52799         * modules/vasnprintf (License): Likewise.
52800         * modules/wchar (License): Likewise.
52801         * modules/xsize (License): Likewise.
52802
52803 2007-07-13  Bruno Haible  <bruno@clisp.org>
52804
52805         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
52806         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
52807
52808 2007-07-12  Bruno Haible  <bruno@clisp.org>
52809
52810         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
52811         in the modules files.
52812
52813 2007-07-11  Karl Berry  <karl@gnu.org>
52814
52815         * MODULES.html.sh (func_module): use
52816          sed -e '\|^'"${includefile}"'$|d'
52817          instead of /.../d, to avoid errors on $includefile's containing /.
52818
52819 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
52820
52821         * gnulib-tool (func_import): Avoid duplication of --avoid
52822         statements
52823         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
52824         names to `_' in variable names.
52825
52826 2007-07-10  Eric Blake  <ebb9@byu.net>
52827
52828         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
52829         * NEWS: Document this change.
52830
52831 2007-07-08  Bruno Haible  <bruno@clisp.org>
52832
52833         Update to Unicode 5.0.
52834         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
52835         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
52836         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
52837         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
52838         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
52839         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
52840         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
52841         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
52842         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
52843         U+10A3F, U+1D242..U+1D244.
52844         (nonspacing_table_ind): Update.
52845         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
52846         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
52847
52848 2007-07-08  Bruno Haible  <bruno@clisp.org>
52849
52850         Update to Unicode 5.0.
52851         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
52852         code transform. Extend the name index field of unicode_name_to_code and
52853         unicode_code_to_name from 16 to 24 bits.
52854         * lib/uniname/uniname.c (unicode_character_name,
52855         unicode_name_character): Add the range 0x12xxx to the code transform.
52856         * lib/uniname/uninames.h: Regenerated.
52857         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
52858
52859 2007-07-07  Bruno Haible  <bruno@clisp.org>
52860
52861         * modules/wcwidth-tests: New file.
52862         * tests/test-wcwidth.c: New file.
52863
52864         Work around MacOS X wcwidth() bug.
52865         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
52866         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
52867         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
52868         original wcwidth in non-UTF-8 locales.
52869         * modules/wcwidth (Depends-on): Add localcharset, streq,
52870         uniwidth/width.
52871         * doc/functions/wcwidth.texi: Update.
52872
52873 2007-07-07  Bruno Haible  <bruno@clisp.org>
52874
52875         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
52876         (wcwidth): New declaration.
52877         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
52878         macros.
52879         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
52880         here. Prepare for creating <wchar.h> unconditionally.
52881         * modules/wchar (Depends-on): Add link-warning.
52882         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
52883         REPLACE_WCWIDTH, and GL_LINK_WARNING.
52884         * lib/wcwidth.h: Remove file.
52885         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
52886         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
52887         * modules/wcwidth (Files): Remove lib/wcwidth.h.
52888         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
52889         (Include): Replace wcwidth.h with <wchar.h>.
52890         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
52891         * lib/mbchar.h: Don't include wcwidth.h.
52892         * lib/mbswidth.c: Likewise.
52893         * NEWS: Mention the change.
52894
52895 2007-07-07  Bruno Haible  <bruno@clisp.org>
52896
52897         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
52898         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
52899         definition with an external declaration.
52900         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
52901         defined as a function. Remove AC_C_INLINE requirement.
52902         * modules/wcwidth (Files): Add lib/wcwidth.c.
52903         (Makefile.am): Remove redundant statement.
52904
52905 2007-07-07  Bruno Haible  <bruno@clisp.org>
52906
52907         * MODULES.html.sh (Unicode string functions): Add the new modules.
52908
52909         * tests/uniwidth/test-u32-strwidth.c: New file.
52910         * modules/uniwidth/u32-strwidth-tests: New file.
52911
52912         * lib/uniwidth/u32-strwidth.c: New file.
52913         * modules/uniwidth/u32-strwidth: New file.
52914
52915         * tests/uniwidth/test-u16-strwidth.c: New file.
52916         * modules/uniwidth/u16-strwidth-tests: New file.
52917
52918         * lib/uniwidth/u16-strwidth.c: New file.
52919         * modules/uniwidth/u16-strwidth: New file.
52920
52921         * tests/uniwidth/test-u8-strwidth.c: New file.
52922         * modules/uniwidth/u8-strwidth-tests: New file.
52923
52924         * lib/uniwidth/u8-strwidth.c: New file.
52925         * modules/uniwidth/u8-strwidth: New file.
52926
52927         * tests/uniwidth/test-u32-width.c: New file.
52928         * modules/uniwidth/u32-width-tests: New file.
52929
52930         * lib/uniwidth/u32-width.c: New file.
52931         * modules/uniwidth/u32-width: New file.
52932
52933         * tests/uniwidth/test-u16-width.c: New file.
52934         * modules/uniwidth/u16-width-tests: New file.
52935
52936         * lib/uniwidth/u16-width.c: New file.
52937         * modules/uniwidth/u16-width: New file.
52938
52939         * tests/uniwidth/test-u8-width.c: New file.
52940         * modules/uniwidth/u8-width-tests: New file.
52941
52942         * lib/uniwidth/u8-width.c: New file.
52943         * modules/uniwidth/u8-width: New file.
52944
52945         * tests/uniwidth/test-uc_width.c: New file.
52946         * modules/uniwidth/width-tests: New file.
52947
52948         * lib/uniwidth/width.c: New file, from GNU libiconv.
52949         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
52950         * modules/uniwidth/width: New file.
52951
52952         * lib/uniwidth.h: New file, from GNU libiconv.
52953         * modules/uniwidth/base: New file.
52954
52955 2007-07-07  Bruno Haible  <bruno@clisp.org>
52956
52957         * lib/uniname.h: New file, from GNU gettext.
52958         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
52959         * lib/uniname/uninames.h: New file, from GNU gettext.
52960         * lib/uniname/uniname.c: New file, from GNU gettext.
52961         * tests/uniname/test-uninames.sh: New file.
52962         * tests/uniname/test-uninames.c: New file, from GNU gettext.
52963         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
52964         * modules/uniname/base: New file.
52965         * modules/uniname/uniname: New file.
52966         * modules/uniname/uniname-tests: New file.
52967         * MODULES.html.sh (Unicode string functions): Add the new modules.
52968
52969 2007-07-06  Bruno Haible  <bruno@clisp.org>
52970
52971         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
52972
52973 2007-07-06  Bruno Haible  <bruno@clisp.org>
52974
52975         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
52976         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
52977         includes <cygwin/sys_time.h> which includes <sys/select.h> which
52978         include <sys/time.h>.
52979         Reported by Eric Blake.
52980
52981 2007-07-06  Eric Blake  <ebb9@byu.net>
52982
52983         Fix testing canonicalize on cygwin.
52984         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
52985         Revert patch from 2007-06-19.
52986         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
52987         canonicalize module is also in use.
52988         * tests/test-canonicalize.c: New file.
52989         * tests/test-canonicalize.sh: Likewise.
52990         * modules/canonicalize-tests: Likewise.
52991
52992 2007-07-06  Jim Meyering  <jim@meyering.net>
52993
52994         * lib/getugroups.c (getugroups): Detect getgrent failure.
52995         Adjust comment to reflect reality: this function may return -1.
52996
52997 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
52998
52999         * build-aux/bootstrap (TP_URL,get_translations): Update to use
53000         the new TP address.
53001         (usage): Fix typo
53002         (gnulib_mk): New variable.
53003
53004 2007-07-05  Jim Meyering  <jim@meyering.net>
53005
53006         Don't let endgrent clobber errno, no matter how improbable.
53007         * lib/getugroups.c (getugroups): Save and restore errno around
53008         endgrent call.
53009
53010         Close the group DB even when failing with 2^31 or more members.
53011         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
53012
53013 2007-07-04  Jim Meyering  <jim@meyering.net>
53014
53015         * lib/getugroups.h: New file.
53016         * lib/getugroups.c: Include "getugroups.h".
53017         Remove uses of "register" keyword.
53018         Move local variable, "cp", down into scope where used.
53019         Give "username" parameter the "const" attribute.
53020         * modules/getugroups (Files): Add lib/getugroups.h
53021
53022 2007-07-04  Karl Berry  <karl@gnu.org>
53023
53024         * MODULES.html.sh (func_all_modules): Complete rename of
53025         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
53026
53027 2007-07-02  Bruno Haible  <bruno@clisp.org>
53028
53029         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
53030         mode, when inttypes.h comes from gnulib.
53031         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
53032
53033 2007-07-02  Simon Josefsson  <simon@josefsson.org>
53034
53035         * NEWS: Mention lgpl module name change.
53036
53037         * modules/lgpl-2.1: Renamed from lgpl.
53038
53039         * NEWS: Mention gpl module name change.
53040
53041         * modules/gpl-3.0: New file, based on gpl-2.0.
53042
53043         * modules/gpl-2.0: Renamed from gpl.
53044
53045         * modules/gpl: Fix filename, doc/gpl.texi is now found at
53046         doc/gpl-2.0.texi.
53047
53048 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
53049
53050         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
53051         #define __STDC_LIMIT_MACROS temporarily while including
53052         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
53053         Problem reported by Joel E. Denny in
53054         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
53055
53056 2007-07-01  Bruno Haible  <bruno@clisp.org>
53057
53058         * lib/unistdio.h: New file.
53059         * lib/unistdio/u-asnprintf.h: New file.
53060         * lib/unistdio/u-asprintf.h: New file.
53061         * lib/unistdio/u-printf-args.c: New file.
53062         * lib/unistdio/u-printf-args.h: New file.
53063         * lib/unistdio/u-printf-parse.h: New file.
53064         * lib/unistdio/u-snprintf.h: New file.
53065         * lib/unistdio/u-sprintf.h: New file.
53066         * lib/unistdio/u-vasprintf.h: New file.
53067         * lib/unistdio/u-vsnprintf.h: New file.
53068         * lib/unistdio/u-vsprintf.h: New file.
53069         * lib/unistdio/ulc-asnprintf.c: New file.
53070         * lib/unistdio/ulc-asprintf.c: New file.
53071         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
53072         * lib/unistdio/ulc-printf-parse.c: New file.
53073         * lib/unistdio/ulc-snprintf.c: New file.
53074         * lib/unistdio/ulc-sprintf.c: New file.
53075         * lib/unistdio/ulc-vasnprintf.c: New file.
53076         * lib/unistdio/ulc-vasprintf.c: New file.
53077         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
53078         * lib/unistdio/ulc-vsnprintf.c: New file.
53079         * lib/unistdio/ulc-vsprintf.c: New file.
53080         * lib/unistdio/u8-asnprintf.c: New file.
53081         * lib/unistdio/u8-asprintf.c: New file.
53082         * lib/unistdio/u8-printf-parse.c: New file.
53083         * lib/unistdio/u8-snprintf.c: New file.
53084         * lib/unistdio/u8-sprintf.c: New file.
53085         * lib/unistdio/u8-vasnprintf.c: New file.
53086         * lib/unistdio/u8-vasprintf.c: New file.
53087         * lib/unistdio/u8-vsnprintf.c: New file.
53088         * lib/unistdio/u8-vsprintf.c: New file.
53089         * lib/unistdio/u8-u8-asnprintf.c: New file.
53090         * lib/unistdio/u8-u8-asprintf.c: New file.
53091         * lib/unistdio/u8-u8-snprintf.c: New file.
53092         * lib/unistdio/u8-u8-sprintf.c: New file.
53093         * lib/unistdio/u8-u8-vasnprintf.c: New file.
53094         * lib/unistdio/u8-u8-vasprintf.c: New file.
53095         * lib/unistdio/u8-u8-vsnprintf.c: New file.
53096         * lib/unistdio/u8-u8-vsprintf.c: New file.
53097         * lib/unistdio/u16-asnprintf.c: New file.
53098         * lib/unistdio/u16-asprintf.c: New file.
53099         * lib/unistdio/u16-printf-parse.c: New file.
53100         * lib/unistdio/u16-snprintf.c: New file.
53101         * lib/unistdio/u16-sprintf.c: New file.
53102         * lib/unistdio/u16-vasnprintf.c: New file.
53103         * lib/unistdio/u16-vasprintf.c: New file.
53104         * lib/unistdio/u16-vsnprintf.c: New file.
53105         * lib/unistdio/u16-vsprintf.c: New file.
53106         * lib/unistdio/u16-u16-asnprintf.c: New file.
53107         * lib/unistdio/u16-u16-asprintf.c: New file.
53108         * lib/unistdio/u16-u16-snprintf.c: New file.
53109         * lib/unistdio/u16-u16-sprintf.c: New file.
53110         * lib/unistdio/u16-u16-vasnprintf.c: New file.
53111         * lib/unistdio/u16-u16-vasprintf.c: New file.
53112         * lib/unistdio/u16-u16-vsnprintf.c: New file.
53113         * lib/unistdio/u16-u16-vsprintf.c: New file.
53114         * lib/unistdio/u32-asnprintf.c: New file.
53115         * lib/unistdio/u32-asprintf.c: New file.
53116         * lib/unistdio/u32-printf-parse.c: New file.
53117         * lib/unistdio/u32-snprintf.c: New file.
53118         * lib/unistdio/u32-sprintf.c: New file.
53119         * lib/unistdio/u32-vasnprintf.c: New file.
53120         * lib/unistdio/u32-vasprintf.c: New file.
53121         * lib/unistdio/u32-vsnprintf.c: New file.
53122         * lib/unistdio/u32-vsprintf.c: New file.
53123         * lib/unistdio/u32-u32-asnprintf.c: New file.
53124         * lib/unistdio/u32-u32-asprintf.c: New file.
53125         * lib/unistdio/u32-u32-snprintf.c: New file.
53126         * lib/unistdio/u32-u32-sprintf.c: New file.
53127         * lib/unistdio/u32-u32-vasnprintf.c: New file.
53128         * lib/unistdio/u32-u32-vasprintf.c: New file.
53129         * lib/unistdio/u32-u32-vsnprintf.c: New file.
53130         * lib/unistdio/u32-u32-vsprintf.c: New file.
53131         * tests/unistdio/test-ulc-asnprintf1.c: New file.
53132         * tests/unistdio/test-ulc-asnprintf1.h: New file.
53133         * tests/unistdio/test-ulc-printf1.h: New file.
53134         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
53135         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
53136         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
53137         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
53138         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
53139         * tests/unistdio/test-ulc-vasprintf1.c: New file.
53140         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
53141         * tests/unistdio/test-ulc-vsprintf1.c: New file.
53142         * tests/unistdio/test-u8-asnprintf1.c: New file.
53143         * tests/unistdio/test-u8-asnprintf1.h: New file.
53144         * tests/unistdio/test-u8-printf1.h: New file.
53145         * tests/unistdio/test-u8-vasnprintf1.c: New file.
53146         * tests/unistdio/test-u8-vasnprintf2.c: New file.
53147         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
53148         * tests/unistdio/test-u8-vasnprintf3.c: New file.
53149         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
53150         * tests/unistdio/test-u8-vasprintf1.c: New file.
53151         * tests/unistdio/test-u8-vsnprintf1.c: New file.
53152         * tests/unistdio/test-u8-vsprintf1.c: New file.
53153         * tests/unistdio/test-u16-asnprintf1.c: New file.
53154         * tests/unistdio/test-u16-asnprintf1.h: New file.
53155         * tests/unistdio/test-u16-printf1.h: New file.
53156         * tests/unistdio/test-u16-vasnprintf1.c: New file.
53157         * tests/unistdio/test-u16-vasnprintf2.c: New file.
53158         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
53159         * tests/unistdio/test-u16-vasnprintf3.c: New file.
53160         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
53161         * tests/unistdio/test-u16-vasprintf1.c: New file.
53162         * tests/unistdio/test-u16-vsnprintf1.c: New file.
53163         * tests/unistdio/test-u16-vsprintf1.c: New file.
53164         * tests/unistdio/test-u32-asnprintf1.c: New file.
53165         * tests/unistdio/test-u32-asnprintf1.h: New file.
53166         * tests/unistdio/test-u32-printf1.h: New file.
53167         * tests/unistdio/test-u32-vasnprintf1.c: New file.
53168         * tests/unistdio/test-u32-vasnprintf2.c: New file.
53169         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
53170         * tests/unistdio/test-u32-vasnprintf3.c: New file.
53171         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
53172         * tests/unistdio/test-u32-vasprintf1.c: New file.
53173         * tests/unistdio/test-u32-vsnprintf1.c: New file.
53174         * tests/unistdio/test-u32-vsprintf1.c: New file.
53175         * modules/unistdio/base: New file.
53176         * modules/unistdio/u-printf-args: New file.
53177         * modules/unistdio/ulc-asnprintf: New file.
53178         * modules/unistdio/ulc-asprintf: New file.
53179         * modules/unistdio/ulc-fprintf: New file.
53180         * modules/unistdio/ulc-printf-parse: New file.
53181         * modules/unistdio/ulc-snprintf: New file.
53182         * modules/unistdio/ulc-sprintf: New file.
53183         * modules/unistdio/ulc-vasnprintf: New file.
53184         * modules/unistdio/ulc-vasprintf: New file.
53185         * modules/unistdio/ulc-vfprintf: New file.
53186         * modules/unistdio/ulc-vsnprintf: New file.
53187         * modules/unistdio/ulc-vsprintf: New file.
53188         * modules/unistdio/u8-asnprintf: New file.
53189         * modules/unistdio/u8-asprintf: New file.
53190         * modules/unistdio/u8-printf-parse: New file.
53191         * modules/unistdio/u8-snprintf: New file.
53192         * modules/unistdio/u8-sprintf: New file.
53193         * modules/unistdio/u8-vasnprintf: New file.
53194         * modules/unistdio/u8-vasprintf: New file.
53195         * modules/unistdio/u8-vsnprintf: New file.
53196         * modules/unistdio/u8-vsprintf: New file.
53197         * modules/unistdio/u8-u8-asnprintf: New file.
53198         * modules/unistdio/u8-u8-asprintf: New file.
53199         * modules/unistdio/u8-u8-snprintf: New file.
53200         * modules/unistdio/u8-u8-sprintf: New file.
53201         * modules/unistdio/u8-u8-vasnprintf: New file.
53202         * modules/unistdio/u8-u8-vasprintf: New file.
53203         * modules/unistdio/u8-u8-vsnprintf: New file.
53204         * modules/unistdio/u8-u8-vsprintf: New file.
53205         * modules/unistdio/u16-asnprintf: New file.
53206         * modules/unistdio/u16-asprintf: New file.
53207         * modules/unistdio/u16-printf-parse: New file.
53208         * modules/unistdio/u16-snprintf: New file.
53209         * modules/unistdio/u16-sprintf: New file.
53210         * modules/unistdio/u16-vasnprintf: New file.
53211         * modules/unistdio/u16-vasprintf: New file.
53212         * modules/unistdio/u16-vsnprintf: New file.
53213         * modules/unistdio/u16-vsprintf: New file.
53214         * modules/unistdio/u16-u16-asnprintf: New file.
53215         * modules/unistdio/u16-u16-asprintf: New file.
53216         * modules/unistdio/u16-u16-snprintf: New file.
53217         * modules/unistdio/u16-u16-sprintf: New file.
53218         * modules/unistdio/u16-u16-vasnprintf: New file.
53219         * modules/unistdio/u16-u16-vasprintf: New file.
53220         * modules/unistdio/u16-u16-vsnprintf: New file.
53221         * modules/unistdio/u16-u16-vsprintf: New file.
53222         * modules/unistdio/u32-asnprintf: New file.
53223         * modules/unistdio/u32-asprintf: New file.
53224         * modules/unistdio/u32-printf-parse: New file.
53225         * modules/unistdio/u32-snprintf: New file.
53226         * modules/unistdio/u32-sprintf: New file.
53227         * modules/unistdio/u32-vasnprintf: New file.
53228         * modules/unistdio/u32-vasprintf: New file.
53229         * modules/unistdio/u32-vsnprintf: New file.
53230         * modules/unistdio/u32-vsprintf: New file.
53231         * modules/unistdio/u32-u32-asnprintf: New file.
53232         * modules/unistdio/u32-u32-asprintf: New file.
53233         * modules/unistdio/u32-u32-snprintf: New file.
53234         * modules/unistdio/u32-u32-sprintf: New file.
53235         * modules/unistdio/u32-u32-vasnprintf: New file.
53236         * modules/unistdio/u32-u32-vasprintf: New file.
53237         * modules/unistdio/u32-u32-vsnprintf: New file.
53238         * modules/unistdio/u32-u32-vsprintf: New file.
53239         * modules/unistdio/ulc-asnprintf-tests: New file.
53240         * modules/unistdio/ulc-vasnprintf-tests: New file.
53241         * modules/unistdio/ulc-vasprintf-tests: New file.
53242         * modules/unistdio/ulc-vsnprintf-tests: New file.
53243         * modules/unistdio/ulc-vsprintf-tests: New file.
53244         * modules/unistdio/u8-asnprintf-tests: New file.
53245         * modules/unistdio/u8-vasnprintf-tests: New file.
53246         * modules/unistdio/u8-vasprintf-tests: New file.
53247         * modules/unistdio/u8-vsnprintf-tests: New file.
53248         * modules/unistdio/u8-vsprintf-tests: New file.
53249         * modules/unistdio/u16-asnprintf-tests: New file.
53250         * modules/unistdio/u16-vasnprintf-tests: New file.
53251         * modules/unistdio/u16-vasprintf-tests: New file.
53252         * modules/unistdio/u16-vsnprintf-tests: New file.
53253         * modules/unistdio/u16-vsprintf-tests: New file.
53254         * modules/unistdio/u32-asnprintf-tests: New file.
53255         * modules/unistdio/u32-vasnprintf-tests: New file.
53256         * modules/unistdio/u32-vasprintf-tests: New file.
53257         * modules/unistdio/u32-vsnprintf-tests: New file.
53258         * modules/unistdio/u32-vsprintf-tests: New file.
53259         * MODULES.html.sh (Unicode string functions): Add the new modules.
53260
53261 2007-07-01  Bruno Haible  <bruno@clisp.org>
53262
53263         * lib/sprintf.c (sprintf): Limit the available length estimation,
53264         to avoid address wraparound.
53265         * lib/vsprintf.c (vsprintf): Likewise.
53266         * modules/sprintf-posix (Dependencies): Add stdint.
53267         * modules/vsprintf-posix (Dependencies): Likewise.
53268
53269 2007-07-01  Bruno Haible  <bruno@clisp.org>
53270
53271         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
53272         Windows PATH as well. Conservative double-quoting. Comments.
53273
53274 2007-07-01  Bruno Haible  <bruno@clisp.org>
53275             Eric Blake  <ebb9@byu.net>
53276             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53277
53278         * gnulib-tool (self_abspathname): Fix algorithm to cope with
53279         empty components in $PATH, denoting '.'.
53280
53281 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53282
53283         * gnulib-tool: Fix indentation.
53284         (func_create_megatestdir): Likewise.
53285         Report by Bruno Haible.
53286
53287 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53288
53289         Sync from Automake.
53290         * build-aux/gnupload: Fix shell portability issues with for loops.
53291         Report by Karl Berry.
53292
53293 2007-06-29  Simon Josefsson  <simon@josefsson.org>
53294
53295         * build-aux/maint.mk (POURL): Use translationproject.org.
53296
53297 2007-06-27  Simon Josefsson  <simon@josefsson.org>
53298             Bruno Haible  <bruno@clisp.org>
53299
53300         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
53301         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
53302         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
53303         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
53304         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
53305
53306 2007-06-27  Bruno Haible  <bruno@clisp.org>
53307
53308         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
53309         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
53310
53311 2007-06-26  Karl Berry  <karl@gnu.org>
53312
53313         * MODULES.html.sh: remove xreadlink-with-size.
53314
53315 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
53316
53317         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
53318         method that I hope also handles the double-include problem noted
53319         by Bruno Haible in
53320         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
53321
53322 2007-06-23  Bruno Haible  <bruno@clisp.org>
53323
53324         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
53325         Don't let the 'mostlyclean' target fail if the last subdirectory could
53326         not be removed.
53327         Reported by Karl Berry.
53328
53329 2007-06-23  Bruno Haible  <bruno@clisp.org>
53330
53331         * gnulib-tool (echo): Add a speedier workaround for ksh.
53332         * tests/test-echo.sh: Likewise.
53333
53334 2007-06-23  Bruno Haible  <bruno@clisp.org>
53335
53336         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
53337         * tests/test-echo.sh: Likewise.
53338
53339 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53340
53341         * gnulib-tool (IFS): Initialize early, so we don't set it to
53342         empty later.
53343         (self_abspathname): Rewrite algorithm to set it, reindent.
53344         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
53345         (func_create_megatestdir): Merge some sed scripts.
53346
53347 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
53348
53349         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
53350         exposed by Sun Studio 11 cc on Solaris 8.
53351
53352 2007-06-22  Bruno Haible  <bruno@clisp.org>
53353
53354         * gnulib-tool (echo): Ensure the echo primitive does not interpret
53355         backslashes.
53356         * tests/test-echo.sh: New file.
53357
53358 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53359
53360         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
53361         simplify `sed_replace_build_aux' scripts, they are portable but
53362         echoing them with `echo' is not.
53363         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
53364
53365 2007-06-21  Karl Berry  <karl@gnu.org>
53366
53367         * config/srclist.txt: guess we can't handle the licenses via
53368         srclist at the moment.
53369
53370 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
53371
53372         * MODULES.html.sh: Add include_next.
53373         * modules/include_next: New file.
53374
53375 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
53376
53377         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
53378         INCLUDE_NEXT.
53379         (gl_CHECK_NEXT_HEADERS): New macro.
53380         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
53381         the obsolescent gl_ABSOLUTE_HEADER.
53382         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
53383         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
53384         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
53385         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
53386         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
53387         * m4/math_h.m4 (gl_MATH_H): Likewise.
53388         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
53389         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
53390         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
53391         * m4/stdint.m4 (gl_STDINT_H): Likewise.
53392         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
53393         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
53394         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
53395         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
53396         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
53397         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
53398         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
53399         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
53400         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
53401         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
53402         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
53403         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
53404         * m4/inttypes.m4 (gl_INTTYPES_H): Define
53405         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
53406         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
53407         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
53408         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
53409         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
53410         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
53411         * lib/float_.h: Likewise.
53412         * lib/inttypes_.h: Likewise.
53413         * lib/math_.h: Likewise.
53414         * lib/search_.h: Likewise.
53415         * lib/signal_.h: Likewise.
53416         * lib/stdint_.h: Likewise.
53417         * lib/stdio_.h: Likewise.
53418         * lib/stdlib_.h: Likewise.
53419         * lib/string_.h: Likewise.
53420         * lib/sys_stat_.h: Likewise.
53421         * lib/sys_time_.h: Likewise.
53422         * lib/time_.h: Likewise.
53423         * lib/unistd_.h: Likewise.
53424         * lib/wchar_.h: Likewise.
53425         * lib/wctype_.h: Likewise.
53426         * lib/dirent_.h: Likewise.
53427         * lib/iconv_.h: Likewise.
53428         * lib/locale_.h: Likewise.
53429         * lib/netinet_in_.h: Likewise.
53430         * lib/sys_select_.h: Likewise.
53431         * lib/sys_socket_.h: Likewise.
53432         * lib/sysexits_.h: Likewise.
53433         * modules/fcntl (Depends-on): Depend on include_next, not
53434         absolute_header.
53435         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
53436         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
53437         * modules/fchdir: Likewise.
53438         * modules/float: Likewise.
53439         * modules/iconv_open: Likewise.
53440         * modules/inttypes: Likewise.
53441         * modules/locale: Likewise.
53442         * modules/math: Likewise.
53443         * modules/netinet_in: Likewise.
53444         * modules/search: Likewise.
53445         * modules/signal: Likewise.
53446         * modules/stdint: Likewise.
53447         * modules/stdio: Likewise.
53448         * modules/stdlib: Likewise.
53449         * modules/string: Likewise.
53450         * modules/sys_select: Likewise.
53451         * modules/sys_socket: Likewise.
53452         * modules/sys_stat: Likewise.
53453         * modules/sys_time: Likewise.
53454         * modules/sysexits: Likewise.
53455         * modules/time: Likewise.
53456         * modules/unistd: Likewise.
53457         * modules/wchar: Likewise.
53458         * modules/wctype: Likewise.
53459         * modules/sys_stat: Change maintainer to "all".
53460         * modules/unistd: Likewise.
53461
53462 2007-06-20  Karl Berry  <karl@gnu.org>
53463
53464         * config/srclist.txt: track www changes in license files.
53465
53466 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
53467
53468         * build-aux/bootstrap: Remove stray dot.
53469         Make sure build_aux settings are honored when linking
53470         gnulib_extra_files.
53471
53472 2007-06-19  Eric Blake  <ebb9@byu.net>
53473
53474         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
53475         Allow compilation on cygwin.
53476
53477 2007-06-19  Jim Meyering  <jim@meyering.net>
53478
53479         xreadlink-with-size: Remove module.  No longer used.
53480         Ex-callers now use xreadlink or mreadlink-with-size.
53481         * modules/xreadlink-with-size: Remove module.
53482         * lib/xreadlink-with-size.c: Remove file.
53483         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
53484         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
53485         just before the function definition *is* accurate.
53486
53487         Eliminate one way canonicalize_filename_mode could exit.
53488         * lib/canonicalize.c (canonicalize_filename_mode):
53489         Use mreadlink_with_size, not xreadlink_with_size.
53490
53491 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
53492
53493         Detect porting problems to FreeBSD/arm, which has time_t wider than
53494         long int.  Original problem reported for GNU diff by Xin Li in
53495         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
53496         * modules/getdate (Depends-on): Add intprops, verify.
53497         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
53498         is an integer type no wider than long int.
53499
53500 2007-06-18  Jim Meyering  <jim@meyering.net>
53501
53502         New module: mreadlink-with-size.
53503         * MODULES.html.sh: Add mreadlink-with-size.
53504         * modules/mreadlink-with-size: New module
53505         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
53506         not xreadlink-with-size.
53507         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
53508
53509 2007-06-16  Bruno Haible  <bruno@clisp.org>
53510
53511         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
53512         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
53513         Reported by Gary V. Vaughan <gary@gnu.org>.
53514
53515 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
53516
53517         Revamp lchown so that it lives in unistd.h where it belongs.
53518         * lib/lchown.h: Remove.
53519         * lib/dirchownmod.c: Don't include lib/lchown.h.
53520         * lib/fchownat.c: Likewise.
53521         * lib/openat.c: Likewise.
53522         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
53523         does not follow symlinks.
53524         (EOPNOTSUPP): Define if not defined.
53525         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
53526         is defined to 0.
53527         (lchown): New decl.
53528         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
53529         Do not check for lchown decl.
53530         Set REPLACE_LCHOWN.
53531         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
53532         REPLACE_LCHOWN.
53533         * modules/chown: Make it clear it follows symlinks.
53534         * modules/lchown: Make it clear it doesn't follow symlinks.
53535         (Files): Remove lib/lchown.h
53536         (Depends-on): Add unistd.
53537         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
53538         (Include): Include <unistd.h>, not "lchown.h".
53539         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
53540         REPLACE_LCHOWN.
53541
53542 2007-06-15  Jim Meyering  <jim@meyering.net>
53543
53544         Change license (GPL to LGPL) of fsusage and dependents.
53545         * modules/fsusage (License): Change to LGPL.
53546         * modules/full-read (License): Likewise.
53547         * modules/full-write (License): Likewise.
53548         * modules/safe-read (License): Likewise.
53549         * modules/safe-write (License): Likewise.
53550
53551 2007-06-14  Ben Pfaff  <blp@gnu.org>
53552
53553         Missing part of allocsa -> malloca transition.
53554         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
53555         gl_MALLOCA.
53556
53557 2007-06-12  Bruno Haible  <bruno@clisp.org>
53558
53559         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
53560         to ia64, x86_64, i386.
53561         Reported by Eric Blake.
53562
53563 2007-06-12  Bruno Haible  <bruno@clisp.org>
53564
53565         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
53566         cross-compiling to x86_64.
53567
53568 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
53569
53570         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
53571         glitch reported by Ralf Wildenhues in
53572         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
53573
53574         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
53575         Vin Shelton.
53576
53577 2007-06-11  Bruno Haible  <bruno@clisp.org>
53578
53579         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
53580         replacement string.
53581         Reported by Eric Blake.
53582
53583 2007-06-10  Bruno Haible  <bruno@clisp.org>
53584
53585         Prepare vasnprintf code for use with Unicode strings.
53586         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
53587         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
53588         TYPE_U32_STRING.
53589         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
53590         a_u32_string variants.
53591         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
53592         * lib/printf-args.c: Don't include config.h and the specification
53593         header if PRINTF_FETCHARGS is already defined.
53594         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
53595         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
53596         TYPE_U16_STRING, TYPE_U32_STRING.
53597         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
53598         u16_directive, u16_directives, u32_directive, u32_directives): New
53599         types.
53600         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
53601         New declarations.
53602         * lib/printf-parse.c: Don't include config.h and the specification
53603         header if PRINTF_PARSE is already defined. Eliminate the set of
53604         parameters for WIDE_CHAR_VERSION; the user of this file must provide
53605         them now. Include c-ctype.h.
53606         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
53607         directive and CHAR_T_ONLY_ASCII.
53608         * lib/vasnprintf.c: Don't include config.h and the specification header
53609         if VASNPRINTF is already defined.
53610         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
53611         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
53612         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
53613         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
53614         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
53615         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
53616         code accordingly.
53617         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
53618         pad_ourselves also in this case, with the 'c' and 's' directives, and
53619         with a different notion of "width".
53620         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
53621
53622 2007-06-10  Bruno Haible  <bruno@clisp.org>
53623
53624         * modules/unistr/u32-mbsnlen: New file.
53625         * lib/unistr/u32-mbsnlen.c: New file.
53626
53627         * modules/unistr/u16-mbsnlen: New file.
53628         * lib/unistr/u16-mbsnlen.c: New file.
53629
53630         * modules/unistr/u8-mbsnlen: New file.
53631         * lib/unistr/u8-mbsnlen.c: New file.
53632
53633         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
53634         declarations.
53635
53636 2007-06-10  Bruno Haible  <bruno@clisp.org>
53637
53638         * lib/string_.h (mbsnlen): New declaration.
53639         * lib/mbsnlen.c: New file.
53640         * m4/mbsnlen.m4: New file.
53641         * modules/mbsnlen: New file.
53642         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
53643         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
53644         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
53645
53646 2007-06-10  Bruno Haible  <bruno@clisp.org>
53647
53648         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
53649
53650 2007-06-10  Bruno Haible  <bruno@clisp.org>
53651
53652         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
53653         * lib/mbuiter.h: Likewise.
53654
53655 2007-06-10  Bruno Haible  <bruno@clisp.org>
53656
53657         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
53658         declaration.
53659
53660 2007-06-10  Karl Berry  <karl@gnu.org>
53661
53662         * config/srclist.txt: remove gettext entries, Bruno prefers
53663         to update individually.
53664
53665 2007-06-10  Bruno Haible  <bruno@clisp.org>
53666
53667         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
53668         'maxlen'. Ensure only length + width bytes are allocated, not
53669         length + 1 + width.
53670
53671 2007-06-09  Bruno Haible  <bruno@clisp.org>
53672
53673         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
53674         (CHAR_T): Remove macro.
53675         (VASNPRINTF): Update.
53676
53677 2007-06-09  Bruno Haible  <bruno@clisp.org>
53678
53679         * MODULES.html.sh (Unicode string functions): Add the new modules.
53680
53681         * modules/uniconv/u32-conv-to-enc: New file.
53682         * lib/uniconv/u32-conv-to-enc.c: New file.
53683         * modules/uniconv/u32-conv-to-enc-tests: New file.
53684         * tests/uniconv/test-u32-conv-to-enc.c: New file.
53685
53686         * modules/uniconv/u16-conv-to-enc: New file.
53687         * lib/uniconv/u16-conv-to-enc.c: New file.
53688         * lib/uniconv/u-conv-to-enc.h: New file.
53689         * modules/uniconv/u16-conv-to-enc-tests: New file.
53690         * tests/uniconv/test-u16-conv-to-enc.c: New file.
53691
53692         * modules/uniconv/u8-conv-to-enc: New file.
53693         * lib/uniconv/u8-conv-to-enc.c: New file.
53694         * modules/uniconv/u8-conv-to-enc-tests: New file.
53695         * tests/uniconv/test-u8-conv-to-enc.c: New file.
53696
53697         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
53698         u32_conv_to_encoding): New declarations.
53699
53700 2007-06-09  Bruno Haible  <bruno@clisp.org>
53701
53702         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
53703
53704 2007-06-09  Bruno Haible  <bruno@clisp.org>
53705
53706         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
53707         * modules/malloca: Renamed from modules/allocsa, updated.
53708         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
53709         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
53710         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
53711         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
53712         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
53713         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
53714         * modules/xmalloca: Renamed from modules/xallocsa, updated.
53715         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
53716         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
53717         * modules/c-strcasestr (Depends-on): Update.
53718         * lib/c-strcasestr.c: Update.
53719         * modules/c-strstr (Depends-on): Update.
53720         * lib/c-strstr.c: Update.
53721         * modules/canonicalize-lgpl (Depends-on): Update.
53722         * lib/canonicalize-lgpl.c: Update.
53723         * modules/clean-temp (Depends-on): Update.
53724         * lib/clean-temp.c: Update.
53725         * modules/csharpcomp (Depends-on): Update.
53726         * lib/csharpcomp.c: Update.
53727         * modules/csharpexec (Depends-on): Update.
53728         * lib/csharpexec.c: Update.
53729         * modules/javacomp (Depends-on): Update.
53730         * lib/javacomp.c: Update.
53731         * modules/javaexec (Depends-on): Update.
53732         * lib/javaexec.c: Update.
53733         * modules/mbscasestr (Depends-on): Update.
53734         * lib/mbscasestr.c: Update.
53735         * modules/mbsstr (Depends-on): Update.
53736         * lib/mbsstr.c: Update.
53737         * modules/setenv (Depends-on): Update.
53738         * lib/setenv.c: Update.
53739         * modules/strcasestr (Depends-on): Update.
53740         * lib/strcasestr.c: Update.
53741         * modules/striconveha (Depends-on): Update.
53742         * lib/striconveha.c: Update.
53743         * modules/relocatable-prog-wrapper (Files): Update.
53744         * lib/relocwrapper.c: Update.
53745         * build-aux/install-reloc: Update.
53746         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
53747
53748 2007-06-08  Bruno Haible  <bruno@clisp.org>
53749
53750         Port to uClibc.
53751         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
53752         * lib/fpurge.c (fpurge): Likewise.
53753         * lib/freading.c (freading): Likewise.
53754         * lib/fseeko.c (rpl_fseeko): Likewise.
53755         * lib/fseterr.c (fseterr): Likewise.
53756         * lib/fwriting.c (fwriting): Likewise.
53757         * tests/test-fflush.c (main): Avoid a failure on uClibc.
53758
53759 2007-06-08  Bruno Haible  <bruno@clisp.org>
53760
53761         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
53762         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
53763         * modules/gettext (Files): Add m4/intlmacosx.m4.
53764
53765 2007-06-07  Bruno Haible  <bruno@clisp.org>
53766
53767         * modules/localename-tests: New file.
53768         * tests/test-localename.c: New file.
53769
53770         New module 'localename'.
53771         * lib/localename.h: New file.
53772         * lib/localename.c: New file, from GNU gettext.
53773         * m4/localename.m4: New file.
53774         * modules/localename: New file.
53775
53776 2007-06-07  Bruno Haible  <bruno@clisp.org>
53777
53778         Work around the lack of <wchar.h> on some builds of uClibc.
53779         * doc/headers/wchar.texi: Update.
53780         * lib/wchar_.h: Include <wchar.h> only if it exists.
53781         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
53782         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
53783         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
53784         doesn't exist.
53785         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
53786         * modules/mbfile (Depends-on): Add wchar.
53787         * modules/mbiter (Depends-on): Likewise.
53788         * modules/mbuiter (Depends-on): Likewise.
53789         Reported by Simon Josefsson.
53790
53791 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
53792
53793         Work around problem reported by Steven M. Schweda in
53794         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
53795         Tru64 5.1B with the Compaq compiler environment installed declares
53796         an 'isblank' function but does not define it in the C library.
53797         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
53798         * lib/regex_internal.h (isblank): Likewise.
53799         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
53800         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
53801
53802 2007-06-05  Bruno Haible  <bruno@clisp.org>
53803
53804         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
53805         ia64.
53806         * modules/printf-safe: New file.
53807         * modules/fprintf-posix (Depends-on): Add printf-safe.
53808         * modules/printf-posix (Depends-on): Likewise.
53809         * modules/snprintf-posix (Depends-on): Likewise.
53810         * modules/sprintf-posix (Depends-on): Likewise.
53811         * modules/vasnprintf-posix (Depends-on): Likewise.
53812         * modules/vasprintf-posix (Depends-on): Likewise.
53813         * modules/vfprintf-posix (Depends-on): Likewise.
53814         * modules/vprintf-posix (Depends-on): Likewise.
53815         * modules/vsnprintf-posix (Depends-on): Likewise.
53816         * modules/vsprintf-posix (Depends-on): Likewise.
53817         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
53818         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
53819         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
53820         "no" on i386, x86_64, ia64.
53821         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
53822         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
53823         on i386, x86_64, ia64.
53824         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
53825         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
53826         on i386, x86_64, ia64.
53827         * tests/test-vasnprintf-posix.c: Include float.h.
53828         (LDBL80_WORDS): New macro.
53829         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
53830         on i386, x86_64, ia64.
53831         * tests/test-vasprintf-posix.c: Include float.h.
53832         (LDBL80_WORDS): New macro.
53833         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
53834         on i386, x86_64, ia64.
53835         * tests/test-snprintf-posix.c: Include float.h.
53836         * tests/test-sprintf-posix.c: Likewise.
53837         * tests/test-vsnprintf-posix.c: Likewise.
53838         * tests/test-vsprintf-posix.c: Likewise.
53839
53840 2007-06-05  Bruno Haible  <bruno@clisp.org>
53841
53842         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
53843         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
53844         non-IEEE numbers on i386, x86_64, ia64.
53845         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
53846         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
53847         * tests/test-isnanl.h: Include float.h.
53848         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
53849
53850 2007-06-05  Bruno Haible  <bruno@clisp.org>
53851
53852         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
53853         also the %a / %A. Handle the %a / %A code before this extra handling.
53854
53855 2007-06-05  Bruno Haible  <bruno@clisp.org>
53856
53857         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
53858         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
53859
53860 2007-06-05  Bruno Haible  <bruno@clisp.org>
53861
53862         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
53863         typo in variable name.
53864
53865 2007-06-05  Eric Blake  <ebb9@byu.net>
53866
53867         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
53868         Reported by Simon Josefsson.
53869
53870 2007-06-04  Bruno Haible  <bruno@clisp.org>
53871
53872         Avoid test failures on some PowerPC platforms.
53873         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
53874         Define differently for PowerPC.
53875         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
53876         Reported by Gary V. Vaughan <gary@gnu.org>.
53877
53878 2007-06-02  Bruno Haible  <bruno@clisp.org>
53879
53880         Fix test-stdint failure on FreeBSD/ia64.
53881         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
53882         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
53883         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
53884         * doc/headers/stdint.texi: Update.
53885
53886 2007-06-01  Bruno Haible  <bruno@clisp.org>
53887
53888         * tests/test-binary-io.c (main): Pass a third argument to open().
53889         Reported by Gary V. Vaughan <gary@gnu.org>.
53890
53891 2007-06-01  Bruno Haible  <bruno@clisp.org>
53892
53893         * doc/functions/frexpl.texi: Update for mingw.
53894
53895 2007-06-01  Bruno Haible  <bruno@clisp.org>
53896
53897         * tests/test-lseek.c (main): Disable test of errno for invalid third
53898         argument.
53899         * doc/functions/lseek.texi: Update.
53900         Reported by Gary V. Vaughan <gary@gnu.org>.
53901
53902 2007-05-28  Bruno Haible  <bruno@clisp.org>
53903
53904         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
53905
53906 2007-05-31  Eric Blake  <ebb9@byu.net>
53907
53908         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
53909         cross compiling.
53910
53911 2007-05-30  Eric Blake  <ebb9@byu.net>
53912         and Bruno Haible  <bruno@clisp.org>
53913
53914         Work around mingw test failures exposed by m4-1.4.9b.
53915         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
53916         * tests/test-unistd.c: Disable uid_t and git_t tests for the
53917         moment.
53918
53919 2007-05-30  Bruno Haible  <bruno@clisp.org>
53920
53921         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
53922         assuming that they are closed. Needed on HP-UX 11.
53923
53924 2007-05-29  Bruno Haible  <bruno@clisp.org>
53925
53926         Fix a problem with #include_next.
53927         * lib/dirent_.h: Split the double-inclusion guard.
53928         * lib/fcntl_.h: Likewise.
53929         * lib/float_.h: Likewise.
53930         * lib/iconv_.h: Likewise.
53931         * lib/inttypes_.h: Likewise.
53932         * lib/locale_.h: Likewise.
53933         * lib/math_.h: Likewise.
53934         * lib/netinet_in_.h: Likewise.
53935         * lib/search_.h: Likewise.
53936         * lib/signal_.h: Likewise.
53937         * lib/stdint_.h: Likewise.
53938         * lib/stdio_.h: Likewise.
53939         * lib/stdlib_.h: Likewise.
53940         * lib/string_.h: Likewise.
53941         * lib/sys_select_.h: Likewise.
53942         * lib/sys_socket_.h: Likewise.
53943         * lib/sys_stat_.h: Likewise.
53944         * lib/sys_time_.h: Likewise.
53945         * lib/sysexits_.h: Likewise.
53946         * lib/time_.h: Likewise.
53947         * lib/unistd_.h: Likewise.
53948         * lib/wchar_.h: Likewise.
53949         * lib/wctype_.h: Likewise.
53950
53951 2007-05-29  Bruno Haible  <bruno@clisp.org>
53952
53953         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
53954         for the moment.
53955
53956 2007-05-29  Bruno Haible  <bruno@clisp.org>
53957
53958         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
53959         invocation.
53960         Reported by Eric Blake.
53961
53962 2007-05-29  Bruno Haible  <bruno@clisp.org>
53963
53964         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
53965         compiling case.
53966
53967 2007-05-29  Eric Blake  <ebb9@byu.net>
53968             Bruno Haible  <bruno@clisp.org>
53969
53970         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
53971         cross compiles.
53972
53973 2007-05-28  Eric Blake  <ebb9@byu.net>
53974
53975         * modules/closein-tests (test_closein_LDADD): Support test on
53976         cygwin with libtool.
53977
53978 2007-05-28  Bruno Haible  <bruno@clisp.org>
53979
53980         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
53981         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
53982         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
53983         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
53984         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
53985         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
53986         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
53987         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
53988         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
53989
53990 2007-05-28  Eric Blake  <ebb9@byu.net>
53991
53992         Unconditionally include <config.h> in unit tests.
53993         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
53994         * tests/test-allocsa.c, tests/test-arcfour.c,
53995         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
53996         tests/test-array_list.c, tests/test-array_oset.c,
53997         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
53998         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
53999         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
54000         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
54001         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
54002         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
54003         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
54004         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
54005         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
54006         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
54007         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
54008         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
54009         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
54010         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
54011         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
54012         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
54013         test-md5.c, test-memmem.c, test-printf-posix.c,
54014         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
54015         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
54016         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
54017         test-strcasestr.c, test-striconv.c, test-striconveh.c,
54018         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
54019         test-vasnprintf-posix2.c, test-vasnprintf.c,
54020         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
54021         test-vfprintf-posix.c, test-vprintf-posix.c,
54022         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
54023         test-xvasprintf.c: Likewise.
54024
54025 2007-05-28  Bruno Haible  <bruno@clisp.org>
54026
54027         * gnulib-tool (func_import): Remember the --with-tests command-line
54028         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
54029         Reported by Eric Blake.
54030
54031 2007-05-28  Bruno Haible  <bruno@clisp.org>
54032
54033         * modules/ftell-tests: New file.
54034         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
54035         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
54036
54037         * lib/ftell.c: New file.
54038         * modules/ftell: New file.
54039         * m4/ftell.m4: New file.
54040         * doc/functions/ftell.texi: Update.
54041         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
54042         REPLACE_FTELL.
54043         * lib/stdio_.h (rpl_ftell): New declaration.
54044         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
54045         REPLACE_FTELL.
54046
54047 2007-05-28  Eric Blake  <ebb9@byu.net>
54048
54049         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
54050
54051 2007-05-28  Bruno Haible  <bruno@clisp.org>
54052
54053         * modules/fseek-tests: New file.
54054         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
54055         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
54056
54057         * lib/fseek.c: New file.
54058         * modules/fseek: New file.
54059         * m4/fseek.m4: New file.
54060         * doc/functions/fseek.texi: Update.
54061         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
54062         REPLACE_FSEEK.
54063         * lib/stdio_.h (rpl_fseek): New declaration.
54064         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
54065         REPLACE_FSEEK.
54066
54067 2007-05-28  Bruno Haible  <bruno@clisp.org>
54068
54069         * lib/stdio_.h (fflush): More comments.
54070
54071 2007-05-28  Bruno Haible  <bruno@clisp.org>
54072
54073         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
54074         runtime test.
54075
54076 2007-05-28  Eric Blake  <ebb9@byu.net>
54077
54078         Improve lseek module.
54079         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
54080         * lib/unistd_.h (lseek): Scale back link warning message.
54081         * tests/test-lseek.c: Beef up test.
54082         * tests/test-lseek.sh: Exercise more facets of lseek.
54083         Reported by Bruno Haible.
54084
54085 2007-05-28  Bruno Haible  <bruno@clisp.org>
54086
54087         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
54088         to define.
54089
54090 2007-05-27  Bruno Haible  <bruno@clisp.org>
54091
54092         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
54093
54094 2007-05-27  Bruno Haible  <bruno@clisp.org>
54095
54096         * modules/openmp: New file.
54097         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
54098         Noah Misch.
54099
54100 2007-05-26  Bruno Haible  <bruno@clisp.org>
54101
54102         * modules/chdir-long (Depends-on): Add fchdir.
54103         * modules/chdir-safer (Depends-on): Likewise.
54104         * modules/fts (Depends-on): Likewise.
54105         * modules/fts-lgpl (Depends-on): Likewise.
54106         * modules/openat (Depends-on): Likewise.
54107         * modules/savewd (Depends-on): Likewise.
54108
54109 2007-05-24  Eric Blake  <ebb9@byu.net>
54110
54111         Fix lseek on mingw.
54112         * modules/lseek: New module.
54113         * m4/lseek.m4: New file.
54114         * lib/lseek.c: New file.
54115         * modules/lseek-tests: New file.
54116         * tests/test-lseek.c: New file.
54117         * tests/test-lseek.sh: New file.
54118         * MODULES.html.sh: Document lseek module.
54119         * modules/fflush (Depends-on): Add lseek, fseeko.
54120         * modules/fseeko (Depends-on): Likewise.
54121         * modules/ftello (Depends-on): Likewise.
54122         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
54123         broken.
54124         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
54125         broken.
54126         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
54127         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
54128         * lib/ftello.c (rpl_ftello): Likewise.
54129         * tests/test-fseeko.c (main): Test this.
54130         * tests/test-fseeko.sh: Likewise.
54131         * tests/test-ftello.c (main): Likewise.
54132         * tests/test-ftello.sh: Likewise.
54133         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
54134         implies replacing fseek.
54135         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
54136         HAVE_FTELLO.
54137         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
54138         * modules/unistd (Makefile.am): Likewise.
54139         * lib/unistd_.h (lseek): Declare a replacement.
54140         * doc/functions/lseek.texi (lseek): Document this fix.
54141         * doc/functions/fseek.texi (fseek): Likewise.
54142         * doc/functions/ftell.texi (ftell): Likewise.
54143
54144 2007-05-24  Bruno Haible  <bruno@clisp.org>
54145
54146         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
54147         in the printed representation of a NaN.
54148         * tests/test-vasprintf-posix.c (test_function): Likewise.
54149         * tests/test-snprintf-posix.h (test_function): Likewise.
54150         * tests/test-sprintf-posix.h (test_function): Likewise.
54151         Reported by Eric Blake.
54152
54153 2007-05-23  Eric Blake  <ebb9@byu.net>
54154
54155         Fix fseeko/ftello on cygwin 1.5.24.
54156         * doc/functions/fseeko.texi (fseeko): Document the fix.
54157         * doc/functions/ftello.texi (ftello): Document the fix.
54158         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
54159         * doc/functions/stdout.text (stdout): New file.
54160         * doc/functions/stderr.text (stderr): New file.
54161         * doc/gnulib.texi (Function Substitutes): Use new files.
54162         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
54163         prior to 1.7.0.
54164         * tests/test-ftello.c (main): Likewise for ftello.
54165         * tests/test-fseeko.sh: New file.
54166         * tests/test-ftello.sh: New file.
54167         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
54168         with seekable stdin.
54169         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
54170         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
54171         (gl_REPLACE_FSEEKO): New macro.
54172         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
54173         * modules/fseeko (Files): Distribute fseeko.c.
54174         * modules/ftello (Files): Distribute ftello.c.
54175         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
54176         mode.
54177         * lib/ftello.c (rpl_ftello): New file.
54178         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
54179         fseeko, ftello.
54180         (gl_STDIN_LARGE_OFFSET): New macro.
54181         * modules/stdio (Makefile.am): Perform the replacement.
54182         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
54183
54184 2007-05-23  Bruno Haible  <bruno@clisp.org>
54185
54186         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
54187         GNULIB_POSIXCHECK is defined.
54188
54189 2007-05-21  Bruno Haible  <bruno@clisp.org>
54190
54191         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
54192         Check also the output for NaN arguments. When cross-compiling, guess
54193         no on IRIX.
54194         * lib/vasnprintf.c: Update comments.
54195         * tests/test-vasnprintf-posix.c (strisnan): New function.
54196         (test_function): Use it.
54197         * tests/test-vasprintf-posix.c (strisnan): New function.
54198         (test_function): Use it.
54199         * tests/test-snprintf-posix.h (strisnan): New function.
54200         (test_function): Use it.
54201         * tests/test-sprintf-posix.h (strisnan): New function.
54202         (test_function): Use it.
54203         Reported by Eric Blake.
54204
54205 2007-05-20  Bruno Haible  <bruno@clisp.org>
54206
54207         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
54208         numbers that fails on BeOS.
54209         * doc/functions/frexpl.texi: Update.
54210
54211 2007-05-20  Jim Meyering  <jim@meyering.net>
54212
54213         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
54214         forced upon us by glibc-2.6.
54215
54216 2007-05-20  Bruno Haible  <bruno@clisp.org>
54217
54218         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
54219         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
54220         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
54221         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
54222         NEED_PRINTF_INFINITE.
54223         (is_infinitel): New function.
54224         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
54225         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
54226         gl_PREREQ_VASNPRINTF_INFINITE.
54227         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
54228         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
54229         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
54230         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
54231         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
54232         gl_PREREQ_VASNPRINTF_INFINITE.
54233         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
54234         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
54235         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
54236         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
54237         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
54238         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
54239         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
54240         * doc/functions/fprintf.texi: Update.
54241         * doc/functions/printf.texi: Update.
54242         * doc/functions/snprintf.texi: Update.
54243         * doc/functions/sprintf.texi: Update.
54244         * doc/functions/vfprintf.texi: Update.
54245         * doc/functions/vprintf.texi: Update.
54246         * doc/functions/vsnprintf.texi: Update.
54247         * doc/functions/vsprintf.texi: Update.
54248
54249 2007-05-20  Bruno Haible  <bruno@clisp.org>
54250
54251         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
54252         was not found in libc.
54253         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
54254
54255 2007-05-20  Bruno Haible  <bruno@clisp.org>
54256
54257         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
54258         printed as "-nan" instead of "nan".
54259         * tests/test-vasprintf-posix.c (test_function): Likewise.
54260         * tests/test-snprintf-posix.h (test_function): Likewise.
54261         * tests/test-sprintf-posix.h (test_function): Likewise.
54262         Needed for HP-UX 11.
54263
54264 2007-05-20  Jim Meyering  <jim@meyering.net>
54265
54266         Fix buggy test for the fchownat-deref bug.
54267         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
54268         symlink required for the run-test.  Without it, this test would
54269         always declare that fchownat doesn't work, and client code would
54270         unnecessarily use the replacement function with fixed libc.
54271         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
54272         Reported by Greg Schafer.
54273
54274 2007-05-19  Bruno Haible  <bruno@clisp.org>
54275
54276         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
54277         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
54278         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
54279         Needed for IRIX 6.5 and Solaris 2.5.1.
54280
54281 2007-05-19  Bruno Haible  <bruno@clisp.org>
54282
54283         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
54284         (test_function): Skip tests involving -0.0 on platforms where
54285         -0.0 = 0.0.
54286         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
54287         (test_function): Skip tests involving -0.0 on platforms where
54288         -0.0 = 0.0.
54289         * tests/test-snprintf-posix.h (have_minus_zero): New function.
54290         (test_function): Skip tests involving -0.0 on platforms where
54291         -0.0 = 0.0.
54292         * tests/test-sprintf-posix.h (have_minus_zero): New function.
54293         (test_function): Skip tests involving -0.0 on platforms where
54294         -0.0 = 0.0.
54295         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
54296         tests.
54297         * tests/test-printf-posix.h (test_function): Likewise.
54298         * tests/test-printf-posix.output: Remove all -0.0 related results.
54299         Needed for IRIX 6.5.
54300
54301 2007-05-19  Bruno Haible  <bruno@clisp.org>
54302
54303         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
54304         printed as "nan0x7fffffff" instead of "nan".
54305         * tests/test-vasprintf-posix.c (test_function): Likewise.
54306         * tests/test-snprintf-posix.h (test_function): Likewise.
54307         * tests/test-sprintf-posix.h (test_function): Likewise.
54308         * tests/test-fprintf-posix.h (NaN): Remove macro.
54309         (test_function): Remove all NaN related tests.
54310         * tests/test-printf-posix.h (NaN): Remove macro.
54311         (test_function): Remove all NaN related tests.
54312         * tests/test-printf-posix.output: Remove all NaN related results.
54313         Needed for IRIX 6.5.
54314
54315 2007-05-19  Bruno Haible  <bruno@clisp.org>
54316
54317         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
54318         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
54319
54320 2007-05-19  Bruno Haible  <bruno@clisp.org>
54321
54322         * lib/float_.h: New file.
54323         * m4/float_h.m4: New file.
54324         * modules/float: New file.
54325         * modules/isnanl (Dependencies): Add float.
54326         * modules/isnanl-nolibm (Dependencies): Likewise.
54327         * modules/mathl (Dependencies): Likewise.
54328         * modules/printf-frexpl (Dependencies): Likewise.
54329         * modules/signbit (Dependencies): Likewise.
54330         * modules/vasnprintf (Dependencies): Likewise.
54331         * doc/headers/float.texi: Update.
54332
54333 2007-05-19  Jim Meyering  <jim@meyering.net>
54334
54335         * lib/utimens.c (gl_futimens): Rename from futimens,
54336         now that glibc-2.6 declares futimens.
54337         * lib/utimens.h: Likewise.
54338
54339 2007-05-19  Bruno Haible  <bruno@clisp.org>
54340
54341         Avoid test failures on mingw.
54342         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
54343         * tests/test-printf-posix.sh: Likewise.
54344         * tests/test-vfprintf-posix.sh: Likewise.
54345         * tests/test-vprintf-posix.sh: Likewise.
54346
54347 2007-05-19  Bruno Haible  <bruno@clisp.org>
54348
54349         Fix *printf result for NaN, Inf, -0.0 on mingw.
54350         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
54351         * lib/vasnprintf.c: Include math.h and isnan.h.
54352         (is_infinite_or_zero): New function.
54353         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
54354         values in the %f, %F, %e, %E, %g, %G directives.
54355         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
54356         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
54357         gl_PRINTF_INFINITE and test its result. Invoke
54358         gl_PREREQ_VASNPRINTF_INFINITE.
54359         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
54360         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
54361         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
54362         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
54363         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
54364         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
54365         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
54366         * doc/functions/fprintf.texi: Update.
54367         * doc/functions/printf.texi: Update.
54368         * doc/functions/snprintf.texi: Update.
54369         * doc/functions/sprintf.texi: Update.
54370         * doc/functions/vfprintf.texi: Update.
54371         * doc/functions/vprintf.texi: Update.
54372         * doc/functions/vsnprintf.texi: Update.
54373         * doc/functions/vsprintf.texi: Update.
54374
54375 2007-05-19  Bruno Haible  <bruno@clisp.org>
54376
54377         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
54378         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
54379         Instead of multiplying with 10^k, set extra_zeroes to k.
54380         (scale10_round_long_double): Remove function.
54381
54382 2007-05-18  Bruno Haible  <bruno@clisp.org>
54383
54384         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
54385         introduced on 2007-05-06.
54386
54387 2007-05-18  Bruno Haible  <bruno@clisp.org>
54388
54389         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
54390         %g directives.
54391         * tests/test-vasprintf-posix.c (test_function): Likewise.
54392         * tests/test-snprintf-posix.h (test_function): Likewise.
54393         * tests/test-sprintf-posix.h (test_function): Likewise.
54394
54395 2007-05-18  Bruno Haible  <bruno@clisp.org>
54396
54397         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
54398         (strmatch): New function.
54399         (test_function): Test the %f directive on numbers of various exponents.
54400         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
54401         (strmatch): New function.
54402         (test_function): Test the %f directive on numbers of various exponents.
54403         * tests/test-snprintf-posix.h (strmatch): New function.
54404         (test_function): Test the %f directive on numbers of various exponents.
54405         * tests/test-sprintf-posix.h (strmatch): New function.
54406         (test_function): Test the %f directive on numbers of various exponents.
54407         * tests/test-snprintf-posix.c (SIZEOF): New macro.
54408         * tests/test-sprintf-posix.c (SIZEOF): New macro.
54409         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
54410         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
54411
54412 2007-05-18  Bruno Haible  <bruno@clisp.org>
54413
54414         Add support for 'long double' number output.
54415         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
54416         * lib/vasnprintf.c: Include math.h and float+.h.
54417         (mp_limb_t): New type.
54418         (GMP_LIMB_BITS): New macro.
54419         (mp_twolimb_t): New type.
54420         (GMP_TWOLIMB_BITS): New macro.
54421         (mpn_t): New type.
54422         (multiply, divide, convert_to_decimal, decode_long_double,
54423         scale10_round_long_double, scale10_round_decimal_long_double,
54424         floorlog10l): New functions.
54425         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
54426         for the %f, %F, %e, %E, %g, %G directives.
54427         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
54428         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
54429         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
54430         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
54431         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
54432         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
54433         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
54434         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
54435         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
54436         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
54437         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
54438         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
54439         * modules/snprintf-posix (Depends-on): Likewise.
54440         * modules/sprintf-posix (Depends-on): Likewise.
54441         * modules/vasnprintf-posix (Depends-on): Likewise.
54442         * modules/vasprintf-posix (Depends-on): Likewise.
54443         * modules/vfprintf-posix (Depends-on): Likewise.
54444         * modules/vsnprintf-posix (Depends-on): Likewise.
54445         * modules/vsprintf-posix (Depends-on): Likewise.
54446         * modules/vasnprintf (Files): Add lib/float+.h.
54447         * doc/functions/fprintf.texi: Update.
54448         * doc/functions/printf.texi: Update.
54449         * doc/functions/snprintf.texi: Update.
54450         * doc/functions/sprintf.texi: Update.
54451         * doc/functions/vfprintf.texi: Update.
54452         * doc/functions/vprintf.texi: Update.
54453         * doc/functions/vsnprintf.texi: Update.
54454         * doc/functions/vsprintf.texi: Update.
54455
54456 2007-05-18  Bruno Haible  <bruno@clisp.org>
54457
54458         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
54459
54460 2007-05-18  Bruno Haible  <bruno@clisp.org>
54461
54462         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
54463         for printing 64-bit integers. Needed for mingw.
54464
54465 2007-05-18  Bruno Haible  <bruno@clisp.org>
54466
54467         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
54468         gl_FUNC_FREXPL_WORKS.
54469         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
54470
54471 2007-05-18  Bruno Haible  <bruno@clisp.org>
54472
54473         * modules/frexpl-nolibm-tests: New file.
54474
54475         * modules/frexpl-nolibm: New file.
54476         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
54477
54478 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
54479
54480         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
54481         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
54482         GCC 4.2, which otherwise issues a lot of warnings.
54483         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
54484         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
54485         Likewise.
54486         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
54487         * modules/iconv_open (iconv.h): Likewise.
54488         * modules/locale (locale.h): Likewise.
54489         * modules/netinet_in (netinet/in.h): Likewise.
54490         * modules/sys_select (sys_select.h): Likewise.
54491         * modules/sys_socket (sys/socket.h): Likewise.
54492         * modules/sys_stat (sys/stat.h): Likewise.
54493         * modules/sysexits (sysexits.h): Likewise.
54494         * modules/unistd (unistd.h): Likewise.
54495
54496 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54497
54498         * modules/closein-tests (Makefile.am): Distribute
54499         `test-closein.sh'.
54500
54501 2007-05-17  Bruno Haible  <bruno@clisp.org>
54502
54503         * tests/test-printf-posix.output: Renamed from
54504         tests/test-fprintf-posix.out.
54505         * modules/fprintf-posix-tests: Update.
54506         * modules/printf-posix-tests: Update.
54507         * modules/vfprintf-posix-tests: Update.
54508         * modules/vprintf-posix-tests: Update.
54509         * tests/test-fprintf-posix.sh: Update.
54510         * tests/test-printf-posix.sh: Update.
54511         * tests/test-vfprintf-posix.sh: Update.
54512         * tests/test-vprintf-posix.sh: Update.
54513         Reported by Ralf Wildenhues.
54514
54515 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
54516
54517         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
54518         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
54519         GCC 4.2, which otherwise issues a lot of warnings.
54520         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
54521         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
54522         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
54523         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
54524         it should no longer be needed.
54525         * lib/string_.h: Likewise.
54526         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
54527         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
54528         * modules/inttypes (inttypes.h): Likewise.
54529         * modules/math (math.h): Likewise.
54530         * modules/search (search.h): Likewise.
54531         * modules/signal (signal.h): Likewise.
54532         * modules/stdint (stdint.h): Likewise.
54533         * modules/stdio (stdio.h): Likewise.
54534         * modules/stdlib (stdlib.h): Likewise.
54535         * modules/string (string.h): Likewise.
54536         * modules/sys_time (sys/time.h): Likewise.
54537         * modules/time (time.h): Likewise.
54538         * modules/wchar (wchar.h): Likewise.
54539         * modules/wctype (wtype.h): Likewise.
54540
54541 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
54542
54543         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
54544
54545 2007-05-13  Bruno Haible  <bruno@clisp.org>
54546
54547         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
54548         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
54549         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
54550         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
54551         (gl_PREREQ_STRTOK_R): Don't require it here.
54552
54553 2007-05-13  Bruno Haible  <bruno@clisp.org>
54554
54555         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
54556         when used in C++ mode.
54557
54558 2007-05-12  Bruno Haible  <bruno@clisp.org>
54559
54560         * lib/linebuffer.h: Tweak doc.
54561         * lib/linebuffer.c: Likewise.
54562
54563 2007-05-12  James Youngman  <jay@gnu.org>
54564
54565         * lib/linebuffer.c (readlinebuffer_delim): New function,
54566         like readlinebuffer, but use a caller-specified delimiter.
54567         (readlinebuffer): Just call readlinebuffer_delim with '\n'
54568         as the delimiter.
54569         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
54570
54571 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
54572
54573         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
54574         * modules/openat (Files): Remove openat-die.c.
54575         (Depends-on): Add openat-die.
54576         * modules/openat-die: New module.
54577
54578 2007-05-06  Bruno Haible  <bruno@clisp.org>
54579
54580         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
54581         Update with info about Cygwin.
54582         * doc/functions/fprintf.texi: Update.
54583         * doc/functions/printf.texi: Update.
54584         * doc/functions/snprintf.texi: Update.
54585         * doc/functions/sprintf.texi: Update.
54586         * doc/functions/vfprintf.texi: Update.
54587         * doc/functions/vprintf.texi: Update.
54588         * doc/functions/vsnprintf.texi: Update.
54589         * doc/functions/vsprintf.texi: Update.
54590         Reported by Eric Blake.
54591
54592 2007-05-06  Bruno Haible  <bruno@clisp.org>
54593
54594         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
54595         padding ourselves for the floating-point directives.
54596         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
54597         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
54598         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
54599         gl_PRINTF_FLAG_ZERO and test its result. Invoke
54600         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
54601         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
54602         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
54603         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
54604         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
54605         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
54606         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
54607         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
54608         * tests/test-snprintf-posix.h (test_function): Also check the width
54609         and some flags in the %f directive.
54610         * tests/test-sprintf-posix.h (test_function): Likewise.
54611         * tests/test-vasnprintf-posix.c (test_function): Likewise.
54612         * tests/test-vasprintf-posix.c (test_function): Likewise.
54613         * doc/functions/fprintf.texi: Update.
54614         * doc/functions/printf.texi: Update.
54615         * doc/functions/snprintf.texi: Update.
54616         * doc/functions/sprintf.texi: Update.
54617         * doc/functions/vfprintf.texi: Update.
54618         * doc/functions/vprintf.texi: Update.
54619         * doc/functions/vsnprintf.texi: Update.
54620         * doc/functions/vsprintf.texi: Update.
54621
54622 2007-05-06  Bruno Haible  <bruno@clisp.org>
54623
54624         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
54625         pass the ' flag character to sprintf or snprintf.
54626         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
54627         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
54628         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
54629         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
54630         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
54631         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
54632         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
54633         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
54634         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
54635         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
54636         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
54637         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
54638         * tests/test-snprintf-posix.h (test_function): Also check the grouping
54639         flag.
54640         * tests/test-sprintf-posix.h (test_function): Likewise.
54641         * tests/test-vasnprintf-posix.c (test_function): Likewise.
54642         * tests/test-vasprintf-posix.c (test_function): Likewise.
54643         * doc/functions/fprintf.texi: Update.
54644         * doc/functions/printf.texi: Update.
54645         * doc/functions/snprintf.texi: Update.
54646         * doc/functions/sprintf.texi: Update.
54647         * doc/functions/vfprintf.texi: Update.
54648         * doc/functions/vprintf.texi: Update.
54649         * doc/functions/vsnprintf.texi: Update.
54650         * doc/functions/vsprintf.texi: Update.
54651
54652 2007-05-01  Bruno Haible  <bruno@clisp.org>
54653
54654         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
54655
54656 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
54657
54658         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
54659         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
54660
54661 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
54662
54663         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
54664         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
54665         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
54666
54667 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
54668
54669         * lib/argp-help.c (struct hol_entry): New member `ord'.
54670         (HOL_ENTRY_PTRCMP): Use ord for comparison
54671         (hol_sort): Initialize ord.
54672
54673 2007-05-01  Bruno Haible  <bruno@clisp.org>
54674
54675         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
54676         Reported by Eric Blake.
54677         * doc/gnulib.texi (Function Substitutes): Update.
54678
54679 2007-05-01  Bruno Haible  <bruno@clisp.org>
54680
54681         * doc/functions.texi: Remove file, now redundant through
54682         doc/functions/*.texi.
54683
54684 2007-05-01  Bruno Haible  <bruno@clisp.org>
54685
54686         * modules/argp (Depends-on): Add sleep.
54687
54688 2007-05-01  Bruno Haible  <bruno@clisp.org>
54689
54690         * modules/sleep-tests: New file.
54691         * tests/test-sleep.c: New file.
54692
54693         * modules/sleep: New file.
54694         * lib/sleep.c: New file.
54695         * m4/sleep.m4: New file.
54696         * lib/unistd_.h (sleep): New declaration.
54697         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
54698         HAVE_SLEEP.
54699         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
54700         * doc/functions/sleep.texi: Document the sleep module.
54701
54702 2007-05-01  Bruno Haible  <bruno@clisp.org>
54703
54704         * lib/sigprocmask.h: Remove file.
54705         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
54706         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
54707         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
54708         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
54709         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
54710         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
54711         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
54712         HAVE_SIGSET_T as a shell variable.
54713         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
54714         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
54715         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
54716         (Depends-on): Add signal. Remove verify.
54717         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
54718         (Include): Mention <signal.h> instead of sigprocmask.h.
54719         * NEWS: Mention the change.
54720         * lib/fatal-signal.c: Don't include sigprocmask.h.
54721
54722 2007-05-01  Bruno Haible  <bruno@clisp.org>
54723
54724         * modules/signal: New file.
54725         * lib/signal_.h: New file.
54726         * m4/signal_h.m4: New file.
54727
54728 2007-05-01  Bruno Haible  <bruno@clisp.org>
54729
54730         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
54731         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
54732         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
54733         HAVE_WCTYPE_CTMP_BUG into wctype.h.
54734
54735 2007-05-01  Bruno Haible  <bruno@clisp.org>
54736
54737         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
54738         configure time.
54739         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
54740         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
54741         * modules/sys_stat (Makefile.am): Substitute their values into
54742         sys/stat.h.
54743
54744 2007-05-01  Bruno Haible  <bruno@clisp.org>
54745
54746         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
54747         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
54748         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
54749
54750 2007-05-01  Bruno Haible  <bruno@clisp.org>
54751
54752         * doc/header/assert.texi: Undo last change: don't mention the gnulib
54753         'assert' module here.
54754
54755 2007-05-01  Bruno Haible  <bruno@clisp.org>
54756
54757         * doc/functions/*.texi: New files.
54758         * doc/functions/google-ranking.txt: New file.
54759         * doc/gnulib.texi (Function Substitutes): New chapter.
54760         (ctime, inet_ntoa): Remove sections.
54761         * doc/ctime.texi: Remove file.
54762         * doc/inet_ntoa.texi: Remove file.
54763         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
54764         dependencies.
54765         (%.info): New rule, specifying a --reference-limit.
54766
54767 2007-05-01  Bruno Haible  <bruno@clisp.org>
54768
54769         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
54770
54771 2007-05-01  Bruno Haible  <bruno@clisp.org>
54772
54773         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
54774         the portability of 'mkdir' to mingw systems.
54775
54776 2007-05-01  Bruno Haible  <bruno@clisp.org>
54777
54778         * doc/headers/google-ranking.txt: New file.
54779
54780 2007-04-30  Eric Blake  <ebb9@byu.net>
54781
54782         Prefer fseeko to fseek.
54783         * modules/getpass (Depends-on): Add fseeko.
54784         * lib/getpass.c (getpass): Use fseeko, not fseek.
54785
54786 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
54787
54788         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
54789         assumes the sorting is stable, while most qsort implementations
54790         are not.  Use argument addresses to ensure they never compare as
54791         equal.
54792
54793         * tests/test-argp-2.sh (usage-indent test): Fix output
54794         (func_compare): Restore diff options
54795         * tests/test-argp.c: Restore #include "progname.h"
54796
54797 2007-04-29  Bruno Haible  <bruno@clisp.org>
54798
54799         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
54800         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
54801         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
54802         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
54803         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
54804         (configure.ac): Define CHECK_SNPRINTF_POSIX.
54805         (TESTS, check_PROGRAMS): Add test-snprintf.
54806         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
54807         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
54808         (TESTS, check_PROGRAMS): Add test-vsnprintf.
54809         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
54810         assertions that fail on HP-UX, OSF/1, or IRIX.
54811         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
54812
54813 2007-04-29  Bruno Haible  <bruno@clisp.org>
54814
54815         * MODULES.html.sh (posix_functions): Remove 'contents'.
54816
54817 2007-04-29  Karl Berry  <karl@gnu.org>
54818
54819         * config/srclist.txt (gendocs_template_min): new entry.
54820
54821 2007-04-29  Bruno Haible  <bruno@clisp.org>
54822
54823         Work around fpurge bug on BSD systems.
54824         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
54825         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
54826         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
54827         fpurge to rpl_fpurge if the system already has this function.
54828         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
54829         the case where the system already has this function. Correct invariants
54830         on BSD systems.
54831         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
54832         BSD systems.
54833
54834 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
54835
54836         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
54837         proposed by Sven Verdoolaege.
54838
54839         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
54840         options.
54841         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
54842         (usage and help tests): Update
54843
54844 2007-04-29  Bruno Haible  <bruno@clisp.org>
54845
54846         * tests/test-fflush.c (main): Use a file of size 17, not 10.
54847         Print more information in case of failure. Disable a test on BeOS.
54848
54849 2007-04-29  Bruno Haible  <bruno@clisp.org>
54850
54851         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
54852         This helps debugging on systems on which no gdb is available.
54853
54854 2007-04-29  Bruno Haible  <bruno@clisp.org>
54855
54856         * lib/freading.h: Improve comments.
54857         * lib/fwriting.h: Likewise.
54858         * tests/test-freading.c (main): Don't check freading immediately after
54859         repositioning. Needed for glibc.
54860
54861 2007-04-29  Bruno Haible  <bruno@clisp.org>
54862
54863         * lib/freading.c (freading): Trivial simplification.
54864
54865 2007-04-28  Bruno Haible  <bruno@clisp.org>
54866
54867         * tests/test-fwriting.c (main): Also test the interaction between
54868         fflush and fwriting.
54869         * modules/fwriting-tests (Depends-on): Add fflush.
54870
54871         * tests/test-freading.c (main): Also test the interaction between
54872         fflush and freading.
54873         * modules/freading-tests (Depends-on): Add fflush.
54874
54875 2007-04-28  Bruno Haible  <bruno@clisp.org>
54876
54877         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
54878         fseeko and ftello.
54879         Suggested by Eric Blake.
54880
54881 2007-04-28  Jim Meyering  <jim@meyering.net>
54882
54883         Avoid false-negative in gl_STDINT_H's C99 conformance test.
54884         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
54885         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
54886
54887 2007-04-27  Eric Blake  <ebb9@byu.net>
54888
54889         * doc/headers/assert.texi (assert.h): Document assert module use.
54890
54891 2007-04-27  Bruno Haible  <bruno@clisp.org>
54892
54893         * doc/headers/*.texi: New files.
54894         * doc/gnulib.texi (Header File Substitutes): New chapter.
54895         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
54896         dependencies.
54897         (standards.info ,standards.html, standards.dvi): Update dependencies.
54898         (mostlyclean, clean): New targets.
54899
54900 2007-04-27  Bruno Haible  <bruno@clisp.org>
54901
54902         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
54903         * modules/sysexits (Files, Makefile.am): Update.
54904
54905         * lib/sys_socket_.h: Renamed from lib/socket_.h.
54906         * modules/sys_socket (Files, Makefile.am): Update.
54907
54908         * lib/sys_stat_.h: Renamed from lib/stat_.h.
54909         * modules/sys_stat (Files, Makefile.am): Update.
54910
54911 2007-04-27  Eric Blake  <ebb9@byu.net>
54912
54913         * lib/freading.h: Improve comments.
54914         * lib/fwriting.h: Likewise.
54915         * lib/fflush.c: Likewise.
54916
54917         Fix closein for mingw.
54918         * modules/closein-tests: Add tests for closein.
54919         * tests/test-closein.c: New file.
54920         * tests/test-closein.sh: Likewise.
54921         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
54922         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
54923
54924 2007-04-27  Bruno Haible  <bruno@clisp.org>
54925
54926         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
54927         version is < 6.
54928         * lib/math_.h [__DECC]: Likewise.
54929         * lib/stdio_.h [__DECC]: Likewise.
54930         * lib/stdlib_.h [__DECC]: Likewise.
54931         * lib/string_.h [__DECC]: Likewise.
54932         * lib/time_.h [__DECC]: Likewise.
54933         * lib/wchar_.h [__DECC]: Likewise.
54934         * lib/wctype_.h [__DECC]: Likewise.
54935
54936 2007-04-27  Bruno Haible  <bruno@clisp.org>
54937
54938         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
54939
54940 2007-04-27  Bruno Haible  <bruno@clisp.org>
54941
54942         * lib/fflush.c: Add comments.
54943         * modules/fpurge-tests (Depends-on): Add fflush.
54944         * modules/freadable-tests (Depends-on): Likewise.
54945         * modules/fwritable-tests (Depends-on): Likewise.
54946
54947 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
54948
54949         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
54950         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
54951         Report by Bruno Haible <bruno@clisp.org>.
54952
54953 2007-04-26  Eric Blake  <ebb9@byu.net>
54954
54955         Fix fflush on mingw.
54956         * modules/fflush (Depends-on): Add freading.
54957         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
54958         but unread data.
54959
54960 2007-04-26  Eric Blake  <ebb9@byu.net>
54961         and Bruno Haible  <bruno@clisp.org>
54962
54963         Implement freading and fwriting.
54964         * lib/freading.c: New file.
54965         * lib/freading.h: Likewise.
54966         * m4/freading.m4: Likewise.
54967         * modules/freading: Likewise.
54968         * modules/freading-tests: Likewise.
54969         * tests/test-freading.c: Likewise.
54970         * lib/fwriting.c: New file.
54971         * lib/fwriting.h: Likewise.
54972         * m4/fwriting.m4: Likewise.
54973         * modules/fwriting: Likewise.
54974         * modules/fwriting-tests: Likewise.
54975         * tests/test-fwriting.c: Likewise.
54976         * MODULES.html.sh (File stream based Input/Output): Mention them.
54977
54978 2007-04-26  Bruno Haible  <bruno@clisp.org>
54979
54980         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
54981         'long' when we assume it.
54982         Suggested by Eric Blake.
54983
54984 2007-04-26  Bruno Haible  <bruno@clisp.org>
54985
54986         Ensure fseeko, ftello are declared on glibc systems.
54987         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
54988         * modules/fseeko (configure.ac-early): Likewise.
54989         * modules/ftello (configure.ac-early): Likewise.
54990         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
54991         AC_FUNC_FSEEKO for this.
54992         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
54993         (gl_CHECK_FSEEKO): Remove macro.
54994
54995 2007-04-26  Bruno Haible  <bruno@clisp.org>
54996
54997         * tests/test-fflush.c (main): Also check the ftell result after
54998         fflush and fseek/fseeko.
54999         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
55000         file descriptor position cache in the stream.
55001         * lib/fseeko.c (rpl_fseeko): Likewise.
55002
55003 2007-04-26  Bruno Haible  <bruno@clisp.org>
55004
55005         * modules/fflush-tests (Depends-on): Add fseeko.
55006
55007 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
55008             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55009
55010         * lib/argz_.h: ensure error_t definition is obtained in same
55011         mechanism system argz.h would have.
55012         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
55013         argz facilities are known bad.  Err on the side of caution if
55014         cross-compiling.
55015
55016 2007-04-25  Eric Blake  <ebb9@byu.net>
55017
55018         * lib/fpurge.c (includes): Use stdlib.h for free.
55019         * tests/test-fflush.c (main): Also test fflush-fseeko.
55020
55021 2007-04-25  Bruno Haible  <bruno@clisp.org>
55022
55023         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
55024         * lib/fseeko.c: New file.
55025         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
55026         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
55027         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
55028         gl_FUNC_FSEEKO.
55029         (gl_FUNC_FSEEKO): Invoke it.
55030         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
55031         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
55032         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
55033
55034 2007-04-25  Bruno Haible  <bruno@clisp.org>
55035
55036         * modules/fflush (Depends-on): Add ftello.
55037
55038 2007-04-25  Bruno Haible  <bruno@clisp.org>
55039
55040         * modules/ftello-tests: New file.
55041         * tests/test-ftello.c: New file.
55042
55043         * modules/ftello: New file.
55044         * m4/ftello.m4: New file.
55045         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
55046         HAVE_FTELLO.
55047         * lib/stdio_.h (ftello): New declaration.
55048         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
55049         HAVE_FTELLO.
55050
55051 2007-04-25  Bruno Haible  <bruno@clisp.org>
55052
55053         * modules/fseeko-tests: New file.
55054         * tests/test-fseeko.c: New file.
55055
55056         * modules/fseeko: New file.
55057         * m4/fseeko.m4: New file.
55058         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
55059         HAVE_FSEEKO.
55060         * lib/stdio_.h (fseeko): New declaration.
55061         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
55062         HAVE_FSEEKO.
55063
55064 2007-04-25  Bruno Haible  <bruno@clisp.org>
55065
55066         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
55067
55068 2007-04-25  Bruno Haible  <bruno@clisp.org>
55069
55070         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
55071         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
55072         * tests/test-unistd.c: Likewise.
55073         * tests/test-fcntl.c: Likewise.
55074
55075 2007-04-23  Eric Blake  <ebb9@byu.net>
55076
55077         * lib/fflush.c: Fix missing include.
55078         Reported by Bruno Haible.
55079
55080 2007-04-23  Bruno Haible  <bruno@clisp.org>
55081
55082         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
55083         Reported by Eric Blake.
55084
55085 2007-04-23  Bruno Haible  <bruno@clisp.org>
55086
55087         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
55088
55089 2007-04-23  Bruno Haible  <bruno@clisp.org>
55090
55091         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
55092
55093 2007-04-23  Bruno Haible  <bruno@clisp.org>
55094
55095         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
55096         Needed on HP-UX 11.
55097
55098 2007-04-16  Eric Blake  <ebb9@byu.net>
55099
55100         Make fflush rely on fpurge.
55101         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
55102         open coding all variants.
55103         * modules/fflush (Depends-on): Add fpurge and unistd.
55104         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
55105         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
55106
55107         Fix --with-tests compilation on cygwin.
55108         * modules/argmatch-tests (Makefile.am): List gnulib library first
55109         in LDADD.
55110         * modules/argp-tests (Makefile.am): Likewise.
55111         * modules/array-list-tests (Makefile.am): Likewise.
55112         * modules/array-oset-tests (Makefile.am): Likewise.
55113         * modules/avltree-list-tests (Makefile.am): Likewise.
55114         * modules/avltree-oset-tests (Makefile.am): Likewise.
55115         * modules/avltreehash-list-tests (Makefile.am): Likewise.
55116         * modules/carray-list-tests (Makefile.am): Likewise.
55117         * modules/dirname-tests (Makefile.am): Likewise.
55118         * modules/frexp-tests (Makefile.am): Likewise.
55119         * modules/isnanl-tests (Makefile.am): Likewise.
55120         * modules/linked-list-tests (Makefile.am): Likewise.
55121         * modules/linkedhash-list-tests (Makefile.am): Likewise.
55122         * modules/lock-tests (Makefile.am): Likewise.
55123         * modules/rbtree-list-tests (Makefile.am): Likewise.
55124         * modules/rbtree-oset-tests (Makefile.am): Likewise.
55125         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
55126         * modules/tls-tests (Makefile.am): Likewise.
55127         * modules/tsearch-tests (Makefile.am): Likewise.
55128         * modules/xvasprintf-tests (Makefile.am): Likewise.
55129
55130         Fix fpurge for cygwin.
55131         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
55132         value.
55133         * modules/fpurge-tests (Depends-on): Clean up trash.
55134
55135 2007-04-16  Simon Josefsson  <simon@josefsson.org>
55136
55137         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
55138
55139         * m4/autobuild.m4: Re-indent.
55140
55141 2007-04-13  Bruno Haible  <bruno@clisp.org>
55142
55143         * modules/fpurge-tests: New file.
55144         * tests/test-fpurge.c: New file.
55145
55146         * modules/fpurge: New file.
55147         * lib/fpurge.h: New file.
55148         * lib/fpurge.c: New file.
55149         * m4/fpurge.m4: New file.
55150
55151 2007-04-13  Bruno Haible  <bruno@clisp.org>
55152
55153         * modules/fbufmode-tests: New file.
55154         * tests/test-fbufmode.c: New file.
55155
55156         * modules/fbufmode: New file.
55157         * lib/fbufmode.h: New file.
55158         * lib/fbufmode.c: New file.
55159         * m4/fbufmode.m4: New file.
55160
55161 2007-04-13  Bruno Haible  <bruno@clisp.org>
55162
55163         * modules/fwritable-tests: New file.
55164         * tests/test-fwritable.c: New file.
55165
55166         * modules/fwritable: New file.
55167         * lib/fwritable.h: New file.
55168         * lib/fwritable.c: New file.
55169         * m4/fwritable.m4: New file.
55170
55171 2007-04-13  Bruno Haible  <bruno@clisp.org>
55172
55173         * modules/freadable-tests: New file.
55174         * tests/test-freadable.c: New file.
55175
55176         * modules/freadable: New file.
55177         * lib/freadable.h: New file.
55178         * lib/freadable.c: New file.
55179         * m4/freadable.m4: New file.
55180
55181 2007-04-13  Bruno Haible  <bruno@clisp.org>
55182
55183         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
55184         MOSTLYCLEANFILES.
55185
55186 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
55187
55188         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
55189         gzip bootstrap.conf to avoid dragging in i18n machinery.
55190         (gnulib_tool_option): Use it.
55191
55192 2007-04-13  Bruno Haible  <bruno@clisp.org>
55193
55194         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
55195         %F directives.
55196         * tests/test-vasprintf-posix.c (test_function): Likewise.
55197         * tests/test-snprintf-posix.h (test_function): Likewise.
55198         * tests/test-sprintf-posix.h (test_function): Likewise.
55199         * tests/test-fprintf-posix.h (test_function): Likewise.
55200         * tests/test-printf-posix.h (test_function): Likewise.
55201         * tests/test-fprintf-posix.out: Likewise.
55202
55203 2007-04-13  Bruno Haible  <bruno@clisp.org>
55204
55205         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
55206         * modules/tls-tests (configure.ac): Likewise.
55207         Reported by Arto C. Nirkko <anirkko@insel.ch>.
55208
55209 2007-04-13  Bruno Haible  <bruno@clisp.org>
55210
55211         * lib/tls.c (glthread_tls_get): Fix return type.
55212         Patch by Arto C. Nirkko <anirkko@insel.ch>.
55213
55214 2007-04-12  Eric Blake  <ebb9@byu.net>
55215
55216         * modules/gettime (Depends-on): Remove gettime.
55217         Reported by Dmitry V. Levin.
55218
55219 2007-04-12  Bruno Haible  <bruno@clisp.org>
55220
55221         * modules/fflush (Include): Mention <stdio.h>.
55222         * modules/strtoimax (Include): Mention <inttypes.h>.
55223         * modules/strtoumax (Include): Likewise.
55224
55225 2007-04-12  Eric Blake  <ebb9@byu.net>
55226
55227         * .cvsignore: New file.
55228         * .gitignore: Likewise.
55229
55230 2007-04-12  Bruno Haible  <bruno@clisp.org>
55231
55232         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
55233         not before, since $(LDADD) often contains libgnu.a.
55234         * modules/striconv-tests (test_striconv_LDADD): Likewise.
55235         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
55236         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
55237         Needed on Cygwin.
55238
55239 2007-04-12  Eric Blake  <ebb9@byu.net>
55240
55241         Work around glibc's failure to flush stdin on fclose.
55242         * lib/closein.c (close_stdin): Flush stdin before closing.
55243
55244         Work around glibc's failure to reset seekable stdin on exit.
55245         * modules/closein: New module.
55246         * lib/closein.c: New file.
55247         * lib/closein.h: Likewise.
55248         * m4/closein.m4: Likewise.
55249         * MODULES.html.sh (File stream based Input/Output): Document it.
55250
55251 2007-04-12  Simon Josefsson  <simon@josefsson.org>
55252
55253         * gnulib-tool: Rename generated 'autobuild' script to
55254         'do-autobuild' in --create-megatestdir output.
55255
55256         * doc/gnulib.texi (Build robot for gnulib): Fix.
55257
55258 2007-04-12  Simon Josefsson  <simon@josefsson.org>
55259
55260         * modules/sysexits (Depends-on): Add absolute-header.
55261
55262 2007-04-12  Eric Blake  <ebb9@byu.net>
55263
55264         No need to preserve errno on success.
55265         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
55266         Reported by Bruno Haible.
55267
55268 2007-04-12  Simon Josefsson  <simon@josefsson.org>
55269
55270         * MODULES.html.sh (Support for maintaining and releasing
55271         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
55272
55273 2007-04-12  Simon Josefsson  <simon@josefsson.org>
55274
55275         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
55276
55277 2007-04-12  Simon Josefsson  <simon@josefsson.org>
55278
55279         * modules/autobuild: New module.
55280
55281         * m4/autobuild.m4: New file.
55282
55283 2007-04-11  Bruno Haible  <bruno@clisp.org>
55284
55285         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
55286         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
55287         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
55288         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
55289         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
55290         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
55291         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
55292         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
55293         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
55294         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
55295         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
55296         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
55297         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
55298         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
55299         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
55300         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
55301         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
55302         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
55303         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
55304         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
55305         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
55306         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
55307         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
55308         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
55309         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
55310         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
55311         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
55312         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
55313         Reported by Eric Blake.
55314
55315 2007-04-11  Bruno Haible  <bruno@clisp.org>
55316
55317         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
55318
55319 2007-04-10  Bruno Haible  <bruno@clisp.org>
55320
55321         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
55322         for NaN and Infinity. Needed on FreeBSD 6.1.
55323         * tests/test-vasnprintf-posix.c (test_function): Undo last change
55324         regarding results for "%010a" of Infinity and NaN.
55325         * tests/test-vasprintf-posix.c (test_function): Likewise.
55326         * tests/test-snprintf-posix.h (test_function): Likewise.
55327         * tests/test-sprintf-posix.h (test_function): Likewise.
55328         * tests/test-fprintf-posix.h (test_function): Likewise.
55329         * tests/test-printf-posix.h (test_function): Likewise.
55330         * tests/test-fprintf-posix.out: Likewise.
55331
55332 2007-04-10  Bruno Haible  <bruno@clisp.org>
55333
55334         * modules/locale-tests: New file.
55335         * tests/test-locale.c: New file.
55336
55337         * modules/locale: New file.
55338         * lib/locale_.h: New file.
55339         * m4/locale_h.m4: New file.
55340
55341 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
55342             Bruno Haible  <bruno@clisp.org>
55343
55344         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
55345         be determined, test for availability of the copysignf, copysign,
55346         copysignl functions.
55347         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
55348         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
55349         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
55350
55351 2007-04-09  Eric Blake  <ebb9@byu.net>
55352
55353         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
55354         * modules/stdio (Makefile.am): Support fflush.
55355         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
55356         * modules/fflush: New file.
55357         * lib/fflush.c: Likewise.
55358         * m4/fflush.m4: Likewise.
55359         * modules/fflush-tests: New test.
55360         * tests/test-fflush.c: Likewise.
55361         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
55362
55363 2007-04-06  Bruno Haible  <bruno@clisp.org>
55364
55365         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
55366         (VASNPRINTF): Use signbit for faster determination whether to print a
55367         minus sign.
55368         * modules/vasnprintf (Files): Remove lib/float+.h.
55369         * modules/fprintf-posix (Depends-on): Add signbit.
55370         * modules/snprintf-posix (Depends-on): Likewise.
55371         * modules/sprintf-posix (Depends-on): Likewise.
55372         * modules/vasnprintf-posix (Depends-on): Likewise.
55373         * modules/vasprintf-posix (Depends-on): Likewise.
55374         * modules/vfprintf-posix (Depends-on): Likewise.
55375         * modules/vsnprintf-posix (Depends-on): Likewise.
55376         * modules/vsprintf-posix (Depends-on): Likewise.
55377
55378 2007-04-06  Bruno Haible  <bruno@clisp.org>
55379
55380         * tests/test-frexp.c (main): Test also the sign bit of zero results.
55381         * tests/test-frexpl.c (main): Likewise.
55382         * tests/test-ldexpl.c (main): Likewise.
55383         * modules/frexp-tests (Depends-on): Add signbit.
55384         * modules/frexpl-tests (Depdends-on): Likewise.
55385         * modules/ldexpl-tests (Depdends-on): Likewise.
55386
55387 2007-04-06  Bruno Haible  <bruno@clisp.org>
55388
55389         * modules/signbit-tests: New file.
55390         * tests/test-signbit.c: New file.
55391
55392         * modules/signbit: New file.
55393         * lib/signbitf.c: New file.
55394         * lib/signbitd.c: New file.
55395         * lib/signbitl.c: New file.
55396         * m4/signbit.m4: New file.
55397         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
55398         (signbit): New macro.
55399         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
55400         REPLACE_SIGNBIT.
55401         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
55402         REPLACE_FREXPL into math.h.
55403
55404 2007-04-06  Bruno Haible  <bruno@clisp.org>
55405
55406         * modules/isnanf-nolibm-tests: New file.
55407         * tests/test-isnanf.c: New file.
55408
55409         * modules/isnanf-nolibm: New file.
55410         * lib/isnanf.h: New file.
55411         * lib/isnanf.c: New file.
55412         * lib/isnan.c: Consider the USE_FLOAT macro.
55413         * m4/isnanf.m4: New file.
55414
55415 2007-04-06  Bruno Haible  <bruno@clisp.org>
55416
55417         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
55418         (Link): New section.
55419
55420         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
55421
55422 2007-04-06  Bruno Haible  <bruno@clisp.org>
55423
55424         Assume the 'long double' type.
55425         * m4/longdouble.m4: Remove file.
55426         * config/srclist.txt: Don't mention longdouble.m4.
55427         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
55428         * lib/float+.h: Likewise.
55429         * lib/frexp.c: Likewise.
55430         * lib/printf-args.h: Likewise.
55431         * lib/printf-args.c: Likewise.
55432         * lib/printf-frexp.c: Likewise.
55433         * lib/printf-parse.c: Likewise.
55434         * lib/vasnprintf.c: Likewise.
55435         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
55436         * m4/intl.m4: Likewise.
55437         * m4/isnanl.m4: Likewise.
55438         * m4/printf.m4: Likewise.
55439         * m4/printf-frexpl.m4: Likewise.
55440         * m4/vasnprintf.m4: Likewise.
55441         * modules/allocsa (Files): Remove m4/longdouble.m4.
55442         * modules/gettext (Files): Likewise.
55443         * modules/relocatable-prog-wrapper (Files): Likewise.
55444         * modules/vasnprintf (Files): Likewise.
55445         * modules/isnanl (Files): Likewise.
55446         (Include): Simplify.
55447         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
55448         (Include): Simplify.
55449         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
55450         (Include): Simplify.
55451         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
55452         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
55453         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
55454         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
55455         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
55456         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
55457         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
55458         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
55459         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
55460         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
55461         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
55462         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
55463         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
55464         * tests/test-isnanl.c: Likewise.
55465         * tests/test-snprintf-posix.h: Likewise.
55466         * tests/test-sprintf-posix.h: Likewise.
55467         * tests/test-vasnprintf-posix.c: Likewise.
55468         * tests/test-vasnprintf-posix2.c: Likewise.
55469         * tests/test-vasprintf-posix.c: Likewise.
55470
55471 2007-04-06  Bruno Haible  <bruno@clisp.org>
55472
55473         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
55474         * lib/math_.h [__DECC]: Include the overridden include file through
55475         #include_next, outside the double-inclusion guard.
55476         * lib/stdio_.h [__DECC]: Likewise.
55477         * lib/stdlib_.h [__DECC]: Likewise.
55478         * lib/string_.h [__DECC]: Likewise.
55479         * lib/time_.h [__DECC]: Likewise.
55480         * lib/wchar_.h [__DECC]: Likewise.
55481         * lib/wctype_.h [__DECC]: Likewise.
55482         * lib/inttypes_.h [__DECC]: Likewise.
55483         Reported by Albert Chin <china@thewrittenword.com> in
55484         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
55485
55486 2007-04-04  Eric Blake  <ebb9@byu.net>
55487
55488         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
55489         1.5.x.
55490
55491 2007-04-04  Bruno Haible  <bruno@clisp.org>
55492
55493         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
55494         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
55495
55496 2007-04-04  Bruno Haible  <bruno@clisp.org>
55497
55498         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
55499         results for "%010a" of Infinity and NaN.
55500         * tests/test-vasprintf-posix.c (test_function): Likewise.
55501         * tests/test-snprintf-posix.h (test_function): Likewise.
55502         * tests/test-sprintf-posix.h (test_function): Likewise.
55503         * tests/test-fprintf-posix.h (test_function): Remove these tests.
55504         * tests/test-printf-posix.h (test_function): Likewise.
55505         * tests/test-fprintf-posix.out: Update.
55506         Needed for FreeBSD 6.1.
55507
55508 2007-04-04  Bruno Haible  <bruno@clisp.org>
55509
55510         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
55511         directly used by the gnulib modules nor by gnulib-tool.
55512
55513 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
55514
55515         * DEPENDENCIES: Give overall description of version dependency
55516         desirability.  Use more-typical names for apps.
55517         Add shell, coreutils, diffutils, grep, tar, gzip.
55518
55519 2007-04-04  Simon Josefsson  <simon@josefsson.org>
55520
55521         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
55522
55523 2007-04-04  Karl Berry  <karl@gnu.org>
55524
55525         * MODULES.html.sh (func_module): missing '.
55526
55527 2007-04-03  Bruno Haible  <bruno@clisp.org>
55528
55529         * modules/argmatch-tests (Makefile.am): New variable
55530         test_argmatch_LDADD.
55531         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
55532         * modules/array-list-tests (Makefile.am): New variable
55533         test_array_list_LDADD.
55534         * modules/array-oset-tests (Makefile.am): New variable
55535         test_array_oset_LDADD.
55536         * modules/avltree-list-tests (Makefile.am): New variable
55537         test_avltree_list_LDADD.
55538         * modules/avltree-oset-tests (Makefile.am): New variable
55539         test_avltree_oset_LDADD.
55540         * modules/avltreehash-list-tests (Makefile.am): New variable
55541         test_avltreehash_list_LDADD.
55542         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
55543         test_canonicalize_lgpl_LDADD.
55544         * modules/carray-list-tests (Makefile.am): New variable
55545         test_carray_list_LDADD.
55546         * modules/dirname-tests (Makefile.am): New variable
55547         test_dirname_LDADD.
55548         * modules/linked-list-tests (Makefile.am): New variable
55549         test_linked_list_LDADD.
55550         * modules/linkedhash-list-tests (Makefile.am): New variable
55551         test_linkedhash_list_LDADD.
55552         * modules/rbtree-list-tests (Makefile.am): New variable
55553         test_rbtree_list_LDADD.
55554         * modules/rbtree-oset-tests (Makefile.am): New variable
55555         test_rbtree_oset_LDADD.
55556         * modules/rbtreehash-list-tests (Makefile.am): New variable
55557         test_rbtreehash_list_LDADD.
55558         * modules/xvasprintf-tests (Makefile.am): New variable
55559         test_xvasprintf_LDADD.
55560         Reported by Eric Blake.
55561
55562 2007-04-03  Eric Blake  <ebb9@byu.net>
55563
55564         * DEPENDENCIES: Weaken m4 requirements.
55565
55566 2007-04-03  Bruno Haible  <bruno@clisp.org>
55567
55568         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
55569         * modules/isnanl-tests (configure.ac): Likewise.
55570
55571 2007-04-03  Ben Pfaff  <blp@gnu.org>
55572
55573         * modules/iconv_open: Add $(srcdir)/ to source directory
55574         references in Makefile fragments that call gperf, to fix VPATH
55575         builds.
55576
55577 2007-04-03  Bruno Haible  <bruno@clisp.org>
55578
55579         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
55580         * lib/ldexpl.c: Undo last change.
55581
55582 2007-04-03  Bruno Haible  <bruno@clisp.org>
55583
55584         * modules/printf-frexpl (Depends-on): Undo last change.
55585         (Files): Add m4/ldexpl.m4.
55586
55587 2007-04-03  Bruno Haible  <bruno@clisp.org>
55588
55589         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
55590         * modules/isnanl (Link): New section.
55591
55592         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
55593         * modules/frexp (Link): New section.
55594
55595         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
55596         * modules/frexpl (Link): New section.
55597
55598         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
55599         * modules/ldexpl (Link): New section.
55600
55601 2007-04-03  Bruno Haible  <bruno@clisp.org>
55602
55603         * modules/TEMPLATE-EXTENDED: New file.
55604         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
55605
55606 2007-04-03  Bruno Haible  <bruno@clisp.org>
55607
55608         * DEPENDENCIES: New file.
55609         Suggested by Simon Josefsson.
55610
55611 2007-04-03  Bruno Haible  <bruno@clisp.org>
55612
55613         * doc/gnulib.texi: Escape @.
55614
55615 2007-04-03  James Youngman  <jay@gnu.org>
55616         and Paul Eggert  <eggert@cs.ucla.edu>
55617
55618         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
55619         birthtime on all systems that have birthtime, not just those which
55620         use st_birthtimensec rather than st_birthtim.  Putting zero in
55621         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
55622         that the birth time is not available for files on an NFS mount.
55623
55624 2007-04-03  Simon Josefsson  <simon@josefsson.org>
55625
55626         * modules/memxor: Move back from crypto/, suggested by Bruno.
55627         * modules/crypto/hmac-sha1: Fix memxor dependency.
55628
55629         * modules/crypto/gc: Moved from ../.
55630
55631 2007-04-02  Eric Blake  <ebb9@byu.net>
55632
55633         * lib/ldexpl.c (includes): Avoid libm.
55634
55635         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
55636
55637 2007-04-02  Bruno Haible  <bruno@clisp.org>
55638
55639         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
55640         on IRIX.
55641
55642 2007-04-02  Bruno Haible  <bruno@clisp.org>
55643
55644         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
55645         x86 or x86_64 platforms running MacOS X.
55646         Reported by Ryan Schmidt <@ryandesign.com>.
55647
55648 2007-04-02  Bruno Haible  <bruno@clisp.org>
55649
55650         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
55651         i386.
55652
55653 2007-04-01  Simon Josefsson  <simon@josefsson.org>
55654
55655         * modules/crypto/arcfour: Moved from ../.
55656         * modules/crypto/arcfour-tests: Moved from ../.
55657         * modules/crypto/arctwo: Moved from ../.
55658         * modules/crypto/arctwo-tests: Moved from ../.
55659         * modules/crypto/des: Moved from ../.
55660         * modules/crypto/des-tests: Moved from ../.
55661         * modules/crypto/gc-arcfour: Moved from ../.
55662         * modules/crypto/gc-arcfour-tests: Moved from ../.
55663         * modules/crypto/gc-arctwo: Moved from ../.
55664         * modules/crypto/gc-arctwo-tests: Moved from ../.
55665         * modules/crypto/gc-des: Moved from ../.
55666         * modules/crypto/gc-des-tests: Moved from ../.
55667         * modules/crypto/gc-hmac-md5: Moved from ../.
55668         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
55669         * modules/crypto/gc-hmac-sha1: Moved from ../.
55670         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
55671         * modules/crypto/gc-md2: Moved from ../.
55672         * modules/crypto/gc-md2-tests: Moved from ../.
55673         * modules/crypto/gc-md4: Moved from ../.
55674         * modules/crypto/gc-md4-tests: Moved from ../.
55675         * modules/crypto/gc-md5: Moved from ../.
55676         * modules/crypto/gc-md5-tests: Moved from ../.
55677         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
55678         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
55679         * modules/crypto/gc-random: Moved from ../.
55680         * modules/crypto/gc-rijndael: Moved from ../.
55681         * modules/crypto/gc-rijndael-tests: Moved from ../.
55682         * modules/crypto/gc-sha1: Moved from ../.
55683         * modules/crypto/gc-sha1-tests: Moved from ../.
55684         * modules/crypto/gc-tests: Moved from ../.
55685         * modules/crypto/hmac-md5: Moved from ../.
55686         * modules/crypto/hmac-md5-tests: Moved from ../.
55687         * modules/crypto/hmac-sha1: Moved from ../.
55688         * modules/crypto/hmac-sha1-tests: Moved from ../.
55689         * modules/crypto/md2: Moved from ../.
55690         * modules/crypto/md2-tests: Moved from ../.
55691         * modules/crypto/md4: Moved from ../.
55692         * modules/crypto/md4-tests: Moved from ../.
55693         * modules/crypto/md5: Moved from ../.
55694         * modules/crypto/md5-tests: Moved from ../.
55695         * modules/crypto/memxor: Moved from ../.
55696         * modules/crypto/rijndael: Moved from ../.
55697         * modules/crypto/rijndael-tests: Moved from ../.
55698         * modules/crypto/sha1: Moved from ../.
55699
55700 2007-03-30  James Youngman  <jay@gnu.org>
55701
55702         * tests/test-stat-time.c (prepare_test): use chmod() rather than
55703         rename() to change the ctime of a file (because ctime is unaffected
55704         by rename on jfs2 on AIX 5.1).
55705         (main): Start by doing cleanup, in case a previous run failed leaving
55706         test files behind.
55707
55708 2007-03-31  Bruno Haible  <bruno@clisp.org>
55709
55710         Support old proprietary implementations of iconv.
55711         * modules/iconv_open: New file.
55712         * lib/iconv_.h: New file.
55713         * m4/iconv_h.m4: New file.
55714         * lib/iconv_open.c: New file.
55715         * lib/iconv_open-aix.gperf: New file.
55716         * lib/iconv_open-hpux.gperf: New file.
55717         * lib/iconv_open-irix.gperf: New file.
55718         * lib/iconv_open-osf.gperf: New file.
55719         * m4/iconv_open.m4: New file.
55720         * modules/linebreak (Depends-on): Add iconv_open.
55721         * modules/striconv (Depends-on): Likewise.
55722         * modules/striconveh (Depends-on): Likewise.
55723         * modules/unicodeio (Depends-on): Likewise.
55724         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
55725         (iconv_t)(-1).
55726         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
55727         conversion if cd is (iconv_t)(-1).
55728         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
55729         is not possible.
55730
55731 2007-03-31  Bruno Haible  <bruno@clisp.org>
55732
55733         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
55734         work on Solaris either. Protect also second use of "autodetect_jp".
55735
55736 2007-03-31  Bruno Haible  <bruno@clisp.org>
55737
55738         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
55739         the function is not present.
55740
55741 2007-03-31  Bruno Haible  <bruno@clisp.org>
55742
55743         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
55744         the function is not present.
55745
55746 2007-03-31  Bruno Haible  <bruno@clisp.org>
55747
55748         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
55749         a bug in HP-UX iconv_open().
55750
55751 2007-03-31  Bruno Haible  <bruno@clisp.org>
55752
55753         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
55754         (Mathematics <math.h>): New section, add fpieee.
55755         (Input/output <stdio.h>): Add fseterr.
55756         (Mathematics <math.h>): New section, add printf-frexp.
55757         (Container data structures): Add sublist.
55758         (Core language properties): Add fpucw, inline.
55759         (Functions for greatest-width integer types <inttypes.h>): Add
55760         imaxabs, imaxdiv, inttypes.
55761         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
55762         isnanl-nolibm, ldexp.
55763         (Mathematics <math.h>): New section, add printf-frexpl.
55764         (Support for systems lacking POSIX:2001): Add fprintf-posix,
55765         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
55766         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
55767         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
55768         (Unicode string functions): Add unistr/u*-mbtoucr.
55769         (Java): Add javacomp-script, javaexec-script.
55770         (C#): Add csharpcomp-script, csharpexec-script.
55771         (Support for building libraries and executables): Add havelib,
55772         relocatable-*.
55773         (Support for maintaining and releasing projects): Renamed from
55774         'Support for maintaining and release projects'. Add announce-gen.
55775
55776 2007-03-31  Bruno Haible  <bruno@clisp.org>
55777
55778         * README: Talk primarily about git.
55779         (git and CVS): Renamed from CVS.
55780         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
55781         gnulib is available through git.
55782         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
55783
55784 2007-03-30  Bruno Haible  <bruno@clisp.org>
55785
55786         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
55787         * lib/poll_.h: Likewise.
55788         * lib/stat_.h: Likewise.
55789         * lib/sys_time_.h: Likewise.
55790         * lib/sysexit_.h: Likewise.
55791         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
55792         * lib/stdbool_.h: Likewise.
55793         * lib/byteswap_.h: Add double-inclusion guard.
55794
55795 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
55796
55797         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
55798
55799 2007-03-30  Karl Berry  <karl@gnu.org>
55800
55801         * config/srclist-update: double space after USA in the license
55802         substitution, since that's how it's usually (?) written.
55803
55804 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
55805
55806         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
55807         reported by Bruno Haible.
55808
55809 2007-03-29  Bruno Haible  <bruno@clisp.org>
55810
55811         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
55812         a bug in AIX iconv().
55813
55814 2007-03-29  Bruno Haible  <bruno@clisp.org>
55815
55816         * modules/ldexpl-tests: New file.
55817         * tests/test-ldexpl.c: New file.
55818
55819 2007-03-29  Bruno Haible  <bruno@clisp.org>
55820
55821         * lib/ldexpl.c: Include fpucw.h.
55822         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
55823         multiplication.
55824         * modules/ldexpl (Depends-on): Add fpucw.
55825
55826 2007-03-29  Bruno Haible  <bruno@clisp.org>
55827
55828         * modules/ldexpl: New file.
55829         * m4/ldexpl.m4: New file.
55830         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
55831         set.
55832         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
55833         REPLACE_LDEXPL.
55834         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
55835         REPLACE_LDEXPL.
55836         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
55837         gl_FUNC_LDEXPL_WORKS.
55838         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
55839         * modules/mathl (Files): Remove lib/ldexpl.c.
55840         (Depends-on): Add ldexpl.
55841
55842 2007-03-29  Bruno Haible  <bruno@clisp.org>
55843
55844         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
55845
55846 2007-03-29  Bruno Haible  <bruno@clisp.org>
55847
55848         * tests/test-striconveh.c (main): Don't assume that a direct conversion
55849         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
55850         and possibly also HP-UX.
55851         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
55852         work on AIX, IRIX, HP-UX, OSF/1.
55853         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
55854         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
55855         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
55856         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
55857         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
55858         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
55859
55860 2007-03-29  Bruno Haible  <bruno@clisp.org>
55861
55862         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
55863
55864 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
55865
55866         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
55867         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
55868
55869 2007-03-29  Eric Blake  <ebb9@byu.net>
55870
55871         * lib/acl-internal.h: Remove redundant include.
55872         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
55873         Cygwin when a file is locked.
55874
55875 2007-03-29  Bruno Haible  <bruno@clisp.org>
55876
55877         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
55878         file.
55879         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
55880
55881 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
55882
55883         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
55884         try to remove a parent directory if the child couldn't be removed
55885         (except for the first rmdir, which could fail because the child
55886         doesn't exist).  Problem reported by Jeff Blaine in
55887         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
55888
55889 2007-03-28  Bruno Haible  <bruno@clisp.org>
55890
55891         * lib/striconveh.c (utf8conv_carefully): New function.
55892         (mem_cd_iconveh_internal): Invoke it.
55893
55894 2007-03-28  Bruno Haible  <bruno@clisp.org>
55895
55896         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
55897         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
55898         input.
55899         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
55900         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
55901         unistr/u8-uctomb.
55902
55903 2007-03-28  Bruno Haible  <bruno@clisp.org>
55904
55905         * modules/unistr/u8-mbtoucr: New file.
55906         * lib/unistr/u8-mbtoucr.c: New file.
55907         * modules/unistr/u16-mbtoucr: New file.
55908         * lib/unistr/u16-mbtoucr.c: New file.
55909         * modules/unistr/u16-mbtoucr: New file.
55910         * lib/unistr/u16-mbtoucr.c: New file.
55911         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
55912
55913 2007-03-27  Simon Josefsson  <simon@josefsson.org>
55914             Bruno Haible  <bruno@clisp.org>
55915
55916         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
55917         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
55918         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
55919
55920         * m4/stdio_h.m4: Add stubs for vasprintf too.
55921
55922         * modules/stdio: Support vasprintf in sed command.
55923
55924         * modules/vasprintf: Depend on stdio for prototypes.  Remove
55925         vasprintf.h.  Add stdio module indicator.
55926
55927         * lib/stdio_.h: Declare asprintf and vasprintf, based on
55928         vasprintf.h.
55929
55930         * lib/vasprintf.h: File removed.
55931
55932         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
55933         * lib/vasprintf.c: Ditto.
55934         * lib/xvasprintf.c: Ditto.
55935         * tests/test-vasprintf-posix.c: Ditto.
55936         * tests/test-vasprintf.c: Ditto.
55937
55938 2007-03-27  Bruno Haible  <bruno@clisp.org>
55939
55940         Make vasnprintf multithread-safe.
55941         * lib/vasnprintf.c (decimal_point_char): New function.
55942         (VASNPRINTF): Use it.
55943         Suggested by Simon Josefsson.
55944
55945 2007-03-27  Eric Blake  <ebb9@byu.net>
55946
55947         Support sub-second birthtime on cygwin.
55948         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
55949         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
55950         (get_stat_birthtime): Also work with st_birthtim.
55951
55952 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
55953
55954         * lib/stat-time.h (USE_BIRTHTIME): Remove.
55955         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
55956         (get_stat_birthtime_ns): Do not try to use "spare" fields.
55957         (get_stat_birthtime_ns): Simplify compile-time tests.
55958         (get_stat_birthtime): Change the API to look like
55959         get_stat_mtime etc., except return a negative tv_nsec on error.
55960         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
55961         Don't check for "spare" fields.
55962         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
55963         or for struct stat.st_birthtime, as these tests aren't used.
55964         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
55965
55966 2007-03-27  Bruno Haible  <bruno@clisp.org>
55967
55968         * lib/stat-time.h: Include <sys/stat.h>.
55969
55970 2007-03-27  James Youngman  <jay@gnu.org>
55971
55972         * lib/stat-time.h (get_stat_birthtime): New function for
55973           retrieving st_birthtime as provided by UFS2 (hence *BSD).
55974         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
55975           and its variants.
55976         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
55977         * modules/stat-time-test: New file.
55978         * tests/test-stat-time.c: New test, devised by Bruno Haible.
55979
55980 2007-03-26  Bruno Haible  <bruno@clisp.org>
55981
55982         Better support of signalling NaNs.
55983         * lib/atanl.c: Include isnanl.h.
55984         (atanl): Perform test for NaN at the beginning of the function and
55985         through a call to isnanl.
55986         * lib/cosl.c: Include isnanl.h.
55987         (cosl): Perform test for NaN at the beginning of the function and
55988         through a call to isnanl.
55989         * lib/ldexpl.c: Include isnanl.h.
55990         (ldexpl): Perform test for NaN through a call to isnanl.
55991         * lib/logl.c: Include isnanl.h.
55992         (logl): Perform test for NaN at the beginning of the function and
55993         through a call to isnanl.
55994         * lib/sinl.c: Include isnanl.h.
55995         (sinl): Perform test for NaN at the beginning of the function and
55996         through a call to isnanl.
55997         * lib/sqrtl.c: Include isnanl.h.
55998         (sqrtl): Perform test for NaN at the beginning of the function and
55999         through a call to isnanl.
56000         * lib/tanl.c: Include isnanl.h.
56001         (tanl): Perform test for NaN at the beginning of the function and
56002         through a call to isnanl.
56003         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
56004         * modules/mathl (Depends-on): Add isnanl.
56005
56006 2007-03-26  Eric Blake  <ebb9@byu.net>
56007
56008         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
56009         regression in logic sense of previous patch.
56010
56011 2007-03-26  Bruno Haible  <bruno@clisp.org>
56012
56013         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
56014         unportable shell command "if ! ...".
56015         Reported by Ralf Wildenhues.
56016
56017 2007-03-25  Bruno Haible  <bruno@clisp.org>
56018
56019         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
56020         <sysexits.h> file, and only add EX_CONFIG.
56021         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
56022         absolute file name and whether it is sufficient. Substitute also
56023         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
56024         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
56025         ABSOLUTE_SYSEXITS_H into sysexits.h.
56026
56027 2007-03-25  Bruno Haible  <bruno@clisp.org>
56028
56029         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
56030         hints is NULL.
56031
56032 2007-03-25  Bruno Haible  <bruno@clisp.org>
56033
56034         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
56035         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
56036
56037 2007-03-25  Bruno Haible  <bruno@clisp.org>
56038
56039         * lib/vasnprintf.c: Include langinfo.h.
56040         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
56041         multithread-safe.
56042         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
56043         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
56044         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
56045         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
56046         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
56047         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
56048         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
56049         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
56050         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
56051         Reported by Simon Josefsson.
56052
56053 2007-03-25  Bruno Haible  <bruno@clisp.org>
56054
56055         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
56056         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
56057         * modules/vasnprintf (Depends-on): Add stdint.
56058
56059 2007-03-25  Bruno Haible  <bruno@clisp.org>
56060
56061         * modules/fpieee: New file.
56062         * m4/fpieee.m4: New file.
56063         * modules/isnan-nolibm (Depends-on): Add fpieee.
56064         * modules/isnanl-nolibm (Depends-on): Add fpieee.
56065         * modules/isnanl (Depends-on): Add fpieee.
56066
56067 2007-03-25  Bruno Haible  <bruno@clisp.org>
56068
56069         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
56070
56071 2007-03-25  Bruno Haible  <bruno@clisp.org>
56072
56073         Avoid test failures on IRIX 6.5.
56074         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
56075         (main): Use it.
56076         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
56077         macros.
56078         (main): Use them.
56079
56080 2007-03-25  Bruno Haible  <bruno@clisp.org>
56081
56082         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
56083         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
56084         exists but doesn't work.
56085         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
56086         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
56087         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
56088         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
56089         math.h.
56090
56091 2007-03-25  Bruno Haible  <bruno@clisp.org>
56092
56093         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
56094         returns inf. Needed on IRIX 6.5.
56095
56096 2007-03-25  Bruno Haible  <bruno@clisp.org>
56097
56098         * tests/test-frexpl.c: Include isnanl-nolibm.h.
56099         (main): Use isnanl instead of x != x idiom.
56100         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
56101
56102         * tests/test-frexp.c: Include isnan.h.
56103         (main): Use isnan instead of x != x idiom.
56104         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
56105
56106 2007-03-25  Bruno Haible  <bruno@clisp.org>
56107
56108         * tests/test-frexp.c (NaN): New function/macro.
56109         (main): Use it instead of 0.0 / 0.0.
56110         * tests/test-isnan.c (NaN): New function/macro.
56111         (main): Use it instead of 0.0 / 0.0.
56112         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
56113         (test_function): Use it instead of 0.0 / 0.0.
56114         * tests/test-vasprintf-posix.c (NaN): New function/macro.
56115         (test_function): Use it instead of 0.0 / 0.0.
56116         * tests/test-snprintf-posix.h (NaN): New function/macro.
56117         (test_function): Use it instead of 0.0 / 0.0.
56118         * tests/test-sprintf-posix.h (NaN): New function/macro.
56119         (test_function): Use it instead of 0.0 / 0.0.
56120         * tests/test-fprintf-posix.h (NaN): New function/macro.
56121         (test_function): Use it instead of 0.0 / 0.0.
56122         * tests/test-printf-posix.h (NaN): New function/macro.
56123         (test_function): Use it instead of 0.0 / 0.0.
56124
56125         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
56126
56127 2007-03-25  Bruno Haible  <bruno@clisp.org>
56128
56129         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
56130
56131 2007-03-25  Bruno Haible  <bruno@clisp.org>
56132
56133         * lib/regexec.c (merge_state_with_log): Make static.
56134
56135 2007-03-25  Bruno Haible  <bruno@clisp.org>
56136
56137         * lib/trigl.c (kernel_rem_pio2): Make static.
56138
56139 2007-03-25  Bruno Haible  <bruno@clisp.org>
56140
56141         * lib/sincosl.c (sincosl_table): Make static.
56142
56143 2007-03-25  Bruno Haible  <bruno@clisp.org>
56144
56145         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
56146         if the compiler does not support C99.
56147
56148 2007-03-25  Bruno Haible  <bruno@clisp.org>
56149
56150         * modules/time (Makefile.am): Ensure all rule action lines start with a
56151         tab.
56152
56153 2007-03-24  Bruno Haible  <bruno@clisp.org>
56154
56155         * modules/tsearch-tests: New file.
56156         * tests/test-tsearch.sh: New file.
56157         * tests/test-tsearch.c: New file, mostly copied from glibc.
56158
56159         * modules/search-tests: New file.
56160         * tests/test-search.c: New file.
56161
56162         * modules/search: New file.
56163         * lib/search_.h: New file, incorporating lib/tsearch.h.
56164         * m4/search_h.m4: New file.
56165         * lib/tsearch.h: Remove file.
56166         * lib/tsearch.c: Include search.h instead of tsearch.h.
56167         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
56168         HAVE_TSEARCH.
56169         * modules/tsearch (Files): Remove lib/tsearch.h.
56170         (Depends-on): Add search.
56171         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
56172         (Include): Change tsearch.h into search.h.
56173
56174 2007-03-24  Bruno Haible  <bruno@clisp.org>
56175
56176         * modules/fpucw: New file.
56177         * lib/fpucw.h: New file.
56178         * lib/frexp.c: Include fpucw.h.
56179         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
56180         (FUNC): Use them.
56181         * lib/printf-frexp.c: Include fpucw.h.
56182         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
56183         (FUNC): Use them.
56184         * lib/vasnprintf.c: Include fpucw.h.
56185         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
56186         'long double' calculations.
56187         * tests/test-frexpl.c: Include fpucw.h.
56188         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
56189         * tests/test-printf-frexpl.c: Include fpucw.h.
56190         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
56191         * modules/frexpl (Depends-on): Add fpucw.
56192         * modules/printf-frexpl (Depends-on): Likewise.
56193         * modules/fprintf-posix (Depends-on): Likewise.
56194         * modules/snprintf-posix (Depends-on): Likewise.
56195         * modules/sprintf-posix (Depends-on): Likewise.
56196         * modules/vasnprintf-posix (Depends-on): Likewise.
56197         * modules/vasprintf-posix (Depends-on): Likewise.
56198         * modules/vfprintf-posix (Depends-on): Likewise.
56199         * modules/vsnprintf-posix (Depends-on): Likewise.
56200         * modules/vsprintf-posix (Depends-on): Likewise.
56201         * modules/frexpl-tests (Depends-on): Likewise.
56202         * modules/printf-frexpl-tests (Depends-on): Likewise.
56203
56204 2007-03-24  Bruno Haible  <bruno@clisp.org>
56205
56206         * lib/float+.h: New file.
56207         * lib/isnan.c: Include float+.h.
56208         (SIZE): New macro.
56209         (FUNC): Compare only SIZE bytes of the value.
56210         * lib/vasnprintf.c: Include float+.h.
56211         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
56212         SIZEOF_LDBL or SIZEOF_DBL bytes.
56213         * modules/isnan-nolibm (Files): Add lib/float+.h.
56214         * modules/isnanl-nolibm (Files): Add lib/float+.h.
56215         * modules/isnanl (Files): Add lib/float+.h.
56216         * modules/vasnprintf (Files): Add lib/float+.h.
56217
56218 2007-03-24  Bruno Haible  <bruno@clisp.org>
56219
56220         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
56221         include isnanl-nolibm.h.
56222
56223 2007-03-24  Bruno Haible  <bruno@clisp.org>
56224
56225         * tests/test-read-file.c (main): Don't produce spurious output for
56226         expected situations. Make the test fail if it encountered unexpected
56227         results.
56228
56229 2007-03-24  Bruno Haible  <bruno@clisp.org>
56230
56231         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
56232         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
56233
56234 2007-03-24  Bruno Haible  <bruno@clisp.org>
56235
56236         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
56237
56238 2007-03-24  Bruno Haible  <bruno@clisp.org>
56239
56240         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
56241         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
56242
56243         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
56244         * modules/utf8-ucs4: Turn into a symbolic link to module
56245         unistr/u8-mbtouc.
56246
56247         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
56248         utf8-ucs4-unsafe.
56249         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
56250         unistr/u8-mbtouc-unsafe.
56251
56252         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
56253         * modules/utf16-ucs4: Turn into a symbolic link to module
56254         unistr/u16-mbtouc.
56255
56256         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
56257         utf16-ucs4-unsafe.
56258         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
56259         unistr/u16-mbtouc-unsafe.
56260
56261         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
56262         * modules/ucs4-utf8: Turn into a symbolic link to module
56263         unistr/u8-ubtomb.
56264
56265         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
56266         * modules/ucs4-utf16: Turn into a symbolic link to module
56267         unistr/u16-ubtomb.
56268
56269 2007-03-24  Bruno Haible  <bruno@clisp.org>
56270
56271         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
56272         Enable the function only if HAVE_INLINE.
56273         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
56274         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
56275         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
56276         Enable the function only if HAVE_INLINE.
56277         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
56278         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
56279         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
56280         Enable the function only if HAVE_INLINE.
56281         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
56282         Enable the function only if HAVE_INLINE.
56283         * modules/utf8-ucs4: Update.
56284         * modules/utf8-ucs4-unsafe: Update.
56285         * modules/utf16-ucs4: Update.
56286         * modules/utf16-ucs4-unsafe: Update.
56287         * modules/ucs4-utf8: Update.
56288         * modules/ucs4-utf16: Update.
56289
56290 2007-03-24  Bruno Haible  <bruno@clisp.org>
56291
56292         * lib/utf8-ucs4.h: Remove file.
56293         * lib/utf8-ucs4-unsafe.h: Remove file.
56294         * lib/utf16-ucs4.h: Remove file.
56295         * lib/utf16-ucs4-unsafe.h: Remove file.
56296         * lib/ucs4-utf8.h: Remove file.
56297         * lib/ucs4-utf16.h: Remove file.
56298         * lib/unistr.h: Include their previous contents.
56299         * m4/utf-ucs4.m4: Remove file.
56300         * m4/ucs4-utf.m4: Remove file.
56301         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
56302         (Depends-on): Add unistr/base.
56303         (configure.ac): Remove gl_UTF_UCS4.
56304         (Makefile.am): Update.
56305         (Include): Change to unistr.h.
56306         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
56307         (Depends-on): Add unistr/base.
56308         (configure.ac): Remove gl_UTF_UCS4.
56309         (Makefile.am): Update.
56310         (Include): Change to unistr.h.
56311         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
56312         (Depends-on): Add unistr/base.
56313         (configure.ac): Remove gl_UTF_UCS4.
56314         (Makefile.am): Update.
56315         (Include): Change to unistr.h.
56316         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
56317         (Depends-on): Add unistr/base.
56318         (configure.ac): Remove gl_UTF_UCS4.
56319         (Makefile.am): Update.
56320         (Include): Change to unistr.h.
56321         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
56322         (Depends-on): Add unistr/base.
56323         (configure.ac): Remove gl_UCS4_UTF.
56324         (Makefile.am): Update.
56325         (Include): Change to unistr.h.
56326         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
56327         (Depends-on): Add unistr/base.
56328         (configure.ac): Remove gl_UCS4_UTF.
56329         (Makefile.am): Update.
56330         (Include): Change to unistr.h.
56331         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
56332         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
56333         utf8-ucs4-unsafe.h.
56334         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
56335         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
56336         utf16-ucs4-unsafe.h.
56337         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
56338         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
56339         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
56340         * lib/unistr/u8-strchr.c: Likewise.
56341         * lib/unistr/u8-strrchr.c: Likewise.
56342         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
56343         * lib/unistr/u16-strchr.c: Likewise.
56344         * lib/unistr/u16-strrchr.c: Likewise.
56345         * lib/striconveh.c: Update.
56346         * lib/linebreak.c: Update.
56347
56348 2007-03-24  Bruno Haible  <bruno@clisp.org>
56349
56350         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
56351         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
56352
56353 2007-03-22  Bruno Haible  <bruno@clisp.org>
56354
56355         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
56356
56357 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
56358
56359         * MODULES.html.sh (File system functions): New module write-any-file.
56360         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
56361         * m4/write-any-file.m4: New files.
56362
56363 2007-03-23  Eric Blake  <ebb9@byu.net>
56364
56365         * gnulib-tool: Rearrange space-tab sequences, since some editors
56366         like to eat them.
56367
56368 2007-03-23  Eric Blake  <ebb9@byu.net>
56369
56370         * lib/version-etc.c (version_etc_va): Update license wording to
56371         be more concise.  Recommended by Richard Stallman.
56372
56373 2007-03-22  Bruno Haible  <bruno@clisp.org>
56374
56375         * lib/poll.c (MSG_PEEK): New fallback definition.
56376
56377 2007-03-22  Bruno Haible  <bruno@clisp.org>
56378
56379         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
56380         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
56381         (main): Update.
56382         Fixes a compilation error on BeOS.
56383
56384 2007-03-22  Bruno Haible  <bruno@clisp.org>
56385
56386         * modules/frexpl-tests: New file.
56387         * tests/test-frexpl.c: New file.
56388
56389         * modules/frexpl: New file.
56390         * m4/frexpl.m4: New file.
56391         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
56392         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
56393         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
56394         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
56395         (Depends-on): Add frexpl. Remove isnanl-nolibm.
56396         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
56397
56398 2007-03-22  Bruno Haible  <bruno@clisp.org>
56399
56400         * lib/frexpl.c: Share code with lib/frexp.c.
56401         * modules/mathl (Files): Add lib/frexp.c.
56402         (Depends-on): Add isnanl-nolibm.
56403
56404 2007-03-22  Bruno Haible  <bruno@clisp.org>
56405
56406         * modules/printf-frexp (Files): Add m4/frexp.m4.
56407         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
56408         only if the found frexp function actually works.
56409
56410 2007-03-22  Bruno Haible  <bruno@clisp.org>
56411
56412         * lib/frexp.c: Remove older implementation that uses divisions.
56413
56414 2007-03-21  Bruno Haible  <bruno@clisp.org>
56415
56416         * modules/frexp-tests: New file.
56417         * tests/test-frexp.c: New file.
56418
56419         * modules/frexp: New file.
56420         * lib/frexp.c: New file.
56421         * m4/frexp.m4: New file.
56422         * lib/math_.h (frexp): New declaration.
56423         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
56424         REPLACE_FREXP.
56425         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
56426
56427 2007-03-21  Bruno Haible  <bruno@clisp.org>
56428
56429         * modules/isnanl-tests: New file.
56430         * tests/test-isnanl.c: New file.
56431
56432         * modules/isnanl: New file.
56433         * lib/isnanl.h: New file.
56434         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
56435         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
56436         gl_FUNC_ISNANL_WORKS.
56437         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
56438         New macros.
56439
56440 2007-03-21  Bruno Haible  <bruno@clisp.org>
56441
56442         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
56443         lib/isnanl.h.
56444         (Include): Update.
56445         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
56446         * lib/vasnprintf.c: Update.
56447         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
56448         tests/test-isnanl.h, remove tests/test-isnanl.c.
56449         (Makefile.am): Update.
56450         * tests/test-isnanl-nolibm.c: New file.
56451         * tests/test-isnanl.h: New file.
56452         * tests/test-isnanl.c: Remove file.
56453
56454 2007-03-21  Jim Meyering  <jim@meyering.net>
56455
56456         When trying to open ".", treat ESTALE like EACCES.
56457         * lib/savewd.c (savewd_save): Resort to forking not just upon
56458         failure with EACCES, but also when errno is ESTALE.
56459
56460 2007-03-20  Bruno Haible  <bruno@clisp.org>
56461
56462         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
56463         Needed on AIX 5.1. Reported by Matthew Woehlke.
56464
56465 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
56466
56467         Suggestions by Bruno Haible:
56468         * lib/acl-internal.h: Include "gettext.h" rather than rolling
56469         our own.
56470         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
56471         * modules/acl (Depends-on): Add gettext.
56472
56473 2007-03-19  Bruno Haible  <bruno@clisp.org>
56474
56475         * modules/iconvme: Remove file.
56476         * lib/iconvme.h: Remove file.
56477         * lib/iconvme.c: Remove file.
56478         * m4/iconvme.m4: Remove file.
56479
56480 2007-03-19  Bruno Haible  <bruno@clisp.org>
56481
56482         * doc/relocatable-maint.texi: Break long shell script line.
56483         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
56484
56485 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
56486
56487         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
56488         handle file_has_acl.
56489         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
56490         * lib/acl.c: Move header inclusions and related macro defns into
56491         lib/acl-internal.h.
56492         (S_ISLNK): Remove defn, since that's now done for us.
56493         (file_has_acl): Move to lib/file-has-acl.c.
56494         Call acl_trivial if available.  This is the crucial part of the fix.
56495         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
56496         shared within the library.  Rewrite a bit, partly to make it compatible
56497         with the GNU coding style.
56498         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
56499         Remove unnecessary double-quotes.
56500         Don't test for acl_to_text; the build will catch that.
56501         Replace acl_entries if it doesn't exist and it is needed.
56502         Check for -lsec and acl_trivial (as used on Solaris 10).
56503         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
56504         lib/file-has-acl.c.
56505         (Depends-on): Add sys_stat, for S_ISLNK.
56506
56507 2007-03-19  Ben Pfaff  <blp@gnu.org>
56508
56509         * doc/gnulib.texi: Fix typos.
56510         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
56511
56512 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
56513
56514         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
56515         If size is zero here, buf must be zero.
56516
56517 2007-03-19  Simon Josefsson  <simon@josefsson.org>
56518
56519         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
56520         <bruno@clisp.org>.
56521
56522 2007-03-18  Bruno Haible  <bruno@clisp.org>
56523
56524         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
56525         Suggested by Eric Blake.
56526
56527 2007-03-18  Ben Pfaff  <blp@gnu.org>
56528
56529         * doc/relocatable.texi: Recommend using as prefix a directory
56530         that does not exist and will never be created.  Based on
56531         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
56532         and others.
56533
56534 2007-03-17  Bruno Haible  <bruno@clisp.org>
56535
56536         * lib/fchownat.c: Include lchown.h.
56537
56538 2007-03-17  Bruno Haible  <bruno@clisp.org>
56539
56540         Fix endless loop when the given allocated size was > INT_MAX.
56541         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
56542         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
56543         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
56544         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
56545         * lib/sprintf.c (sprintf): Likewise.
56546
56547 2007-03-17  Bruno Haible  <bruno@clisp.org>
56548
56549         * tests/test-argp-2.sh (func_compare): Output a context diff.
56550
56551 2007-03-17  Bruno Haible  <bruno@clisp.org>
56552
56553         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
56554         locale's decimal-point character.
56555
56556 2007-03-17  Bruno Haible  <bruno@clisp.org>
56557
56558         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
56559         before comparing it. Needed because on some platforms (e.g. x86) a
56560         'long double' occupies less bytes than sizeof (long double).
56561
56562 2007-03-17  Bruno Haible  <bruno@clisp.org>
56563
56564         * tests/test-crc.c (main): Make printf statements 64-bit clean.
56565         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
56566         * tests/test-getaddrinfo.c (simple): Likewise.
56567         * tests/test-read-file.c (main): Likewise.
56568
56569 2007-03-17  Bruno Haible  <bruno@clisp.org>
56570
56571         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
56572
56573 2007-03-17  Bruno Haible  <bruno@clisp.org>
56574
56575         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
56576         unused variable.
56577
56578 2007-03-17  Bruno Haible  <bruno@clisp.org>
56579
56580         * tests/test-c-strcasecmp.c: Include c-strcase.h.
56581         * tests/test-c-strncasecmp.c: Likewise.
56582
56583 2007-03-17  Bruno Haible  <bruno@clisp.org>
56584
56585         * modules/stdlib (Depends-on): Add unistd.
56586         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
56587         Needed for MacOS X 10.3.
56588
56589 2007-03-17  Bruno Haible  <bruno@clisp.org>
56590
56591         * lib/unistr/u-strdup.h: Include <stdlib.h>.
56592
56593 2007-03-17  Bruno Haible  <bruno@clisp.org>
56594
56595         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
56596
56597 2007-03-17  Bruno Haible  <bruno@clisp.org>
56598
56599         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
56600         to reflect files copied from gnulib (with or without modifications).
56601         Suggested by Jim Meyering.
56602
56603 2007-03-17  Eric Blake  <ebb9@byu.net>
56604
56605         * NEWS: Document stdlib change from 2007-02-18.
56606
56607 2007-03-17  Jim Meyering  <jim@meyering.net>
56608
56609         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
56610         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
56611         someone uses a name containing shell meta-characters.
56612         Reported by Alfred M. Szmidt.
56613
56614         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
56615
56616 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
56617
56618         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
56619         and copy gettext configuration files only if configure.ac contains
56620         a use of AM_GNU_GETTEXT_VERSION.
56621
56622 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
56623
56624         * build-aux/bootstrap (gnulib_name): New variable.
56625         (gnulib_tool_options): Use it.
56626
56627 2007-03-13  Simon Josefsson  <simon@josefsson.org>
56628
56629         * tests/test-des.c: Use new namespace.
56630
56631 2007-03-15  Bruno Haible  <bruno@clisp.org>
56632
56633         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
56634         Reported by James Youngman <jay@gnu.org>.
56635
56636 2007-03-15  Bruno Haible  <bruno@clisp.org>
56637
56638         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
56639         declared prototype. Needed with cc on OSF/1 5.1.
56640
56641 2007-03-15  Bruno Haible  <bruno@clisp.org>
56642
56643         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
56644         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
56645         (struct gl_list_implementation): Add dispose_fn argument to the
56646         'create_empty', 'create' methods.
56647         (struct gl_list_impl_base): Add field 'dispose_fn'.
56648         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
56649         argument.
56650         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
56651         dispose_fn argument.
56652         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
56653         dispose_fn on the dropped values.
56654         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
56655         dispose_fn argument.
56656         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
56657         dropped values.
56658         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
56659         (gl_tree_remove_node): Call dispose_fn on the dropped value.
56660         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
56661         (gl_tree_remove_node): Call dispose_fn on the dropped value.
56662         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
56663         argument.
56664         (gl_tree_list_free): Call dispose_fn on the dropped values.
56665         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
56666         the dropped values.
56667         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
56668         Add dispose_fn argument.
56669         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
56670         Call dispose_fn on the dropped values.
56671         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
56672         Add dispose_fn argument.
56673         (gl_sublist_create): Initialize the 'dispose_fn' field.
56674         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
56675         * tests/test-array_list.c (main): Update.
56676         * tests/test-carray_list.c (main): Update.
56677         * tests/test-avltree_list.c (main): Update.
56678         * tests/test-rbtree_list.c (main): Update.
56679         * tests/test-avltreehash_list.c (main): Update.
56680         * tests/test-rbtreehash_list.c (main): Update.
56681         * tests/test-linked_list.c (main): Update.
56682         * tests/test-linkedhash_list.c (main): Update.
56683         * tests/test-array_oset.c (main): Update.
56684
56685 2007-03-15  Bruno Haible  <bruno@clisp.org>
56686
56687         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
56688         (gl_oset_create_empty): Add dispose_fn argument.
56689         (struct gl_oset_implementation): Add dispose_fn argument to
56690         'create_empty' method.
56691         (struct gl_oset_impl_base): Add dispose_fn field.
56692         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
56693         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
56694         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
56695         values.
56696         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
56697         (gl_tree_oset_free): Call dispose_fn on the dropped values.
56698         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
56699         dropped value.
56700         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
56701         dropped value.
56702         * tests/test-array_oset.c (main): Update.
56703         * tests/test-avltree_oset.c (main): Update.
56704         * tests/test-rbtree_oset.c (main): Update.
56705         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
56706
56707 2007-03-13  Bruno Haible  <bruno@clisp.org>
56708
56709         * tests/test-stdbool.c (i): Update after last patch.
56710
56711 2007-03-12  Bruno Haible  <bruno@clisp.org>
56712
56713         * lib/quotearg.c: Include <wctype.h> early, before the definition of
56714         the iswprint macro. Needed on Solaris 2.5.1.
56715
56716 2007-03-12  Bruno Haible  <bruno@clisp.org>
56717
56718         * tests/test-printf-frexp.c (main): Declare x as volatile.
56719
56720 2007-03-12  Simon Josefsson  <simon@josefsson.org>
56721
56722         * doc/gnulib.texi (Build robot for gnulib): New section.
56723
56724 2007-03-12  Jim Meyering  <jim@meyering.net>
56725
56726         * build-aux/bootstrap: New file.
56727         * build-aux/bootstrap.conf: New file, from coreutils.
56728
56729 2007-03-11  Bruno Haible  <bruno@clisp.org>
56730
56731         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
56732
56733 2007-03-12  Simon Josefsson  <simon@josefsson.org>
56734
56735         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
56736         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
56737         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
56738
56739 2007-03-11  Bruno Haible  <bruno@clisp.org>
56740
56741         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
56742         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
56743
56744 2007-03-11  Bruno Haible  <bruno@clisp.org>
56745
56746         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
56747         formula. Needed for SunPRO C 5.0.
56748
56749 2007-03-11  Bruno Haible  <bruno@clisp.org>
56750
56751         * modules/long-options (Depends-on): Add getopt.
56752
56753 2007-03-11  Bruno Haible  <bruno@clisp.org>
56754
56755         * modules/modechange (Depends-on): Add stdbool.
56756
56757 2007-03-11  Bruno Haible  <bruno@clisp.org>
56758
56759         * modules/i-ring (Depends-on): Add stdbool.
56760
56761 2007-03-11  Bruno Haible  <bruno@clisp.org>
56762
56763         * modules/gc-des (Depends-on): Add stdbool.
56764
56765 2007-03-11  Bruno Haible  <bruno@clisp.org>
56766
56767         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
56768
56769 2007-03-11  Bruno Haible  <bruno@clisp.org>
56770
56771         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
56772
56773 2007-03-11  Bruno Haible  <bruno@clisp.org>
56774
56775         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
56776
56777 2007-03-11  Bruno Haible  <bruno@clisp.org>
56778
56779         * lib/vasnprintf.c (sprintf): Undefine.
56780
56781 2007-03-11  Bruno Haible  <bruno@clisp.org>
56782
56783         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
56784         initializers in SunPRO C and Compaq C compilers.
56785
56786 2007-03-11  Bruno Haible  <bruno@clisp.org>
56787
56788         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
56789         decrementing code ANSI C compliant.
56790
56791 2007-03-11  Bruno Haible  <bruno@clisp.org>
56792
56793         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
56794         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
56795
56796 2007-03-11  Bruno Haible  <bruno@clisp.org>
56797
56798         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
56799         <stdbool.h> substitute doesn't pass.
56800
56801 2007-03-11  Bruno Haible  <bruno@clisp.org>
56802
56803         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
56804
56805 2007-03-11  Bruno Haible  <bruno@clisp.org>
56806
56807         * gnulib-tool (func_create_megatestdir): Create also an autobuild
56808         script, for submission to autobuild.josefsson.org.
56809
56810 2007-03-10  Bruno Haible  <bruno@clisp.org>
56811
56812         * modules/canonicalize-lgpl-tests: New file.
56813         * tests/test-canonicalize-lgpl.sh: New file.
56814         * tests/test-canonicalize-lgpl.c: New file.
56815
56816         * modules/c-strcase-tests: New file.
56817         * tests/test-c-strcase.sh: New file.
56818         * tests/test-c-strcasecmp.c: New file.
56819         * tests/test-c-strncasecmp.c: New file.
56820
56821         * modules/atexit-tests: New file.
56822         * tests/test-atexit.sh: New file.
56823         * tests/test-atexit.c: New file.
56824
56825 2007-03-10  Bruno Haible  <bruno@clisp.org>
56826
56827         * tests/test-binary-io.sh: Use temporary filenames that are not so
56828         likely to clash with those of other tests (in a parallel make).
56829         * tests/test-binary-io.c: Likewise.
56830
56831 2007-03-10  Bruno Haible  <bruno@clisp.org>
56832
56833         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
56834         fallback; use #error instead.
56835         Suggested by Simon Josefsson.
56836
56837 2007-03-10  Bruno Haible  <bruno@clisp.org>
56838
56839         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
56840         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
56841         first and the last.
56842
56843 2007-03-10  Bruno Haible  <bruno@clisp.org>
56844
56845         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
56846
56847 2007-03-10  Bruno Haible  <bruno@clisp.org>
56848
56849         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
56850         "make distcheck".
56851         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
56852         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
56853         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
56854
56855 2007-03-10  Bruno Haible  <bruno@clisp.org>
56856
56857         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
56858         variable.
56859         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
56860         variable.
56861
56862 2007-03-09  Eric Blake  <ebb9@byu.net>
56863         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
56864
56865         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
56866         types are not being provided by gnulib.
56867         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
56868         types are supported.
56869
56870 2007-03-10  Bruno Haible  <bruno@clisp.org>
56871
56872         * lib/stdio_.h (__attribute__): New macro.
56873         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
56874         vsprintf): Specify __attribute__ __format__ for GCC.
56875         Suggested by Eric Blake.
56876
56877 2007-03-09  Bruno Haible  <bruno@clisp.org>
56878
56879         * modules/printf-posix-tests: New file.
56880         * tests/test-printf-posix.sh: New file.
56881         * tests/test-printf-posix.c: New file.
56882
56883         * modules/printf-posix: New file.
56884         * lib/printf.c: New file.
56885         * m4/printf-posix-rpl.m4: New file.
56886         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
56887         REPLACE_PRINTF.
56888         * lib/stdio_.h (printf): New declaration.
56889         (format, __format__, ____printf____, ____scanf____, ____strftime____,
56890         ____strfmon____): New macros.
56891         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
56892         REPLACE_PRINTF.
56893
56894 2007-03-09  Bruno Haible  <bruno@clisp.org>
56895
56896         * tests/test-vasnprintf-posix2.sh: New file.
56897         * tests/test-vasnprintf-posix2.c: New file.
56898         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
56899         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
56900         (Makefile.am): Activate test-vasnprintf-posix2.sh.
56901
56902         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
56903         a locale dependent decimal point, rather than always '.'.
56904
56905 2007-03-09  Eric Blake  <ebb9@byu.net>
56906
56907         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
56908         spite of platforms like Tandem/NSK that define it to -1.
56909
56910 2007-03-08  Bruno Haible  <bruno@clisp.org>
56911
56912         * modules/vprintf-posix-tests: New file.
56913         * tests/test-vprintf-posix.sh: New file.
56914         * tests/test-vprintf-posix.c: New file.
56915         * tests/test-printf-posix.h: New file.
56916
56917         * modules/vprintf-posix: New file.
56918         * lib/vprintf.c: New file.
56919         * m4/vprintf-posix.m4: New file.
56920         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
56921         REPLACE_VPRINTF.
56922         * lib/stdio_.h (vprintf): New declaration.
56923         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
56924         REPLACE_VPRINTF.
56925
56926 2007-03-08  Bruno Haible  <bruno@clisp.org>
56927
56928         * modules/fprintf-posix-tests: New file.
56929         * tests/test-fprintf-posix.sh: New file.
56930         * tests/test-fprintf-posix.c: New file.
56931
56932         * modules/fprintf-posix: New file.
56933         * lib/fprintf.c: New file.
56934         * m4/fprintf-posix.m4: New file.
56935         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
56936         REPLACE_FPRINTF.
56937         * lib/stdio_.h (fprintf): New declaration.
56938         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
56939         REPLACE_FPRINTF.
56940
56941 2007-03-08  Bruno Haible  <bruno@clisp.org>
56942
56943         * modules/vfprintf-posix-tests: New file.
56944         * tests/test-vfprintf-posix.sh: New file.
56945         * tests/test-vfprintf-posix.c: New file.
56946         * tests/test-fprintf-posix.h: New file.
56947         * tests/test-fprintf-posix.out: New file.
56948
56949         * modules/vfprintf-posix: New file.
56950         * lib/vfprintf.c: New file.
56951         * m4/vfprintf-posix.m4: New file.
56952         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
56953         REPLACE_VFPRINTF.
56954         * lib/stdio_.h (vfprintf): New declaration.
56955         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
56956         REPLACE_VFPRINTF.
56957
56958 2007-03-08  Bruno Haible  <bruno@clisp.org>
56959
56960         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
56961
56962 2007-03-08  Bruno Haible  <bruno@clisp.org>
56963
56964         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
56965         instead of 'expr' invocations.
56966         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
56967         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
56968         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
56969         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
56970         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
56971         Suggested by Paul Eggert.
56972
56973 2007-03-08  Bruno Haible  <bruno@clisp.org>
56974
56975         * modules/fseterr-tests: New file.
56976         * tests/test-fseterr.c: New file.
56977
56978         * modules/fseterr: New file.
56979         * lib/fseterr.h: New file.
56980         * lib/fseterr.c: New file.
56981
56982 2007-03-08  Bruno Haible  <bruno@clisp.org>
56983
56984         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
56985         * lib/getopt_.h: Likewise.
56986         * lib/mbswidth.h: Likewise.
56987         * lib/setenv.h: Likewise.
56988         * lib/vasnprintf.h: Likewise.
56989         * lib/vasprintf.h: Likewise.
56990         * lib/verror.h: Likewise.
56991         * lib/xsetenv.h: Likewise.
56992         * lib/xvasprintf.h: Likewise.
56993
56994 2007-03-08  Jim Meyering  <jim@meyering.net>
56995
56996         * users.txt: Add parted.
56997
56998         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
56999
57000 2007-03-07  Bruno Haible  <bruno@clisp.org>
57001
57002         * m4/printf.m4: Make the shell script snippets copy&pastable.
57003
57004 2007-03-02  Bruno Haible  <bruno@clisp.org>
57005
57006         * lib/netinet_in_.h: New file.
57007         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
57008         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
57009         * modules/netinet_in (Files): Add lib/netinet_in_.h.
57010         (Depends-on): Add absolute-header.
57011         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
57012         into netinet/in.h.
57013
57014 2007-03-03  Bruno Haible  <bruno@clisp.org>
57015
57016         * lib/sys_select_.h: New file.
57017         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
57018         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
57019         * modules/sys_select (Files): Add lib/sys_select_.h.
57020         (Depends-on): Add absolute-header.
57021         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
57022         into sys/select.h.
57023
57024 2007-03-02  Bruno Haible  <bruno@clisp.org>
57025
57026         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
57027         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
57028         values.
57029         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
57030         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
57031         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
57032         * modules/sys_socket (Depends-on): Add absolute-header.
57033         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
57034         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
57035         (Include): Remove requirement of inclusion of <sys/types.h>.
57036
57037 2007-03-02  Bruno Haible  <bruno@clisp.org>
57038
57039         * lib/byteswap_.h (bswap_32): Fix formula.
57040
57041 2007-03-06  Bruno Haible  <bruno@clisp.org>
57042
57043         * modules/sprintf-posix-tests: New file.
57044         * tests/test-sprintf-posix.c: New file.
57045
57046         * modules/sprintf-posix: New file.
57047         * lib/sprintf.c: New file.
57048         * m4/sprintf-posix.m4: New file.
57049         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
57050         REPLACE_SPRINTF.
57051         * lib/stdio_.h (sprintf): New declaration.
57052         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
57053         REPLACE_SPRINTF.
57054
57055 2007-03-06  Bruno Haible  <bruno@clisp.org>
57056
57057         * modules/vsprintf-posix-tests: New file.
57058         * tests/test-vsprintf-posix.c: New file.
57059         * tests/test-sprintf-posix.h: New file.
57060
57061         * modules/vsprintf-posix: New file.
57062         * lib/vsprintf.c: New file.
57063         * m4/vsprintf-posix.m4: New file.
57064         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
57065         REPLACE_VSPRINTF.
57066         * lib/stdio_.h (vsprintf): New declaration.
57067         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
57068         REPLACE_VSPRINTF.
57069
57070 2007-03-06  Bruno Haible  <bruno@clisp.org>
57071
57072         * modules/vsnprintf (Depend-on): Remove minmax.
57073
57074 2007-03-06  Bruno Haible  <bruno@clisp.org>
57075
57076         * modules/snprintf-posix-tests: New file.
57077         * tests/test-snprintf-posix.c: New file.
57078
57079         * modules/snprintf-posix: New file.
57080         * m4/snprintf-posix.m4: New file.
57081         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
57082         gl_FUNC_SNPRINTF.
57083         (gl_FUNC_SNPRINTF): Invoke it.
57084         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
57085         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
57086         is set.
57087         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
57088
57089 2007-03-06  Bruno Haible  <bruno@clisp.org>
57090
57091         * modules/vsnprintf-posix-tests: New file.
57092         * tests/test-vsnprintf-posix.c: New file.
57093         * tests/test-snprintf-posix.h: New file.
57094
57095         * modules/vsnprintf-posix: New file.
57096         * m4/vsnprintf-posix.m4: New file.
57097         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
57098         gl_FUNC_VSNPRINTF.
57099         (gl_FUNC_VSNPRINTF): Invoke it.
57100         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
57101         * lib/stdio_.h (vsnprintf): Define as a replacement if
57102         REPLACE_VSNPRINTF is set.
57103         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
57104
57105 2007-03-06  Bruno Haible  <bruno@clisp.org>
57106
57107         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
57108         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
57109
57110 2007-03-06  Bruno Haible  <bruno@clisp.org>
57111
57112         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
57113         (asinl): Declare also if HAVE_DECL_ASINL is set.
57114         (atanl): Declare also if HAVE_DECL_ATANL is set.
57115         (ceill): Declare also if HAVE_DECL_CEILL is set.
57116         (cosl): Declare also if HAVE_DECL_COSL is set.
57117         (expl): Declare also if HAVE_DECL_EXPL is set.
57118         (floorl): Declare also if HAVE_DECL_FLOORL is set.
57119         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
57120         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
57121         (logl): Declare also if HAVE_DECL_LOGL is set.
57122         (sinl): Declare also if HAVE_DECL_SINL is set.
57123         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
57124         (tanl): Declare also if HAVE_DECL_TANL is set.
57125         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
57126         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
57127         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
57128         declaration of frexpl, ldexpl.
57129         * modules/printf-frexpl (Depends-on): Add math.
57130         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
57131
57132 2007-03-05  Bruno Haible  <bruno@clisp.org>
57133
57134         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
57135         frexpl and ldexpl are declared.
57136         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
57137
57138 2007-03-05  Bruno Haible  <bruno@clisp.org>
57139
57140         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
57141         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
57142
57143 2007-03-05  Bruno Haible  <bruno@clisp.org>
57144
57145         * lib/stdio_.h: Include <stddef.h>.
57146
57147 2007-03-05  Bruno Haible  <bruno@clisp.org>
57148
57149         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
57150
57151 2007-03-05  Bruno Haible  <bruno@clisp.org>
57152
57153         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
57154         NetBSD 4, from Ralf Wildenhues.
57155
57156 2007-03-04  Bruno Haible  <bruno@clisp.org>
57157
57158         * lib/vasprintf.h: Update #if logic for the case when the functions
57159         exist but are overridden.
57160
57161 2007-03-04  Bruno Haible  <bruno@clisp.org>
57162
57163         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
57164         implementations: glibc-2.4 and MacOS X 10.3.
57165         * tests/test-vasnprintf-posix.c (test_function): Test also the case
57166         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
57167         * tests/test-vasprintf-posix.c (test_function): Likewise.
57168
57169 2007-03-04  Bruno Haible  <bruno@clisp.org>
57170
57171         * modules/vasprintf-posix-tests: New file.
57172         * tests/test-vasprintf-posix.c: New file.
57173
57174         * modules/vasprintf-posix: New file.
57175         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
57176         defined.
57177         * m4/vasprintf-posix.m4: New file.
57178         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
57179         gl_FUNC_VASPRINTF.
57180         (gl_FUNC_VASPRINTF): Invoke it.
57181         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
57182         here.
57183         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
57184
57185 2007-03-04  Bruno Haible  <bruno@clisp.org>
57186
57187         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
57188         REPLACE_GETTIMEOFDAY.
57189         * modules/sys_time (Makefile.am): Likewise.
57190         * m4/sys_time_h.m4: Likewise.
57191         * m4/gettimeofday.m4: Likewise.
57192
57193 2007-03-04  Bruno Haible  <bruno@clisp.org>
57194
57195         * modules/vasnprintf-posix-tests: New file.
57196         * tests/test-vasnprintf-posix.c: New file.
57197
57198         * modules/vasnprintf-posix: New file.
57199         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
57200         printf-frexpl.h.
57201         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
57202         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
57203         REPLACE_VASNPRINTF is defined.
57204         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
57205         gl_FUNC_VASNPRINTF.
57206         (gl_FUNC_VASNPRINTF): Invoke it.
57207         * m4/vasnprintf-posix.m4: New file.
57208         * m4/printf.m4: New file.
57209
57210 2007-03-04  Bruno Haible  <bruno@clisp.org>
57211
57212         Compile progreloc.c only if --enable-relocatable is specified.
57213         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
57214         if --enable-relocatable was specified.
57215         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
57216         lib_SOURCES.
57217
57218 2007-03-04  Jim Meyering  <jim@meyering.net>
57219
57220         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
57221         Use it consistently, rather than enumerating errno constants.
57222
57223 2007-03-04  Bruno Haible  <bruno@clisp.org>
57224
57225         * modules/xvasprintf-tests: New file.
57226         * tests/test-xvasprintf.c: New file.
57227
57228         * modules/vasprintf-tests: New file.
57229         * tests/test-vasprintf.c: New file.
57230
57231         * modules/vasnprintf-tests: New file.
57232         * tests/test-vasnprintf.c: New file.
57233
57234         * modules/vsnprintf-tests: New file.
57235         * tests/test-vsnprintf.c: New file.
57236
57237         * modules/snprintf-tests: New file.
57238         * tests/test-snprintf.c: New file.
57239
57240 2007-03-04  Bruno Haible  <bruno@clisp.org>
57241
57242         Compile relocatable.c only if --enable-relocatable is specified.
57243         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
57244         gl_RELOCATABLE_LIBRARY.
57245         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
57246         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
57247         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
57248         gl_RELOCATABLE_LIBRARY.
57249         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
57250         (Makefile.am): Remove lib_SOURCES.
57251         * modules/relocatable-lib-lgpl (configure.ac): Invoke
57252         gl_RELOCATABLE_LIBRARY.
57253         (Makefile.am): Remove lib_SOURCES.
57254         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
57255         always.
57256         * modules/relocatable-prog-wrapper (configure.ac): Invoke
57257         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
57258
57259 2007-03-04  Bruno Haible  <bruno@clisp.org>
57260
57261         * modules/argmatch-tests: New file.
57262         * tests/test-argmatch.c: New file.
57263
57264         * tests/test-allocsa.c (main): Halve the number of loop runs.
57265
57266         * modules/alloca-opt-tests: New file.
57267         * tests/test-alloca-opt.c: New file.
57268
57269 2007-03-04  Jim Meyering  <jim@meyering.net>
57270
57271         Work around difference between Linux ACLs and Solaris 10 ZFS.
57272         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
57273         for EINVAL.
57274
57275 2007-03-03  Bruno Haible  <bruno@clisp.org>
57276
57277         * modules/relocatable-prog (Depends-on): Add back progreloc's
57278         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
57279
57280 2007-03-03  Bruno Haible  <bruno@clisp.org>
57281
57282         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
57283         * modules/relocatable-lib: New file.
57284
57285 2007-03-03  Bruno Haible  <bruno@clisp.org>
57286
57287         * modules/relocatable-prog: Renamed from modules/relocatable.
57288         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
57289
57290 2007-03-03  Bruno Haible  <bruno@clisp.org>
57291
57292         * modules/relocatable-script (Files): Add doc/relocatable.texi,
57293         m4/relocatable-lib.m4.
57294         (Depends-on): Remove 'relocatable'.
57295         (configure.ac): Add gl_RELOCATABLE_NOP.
57296
57297 2007-03-03  Bruno Haible  <bruno@clisp.org>
57298
57299         * modules/relocatable-prog-wrapper: New file.
57300         * modules/relocatable (Depends-on): Add it. Remove all other
57301         dependencies except progname.
57302         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
57303
57304         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
57305         (gl_FUNC_STRERROR): Nop.
57306         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
57307
57308         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
57309         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
57310
57311         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
57312         (gl_FUNC_READLINK): Update.
57313
57314         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
57315
57316 2007-03-03  Bruno Haible  <bruno@clisp.org>
57317
57318         * lib/xreadlink.c: Include <unistd.h> unconditionally.
57319         * modules/xreadlink (Depends-on): Add unistd.
57320         * modules/xreadlink-with-size (Depends-on): Likewise.
57321
57322 2007-03-03  Bruno Haible  <bruno@clisp.org>
57323
57324         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
57325         extracted from gt_FUNC_SETENV.
57326         (gt_FUNC_SETENV): Remove macro.
57327         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
57328         remove gt_FUNC_SETENV.
57329
57330 2007-03-03  Bruno Haible  <bruno@clisp.org>
57331
57332         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
57333         ENABLE_RELOCATABLE here.
57334         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
57335
57336 2007-03-03  Bruno Haible  <bruno@clisp.org>
57337
57338         * modules/rbtreehash-list-tests (Depends-on): Add progname.
57339         * tests/test-rbtreehash_list.c: Include progname.h.
57340         (main): Call set_program_name.
57341
57342         * modules/rbtree-oset-tests (Depends-on): Add progname.
57343         * tests/test-rbtree_oset.c: Include progname.h.
57344         (main): Call set_program_name.
57345
57346         * modules/rbtree-list-tests (Depends-on): Add progname.
57347         * tests/test-rbtree_list.c: Include progname.h.
57348         (main): Call set_program_name.
57349
57350         * modules/linked-list-tests (Depends-on): Add progname.
57351         * tests/test-linked_list.c: Include progname.h.
57352         (main): Call set_program_name.
57353
57354 2007-03-03  Bruno Haible  <bruno@clisp.org>
57355
57356         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
57357         All uses of __restrict changed to _Restrict_.
57358         * lib/glob_.h (__restrict): Remove macro.
57359
57360 2007-03-02  Bruno Haible  <bruno@clisp.org>
57361
57362         * modules/gettext (configure.ac): Require gettext infrastructure
57363         from version 0.16.1.
57364
57365 2007-03-02  Bruno Haible  <bruno@clisp.org>
57366
57367         * modules/linkedhash-list-tests (Depends-on): Add progname.
57368         * tests/test-linkedhash_list.c: Include progname.h.
57369         (main): Call set_program_name.
57370
57371         * modules/carray-list-tests (Depends-on): Add progname.
57372         * tests/test-carray_list.c: Include progname.h.
57373         (main): Call set_program_name.
57374
57375         * modules/avltreehash-list-tests (Depends-on): Add progname.
57376         * tests/test-avltreehash_list.c: Include progname.h.
57377         (main): Call set_program_name.
57378
57379         * modules/avltree-oset-tests (Depends-on): Add progname.
57380         * tests/test-avltree_oset.c: Include progname.h.
57381         (main): Call set_program_name.
57382
57383         * modules/avltree-list-tests (Depends-on): Add progname.
57384         * tests/test-avltree_list.c: Include progname.h.
57385         (main): Call set_program_name.
57386
57387         * modules/array-oset-tests (Depends-on): Add progname.
57388         * tests/test-array_oset.c: Include progname.h.
57389         (main): Call set_program_name.
57390
57391         * modules/array-list-tests (Depends-on): Add progname.
57392         * tests/test-array_list.c: Include progname.h.
57393         (main): Call set_program_name.
57394
57395         * modules/argp-tests (Depends-on): Add progname.
57396         * tests/test-argp.c: Include argp.h first. Include progname.h.
57397         (main): Call set_program_name.
57398
57399 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
57400
57401         * doc/gnulib-tool.texi (Initial import): Reword description of
57402         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
57403         limited effect even if defined after the first system include.
57404
57405 2007-03-01  Bruno Haible  <bruno@clisp.org>
57406
57407         * build-aux/config.libpath: Update to libtool-1.5.22.
57408         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
57409
57410 2007-03-01  Bruno Haible  <bruno@clisp.org>
57411
57412         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
57413         foo_CFLAGS.
57414         Reported by Ralf Wildenhues.
57415
57416 2007-03-01  Bruno Haible  <bruno@clisp.org>
57417
57418         * build-aux/install-reloc: Remove object files left over by some
57419         compilers.
57420         Reported by Ralf Wildenhues.
57421
57422 2007-03-01  Bruno Haible  <bruno@clisp.org>
57423
57424         * build-aux/install-reloc: Break long lines.
57425
57426 2007-03-01  Bruno Haible  <bruno@clisp.org>
57427
57428         * doc/relocatable.texi: Document that it may not work on OpenBSD.
57429         Reported by Ralf Wildenhues.
57430
57431 2007-03-01  Bruno Haible  <bruno@clisp.org>
57432
57433         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
57434         include ordering constraints.
57435
57436 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
57437
57438         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
57439         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
57440         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
57441         as another example.
57442         * lib/time_.h: Fix misspelling.
57443         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
57444         Require gl_HEADER_TIME_H_DEFAULTS.
57445         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
57446         * m4/time_r.m4 (gl_TIME_R): Likewise.
57447         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
57448
57449 2007-03-01  Bruno Haible  <bruno@clisp.org>
57450
57451         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
57452         * m4/utimens.m4 (gl_UTIMENS): Likewise.
57453
57454 2007-03-01  Jim Meyering  <jim@meyering.net>
57455
57456         * modules/xreadlink (Maintainer): Add my name.
57457         * modules/xreadlink-with-size (Depends-on): Alphabetize.
57458
57459 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
57460             Bruno Haible  <bruno@clisp.org>
57461
57462         * build-aux/install-reloc: Compile also c-ctype.c.
57463         * build-aux/relocatable.sh.in: New file.
57464         * doc/relocatable.texi: New file.
57465         * doc/relocatable-maint.texi: New file.
57466         * doc/gnulib.texi: Include relocatable-maint.texi.
57467         * lib/progreloc.c: Include unistd.h unconditionally.
57468         * lib/relocwrapper.c: Include unistd.h unconditionally.
57469         Include c-ctype.h.
57470         (add_dotbin): Use c_tolower.
57471         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
57472         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
57473         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
57474         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
57475         to m4/relocatable-lib.m4.
57476         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
57477         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
57478         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
57479         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
57480         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
57481         * modules/relocatable: New file.
57482         * modules/relocatable-lib: New file.
57483         * modules/relocatable-script: New file.
57484
57485 2007-02-28  Bruno Haible  <bruno@clisp.org>
57486
57487         Import --enable-relocatable infrastructure.
57488         * build-aux/config.libpath: New file, from GNU gettext.
57489         * build-aux/install-reloc: New file, from GNU gettext.
57490         * build-aux/reloc-ldflags: New file, from GNU gettext.
57491         * lib/relocatable.h: New file, from GNU gettext.
57492         * lib/relocatable.c: New file, from GNU gettext.
57493         * lib/relocwrapper.c: New file, from GNU gettext.
57494         * m4/relocatable.m4: New file, from GNU gettext.
57495
57496 2007-02-28  Bruno Haible  <bruno@clisp.org>
57497
57498         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
57499
57500         * modules/xreadlink: New file, from GNU gettext with modifications.
57501         * lib/xreadlink.c: New file, from GNU gettext.
57502         * lib/xreadlink.h: Add comments.
57503         (xreadlink): New declaration.
57504
57505         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
57506         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
57507         lib/xreadlink-with-size.c.
57508         (configure.ac): Remove gl_XREADLINK invocation.
57509         (Makefile.am): Augment lib_SOURCES.
57510         * m4/xreadlink.m4: Remove file.
57511         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
57512         (xreadlink_with_size): Renamed from xreadink.
57513         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
57514         * modules/canonicalize (Depends-on): Replace xreadlink with
57515         xreadlink-with-size.
57516         * lib/canonicalize.c (canonicalize_filename_mode): Update.
57517
57518 2007-02-25  Jim Meyering  <jim@meyering.net>
57519
57520         * build-aux/announce-gen: When complaining about excess arguments,
57521         list them.
57522
57523 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
57524
57525         * README: Document signed integer overflow situation more
57526         accurately.
57527
57528 2007-02-25  Bruno Haible  <bruno@clisp.org>
57529
57530         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
57531         'a' or 'A' conversion.
57532
57533 2007-02-25  Bruno Haible  <bruno@clisp.org>
57534
57535         * modules/filename: Renamed from modules/pathname.
57536         (Files): Replace lib/pathname.h with lib/filename.h. Replace
57537         lib/concatpath.c with lib/concat-filename.c.
57538         (Makefile.am): Update.
57539         (Include): Replace pathname.h with filename.h.
57540         * lib/filename.h: Renamed from lib/pathname.h.
57541         (concatenated_filename): Renamed from concatenated_pathname.
57542         * lib/concat-filename.c: Renamed from lib/concatpath.c.
57543         (concatenated_filename): Renamed from concatenated_pathname.
57544         * lib/findprog.c: Include filename.h instead of pathname.h.
57545         (find_in_path): Update.
57546         * lib/javacomp.c: Include filename.h instead of pathname.h.
57547         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
57548         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
57549         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
57550         is_oldgcj_14_13_usable, is_javac_usable): Update.
57551         * lib/javaexec.c: Include filename.h instead of pathname.h.
57552         (execute_java_class): Update.
57553         * modules/findprog: Update.
57554         * modules/javacomp: Update.
57555         * modules/javaexec: Update.
57556         * MODULES.html.sh (File system functions): Add 'filename', remove
57557         'pathname'.
57558
57559 2007-02-25  Bruno Haible  <bruno@clisp.org>
57560
57561         * modules/printf-frexpl-tests: New file.
57562         * tests/test-printf-frexpl.c: New file.
57563
57564         * modules/printf-frexpl: New file.
57565         * lib/printf-frexpl.h: New file.
57566         * lib/printf-frexpl.c: New file.
57567         * m4/printf-frexpl.m4: New file.
57568
57569 2007-02-25  Bruno Haible  <bruno@clisp.org>
57570
57571         * modules/printf-frexp-tests: New file.
57572         * tests/test-printf-frexp.c: New file.
57573
57574         * modules/printf-frexp: New file.
57575         * lib/printf-frexp.h: New file.
57576         * lib/printf-frexp.c: New file.
57577         * m4/printf-frexp.m4: New file.
57578
57579 2007-02-25  Bruno Haible  <bruno@clisp.org>
57580
57581         Assume automake >= 1.10 for the tests.
57582         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
57583         * modules/arctwo-tests: Likewise.
57584         * modules/argp-tests: Likewise.
57585         * modules/avltree-list-tests: Likewise.
57586         * modules/avltree-oset-tests: Likewise.
57587         * modules/avltreehash-list-tests: Likewise.
57588         * modules/carray-list-tests: Likewise.
57589         * modules/crc-tests: Likewise.
57590         * modules/des-tests: Likewise.
57591         * modules/gc-arcfour-tests: Likewise.
57592         * modules/gc-arctwo-tests: Likewise.
57593         * modules/gc-des-tests: Likewise.
57594         * modules/gc-hmac-md5-tests: Likewise.
57595         * modules/gc-hmac-sha1-tests: Likewise.
57596         * modules/gc-md2-tests: Likewise.
57597         * modules/gc-md4-tests: Likewise.
57598         * modules/gc-md5-tests: Likewise.
57599         * modules/gc-pbkdf2-sha1-tests: Likewise.
57600         * modules/gc-rijndael-tests: Likewise.
57601         * modules/gc-sha1-tests: Likewise.
57602         * modules/gc-tests: Likewise.
57603         * modules/getaddrinfo-tests: Likewise.
57604         * modules/hmac-md5-tests: Likewise.
57605         * modules/hmac-sha1-tests: Likewise.
57606         * modules/linked-list-tests: Likewise.
57607         * modules/linkedhash-list-tests: Likewise.
57608         * modules/lock-tests: Likewise.
57609         * modules/md2-tests: Likewise.
57610         * modules/md4-tests: Likewise.
57611         * modules/md5-tests: Likewise.
57612         * modules/rbtree-list-tests: Likewise.
57613         * modules/rbtree-oset-tests: Likewise.
57614         * modules/rbtreehash-list-tests: Likewise.
57615         * modules/read-file-tests: Likewise.
57616         * modules/rijndael-tests: Likewise.
57617         * modules/stdint-tests: Likewise.
57618         * modules/tls-tests: Likewise.
57619
57620 2007-02-24  Bruno Haible  <bruno@clisp.org>
57621
57622         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
57623         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
57624         function; instead check whether isnan with a double argument links.
57625         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
57626         function; instead check whether isnan with a 'long double' argument
57627         links.
57628         Reported by Eric Blake <ebb9@byu.net>.
57629
57630 2007-02-24  Bruno Haible  <bruno@clisp.org>
57631
57632         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
57633         defined.
57634         * lib/isnanl.c: Remove all code. Just include isnan.c.
57635         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
57636
57637 2007-02-25  Jim Meyering  <jim@meyering.net>
57638
57639         Avoid conflicting types for 'unsetenv' on FreeBSD.
57640         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
57641         conflicting with FreeBSD's (5.0 and 6.1) function declaration
57642         in stdlib.h.
57643
57644 2007-02-24  Bruno Haible  <bruno@clisp.org>
57645
57646         * modules/isnanl-nolibm-tests: New file.
57647         * tests/test-isnanl.c: New file.
57648
57649         * modules/isnanl-nolibm: New file.
57650         * lib/isnanl.h: New file.
57651         * lib/isnanl.c: New file.
57652         * m4/isnanl.m4: New file.
57653
57654 2007-02-24  Bruno Haible  <bruno@clisp.org>
57655
57656         * modules/isnan-nolibm-tests: New file.
57657         * tests/test-isnan.c: New file.
57658
57659         * modules/isnan-nolibm: New file.
57660         * lib/isnan.h: New file.
57661         * lib/isnan.c: New file.
57662         * m4/isnan.m4: New file.
57663
57664 2007-02-24  Bruno Haible  <bruno@clisp.org>
57665
57666         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
57667         assume that an exponent fits in 20 bits.
57668
57669 2007-02-24  Jim Meyering  <jim@meyering.net>
57670
57671         * m4/regex.m4: Update the description of the configure-time option,
57672         --without-included-regex, to state accurately what the defaults are,
57673         and perhaps to give people an idea why using this option is risky.
57674
57675 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
57676
57677         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
57678         loops on small arguments.  This attempts to avoid the problem
57679         Bruno Haible reported for AIX 4.3.2 in
57680         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
57681
57682 2007-02-23  Bruno Haible  <bruno@clisp.org>
57683
57684         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
57685         Needed for help2man.
57686
57687 2007-02-23  Karl Berry  <karl@gnu.org>
57688
57689         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
57690         exists, foo.h should be cvs-ignored, not committed.
57691
57692 2007-02-23  Eric Blake  <ebb9@byu.net>
57693
57694         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
57695         * lib/stat-time.h (includes): Likewise.
57696         * lib/utimecmp.c (includes): Likewise.
57697         * lib/utimens.h (includes): Likewise.
57698         * lib/getdate.y (includes): Also include "timespec.h" for use
57699         internal to the module.
57700         * modules/utimens (Depends-on): Revert yesterday's patch.
57701         * modules/nanosleep (Depends-on): Add missing dependency.
57702
57703 2007-02-22  Bruno Haible  <bruno@clisp.org>
57704
57705         * lib/glob.c: Don't include getlogin_r.h.
57706
57707 2007-02-22  Jim Meyering  <jim@meyering.net>
57708
57709         * modules/utimens (Depends-on): Add timespec, required for
57710         utimens.h's inclusion of timespec.h.
57711
57712 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
57713
57714         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
57715         long unreadable paths in GNU/Linux.  Problem reported by Andreas
57716         Schwab in
57717         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
57718         I'll try to think of a better way to fix the Solaris problem.
57719
57720         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
57721         like glibc; on Solaris 10, it fails with errno == EINVAL.
57722         POSIX says the behavior is unspecified if the first argument is NULL,
57723         so play it safe and never pass NULL to the system getcwd.
57724
57725 2007-02-21  Jim Meyering  <jim@meyering.net>
57726
57727         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
57728         of gettimeofday.  It would conflict with the one now always
57729         provided via sys_time_.h.  Reported by Matthew Woehlke, as
57730         an IRIX 6.5 build failure.
57731
57732 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
57733
57734         Minor fixups to port to Solaris 10 with Sun C 5.8.
57735         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
57736         * modules/getcwd (Depends-on): Add dirfd.
57737         * lib/putenv.c (putenv): #undef it.
57738         (rpl_putenv): New decl.
57739         (malloc, free): Include <stdlib.h> rather than prototyping separately.
57740
57741 2007-02-20  Bruno Haible  <bruno@clisp.org>
57742
57743         * modules/stdio-tests: New file.
57744         * tests/test-stdio.c: New file.
57745
57746         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
57747         (Depends-on): Add stdio.
57748         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
57749         (Include): Use <stdio.h> instead of vsnprintf.h.
57750         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
57751         HAVE_DECL_VSNPRINTF.
57752         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
57753
57754         * modules/snprintf (Files): Remove lib/snprintf.h.
57755         (Depends-on): Add stdio.
57756         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
57757         (Include): Use <stdio.h> instead of snprintf.h.
57758         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
57759         HAVE_DECL_SNPRINTF.
57760         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
57761         * lib/getaddrinfo.c: Likewise.
57762
57763         * modules/stdio: New file.
57764         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
57765         * lib/snprintf.h: Remove file.
57766         * lib/vsnprintf.h: Remove file.
57767         * lib/.cppi-disable: Remove snprintf.h.
57768         * m4/stdio_h.m4: New file.
57769         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
57770
57771 2007-02-20  Jim Meyering  <jim@meyering.net>
57772
57773         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
57774         used by e.g., mingw.  From Bruno Haible.
57775
57776 2007-02-19  Bruno Haible  <bruno@clisp.org>
57777
57778         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
57779         warnings.
57780         Reported by Ben Pfaff <blp@cs.stanford.edu>.
57781
57782 2007-02-19  Bruno Haible  <bruno@clisp.org>
57783
57784         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
57785         from mingw users.
57786
57787 2007-02-19  Bruno Haible  <bruno@clisp.org>
57788
57789         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
57790         warnings.
57791         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
57792
57793 2007-02-19  Jim Meyering  <jim@meyering.net>
57794
57795         Don't use FD after a successful "fdopendir (fd)".
57796         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
57797         Reset it by calling dirfd on the just-obtained DIR*.
57798
57799         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
57800         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
57801
57802 2007-02-18  Bruno Haible  <bruno@clisp.org>
57803
57804         * lib/readlink.c: Include <unistd.h>.
57805         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
57806         HAVE_READLINK.
57807         * modules/readlink (Depends-on): Add unistd.
57808         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
57809         (Include): Add <unistd.h>.
57810
57811         * lib/getlogin_r.h: Remove file.
57812         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
57813         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
57814         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
57815         HAVE_DECL_GETLOGIN_R.
57816         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
57817         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
57818         (Include): Use <unistd.h> instead of getlogin_r.h.
57819
57820         * lib/getcwd.h: Remove file.
57821         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
57822         * lib/xgetcwd.c: Likewise.
57823         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
57824         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
57825         * modules/getcwd (Files): Remove lib/getcwd.h.
57826         (Depends-on): Add unistd.
57827         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
57828         (Include): Use <unistd.h> instad of getcwd.h.
57829
57830         * lib/ftruncate.c: Include <unistd.h> first.
57831         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
57832         Set HAVE_FTRUNCATE.
57833         * modules/ftruncate (Depends-on): Add unistd.
57834         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
57835
57836         * lib/fchdir.c: Include <unistd.h> first.
57837         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
57838         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
57839         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
57840         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
57841         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
57842
57843         * lib/dup2.c: Include <unistd.h> first.
57844         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
57845         HAVE_DUP2.
57846         * modules/dup2 (Depends-on): Add unistd.
57847         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
57848
57849         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
57850         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
57851         REPLACE_CHOWN. Don't define chown as a macro here.
57852         * modules/chown (Depends-on): Add unistd.
57853         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
57854
57855         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
57856         Add definition for GL_LINK_WARNING.
57857         (chown, dup2): New declarations.
57858         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
57859         link warning.
57860         (ftruncate): New declaration.
57861         (getcwd): New declaration, taken from old getcwd.h.
57862         (getlogin_r): New declaration, taken from old getlogin_r.h.
57863         (readlink): New declaration.
57864         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
57865         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
57866         (gl_PREREQ_UNISTD): Remove macro.
57867         (gl_UNISTD_MODULE_INDICATOR): New macro.
57868         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
57869         many new variables. Don't set UNISTD_H.
57870         * modules/unistd (Description): Change.
57871         (Depends-on): Add link-warning.
57872         (configure.ac): Update.
57873         (Makefile.am): Create unistd.h always. Substitute many new variables
57874         into it.
57875
57876 2007-02-18  Bruno Haible  <bruno@clisp.org>
57877
57878         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
57879         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
57880         HAVE_GETSUBOPT.
57881         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
57882         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
57883         * lib/getsubopt.h: Remove file.
57884         * modules/getsubopt (Files): Remove lib/getsubopt.h.
57885         (Depends-on): Add stdlib.
57886         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
57887         (Includes): Use <stdlib.h> instead of getsubopt.h.
57888         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
57889         Set HAVE_GETSUBOPT.
57890         * lib/getsubopt.c: Don't include getsubopt.h.
57891
57892 2007-02-18  Bruno Haible  <bruno@clisp.org>
57893
57894         * modules/fchdir (Depends-on): Add dup2.
57895
57896 2007-02-18  Bruno Haible  <bruno@clisp.org>
57897
57898         * lib/stdlib_.h: Handle glibc's special invocation convention
57899         specially.
57900
57901 2007-02-18  Bruno Haible  <bruno@clisp.org>
57902
57903         * modules/stdlib-tests: New file.
57904         * tests/test-stdlib.c: New file.
57905
57906         * modules/mkstemp (Files): Remove lib/mkstemp.h.
57907         (Depends-on): Add stdlib.
57908         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
57909         (Includes): Use <stdlib.h> instead of mkstemp.h.
57910         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
57911         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
57912         * lib/mkstemp.c: Don't include mkstemp.h.
57913         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
57914         * lib/stdlib--.h: Don't include mkstemp.h.
57915
57916         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
57917         (Depends-on): Add stdlib.
57918         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
57919         (Includes): Use <stdlib.h> instead of mkdtemp.h.
57920         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
57921         HAVE_MKDTEMP.
57922         * lib/mkdtemp.c: Don't include mkdtemp.h.
57923         * lib/clean-temp.c: Don't include mkdtemp.h.
57924
57925         * modules/exit (Files): Remove lib/exit.h.
57926         (Depends-on): Add stdlib.
57927         (Makefile.am): Remove lib_SOURCES.
57928         (Include): Use <stdlib.h> instead of exit.h.
57929         * lib/argmatch.c: Don't include exit.h.
57930         * lib/execute.c: Likewise.
57931         * lib/pagealign_alloc.c: Likewise.
57932         * lib/pipe.c: Likewise.
57933         * lib/wait-process.c: Likewise.
57934         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
57935         * lib/exitfail.c: Likewise.
57936         * lib/savewd.c: Likewise.
57937         * lib/xsetenv.c: Likewise.
57938
57939         * modules/stdlib: New file.
57940         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
57941         and extra comments about mkstemp().
57942         * lib/exit.h: Remove file.
57943         * lib/mkdtemp.h: Remove file.
57944         * lib/mkstemp.h: Remove file.
57945         * m4/stdlib_h.m4: New file.
57946         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
57947
57948 2007-02-18  Bruno Haible  <bruno@clisp.org>
57949
57950         * modules/math-tests: New file.
57951         * tests/test-math.c: New file.
57952
57953         * modules/math: New file.
57954         * modules/mathl (Files): Remove lib/mathl.h.
57955         (Depends-on): Add math.
57956         (Makefile.am): Don't mention mathl.h.
57957         (Include): Use <math.h> instead of mathl.h.
57958         * lib/math_.h: New file.
57959         * lib/mathl.h: Remove file.
57960         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
57961         mathl.h.
57962         * lib/asinl.c: Likewise.
57963         * lib/atanl.c: Likewise.
57964         * lib/ceill.c: Likewise.
57965         * lib/cosl.c: Likewise.
57966         * lib/expl.c: Likewise.
57967         * lib/floorl.c: Likewise.
57968         * lib/frexpl.c: Likewise.
57969         * lib/ldexpl.c: Likewise.
57970         * lib/logl.c: Likewise.
57971         * lib/sincosl.c: Likewise.
57972         * lib/sinl.c: Likewise.
57973         * lib/sqrtl.c: Likewise.
57974         * lib/tanl.c: Likewise.
57975         * lib/trigl.c: Likewise.
57976         * m4/math_h.m4: New file.
57977         * MODULES.html.sh (Mathematics): Add math.
57978
57979 2007-02-17  Bruno Haible  <bruno@clisp.org>
57980
57981         * modules/wctype-tests: New file.
57982         * tests/test-wctype.c: New file.
57983
57984         * modules/wchar-tests: New file.
57985         * tests/test-wchar.c: New file.
57986
57987         * modules/unistd-tests: New file.
57988         * tests/test-unistd.c: New file.
57989
57990         * modules/time-tests: New file.
57991         * tests/test-time.c: New file.
57992
57993         * modules/sysexits-tests: New file.
57994         * tests/test-sysexits.c: New file.
57995
57996         * modules/sys_time-tests: New file.
57997         * tests/test-sys_time.c: New file.
57998
57999         * modules/sys_stat-tests: New file.
58000         * tests/test-sys_stat.c: New file.
58001
58002         * modules/sys_socket-tests: New file.
58003         * tests/test-sys_socket.c: New file.
58004
58005         * modules/sys_select-tests: New file.
58006         * tests/test-sys_select.c: New file.
58007
58008         * modules/string-tests: New file.
58009         * tests/test-string.c: New file.
58010
58011         * modules/stdbool-tests: New file.
58012         * tests/test-stdbool.c: New file.
58013
58014         * modules/netinet_in-tests: New file.
58015         * tests/test-netinet_in.c: New file.
58016
58017         * modules/inttypes-tests: New file.
58018         * tests/test-inttypes.c: New file.
58019
58020         * modules/fcntl-tests: New file.
58021         * tests/test-fcntl.c: New file.
58022
58023         * modules/byteswap-tests: New file.
58024         * tests/test-byteswap.c: New file.
58025
58026         * modules/arpa_inet-tests: New file.
58027         * tests/test-arpa_inet.c: New file.
58028
58029 2007-02-17  Bruno Haible  <bruno@clisp.org>
58030
58031         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
58032         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
58033         if the corresponding module is not enabled. Emit link warnings if
58034         the function is used nevertheless.
58035         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
58036         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
58037         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
58038         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
58039         * modules/inttypes (Depends-on): Add link-warning.
58040         (Makefile.am): Copy the contents of build-aux/link-warning.h into
58041         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
58042         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
58043         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
58044         * modules/imaxdiv (configure.ac): Likewise.
58045         * modules/strtoimax (configure.ac): Likewise.
58046         * modules/strtoumax (configure.ac): Likewise.
58047
58048 2007-02-17  Bruno Haible  <bruno@clisp.org>
58049
58050         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
58051         gl_STRING_MODULE_INDICATOR_DEFAULTS.
58052         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
58053         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
58054
58055 2007-02-17  Bruno Haible  <bruno@clisp.org>
58056
58057         * modules/link-warning: New file.
58058         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
58059         * lib/string_.h (GL_LINK_WARNING): Remove definition.
58060         * modules/string (Depends-on): Add link-warning.
58061         (Makefile.am): Copy the contents of build-aux/link-warning.h into
58062         string.h.
58063         * MODULES.html.sh (Support for building libraries and executables): Add
58064         link-warning.
58065
58066 2007-02-17  Bruno Haible  <bruno@clisp.org>
58067
58068         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
58069         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
58070         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
58071         long lines.
58072
58073 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
58074             Bruno Haible  <bruno@clisp.org>
58075
58076         * modules/tmpfile: New file.
58077         * lib/tmpfile.c: New file.
58078         * m4/tmpfile.m4: New file.
58079         * MODULES.html.sh (func_all_modules): New section "Input/output".
58080
58081 2007-02-15  Bruno Haible  <bruno@clisp.org>
58082
58083         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
58084         (supports_delete_on_close): New function.
58085         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
58086
58087 2007-02-14  Bruno Haible  <bruno@clisp.org>
58088
58089         * modules/mbspcasecmp-tests: New file.
58090         * tests/test-mbspcasecmp.sh: New file.
58091         * tests/test-mbspcasecmp.c: New file.
58092
58093         New module mbspcasecmp.
58094         * modules/mbspcasecmp: New file.
58095         * lib/mbspcasecmp.c: New file.
58096         * lib/string_.h (strncasecmp): Change warning message.
58097         (mbspcasecmp): New declaration.
58098         * m4/mbspcasecmp.m4: New file.
58099         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
58100         GNULIB_MBSPCASECMP.
58101         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
58102         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
58103
58104 2007-02-14  Bruno Haible  <bruno@clisp.org>
58105
58106         * modules/mbsncasecmp-tests: New file.
58107         * tests/test-mbsncasecmp.sh: New file.
58108         * tests/test-mbsncasecmp.c: New file.
58109
58110         New module mbsncasecmp.
58111         * modules/mbsncasecmp: New file.
58112         * lib/mbsncasecmp.c: New file.
58113         * lib/string_.h (mbsncasecmp): New declaration.
58114         * m4/mbsncasecmp.m4: New file.
58115         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
58116         GNULIB_MBSNCASECMP.
58117         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
58118         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
58119
58120 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
58121
58122         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
58123         Verify that it doesn't overlap with our flags.
58124         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
58125         do not have the desired effect in multibyte locales; instead, use
58126         mbscasecmp.
58127         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
58128         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
58129         we don't require GNU fnmatch ourselves (if our users require it, they
58130         should do so explicitly).
58131
58132         Fix regex code so it doesn't rely on strcasecmp.
58133         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
58134         Otherwise, include gnulib's langinfo.h.
58135         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
58136         undesirable behavior in non-C locales.  Instead, rely on localecharset.
58137         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
58138         * modules/regex (FILES): Remove m4/codeset.m4.
58139         (Depends-on): Add localcharset.  Remove strcase.
58140
58141 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58142
58143         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
58144         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
58145
58146 2007-02-13  Bruno Haible  <bruno@clisp.org>
58147
58148         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
58149         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
58150
58151 2007-02-12  Bruno Haible  <bruno@clisp.org>
58152
58153         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
58154         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
58155         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
58156         time warning rather than a link error.
58157
58158 2007-02-12  Bruno Haible  <bruno@clisp.org>
58159
58160         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
58161         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
58162         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
58163
58164 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
58165
58166         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
58167         args, not 2.
58168
58169 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
58170
58171         New module 'time', so that apps can include <time.h> as per
58172         POSIX and GNU instead of separate include files like time_r.h
58173         and timegm.h.  This implementation tries out a simpler approach
58174         for replacing decls in standard include files (as compared to
58175         the string module), somewhat as an experiment.
58176
58177         * config/srclist.txt: Comment out mktime.c for now.
58178         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
58179         since it doesn't apply any more.  Use generic wording instead.
58180         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
58181         'time'.
58182         * lib/time_.h, m4/time_h.m4, modules/time: New files.
58183         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
58184         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
58185         Don't include <sys/types.h>; no longer needed since we assume C89.
58186         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
58187         * lib/strftime.c: Likewise.
58188         * lib/time_r.c: Likewise.
58189         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
58190         * lib/nanosleep.c: Include <time.h> first, to check interface.
58191         * lib/strptime.c: Likewise.
58192         * lib/time_r.c: Likewise.
58193         * lib/timegm.c: Likewise.
58194         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
58195         needed.
58196         * lib/timegm.c: Don't include timegm.h; no longer needed.
58197         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
58198         time.h now handles any problems in that area.
58199         (struct timespec, nanosleep): Remove; time.h now arranges for these.
58200         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
58201         that time.h defines struct timespec.
58202         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
58203         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
58204         handles that.
58205         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
58206         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
58207         needed.  Set REPLACE_LOCALTIME.
58208         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
58209         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
58210         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
58211         nanosleep; time_h.m4 now does that.  Don't require
58212         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
58213         module handles this now.
58214         * modules/getdate (Depends-on): Remove timespec.  Add time.
58215         * modules/nanosleep (Depends-on): Likewise.
58216         * modules/stat-time (Depends-on): Likewise.
58217         * modules/nanosleep (Include): Include time.h, not timespec.h.
58218         * modules/strptime (Files): Remove lib/strptime.h.
58219         (Depends-on): Add extensions, time.
58220         (Include): Include time.h, not strptime.h.
58221         * modules/time_r (Files): Remove lib/time_r.h.
58222         (Depends-on): Add time.
58223         (Include): Include time.h, not time_r.h.
58224         * modules/timegm: Likewise.
58225         * modules/timespec (Description): Now does timespec-related decls
58226         of our own, instead of struct timespec itself.
58227         (Depends-on): Add time; remove extensions.
58228         (Maintainer): Add self.
58229         * modules/utimecmp (Depends-on): Add time; remove timespec.
58230         * modules/utimens (Depends-on): Likewise.
58231         * modules/xnanosleep (Depends-on): Likewise.
58232
58233 2007-02-11  Bruno Haible  <bruno@clisp.org>
58234
58235         * lib/c-strstr.c: Include allocsa.h.
58236         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
58237         * lib/c-strcasestr.c: Include allocsa.h.
58238         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
58239         * lib/strcasestr.c: Include allocsa.h.
58240         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
58241         * lib/mbsstr.c: Include allocsa.h.
58242         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
58243         allocsa/freesa instead of malloc/free.
58244         * lib/mbscasestr.c: Include allocsa.h.
58245         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
58246         allocsa/freesa instead of malloc/free.
58247         * modules/c-strstr (Depends-on): Add allocsa.
58248         * modules/c-strcasestr (Depends-on): Likewise.
58249         * modules/strcasestr (Depends-on): Likewise.
58250         * modules/mbsstr (Depends-on): Likewise.
58251         * modules/mbscasestr (Depends-on): Likewise.
58252
58253 2007-02-11  Bruno Haible  <bruno@clisp.org>
58254
58255         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
58256
58257         * modules/mbsspn-tests: New file.
58258         * tests/test-mbsspn.sh: New file.
58259         * tests/test-mbsspn.c: New file.
58260
58261 2007-02-11  Bruno Haible  <bruno@clisp.org>
58262
58263         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
58264
58265         * modules/mbspbrk-tests: New file.
58266         * tests/test-mbspbrk.sh: New file.
58267         * tests/test-mbspbrk.c: New file.
58268
58269 2007-02-11  Bruno Haible  <bruno@clisp.org>
58270
58271         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
58272         unneeded cast.
58273
58274         * modules/mbscspn-tests: New file.
58275         * tests/test-mbscspn.sh: New file.
58276         * tests/test-mbscspn.c: New file.
58277
58278 2007-02-11  Bruno Haible  <bruno@clisp.org>
58279
58280         * modules/mbscasecmp-tests: New file.
58281         * tests/test-mbscasecmp.sh: New file.
58282         * tests/test-mbscasecmp.c: New file.
58283
58284 2007-02-11  Bruno Haible  <bruno@clisp.org>
58285
58286         Ensure O(n) worst-case complexity of mbscasestr.
58287         * lib/mbscasestr.c: Include stdbool.h.
58288         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
58289         functions.
58290         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
58291         the bookkeeping indicates that it's worth it.
58292         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
58293
58294         * modules/mbscasestr-tests: New file.
58295         * tests/test-mbscasestr1.c: New file.
58296         * tests/test-mbscasestr2.sh: New file.
58297         * tests/test-mbscasestr2.c: New file.
58298         * tests/test-mbscasestr3.sh: New file.
58299         * tests/test-mbscasestr3.c: New file.
58300         * tests/test-mbscasestr4.sh: New file.
58301         * tests/test-mbscasestr4.c: New file.
58302         * m4/locale-tr.m4: New file.
58303
58304 2007-02-11  Bruno Haible  <bruno@clisp.org>
58305
58306         Ensure O(n) worst-case complexity of mbsstr.
58307         * lib/mbsstr.c: Include stdbool.h.
58308         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
58309         functions.
58310         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
58311         bookkeeping indicates that it's worth it.
58312         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
58313
58314         * modules/mbsstr-tests: New file.
58315         * tests/test-mbsstr1.c: New file.
58316         * tests/test-mbsstr2.sh: New file.
58317         * tests/test-mbsstr2.c: New file.
58318         * tests/test-mbsstr3.sh: New file.
58319         * tests/test-mbsstr3.c: New file.
58320         * m4/locale-fr.m4: New file.
58321
58322 2007-02-11  Bruno Haible  <bruno@clisp.org>
58323
58324         * lib/mbsrchr.c (mbsrchr): Fix bug.
58325
58326         * modules/mbsrchr-tests: New file.
58327         * tests/test-mbsrchr.sh: New file.
58328         * tests/test-mbsrchr.c: New file.
58329
58330 2007-02-11  Bruno Haible  <bruno@clisp.org>
58331
58332         * lib/mbschr.c (mbschr): Fix bug.
58333
58334         * modules/mbschr-tests: New file.
58335         * tests/test-mbschr.sh: New file.
58336         * tests/test-mbschr.c: New file.
58337         * m4/locale-zh.m4: New file.
58338
58339 2007-02-11  Bruno Haible  <bruno@clisp.org>
58340
58341         Support for copying multibyte string iterators.
58342         * lib/mbiter.h: Include <string.h>.
58343         (mbiter_multi_copy): New function.
58344         (mbi_copy): New macro.
58345         * lib/mbuiter.h: Include <string.h>.
58346         (mbuiter_multi_copy): New function.
58347         (mbui_copy): New macro.
58348
58349 2007-02-11  Bruno Haible  <bruno@clisp.org>
58350
58351         New module mbslen.
58352         * modules/mbslen: New file.
58353         * lib/mbslen.c: New file.
58354         * lib/string_.h (mbslen): New declaration.
58355         * m4/mbslen.m4: New file.
58356         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
58357         GNULIB_MBSLEN.
58358         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
58359         * MODULES.html.sh (Internationalization functions): Add mbslen.
58360
58361 2007-02-11  Bruno Haible  <bruno@clisp.org>
58362
58363         Ensure O(n) worst-case complexity of strcasestr substitute.
58364         * lib/strcasestr.c: Include stdbool.h.
58365         (knuth_morris_pratt): New function.
58366         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
58367         bookkeeping indicates that it's worth it.
58368         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
58369
58370         * modules/strcasestr-tests: New file.
58371         * tests/test-strcasestr.c: New file.
58372
58373 2007-02-11  Bruno Haible  <bruno@clisp.org>
58374
58375         Ensure O(n) worst-case complexity of c_strcasestr.
58376         * lib/c-strcasestr.c: Include stdbool.h, string.h.
58377         (knuth_morris_pratt): New function.
58378         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
58379         the bookkeeping indicates that it's worth it.
58380         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
58381
58382         * modules/c-strcasestr-tests: New file.
58383         * tests/test-c-strcasestr.c: New file.
58384
58385 2007-02-11  Bruno Haible  <bruno@clisp.org>
58386
58387         Ensure O(n) worst-case complexity of c_strstr.
58388         * lib/c-strstr.c: Include stdbool.h, string.h.
58389         (knuth_morris_pratt): New function.
58390         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
58391         bookkeeping indicates that it's worth it.
58392         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
58393
58394         * lib/c-strstr.c: Complete rewrite for maintainability.
58395
58396         * modules/c-strstr-tests: New file.
58397         * tests/test-c-strstr.c: New file.
58398
58399 2007-02-11  Bruno Haible  <bruno@clisp.org>
58400
58401         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
58402         5.2.1 and earlier, whereby \055 was treated just like the range
58403         delimiter '-'.
58404         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
58405
58406 2007-02-08  Bruno Haible  <bruno@clisp.org>
58407
58408         * modules/regex (Depends-on): Add stdbool.
58409         Reported by Dalibor Topic <robilad@kaffe.org>.
58410
58411 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
58412
58413         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
58414         Prefer returning from main to exiting from it.
58415         Remove unnecessary parens after sizeof.
58416
58417 2007-02-05  Bruno Haible  <bruno@clisp.org>
58418
58419         New module mbssep.
58420         * modules/mbssep: New file.
58421         * lib/mbssep.c: New file.
58422         * lib/string_.h (strsep): Add a conditional link warning.
58423         (mbssep): New declaration.
58424         * m4/mbssep.m4: New file.
58425         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
58426         GNULIB_MBSSEP.
58427         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
58428         * MODULES.html.sh (Internationalization functions): Add mbssep.
58429
58430 2007-02-05  Bruno Haible  <bruno@clisp.org>
58431
58432         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
58433         Optimize search in case of 1 delimiter.
58434
58435 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
58436
58437         * lib/acl.h: Include sys/types.h before sys/acl.h.
58438
58439 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
58440
58441         Merge upstream fix for glibc bugzilla #3957:
58442
58443         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
58444
58445         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
58446         bit for RE_HAT_LISTS_NOT_NEWLINE.
58447         (build_charclass_op): Remove bogus comment.
58448
58449 2007-02-05  Simon Josefsson  <simon@josefsson.org>
58450
58451         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
58452
58453 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
58454
58455         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
58456         * lib/memmem.c [!defined _LIBC]: Include config.h.
58457
58458 2007-02-04  Bruno Haible  <bruno@clisp.org>
58459
58460         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
58461         warning message.
58462
58463 2007-02-04  Bruno Haible  <bruno@clisp.org>
58464
58465         New module mbstok_r.
58466         * modules/mbstok_r: New file.
58467         * lib/mbstok_r.c: New file.
58468         * lib/string_.h (strtok_r): Change argument names to match the
58469         comments. Add a conditional link warning.
58470         (mbstok_r): New declaration.
58471         * m4/mbstok_r.m4: New file.
58472         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
58473         GNULIB_MBSTOK_R.
58474         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
58475         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
58476
58477 2007-02-04  Bruno Haible  <bruno@clisp.org>
58478
58479         New module mbsspn.
58480         * modules/mbsspn: New file.
58481         * lib/mbsspn.c: New file.
58482         * lib/string_.h (strspn): Add a conditional link warning.
58483         (mbsspn): New declaration.
58484         * m4/mbsspn.m4: New file.
58485         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
58486         GNULIB_MBSSPN.
58487         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
58488         * MODULES.html.sh (Internationalization functions): Add mbsspn.
58489
58490 2007-02-04  Bruno Haible  <bruno@clisp.org>
58491
58492         New module mbspbrk.
58493         * modules/mbspbrk: New file.
58494         * lib/mbspbrk.c: New file.
58495         * lib/string_.h (strpbrk): Add a conditional link warning.
58496         (mbspbrk): New declaration.
58497         * m4/mbspbrk.m4: New file.
58498         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
58499         GNULIB_MBSPBRK.
58500         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
58501         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
58502
58503 2007-02-04  Bruno Haible  <bruno@clisp.org>
58504
58505         New module mbscspn.
58506         * modules/mbscspn: New file.
58507         * lib/mbscspn.c: New file.
58508         * lib/string_.h (strcspn): Add a conditional link warning.
58509         (mbscspn): New declaration.
58510         * m4/mbscspn.m4: New file.
58511         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
58512         GNULIB_MBSCSPN.
58513         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
58514         * MODULES.html.sh (Internationalization functions): Add mbscspn.
58515
58516 2007-02-04  Bruno Haible  <bruno@clisp.org>
58517
58518         New module mbscasestr, reduced goal of strcasestr.
58519         * modules/mbscasestr: New file.
58520         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
58521         (mbscasestr): Renamed from strcasestr.
58522         * lib/strcasestr.c: Don't include mbuiter.h.
58523         (strcasestr): Remove support for multibyte locales.
58524         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
58525         Change the conditional link warning.
58526         (mbscasestr): New declaration.
58527         * m4/mbscasestr.m4: New file.
58528         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
58529         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
58530         REPLACE_STRCASESTR.
58531         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
58532         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
58533         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
58534         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
58535         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
58536         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
58537         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
58538         (Depends-on): Remove mbuiter.
58539         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
58540
58541 2007-02-04  Bruno Haible  <bruno@clisp.org>
58542
58543         Simplify handling of strncasecmp.
58544         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
58545         the conditional link warning.
58546         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
58547         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
58548         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
58549         * modules/strcase (configure.ac): Don't invoke
58550         gl_STRING_MODULE_INDICATOR.
58551         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
58552
58553 2007-02-04  Bruno Haible  <bruno@clisp.org>
58554
58555         New module mbscasecmp, reduced goal of strcasecmp.
58556         * modules/mbscasecmp: New file.
58557         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
58558         (mbscasecmp): Renamed from strcasecmp.
58559         * lib/strcasecmp.c: Don't include mbuiter.h.
58560         (strcasecmp): Remove support for multibyte locales.
58561         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
58562         Change the conditional link warning.
58563         (mbscasecmp): New declaration.
58564         * m4/mbscasecmp.m4: New file.
58565         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
58566         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
58567         REPLACE_STRCASECMP.
58568         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
58569         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
58570         GNULIB_MBSCASECMP.
58571         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
58572         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
58573         * modules/strcase (Files): Remove m4/mbrtowc.m4.
58574         (Depends-on): Remove mbuiter.
58575         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
58576
58577 2007-02-04  Bruno Haible  <bruno@clisp.org>
58578
58579         New module mbsstr. Remove module strstr.
58580         * modules/mbsstr: New file.
58581         * modules/strstr: Remove file.
58582         * lib/mbsstr.c: Renamed from lib/strstr.c.
58583         (mbsstr): Renamed from strstr.
58584         * lib/string_.h (strstr): Remove declaration. Change the conditional
58585         link warning.
58586         (mbsstr): New declaration.
58587         * m4/mbsstr.m4: New file.
58588         * m4/strstr.m4: Remove file.
58589         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
58590         REPLACE_STRSTR.
58591         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
58592         Don't initialize GNULIB_STRSTR.
58593         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
58594         substitute GNULIB_STRSTR and REPLACE_STRSTR.
58595         * MODULES.html.sh (Internationalization functions): Add mbsstr.
58596         (Support for systems lacking ANSI C 89): Remove strstr.
58597
58598 2007-02-04  Bruno Haible  <bruno@clisp.org>
58599
58600         New module mbsrchr.
58601         * modules/mbsrchr: New file.
58602         * lib/mbsrchr.c: New file.
58603         * lib/string_.h (strrchr): Add a conditional link warning.
58604         (mbsrchr): New declaration.
58605         * m4/mbsrchr.m4: New file.
58606         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
58607         GNULIB_MBSRCHR.
58608         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
58609         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
58610
58611 2007-02-04  Bruno Haible  <bruno@clisp.org>
58612
58613         New module mbschr.
58614         * modules/mbschr: New file.
58615         * lib/mbschr.c: New file.
58616         * lib/string_.h (strchr): Add a conditional link warning.
58617         (mbschr): New declaration.
58618         * m4/mbschr.m4: New file.
58619         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
58620         GNULIB_MBSCHR.
58621         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
58622         * MODULES.html.sh (Internationalization functions): Add mbschr.
58623
58624 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
58625
58626         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
58627
58628         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
58629
58630 2007-02-04  Bruno Haible  <bruno@clisp.org>
58631
58632         New module description section 'configure.ac-early'.
58633         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
58634         (func_get_autoconf_early_snippet): New function.
58635         (func_import, func_create_testdir): Use it. Remove special cases for
58636         modules 'extensions' and 'lock'.
58637         * modules/extensions (configure.ac-early): Require
58638         gl_USE_SYSTEM_EXTENSIONS.
58639         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
58640
58641 2007-02-04  Bruno Haible  <bruno@clisp.org>
58642
58643         Make use of gcj-4.3's -fsource and -ftarget option.
58644         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
58645         and if so try the options -fsource and -ftarget.
58646         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
58647         source_version, ftarget_option, target_version arguments.
58648         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
58649         (is_envjavac_oldgcj_14_14_usable): Renamed from
58650         is_envjavac_gcj_14_14_usable.
58651         (is_envjavac_oldgcj_14_13_usable): Renamed from
58652         is_envjavac_gcj_14_13_usable.
58653         (is_gcj_present): Update.
58654         (is_gcj_43, is_gcj43_usable): New functions.
58655         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
58656         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
58657         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
58658         try the options -fsource and -ftarget.
58659
58660 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
58661
58662         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
58663         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
58664         larger value.
58665
58666 2007-02-03  Jim Meyering  <jim@meyering.net>
58667
58668         Give tools a better chance to allocate space for very large buffers.
58669         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
58670
58671         Make pwd and readlink work also when run with an unreadable parent dir
58672         on systems with openat support.
58673         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
58674         provided getcwd function, even when we have openat support.
58675         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
58676
58677 2007-02-02  Bruno Haible  <bruno@clisp.org>
58678
58679         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
58680         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
58681         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
58682         portability problems if one of these functions is only used on specific
58683         platforms.
58684         Reported by Paul Eggert.
58685
58686 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
58687
58688         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
58689         is causing more trouble than it's curing.
58690         * lib/regex_internal.h (__mempcpy): Remove.
58691         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
58692         (and make the code a tad smaller to boot).
58693         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
58694
58695 2007-02-02  Jim Meyering  <jim@meyering.net>
58696
58697         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
58698         section, not in the Makefile.am: one.
58699
58700 2007-02-02  Eric Blake  <ebb9@byu.net>
58701
58702         * lib/strchrnul.c: Always include config.h first.
58703
58704         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
58705         gnulib strstr is not necessary here.
58706
58707 2007-02-02  Simon Josefsson  <simon@josefsson.org>
58708
58709         * m4/socklen.m4: Fix typo.
58710
58711 2007-02-02  Eric Blake  <ebb9@byu.net>
58712
58713         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
58714         * modules/netinet_in (Makefile.am): Likewise.
58715
58716 2007-02-01  Bruno Haible  <bruno@clisp.org>
58717
58718         * lib/string_.h (GL_LINK_WARNING): New macro.
58719         (strcasecmp, strstr, strcasestr): If provided by the system,
58720         conditionally define as a macro that leads to a warning instead of to
58721         an error.
58722         (strncasecmp): Conditionally define as a macro that leads to a warning.
58723
58724 2007-02-01  Karl Berry  <karl@gnu.org>
58725
58726         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
58727
58728 2007-02-01  Bruno Haible  <bruno@clisp.org>
58729
58730         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
58731         renamings.
58732
58733 2007-02-01  Eric Blake  <ebb9@byu.net>
58734
58735         * modules/regex (Depends-on): Revert dependence on mempcpy.
58736         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
58737         module's definition of mempcpy.
58738         Reported by Paul Eggert.
58739
58740 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
58741
58742         * lib/string_.h: If the gnulib module XYZ is not present, undefine
58743         the symbol XYZ before redefining it.  This fixes a problem with
58744         programs that don't use XYZ, when compiled on systems that define
58745         XYZ to something else.
58746
58747 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
58748
58749         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
58750         occurs when "mkdir -m foo" creates a setgid directory that is (1)
58751         writeable to group or other and (2) is intended to have a special
58752         mode bit that is set or cleared.  In such a case, the directory
58753         should be neither group- nor other-writeable until the special
58754         mode bits are right.
58755
58756 2007-01-31  Eric Blake  <ebb9@byu.net>
58757
58758         * modules/mountlist (Depends-on): Add strstr.
58759
58760         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
58761         bug.
58762         * modules/string (Makefile.am): Remove redundant replacement.
58763         * modules/regex (Depends-on): Add mempcpy.
58764
58765 2007-01-31  Bruno Haible  <bruno@clisp.org>
58766
58767         New module description field 'Link'.
58768         * gnulib-tool (func_usage): Document --extract-link-directive.
58769         (sed_extract_prog): Recognize 'Link' directive.
58770         (func_get_link_directive): New function.
58771         (func_import): Show summary of link directives.
58772         Handle --extract-link-directive option.
58773         * modules/acl (Link): New section.
58774         * modules/clock-time (Link): New section.
58775         * modules/euidaccess (Link): New section.
58776         * modules/gettext (Link): New section.
58777         * modules/iconv (Link): New section.
58778         * modules/lock (Link): New section.
58779         * modules/nanosleep (Link): New section.
58780         * modules/readline (Link): New section.
58781
58782 2007-01-27  Bruno Haible  <bruno@clisp.org>
58783
58784         Enforce the use of gnulib modules for unportable <string.h> functions.
58785         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
58786         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
58787         (gl_HEADER_STRING_H_BODY): Require it.
58788         * lib/string_.h: If the gnulib module XYZ is not present, redefine
58789         the symbol XYZ to one that gives a link error.
58790         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
58791         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
58792         * modules/mempcpy (configure.ac): Likewise.
58793         * modules/memrchr (configure.ac): Likewise.
58794         * modules/stpcpy (configure.ac): Likewise.
58795         * modules/stpncpy (configure.ac): Likewise.
58796         * modules/strcase (configure.ac): Likewise.
58797         * modules/strcasestr (configure.ac): Likewise.
58798         * modules/strchrnul (configure.ac): Likewise.
58799         * modules/strdup (configure.ac): Likewise.
58800         * modules/strndup (configure.ac): Likewise.
58801         * modules/strnlen (configure.ac): Likewise.
58802         * modules/strpbrk (configure.ac): Likewise.
58803         * modules/strsep (configure.ac): Likewise.
58804         * modules/strstr (configure.ac): Likewise.
58805         * modules/strtok_r (configure.ac): Likewise.
58806
58807 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
58808
58809         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
58810
58811 2007-01-30  Jim Meyering  <jim@meyering.net>
58812
58813         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
58814
58815 2007-01-29  Bruno Haible  <bruno@clisp.org>
58816
58817         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
58818         * lib/execute.c: Likewise.
58819         * lib/pipe.c: Likewise.
58820         * lib/printf-args.h: Likewise.
58821         * lib/printf-args.c: Likewise.
58822         * lib/printf-parse.c: Likewise.
58823         * lib/vasnprintf.c: Likewise.
58824
58825 2007-01-29  Eric Blake  <ebb9@byu.net>
58826
58827         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
58828         declaration.
58829
58830 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
58831
58832         * lib/strptime.h (strptime): Use 'restrict' for args where
58833         POSIX requires this.
58834         * lib/strptime.c (strptime): Likewise.
58835         Change license notice from LGPL to GPL, since gnulib-tool will
58836         change this as needed.
58837         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
58838         defined.
58839         Include "strptime.h" first, to check interface.
58840         Do not #undef _LIBC and _NL_CURRENT.
58841         Do not include <stdlib.h>; no longer needed.
58842         Include "time_r.h" and declare ptime_locale_status
58843         only if _LIBC is not defined.
58844         (__P): Remove unused macro.
58845         (match_string): Bring back glibc version, but use it only if _LIBC
58846         is defined.
58847         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
58848         Remove unnecessary assertion and abort() call.
58849         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
58850         * m4/strptime.m4: Fix serial number comment.
58851         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
58852         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
58853         (Depends-on): Add time_r.
58854
58855 2007-01-29  Bruno Haible  <bruno@clisp.org>
58856
58857         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
58858         strptime.
58859         * modules/strptime (Depends-on): Add stdbool.
58860         * lib/strptime.h: Include <time.h> always. Add comments.
58861
58862 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
58863
58864         * modules/strptime: New file.
58865         * lib/strptime.h: New file.
58866         * lib/strptime.c: New file.
58867         * m4/strptime.m4: New file.
58868
58869 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
58870
58871         * MODULES.html.sh: New module mpsort.
58872         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
58873
58874         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
58875         a circularity problem with HP-UX ia64 reported by Bob Proulx in
58876         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
58877         All uses changed.
58878         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
58879         All uses changed.
58880         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
58881         to _Restrict_.
58882         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
58883         the parameter matches the prototype.
58884
58885 2007-01-28  Jim Meyering  <jim@meyering.net>
58886
58887         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
58888         sys/time.h here, reverting that part of the previous patch:
58889         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
58890
58891 2007-01-28  Bruno Haible  <bruno@clisp.org>
58892
58893         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
58894         value of $(SYS_TIME_H).
58895         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
58896         remove it conditionally, too. [added by Jim Meyering]
58897         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
58898         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
58899         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
58900         GETTIMEOFDAY_REPLACEMENT to 1.
58901
58902 2007-01-28  Bruno Haible  <bruno@clisp.org>
58903
58904         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
58905         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
58906         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
58907         Set UNISTD_H instead of UNISTD_H2.
58908         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
58909
58910 2007-01-28  Bruno Haible  <bruno@clisp.org>
58911
58912         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
58913         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
58914
58915 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58916
58917         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
58918         (func_create_testdir): Ensure C locale for `grep' and `tr'
58919         character ranges.
58920         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
58921         ACLOCAL_AMFLAGS parsing state machine.
58922
58923 2007-01-27  Bruno Haible  <bruno@clisp.org>
58924
58925         * modules/unistr/base: Update.
58926
58927 2007-01-27  Bruno Haible  <bruno@clisp.org>
58928
58929         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
58930         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
58931         * modules/unistr/u32-mbtouc-unsafe: Renamed from
58932         modules/unistr/u32-mbtouc.
58933         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
58934         * lib/unistr.h: Update.
58935         * lib/linebreak.c: Update.
58936         * modules/unistr/u32-mbtouc: Renamed from
58937         modules/unistr/u32-mbtouc-safe.
58938         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
58939         * lib/unistr.h: Update.
58940         * lib/unistr/u32-to-u8.c: Update.
58941         * lib/unistr/u32-to-u16.c: Update.
58942
58943 2007-01-27  Bruno Haible  <bruno@clisp.org>
58944
58945         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
58946         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
58947         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
58948         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
58949         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
58950         * modules/unistr/u16-mbtouc-unsafe: Renamed from
58951         modules/unistr/u16-mbtouc.
58952         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
58953         * lib/unistr.h: Update.
58954         * lib/linebreak.c: Update.
58955         * modules/linebreak: Update.
58956         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
58957         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
58958         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
58959         * modules/unistr/u16-mbtouc: Renamed from
58960         modules/unistr/u16-mbtouc-safe.
58961         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
58962         * lib/unistr.h: Update.
58963         * lib/unistr/u16-to-u8.c: Update.
58964         * modules/unistr/u16-to-u8: Update.
58965         * lib/unistr/u16-to-u32.c: Update.
58966         * modules/unistr/u16-to-u32: Update.
58967
58968 2007-01-27  Bruno Haible  <bruno@clisp.org>
58969
58970         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
58971         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
58972         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
58973         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
58974         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
58975         * modules/unistr/u8-mbtouc-unsafe: Renamed from
58976         modules/unistr/u8-mbtouc.
58977         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
58978         * lib/unistr.h: Update.
58979         * lib/striconveh.c: Update.
58980         * modules/striconveh: Update.
58981         * lib/linebreak.c: Update.
58982         * modules/linebreak: Update.
58983         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
58984         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
58985         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
58986         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
58987         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
58988         * lib/unistr.h: Update.
58989         * lib/striconveh.c: Update.
58990         * modules/striconveh: Update.
58991         * lib/unistr/u8-to-u16.c: Update.
58992         * modules/unistr/u8-to-u16: Update.
58993         * lib/unistr/u8-to-u32.c: Update.
58994         * modules/unistr/u8-to-u32: Update.
58995
58996 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58997
58998         Sync from Libtool.
58999         * lib/argz.c: Do not include strings.h nor memory.h, include
59000         string.h unconditionally.  Patch by Simon Josefsson.
59001
59002 2007-01-27  Bruno Haible  <bruno@clisp.org>
59003
59004         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
59005         from gl_HEADER_STRING_H_BODY.
59006         (gl_HEADER_STRING_H_BODY): Require it.
59007         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
59008         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
59009         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
59010         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
59011         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
59012         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
59013         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
59014         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
59015         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
59016         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
59017         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
59018         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
59019         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
59020         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
59021         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
59022
59023 2007-01-27  Bruno Haible  <bruno@clisp.org>
59024
59025         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
59026         check_PROGRAMS into noinst_PROGRAMS.
59027         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
59028         check_PROGRAMS in this case.
59029         (func_import): Set for_test to false.
59030         (func_create_testdir): Set for_test to true.
59031
59032 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
59033             Bruno Haible  <bruno@clisp.org>
59034
59035         * modules/strcasestr (Files): Remove lib/strcasestr.h.
59036         (Depends-on): Add string.
59037         (Includes): Use <string.h> instead of strcasestr.h.
59038         * modules/string (Makefile.am): Also substitute the value of
59039         REPLACE_STRCASESTR.
59040         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
59041         assume strcasestr is declared in <string.h> not <strings.h>. Also
59042         set REPLACE_STRCASESTR.
59043         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
59044         REPLACE_STRCASESTR.
59045         * lib/strcasestr.h: Remove file.
59046         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
59047         * lib/string_.h (strcasestr): New declaration.
59048
59049 2007-01-27  Bruno Haible  <bruno@clisp.org>
59050
59051         * lib/string_.h: Use 'extern'.
59052
59053 2007-01-27  Jim Meyering  <jim@meyering.net>
59054
59055         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
59056         of set-but-not-used local, "q".
59057
59058         * lib/mempcpy.c: Include <config.h> before <string.h>.
59059         This fixes a compilation error on HP-UX, due to the system's
59060         "restrict"-using mempcpy prototype.
59061
59062 2007-01-26  Bruno Haible  <bruno@clisp.org>
59063
59064         Small optimization.
59065         * lib/javacomp.c: Include c-strstr.h.
59066          (is_envjavac_gcj): Use c_strstr instead of strstr.
59067         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
59068
59069 2007-01-26  Bruno Haible  <bruno@clisp.org>
59070
59071         * MODULES.html.sh (Unicode string functions): Add the new modules.
59072
59073         * modules/uniconv/u32-strconv-to-locale: New file.
59074         * lib/uniconv/u32-strconv-to-locale.c: New file.
59075
59076         * modules/uniconv/u16-strconv-to-locale: New file.
59077         * lib/uniconv/u16-strconv-to-locale.c: New file.
59078
59079         * modules/uniconv/u8-strconv-to-locale: New file.
59080         * lib/uniconv/u8-strconv-to-locale.c: New file.
59081
59082         * modules/uniconv/u32-strconv-from-locale: New file.
59083         * lib/uniconv/u32-strconv-from-locale.c: New file.
59084
59085         * modules/uniconv/u16-strconv-from-locale: New file.
59086         * lib/uniconv/u16-strconv-from-locale.c: New file.
59087
59088         * modules/uniconv/u8-strconv-from-locale: New file.
59089         * lib/uniconv/u8-strconv-from-locale.c: New file.
59090
59091         * modules/uniconv/u32-strconv-to-enc: New file.
59092         * lib/uniconv/u32-strconv-to-enc.c: New file.
59093         * modules/uniconv/u32-strconv-to-enc-tests: New file.
59094         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
59095
59096         * modules/uniconv/u16-strconv-to-enc: New file.
59097         * lib/uniconv/u16-strconv-to-enc.c: New file.
59098         * lib/uniconv/u-strconv-to-enc.h: New file.
59099         * modules/uniconv/u16-strconv-to-enc-tests: New file.
59100         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
59101
59102         * modules/uniconv/u8-strconv-to-enc: New file.
59103         * lib/uniconv/u8-strconv-to-enc.c: New file.
59104         * modules/uniconv/u8-strconv-to-enc-tests: New file.
59105         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
59106
59107         * modules/uniconv/u32-strconv-from-enc: New file.
59108         * lib/uniconv/u32-strconv-from-enc.c: New file.
59109         * modules/uniconv/u32-strconv-from-enc-tests: New file.
59110         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
59111
59112         * modules/uniconv/u16-strconv-from-enc: New file.
59113         * lib/uniconv/u16-strconv-from-enc.c: New file.
59114         * modules/uniconv/u16-strconv-from-enc-tests: New file.
59115         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
59116
59117         * modules/uniconv/u8-strconv-from-enc: New file.
59118         * lib/uniconv/u8-strconv-from-enc.c: New file.
59119         * lib/uniconv/u-strconv-from-enc.h: New file.
59120         * modules/uniconv/u8-strconv-from-enc-tests: New file.
59121         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
59122
59123         * modules/uniconv/u32-conv-from-enc: New file.
59124         * lib/uniconv/u32-conv-from-enc.c: New file.
59125         * modules/uniconv/u32-conv-from-enc-tests: New file.
59126         * tests/uniconv/test-u32-conv-from-enc.c: New file.
59127
59128         * modules/uniconv/u16-conv-from-enc: New file.
59129         * lib/uniconv/u16-conv-from-enc.c: New file.
59130         * lib/uniconv/u-conv-from-enc.h: New file.
59131         * modules/uniconv/u16-conv-from-enc-tests: New file.
59132         * tests/uniconv/test-u16-conv-from-enc.c: New file.
59133
59134         * modules/uniconv/u8-conv-from-enc: New file.
59135         * lib/uniconv/u8-conv-from-enc.c: New file.
59136         * modules/uniconv/u8-conv-from-enc-tests: New file.
59137         * tests/uniconv/test-u8-conv-from-enc.c: New file.
59138
59139         * modules/uniconv/base: New file.
59140         * lib/uniconv.h: New file.
59141
59142 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
59143
59144         * doc/gnulib-tool.texi (Initial import): Update to match current
59145         behavior with strdup module.
59146         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
59147         * lib/memmem.h: Remove; all uses removed.  This is now done
59148         by <string.h>.
59149         * lib/mempcpy.h: Likewise.
59150         * lib/memrchr.h: Likewise.
59151         * lib/stpcpy.h: Likewise.
59152         * lib/stpncpy.h: Likewise.
59153         * lib/strcase.h: Likewise.
59154         * lib/strchrnul.h: Likewise.
59155         * lib/strdup.h: Likewise.
59156         * lib/strndup.h: Likewise.
59157         * lib/strnlen.h: Likewise.
59158         * lib/strpbrk.h: Likewise.
59159         * lib/strsep.h: Likewise.
59160         * lib/strstr.h: Likewise.
59161         * lib/strtok_r.h: Likewise.
59162         * lib/string_.h: New file.
59163         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
59164         Rely on <string.h> instead.
59165         * lib/canon-host.c: Likewise.
59166         * lib/chdir-long.c: Likewise.
59167         * lib/concatpath.c: Likewise.
59168         * lib/exclude.c: Likewise.
59169         * lib/fchdir.c: Likewise.
59170         * lib/getaddrinfo.c: Likewise.
59171         * lib/getcwd.c: Likewise.
59172         * lib/getsubopt.c: Likewise.
59173         * lib/glob.c: Likewise.
59174         * lib/hard-locale.c: Likewise.
59175         * lib/iconvme.c: Likewise.
59176         * lib/javacomp.c: Likewise.
59177         * lib/mempcpy.c: Likewise.
59178         * lib/memrchr.c: Likewise.
59179         * lib/regex_internal.h: Likewise.
59180         * lib/stpncpy.c: Likewise.
59181         * lib/strcasecmp.c: Likewise.
59182         * lib/strchrnul.c: Likewise.
59183         * lib/strdup.c: Likewise.
59184         * lib/striconv.c: Likewise.
59185         * lib/striconveh.c: Likewise.
59186         * lib/striconveha.c: Likewise.
59187         * lib/strncasecmp.c: Likewise.
59188         * lib/strndup.c: Likewise.
59189         * lib/strnlen.c: Likewise.
59190         * lib/strsep.c: Likewise.
59191         * lib/strstr.c: Likewise.
59192         * lib/strtok_r.c: Likewise.
59193         * lib/userspec.c: Likewise.
59194         * lib/w32spawn.h: Likewise.
59195         * lib/xstrndup.c: Likewise.
59196         * lib/mountlist.c (strstr): Remove decl.
59197         * m4/string_h.m4: New file.
59198         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
59199         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
59200         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
59201         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
59202         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
59203         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
59204         Set REPLACE_STRCASECMP if necessary.
59205         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
59206         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
59207         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
59208         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
59209         HAVE_DECL_STRDUP if necessary.
59210         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
59211         since gl_FUNC_STRNDUP does that now.
59212         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
59213         Check for decl here...
59214         (gl_PREREQ_STRNLEN): ... not here.
59215         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
59216         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
59217         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
59218         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
59219         necessary.
59220         * modules/string: New file.
59221         * modules/memmem (Files): Remove special-purpose include file.
59222         (Depends-on): Add string.
59223         (Include): Include <string.h>, not the removed file.
59224         * modules/mempcpy: Likewise.
59225         * modules/memrchr: Likewise.
59226         * modules/stpcpy: Likewise.
59227         * modules/stpncpy: Likewise.
59228         * modules/strcase: Likewise.
59229         * modules/strchrnul: Likewise.
59230         * modules/strdup: Likewise.
59231         * modules/strndup: Likewise.
59232         * modules/strnlen: Likewise.
59233         * modules/strpbrk: Likewise.
59234         * modules/strsep: Likewise.
59235         * modules/strstr: Likewise.
59236         * modules/strtok_r: Likewise.
59237         * tests/test-dirname.c: Don't include "strdup.h", since
59238         <string.h> now suffices.
59239         * tests/test-memmem.c: Don't include "memmem.h", since
59240         <string.h> now suffices.
59241
59242 2007-01-25  Bruno Haible  <bruno@clisp.org>
59243
59244         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
59245         *resultp is 0.
59246
59247         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
59248         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
59249         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
59250         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
59251
59252         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
59253         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
59254         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
59255         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
59256         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
59257         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
59258
59259 2007-01-24  Bruno Haible  <bruno@clisp.org>
59260
59261         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
59262         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
59263         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
59264         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
59265         gl_FUNC_FTS_CORE.
59266         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
59267         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
59268         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
59269         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
59270         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
59271         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
59272         gl_FUNC_FCHOWNAT.
59273         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
59274         gl_FUNC_STRFTIME.
59275         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
59276         Reported by Ralf Wildenhues.
59277
59278 2007-01-24  Bruno Haible  <bruno@clisp.org>
59279
59280         Drop AC_REQUIRE calls that are redundant with the module dependencies.
59281         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
59282         gl_GETADDRINFO.
59283         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
59284         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
59285         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
59286
59287 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
59288
59289         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
59290         Don't use 'exit'; just return from 'main'.
59291         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
59292
59293         * lib/fnmatch_.h: Readjust white space and comments to match
59294         glibc, to avoid spurious diffs.
59295
59296 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
59297
59298         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
59299         2004-12-01 change by Jakub Jelinek, since this code won't compile
59300         if !LIBC.  Problem reported by Bob Proulx.
59301
59302 2007-01-23  Bruno Haible  <bruno@clisp.org>
59303
59304         * lib/striconveh.c: Include c-strcaseeq.h.
59305         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
59306         * modules/striconveh (Depends-on): Add c-strcaseeq.
59307
59308 2007-01-23  Bruno Haible  <bruno@clisp.org>
59309
59310         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
59311
59312         * modules/c-strcaseeq: New file.
59313         * lib/c-strcaseeq.h: New file.
59314
59315         * modules/streq: New file.
59316         * lib/streq.h: New file.
59317
59318 2007-01-23  Bruno Haible  <bruno@clisp.org>
59319
59320         * modules/striconveha-tests: New file.
59321         * tests/test-striconveha.c: New file.
59322
59323         * lib/striconveha.h: Include <stdbool.h>.
59324         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
59325         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
59326         (mem_iconveha_notranslit): Renamed from mem_iconveha.
59327         (mem_iconveha): New function.
59328         (str_iconveha_notranslit): Renamed from str_iconveha.
59329         (str_iconveha): New function.
59330         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
59331         c-strcase.
59332
59333 2007-01-23  Bruno Haible  <bruno@clisp.org>
59334
59335         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
59336         encodings without forgiving before trying any encoding with handler.
59337         (str_iconveha): Try all encodings without forgiving before trying any
59338         encoding with handler.
59339
59340 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
59341
59342         Import the following changes from libc.
59343
59344         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
59345
59346         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
59347
59348         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
59349
59350         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
59351         normal_bracket label.
59352
59353         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
59354
59355         [BZ #361]
59356         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
59357         to normal_bracket after fetching the next character.
59358
59359 2007-01-22  Bruno Haible  <bruno@clisp.org>
59360
59361         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
59362         argument.
59363         * lib/striconveh.c (iconv_carefully_1): New function.
59364         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
59365         argument.
59366         (str_cd_iconveh): Update.
59367         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
59368         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
59369         * tests/test-striconveh.c (MAGIC): New macro.
59370         (new_offsets): New function.
59371         (main): Test call with and without offsets.
59372
59373 2007-01-22  Bruno Haible  <bruno@clisp.org>
59374
59375         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
59376         * modules/sys_select (Makefile.am): Likewise.
59377         * modules/sys_socket (Makefile.am): Likewise.
59378         * modules/sys_time (Makefile.am): Likewise.
59379
59380 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
59381
59382         * modules/gettimeofday (License): Change from GPL to LGPL, since
59383         gettimeofday is a library function.
59384
59385 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
59386
59387         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
59388
59389 2007-01-21  Bruno Haible  <bruno@clisp.org>
59390
59391         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
59392
59393 2007-01-21  Bruno Haible  <bruno@clisp.org>
59394
59395         * modules/striconveha: New file.
59396         * lib/striconveha.h: New file.
59397         * lib/striconveha.c: New file.
59398         * MODULES.html.sh (Internationalization functions): Add striconveha.
59399         * lib/striconv.c (str_iconv): Optimize the case of an empty input
59400         string.
59401         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
59402
59403 2007-01-21  Bruno Haible  <bruno@clisp.org>
59404
59405         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
59406         * lib/striconveh.c (str_iconveh): Likewise.
59407
59408 2007-01-21  Bruno Haible  <bruno@clisp.org>
59409
59410         * lib/striconveh.h (mem_iconveh): New declaration.
59411         * lib/striconveh.c (mem_iconveh): New function.
59412         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
59413
59414 2007-01-21  Bruno Haible  <bruno@clisp.org>
59415
59416         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
59417
59418         * lib/striconveh.h (mem_cd_iconveh): Change specification.
59419         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
59420         original result buffer.
59421         (str_cd_iconveh): Update.
59422         * tests/test-striconveh.c (main): Update.
59423
59424         * lib/striconv.h (mem_cd_iconv): Change specification.
59425         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
59426         result buffer.
59427         (str_cd_iconv): Update.
59428         * tests/test-striconv.c (main): Update.
59429
59430 2007-01-21  Bruno Haible  <bruno@clisp.org>
59431
59432         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
59433
59434 2007-01-20  Jim Meyering  <jim@meyering.net>
59435
59436         * lib/userspec.c (parse_with_separator): If a user or group string
59437         starts with "+", skip the corresponding name-to-ID look-up, since
59438         such a look-up must fail: user and group names may not include "+".
59439
59440 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
59441
59442         * lib/poll.c: Include sys/time.h and time.h unconditionally,
59443         since we now assume the sys_time module.
59444         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
59445         check for sys/time.h; no longer needed.
59446         * modules/poll (Depends-on): Depend on sys_time.
59447
59448 2007-01-18  Bruno Haible  <bruno@clisp.org>
59449
59450         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
59451         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
59452
59453         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
59454         gettimeofday.
59455
59456         * tests/test-gettimeofday.c: Include <time.h>.
59457         (dummy): Remove variable.
59458
59459         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
59460         gl_HEADER_SYS_TIME_H.
59461         (gl_HEADER_SYS_TIME_H): New macro.
59462
59463         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
59464         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
59465         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
59466         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
59467         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
59468         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
59469         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
59470         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
59471         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
59472         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
59473         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
59474
59475         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
59476         last change; it caused a compilation error when cross-compiling to
59477         Cygwin.
59478
59479 2007-01-18  Jim Meyering  <jim@meyering.net>
59480
59481         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
59482         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
59483         than the race-prone "test -d sys || mkdir sys".
59484         (configure.ac): Use AC_PROG_MKDIR_P.
59485         * modules/sys_select: Likewise.
59486         * modules/sys_socket: Likewise.
59487         * modules/sys_time: Likewise.
59488
59489 2007-01-18  Eric Blake  <ebb9@byu.net>
59490
59491         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
59492         replace gettimeofday.
59493         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
59494         name, to avoid infinite recursion.
59495
59496 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
59497
59498         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
59499         module sys_time.
59500         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
59501         assume timespec.h defines struct timeval.
59502         * lib/settime.c: Likewise.
59503         * lib/utimens.c: Likewise.
59504         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
59505         since we now assume the gettimeofday module.
59506         * lib/tempname.c (__gen_tempname): Likewise.
59507         * lib/gettimeofday.h: Remove.
59508         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
59509         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
59510         Include <time.h>, for 'time()'.
59511         (localtime_buffer_addr): Also use this workaround if
59512         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
59513         to simplify the uses.  All uses changed.
59514         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
59515         that #undef is inside {}, and 'const' follows type name consistently.
59516         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
59517         (gettimeofday): Do not use the maximum possible value for
59518         tv->tv_usec, since that might break usages other than ls.c.
59519         Instead, we'll leave ls.c alone.  This undoes today's patch
59520         by Bruno.  Add a compile-time warning for 1s-clock resolution;
59521         we've never observed the problem but might as well keep the
59522         canary.
59523         * lib/nanosleep.c: Include timespec.h first, for interface check.
59524         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
59525         now assume the sys_time module.
59526         * lib/tempname.c: Likewise.
59527         * lib/timespec.h: Likewise.
59528         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
59529         needed.
59530         * lib/strftime.c: Likewise.
59531         * lib/timespec.h: Likewise.
59532         * lib/posixtm.c: Include posixtm.h first, for interface check.
59533         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
59534         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
59535         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
59536         * lib/sys_time_.h: New file.
59537         * lib/timespec.h (struct timespec): Use long int, not long.
59538         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
59539         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
59540         Remove obsolescent call to AC_HEADER_TIME.
59541         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
59542         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
59543         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
59544         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
59545         Likewise.
59546         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
59547         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
59548         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
59549         into the sys_time module.  Check for gettimeofday just once.
59550         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
59551         for gettimeofday signature to just check the signature.  Merely
59552         compile it, since linking doesn't test signature.  Improve test for
59553         whether gettimeofday.o is actually needed.
59554         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
59555         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
59556         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
59557         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
59558         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
59559         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
59560         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
59561         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
59562         than worrying about sys/time.h.
59563         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
59564         Don't bother worrying about TIME_WITH_SYS_TIME.
59565         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
59566         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
59567         * m4/sys_time_h.m4: New file.
59568         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
59569         Don't include sys/time.h.  Return from main rather than exiting.
59570         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
59571         all uses changed.
59572         * modules/gethrxtime (Depends-on): Add sys_time.
59573         * modules/gettime (Depends-on): Likewise.
59574         * modules/gettimeofday (Depends-on): Likewise.
59575         * modules/nanosleep (Depends-on): Likewise.
59576         * modules/settime (Depends-on): Likewise.
59577         * modules/tempname (Depends-on): Likewise.
59578         * modules/utimens (Depends-on): Likewise.
59579         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
59580         (Include): Change back to <sys/time.h>.
59581         (Maintainer): Add self.
59582         * modules/sys_time: New file.
59583         * modules/tempname (Depends-on): Add gettimeofday.
59584         * tests/test-gettimeofday.c: Include <sys/time.h>
59585         rather than gettimeofday.h.
59586
59587 2007-01-17  Bruno Haible  <bruno@clisp.org>
59588
59589         * gnulib-tool (func_get_license): Revert last patch. Instead, let
59590         the license default to GPL.
59591         (func_create_testdir): Don't complain if a module is LGPL and its
59592         tests module depends on GPLed modules.
59593
59594 2007-01-17  Bruno Haible  <bruno@clisp.org>
59595
59596         * lib/gettimeofday.c (gettimeofday): Add code for the case
59597         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
59598         maximum possible value for tv->tv_usec, rather than the minimum one.
59599
59600 2005-10-08  Martin Lambers  <marlam@marlam.de>
59601 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
59602 2007-01-16  Bruno Haible  <bruno@clisp.org>
59603
59604         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
59605         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
59606         gl_FUNC_GETTIMEOFDAY.
59607         (Include): Add gettimeofday.h.
59608         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
59609         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
59610         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
59611         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
59612         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
59613         * lib/gettimeofday.h: New file.
59614         * lib/gettimeofday.c: Include <sys/timeb.h>.
59615         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
59616         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
59617         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
59618         fall back on time().
59619
59620         * tests/test-gettimeofday.c: New file.
59621         * modules/gettimeofday-tests: New file.
59622
59623 2007-01-16  Eric Blake  <ebb9@byu.net>
59624
59625         * modules/fnmatch (Depends-on): Depend on wchar.
59626         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
59627         * m4/fnmatch.m4: Likewise.
59628         * modules/mbchar (Makefile.am): Assume <wchar.h>.
59629         * m4/mbchar.m4: Likewise.
59630         * modules/mbswidth (Depends-on): Depend on wchar.
59631         * lib/mbswidth.c: Assume <wchar.h>.
59632         * m4/mbswidth.m4: Likewise.
59633         * modules/quotearg (Depends-on): Depend on wchar.
59634         * lib/quotearg.c: Assume <wchar.h>.
59635         * m4/quotearg.m4: Likewise.
59636         * modules/regex (Depends-on): Depend on wchar.
59637         * lib/regex_internal.h: Assume <wchar.h>.
59638         * m4/regex.m4: Likewise.
59639         * modules/stdint (Depends-on): Depend on wchar.
59640         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
59641         * m4/stdint.m4: Likewise.
59642         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
59643         * modules/strftime (Depends-on): Depend on wchar.
59644         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
59645         * modules/strtol (Depends-on): Depend on wchar.
59646         * lib/strtol.c: Assume <wchar.h>.
59647         * modules/wcwidth (Depends-on): Depend on wchar.
59648         * lib/wcwidth.h: Assume <wchar.h>.
59649         * m4/wcwidth.m4: Likewise.
59650
59651 2007-01-16  Bruno Haible  <bruno@clisp.org>
59652
59653         * modules/csharpexec-script: New, created from...
59654         * modules/csharpexec: ... this.
59655
59656 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
59657
59658         * modules/javaexec-script: New, created from...
59659         * modules/javaexec: ... this.
59660
59661 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
59662
59663         * modules/poll (Dependencies): Add sys_select.
59664
59665 2007-01-15  Jim Meyering  <jim@meyering.net>
59666
59667         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
59668         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
59669         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
59670         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
59671
59672 2007-01-15  Bruno Haible  <bruno@clisp.org>
59673
59674         * modules/striconveh: New file.
59675         * lib/striconveh.h: New file.
59676         * lib/striconveh.c: New file.
59677         * MODULES.html.sh (Internationalization functions): Add striconveh.
59678
59679         * modules/striconveh-tests: New file.
59680         * tests/test-striconveh.c: New file.
59681
59682 2007-01-15  Bruno Haible  <bruno@clisp.org>
59683
59684         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
59685         not from GNU libiconv or GNU libc.
59686
59687 2007-01-15  Bruno Haible  <bruno@clisp.org>
59688
59689         * doc/gnulib-intro.texi (Copyright): Explain the different license
59690         terms for module descriptions, autoconf macros, tests, documentation.
59691
59692 2007-01-14  Bruno Haible  <bruno@clisp.org>
59693
59694         * modules/striconv-tests: New file.
59695         * tests/test-striconv.c: New file.
59696
59697 2007-01-14  Bruno Haible  <bruno@clisp.org>
59698
59699         * modules/iconv-tests: New file.
59700         * tests/test-iconv.c: New file.
59701
59702 2007-01-14  Bruno Haible  <bruno@clisp.org>
59703
59704         * gnulib-tool (func_get_license): For test modules, use the license of
59705         the main module.
59706
59707 2007-01-14  Bruno Haible  <bruno@clisp.org>
59708
59709         * modules/iconv (Include): Clarify that <iconv.h> can only be included
59710         if iconv is found to exist.
59711
59712 2007-01-14  Bruno Haible  <bruno@clisp.org>
59713
59714         * modules/c-ctype-tests: New file.
59715         * tests/test-c-ctype.c: New file.
59716
59717 2007-01-14  Bruno Haible  <bruno@clisp.org>
59718
59719         * modules/binary-io-tests: New file.
59720         * tests/test-binary-io.sh: New file.
59721         * tests/test-binary-io.c: New file.
59722
59723 2007-01-14  Bruno Haible  <bruno@clisp.org>
59724
59725         * modules/array-oset-tests: New file.
59726         * tests/test-array_oset.c: New file.
59727
59728 2007-01-14  Bruno Haible  <bruno@clisp.org>
59729
59730         * modules/array-list-tests: New file.
59731         * tests/test-array_list.c: New file.
59732
59733 2007-01-14  Bruno Haible  <bruno@clisp.org>
59734
59735         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
59736         and make.
59737         Reported by Simon Josefsson in
59738         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
59739
59740 2007-01-14  Bruno Haible  <bruno@clisp.org>
59741
59742         * modules/allocsa-tests: New file.
59743         * tests/test-allocsa.c: New file.
59744
59745 2007-01-14  Bruno Haible  <bruno@clisp.org>
59746
59747         * modules/fchdir (Depends-on): Add absolute-header.
59748         * modules/unistd (Depends-on): Likewise.
59749
59750 2006-12-30  Bruno Haible  <bruno@clisp.org>
59751
59752         * modules/fchdir: New file.
59753         * modules/unistd (Files): Add lib/unistd_.h.
59754         (Makefile.am): Generate unistd.h from unistd_.h.
59755         * lib/fchdir.c: New file.
59756         * lib/dirent_.h: New file.
59757         * lib/unistd_.h: New file.
59758         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
59759         * m4/fchdir.m4: New file.
59760         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
59761         (gl_HEADER_UNISTD): Invoke it.
59762         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
59763         function.
59764         * lib/backupfile.c (opendir, closedir): Undefine.
59765         * lib/chown.c (open, close): Undefine.
59766         * lib/clean-temp.c (open, close): Undefine.
59767         * lib/copy-file.c (open, close): Undefine.
59768         * lib/execute.c (open, close): Undefine.
59769         * lib/fsusage.c (open, close): Undefine.
59770         * lib/gc-gnulib.c (open, close): Undefine.
59771         * lib/getcwd.c (opendir, closedir): Undefine.
59772         * lib/glob.c (opendir, closedir): Undefine.
59773         * lib/javacomp.c (open, close): Undefine.
59774         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
59775         * lib/openat-proc.c (open, close): Undefine.
59776         * lib/pagealign_alloc.c (open, close): Undefine.
59777         * lib/pipe.c (open, close): Undefine.
59778         * lib/progreloc.c (open, close): Undefine.
59779         * lib/savedir.c (opendir, closedir): Undefine.
59780         * lib/utime.c (open, close): Undefine.
59781         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
59782
59783 2007-01-10  Bruno Haible  <bruno@clisp.org>
59784
59785         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
59786
59787 2007-01-12  Eric Blake  <ebb9@byu.net>
59788
59789         Provide a robust <wchar.h>.  Further simplifications are now
59790         possible in other modules, but not included here.
59791         * modules/wchar: New module.
59792         * m4/wchar.m4: New file.
59793         * lib/wchar_.h: Likewise.
59794         * modules/mbchar (Depends-on): Depend on wchar, as the first use
59795         of the new module.
59796         * MODULES.html.sh (Extended multibyte and wide character utilities):
59797         New section.
59798
59799 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
59800
59801         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
59802         to a reasonable default for memory allocation.
59803         (xreadlink): Don't allocate a huge buffer, to work around a buggy
59804         file system that reports garbage st_size values for symlinks.
59805         Problem reported by Liyang Hu.
59806
59807 2007-01-11  Simon Josefsson  <simon@josefsson.org>
59808
59809         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
59810         Emacs .#* auto-save files).
59811
59812 2007-01-11  Bruno Haible  <bruno@clisp.org>
59813
59814         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
59815         directory.
59816
59817 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
59818
59819         Use @...@ consistently in lib/wctype_.h.
59820         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
59821         on it being set to 1 or 0.
59822         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
59823         go back to AC_SUBSTing it.
59824         * modules/wctype (Makefile.am): Undo previous change.
59825
59826 2007-01-10  Eric Blake  <ebb9@byu.net>
59827
59828         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
59829         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
59830         * modules/wctype (Makefile.am): Likewise.
59831         Reported by Chris McGuire.
59832
59833 2007-01-10  Jim Meyering  <jim@meyering.net>
59834
59835         fts.c: a small readability/maintainability improvement
59836         * lib/fts.c (fts_read): Make this code slightly more readable and
59837         maintainable by hoisting the "sp->fts_cur = p" assignments to
59838         immediately follow the statements that set P.  Derived from
59839         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
59840
59841 2007-01-10  Eric Blake  <ebb9@byu.net>
59842
59843         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
59844         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
59845         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
59846         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
59847         Reported by Chris McGuire.
59848
59849 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59850
59851         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
59852         in sed script.
59853
59854 2007-01-09  Bruno Haible  <bruno@clisp.org>
59855
59856         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
59857         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
59858         variables.
59859         (func_module): Use them.
59860
59861 2007-01-09  Bruno Haible  <bruno@clisp.org>
59862
59863         * modules/unistr/base: New file.
59864         * lib/unistr.h: New file.
59865
59866         * modules/unistr/u8-to-u16: New file.
59867         * lib/unistr/u8-to-u16.c: New file.
59868
59869         * modules/unistr/u8-to-u32: New file.
59870         * lib/unistr/u8-to-u32.c: New file.
59871
59872         * modules/unistr/u16-to-u8: New file.
59873         * lib/unistr/u16-to-u8.c: New file.
59874
59875         * modules/unistr/u16-to-u32: New file.
59876         * lib/unistr/u16-to-u32.c: New file.
59877
59878         * modules/unistr/u32-to-u8: New file.
59879         * lib/unistr/u32-to-u8.c: New file.
59880
59881         * modules/unistr/u32-to-u16: New file.
59882         * lib/unistr/u32-to-u16.c: New file.
59883
59884         * modules/unistr/u8-check: New file.
59885         * modules/unistr/u16-check: New file.
59886         * modules/unistr/u32-check: New file.
59887         * lib/unistr/u8-check.c: New file.
59888         * lib/unistr/u16-check.c: New file.
59889         * lib/unistr/u32-check.c: New file.
59890
59891         * modules/unistr/u8-chr: New file.
59892         * modules/unistr/u16-chr: New file.
59893         * modules/unistr/u32-chr: New file.
59894         * lib/unistr/u8-chr.c: New file.
59895         * lib/unistr/u16-chr.c: New file.
59896         * lib/unistr/u32-chr.c: New file.
59897
59898         * modules/unistr/u8-cmp: New file.
59899         * modules/unistr/u16-cmp: New file.
59900         * modules/unistr/u32-cmp: New file.
59901         * lib/unistr/u8-cmp.c: New file.
59902         * lib/unistr/u16-cmp.c: New file.
59903         * lib/unistr/u32-cmp.c: New file.
59904
59905         * modules/unistr/u8-cpy: New file.
59906         * modules/unistr/u16-cpy: New file.
59907         * modules/unistr/u32-cpy: New file.
59908         * lib/unistr/u8-cpy.c: New file.
59909         * lib/unistr/u16-cpy.c: New file.
59910         * lib/unistr/u32-cpy.c: New file.
59911         * lib/unistr/u-cpy.h: New file.
59912
59913         * modules/unistr/u8-cpy-alloc: New file.
59914         * modules/unistr/u16-cpy-alloc: New file.
59915         * modules/unistr/u32-cpy-alloc: New file.
59916         * lib/unistr/u8-cpy-alloc.c: New file.
59917         * lib/unistr/u16-cpy-alloc.c: New file.
59918         * lib/unistr/u32-cpy-alloc.c: New file.
59919         * lib/unistr/u-cpy-alloc.h: New file.
59920
59921         * modules/unistr/u8-endswith: New file.
59922         * modules/unistr/u16-endswith: New file.
59923         * modules/unistr/u32-endswith: New file.
59924         * lib/unistr/u8-endswith.c: New file.
59925         * lib/unistr/u16-endswith.c: New file.
59926         * lib/unistr/u32-endswith.c: New file.
59927         * lib/unistr/u-endswith.h: New file.
59928
59929         * modules/unistr/u8-mblen: New file.
59930         * modules/unistr/u16-mblen: New file.
59931         * modules/unistr/u32-mblen: New file.
59932         * lib/unistr/u8-mblen.c: New file.
59933         * lib/unistr/u16-mblen.c: New file.
59934         * lib/unistr/u32-mblen.c: New file.
59935
59936         * modules/unistr/u8-mbtouc: New file.
59937         * modules/unistr/u16-mbtouc: New file.
59938         * modules/unistr/u32-mbtouc: New file.
59939         * lib/unistr/u8-mbtouc.c: New file.
59940         * lib/unistr/u16-mbtouc.c: New file.
59941         * lib/unistr/u32-mbtouc.c: New file.
59942
59943         * modules/unistr/u8-mbtouc-safe: New file.
59944         * modules/unistr/u16-mbtouc-safe: New file.
59945         * modules/unistr/u32-mbtouc-safe: New file.
59946         * lib/unistr/u8-mbtouc-safe.c: New file.
59947         * lib/unistr/u16-mbtouc-safe.c: New file.
59948         * lib/unistr/u32-mbtouc-safe.c: New file.
59949
59950         * modules/unistr/u8-move: New file.
59951         * modules/unistr/u16-move: New file.
59952         * modules/unistr/u32-move: New file.
59953         * lib/unistr/u8-move.c: New file.
59954         * lib/unistr/u16-move.c: New file.
59955         * lib/unistr/u32-move.c: New file.
59956         * lib/unistr/u-move.h: New file.
59957
59958         * modules/unistr/u8-next: New file.
59959         * modules/unistr/u16-next: New file.
59960         * modules/unistr/u32-next: New file.
59961         * lib/unistr/u8-next.c: New file.
59962         * lib/unistr/u16-next.c: New file.
59963         * lib/unistr/u32-next.c: New file.
59964
59965         * modules/unistr/u8-prev: New file.
59966         * modules/unistr/u16-prev: New file.
59967         * modules/unistr/u32-prev: New file.
59968         * lib/unistr/u8-prev.c: New file.
59969         * lib/unistr/u16-prev.c: New file.
59970         * lib/unistr/u32-prev.c: New file.
59971
59972         * modules/unistr/u8-set: New file.
59973         * modules/unistr/u16-set: New file.
59974         * modules/unistr/u32-set: New file.
59975         * lib/unistr/u8-set.c: New file.
59976         * lib/unistr/u16-set.c: New file.
59977         * lib/unistr/u32-set.c: New file.
59978         * lib/unistr/u-set.h: New file.
59979
59980         * modules/unistr/u8-startswith: New file.
59981         * modules/unistr/u16-startswith: New file.
59982         * modules/unistr/u32-startswith: New file.
59983         * lib/unistr/u8-startswith.c: New file.
59984         * lib/unistr/u16-startswith.c: New file.
59985         * lib/unistr/u32-startswith.c: New file.
59986         * lib/unistr/u-startswith.h: New file.
59987
59988         * modules/unistr/u8-stpcpy: New file.
59989         * modules/unistr/u16-stpcpy: New file.
59990         * modules/unistr/u32-stpcpy: New file.
59991         * lib/unistr/u8-stpcpy.c: New file.
59992         * lib/unistr/u16-stpcpy.c: New file.
59993         * lib/unistr/u32-stpcpy.c: New file.
59994         * lib/unistr/u-stpcpy.h: New file.
59995
59996         * modules/unistr/u8-stpncpy: New file.
59997         * modules/unistr/u16-stpncpy: New file.
59998         * modules/unistr/u32-stpncpy: New file.
59999         * lib/unistr/u8-stpncpy.c: New file.
60000         * lib/unistr/u16-stpncpy.c: New file.
60001         * lib/unistr/u32-stpncpy.c: New file.
60002         * lib/unistr/u-stpncpy.h: New file.
60003
60004         * modules/unistr/u8-strcat: New file.
60005         * modules/unistr/u16-strcat: New file.
60006         * modules/unistr/u32-strcat: New file.
60007         * lib/unistr/u8-strcat.c: New file.
60008         * lib/unistr/u16-strcat.c: New file.
60009         * lib/unistr/u32-strcat.c: New file.
60010         * lib/unistr/u-strcat.h: New file.
60011
60012         * modules/unistr/u8-strchr: New file.
60013         * modules/unistr/u16-strchr: New file.
60014         * modules/unistr/u32-strchr: New file.
60015         * lib/unistr/u8-strchr.c: New file.
60016         * lib/unistr/u16-strchr.c: New file.
60017         * lib/unistr/u32-strchr.c: New file.
60018
60019         * modules/unistr/u8-strcmp: New file.
60020         * modules/unistr/u16-strcmp: New file.
60021         * modules/unistr/u32-strcmp: New file.
60022         * lib/unistr/u8-strcmp.c: New file.
60023         * lib/unistr/u16-strcmp.c: New file.
60024         * lib/unistr/u32-strcmp.c: New file.
60025
60026         * modules/unistr/u8-strcpy: New file.
60027         * modules/unistr/u16-strcpy: New file.
60028         * modules/unistr/u32-strcpy: New file.
60029         * lib/unistr/u8-strcpy.c: New file.
60030         * lib/unistr/u16-strcpy.c: New file.
60031         * lib/unistr/u32-strcpy.c: New file.
60032         * lib/unistr/u-strcpy.h: New file.
60033
60034         * modules/unistr/u8-strcspn: New file.
60035         * modules/unistr/u16-strcspn: New file.
60036         * modules/unistr/u32-strcspn: New file.
60037         * lib/unistr/u8-strcspn.c: New file.
60038         * lib/unistr/u16-strcspn.c: New file.
60039         * lib/unistr/u32-strcspn.c: New file.
60040         * lib/unistr/u-strcspn.h: New file.
60041
60042         * modules/unistr/u8-strdup: New file.
60043         * modules/unistr/u16-strdup: New file.
60044         * modules/unistr/u32-strdup: New file.
60045         * lib/unistr/u8-strdup.c: New file.
60046         * lib/unistr/u16-strdup.c: New file.
60047         * lib/unistr/u32-strdup.c: New file.
60048         * lib/unistr/u-strdup.h: New file.
60049
60050         * modules/unistr/u8-strlen: New file.
60051         * modules/unistr/u16-strlen: New file.
60052         * modules/unistr/u32-strlen: New file.
60053         * lib/unistr/u8-strlen.c: New file.
60054         * lib/unistr/u16-strlen.c: New file.
60055         * lib/unistr/u32-strlen.c: New file.
60056         * lib/unistr/u-strlen.h: New file.
60057
60058         * modules/unistr/u8-strmblen: New file.
60059         * modules/unistr/u16-strmblen: New file.
60060         * modules/unistr/u32-strmblen: New file.
60061         * lib/unistr/u8-strmblen.c: New file.
60062         * lib/unistr/u16-strmblen.c: New file.
60063         * lib/unistr/u32-strmblen.c: New file.
60064
60065         * modules/unistr/u8-strmbtouc: New file.
60066         * modules/unistr/u16-strmbtouc: New file.
60067         * modules/unistr/u32-strmbtouc: New file.
60068         * lib/unistr/u8-strmbtouc.c: New file.
60069         * lib/unistr/u16-strmbtouc.c: New file.
60070         * lib/unistr/u32-strmbtouc.c: New file.
60071
60072         * modules/unistr/u8-strncat: New file.
60073         * modules/unistr/u16-strncat: New file.
60074         * modules/unistr/u32-strncat: New file.
60075         * lib/unistr/u8-strncat.c: New file.
60076         * lib/unistr/u16-strncat.c: New file.
60077         * lib/unistr/u32-strncat.c: New file.
60078         * lib/unistr/u-strncat.h: New file.
60079
60080         * modules/unistr/u8-strncmp: New file.
60081         * modules/unistr/u16-strncmp: New file.
60082         * modules/unistr/u32-strncmp: New file.
60083         * lib/unistr/u8-strncmp.c: New file.
60084         * lib/unistr/u16-strncmp.c: New file.
60085         * lib/unistr/u32-strncmp.c: New file.
60086
60087         * modules/unistr/u8-strncpy: New file.
60088         * modules/unistr/u16-strncpy: New file.
60089         * modules/unistr/u32-strncpy: New file.
60090         * lib/unistr/u8-strncpy.c: New file.
60091         * lib/unistr/u16-strncpy.c: New file.
60092         * lib/unistr/u32-strncpy.c: New file.
60093         * lib/unistr/u-strncpy.h: New file.
60094
60095         * modules/unistr/u8-strnlen: New file.
60096         * modules/unistr/u16-strnlen: New file.
60097         * modules/unistr/u32-strnlen: New file.
60098         * lib/unistr/u8-strnlen.c: New file.
60099         * lib/unistr/u16-strnlen.c: New file.
60100         * lib/unistr/u32-strnlen.c: New file.
60101         * lib/unistr/u-strnlen.h: New file.
60102
60103         * modules/unistr/u8-strpbrk: New file.
60104         * modules/unistr/u16-strpbrk: New file.
60105         * modules/unistr/u32-strpbrk: New file.
60106         * lib/unistr/u8-strpbrk.c: New file.
60107         * lib/unistr/u16-strpbrk.c: New file.
60108         * lib/unistr/u32-strpbrk.c: New file.
60109         * lib/unistr/u-strpbrk.h: New file.
60110
60111         * modules/unistr/u8-strrchr: New file.
60112         * modules/unistr/u16-strrchr: New file.
60113         * modules/unistr/u32-strrchr: New file.
60114         * lib/unistr/u8-strrchr.c: New file.
60115         * lib/unistr/u16-strrchr.c: New file.
60116         * lib/unistr/u32-strrchr.c: New file.
60117
60118         * modules/unistr/u8-strspn: New file.
60119         * modules/unistr/u16-strspn: New file.
60120         * modules/unistr/u32-strspn: New file.
60121         * lib/unistr/u8-strspn.c: New file.
60122         * lib/unistr/u16-strspn.c: New file.
60123         * lib/unistr/u32-strspn.c: New file.
60124         * lib/unistr/u-strspn.h: New file.
60125
60126         * modules/unistr/u8-strstr: New file.
60127         * modules/unistr/u16-strstr: New file.
60128         * modules/unistr/u32-strstr: New file.
60129         * lib/unistr/u8-strstr.c: New file.
60130         * lib/unistr/u16-strstr.c: New file.
60131         * lib/unistr/u32-strstr.c: New file.
60132         * lib/unistr/u-strstr.h: New file.
60133
60134         * modules/unistr/u8-strtok: New file.
60135         * modules/unistr/u16-strtok: New file.
60136         * modules/unistr/u32-strtok: New file.
60137         * lib/unistr/u8-strtok.c: New file.
60138         * lib/unistr/u16-strtok.c: New file.
60139         * lib/unistr/u32-strtok.c: New file.
60140         * lib/unistr/u-strtok.h: New file.
60141
60142         * modules/unistr/u8-uctomb: New file.
60143         * modules/unistr/u16-uctomb: New file.
60144         * modules/unistr/u32-uctomb: New file.
60145         * lib/unistr/u8-uctomb.c: New file.
60146         * lib/unistr/u16-uctomb.c: New file.
60147         * lib/unistr/u32-uctomb.c: New file.
60148
60149         * MODULES.html.sh (Unicode string functions): Add the new modules.
60150
60151 2007-01-08  Bruno Haible  <bruno@clisp.org>
60152
60153         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
60154         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
60155         subdirectories.
60156
60157 2007-01-08  Karl Berry  <karl@gnu.org>
60158
60159         * doc/error.texi: mention that main() fns must set program_name
60160         when progname is used.
60161
60162 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
60163
60164         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
60165         WCTYPE_H is empty, for the benefit of builds from non-distclean
60166         directories.  Problem reported by Eric Blake in
60167         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
60168
60169 2007-01-08  Bruno Haible  <bruno@clisp.org>
60170
60171         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
60172         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
60173         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
60174         PROVIDE_CANONICALIZE_FILENAME_MODE.
60175         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
60176
60177 2007-01-08  Bruno Haible  <bruno@clisp.org>
60178
60179         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
60180         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
60181         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
60182         * lib/fts.c: Likewise.
60183         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
60184
60185 2006-12-25  Bruno Haible  <bruno@clisp.org>
60186
60187         * modules/utf8-ucs4-safe: New file.
60188         * lib/utf8-ucs4-safe.h: New file.
60189         * lib/unistr/utf8-ucs4-safe.c: New file.
60190
60191         * modules/utf16-ucs4-safe: New file.
60192         * lib/utf16-ucs4-safe.h: New file.
60193         * lib/unistr/utf16-ucs4-safe.c: New file.
60194
60195         * MODULES.html.sh (Unicode string functions): Add the new modules.
60196
60197 2007-01-08  Bruno Haible  <bruno@clisp.org>
60198
60199         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
60200         (Depends-on): Add unitypes.
60201         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
60202         (u8_mbtouc_aux): Move out to separate file.
60203         (u8_mbtouc): Use ucs4_t, uint8_t types.
60204         * lib/unistr/utf8-ucs4.c: New file.
60205
60206         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
60207         (Depends-on): Add unitypes.
60208         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
60209         (u16_mbtouc_aux): Move out to separate file.
60210         (u16_mbtouc): Use ucs4_t, uint16_t types.
60211         * lib/unistr/utf16-ucs4.c: New file.
60212
60213         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
60214         (Depends-on): Add unitypes.
60215         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
60216         (u8_uctomb_aux): Move out to separate file.
60217         (u8_uctomb): Use ucs4_t, uint8_t types.
60218         * lib/unistr/ucs4-utf8.c: New file.
60219
60220         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
60221         (Depends-on): Add unitypes.
60222         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
60223         (u16_uctomb_aux): Move out to separate file.
60224         (u16_uctomb): Use ucs4_t, uint16_t types.
60225         * lib/unistr/ucs4-utf16.c: New file.
60226
60227 2006-12-25  Bruno Haible  <bruno@clisp.org>
60228
60229         * modules/unitypes: New file.
60230         * lib/unitypes.h: New file.
60231         * MODULES.html.sh (func_all_modules): New section "Unicode string
60232         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
60233         this section. Add unitypes.
60234
60235 2007-01-08  Bruno Haible  <bruno@clisp.org>
60236
60237         Avoid variable names that conflict with those from libtool.
60238         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
60239         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
60240         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
60241         library_names_spec to acl_library_names_spec, hardcode_* to
60242         acl_hardcode_*.
60243         Reported by Ralf Wildenhues.
60244
60245 2007-01-08  Bruno Haible  <bruno@clisp.org>
60246
60247         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
60248         definition.
60249         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
60250         definition.
60251         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
60252         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
60253         definition.
60254         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
60255         definition.
60256         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
60257         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
60258         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
60259         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
60260         definition.
60261         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
60262         definition.
60263         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
60264         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
60265         GC_USE_<algorithm>.
60266         * lib/gc-libgcrypt.c: Likewise.
60267         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
60268         * modules/gc-arctwo (configure.ac): Likewise.
60269         * modules/gc-des (configure.ac): Likewise.
60270         * modules/gc-hmac-md5 (configure.ac): Likewise.
60271         * modules/gc-hmac-sha1 (configure.ac): Likewise.
60272         * modules/gc-md2 (configure.ac): Likewise.
60273         * modules/gc-md4 (configure.ac): Likewise.
60274         * modules/gc-md5 (configure.ac): Likewise.
60275         * modules/gc-random (configure.ac): Likewise.
60276         * modules/gc-rijndael (configure.ac): Likewise.
60277         * modules/gc-sha1 (configure.ac): Likewise.
60278
60279 2007-01-08  Bruno Haible  <bruno@clisp.org>
60280
60281         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
60282         macro definition.
60283         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
60284         definition.
60285         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
60286         definition.
60287         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
60288         * modules/fcntl-safer (configure.ac): Likewise.
60289         * modules/fopen-safer (configure.ac): Likewise.
60290         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
60291         GNULIB_FWRITEERROR macro definition.
60292
60293 2007-01-08  Bruno Haible  <bruno@clisp.org>
60294
60295         * m4/gnulib-common.m4: New file.
60296         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
60297         (func_get_filelist): Add m4/gnulib-common.m4.
60298
60299 2007-01-08  Bruno Haible  <bruno@clisp.org>
60300
60301         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
60302         command.
60303
60304 2007-01-08  Jim Meyering  <jim@meyering.net>
60305
60306         Use a more robust test for a "can't happen" condition.
60307         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
60308         narrowed the st_size value.  Presuming the "can't happen" condition
60309         is true, that narrowing could conceivably convert an invalid st_size
60310         value into a valid one.  Instead, use a change based on Matthew
60311         Woehlke's original patch.
60312
60313         Slight readability improvement: use an assert-like macro
60314         in place of literal "abort ()" uses.
60315         * lib/fts.c (fts_assert): Define.
60316         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
60317         Use this macro instead of a bare 'abort'.
60318
60319 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
60320
60321         Don't worry about using IRIX 5.3's wctype.h broken definitions;
60322         simply work around them.
60323         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
60324         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
60325         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
60326         declaring.
60327         Don't bother to define as macros, since the standard doesn't require it.
60328         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
60329         longer worry about IRIX 5.3.
60330         (HAVE_WCTYPE_CTMP_BUG): Remove.
60331
60332 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
60333
60334         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
60335         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
60336         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
60337         Problems reported by Georg Schwarz for IRIX 5.3.
60338
60339         * gnulib-tool (autoconf_minversion): Take the maximum version number
60340         found, not the minimum.  Problem reported by James Youngman.
60341
60342 2007-01-03  Karl Berry  <karl@gnu.org>
60343
60344         * doc/error.texi: new file, explaining interaction with progname.
60345         * doc/gnulib.texi: include it.  Update copyright.
60346
60347 2007-01-03  Simon Josefsson  <simon@josefsson.org>
60348
60349         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
60350         AC_CANONICAL_HOST, to improve autobuild outputs.
60351
60352 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
60353             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
60354
60355         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
60356         sockets, server sockets, and other file descriptors.  Count errors
60357         to compute the return value.  Reorder the code a bit to be easier
60358         to follow.  Don't set event bits that were not requested (except
60359         POLLERR and POLLHUP).
60360
60361 2007-01-01  Bruno Haible  <bruno@clisp.org>
60362
60363         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
60364
60365 2007-01-03  Jim Meyering  <jim@meyering.net>
60366
60367         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
60368
60369 2007-01-02  Bruno Haible  <bruno@clisp.org>
60370
60371         * modules/settime (Include): Require timespec.h.
60372         * modules/nanosleep (Include): Likewise.
60373
60374 2007-01-01  Bruno Haible  <bruno@clisp.org>
60375
60376         * gnulib-tool (func_emit_copyright_notice): Bump year.
60377         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
60378
60379 2007-01-01  Bruno Haible  <bruno@clisp.org>
60380
60381         Improve support for OpenBSD.
60382         * build-aux/config.rpath (libname_spec): Export.
60383         (library_names_spec): New variable. Export.
60384         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
60385         library_names_spec from the config.rpath output. Locate shared library
60386         through the name pattern in library_names_spec.
60387
60388 2007-01-01  Eric Blake  <ebb9@byu.net>
60389
60390         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
60391
60392 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
60393
60394         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
60395         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
60396         assume the C locale, and avoid an "eval" that could cause trouble.
60397         Problem with SORT reported by Bob Proulx.
60398
60399         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
60400         Define.  Trivial patch from Henning Nielsen Lund, originally
60401         sent to bug-grep@gnu.org today.
60402
60403 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
60404
60405         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
60406         struct stat.  Problem reported by Henning Nielsen Lund.
60407         * lib/acl.c: Include acl.h first, to check interface.  Don't
60408         bother to include sys/types.h and sys/stat.h again.
60409
60410 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
60411
60412         Import the following change from libc; problem reported by
60413         Sven Verdoolaege.
60414
60415         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
60416
60417         [BZ #1373]
60418         * lib/argp.h: Remove __NTH for __argp_usage inline function.
60419
60420 2006-12-28  Jim Meyering  <jim@meyering.net>
60421
60422         * build-aux/announce-gen: Do not assume that the package
60423         builds any of tar.gz, tar.bz2, and .xdelta files.
60424         Suggestion from Simon Josefsson.
60425
60426 2006-12-28  Simon Josefsson  <simon@josefsson.org>
60427
60428         * modules/announce-gen: New file.
60429
60430 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
60431
60432         * lib/mbchar.h: Just include <wctype.h>; the wctype module
60433         handles its gotchas now.
60434         * lib/mbswidth.c: Likewise.
60435         * lib/wcwidth.h: Likewise.
60436         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
60437         and iswcntrl; the wctype module does this stuff now.
60438         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
60439         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
60440         * modules/mbchar (Depends-on): Add wctype.
60441         * modules/mbswidth (Depends-on): Likewise.
60442         * modules/wcwidth (Depends-on): Likewise.
60443
60444 2006-12-27  Eric Blake  <ebb9@byu.net>
60445
60446         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
60447         module uses more than what <wctype.h> is required to provide.
60448
60449 2006-12-26  Eric Blake  <ebb9@byu.net>
60450
60451         * gnulib-tool (sed_extract_prog): Avoid space-tab.
60452
60453 2006-12-26  Eric Blake  <ebb9@byu.net>
60454
60455         * modules/absolute-header: New module.
60456         * modules/fcntl (Depends-on): Depend on it.
60457         * modules/inttypes (Depends-on): Likewise.
60458         * modules/stdint (Depends-on): Likewise.
60459         * modules/sys_stat (Depends-on): Likewise.
60460         * modules/wctype (Depends-on): Likewise.
60461         * MODULES.html.sh (Support for building libraries and
60462         executables): Document it.
60463
60464 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
60465
60466         * gnulib-tool (SED): Remove, undoing previous change.
60467         The problem was that it broke coreutils on Solaris, because
60468         "sed --posix" leaked into a makefile.
60469         (sed): New alias, if 'alias' and GNU sed.
60470
60471 2006-12-24  Jim Meyering  <jim@meyering.net>
60472
60473         Work around an fchownat bug in glibc-2.4:
60474         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
60475         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
60476         in spite of the -P option.
60477         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
60478         New macros.
60479         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
60480         * modules/openat (Files): Add lib/fchownat.c.
60481         * lib/openat.c (fchownat): Don't define here.  Move to...
60482         * lib/fchownat.c: ...this new file.
60483
60484 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
60485
60486         Fix bug reported by Bruno Haible in
60487         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
60488         where quotearg.c didn't compile on Mac OS X 10.2 because it
60489         lacks <wchar.h> and wint_t.
60490         * lib/wctype_.h (__wctype_wint_t): New type.
60491         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
60492         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
60493         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
60494         Arg is now of type __wctype_wint_t, not wint_t.
60495         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
60496         substitute HAVE_WINT_T.
60497         * modules/wctype (Files): Add m4/wint_t.m4.
60498         (wctype.h): Substitute HAVE_WINT_T.
60499
60500 2006-12-23  Bruno Haible  <bruno@clisp.org>
60501
60502         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
60503
60504 2006-12-23  Bruno Haible  <bruno@clisp.org>
60505
60506         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
60507         S_ISLNK.
60508         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
60509         mingw.
60510
60511 2006-12-22  Bruno Haible  <bruno@clisp.org>
60512
60513         * lib/copy-file.c: Include acl.h.
60514         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
60515         Close the file descriptors only after being done with copy_acl.
60516         * modules/copy-file (Depends-on): Add acl.
60517
60518 2006-12-22  Bruno Haible  <bruno@clisp.org>
60519
60520         * gnulib-tool (SED): New variable.
60521         Use $SED instead of sed everywhere.
60522
60523 2006-12-22  Bruno Haible  <bruno@clisp.org>
60524
60525         * modules/no-c++: New file.
60526         * m4/no-c++.m4: New file.
60527         * MODULES.html.sh (Support for building libraries and executables):
60528         Add no-c++.
60529
60530 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
60531
60532         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
60533         Include <limits.h>, and use its INT_MAX to rewrite the
60534         j loop so that it does not overflow 'int'.  Problem reported by
60535         Ralf Wildenhues in
60536         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
60537         Play it safe by shifting left by 1 rather than multiplying by 2,
60538         as GCC is less likely to optimize this away when the value
60539         is signed (when it assumes overflow leads to undefined behavior).
60540         Also, don't assume time_t uses two's complement.
60541
60542 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
60543
60544         * MODULES.html.sh: New module wctype.
60545         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
60546         * lib/fnmatch.c: Don't bother to include <wchar.h> before
60547         <wctype.h>, since the new wctype module should fix this.
60548         * lib/quotearg.c: Include <wctype.h> unconditionally, since
60549         the wctype module should arrange for it.
60550         * lib/regex_internal.h: Likewise.
60551         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
60552         since the wctype module should handle this now.
60553         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
60554         * modules/fnmatch (Depends-on): Add wctype.
60555         * modules/quotearg (Depends-on): Likewise.
60556         * modules/regex (Depends-on): Likewise.
60557
60558 2006-12-19  Bruno Haible  <bruno@clisp.org>
60559
60560         * lib/strdup.h [C++]: Wrap definitions in extern "C".
60561         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
60562
60563 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60564
60565         * modules/savewd (Depends-on): Fix dependency on fcntl.
60566
60567 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
60568
60569         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
60570         conforms to C99, rather than relying on the user's environment
60571         setting of STDINT_H.
60572
60573 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
60574         and Eric Blake  <ebb9@byu.net>
60575
60576         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
60577         This is more consistent with the other defines here.
60578         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
60579         Port to z/OS.  Problem reported by Paul Gilmartin.
60580         Change local vars to use gl_ prefix rather than ac_.
60581         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
60582         with other defines.
60583         * modules/double-slash-root: New module.
60584         * modules/dirname (Files): Remove m4/double-slash-root.m4.
60585         (Depends-on): Add double-slash-root.
60586         * MODULES.html.sh (File system functions): Mention new module.
60587
60588 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
60589
60590         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
60591         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
60592         This is for the benefit of gzip, which doesn't do i18n.
60593
60594 2006-12-12  Jim Meyering  <jim@meyering.net>
60595
60596         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
60597         Reported by Andreas Schwab <schwab@suse.de>.
60598
60599 2006-12-12  Bruno Haible  <bruno@clisp.org>
60600
60601         Merge these changes.
60602         2006-09-05  Bruno Haible  <bruno@clisp.org>
60603         * lib/iconvme.c (iconv_string): No need to save and restore errno when
60604         iconv_alloc succeeded.
60605         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
60606         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
60607         test for " && dest " at the end - dest is always != NULL there. Call
60608         iconv with 4xNULL arguments initially, to reset the state. Call iconv
60609         with 2xNULL arguments, also to flush the state storage. Handle the
60610         IRIX iconv behaviour. Realloc the final result, to throw away unused
60611         memory.
60612
60613 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
60614
60615         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
60616         and fchmodat unconditionally, since glibc 2.4 has them.
60617         Problem reported by Arkadiusz Miskiewicz.
60618
60619 2006-12-10  Bruno Haible  <bruno@clisp.org>
60620
60621         * gnulib-tool (func_import): Show the include files only for those
60622         modules that are copied and specified.
60623         Reported by Karl Berry.
60624
60625 2006-12-08  Jim Meyering  <jim@meyering.net>
60626
60627         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
60628         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
60629
60630         * build-aux/announce-gen: Add two new options, both optional:
60631         --bootstrap-tools=TOOL_LIST
60632               a comma-separated list of tools, e.g.,
60633               autoconf,automake,bison,gnulib
60634         --gnulib-snapshot-date=DATE
60635               if gnulib is in the bootstrap tool list,
60636               then report this as the snapshot date.
60637               If not specified, use the current date/time.
60638               If you specify a date here, be sure it's UTC.
60639
60640 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60641
60642         * tests/test-argp-2.sh: Fix test to match actual output.
60643         (func_compare): Fix sed script to be portable.
60644
60645 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
60646
60647         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
60648         workaround for this case.  It is not autoconfigured now; offhand
60649         it's hard to see how to autoconfigure it.
60650
60651 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
60652
60653         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
60654         a directory that is about to be chowned.  Such a directory's
60655         initial file permissions should permit the owner only and this
60656         should not be changed until after the chown, since the group and
60657         other bits would be incorrect if they granted permission before
60658         the chown.
60659
60660         Fix porting problem for iswctype reported by Georg Schwarz in:
60661         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
60662         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
60663         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
60664         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
60665         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
60666
60667 2006-12-03  Jim Meyering  <jim@meyering.net>
60668
60669         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
60670         p->fts_statp may not yet be defined.
60671         (fts_read): Instead, set it in the caller, once p->fts_statp is
60672         sure to be defined, and corresponds to a top-level directory.
60673         This bug made du -x fail.  Here's the coreutils test case:
60674         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
60675         Reported by Mike Frysinger.
60676
60677 2006-12-01  Jim Meyering  <jim@meyering.net>
60678
60679         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
60680         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
60681         Reported by Simon Josefsson.
60682
60683 2006-11-30  Jim Meyering  <jim@meyering.net>
60684
60685         * m4/warning.m4: Use the all-permissive copyright notice
60686         recommended by RMS (rather than LGPL).
60687         * m4/vararrays.m4: Likewise.
60688         * m4/flexmember.m4: Likewise.
60689
60690 2006-11-29  Bruno Haible  <bruno@clisp.org>
60691
60692         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
60693         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
60694         using +=.
60695         Reported by Simon Josefsson <simon@josefsson.org>.
60696
60697 2006-11-28  James Youngman <jay@gnu.org>
60698
60699         * README: Advise users that they might find the bug-gnulib@gnu.org
60700         and autotools-announce@gnu.org mailing lists useful.
60701
60702 2006-11-28  Bruno Haible  <bruno@clisp.org>
60703
60704         * m4/ptrdiff_max.m4: Remove file.
60705
60706 2006-11-21  Bruno Haible  <bruno@clisp.org>
60707
60708         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
60709         _AC_COMPUTE_INT.
60710         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
60711         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
60712         _AC_COMPUTE_INT.
60713         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
60714         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
60715         _AC_COMPUTE_INT.
60716         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
60717
60718 2006-11-28  Jim Meyering  <jim@meyering.net>
60719
60720         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
60721         warning from "gcc -Wshadow" about shadowing the builtin.
60722
60723 2006-11-27  Bruno Haible  <bruno@clisp.org>
60724
60725         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
60726         _AC_COMPUTE_INT.
60727         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
60728
60729 2006-11-27  Bruno Haible  <bruno@clisp.org>
60730             Paul Eggert  <eggert@cs.ucla.edu>
60731
60732         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
60733
60734 2006-11-26  Bruno Haible  <bruno@clisp.org>
60735
60736         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
60737         noinst_LTLIBRARIES.
60738
60739 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
60740             Bruno Haible  <bruno@clisp.org>
60741
60742         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
60743         if compiling with "gcc -ansi".
60744
60745 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
60746
60747         Fix some incompatibilities with gcc -ansi -pedantic.
60748         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
60749         if compiling pedantically with GCC, unless it's C99 or later.
60750         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
60751         it mishandles gcc -ansi -pedantic as well.
60752         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
60753         if gcc -pedantic.
60754         * lib/regexec.c (check_node_accept_bytes): Don't use auto
60755         initializers for struct if -pedantic, unless it's C99 or later.
60756
60757 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
60758
60759         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
60760         Don't close an fd more than once. Identical atimes indicate
60761         success, not failure.
60762
60763 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
60764
60765         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
60766
60767 2006-11-23  Jim Meyering  <jim@meyering.net>
60768
60769         * build-aux/announce-gen: New file.  From coreutils.
60770
60771 2006-11-22  Jim Meyering  <jim@meyering.net>
60772
60773         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
60774         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
60775         (fts_read): Use a temporary to narrow the overused st_size member
60776         before using it in a switch statement.  Reported by Matthew Woehlke.
60777
60778         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
60779         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
60780
60781 2006-11-20  Bruno Haible  <bruno@clisp.org>
60782
60783         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
60784         changequote instead of pairs of brackets.
60785         Reported by Andreas Schwab <schwab@suse.de>.
60786
60787 2006-11-21  Jim Meyering  <jim@meyering.net>
60788
60789         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
60790         so as to remain compatible with older compilers.
60791         Patch from Michael Deutschmann.
60792
60793 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
60794
60795         * MODULES.html.sh (File system functions): Add openat.
60796
60797         * lib/openat.h (rpl_fstatat): New macro, if
60798         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
60799         (fstatat): Define to rpl_fstatat under the same conditions,
60800         unless COMPILING_FSTATAT.
60801         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
60802         seems to have the bug.
60803         * lib/fstatat.c: New file.
60804         * modules/openat (Files): Add it.
60805
60806 2006-11-20  Bruno Haible  <bruno@clisp.org>
60807
60808         * Makefile: New file.
60809
60810 2006-11-20  Jim Meyering  <jim@meyering.net>
60811
60812         The beginnings of syntax-related checks for gnulib.
60813         * lib/Makefile: New file.
60814         * lib/t-idcache: New script.  Ensure that the two halves of
60815         idcache.c stay in sync.
60816
60817         * lib/idcache.c: Adjust comments in user- and group- portions to
60818         be more accurate, and to be consistent with one another.
60819
60820 2006-11-20  Jim Meyering  <jim@meyering.net>
60821
60822         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
60823         continue using the flexible array member (thus, this module performs
60824         half as many malloc calls), with the addition that...
60825         (getgroup, getuser): Consistently record a non-match via an empty
60826         "name" string, and map an empty string match to a NULL return value.
60827         * modules/idcache (Depends-on): Re-add flexmember.
60828
60829         * lib/idcache.c (getuser): Remove all uses of the register keyword.
60830         (getuidbyname, getgroup, getgidbyname): Likewise.
60831
60832         Use cleaner syntax: NULL rather than 0.
60833         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
60834
60835 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
60836
60837         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
60838         It mishandled the case where the group was missing.
60839         Problem reported by Greg Schafer.
60840         * modules/idcache: Likewise.
60841
60842 2006-11-18  Jim Meyering  <jim@meyering.net>
60843
60844         * check-module (%exempt_header): Add exception for some
60845         conditionally-included headers.
60846
60847         * modules/i-ring (Depends-on): Add verify.
60848         (License): Change to LGPL.
60849
60850 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
60851
60852         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
60853         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
60854         and inttostr.h.  Use snprintf rather than uinttostr, so that
60855         LGPLed code doesn't depend on GPLed.
60856
60857 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
60858
60859         * modules/inline (License): Change from GPL to LGPL.
60860
60861 2006-11-17  Jim Meyering  <jim@meyering.net>
60862
60863         * modules/d-type (License): Switch to LGPL.
60864
60865 2006-11-15  Bruno Haible  <bruno@clisp.org>
60866
60867         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
60868
60869 2006-11-15  Eric Blake  <ebb9@byu.net>
60870
60871         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
60872         the module dependency.
60873
60874 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
60875             Bruno Haible  <bruno@clisp.org>
60876
60877         * gnulib-tool (func_create_testdir): Add license consistency check.
60878
60879 2006-11-15  Eric Blake  <ebb9@byu.net>
60880
60881         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
60882         random "(cached)" in configure output.
60883
60884 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60885
60886         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
60887         test for conforming inttypes.h is both announced and cached.
60888
60889         * MODULES.html.sh (seen_modules, seen_files): New variables.
60890         (func_module): Rewrite to use a few less gnulib-tool and sed
60891         invocations.  Avoid a couple of quadratic algorithms for ...
60892         (missed_modules, missed_files): ... these, with ...
60893         (func_append, func_tmpdir): ... these new functions, from
60894         gnulib-tool.  Analogously, install traps for cleanup.
60895
60896         * tests/test-gc.c (main): Remove unused variables.
60897         * tests/test-read-file.c: Include stdlib.h, for 'free'.
60898
60899 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
60900
60901         * modules/inttostr (License): Change to LGPL.
60902
60903 2006-11-14  Eric Blake  <ebb9@byu.net>
60904
60905         * modules/tempname (License): Change to LGPL.
60906
60907 2006-11-14  Eric Blake  <ebb9@byu.net>
60908
60909         * doc/functions.texi (Function Portability): *printf functions on
60910         Cygwin now understand all POSIX size specifiers.
60911
60912 2006-11-14  Bruno Haible  <bruno@clisp.org>
60913
60914         * modules/c-ctype (License): Change to LGPL.
60915
60916 2006-11-12  Bruno Haible  <bruno@clisp.org>
60917
60918         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
60919         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
60920         for GNOME libraries, for which the include files are installed in
60921         subdirectories of $prefix/include.
60922
60923 2006-11-12  Bruno Haible  <bruno@clisp.org>
60924
60925         * m4/lib-link.m4: Require at least autoconf-2.54.
60926         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
60927         name to underscores for the --with option.
60928
60929 2006-11-13  Bruno Haible  <bruno@clisp.org>
60930
60931         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
60932         the tests directory.
60933         Reported by Ralf Wildenhues.
60934
60935 2006-11-13  Bruno Haible  <bruno@clisp.org>
60936
60937         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
60938         (func_emit_initmacro_end): Undo the override here.
60939         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
60940         Works around the famous automake error in coreutils.
60941
60942 2006-11-13  Eric Blake  <ebb9@byu.net>
60943
60944         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
60945         element, not its node.
60946
60947 2006-11-12  Bruno Haible  <bruno@clisp.org>
60948
60949         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
60950         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
60951
60952 2006-11-12  Bruno Haible  <bruno@clisp.org>
60953
60954         * gnulib-tool: New option --local-symlink.
60955         (func_usage): Document it.
60956         (lsymbolic): New variable.
60957         (func_import, func_create_testdir): If --symlink was not specified,
60958         test whether --local-symlink was specified and the file comes from
60959         the local_gnulib_dir.
60960
60961 2006-11-12  Bruno Haible  <bruno@clisp.org>
60962
60963         * gnulib-tool (func_ln): New function.
60964         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
60965
60966 2006-11-12  Bruno Haible  <bruno@clisp.org>
60967
60968         Finish support for source files in subdirectories.
60969         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
60970         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
60971         AUTOMAKE_OPTIONS.
60972         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
60973
60974 2006-11-12  Bruno Haible  <bruno@clisp.org>
60975
60976         * gnulib-tool (func_get_automake_snippet): Synthesize also an
60977         EXTRA_lib_SOURCES augmentation.
60978         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
60979
60980 2006-11-12  Jim Meyering  <jim@meyering.net>
60981
60982         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
60983         file descriptors.  This also averts a failure on systems with
60984         native openat support when a traversed directory lacks "x" access.
60985         * lib/fts_.h: Include "i-ring.h"
60986         (struct FTS) [fts_fd_ring]: New member.
60987         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
60988         (FCHDIR): Add parentheses.
60989         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
60990         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
60991         When descending, rather than simply closing the previous
60992         fts_cwd_fd value, push that file descriptor onto the ring.
60993         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
60994         (fts_open): Initialize the new fd_ring member.
60995         (fts_close): Clear the ring.
60996         (fts_safe_changedir): When possible, use our new fd_ring to skip
60997         the diropen and fstat and dev/ino comparison that would normally
60998         accompany a virtual `chdir ("..")'.
60999
61000         * modules/fts (Depends-on): Add i-ring.
61001         * modules/i-ring: New module.
61002         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
61003         * m4/i-ring.m4: New file.
61004
61005 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61006
61007         * gnulib-tool (func_create_testdir): Fix replacement of
61008         `build-aux' in configure.ac.  Run autotools in gltests
61009         subdirectory.
61010         (func_create_testdir, func_create_megatestdir, test): There is
61011         no need for '--force' in most autotool invocations in a new
61012         tree.  Actually fail the whole test if any of the tools, or the
61013         configure or make stages fail.
61014
61015         Sync from Automake.
61016         * build-aux/gnupload: Revert last change.  Add pointer to upload
61017         instructions of the GNU Maintenance Instructions.
61018         Suggestion by Karl Berry.
61019
61020 2006-11-10  Jim Meyering  <jim@meyering.net>
61021
61022         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
61023
61024 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
61025
61026         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
61027         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
61028         (bind_textdomain_codeset) [! ENABLE_NLS]:
61029         Evaluate all the arguments.  That way, callers get compatible behavior
61030         if the arguments have side effects.  Also, it avoids some GCC
61031         diagnostics in some cases; Joel E. Denny reported problems when Bison
61032         was configured with --enable-gcc-warnigs.
61033
61034 2006-11-10  Jim Meyering  <jim@meyering.net>
61035
61036         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
61037         relevant options in CFLAGS (like -O, -fno-inline) are taken into
61038         account.
61039
61040 2006-11-10  Jim Meyering  <jim@meyering.net>
61041
61042         * modules/inline: New file/module.
61043         * modules/xalloc (Files): Remove m4/inline.m4.
61044         (Depends-on): Add inline, instead.
61045         * modules/oset: Likewise.
61046         * modules/list: Likewise.
61047
61048 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
61049
61050         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
61051         Problem reported by Matthew Woehlke.
61052
61053 2006-11-09  Bruno Haible  <bruno@clisp.org>
61054
61055         * lib/tempname.c (gen_tempname): Remove variant that invokes
61056         __gen_tempname.
61057         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
61058         __gen_tempname.
61059
61060 2006-11-08  Bruno Haible  <bruno@clisp.org>
61061
61062         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
61063         to 'yes' instead of 'cross-compiling'.
61064
61065 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
61066
61067         * lib/quotearg.h (quotearg_free): New decl.
61068         * lib/quotearg.c (quotearg_free): New function.
61069         (slot0, nslots, slotvec0, slotvec):
61070         Now file-scope so that quotearg_free can get at them.
61071
61072 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61073
61074         Sync from Automake.
61075         * build-aux/gnupload: Add missing 'gnu' to example URL.
61076         Report by Karl Berry.
61077
61078 2006-11-08  Bruno Haible  <bruno@clisp.org>
61079
61080         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
61081         Suggested by Paul Eggert.
61082
61083 2006-11-08  Jim Meyering  <jim@meyering.net>
61084
61085         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
61086         It's already included if !_LIBC.
61087         (fts_safe_changedir): Add a comment.
61088
61089 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
61090
61091         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
61092         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
61093         Matthew Woehlke.
61094
61095         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
61096         definitions up, to avoid colliding with change below.
61097         (static_inline) [HAVE_INLINE]: New macro.
61098         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
61099         Provide extern decls when !HAVE_INLINE.  Do not define unless
61100         static_inline is defined, either by us or by xmalloc.c.  Use
61101         static_inline rather than static inline.
61102         (XCALLOC): Optimize sizeof(T) = 1 case.
61103         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
61104
61105 2006-11-07  Bruno Haible  <bruno@clisp.org>
61106
61107         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
61108         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
61109         AC_C_INLINE.
61110         * modules/xalloc (Files): Add m4/inline.m4.
61111
61112 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61113
61114         * README: Fix typo.
61115         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
61116         (Miscellanous Notes): ...from this.
61117
61118 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
61119
61120         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
61121         Mention that offsetof should be used instead of sizeof.
61122         From Bruno Haible.
61123
61124 2006-11-07  Bruno Haible  <bruno@clisp.org>
61125
61126         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
61127
61128 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
61129
61130         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
61131         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
61132         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
61133         (gl_tree_add_before, gl_tree_add_after):
61134         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
61135         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
61136         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
61137         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
61138         (gl_linked_add_after, gl_linked_add_at): Likewise.
61139         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
61140         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
61141         (gl_tree_add_before, gl_tree_add_after): Likewise.
61142         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
61143         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
61144         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
61145
61146 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61147
61148         * lib/gl_oset.h: Use C comment style, not C++ comment style.
61149
61150 2006-11-06  Bruno Haible  <bruno@clisp.org>
61151
61152         * m4/inline.m4: New file.
61153         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
61154         * modules/list (Files): Add m4/inline.m4.
61155         * modules/oset (Files): Likewise.
61156
61157 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
61158
61159         * lib/idcache.c: Include <stddef.h>, for offsetof.
61160         (struct userid.name): Change from char * to a flexible array member.
61161         All uses changed.
61162         * modules/idcache (Depends-on): Add flexmember.
61163
61164         * MODULES.html.sh (Core language properties): New module flexmember.
61165         * modules/flexmember, m4/flexmember.m4: New files.
61166
61167         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
61168         inline functions that are identical with the old xnmalloc_inline,
61169         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
61170         that we can avoid some unnecessary integer multiplications and
61171         divisions in the common case where the element size is known at
61172         compile time.
61173         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
61174         needed.
61175         (xnboundedmalloc): Remove.
61176         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
61177         arguments, for consistency with rest of this header.
61178         (xcharalloc): Rewrite using XNMALLOC.
61179         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
61180         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
61181         versions have been moved to lib/xalloc.h and renamed to be the
61182         non-*_inline versions.
61183         (xmalloc, xrealloc): Implement without reference to the xnmalloc
61184         and xnrealloc functions, since those functions are now inline and
61185         now call us.
61186         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
61187         renaming described above.
61188         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
61189         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
61190         captures the dependency in AC_C_INLINE.
61191
61192         New module canonicalize-lgpl, proposed by Charles Wilson in
61193         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
61194         with a few small changes afterwards.
61195         * MODULES.html.sh (File system functions): New module
61196         canonicalize-lgpl.
61197         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
61198         and canonicalize_file_name.
61199         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
61200         * modules/canonicalize-lgpl: New files.
61201
61202 2006-11-05  Bruno Haible  <bruno@clisp.org>
61203
61204         * gnulib-tool (func_import, func_create_testdir): Create directories
61205         also for files in subdirectories of lib/.
61206
61207 2006-11-05  Bruno Haible  <bruno@clisp.org>
61208
61209         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
61210         ANSI C compliant.
61211
61212 2006-11-03  Bruno Haible  <bruno@clisp.org>
61213
61214         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
61215         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
61216         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
61217         (xnboundedmalloc): New inline function.
61218         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
61219         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
61220         xmalloc.
61221         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
61222         xmalloc.
61223         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
61224         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
61225         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
61226         xmalloc.
61227         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
61228         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
61229         xmalloc.
61230         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
61231         gl_tree_add_after): Use XMALLOC instead of xmalloc.
61232         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
61233         xmalloc.
61234         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
61235         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
61236         gl_tree_add_after): Use XMALLOC instead of xmalloc.
61237         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
61238         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
61239         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
61240         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
61241
61242 2006-11-03  Bruno Haible  <bruno@clisp.org>
61243
61244         * lib/c-ctype.h [C++]: Define functions without name mangling.
61245         * lib/fwriteerror.h [C++]: Likewise.
61246         * lib/gcd.h [C++]: Likewise.
61247         * lib/linebreak.h [C++]: Likewise.
61248
61249 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
61250
61251         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
61252         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
61253         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
61254         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
61255         Check for functions and headers just once.
61256         Check for declaration of canonicalize_file_name.
61257         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
61258
61259 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
61260
61261         * gnulib-tool (func_import): Fix typo in actioncmd.
61262
61263 2006-11-02  Bruno Haible  <bruno@clisp.org>
61264
61265         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
61266         newline sequence in the Makefile.am snippet as a space, like "make"
61267         does.
61268         Reported by Roger Persson <perrog@gmail.com>.
61269
61270 2006-11-01  Bruno Haible  <bruno@clisp.org>
61271
61272         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
61273         already declared in <string.h>.
61274         * lib/strcase.h (strncasecmp): Don't declare it if yes.
61275
61276 2006-11-01  Bruno Haible  <bruno@clisp.org>
61277
61278         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
61279         * lib/strcase.h: Include <string.h>.
61280         (strcasecmp): Define to rpl_strcasecmp here.
61281
61282 2006-11-01  Bruno Haible  <bruno@clisp.org>
61283
61284         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
61285
61286 2006-11-01  Eric Blake  <ebb9@byu.net>
61287
61288         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
61289
61290         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
61291
61292 2006-10-29  Bruno Haible  <bruno@clisp.org>
61293
61294         Make it compile in C++ mode.
61295         * lib/full-write.c (full_rw): Add a cast.
61296
61297 2006-11-01  Bruno Haible  <bruno@clisp.org>
61298
61299         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
61300         be POSIX compliant.
61301         Reported by Roger Persson <perrog@gmail.com>.
61302
61303 2006-11-01  Eric Blake  <ebb9@byu.net>
61304
61305         * lib/getopt_.h: Fix comments.
61306
61307 2006-10-31  Eric Blake  <ebb9@byu.net>
61308
61309         * modules/tmpdir (Depends-on): Add sys_stat.
61310         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
61311         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
61312         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
61313         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
61314         tempname.
61315
61316 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
61317
61318         Avoid some C++ diagnostics reported by Bruno Haible.
61319         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
61320         xmalloc.
61321         (quotearg_alloc): Use xcharalloc rather than xmalloc.
61322         (struct slotvec): Move to top level.
61323         (quotearg_n_options): Rewrite to avoid xmalloc.
61324         * lib/xalloc.h (xcharalloc): New function.
61325         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
61326         [defined __cplusplus]: Add function template that provides result
61327         type propagation.  This part of the change is from Bruno Haible.
61328
61329 2006-10-29  Bruno Haible  <bruno@clisp.org>
61330
61331         Make it compile in C++ mode.
61332         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
61333         * lib/strnlen1.c (strnlen1): Cast memchr result.
61334         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
61335         * lib/clean-temp.c (string_equals, string_hash): Add casts.
61336         (create_temp_dir): Rename local variable 'template'.
61337         (compile_csharp_using_sscli): Add cast.
61338         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
61339         * lib/findprog.c (find_in_path): Likewise.
61340         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
61341         * lib/wait-process.c (register_slave_subprocess): Likewise.
61342
61343 2006-10-22  Bruno Haible  <bruno@clisp.org>
61344
61345         * modules/tsearch: New file.
61346         * lib/tsearch.h: New file.
61347         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
61348         * m4/tsearch.m4: New file.
61349         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
61350
61351 2006-10-29  Eric Blake  <ebb9@byu.net>
61352
61353         * lib/arcfour.c: Assume config.h.
61354         * lib/arctwo.c: Likewise.
61355         * lib/base64.c: Likewise.
61356         * lib/check-version.c: Likewise.
61357         * lib/crc.c: Likewise.
61358         * lib/des.c: Likewise.
61359         * lib/gc-gnulib.c: Likewise.
61360         * lib/gc-libgcrypt.c: Likewise.
61361         * lib/gc-pbkdf2-sha1.c: Likewise.
61362         * lib/getaddrinfo.c: Likewise.
61363         * lib/getdelim.c: Likewise.
61364         * lib/getline.c: Likewise.
61365         * lib/hmac-md5.c: Likewise.
61366         * lib/hmac-sha1.c: Likewise.
61367         * lib/iconvme.c: Likewise.
61368         * lib/md2.c: Likewise.
61369         * lib/md4.c: Likewise.
61370         * lib/memxor.c: Likewise.
61371         * lib/read-file.c: Likewise.
61372         * lib/readline.c: Likewise.
61373         * lib/rijndael-alg-fst.c: Likewise.
61374         * lib/rijndael-api-fst.c: Likewise.
61375         * lib/xgetdomainname.c: Likewise.
61376
61377 2006-10-28  Eric Blake  <ebb9@byu.net>
61378
61379         * lib/xstrndup.c: Assume config.h.
61380
61381 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
61382
61383         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
61384         stat-macros.h is now for our own macros, whereas stat_h is for
61385         macros in the <sys/stat.h> name space.
61386         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
61387         (STAT_MACROS_H): Remove.
61388         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
61389         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
61390         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
61391         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
61392         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
61393         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
61394         Move these macros to ...
61395         * lib/stat_.h: here.  Don't include stat-macros.h.
61396         * lib/canonicalize.c: Don't include stat-macros.h.
61397         * lib/chown.c: Likewise.
61398         * lib/euidaccess.c: Likewise.
61399         * lib/file-type.c: Likewise.
61400         * lib/filemode.c: Likewise.
61401         * lib/glob.c: Likewise.
61402         * lib/isapipe.c: Likewise.
61403         * lib/lchown.c: Likewise.
61404         * lib/lstat.c: Likewise.
61405         * lib/mkdir-p.c: Likewise.
61406         * lib/rmdir.c: Likewise.
61407         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
61408         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
61409         unless mkdir isn't declared, to speed up 'configure'.
61410         Always create sys/stat.h, since it's unlikely any real sys/stat.h
61411         would define all the S_* symbols.
61412         * modules/canonicalize (Depends-on):
61413         Depend on sys_stat, not stat-macros.
61414         * modules/chown: Likewise.
61415         * modules/euidaccess: Likewise.
61416         * modules/filemode: Likewise.
61417         * modules/file-type: Likewise.
61418         * modules/glob: Likewise.
61419         * modules/isapipe: Likewise.
61420         * modules/lchown: Likewise.
61421         * modules/lstat: Likewise.
61422         * modules/mkancesdirs: Likewise.
61423         * modules/rmdir: Likewise.
61424         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
61425         * modules/modechange: Likewise.
61426         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
61427         (configure.ac): Remove gl_STAT_MACROS.
61428         * modules/sys_stat (Depends-on): Remove stat-macros.
61429
61430 2006-10-27  Bruno Haible  <bruno@clisp.org>
61431
61432         * m4/signed.m4: Remove file.
61433         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
61434         invocation.
61435         * modules/vasnprintf (Files): Remove m4/signed.m4.
61436
61437 2006-10-27  Bruno Haible  <bruno@clisp.org>
61438
61439         Update to GNU gettext 0.16.
61440         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
61441         m4/inttypes-h.m4, m4/signed.m4.
61442         * m4/gettext.m4: Update to GNU gettext 0.16.
61443         * m4/intl.m4: New file, from GNU gettext.
61444         * m4/intldir.m4: New file, from GNU gettext.
61445         * config/srclist.txt: Update
61446
61447 2006-10-27  Eric Blake  <ebb9@byu.net>
61448
61449         * MODULES.html.sh: Document tempname.
61450         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
61451         dependencies.
61452         (Files): Move lib/tempname.c...
61453         * modules/tempname: ...to this new module.
61454         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
61455         (gl_PREREQ_TEMPNAME): Move...
61456         * m4/tempname.m4: ...to this new file.
61457         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
61458         * modules/sys_stat (Depends-on): Add stat-macros.
61459         * lib/stat_.h (includes): Pick up stat macros.
61460         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
61461         if stat macros are broken.
61462         * lib/tempname.c (includes): No need to include "stat-macros.h".
61463         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
61464         (direxists, __path_search) [!_LIBC]: Don't compile these in
61465         gnulib; the tmpdir module covers that.
61466         * lib/tempname.h: New file.
61467
61468 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
61469
61470         * COPYING: Explain how gnulib-tool converts licence headers.
61471         Almost all wording by Eric Blake.
61472
61473 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
61474
61475         * lib/mbchar.h (is_basic_table): Make read-only.
61476         * lib/mbchar.c (is_basic_table): Likewise.
61477         Reported by John Darrington.
61478
61479 2006-10-25  Bruno Haible  <bruno@clisp.org>
61480
61481         * lib/progname.h (set_program_name): Undefine before defining.
61482
61483 2006-10-25  Bruno Haible  <bruno@clisp.org>
61484
61485         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
61486         false for non-gcc C++ compilers.
61487         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
61488
61489 2006-10-24  Bruno Haible  <bruno@clisp.org>
61490
61491         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
61492         iconv implementations like Irix iconv.
61493
61494 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
61495
61496         * modules/vararrays: New file.
61497         * m4/vararrays.m4: New file, taken from diffutils.
61498         * MODULES.html.sh: New module vararrays.
61499
61500 2006-10-24  Karl Berry  <karl@gnu.org>
61501
61502         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
61503         Don't call GNU Unix.
61504
61505 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61506
61507         * users.txt: Add Libtool.
61508
61509         Sync from Libtool:
61510
61511         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
61512
61513         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
61514         to gnulib's policy of including config.h unconditionally.
61515
61516 2006-10-24  Bruno Haible  <bruno@clisp.org>
61517
61518         * modules/wcwidth (Files): Add m4/wint_t.m4.
61519         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
61520         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
61521
61522 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
61523
61524         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
61525         to pacify GCC with some -W flags enabled.  Problem reported by
61526         Bruno Haible.
61527
61528 2006-10-24  Jim Meyering  <jim@meyering.net>
61529
61530         * MODULES.html.sh: Remove uinttostr.  It's not a module.
61531         Reported by Karl Berry.
61532
61533 2006-10-23  Bruno Haible  <bruno@clisp.org>
61534
61535         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
61536
61537 2006-10-24  Bruno Haible  <bruno@clisp.org>
61538
61539         * lib/gl_list.h: Use C comment style, not C++ comment style.
61540
61541 2006-10-23  Eric Blake  <ebb9@byu.net>
61542
61543         * lib/getaddrinfo.c (includes): Add missing include.
61544
61545 2006-10-23  Bruno Haible  <bruno@clisp.org>
61546             Paul Eggert  <eggert@cs.ucla.edu>
61547
61548         Ability to rename obstack_free.
61549         * lib/obstack.h (__obstack_free): New macro. Declare instead of
61550         obstack_free.
61551         (obstack_free): Invoke the __obstack_free macro.
61552         * lib/obstack.c (obstack_free): Use __obstack_free macro.
61553
61554 2006-10-23  Bruno Haible  <bruno@clisp.org>
61555             Paul Eggert  <eggert@cs.ucla.edu>
61556
61557         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
61558         __argc, __argv from the declaration. (They are defined as macros on
61559         mingw.)
61560
61561 2006-10-22  Bruno Haible  <bruno@clisp.org>
61562
61563         * doc/gnulib-intro.texi: New file.
61564         * doc/gnulib.texi: Include it.
61565
61566 2006-10-21  Bruno Haible  <bruno@clisp.org>
61567
61568         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
61569         "Introduction", "Miscellanous Notes", "Particular Modules".
61570
61571 2006-10-21  Bruno Haible  <bruno@clisp.org>
61572
61573         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
61574         Change mostlyclean-local rule to avoid sh syntax error from bash
61575         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
61576
61577 2006-10-23  Jim Meyering  <jim@meyering.net>
61578
61579         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
61580         in place of snprintf.
61581
61582         * modules/inttostr (Files): Add lib/uinttostr.c.
61583         * lib/uinttostr.c (inttostr): New file/function.
61584         * lib/inttostr.h (uinttostr): Declare.
61585         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
61586         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
61587         Add uinttostr.
61588         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
61589
61590 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
61591
61592         * lib/canonicalize.c (ELOOP): Define if not already defined.
61593         Problem reported by Bruno Haible in
61594         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
61595
61596 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
61597
61598         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
61599         Problem reported by Perry Smith and Ville Laurikari.
61600
61601         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
61602         uses.
61603
61604 2006-10-19  Bruno Haible  <bruno@clisp.org>
61605
61606         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
61607         for mingw.
61608
61609 2006-10-19  Bruno Haible  <bruno@clisp.org>
61610
61611         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
61612         Needed for mingw.
61613
61614 2006-10-19  Bruno Haible  <bruno@clisp.org>
61615
61616         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
61617
61618 2006-10-19  Bruno Haible  <bruno@clisp.org>
61619
61620         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
61621         it.
61622
61623 2006-10-19  Bruno Haible  <bruno@clisp.org>
61624
61625         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
61626         invocation.
61627
61628 2006-10-19  Bruno Haible  <bruno@clisp.org>
61629
61630         * gnulib-tool (func_create_testdir): Don't include ftruncate and
61631         mountlist by default.
61632
61633 2006-10-16  Bruno Haible  <bruno@clisp.org>
61634
61635         * lib/c-strstr.c: Include c-strstr.h.
61636
61637 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
61638
61639         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
61640         in a slash.
61641
61642 2006-10-18  Bruno Haible  <bruno@clisp.org>
61643
61644         * lib/lock.h [C++]: Wrap definitions in extern "C".
61645
61646 2006-10-18  Bruno Haible  <bruno@clisp.org>
61647
61648         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
61649         gl_LIBOBJS list.
61650
61651 2006-10-18  Bruno Haible  <bruno@clisp.org>
61652
61653         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
61654
61655 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
61656
61657         * lib/xstrtol.h: Include gettext.h.
61658         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
61659         Problem reported by Eric Blake.
61660         * modules/xstrtol (Depends-on): Add gettext-h.
61661
61662 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
61663
61664         * lib/strftime.c (advance): New macro.
61665         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
61666         incomplete type, so you can't add 0 to it.  Problem and patch
61667         reported by Eelco Dolstra for dietlibc.
61668
61669 2006-10-18  Jim Meyering  <jim@meyering.net>
61670
61671         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
61672         type for a local, and rename it: s/up/user_proc/.
61673
61674 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
61675
61676         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
61677         READ_UTMP_USER_PROCESS.
61678         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
61679
61680 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
61681
61682         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
61683         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
61684
61685 2006-10-17  Eric Blake  <ebb9@byu.net>
61686
61687         * lib/sigprocmask.c (sigprocmask): Fix typo.
61688
61689         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
61690
61691         * modules/clean-temp (Makefile.am): Don't add to make output...
61692         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
61693         config.h.
61694
61695 2006-10-17  Bruno Haible  <bruno@clisp.org>
61696
61697         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
61698         differently if DEFAULT_TEXT_DOMAIN is set.
61699
61700 2006-10-16  Bruno Haible  <bruno@clisp.org>
61701
61702         * lib/clean-temp.c: Include fwriteerror.h.
61703
61704 2006-10-16  Bruno Haible  <bruno@clisp.org>
61705
61706         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
61707
61708 2006-10-16  Bruno Haible  <bruno@clisp.org>
61709
61710         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
61711         * lib/sigprocmask.h: Include <sys/types.h>.
61712         (sigset_t): Use the system's definition if present.
61713
61714 2006-10-17  Eric Blake  <ebb9@byu.net>
61715
61716         * lib/xvasprintf.c (includes): Assume config.h.
61717         * lib/xasprintf.c (includes): Likewise.
61718
61719 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
61720
61721         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
61722         at least as wide as intmax_t.
61723
61724 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
61725
61726         (Imported from Automake.)
61727         * build-aux/gnupload: Update to version 1.1 of directive file.
61728
61729 2006-10-16  Eric Blake  <ebb9@byu.net>
61730
61731         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
61732         match Automake 1.10a.
61733
61734 2006-10-14  Bruno Haible  <bruno@clisp.org>
61735
61736         * modules/sigprocmask: New file.
61737         * lib/sigprocmask.h: New file.
61738         * lib/sigprocmask.c: New file.
61739         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
61740         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
61741         request sigprocmask.o.
61742         (gl_PREREQ_SIGPROCMASK): New macro.
61743         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
61744         (Depends-on): Add sigprocmask.
61745         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
61746         gt_SIGNALBLOCKING. Test for 'raise' only once.
61747         * lib/fatal-signal.c: Include sigprocmask.h.
61748         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
61749         unblock_fatal_signals): Define always.
61750         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
61751         sigprocmask.
61752
61753 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
61754
61755         Sync from Automake.
61756         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
61757         which incorrectly sets the mode of an existing destination
61758         directory.  In some cases the unpatched install-sh could do the
61759         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
61760         system.  We hope this is rare in practice, but it's clearly worth
61761         fixing.  Problem reported by Alex Unleashed in
61762         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
61763         Also, don't bother to check for -m bugs unless we're using -m;
61764         suggested by Stepan Kasal.
61765
61766 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61767
61768         Sync from Automake.
61769         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
61770         `-c' flag, so they appear at the same position as in %FASTDEP%
61771         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
61772         which ignores unknown options only after the first non-option.
61773         Bug report against M4 by Nelson H. F. Beebe.
61774
61775 2006-10-13  Jim Meyering  <jim@meyering.net>
61776
61777         Fix a bug in yesterday's change.
61778         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
61779         p->fts_statp->st_dev would be used uninitialized.
61780         Ensures that we always call fts_stat on the very first entry.
61781         Miklos Szeredi reported that find -xdev stopped working.
61782
61783 2006-10-12  Bruno Haible  <bruno@clisp.org>
61784
61785         * gnulib-tool (func_get_automake_snippet): Append an automatically
61786         computed EXTRA_DIST augmentation.
61787         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
61788         * modules/alloca-opt (Makefile.am): Likewise.
61789         * modules/allocsa (Makefile.am): Likewise.
61790         * modules/arcfour (Makefile.am): Likewise.
61791         * modules/arctwo (Makefile.am): Likewise.
61792         * modules/argmatch (Makefile.am): Likewise.
61793         * modules/argz (Makefile.am): Likewise.
61794         * modules/atexit (Makefile.am): Likewise.
61795         * modules/backupfile (Makefile.am): Likewise.
61796         * modules/byteswap (Makefile.am): Likewise.
61797         * modules/c-strtod (Makefile.am): Likewise.
61798         * modules/c-strtold (Makefile.am): Likewise.
61799         * modules/calloc (Makefile.am): Likewise.
61800         * modules/canon-host (Makefile.am): Likewise.
61801         * modules/canonicalize (Makefile.am): Likewise.
61802         * modules/chdir-long (Makefile.am): Likewise.
61803         * modules/chdir-safer (Makefile.am): Likewise.
61804         * modules/check-version (Makefile.am): Likewise.
61805         * modules/chown (Makefile.am): Likewise.
61806         * modules/cloexec (Makefile.am): Likewise.
61807         * modules/close-stream (Makefile.am): Likewise.
61808         * modules/closeout (Makefile.am): Likewise.
61809         * modules/crc (Makefile.am): Likewise.
61810         * modules/csharpexec (Makefile.am): Likewise.
61811         * modules/cycle-check (Makefile.am): Likewise.
61812         * modules/des (Makefile.am): Likewise.
61813         * modules/dev-ino (Makefile.am): Likewise.
61814         * modules/dirfd (Makefile.am): Likewise.
61815         * modules/dirname (Makefile.am): Likewise.
61816         * modules/dup2 (Makefile.am): Likewise.
61817         * modules/eealloc (Makefile.am): Likewise.
61818         * modules/error (Makefile.am): Likewise.
61819         * modules/euidaccess (Makefile.am): Likewise.
61820         * modules/exclude (Makefile.am): Likewise.
61821         * modules/exitfail (Makefile.am): Likewise.
61822         * modules/fcntl-safer (Makefile.am): Likewise.
61823         * modules/fcntl (Makefile.am): Likewise.
61824         * modules/file-type (Makefile.am): Likewise.
61825         * modules/fileblocks (Makefile.am): Likewise.
61826         * modules/filemode (Makefile.am): Likewise.
61827         * modules/filenamecat (Makefile.am): Likewise.
61828         * modules/fnmatch (Makefile.am): Likewise.
61829         * modules/fopen-safer (Makefile.am): Likewise.
61830         * modules/fpending (Makefile.am): Likewise.
61831         * modules/fprintftime (Makefile.am): Likewise.
61832         * modules/free (Makefile.am): Likewise.
61833         * modules/fsusage (Makefile.am): Likewise.
61834         * modules/ftruncate (Makefile.am): Likewise.
61835         * modules/fts (Makefile.am): Likewise.
61836         * modules/gc-arcfour (Makefile.am): Likewise.
61837         * modules/gc-des (Makefile.am): Likewise.
61838         * modules/gc-hmac-md5 (Makefile.am): Likewise.
61839         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
61840         * modules/gc-md4 (Makefile.am): Likewise.
61841         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
61842         * modules/gc-sha1 (Makefile.am): Likewise.
61843         * modules/gc (Makefile.am): Likewise.
61844         * modules/getaddrinfo (Makefile.am): Likewise.
61845         * modules/getcwd (Makefile.am): Likewise.
61846         * modules/getdelim (Makefile.am): Likewise.
61847         * modules/getdomainname (Makefile.am): Likewise.
61848         * modules/getgroups (Makefile.am): Likewise.
61849         * modules/gethostname (Makefile.am): Likewise.
61850         * modules/gethrxtime (Makefile.am): Likewise.
61851         * modules/getline (Makefile.am): Likewise.
61852         * modules/getloadavg (Makefile.am): Likewise.
61853         * modules/getlogin_r (Makefile.am): Likewise.
61854         * modules/getndelim2 (Makefile.am): Likewise.
61855         * modules/getopt (Makefile.am): Likewise.
61856         * modules/getpagesize (Makefile.am): Likewise.
61857         * modules/getpass-gnu (Makefile.am): Likewise.
61858         * modules/getpass (Makefile.am): Likewise.
61859         * modules/getsubopt (Makefile.am): Likewise.
61860         * modules/gettime (Makefile.am): Likewise.
61861         * modules/gettimeofday (Makefile.am): Likewise.
61862         * modules/getugroups (Makefile.am): Likewise.
61863         * modules/getusershell (Makefile.am): Likewise.
61864         * modules/glob (Makefile.am): Likewise.
61865         * modules/group-member (Makefile.am): Likewise.
61866         * modules/hard-locale (Makefile.am): Likewise.
61867         * modules/hash (Makefile.am): Likewise.
61868         * modules/hmac-md5 (Makefile.am): Likewise.
61869         * modules/hmac-sha1 (Makefile.am): Likewise.
61870         * modules/human (Makefile.am): Likewise.
61871         * modules/idcache (Makefile.am): Likewise.
61872         * modules/imaxabs (Makefile.am): Likewise.
61873         * modules/imaxdiv (Makefile.am): Likewise.
61874         * modules/inet_ntop (Makefile.am): Likewise.
61875         * modules/inet_pton (Makefile.am): Likewise.
61876         * modules/intprops (Makefile.am): Likewise.
61877         * modules/inttostr (Makefile.am): Likewise.
61878         * modules/inttypes (Makefile.am): Likewise.
61879         * modules/isapipe (Makefile.am): Likewise.
61880         * modules/javaversion (Makefile.am): Likewise.
61881         * modules/lchmod (Makefile.am): Likewise.
61882         * modules/lchown (Makefile.am): Likewise.
61883         * modules/localcharset (Makefile.am): Likewise.
61884         * modules/long-options (Makefile.am): Likewise.
61885         * modules/lstat (Makefile.am): Likewise.
61886         * modules/malloc (Makefile.am): Likewise.
61887         * modules/mathl (Makefile.am): Likewise.
61888         * modules/mbchar (Makefile.am): Likewise.
61889         * modules/md2 (Makefile.am): Likewise.
61890         * modules/md4 (Makefile.am): Likewise.
61891         * modules/md5 (Makefile.am): Likewise.
61892         * modules/memcasecmp (Makefile.am): Likewise.
61893         * modules/memchr (Makefile.am): Likewise.
61894         * modules/memcmp (Makefile.am): Likewise.
61895         * modules/memcoll (Makefile.am): Likewise.
61896         * modules/memcpy (Makefile.am): Likewise.
61897         * modules/memmem (Makefile.am): Likewise.
61898         * modules/memmove (Makefile.am): Likewise.
61899         * modules/mempcpy (Makefile.am): Likewise.
61900         * modules/memrchr (Makefile.am): Likewise.
61901         * modules/memset (Makefile.am): Likewise.
61902         * modules/memxor (Makefile.am): Likewise.
61903         * modules/mkancesdirs (Makefile.am): Likewise.
61904         * modules/mkdir-p (Makefile.am): Likewise.
61905         * modules/mkdir (Makefile.am): Likewise.
61906         * modules/mkdtemp (Makefile.am): Likewise.
61907         * modules/mkstemp (Makefile.am): Likewise.
61908         * modules/mktime (Makefile.am): Likewise.
61909         * modules/modechange (Makefile.am): Likewise.
61910         * modules/mountlist (Makefile.am): Likewise.
61911         * modules/nanosleep (Makefile.am): Likewise.
61912         * modules/obstack (Makefile.am): Likewise.
61913         * modules/openat (Makefile.am): Likewise.
61914         * modules/pagealign_alloc (Makefile.am): Likewise.
61915         * modules/pathmax (Makefile.am): Likewise.
61916         * modules/physmem (Makefile.am): Likewise.
61917         * modules/poll (Makefile.am): Likewise.
61918         * modules/posixtm (Makefile.am): Likewise.
61919         * modules/posixver (Makefile.am): Likewise.
61920         * modules/putenv (Makefile.am): Likewise.
61921         * modules/quote (Makefile.am): Likewise.
61922         * modules/quotearg (Makefile.am): Likewise.
61923         * modules/raise (Makefile.am): Likewise.
61924         * modules/read-file (Makefile.am): Likewise.
61925         * modules/readline (Makefile.am): Likewise.
61926         * modules/readlink (Makefile.am): Likewise.
61927         * modules/readtokens (Makefile.am): Likewise.
61928         * modules/readutmp (Makefile.am): Likewise.
61929         * modules/realloc (Makefile.am): Likewise.
61930         * modules/regex (Makefile.am): Likewise.
61931         * modules/rename-dest-slash (Makefile.am): Likewise.
61932         * modules/rename (Makefile.am): Likewise.
61933         * modules/rijndael (Makefile.am): Likewise.
61934         * modules/rmdir (Makefile.am): Likewise.
61935         * modules/rpmatch (Makefile.am): Likewise.
61936         * modules/safe-read (Makefile.am): Likewise.
61937         * modules/safe-write (Makefile.am): Likewise.
61938         * modules/same-inode (Makefile.am): Likewise.
61939         * modules/same (Makefile.am): Likewise.
61940         * modules/save-cwd (Makefile.am): Likewise.
61941         * modules/savedir (Makefile.am): Likewise.
61942         * modules/setenv (Makefile.am): Likewise.
61943         * modules/settime (Makefile.am): Likewise.
61944         * modules/sha1 (Makefile.am): Likewise.
61945         * modules/sig2str (Makefile.am): Likewise.
61946         * modules/snprintf (Makefile.am): Likewise.
61947         * modules/stat-macros (Makefile.am): Likewise.
61948         * modules/stat-time (Makefile.am): Likewise.
61949         * modules/stdbool (Makefile.am): Likewise.
61950         * modules/stdint (Makefile.am): Likewise.
61951         * modules/stdlib-safer (Makefile.am): Likewise.
61952         * modules/stpcpy (Makefile.am): Likewise.
61953         * modules/stpncpy (Makefile.am): Likewise.
61954         * modules/strcase (Makefile.am): Likewise.
61955         * modules/strcasestr (Makefile.am): Likewise.
61956         * modules/strchrnul (Makefile.am): Likewise.
61957         * modules/strcspn (Makefile.am): Likewise.
61958         * modules/strdup (Makefile.am): Likewise.
61959         * modules/strerror (Makefile.am): Likewise.
61960         * modules/strftime (Makefile.am): Likewise.
61961         * modules/strndup (Makefile.am): Likewise.
61962         * modules/strnlen (Makefile.am): Likewise.
61963         * modules/strpbrk (Makefile.am): Likewise.
61964         * modules/strsep (Makefile.am): Likewise.
61965         * modules/strstr (Makefile.am): Likewise.
61966         * modules/strtod (Makefile.am): Likewise.
61967         * modules/strtoimax (Makefile.am): Likewise.
61968         * modules/strtok_r (Makefile.am): Likewise.
61969         * modules/strtol (Makefile.am): Likewise.
61970         * modules/strtoll (Makefile.am): Likewise.
61971         * modules/strtoul (Makefile.am): Likewise.
61972         * modules/strtoull (Makefile.am): Likewise.
61973         * modules/strtoumax (Makefile.am): Likewise.
61974         * modules/strverscmp (Makefile.am): Likewise.
61975         * modules/sys_socket (Makefile.am): Likewise.
61976         * modules/sys_stat (Makefile.am): Likewise.
61977         * modules/sysexits (Makefile.am): Likewise.
61978         * modules/time_r (Makefile.am): Likewise.
61979         * modules/timegm (Makefile.am): Likewise.
61980         * modules/timespec (Makefile.am): Likewise.
61981         * modules/tmpfile-safer (Makefile.am): Likewise.
61982         * modules/trim (Makefile.am): Likewise.
61983         * modules/unistd-safer (Makefile.am): Likewise.
61984         * modules/unlinkdir (Makefile.am): Likewise.
61985         * modules/unlocked-io (Makefile.am): Likewise.
61986         * modules/userspec (Makefile.am): Likewise.
61987         * modules/utime (Makefile.am): Likewise.
61988         * modules/utimecmp (Makefile.am): Likewise.
61989         * modules/utimens (Makefile.am): Likewise.
61990         * modules/vasnprintf (Makefile.am): Likewise.
61991         * modules/vasprintf (Makefile.am): Likewise.
61992         * modules/vsnprintf (Makefile.am): Likewise.
61993         * modules/xalloc (Makefile.am): Likewise.
61994         * modules/xgetcwd (Makefile.am): Likewise.
61995         * modules/xnanosleep (Makefile.am): Likewise.
61996         * modules/xreadlink (Makefile.am): Likewise.
61997         * modules/xstrtod (Makefile.am): Likewise.
61998         * modules/xstrtol (Makefile.am): Likewise.
61999         * modules/xstrtold (Makefile.am): Likewise.
62000         * modules/yesno (Makefile.am): Likewise.
62001         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
62002
62003 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
62004
62005         * modules/error (Makefile.am): Distribute files through
62006         EXTRA_DIST, not lib_SOURCES.
62007
62008 2006-10-12  Eric Blake  <ebb9@byu.net>
62009
62010         * modules/error (Makefile.am): Distribute files in /lib.
62011         * modules/obstack (Makefile.am): Likewise.
62012
62013 2006-10-12  Bruno Haible  <bruno@clisp.org>
62014
62015         * modules/acl (Makefile.am): Distribute all files in lib/ through
62016         EXTRA_DIST.
62017         * modules/arcfour (Makefile.am): Likewise.
62018         * modules/arctwo (Makefile.am): Likewise.
62019         * modules/argmatch (Makefile.am): Likewise.
62020         * modules/argz (Makefile.am): Likewise.
62021         * modules/atexit (Makefile.am): Likewise.
62022         * modules/backupfile (Makefile.am): Likewise.
62023         * modules/c-strtod (Makefile.am): Likewise.
62024         * modules/c-strtold (Makefile.am): Likewise.
62025         * modules/calloc (Makefile.am): Likewise.
62026         * modules/canon-host (Makefile.am): Likewise.
62027         * modules/canonicalize (Makefile.am): Likewise.
62028         * modules/chdir-long (Makefile.am): Likewise.
62029         * modules/chdir-safer (Makefile.am): Likewise.
62030         * modules/check-version (Makefile.am): Likewise.
62031         * modules/chown (Makefile.am): Likewise.
62032         * modules/cloexec (Makefile.am): Likewise.
62033         * modules/close-stream (Makefile.am): Likewise.
62034         * modules/closeout (Makefile.am): Likewise.
62035         * modules/crc (Makefile.am): Likewise.
62036         * modules/cycle-check (Makefile.am): Likewise.
62037         * modules/des (Makefile.am): Likewise.
62038         * modules/dirfd (Makefile.am): Likewise.
62039         * modules/dirname (Makefile.am): Likewise.
62040         * modules/dup2 (Makefile.am): Likewise.
62041         * modules/euidaccess (Makefile.am): Likewise.
62042         * modules/exclude (Makefile.am): Likewise.
62043         * modules/exitfail (Makefile.am): Likewise.
62044         * modules/fcntl-safer (Makefile.am): Likewise.
62045         * modules/file-type (Makefile.am): Likewise.
62046         * modules/fileblocks (Makefile.am): Likewise.
62047         * modules/filemode (Makefile.am): Likewise.
62048         * modules/filenamecat (Makefile.am): Likewise.
62049         * modules/fnmatch (Makefile.am): Likewise.
62050         * modules/fopen-safer (Makefile.am): Likewise.
62051         * modules/fpending (Makefile.am): Likewise.
62052         * modules/fprintftime (Makefile.am): Likewise.
62053         * modules/free (Makefile.am): Likewise.
62054         * modules/fsusage (Makefile.am): Likewise.
62055         * modules/ftruncate (Makefile.am): Likewise.
62056         * modules/fts (Makefile.am): Likewise.
62057         * modules/gc (Makefile.am): Likewise.
62058         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
62059         * modules/getaddrinfo (Makefile.am): Likewise.
62060         * modules/getcwd (Makefile.am): Likewise.
62061         * modules/getdelim (Makefile.am): Likewise.
62062         * modules/getdomainname (Makefile.am): Likewise.
62063         * modules/getgroups (Makefile.am): Likewise.
62064         * modules/gethostname (Makefile.am): Likewise.
62065         * modules/gethrxtime (Makefile.am): Likewise.
62066         * modules/getline (Makefile.am): Likewise.
62067         * modules/getloadavg (Makefile.am): Likewise.
62068         * modules/getlogin_r (Makefile.am): Likewise.
62069         * modules/getopt (Makefile.am): Likewise.
62070         * modules/getpass (Makefile.am): Likewise.
62071         * modules/getpass-gnu (Makefile.am): Likewise.
62072         * modules/getsubopt (Makefile.am): Likewise.
62073         * modules/gettime (Makefile.am): Likewise.
62074         * modules/gettimeofday (Makefile.am): Likewise.
62075         * modules/getugroups (Makefile.am): Likewise.
62076         * modules/getusershell (Makefile.am): Likewise.
62077         * modules/glob (Makefile.am): Likewise.
62078         * modules/group-member (Makefile.am): Likewise.
62079         * modules/hard-locale (Makefile.am): Likewise.
62080         * modules/hash (Makefile.am): Likewise.
62081         * modules/hmac-md5 (Makefile.am): Likewise.
62082         * modules/hmac-sha1 (Makefile.am): Likewise.
62083         * modules/human (Makefile.am): Likewise.
62084         * modules/idcache (Makefile.am): Likewise.
62085         * modules/imaxabs (Makefile.am): Likewise.
62086         * modules/imaxdiv (Makefile.am): Likewise.
62087         * modules/inet_ntop (Makefile.am): Likewise.
62088         * modules/inet_pton (Makefile.am): Likewise.
62089         * modules/inttostr (Makefile.am): Likewise.
62090         * modules/isapipe (Makefile.am): Likewise.
62091         * modules/lchown (Makefile.am): Likewise.
62092         * modules/long-options (Makefile.am): Likewise.
62093         * modules/lstat (Makefile.am): Likewise.
62094         * modules/malloc (Makefile.am): Likewise.
62095         * modules/mathl (Makefile.am): Likewise.
62096         * modules/mbchar (Makefile.am): Likewise.
62097         * modules/md2 (Makefile.am): Likewise.
62098         * modules/md4 (Makefile.am): Likewise.
62099         * modules/md5 (Makefile.am): Likewise.
62100         * modules/memcasecmp (Makefile.am): Likewise.
62101         * modules/memchr (Makefile.am): Likewise.
62102         * modules/memcmp (Makefile.am): Likewise.
62103         * modules/memcoll (Makefile.am): Likewise.
62104         * modules/memcpy (Makefile.am): Likewise.
62105         * modules/memmem (Makefile.am): Likewise.
62106         * modules/memmove (Makefile.am): Likewise.
62107         * modules/mempcpy (Makefile.am): Likewise.
62108         * modules/memrchr (Makefile.am): Likewise.
62109         * modules/memset (Makefile.am): Likewise.
62110         * modules/memxor (Makefile.am): Likewise.
62111         * modules/mkancesdirs (Makefile.am): Likewise.
62112         * modules/mkdir (Makefile.am): Likewise.
62113         * modules/mkdir-p (Makefile.am): Likewise.
62114         * modules/mkdtemp (Makefile.am): Likewise.
62115         * modules/mkstemp (Makefile.am): Likewise.
62116         * modules/mktime (Makefile.am): Likewise.
62117         * modules/modechange (Makefile.am): Likewise.
62118         * modules/mountlist (Makefile.am): Likewise.
62119         * modules/nanosleep (Makefile.am): Likewise.
62120         * modules/openat (Makefile.am): Likewise.
62121         * modules/pagealign_alloc (Makefile.am): Likewise.
62122         * modules/physmem (Makefile.am): Likewise.
62123         * modules/poll (Makefile.am): Likewise.
62124         * modules/posixtm (Makefile.am): Likewise.
62125         * modules/posixver (Makefile.am): Likewise.
62126         * modules/putenv (Makefile.am): Likewise.
62127         * modules/quote (Makefile.am): Likewise.
62128         * modules/quotearg (Makefile.am): Likewise.
62129         * modules/raise (Makefile.am): Likewise.
62130         * modules/read-file (Makefile.am): Likewise.
62131         * modules/readline (Makefile.am): Likewise.
62132         * modules/readlink (Makefile.am): Likewise.
62133         * modules/readtokens (Makefile.am): Likewise.
62134         * modules/readutmp (Makefile.am): Likewise.
62135         * modules/realloc (Makefile.am): Likewise.
62136         * modules/regex (Makefile.am): Likewise.
62137         * modules/rename (Makefile.am): Likewise.
62138         * modules/rename-dest-slash (Makefile.am): Likewise.
62139         * modules/rijndael (Makefile.am): Likewise.
62140         * modules/rmdir (Makefile.am): Likewise.
62141         * modules/rpmatch (Makefile.am): Likewise.
62142         * modules/safe-read (Makefile.am): Likewise.
62143         * modules/safe-write (Makefile.am): Likewise.
62144         * modules/same (Makefile.am): Likewise.
62145         * modules/save-cwd (Makefile.am): Likewise.
62146         * modules/savedir (Makefile.am): Likewise.
62147         * modules/setenv (Makefile.am): Likewise.
62148         * modules/settime (Makefile.am): Likewise.
62149         * modules/sha1 (Makefile.am): Likewise.
62150         * modules/sig2str (Makefile.am): Likewise.
62151         * modules/snprintf (Makefile.am): Likewise.
62152         * modules/stdlib-safer (Makefile.am): Likewise.
62153         * modules/stpcpy (Makefile.am): Likewise.
62154         * modules/stpncpy (Makefile.am): Likewise.
62155         * modules/strcase (Makefile.am): Likewise.
62156         * modules/strcasestr (Makefile.am): Likewise.
62157         * modules/strchrnul (Makefile.am): Likewise.
62158         * modules/strcspn (Makefile.am): Likewise.
62159         * modules/strdup (Makefile.am): Likewise.
62160         * modules/strerror (Makefile.am): Likewise.
62161         * modules/strftime (Makefile.am): Likewise.
62162         * modules/strndup (Makefile.am): Likewise.
62163         * modules/strnlen (Makefile.am): Likewise.
62164         * modules/strpbrk (Makefile.am): Likewise.
62165         * modules/strsep (Makefile.am): Likewise.
62166         * modules/strstr (Makefile.am): Likewise.
62167         * modules/strtod (Makefile.am): Likewise.
62168         * modules/strtoimax (Makefile.am): Likewise.
62169         * modules/strtok_r (Makefile.am): Likewise.
62170         * modules/strtol (Makefile.am): Likewise.
62171         * modules/strtoll (Makefile.am): Likewise.
62172         * modules/strtoul (Makefile.am): Likewise.
62173         * modules/strtoull (Makefile.am): Likewise.
62174         * modules/strtoumax (Makefile.am): Likewise.
62175         * modules/strverscmp (Makefile.am): Likewise.
62176         * modules/time_r (Makefile.am): Likewise.
62177         * modules/timegm (Makefile.am): Likewise.
62178         * modules/tmpfile-safer (Makefile.am): Likewise.
62179         * modules/unistd-safer (Makefile.am): Likewise.
62180         * modules/unlinkdir (Makefile.am): Likewise.
62181         * modules/userspec (Makefile.am): Likewise.
62182         * modules/utime (Makefile.am): Likewise.
62183         * modules/utimecmp (Makefile.am): Likewise.
62184         * modules/utimens (Makefile.am): Likewise.
62185         * modules/vasnprintf (Makefile.am): Likewise.
62186         * modules/vasprintf (Makefile.am): Likewise.
62187         * modules/vsnprintf (Makefile.am): Likewise.
62188         * modules/xalloc (Makefile.am): Likewise.
62189         * modules/xgetcwd (Makefile.am): Likewise.
62190         * modules/xnanosleep (Makefile.am): Likewise.
62191         * modules/xreadlink (Makefile.am): Likewise.
62192         * modules/xstrtod (Makefile.am): Likewise.
62193         * modules/xstrtol (Makefile.am): Likewise.
62194         * modules/xstrtold (Makefile.am): Likewise.
62195         * modules/yesno (Makefile.am): Likewise.
62196
62197 2006-10-12  Jim Meyering  <jim@meyering.net>
62198
62199         * m4/getloadavg.m4: Revert the change below.
62200
62201         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
62202         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
62203         fail with a symlink, which is what coreutils' ./bootstrap now
62204         creates by default.
62205
62206 2006-10-12  Bruno Haible  <bruno@clisp.org>
62207
62208         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
62209         mingw.
62210         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
62211         MSVC and mingw explicitly.
62212
62213 2006-10-11  Simon Josefsson  <jas@extundo.com>
62214             Bruno Haible  <bruno@clisp.org>
62215
62216         Add support for multiple gnulib-tool invocations in the scope of a
62217         single configure.ac file.
62218         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
62219         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
62220         with the same contents as the _LIBADD variable.
62221         (func_emit_initmacro_start, func_emit_initmacro_end,
62222         func_emit_initmacro_done): New functions.
62223         (func_import, func_create_testdir): Invoke them. Allow the identifiers
62224         gl_LIBOBJS and gl_LTLIBOBJS.
62225
62226 2006-10-11  Bruno Haible  <bruno@clisp.org>
62227
62228         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
62229         (func_create_testdir): Don't create po/Makefile.am, don't invoke
62230         autoreconf. Instead, invoke autopoint explicitly but move back the
62231         *.m4 files from gnulib.
62232
62233 2006-10-11  Bruno Haible  <bruno@clisp.org>
62234
62235         * gnulib-tool (func_usage): Make module names after --create-testdir
62236         optional.
62237         (func_create_testdir): If no module was specified, use nearly all
62238         modules.
62239
62240 2006-10-12  Jim Meyering  <jim@meyering.net>
62241
62242         Big performance improvement for fts-based tools that use FTS_NOSTAT.
62243         Avoid spurious inode-mismatch problems on non-POSIX file systems.
62244         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
62245         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
62246         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
62247         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
62248         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
62249         (fts_set_stat_required): New function.
62250         (fts_open): Defer the calls to fts_stat, if possible or requested.
62251         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
62252         into fts_stat itself.
62253         (fts_read): Perform any required (deferred) fts_stat call.
62254         (fts_build): Likewise, for the directory we're about to open and read.
62255         In the readdir loop, carefully decide whether each entry will require
62256         an eventual call to fts_stat, using dirent.d_type info if available.
62257         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
62258         a command line argument into this function.  Update all callers.
62259         Map a return value of FTS_DOT to FTS_D for a command line argument.
62260         * modules/fts (Depends-on): Add d-type.  Alphabetize.
62261         Thanks to Miklos Szeredi for his tenacity and for the initial
62262         bug report about "find" failing on a FUSE-based file system.
62263
62264         * lib/fts.c (fts_open): Use consistent indentation.
62265
62266 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
62267
62268         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
62269         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
62270         reported by Jim Meyering.  All uses of cache variables renamed
62271         to match Autoconf's.
62272         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
62273         the other one.
62274
62275         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
62276         Fix misspelling in diagnostic.
62277
62278 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
62279
62280         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
62281         defined.  Problem reported by Matthew Woehlke.
62282
62283         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
62284         Add support for Tandem NonStop R series.
62285         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
62286         Use new macro.
62287
62288         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
62289         (has_trailing_slash): Omit size arg; all callers changed.
62290         Omit 'inline', since it doesn't help performance and we'd
62291         need to configure it.
62292         Don't count //, ///, etc. as having a trailing slash.
62293         As a side effect, this removes a C99ism reported by Matthew Woehlke.
62294         (rpl_rename_dest_slash): On failure, use rename's errno rather
62295         than (in some cases) an incorrect or junk errno.
62296         Simplify code by removing need to compute length; this does
62297         cause it to make two passes instead of one over the file name,
62298         but it's worth it.
62299
62300         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
62301         change, since Autoconf's version may no longer be appropriate now
62302         that we are using CVS Autoconf's version.  Add support for Tandem.
62303
62304 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
62305             Bruno Haible  <bruno@clisp.org>
62306
62307         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
62308         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
62309         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
62310         gl_AC_TYPE_LONG_LONG.
62311
62312         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
62313         instead of HAVE_LONG_LONG.
62314         * lib/printf-args.c (printf_fetchargs): Likewise.
62315         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
62316         * lib/vasnprintf.c (VASNPRINTF): Likewise.
62317         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
62318         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
62319         gl_AC_TYPE_LONG_LONG.
62320
62321 2006-10-11  Bruno Haible  <bruno@clisp.org>
62322
62323         * m4/longlong.m4: Add comments.
62324         * m4/ulonglong.m4: Likewise.
62325
62326 2006-10-10  Bruno Haible  <bruno@clisp.org>
62327
62328         Make it possible to #define stpcpy, strdup to aliases.
62329         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
62330         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
62331
62332 2006-10-10  Bruno Haible  <bruno@clisp.org>
62333
62334         Make it possible to #define gcd to an alias.
62335         * lib/gcd.c: Include config.h.
62336
62337 2006-10-10  Bruno Haible  <bruno@clisp.org>
62338
62339         Make it possible to #define c_isascii to an alias.
62340         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
62341         defined. Undefine the macros before defining them, to avoid gcc
62342         warnings.
62343         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
62344         define NO_C_CTYPE_MACROS early.
62345
62346 2006-10-10  Bruno Haible  <bruno@clisp.org>
62347
62348         Make it possible to #define set_program_name to an alias.
62349         * lib/progname.c: Don't undefine set_program_name; instead, undefine
62350         ENABLE_RELOCATABLE early.
62351
62352 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
62353
62354         Port to Tandem NSK OSS, which has 64-bit signed int but at most
62355         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
62356         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
62357         More generally, don't assume that 64-bit signed int is available
62358         if unsigned int is, and vice versa.
62359         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
62360         unsigned symbols, not on their signed counterparts.
62361         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
62362         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
62363         (UINT64_C, UINTMAX_C):
62364         Likewise.
62365         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
62366         unsigned counterparts.
62367         (Have_long_long, Unsigned): New macros.
62368         (Int): Renamed from INT.
62369         (strtoimax): Use the new macros.
62370         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
62371         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
62372         * modules/inttypes (inttypes.h): Substitute
62373         HAVE_UNSIGNED_LONG_LONG_INT.
62374         * modules/stdint (stdint.h): Likewise.
62375         (Files): Add m4/ulonglong.m4.
62376
62377 2006-10-10  Bruno Haible  <bruno@clisp.org>
62378
62379         Fix a gcc -Wshadow warning.
62380         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
62381         to 'bucket'.
62382         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
62383         gl_linked_indexof_from_to): Likewise.
62384         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
62385         Likewise.
62386         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
62387         Likewise.
62388         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
62389         Reported by Eric Blake.
62390
62391 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
62392
62393         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
62394         for NetBSD.  Problem reported by Bruno Haible.
62395
62396 2006-10-09  Jim Meyering  <jim@meyering.net>
62397
62398         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
62399         Patch from Bruno Haible.
62400
62401 2006-10-09  Jim Meyering  <jim@meyering.net>
62402
62403         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
62404         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
62405         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
62406
62407 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
62408
62409         Don't include <config.h> twice; this doesn't work in some cases,
62410         e.g., when config.h has "#define intmax_t long long int" and
62411         we include <config.h>, <inttypes.h>, <config.h> in that order.
62412         Problem reported by Matthew Woehlke in:
62413         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
62414         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
62415         * lib/fts-cycle.c: Don't include config.h.
62416         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
62417         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
62418         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
62419         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
62420         inttypes.h.
62421         * lib/xstrtoumax.c: Likewise.
62422         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
62423         __strtol and the like, so that this module is more like its siblings.
62424         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
62425         Remove; no longer needed now that we assume gnulib inttypes.h.
62426
62427 2006-10-08  Bruno Haible  <bruno@clisp.org>
62428
62429         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
62430         option.
62431
62432 2006-10-07  Jim Meyering  <jim@meyering.net>
62433
62434         * modules/inttypes (inttypes.h): Revert what seems to have been
62435         an inadvertent part of today's change: use "|", not "/" in the
62436         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
62437
62438 2006-10-07  Bruno Haible  <bruno@clisp.org>
62439
62440         * modules/sublist: New file.
62441
62442 2006-10-07  Bruno Haible  <bruno@clisp.org>
62443
62444         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
62445         * modules/argz (argz.h): Likewise.
62446         * modules/arpa_inet (arpa/inet.h): Likewise.
62447         * modules/byteswap (byteswap.h): Likewise.
62448         * modules/configmake (configmake.h): Likewise.
62449         * modules/fcntl (fcntl.h): Likewise.
62450         * modules/fnmatch (fnmatch.h): Likewise.
62451         * modules/getopt (getopt.h): Likewise.
62452         * modules/glob (glob.h): Likewise.
62453         * modules/inttypes (inttypes.h): Likewise.
62454         * modules/netinet_in (netinet/in.h): Likewise.
62455         * modules/poll (poll.h): Likewise.
62456         * modules/stdbool (stdbool.h): Likewise.
62457         * modules/stdint (stdint.h): Likewise.
62458         * modules/sys_select (sys/select.h): Likewise.
62459         * modules/sys_socket (sys/socket.h): Likewise.
62460         * modules/sys_stat (sys/stat.h): Likewise.
62461         * modules/sysexits (sysexits.h): Likewise.
62462         * modules/unistd (unistd.h): Likewise.
62463         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
62464         Add a "DO NOT EDIT" comment to the generated file.
62465         (func_import): Likewise for gnulib-comp.m4.
62466
62467 2006-10-07  Bruno Haible  <bruno@clisp.org>
62468
62469         * lib/gl_sublist.h: New file.
62470         * lib/gl_sublist.c: New file.
62471
62472 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
62473
62474         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
62475         name (relative to the original working directory) and the file
62476         name component (relative to the temporary working directory).  All
62477         callers changed.
62478         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
62479         * lib/mkdir-p.c (make_dir_parents): Likewise.
62480         * lib/mkdir-p.h (make_dir_parents): Likewise.
62481
62482 2006-10-06  Eric Blake  <ebb9@byu.net>
62483
62484         Define several macros for use by the clean-temp module.
62485         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
62486         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
62487         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
62488
62489         * lib/clean-temp.h (close_stream_temp): New declaration.
62490         * lib/clean-temp.c (includes): Pull in headers according to what
62491         other modules are in use.
62492         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
62493
62494 2006-10-06  Bruno Haible  <bruno@clisp.org>
62495
62496         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
62497         instead of fopen, fwriteerror.
62498
62499 2006-10-06  Bruno Haible  <bruno@clisp.org>
62500
62501         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
62502         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
62503         int.
62504         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
62505         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
62506         Return an error indicator.
62507         Suggested by Eric Blake.
62508
62509 2006-10-06  Bruno Haible  <bruno@clisp.org>
62510
62511         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
62512         Reported by Eric Blake.
62513
62514 2006-10-06  Bruno Haible  <bruno@clisp.org>
62515
62516         * modules/closeout (Description): Mention stderr too.
62517
62518 2006-10-06  Bruno Haible  <bruno@clisp.org>
62519         and Paul Eggert  <eggert@cs.ucla.edu>
62520
62521         * lib/closeout.c (close_stdout): Also close stderr.
62522         * lib/closeout.h: Update comment.
62523
62524 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
62525
62526         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
62527         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
62528         * lib/dirchownmod.c: Include lchown.h.
62529         * lib/lchown.c: Don't include files that lchown.h now includes.
62530         Don't declare chown, since lchown.h now does that.
62531         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
62532         (lchown): Define to rpl_chown if lchown is declared but
62533         does not exist.  Declare using a prototype if lchown is not
62534         declared.  Add a copyright notice.
62535         * lib/mkstemp.h: Include <unistd.h>.
62536         * lib/openat.c: Include lchown.h.
62537
62538         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
62539         we now test for that separately.
62540         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
62541         rather than O_NOFOLLOW, when testing whether it's possible to
62542         avoid a race condition reliably.
62543         * lib/savewd.c (savewd_chdir): Likewise.
62544
62545         Remove macros that are no longer needed now that stdint.h is
62546         reliable.
62547         * lib/fsusage.c (UINTMAX_MAX): Remove.
62548         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
62549         * lib/utimecmp.c (SIZE_MAX): Remove.
62550
62551         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
62552
62553         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
62554         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
62555         O_NOATIME works.
62556
62557 2006-10-05  Bruno Haible  <bruno@clisp.org>
62558
62559         * lib/gl_list.h (gl_sortedlist_search_from_to,
62560         gl_sortedlist_indexof_from_to): New declarations.
62561         (gl_list_implementation): New fields sortedlist_search_from_to,
62562         sortedlist_indexof_from_to.
62563         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
62564         inline functions.
62565         * lib/gl_list.c (gl_sortedlist_search_from_to,
62566         gl_sortedlist_indexof_from_to): New functions.
62567         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
62568         function.
62569         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
62570         (gl_array_sortedlist_search_from_to): New function.
62571         (gl_array_list_implementation): Update.
62572         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
62573         function.
62574         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
62575         (gl_carray_sortedlist_search_from_to): New function.
62576         (gl_carray_list_implementation): Update.
62577         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
62578         gl_linked_sortedlist_indexof_from_to): New functions.
62579         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
62580         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
62581         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
62582         gl_tree_sortedlist_indexof_from_to): New functions.
62583         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
62584         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
62585         Update.
62586         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
62587         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
62588         Update.
62589
62590 2006-10-05  Bruno Haible  <bruno@clisp.org>
62591
62592         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
62593         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
62594         (struct gl_list_implementation): Add fields search_from_to,
62595         indexof_from_to. Remove fields search, indexof.
62596         (gl_list_search): Use the search_from_to method.
62597         (gl_list_search_from, gl_list_search_from_to): New functions.
62598         (gl_list_indexof): Use the indexof_from_to method.
62599         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
62600         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
62601         (gl_list_search_from, gl_list_search_from_to): New functions.
62602         (gl_list_indexof): Use the indexof_from_to method.
62603         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
62604         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
62605         gl_array_indexof. Add start_index, end_index arguments.
62606         (gl_array_search_from_to): Renamed from gl_array_search. Add
62607         start_index, end_index arguments.
62608         (gl_array_remove, gl_array_list_implementation): Update.
62609         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
62610         gl_carray_indexof. Add start_index, end_index arguments.
62611         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
62612         start_index, end_index arguments.
62613         (gl_carray_remove, gl_carray_list_implementation): Update.
62614         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
62615         gl_linked_search. Add start_index, end_index arguments.
62616         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
62617         start_index, end_index arguments.
62618         (gl_linked_remove): Update.
62619         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
62620         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
62621         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
62622         field to 'size_t'.
62623         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
62624         gl_tree_search. Add start_index, end_index arguments.
62625         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
62626         start_index, end_index arguments.
62627         (gl_tree_remove): Update.
62628         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
62629         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
62630         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
62631         function.
62632         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
62633         gl_tree_search. Add start_index, end_index arguments.
62634         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
62635         start_index, end_index arguments.
62636         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
62637         Update.
62638         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
62639
62640 2006-10-05  Bruno Haible  <bruno@clisp.org>
62641
62642         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
62643
62644         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
62645         fwriteerror_temp): New declarations.
62646         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
62647         (descriptors): New variable.
62648         (cleanup): First, close the descriptors.
62649         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
62650         fclose_temp, fwriteerror_temp): New functions.
62651
62652 2006-10-04  Jim Meyering  <jim@meyering.net>
62653
62654         * lib/fts.c (fts_open): Tiny comment change.
62655
62656 2006-10-04  Bruno Haible  <bruno@clisp.org>
62657
62658         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
62659         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
62660         gl_LOCK_BODY.
62661         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
62662         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
62663         gl_LOCK_EARLY_BODY.
62664         (gl_LOCK): Require gl_LOCK_BODY.
62665
62666 2006-10-04  Bruno Haible  <bruno@clisp.org>
62667
62668         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
62669         (gl_oset_search_atleast): New declaration.
62670         (struct gl_oset_implementation): Add field 'search_atleast'.
62671         (gl_oset_search_atleast): New inline function.
62672         * lib/gl_oset.c (gl_oset_search_atleast): New function.
62673         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
62674         (gl_array_oset_implementation): Update.
62675         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
62676         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
62677         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
62678
62679 2006-10-04  Bruno Haible  <bruno@clisp.org>
62680
62681         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
62682
62683 2006-10-03  Bruno Haible  <bruno@clisp.org>
62684
62685         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
62686         from gl_avltreehash_list_implementation.
62687
62688 2006-10-03  Bruno Haible  <bruno@clisp.org>
62689
62690         * lib/gl_oset.c (gl_oset_add): Fix return type.
62691
62692 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
62693
62694         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
62695
62696 2006-10-02  Eric Blake  <ebb9@byu.net>
62697
62698         * modules/strnlen (Depends-on): Add extensions.
62699
62700 2006-10-02  Eric Blake  <ebb9@byu.net>
62701
62702         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
62703         definition in 2.60+.
62704
62705 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
62706
62707         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
62708         checks.
62709
62710 2006-10-02  Bruno Haible  <bruno@clisp.org>
62711
62712         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
62713         to the AUTOMAKE_OPTIONS.
62714         Reported by Jim Meyering.
62715
62716 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
62717
62718         Work around bug in Solaris 10 /proc file system:
62719         /proc/self/fd/NNN/.. isn't the parent directory of
62720         the directory whose file descriptor is NNN.  This needs to
62721         be worked around at run time, not compile time, since a
62722         program might be built on Solaris 8, where things work, and
62723         run on Solaris 10.
62724         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
62725         to use the following interface instead:
62726         (OPENAT_BUFFER_SIZE): New macro.
62727         (openat_proc_name): New function.
62728         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
62729         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
62730         Likewise.
62731         * lib/openat-proc.c: New file.
62732         * modules/openat (Files): Add lib/openat-proc.c.
62733         (Depends-on): Add same-inode, stdbool.
62734         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
62735
62736 2006-09-29  Bruno Haible  <bruno@clisp.org>
62737
62738         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
62739         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
62740         argument. Set stdout_closed before testing for ferror, not after.
62741         (fwriteerror, fwriteerror_no_ebadf): New functions.
62742
62743 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62744
62745         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
62746
62747 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
62748
62749         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
62750         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
62751
62752 2006-09-28  Jim Meyering  <jim@meyering.net>
62753
62754         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
62755         Include <unistd.h>.
62756
62757 2006-09-28  Bruno Haible  <bruno@clisp.org>
62758
62759         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
62760         * modules/linkedhash-list (Depends-on): Likewise.
62761         * modules/rbtreehash-list (Depends-on): Likewise.
62762
62763 2006-09-28  Bruno Haible  <bruno@clisp.org>
62764
62765         * lib/strndup.h: Simplify the redefinition of strndup.
62766         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
62767         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
62768
62769 2006-09-28  Bruno Haible  <bruno@clisp.org>
62770
62771         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
62772         * lib/gl_linkedhash_list.c: Likewise.
62773         * lib/gl_rbtreehash_list.c: Likewise.
62774
62775 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
62776
62777         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
62778         getaddrinfo.
62779
62780         * lib/__fpending.h: Don't include <stdio_ext.h> unless
62781         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
62782         it causes <stdio_ext.h> to cause a compile-time error.
62783         Problem reported by Nelson H. F. Beebe.
62784         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
62785         of HAVE_DECL___PENDING.
62786
62787         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
62788         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
62789         declaration.
62790
62791 2006-09-27  Jim Meyering  <jim@meyering.net>
62792
62793         This file could end up with a definition for a function
62794         named __strndup, rather than rpl_strndup on a system with
62795         incomplete weak_alias support.
62796         * lib/strndup.c (strndup): Rename from __strndup.
62797         Remove #defines that used to map __strndup to strndup.
62798         Don't use K&R prototypes.
62799         Remove LIBC-related code, since this file is not sync'd with glibc.
62800         * lib/strndup.h: Revamp, accordingly.
62801         * m4/strndup.m4: Modernize.
62802
62803 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
62804
62805         * modules/savewd (Depends-on): Add 'raise'.
62806         * lib/savewd.c: Include <signal.h>, for 'raise'.
62807
62808 2006-09-26  Jim Meyering  <jim@meyering.net>
62809
62810         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
62811         when we detect Darwin 8.7.0's acl_get_file bug.
62812         Rearrange to perform the new (below) run-test while $LIBS
62813         contains any acl-related library.  Set USE_ACL at the end.
62814         (gl_ACL_GET_FILE): New function.
62815
62816 2006-09-26  Eric Blake  <ebb9@byu.net>
62817
62818         * lib/verror.c: Include <config.h> unconditionally.
62819
62820 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
62821
62822         * modules/clock-time (Maintainer): Add self.
62823         * modules/getlogin_r (Depends-on): Add extensions.
62824
62825 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62826
62827         * modules/clock-time: New module.
62828         * modules/nanosleep (Depends-on): Add clock-time.
62829         * modules/gethrxtime (Depends-on): Likewise.
62830         * modules/gettime (Depends-on): Likewise.
62831         * modules/settime (Depends-on): Likewise.
62832
62833         * modules/fts-lgpl: Depend on openat.
62834         * modules/mkancesdirs: Depend on savewd.
62835         * modules/mkdir-p: Likewise.
62836
62837 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62838
62839         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
62840
62841         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
62842         `gl_have_arbitrary_file_name_length_limit' to
62843         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
62844         actually works between configure runs.
62845
62846 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62847             Bruno Haible  <bruno@clisp.org>
62848
62849         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
62850
62851 2006-09-25  Jim Meyering  <jim@meyering.net>
62852
62853         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
62854         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
62855
62856 2006-09-25  Eric Blake  <ebb9@byu.net>
62857
62858         * gnulib-tool (func_import, func_create_testdir): Fix typos in
62859         exec's in 2006-09-18 patch when shuffling fds.
62860
62861 2006-09-25  Bruno Haible  <bruno@clisp.org>
62862
62863         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
62864         Reported by Jim Meyering.
62865
62866 2006-09-24  Jim Meyering  <jim@meyering.net>
62867
62868         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
62869         compare a pointer against a literal "0".  That caused failures with
62870         at least HP-UX's hpcc.
62871
62872 2006-09-22  Simon Josefsson  <jas@extundo.com>
62873
62874         * modules/gc-sha1:
62875         * modules/gc-md4:
62876         * modules/gc-hmac-sha1:
62877         * modules/gc-hmac-md5:
62878         * modules/gc-des:
62879         * modules/gc-arcfour: Distribute more files.
62880
62881 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62882
62883         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
62884         (gl_linked_iterator_from_to): Initialize struct completely.
62885         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
62886         (gl_tree_iterator_from_to): Likewise
62887         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
62888         * lib/gl_array_list.c [lint] (gl_array_iterator)
62889         (gl_array_iterator_from_to): Likewise.
62890         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
62891         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
62892         (gl_carray_iterator_from_to): Likewise.
62893
62894         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
62895         * lib/md4.c (md4_process_block): Remove unused variable.
62896         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
62897         parentheses for clarity.
62898
62899 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62900
62901         * modules/bison-i18n (Depends-on): Add gettext.
62902
62903 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62904
62905         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
62906         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
62907         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
62908         also add missing comma that caused broken test.
62909         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
62910         stdlib.h, for `abort'.
62911         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
62912         variables.
62913         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
62914         include unistd.h if present, for `rmdir'.
62915         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
62916         variables.
62917         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
62918         in the process include standard headers for prototypes.
62919         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
62920         gets declared on GNU/Linux.
62921         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
62922         unistd.h, for `rmdir'.
62923         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
62924
62925         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
62926         always true.
62927         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
62928
62929         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
62930
62931 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62932
62933         * gnulib-tool (func_version): Create output all at once.  This
62934         may help avoid triggering unnecessary SIGPIPEs, and at any
62935         rate it doesn't hurt.
62936
62937 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62938             Bruno Haible  <bruno@clisp.org>
62939
62940         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
62941         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
62942         * m4/signed.m4 (bh_C_SIGNED): Likewise.
62943
62944         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
62945         (gl_FUNC_VASPRINTF): Invoke it.
62946
62947 2006-09-22  Bruno Haible  <bruno@clisp.org>
62948
62949         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
62950         getloadavg.c as first argument.
62951
62952 2006-09-22  Bruno Haible  <bruno@clisp.org>
62953
62954         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
62955         at the beginning of the gl_INIT macro.
62956         * modules/getloadavg (configure.ac): Pass $gl_source_base to
62957         gl_GETLOADAVG.
62958
62959 2006-09-22  Bruno Haible  <bruno@clisp.org>
62960
62961         * gnulib-tool (func_create_megatestdir): Don't include the config-h
62962         module.
62963         Suggested by Ralf Wildenhues.
62964
62965 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
62966
62967         Import this patch from libc:
62968
62969         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
62970
62971         * lib/regex_internal.c (re_string_reconstruct): Handle
62972         offset < pstr->valid_raw_len && pstr->offsets_needed case.
62973         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
62974         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
62975         re_string_context_at.
62976
62977         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
62978         now requires it.
62979         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
62980         gl_REGEX now does it for us.
62981         (gl_REGEX): Add test taken from
62982         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
62983
62984         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
62985         Check that large offsets work.  Modernize Autoconf usages.
62986         Prefer "yes" to mean a good thing rather than a bad.
62987         Don't put "#define mkstemp" in config.h, as this might interfere
62988         with standard system headers that "#define mkstemp mkstemp64".
62989
62990         * modules/mkstemp (Depends-on): Add extensions, so that
62991         mkstemp is visible on some platforms.
62992         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
62993         (Include): Change to "mkstemp.h" from <stdlib.h>.
62994         (Files): Add mkstemp.h.
62995
62996         * lib/mkstemp.h: New file, since some standard headers
62997         #define mkstemp.
62998         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
62999         Include "mkstemp.h".
63000         Make the _LIBC code resemble glibc original more,
63001         e.g., use K&R style.
63002         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
63003         (mkstemp): Remove, since mkstemp.h does this for us.
63004         * lib/stdlib--.h: Include mkstemp.h.
63005
63006         Import this patch from libc:
63007
63008         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
63009
63010         * lib/tempname.c (__gen_tempname): Change attempts_min
63011         into a macro.  Use preprocessor to decide how to initialize
63012         attempts [Coverity CID 67].
63013
63014 2006-09-20  Bruno Haible  <bruno@clisp.org>
63015
63016         * lib/mkdtemp.c: Import from libc.
63017         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
63018                 * sysdeps/posix/tempname.c (__gen_tempname): Change
63019                 attempts_min into a macro.  Use preprocessor to decide how to
63020                 initialize attempts [Coverity CID 67].
63021         2001-11-27  Paul Eggert  <eggert@twinsun.com>
63022                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
63023                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
63024
63025 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63026
63027         * gnulib-tool (func_exit): New function, to allow to pass the
63028         exit status portably through the trap.  Use everywhere.
63029         (--help, --version): Signal a write error.
63030         (trap): catch SIGPIPE, for write errors.
63031         Exit at the end of the trap, with the correct exit status.
63032
63033 2006-09-19  Karl Berry  <karl@gnu.org>
63034
63035         * doc/gnulib.texi: note about the license texinfo files.
63036
63037 2006-09-19  Eric Blake  <ebb9@byu.net>
63038
63039         * gnulib-tool: Avoid space-tab.
63040
63041 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
63042
63043         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
63044         that prevented coreutils 6.1 from building.  Problem reported
63045         by Petter Reinholdtsen.
63046
63047 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
63048
63049         * gnulib-tool (avoidlist): Fix typo that broke options like
63050         --avoid=lock that are used by coreutils bootstrap.
63051
63052 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
63053
63054         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
63055         more systematically.
63056
63057 2006-09-18  Jim Meyering  <jim@meyering.net>
63058
63059         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
63060
63061 2006-09-18  Bruno Haible  <bruno@clisp.org>
63062
63063         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
63064
63065 2006-09-18  Bruno Haible  <bruno@clisp.org>
63066
63067         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
63068         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
63069         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
63070         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
63071         * m4/gettext.m4: Require autoconf >= 2.52.
63072         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
63073         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
63074         of gl_cv_header_inttypes_h.
63075
63076 2006-09-18  Bruno Haible  <bruno@clisp.org>
63077
63078         * lib/javaversion.c: Include configmake.h.
63079
63080 2006-09-18  Bruno Haible  <bruno@clisp.org>
63081
63082         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
63083         avoid that the while loops be executed in a subshell.
63084
63085 2006-09-18  Bruno Haible  <bruno@clisp.org>
63086
63087         * MODULES.html.sh (func_module): Break long lines.
63088         Suggested by Bruce Korb <bkorb@gnu.org>.
63089
63090 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63091
63092         Speed up by a factor of 1.12.
63093         * gnulib-tool (nl): New variable.
63094         (func_import): Rewrite include directive extraction to only read each
63095         directive once.
63096
63097 2006-09-17  Bruno Haible  <bruno@clisp.org>
63098
63099         * modules/javaversion (Makefile.am): Remove DEFS setting.
63100         (Depends-on): Add configmake, for PKGDATADIR definition.
63101
63102 2006-09-17  Bruno Haible  <bruno@clisp.org>
63103
63104         * gnulib-tool (func_create_testdir): Rewrite all files at once.
63105
63106 2006-09-17  Bruno Haible  <bruno@clisp.org>
63107
63108         * gnulib-tool (func_append): New function, stolen from libtool.m4.
63109         (func_modules_transitive_closure, func_modules_add_dummy,
63110         func_modules_to_filelist, func_import, func_create_testdir,
63111         func_create_megatestdir, ...): Use it wherever possible.
63112         Suggested by Ralf Wildenhues.
63113
63114 2006-09-16  Karl Berry  <karl@gnu.org>
63115
63116         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
63117         to avoid sectioning errors.
63118         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
63119         [ifinfo]: blank line after @center-ed titles.
63120         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
63121         Spell FSF address consistently with others.
63122         (These changes approved by rms.)
63123
63124 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63125
63126         Speed up by a factor of 1.61.
63127         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
63128         already checked module names again.
63129
63130 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63131
63132         Speed up by a factor of 1.13.
63133         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
63134         for new_files, and the input to func_add_or_update.
63135
63136 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63137
63138         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
63139         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
63140
63141 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
63142
63143         * modules/mkancesdirs (Depends-on): Add fcntl.
63144         * modules/savewd: New file.
63145         * MODULES.html.sh (File system functions): Add savewd.
63146
63147         * modules/configmake (Makefile.am): Add support for the
63148         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
63149
63150 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
63151
63152         * m4/savewd.m4: New file.
63153
63154 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
63155
63156         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
63157         (dirchownmod): New arg FD.  All callers changed.
63158         Use FD rather than opening the directory ourself, as opening is
63159         now the caller's responsibility.
63160         * lib/dirchownmod.h: Likewise.
63161         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
63162         hosts that require <sys/types.h> before <sys/stat.h>.  Include
63163         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
63164         (test_dir): Remove.
63165         (mkancesdirs): Return length of prefix of FILE that has already
63166         been made, or -2 if there is a child doing the work.  Redo
63167         algorithm so that it is O(N) rather than O(N**2).  Optimize away
63168         ".", and treat ".." specially since it might stray back into
63169         already-created areas.  Use a subprocess if necessary.  New arg
63170         WD; all users changed.  MAKE_DIR function should now return 1
63171         if it creates a directory that is not readable.  Return -2 if
63172         a child process is spun off.
63173         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
63174         Adjust signature to match code.
63175         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
63176         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
63177         all users changed.
63178         * lib/savewd.c, lib/savewd.h: New files.
63179
63180 2006-09-15  Jim Meyering  <jim@meyering.net>
63181
63182         * modules/rename-dest-slash: New module.
63183         * MODULES.html.sh (posix_compat): Add it here.
63184
63185         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
63186
63187 2006-09-15  Jim Meyering  <jim@meyering.net>
63188
63189         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
63190         file.
63191
63192         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
63193
63194 2006-09-15  Jim Meyering  <jim@meyering.net>
63195
63196         * lib/rename-dest-slash.c (has_trailing_slash): Use
63197         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
63198         (rpl_rename_dest_slash): Perform the cheaper trailing slash
63199         test before testing whether SRC is a directory.
63200         Suggestions from Bruno Haible.
63201
63202         Avoid a warning about an unused variable.
63203         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
63204         into the #ifdef block where it's used.
63205
63206         * lib/rename-dest-slash.c: New file.
63207
63208 2006-09-14  Bruno Haible  <bruno@clisp.org>
63209
63210         * lib/allocsa.c: Include <config.h> unconditionally.
63211         * lib/asnprintf.c: Likewise.
63212         * lib/asprintf.c: Likewise.
63213         * lib/c-strcasecmp.c: Likewise.
63214         * lib/c-strcasestr.c: Likewise.
63215         * lib/c-strncasecmp.c: Likewise.
63216         * lib/c-strstr.c: Likewise.
63217         * lib/classpath.c: Likewise.
63218         * lib/clean-temp.c: Likewise.
63219         * lib/concatpath.c: Likewise.
63220         * lib/copy-file.c: Likewise.
63221         * lib/csharpcomp.c: Likewise.
63222         * lib/csharpexec.c: Likewise.
63223         * lib/execute.c: Likewise.
63224         * lib/fatal-signal.c: Likewise.
63225         * lib/findprog.c: Likewise.
63226         * lib/fwriteerror.c: Likewise.
63227         * lib/gl_array_list.c: Likewise.
63228         * lib/gl_array_oset.c: Likewise.
63229         * lib/gl_avltree_list.c: Likewise.
63230         * lib/gl_avltree_oset.c: Likewise.
63231         * lib/gl_avltreehash_list.c: Likewise.
63232         * lib/gl_carray_list.c: Likewise.
63233         * lib/gl_linked_list.c: Likewise.
63234         * lib/gl_linkedhash_list.c: Likewise.
63235         * lib/gl_list.c: Likewise.
63236         * lib/gl_oset.c: Likewise.
63237         * lib/gl_rbtree_list.c: Likewise.
63238         * lib/gl_rbtree_oset.c: Likewise.
63239         * lib/gl_rbtreehash_list.c: Likewise.
63240         * lib/imaxabs.c: Likewise.
63241         * lib/imaxdiv.c: Likewise.
63242         * lib/javacomp.c: Likewise.
63243         * lib/javaexec.c: Likewise.
63244         * lib/javaversion.c: Likewise.
63245         * lib/linebreak.c: Likewise.
63246         * lib/localcharset.c: Likewise.
63247         * lib/lock.c: Likewise.
63248         * lib/mbchar.c: Likewise.
63249         * lib/mbswidth.c: Likewise.
63250         * lib/mkdtemp.c: Likewise.
63251         * lib/pipe.c: Likewise.
63252         * lib/printf-args.c: Likewise.
63253         * lib/printf-parse.c: Likewise.
63254         * lib/progname.c: Likewise.
63255         * lib/progreloc.c: Likewise.
63256         * lib/readlink.c: Likewise.
63257         * lib/sh-quote.c: Likewise.
63258         * lib/stpcpy.c: Likewise.
63259         * lib/stpncpy.c: Likewise.
63260         * lib/strcasecmp.c: Likewise.
63261         * lib/strcasestr.c: Likewise.
63262         * lib/strcspn.c: Likewise.
63263         * lib/striconv.c: Likewise.
63264         * lib/strncasecmp.c: Likewise.
63265         * lib/strnlen1.c: Likewise.
63266         * lib/strstr.c: Likewise.
63267         * lib/strtok_r.c: Likewise.
63268         * lib/tls.c: Likewise.
63269         * lib/tmpdir.c: Likewise.
63270         * lib/unicodeio.c: Likewise.
63271         * lib/unsetenv.c: Likewise.
63272         * lib/vasnprintf.c: Likewise.
63273         * lib/vasprintf.c: Likewise.
63274         * lib/wait-process.c: Likewise.
63275         * lib/xallocsa.c: Likewise.
63276         * lib/xsetenv.c: Likewise.
63277         * lib/xstriconv.c: Likewise.
63278
63279 2006-09-13  Simon Josefsson  <jas@extundo.com>
63280
63281         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
63282         that internally, suggested by Ralf Wildenhues
63283         <Ralf.Wildenhues@gmx.de>.
63284
63285 2006-09-13  Simon Josefsson  <jas@extundo.com>
63286
63287         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
63288         @LIBOBJS@.
63289         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
63290
63291 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
63292
63293         * lib/_fpending.c: Include <config.h> unconditionally, since we no
63294         longer worry about uses that don't define HAVE_CONFIG_H.
63295         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
63296         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
63297         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
63298         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
63299         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
63300         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
63301         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
63302         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
63303         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
63304         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
63305         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
63306         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
63307         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
63308         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
63309         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
63310         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
63311         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
63312         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
63313         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
63314         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
63315         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
63316         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
63317         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
63318         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
63319         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
63320         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
63321         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
63322         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
63323         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
63324         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
63325         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
63326         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
63327         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
63328         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
63329         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
63330         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
63331         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
63332         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
63333         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
63334         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
63335         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
63336         Likewise.
63337
63338 2006-09-13  Eric Blake  <ebb9@byu.net>
63339
63340         * lib/getopt.c: Fix typo in last commit.
63341
63342 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
63343
63344         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
63345         dgettext.
63346
63347 2006-09-12  Jim Meyering  <jim@meyering.net>
63348
63349         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
63350         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
63351         Reported by Nelson H. F. Beebe.
63352
63353 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
63354
63355         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
63356         program_invocation_name and program_invocation_short_name are
63357         initialized.
63358         * lib/argp-namefrob.h: Move declarations of program_invocation_name
63359         and program_invocation_short_name to argp.h, so they are visible
63360         to user programs.
63361         * lib/argp.h: Likewise
63362
63363 2006-09-10  Bruno Haible  <bruno@clisp.org>
63364
63365         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
63366         m4/inttypes_h.m4, m4/uintmax_t.m4.
63367
63368 2006-09-10  Bruno Haible  <bruno@clisp.org>
63369
63370         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
63371         gl_AC_TYPE_UINTMAX_T.
63372
63373 2006-09-10  Bruno Haible  <bruno@clisp.org>
63374
63375         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
63376
63377 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
63378
63379         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
63380         convention.  Text proposed by Bruno Haible.
63381         (struct argp_option): Document the use of N_() wrappers.
63382
63383         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
63384         '\v', and translate the two parts separately, instead of feeding
63385         the whole string to gettext.  This allows to exclude
63386         '\v' from the strings visible to the translator by writing doc
63387         strings as N_("..") "\v" N_("..").
63388
63389 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
63390
63391         * config/srclist.txt: Undo latest change; the bug was fixed.
63392
63393 2006-09-09  Bruno Haible  <bruno@clisp.org>
63394
63395         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
63396         assignments if building a library without libtool.
63397         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
63398         in func_emit_lib_Makefile_am.
63399         (func_import): When building a static library libfoo.a, arrange to
63400         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
63401         (func_create_testdir): Likewise.
63402         * modules/gc (configure.ac, Makefile.am): If building statically,
63403         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
63404         * modules/iconvme (configure.ac, Makefile.am): Likewise.
63405         * modules/striconv (configure.ac, Makefile.am): Likewise.
63406         Based on a suggestion by Ralf Wildenhues.
63407
63408 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
63409
63410         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
63411         Check for unistd.h too, since Autoconf doesn't assume POSIX.
63412         Also:
63413
63414         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
63415         Add year_2050_test to catch glibc bug 2821
63416         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
63417
63418         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
63419         Prefer #ifdef to #if.
63420
63421         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
63422         Return from 'main' instead of calling 'exit'.
63423
63424 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
63425
63426         * lib/mktime.c (guess_time_tm): Fix bug where mktime
63427         returned the maximum time_t value rather than (time_t) -1.
63428         Problem originally reported by William Bardwell
63429         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
63430
63431         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
63432         Moved to here ...
63433         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
63434         ... from here.
63435
63436 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
63437
63438         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
63439         2821 is fixed.
63440
63441 2006-09-08  Jim Meyering  <jim@meyering.net>
63442
63443         Don't make generated files read-only.  That would bother too many
63444         people.  However, do retain the ability to work when targets are
63445         read-only: remove the destination and temporary files before writing
63446         them (when generated via sed or echo), or by using the -f option for
63447         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
63448         * modules/alloca-opt, modules/argz, modules/arpa_inet:
63449         * modules/byteswap, modules/configmake, modules/fcntl:
63450         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
63451         * modules/localcharset, modules/netinet_in, modules/poll:
63452         * modules/stdbool, modules/stdint, modules/sys_select:
63453         * modules/sys_socket, modules/sys_stat, modules/sysexits:
63454
63455 2006-09-08  Jim Meyering  <jim@meyering.net>
63456
63457         Avoid new build failure on FreeBSD 6.0.
63458         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
63459         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
63460         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
63461
63462 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63463
63464         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
63465
63466 2006-09-07  Jim Meyering  <jim@meyering.net>
63467
63468         Fix global typo in last change: use chmod u-w, not chmod u-x.
63469         Spotted by Paul Eggert and Bruce Korb.
63470         * modules/alloca-opt, modules/argz, modules/arpa_inet:
63471         * modules/byteswap, modules/configmake, modules/fcntl:
63472         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
63473         * modules/localcharset, modules/netinet_in, modules/poll:
63474         * modules/stdbool, modules/stdint, modules/sys_select:
63475         * modules/sys_socket, modules/sys_stat, modules/sysexits:
63476
63477 2006-09-06  Jim Meyering  <jim@meyering.net>
63478
63479         Make generated files be read-only.
63480         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
63481         Ensure that each generated file is now read-only.
63482         * modules/argz: Likewise.
63483         * modules/arpa_inet: Likewise.
63484         * modules/byteswap: Likewise.
63485         * modules/configmake: Likewise.
63486         * modules/fcntl: Likewise.
63487         * modules/fnmatch: Likewise.
63488         * modules/getopt: Likewise.
63489         * modules/glob: Likewise.
63490         * modules/inttypes: Likewise.
63491         * modules/netinet_in: Likewise.
63492         * modules/poll: Likewise.
63493         * modules/stdbool: Likewise.
63494         * modules/stdint: Likewise.
63495         * modules/sys_select: Likewise.
63496         * modules/sys_socket: Likewise.
63497         * modules/sys_stat: Likewise.
63498         * modules/sysexits: Likewise.
63499         * modules/localcharset: Same as above, but continue using temporary
63500         file named "t-$@" (why different?) rather than the "$@-t" used
63501         everywhere else.
63502
63503         * modules/sysexits (Makefile.am): Replace literal occurrences
63504         of "sysexit.h" more readable, and more consistent, "$@".
63505
63506 2006-09-06  Bruno Haible  <bruno@clisp.org>
63507
63508         * modules/striconv: New file.
63509         * modules/xstriconv: New file.
63510         * MODULES.html.sh (Internationalization functions): Add striconv,
63511         xstriconv.
63512
63513 2006-09-06  Bruno Haible  <bruno@clisp.org>
63514
63515         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
63516         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
63517         not using libtool correctly.
63518
63519 2006-09-06  Bruno Haible  <bruno@clisp.org>
63520
63521         * lib/striconv.h: New file.
63522         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
63523         iconvstring.c.
63524         * lib/xstriconv.h: New file.
63525         * lib/xstriconv.c: New file.
63526
63527 2006-09-06  Bruno Haible  <bruno@clisp.org>
63528
63529         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
63530         lib_..._LDFLAGS.
63531
63532 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63533
63534         * lib/argz_.h: Sync from Libtool.
63535
63536         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
63537                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
63538
63539         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
63540
63541 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
63542
63543         * modules/trim: New file.
63544
63545 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
63546
63547         * lib/trim.h: New file.
63548         * lib/trim.c: New file.
63549
63550 2006-09-05  Bruno Haible  <bruno@clisp.org>
63551
63552         * MODULES.html.sh (String handling): Add trim.
63553
63554 2006-09-04  Karl Berry  <karl@gnu.org>
63555
63556         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
63557         until next release.
63558
63559 2006-09-03  Bruno Haible  <bruno@clisp.org>
63560
63561         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
63562         correctly.
63563
63564 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
63565
63566         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
63567         not gl_GETLOADAVG.  Omit unneeded semicolons.
63568         Problems reported by Ralf Wildenhues in
63569         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
63570         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
63571         at the end, which is the usual gnulib style.
63572
63573         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
63574         of doing all the work ourselves.
63575         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
63576         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
63577
63578 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
63579
63580         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
63581         Problem reported by Ralf Wildenhues in
63582         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
63583
63584         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
63585         HAVE_STRUCT_STATFS_F_FSTYPENAME.
63586
63587 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
63588
63589         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
63590         yesterday's patch by changing test -n to test -z.
63591
63592 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
63593
63594         * modules/getloadavg (Files): Add m4/getloadavg.m4.
63595         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
63596         the former is now obsolescent.
63597
63598         * modules/chdir-long (Depends-on): Add fcntl.
63599
63600 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
63601
63602         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
63603         obsolescent, and programs should use gnulib instead.
63604         * m4/getloadavg.m4: New file, with contents taken from Autoconf
63605         but with prefixes changed.
63606
63607 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
63608
63609         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
63610         or stdbool.h, because they might not exist while configuring.
63611
63612         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
63613         Don't include unistd.h or limits.h; not needed, since chdir-long.h
63614         does that for us.
63615         (O_DIRECTORY): Remove.
63616
63617 2006-08-31  Eric Blake  <ebb9@byu.net>
63618
63619         * gnulib-tool: Don't let emacs change spaces to TAB.
63620
63621 2006-08-31  Bruno Haible  <bruno@clisp.org>
63622
63623         * gnulib-tool: When calling func_import more than once, do it in a
63624         subshell.
63625         Reported by Eric Blake <ebb9@byu.net>.
63626
63627 2006-08-31  Bruno Haible  <bruno@clisp.org>
63628
63629         * gnulib-tool (nl): Remove variable.
63630         (sed_transform_lib_file): Use more robust test for config-h module.
63631         (func_import): Fix typo in 2006-08-25 patch.
63632
63633 2006-08-31  Bruno Haible  <bruno@clisp.org>
63634
63635         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
63636         specified, augment Makefile.am variables instead of assigning them.
63637
63638 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
63639
63640         Work around a bug in both the Linux and SunOS 64-bit kernels:
63641         nanosleep mishandles sleeps for longer than 2**31 seconds.
63642         Problem reported by Frank v Waveren in
63643         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
63644         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
63645         Check for nanosleep bug.
63646         (LIB_NANOSLEEP): Append clock_gettime library if needed.
63647
63648 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
63649
63650         Work around a bug in both the Linux and SunOS 64-bit kernels:
63651         nanosleep mishandles sleeps for longer than 2**31 seconds.
63652         Problem reported by Frank v Waveren in
63653         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
63654         * lib/nanosleep.c (BILLION): New constant.
63655         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
63656         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
63657         implementation.
63658
63659 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
63660
63661         * modules/nanosleep (Depends-on): Add gettime.
63662
63663 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
63664         and Simon Josefsson  <jas@extundo.com>
63665         and Oskar Liljeblad  <oskar@osk.mine.nu>
63666
63667         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
63668         * gnulib-tool (func_import): New license type 'unmodifiable license
63669         text'.
63670         * modules/fdl: Use it.  Longer description.
63671         * module/gpl, module/lgpl: New files.
63672
63673 2006-08-30  Jim Meyering  <jim@meyering.net>
63674
63675         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
63676         shadowing the parameter.
63677
63678 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63679
63680         Sync from Libtool:
63681
63682         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63683
63684         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
63685         sharing with gnulib.  Report by Eric Blake.
63686
63687 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
63688
63689         * modules/isapipe: New file.
63690         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
63691
63692 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
63693
63694         * modules/configmake (Makefile.am): Add a comment, and omit
63695         the CONFIGMAKE_ prefix from generated macro names.  Suggested
63696         by Bruno Haible.
63697
63698 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
63699
63700         * m4/isapipe.m4: New file.
63701
63702 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
63703
63704         * lib/isapipe.c, lib/isapipe.h: New files.
63705
63706 2006-08-29  Jim Meyering  <jim@meyering.net>
63707
63708         * modules/configmake (Makefile.am): Make configmake.h depend on
63709         Makefile.  Otherwise, a stale configmake.h could hang around.
63710
63711 2006-08-29  Eric Blake  <ebb9@byu.net>
63712
63713         * lib/error.c (error_at_line, print_errno_message): Match libc, after
63714         resolution of upstream bug 3044.
63715
63716 2006-08-29  Bruno Haible  <bruno@clisp.org>
63717
63718         * modules/localcharset (Depends-on): Add configmake.
63719         (Makefile.am): Remove setting of LIBDIR through DEFS.
63720
63721 2006-08-29  Bruno Haible  <bruno@clisp.org>
63722
63723         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
63724         defined.
63725
63726 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
63727
63728         * modules/fcntl: New file.
63729         * modules/chdir-safer (Depends-on): Add fcntl.
63730         * modules/fts: Likewise.
63731         * modules/mkdir-p: Likewise.
63732
63733         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
63734         This undoes the most recent change, since we're now addressing the
63735         problem in a different way.
63736
63737         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
63738         into output, since the output might be called Makefile.am even
63739         if $makefile_name is something different.
63740         (func_import): Use $makefile_am rather than
63741         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
63742         empty.
63743
63744         * modules/inttypes (Files): Add m4/inttypes-h.m4.
63745
63746 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
63747
63748         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
63749         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
63750         recent change to stdint.m4, since we're now addressing the problem in a
63751         different way.
63752
63753 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
63754
63755         * m4/fcntl_h.m4: New file.
63756
63757 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
63758
63759         * lib/fcntl_.h: New file.
63760         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
63761         the fcntl module.
63762         * lib/dirchownmod.c: Likewise.
63763         * lib/fts.c: Likewise.
63764
63765         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
63766         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
63767         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
63768         just before including <inttypes.h>, to avoid circular inclusion.
63769
63770 2006-08-28  Jim Meyering  <jim@meyering.net>
63771
63772         * doc/visibility.texi: Actually read and correct the grammar of the
63773         sentence affected by yesterday's change.
63774
63775 2006-08-28  Eric Blake  <ebb9@byu.net>
63776
63777         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
63778         needs wrapper.
63779
63780 2006-08-28  Eric Blake  <ebb9@byu.net>
63781
63782         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
63783
63784 2006-08-28  Eric Blake  <ebb9@byu.net>
63785
63786         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
63787
63788 2006-08-28  Bruno Haible  <bruno@clisp.org>
63789
63790         * modules/c-strstr: New file, from GNU gettext.
63791         * MODULES.html.sh (String handling): Add c-strstr.
63792
63793 2006-08-28  Bruno Haible  <bruno@clisp.org>
63794
63795         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
63796         macros.
63797         Reported by Eric Blake.
63798
63799 2006-08-28  Bruno Haible  <bruno@clisp.org>
63800
63801         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
63802         (VASNPRINTF): Return a string of length > INT_MAX without failing.
63803         * lib/vasprintf.c: Include errno.h, limits.h.
63804         (EOVERFLOW): New fallback definition.
63805         (vasprintf): Test here whether the string length is > INT_MAX.
63806         * lib/vsnprintf.c: Include errno.h, limits.h.
63807         (EOVERFLOW): New fallback definition.
63808         (vsnprintf): Fix bug when generated string was too long for the buffer.
63809         Test here whether the string length is > INT_MAX.
63810
63811 2006-08-28  Bruno Haible  <bruno@clisp.org>
63812
63813         * lib/inttypes_.h (SCNX*): Remove definitions.
63814         Reported by Eric Blake.
63815
63816 2006-08-28  Bruno Haible  <bruno@clisp.org>
63817
63818         * lib/c-strstr.h: New file, from GNU gettext.
63819         * lib/c-strstr.c: New file, from GNU gettext.
63820
63821 2006-08-28  Bruno Haible  <bruno@clisp.org>
63822
63823         * gnulib-tool: Reorder some statements.
63824
63825 2006-08-28  Bruno Haible  <bruno@clisp.org>
63826
63827         * gnulib-tool: New option --makefile-name.
63828         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
63829         $makefile_name.
63830         (func_import): Write $makefile_name to the cache file, and read it from
63831         there unless explicitly specified. Use $makefile_name as file name
63832         instead of Makefile.am. Adjust the recommendations accordingly.
63833
63834 2006-08-28  Bruno Haible  <bruno@clisp.org>
63835
63836         * gnulib-tool (func_verify_module): Check against misapplying patch.
63837
63838 2006-08-28  Bruno Haible  <bruno@clisp.org>
63839
63840         * gnulib-tool (func_relativize, func_relconcat): New functions.
63841         Give an error if --local-dir is given with --update.
63842         Remove trailing slashes from $local_gnulib_dir.
63843         (func_import): Store the relativized $local_gnulib_dir in
63844         gnulib-cache.m4, and read it from there if not specified explicitly.
63845
63846 2006-08-28  Bruno Haible  <bruno@clisp.org>
63847
63848         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
63849         is the current directory. Respect also $local_gnulib_dir.
63850
63851 2006-08-28  Bruno Haible  <bruno@clisp.org>
63852             Simon Josefsson  <jas@extundo.com>
63853
63854         BeOS portability.
63855         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
63856
63857 2006-08-27  Jim Meyering  <jim@meyering.net>
63858
63859         * doc/visibility.texi: Remove duplicate word: "pointer".
63860
63861 2006-08-26  Bruno Haible  <bruno@clisp.org>
63862
63863         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
63864         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
63865         (Makefile.am): Create inttypes.h from inttypes_.h.
63866         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
63867
63868         * modules/imaxabs: New file.
63869
63870         * modules/imaxdiv: New file.
63871
63872 2006-08-26  Bruno Haible  <bruno@clisp.org>
63873
63874         * m4/inttypes.m4: New file.
63875         * m4/_inttypes_h.m4: Remove file.
63876         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
63877         PRI_MACROS_BROKEN.
63878         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
63879
63880         * m4/imaxabs.m4: New file.
63881
63882         * m4/imaxdiv.m4: New file.
63883
63884 2006-08-26  Bruno Haible  <bruno@clisp.org>
63885
63886         * lib/inttypes_.h: New file.
63887         * lib/inttypes.h: Remove file.
63888         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
63889
63890         * lib/imaxabs.c: New file.
63891
63892         * lib/imaxdiv.c: New file.
63893
63894 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
63895
63896         New config-h module, so that "make" output needn't be cluttered
63897         by -DHAVE_CONFIG_H.
63898         * MODULES.html.sh (Support for building libraries and executables):
63899         Add config-h.
63900         * modules/config-h: New file.
63901         * gnulib-tool (nl, sed_transform_lib_file): New vars.
63902         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
63903         the config-h module is used.
63904
63905         New configmake module, so that "make" output needn't be cluttered
63906         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
63907         * MODULES.html.sh (Support for building libraries and executables):
63908         Add configmake.
63909         * modules/configmake: New file.
63910
63911 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
63912
63913         * m4/config-h.m4: New file.
63914
63915 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
63916
63917         * config/srclist.txt: Add elisp-comp.
63918
63919 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
63920
63921         * MODULES.html.sh (Support for building libraries and executables):
63922         Add elisp-comp.
63923         * build-aux/elisp-comp: New file.
63924         * modules/elisp-comp: New file.
63925
63926 2006-08-24  Bruno Haible  <bruno@clisp.org>
63927
63928         * gnulib-tool (func_create_testdir): Use non-default values of
63929         sourcebase and m4base.
63930
63931 2006-08-24  Bruno Haible  <bruno@clisp.org>
63932
63933         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
63934         HTML structure.
63935
63936 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
63937
63938         * modules/openat (Depends-on): Add lchown.
63939
63940 2006-08-23  Bruno Haible  <bruno@clisp.org>
63941
63942         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
63943         of gl_LOCK_EARLY instead of gl_LOCK.
63944
63945 2006-08-23  Bruno Haible  <bruno@clisp.org>
63946
63947         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
63948         on OSF/1 to no.
63949         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
63950
63951 2006-08-23  Bruno Haible  <bruno@clisp.org>
63952
63953         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
63954         as unusable.
63955
63956         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
63957         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
63958         (gl_LOCK): New macro.
63959
63960 2006-08-22  Simon Josefsson  <jas@extundo.com>
63961
63962         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
63963         to md5 module.
63964
63965 2006-08-22  Simon Josefsson  <jas@extundo.com>
63966
63967         * MODULES.html.sh: Add "Support for maintaining and release
63968         projects".
63969
63970         * build-aux/gnupload: New file, from coreutils.
63971
63972 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
63973
63974         Avoid the need for AC_LIBSOURCES in m4 macros.
63975         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
63976         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
63977         * modules/check-version (EXTRA_DIST): Add check-version.h.
63978         * modules/crc (EXTRA_DIST): Add crc.h.
63979         * modules/des (EXTRA_DIST): Add des.h.
63980         * modules/gc (EXTRA_DIST): Add gc.h.
63981         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
63982         * modules/getline (EXTRA_DIST): Add getline.h.
63983         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
63984         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
63985         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
63986         * modules/md2 (EXTRA_DIST): Add md2.h.
63987         * modules/md4 (EXTRA_DIST): Add md4.h.
63988         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
63989         * modules/read-file (EXTRA_DIST): Add read-file.h.
63990         * modules/readline (EXTRA_DIST): Add readline.h.
63991         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
63992         rijndael-api-fst.h.
63993
63994 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
63995
63996         * m4/rijndael.m4 (gl_ARCFOUR):
63997         * m4/arctwo.m4 (gl_ARCTWO):
63998         * m4/check-version.m4 (gl_CHECK_VERSION):
63999         * m4/crc.m4 (gl_CRC):
64000         * m4/des.m4 (gl_DES):
64001         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
64002         * m4/gc.m4 (gl_GC):
64003         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
64004         * m4/getline.m4 (gl_FUNC_GETLINE):
64005         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
64006         * m4/hmac-md5.m4 (gl_HMAC_MD5):
64007         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
64008         * m4/md2.m4 (gl_MD2):
64009         * m4/md4.m4 (gl_MD4):
64010         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
64011         * m4/read-file.m4 (gl_FUNC_READ_FILE):
64012         * m4/readline.m4 (gl_FUNC_READLINE):
64013         * m4/rijndael.m4 (gl_RIJNDAEL):
64014         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
64015         to get the necessary .h files and whatnot.
64016
64017 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
64018
64019         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
64020         gnulib rather than the other way around.
64021         * config/srclistvars.sh (COREUTILS): Remove.
64022
64023 2006-08-22  Jim Meyering  <jim@meyering.net>
64024
64025         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
64026
64027         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
64028
64029 2006-08-22  Eric Blake  <ebb9@byu.net>
64030
64031         * modules/regexprops-generic: New file.
64032         * MODULES.html.sh (Support for building documentation): List it.
64033
64034 2006-08-22  Eric Blake  <ebb9@byu.net>
64035
64036         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
64037         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
64038         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
64039         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
64040
64041 2006-08-22  Bruno Haible  <bruno@clisp.org>
64042
64043         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
64044         and lib_LTLIBRARIES like the other lib_* variables.
64045
64046 2006-08-22  Bruno Haible  <bruno@clisp.org>
64047
64048         * build-aux/x-to-1.in: New file, from GNU gettext.
64049
64050 2006-08-22  Bruno Haible  <bruno@clisp.org>
64051
64052         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
64053         <utmpx.h> exists.
64054
64055 2006-08-22  Bruno Haible  <bruno@clisp.org>
64056
64057         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
64058         <utmpx.h> exists.
64059
64060 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
64061
64062         BeOS portability.
64063         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
64064         exist.
64065         Problem reported by Bruno Haible.
64066
64067 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
64068
64069         Avoid the need for AC_LIBSOURCES in m4 macros.
64070         * modules/acl (EXTRA_DIST): Add acl.h.
64071         * modules/argmatch (Files): Add m4/argmatch.m4.
64072         (configure.ac): Add gl_ARGMATCH.
64073         (EXTRA_DIST): Renamed from lib_SOURCES, for
64074         consistency with the other modules.  Remove argmatch.c.
64075         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
64076         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
64077         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
64078         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
64079         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
64080         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
64081         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
64082         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
64083         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
64084         * modules/closeout (EXTRA_DIST): Add closeout.h.
64085         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
64086         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
64087         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
64088         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
64089         dirname.h; remove basename.c and stripslash.c.
64090         * modules/exclude (EXTRA_DIST): Add exclude.h.
64091         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
64092         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
64093         * modules/file-type (EXTRA_DIST): Add file-type.h.
64094         * modules/filemode (EXTRA_DIST): Add filemode.h.
64095         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
64096         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
64097         * modules/fpending (EXTRA_DIST): Add __fpending.h.
64098         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
64099         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
64100         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
64101         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
64102         * modules/getdate (EXTRA_DIST): Add getdate.c.
64103         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
64104         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
64105         * modules/getpass (EXTRA_DIST): Add getpass.h.
64106         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
64107         * modules/group-member (EXTRA_DIST): Add group-member.h.
64108         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
64109         * modules/hash (EXTRA_DIST): Add hash.h.
64110         * modules/human (EXTRA_DIST): Add human.h.
64111         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
64112         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
64113         * modules/lchown (EXTRA_DIST): Add lchown.h.
64114         * modules/long-options (EXTRA_DIST): Add long-options.h.
64115         * modules/lstat (EXTRA_DIST): Add lstat.h.
64116         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
64117         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
64118         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
64119         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
64120         * modules/memxor (EXTRA_DIST): Add memxor.h.
64121         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
64122         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
64123         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
64124         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
64125         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
64126         * modules/physmem (EXTRA_DIST): Add physmem.h.
64127         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
64128         * modules/posixver (EXTRA_DIST): Add posixver.h.
64129         * modules/quote (EXTRA_DIST): Add quote.h.
64130         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
64131         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
64132         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
64133         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
64134         regex_internal.h regexec.c.
64135         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
64136         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
64137         * modules/same (EXTRA_DIST): Add same.h.
64138         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
64139         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
64140         * modules/savedir (EXTRA_DIST): Add savedir.h.
64141         * modules/sha1 (EXTRA_DIST): Add sha1.h.
64142         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
64143         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
64144         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
64145         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
64146         * modules/strdup (EXTRA_DIST): Add strdup.h.
64147         * modules/strftime (EXTRA_DIST): Add strftime.h.
64148         * modules/strndup (EXTRA_DIST): Add strndup.h.
64149         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
64150         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
64151         * modules/time_r (EXTRA_DIST): Add time_r.h.
64152         * modules/timespec (EXTRA_DIST): Add timespec.h.
64153         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
64154         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
64155         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
64156         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
64157         * modules/userspec (EXTRA_DIST): Add userspec.h.
64158         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
64159         * modules/utimens (EXTRA_DIST): Add utimens.h.
64160         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
64161         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
64162         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
64163         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
64164         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
64165         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
64166         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
64167         * modules/yesno (EXTRA_DIST): Add yesno.h.
64168
64169 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
64170
64171         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
64172
64173         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
64174         * m4/dev-ino.m4, same-inode.m4: Remove.
64175
64176         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
64177         * m4/acl.m4 (AC_FUNC_ACL):
64178         * m4/backupfile.m4 (gl_BACKUPFILE):
64179         * m4/c-strtod.m4 (gl_C99_STRTOLD):
64180         * m4/canon-host.m4 (gl_CANON_HOST):
64181         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
64182         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
64183         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
64184         * m4/cloexec.m4 (gl_CLOEXEC):
64185         * m4/close-stream.m4 (gl_CLOSE_STREAM):
64186         * m4/closeout.m4 (gl_CLOSEOUT):
64187         * m4/dirfd.m4 (gl_FUNC_DIRFD):
64188         * m4/dirname.m4 (gl_DIRNAME):
64189         * m4/exclude.m4 (gl_EXCLUDE):
64190         * m4/exitfail.m4 (gl_EXITFAIL):
64191         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
64192         * m4/file-type.m4 (gl_FILE_TYPE):
64193         * m4/filemode.m4 (gl_FILEMODE):
64194         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
64195         * m4/fpending.m4 (gl_FUNC_FPENDING):
64196         * m4/fprintftime.m4 (gl_FPRINTFTIME):
64197         * m4/fts.m4 (gl_FUNC_FTS):
64198         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
64199         * m4/getdate.m4 (gl_GETDATE):
64200         * m4/gethrxtime.m4 (gl_GETHRXTIME):
64201         * m4/getpagesize.m4 (gl_GETPAGESIZE):
64202         * m4/getpass.m4 (gl_FUNC_GETPASS):
64203         * m4/gettime.m4 (gl_GETTIME):
64204         * m4/getugroups.m4 (gl_GETUGROUPS):
64205         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
64206         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
64207         * m4/hard-locale.m4 (gl_HARD_LOCALE):
64208         * m4/hash.m4 (gl_HASH):
64209         * m4/idcache.m4 (gl_IDCACHE):
64210         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
64211         * m4/lchown.m4 (gl_FUNC_LCHOWN):
64212         * m4/long-options.m4 (gl_LONG_OPTIONS):
64213         * m4/lstat.m4 (gl_FUNC_LSTAT):
64214         * m4/md5.m4 (gl_MD5):
64215         * m4/memcasecmp.m4 (gl_MEMCASECMP):
64216         * m4/memcoll.m4 (gl_MEMCOLL):
64217         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
64218         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
64219         * m4/memxor.m4 (gl_MEMXOR):
64220         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
64221         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
64222         * m4/modechange.m4 (gl_MODECHANGE):
64223         * m4/mountlist.m4 (gl_MOUNTLIST):
64224         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
64225         * m4/openat.m4 (gl_FUNC_OPENAT):
64226         * m4/pathmax.m4 (gl_PATHMAX):
64227         * m4/physmem.m4 (gl_PHYSMEM):
64228         * m4/posixtm.m4 (gl_POSIXTM):
64229         * m4/posixver.m4 (gl_POSIXVER):
64230         * m4/quote.m4 (gl_QUOTE):
64231         * m4/quotearg.m4 (gl_QUOTEARG):
64232         * m4/readtokens.m4 (gl_READTOKENS):
64233         * m4/readutmp.m4 (gl_READUTMP):
64234         * m4/regex.m4 (gl_REGEX):
64235         * m4/safe-read.m4 (gl_SAFE_READ):
64236         * m4/safe-write.m4 (gl_SAFE_WRITE):
64237         * m4/same.m4 (gl_SAME):
64238         * m4/save-cwd.m4 (gl_SAVE_CWD):
64239         * m4/savedir.m4 (gl_SAVEDIR):
64240         * m4/settime.m4 (gl_SETTIME):
64241         * m4/sha1.m4 (gl_SHA1):
64242         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
64243         * m4/stat-macros.m4 (gl_STAT_MACROS):
64244         * m4/stat-time.m4 (gl_STAT_TIME):
64245         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
64246         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
64247         * m4/strdup.m4 (gl_FUNC_STRDUP):
64248         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
64249         * m4/strndup.m4 (gl_FUNC_STRNDUP):
64250         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
64251         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
64252         * m4/time_r.m4 (gl_TIME_R):
64253         * m4/timespec.m4 (gl_TIMESPEC):
64254         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
64255         * m4/unlinkdir.m4 (gl_UNLINKDIR):
64256         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
64257         * m4/userspec.m4 (gl_USERSPEC):
64258         * m4/utimecmp.m4 (gl_UTIMECMP):
64259         * m4/utimens.m4 (gl_UTIMENS):
64260         * m4/xalloc.m4 (gl_XALLOC):
64261         * m4/xgetcwd.m4 (gl_XGETCWD):
64262         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
64263         * m4/xreadlink.m4 (gl_XREADLINK):
64264         * m4/xstrtod.m4 (gl_XSTRTOD):
64265         * m4/yesno.m4 (gl_YESNO):
64266         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
64267         to get the necessary .h files and whatnot.
64268
64269 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
64270             Bruno Haible  <bruno@clisp.org>
64271
64272         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
64273         /bin/sh understanding of '!' conditional negation.
64274
64275 2006-08-21  Jim Meyering  <jim@meyering.net>
64276
64277         * modules/openat (Depends-on): Really alphabetize.
64278
64279         * modules/acl (Depends-on): Add error and quote.
64280
64281         * check-module (find_included_lib_files): Add at-func.c to the
64282         ok-to-include-more-than-once white list.
64283
64284         * modules/openat (Depends-on): Add lstat.  Alphabetize.
64285
64286 2006-08-21  Bruno Haible  <bruno@clisp.org>
64287
64288         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
64289         Emit a pkgdata_DATA variable only if some snippets add contents to it.
64290         Reported by Martin Lambers <marlam@marlam.de>.
64291
64292 2006-08-21  Bruno Haible  <bruno@clisp.org>
64293
64294         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
64295         specify an installation location, don't emit a noinst_LIBRARIES or
64296         noinst_LTLIBRARIES assignment.
64297
64298 2006-08-21  Bruno Haible  <bruno@clisp.org>
64299
64300         BeOS portability.
64301         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
64302         BeOS has mbrtowc() but no <wctype.h>.
64303
64304 2006-08-21  Bruno Haible  <bruno@clisp.org>
64305
64306         BeOS portability.
64307         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
64308         exist.
64309
64310 2006-08-21  Bruno Haible  <bruno@clisp.org>
64311
64312         BeOS portability.
64313         * lib/mbchar.h: Include <wctype.h> only if it exists.
64314
64315 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
64316
64317         Remove files that are no longer needed by their respective modules.
64318         * m4/obstack.m4: Remove.
64319         * m4/strerror_r.m4: Remove.
64320         * m4/uint32_t.m4: Remove.
64321         * m4/uintptr_t.m4: Remove.
64322         * m4/ullong_max.m4: Remove.
64323         * m4/xstrtoimax.m4: Remove.
64324         * m4/xstrtoumax.m4: Remove.
64325
64326         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
64327         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
64328         dependencies now capture this.
64329
64330         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
64331         Do not use AC_LIBSOURCES, since gnulib modules now do this.
64332         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
64333         * m4/human.m4 (gl_HUMAN): Likewise.
64334         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
64335         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
64336
64337         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
64338
64339         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
64340         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
64341         stdint.
64342         * m4/human.m4 (gl_HUMAN): Likewise.
64343         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
64344         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
64345         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
64346         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
64347         * m4/xstrtol (gl_XSTRTOL): Likewise.
64348
64349         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
64350         AC_TYPE_LONG_LONG_INT.
64351         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
64352         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
64353         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
64354         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
64355
64356         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
64357         on stdbool.
64358
64359         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
64360         (gl_PREREQ_XSTRTOUL): Remove.
64361
64362         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
64363
64364         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
64365         mode.
64366
64367 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
64368
64369         Add and change modules to make it easier for coreutils to use
64370         gnulib-tool.
64371         * modules/backupfile (Files): Remove m4/d-ino.m4.
64372         (Depends-on): Add d-ino.
64373         * modules/cycle-check (Depends-on): Add stdint.
64374         (lib_SOURCES): Add cycle-check.h.
64375         * modules/d-ino: New module.
64376         * modules/d-type: New module.
64377         * modules/error (Files): Remove m4/strerror_r.m4.
64378         * modules/filemode (Files): Add m4/st_dm_mode.m4.
64379         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
64380         m4/inttypes_h.m4, m4/uintmax_t.m4.
64381         (Depends-on): Add stdint.
64382         (lib_SOURCES): Add fsusage.h.
64383         * modules/getcwd (Files): Remove d-ino.m4.
64384         (Depends-on): Add d-ino.
64385         * modules/getndelim2 (Depends-on): Add stdint.
64386         * modules/glob (Files): Remove m4/d-type.m4.
64387         (Depends-on): Add d-type.
64388         * modules/host-os: New module.
64389         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
64390         m4/inttypes_h.m4, m4/uintmax_t.m4.
64391         * Depends-on: Add stdint.
64392         (lib_SOURCES): Add human.h.
64393         * modules/inttostr (Files): Remove m4/intmax_t.m4,
64394         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
64395         m4/uintmax_t.m4, m4/ulonglong.m4.
64396         (Depends-on): Add stdint.
64397         (EXTRA_DIST): Add inttostr.h.
64398         * modules/lchmod: New module.
64399         * modules/link-follow: New module.
64400         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
64401         (Depends-on): Add lchmod.
64402         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
64403         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
64404         (Depends-on): Add stdint.
64405         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
64406         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
64407         (Depends-on): Add stdint.
64408         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
64409         * modules/perl: New module.
64410         * modules/regex (Depends-on): Add stdint.
64411         * modules/rmdir-errno: New module.
64412         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
64413         m4/intmax_t.m4.
64414         (Depends-on): Add stdint.
64415         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
64416         m4/uintmax_t.m4.
64417         (Depends-on): Add stdint.
64418         * modules/unlink-busy: New module.
64419         * modules/utimecmp (Depends-on): Add stdint.
64420         * modules/uptime: New module.
64421         * modules/winsz-ioctl: New module.
64422         * modules/winsz-termios: New module.
64423         * modules/xnanosleep (Depends-on): Add nanosleep.
64424         * modules/ullong_max: Remove.
64425         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
64426         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
64427         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
64428         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
64429         (Depends-on): Add inttypes.
64430         (lib_SOURCES): Add xstrtol.h.
64431         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
64432         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
64433         * MODULES.html.sh: Move 'assert' into the assert section.
64434         Move 'dummy' into the linking section.
64435         Remove ullong_max.
64436         Add section for compatibility checks for POSIX:2001 functions,
64437         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
64438         winsz-ioctl, and winsz-termios into it.
64439         Add lchmod.
64440         Add top-level Misc section and put host-os, perl, and uptime
64441         into it.
64442
64443 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
64444
64445         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
64446         now assume the stdint module.  Do not include inttypes.h.
64447         * lib/fsusage.h: Likewise.
64448         * lib/getndelim2.c: Likewise.
64449         * lib/human.h: Likewise.
64450         * lib/inttostr.h: Likewise.
64451         * lib/obstack.c: Likewise.
64452         * lib/regex_internal.h: Likewise.
64453         * lib/tempname.c: Likewise.
64454         * lib/utimecmp.c: Likewise.
64455         * lib/xstrtol.h: Likewise.
64456
64457         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
64458
64459         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
64460         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
64461         * lib/xtime.h: Likewise.
64462
64463 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
64464
64465         * modules/openat (Files): Add lib/fchmodat.c.
64466         Fixes problem reported by Jay Youngman.
64467
64468 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
64469
64470         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
64471         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
64472
64473 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
64474             Bruno Haible  <bruno@clisp.org>
64475
64476         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
64477         and is a script that invokes bison. Tighten the code. Add comments.
64478
64479 2006-08-18  Jim Meyering  <jim@meyering.net>
64480
64481         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
64482         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
64483         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
64484         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
64485
64486 2006-08-18  Bruno Haible  <bruno@clisp.org>
64487
64488         * modules/bison-i18n: New file.
64489         * MODULES.html.sh (Internationalization functions): Add it.
64490
64491 2006-08-18  Bruno Haible  <bruno@clisp.org>
64492
64493         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
64494         sys/statvfs.h. When getmntinfo was found, check its declaration and
64495         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
64496
64497 2006-08-18  Bruno Haible  <bruno@clisp.org>
64498
64499         * m4/bison-i18n.m4: New file, from bison.
64500
64501 2006-08-18  Bruno Haible  <bruno@clisp.org>
64502
64503         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
64504         (ME_DUMMY): Treat "kernfs" as a dummy.
64505         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
64506
64507 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
64508
64509         Update from coreutils.
64510
64511         2006-08-15  Jim Meyering  <jim@meyering.net>
64512
64513         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
64514
64515         2006-01-17  Jim Meyering  <jim@meyering.net>
64516
64517         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
64518
64519         2006-01-11  Jim Meyering  <jim@meyering.net>
64520
64521         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
64522         Check for the lchmod function.
64523
64524 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
64525
64526         Update from coreutils.
64527
64528         * lib/__fpending.h: Add copyright notice.
64529         * lib/fprintftime.h: Likewise.
64530         * lib/savedir.c: Use (C) in copyright notice.
64531         * lib/savedir.h: Likewise.
64532
64533         2006-08-15  Jim Meyering  <jim@meyering.net>
64534
64535         * lib/at-func.c: New file, with the logic of all emulated at-functions.
64536         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
64537         in support of the EXPECTED_ERRNO macro.
64538         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
64539         definitions.  Instead, define the appropriate symbols and include
64540         "at-func.c".
64541         * lib/mkdirat.c (mkdirat): Likewise.
64542         * lib/fchmodat.c (fchmodat): Likewise.
64543         (ENOSYS): Remove definition.
64544         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
64545         it.  Don't include "unistd--.h" -- it wasn't ever used.
64546
64547         2006-01-17  Jim Meyering  <jim@meyering.net>
64548
64549         Rewrite fts.c not to change the current working directory,
64550         by using openat, fstatat, fdopendir, etc..
64551
64552         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
64553         (HAVE_OPENAT_SUPPORT): Define.
64554         [_LIBC] (fchdir): Don't undef or define; no longer used.
64555         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
64556         Now, this `function' always succeeds, and consumes its file descriptor
64557         parameter -- so callers must not close such FDs.  Update callers.
64558         (diropen_fd, opendirat, cwd_advance_fd): New functions.
64559         (diropen): Add parameter, SP.  Adjust all callers.
64560         Implement using diropen_fd, rather than open.
64561         (fts_open): Initialize new member, fts_cwd_fd.
64562         Remove fts_rft-setting code.
64563         (fts_close): Close fts_cwd_fd, if necessary.
64564         (__opendir2): Define in terms of opendir or opendirat,
64565         depending on whether the FST_NOCHDIR flag is set.
64566         (fts_build): Since fts_safe_changedir consumes its FD, and since
64567         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
64568         and close the dup'd file descriptor upon failure.
64569         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
64570         (fts_safe_changedir): Tweak semantics to reflect that this function
64571         now calls cwd_advance_fd and hence consumes its FD argument.
64572         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
64573         [struct FTS] (fts_rft): Remove now-unused member.
64574         [struct FTS] (fts_cycle.state): Improve comment.
64575
64576         * lib/openat.c (openat_needs_fchdir): New function.
64577         * lib/openat.h (openat_needs_fchdir): Declare it.
64578
64579 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
64580
64581         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
64582         Problem and fix reported by Pádraig Brady in
64583         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
64584
64585 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
64586
64587         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
64588
64589 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
64590
64591         * lib/memcoll.c (memcoll): Optimize for the common case where the
64592         arguments are bytewise equal.
64593
64594 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
64595
64596         * doc/regexprops-generic.texi: Add a copyright notice.
64597
64598 2006-08-15  Bruno Haible  <bruno@clisp.org>
64599
64600         * modules/tmpdir (License): Change to LGPL.
64601
64602 2006-08-15  Bruno Haible  <bruno@clisp.org>
64603
64604         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
64605         module.
64606
64607 2006-08-14  Simon Josefsson  <jas@extundo.com>
64608
64609         * config/srclist.txt: Add gnupload.
64610
64611 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
64612
64613         Change copyright notice from LGPL 2 to GPL 2, since that's the
64614         standard form used in the gnulib repository.
64615         * tests/test-lock.c: Likewise.
64616         * tests/test-stdint.c: Likewise.
64617         * tests/test-tls.c: Likewise.
64618
64619         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
64620         prelude-manager.  User shorter URLs for GNU projects, without '?'.
64621         Add copyright notice.
64622
64623         * check-module: Add copyright notice.  Output a copyright
64624         notice if "--version" is specified.
64625         * modules/COPYING: New file.
64626         * tests/test-getaddrinfo.c: Add copyright notice.
64627         * tests/test-verify.c: Likewise.
64628
64629 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
64630
64631         Change copyright notice from LGPL 2 to GPL 2, since that's the
64632         standard form used in the gnulib repository.
64633         * lib/lock.c: LGPL -> GPL.
64634         * lib/lock.h: Likewise.
64635         * lib/strnlen1.c: Likewise.
64636         * lib/strnlen1.h: Likewise.
64637         * lib/tls.c: Likewise.
64638         * lib/tls.h: Likewise.
64639         * lib/tmpdir.c: Likewise.
64640
64641         * lib/TODO: Remove; this belongs only in coreutils.
64642
64643 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
64644
64645         Add copyright notices to long-enough files that lack them, since
64646         otherwise the files aren't clearly free.  Use the same notice that
64647         getdate.texi already uses.
64648         * doc/alloca-opt.texi: Add copyright notice.
64649         * doc/alloca.texi: Likewise.
64650         * doc/ctime.texi: Likewise.
64651         * doc/functions.texi: Likewise.
64652         * doc/gcd.texi: Likewise.
64653         * doc/gnulib-tool.texi: Likewise.
64654         * doc/inet_ntoa.texi: Likewise.
64655         * doc/visibility.texi: Likewise.
64656
64657         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
64658         * doc/quote.texi: Add copyright notice.
64659
64660         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
64661         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
64662         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
64663         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
64664         is now obsolete, and give a pointer to the Sun list.
64665         Add copyright notice.
64666
64667 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
64668
64669         * config/srclistvars.sh: Add copyright notice.
64670
64671 2006-08-14  Eric Blake  <ebb9@byu.net>
64672
64673         Import the following change from libc:
64674
64675         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
64676
64677         Upstream bug 2997.
64678         * lib/misc/error.c: Add space between program name and message if file
64679         name is missing.
64680
64681 2006-08-12  Karl Berry  <karl@gnu.org>
64682
64683         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
64684         remove, these originate in gnulib now.
64685
64686 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64687
64688         * doc/Makefile (standards.info standards.html standards.dvi):
64689         Also depend on make-stds.texi.
64690
64691 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
64692
64693         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
64694         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
64695
64696         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
64697         in wchar_t.  Problem reported by Eric Blake.
64698
64699         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
64700         LEN is smaller than SIZE.  Suggested by Bruno Haible.
64701         Also, help the compiler to keep LEN in a register.
64702
64703 2006-08-11  Eric Blake  <ebb9@byu.net>
64704
64705         * users.txt: Sort.  Add tar.
64706
64707 2006-08-11  Bruno Haible  <bruno@clisp.org>
64708
64709         * users.txt: New file.
64710
64711 2006-08-11  Bruno Haible  <bruno@clisp.org>
64712
64713         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
64714         before <wchar.h>. Needed for OSF/1 and BSD/OS.
64715
64716 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
64717
64718         * modules/snprintf (Depends-on): Remove minmax.
64719         (Maintainer): Add self and Bruno.
64720
64721 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
64722
64723         * lib/.cppi-disable: Add snprintf.h, socket_.h.
64724         * lib/snprintf.c: Include <errno.h> and <limits.h>.
64725         (EOVERFLOW): Define if the system does not.
64726         Do not include "minmax.h"; it wasn't used.
64727         (snprintf): Don't assume size_t promotes to an unsigned type.
64728         Fix bug when generated string was too long for the buffer: the
64729         buffer's contents are supposed to be the initial prefix of the
64730         output.  Don't assume vasnprintf returns EOVERFLOW if the size
64731         exceeds INT_MAX; do the check ourselves.
64732
64733         Import the following changes from libc:
64734
64735         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
64736
64737         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
64738         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
64739         set wc to the byte which couldn't be converted.
64740         (re_string_reconstruct): Don't clear valid_raw_len before calling
64741         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
64742         tip_context using re_string_context_at.
64743
64744         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
64745
64746         * lib/posix/regex.h: g++ still cannot handled [restrict].
64747
64748         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
64749
64750         * lib/posix/regex.h: Remove special handling for VMS.
64751
64752 2006-08-10  Jim Meyering  <jim@meyering.net>
64753
64754         * modules/same-inode: New module.
64755         * modules/dev-ino: New module.
64756         * modules/cycle-check: Depend on these modules, rather than simply
64757         including their .h files.
64758         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
64759         required via m4/cycle-check.m4.
64760         * modules/same: Depend on new same-inode module, rather than
64761         including same-inode.h.
64762         * modules/chdir-safer: New file.
64763
64764         * modules/chown (Depends-on): Add stat-macros.
64765
64766 2006-08-10  Jim Meyering  <jim@meyering.net>
64767
64768         * m4/cycle-check.m4: New file.
64769         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
64770         * m4/dev-ino.m4, m4/same-inode.m4: New files.
64771
64772 2006-08-10  Eric Blake  <ebb9@byu.net>
64773
64774         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
64775         in from original proposal.
64776
64777 2006-08-10  Eric Blake  <ebb9@byu.net>
64778         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
64779
64780         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
64781         namespace.
64782
64783 2006-08-10  Bruno Haible  <bruno@clisp.org>
64784
64785         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
64786         as well.
64787
64788 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
64789
64790         Sync from coreutils.
64791
64792         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
64793
64794         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
64795         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
64796
64797 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
64798
64799         * modules/restrict: Remove; no longer needed now that we assume
64800         Autoconf 2.59 or later.
64801         * MODULES.html.sh: Remove 'restrict'.
64802         * modules/argp (Depends-on): Remove 'restrict'.
64803         * modules/base64 (Depends-on): Likewise.
64804         * modules/gc (Depends-on): Likewise.
64805         * modules/getaddrinfo (Depends-on): Likewise.
64806         * modules/glob (Depends-on): Likewise.
64807         * modules/inet_ntop (Depends-on): Likewise.
64808         * modules/inet_pton (Depends-on): Likewise.
64809         * modules/memxor (Depends-on): Likewise.
64810         * modules/regex (Depends-on): Likewise.
64811         * modules/strtok_r (Depends-on): Likewise.
64812         * modules/time_r (Depends-on): Likewise.
64813
64814 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
64815
64816         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
64817         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
64818         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
64819         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
64820         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
64821         * m4/memxor.m4 (gl_MEMXOR): Likewise.
64822         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
64823         gl_C_RESTRICT replaced by AC_C_RESTRICT.
64824
64825         Merge from coreutils.
64826         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
64827         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
64828         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
64829         * m4/time_r.m4 (gl_TIME_R): Likewise.
64830
64831 2006-08-09  Karl Berry  <karl@gnu.org>
64832
64833         * config/srclist.txt: no more gettext-tools, per Bruno.
64834
64835 2006-08-08  Eric Blake  <ebb9@byu.net>
64836
64837         * modules/verror: New module.
64838         * MODULES.html.sh: Document it.
64839
64840 2006-08-08  Eric Blake  <ebb9@byu.net>
64841
64842         * lib/verror.h, lib/verror.c: New files.
64843
64844 2006-08-08  Eric Blake  <ebb9@byu.net>
64845
64846         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
64847         verror_at_line output complies with GNU Coding Standards even when
64848         file is NULL.
64849
64850 2006-08-07  Bruno Haible  <bruno@clisp.org>
64851
64852         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
64853         versions of AIX.
64854         Reported by Ralf Wildenhues.
64855
64856 2006-08-07  Bruno Haible  <bruno@clisp.org>
64857
64858         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
64859         in an AC_DEFUN. Needed so that the autoconf snippets can use
64860         AC_REQUIRE.
64861
64862 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64863
64864         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
64865         Initialize pkgdata_DATA.
64866         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
64867         overriding it.
64868
64869 2006-08-06  Eric Blake  <ebb9@byu.net>
64870
64871         * lib/error.h: Fold in some upstream changes from glibc.
64872         * lib/error.c: Likewise.
64873
64874 2006-08-04  Bruno Haible  <bruno@clisp.org>
64875
64876         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
64877         Make the mostlyclean-local rule depend on mostlyclean-generic.
64878         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
64879
64880 2006-07-31  Bruno Haible  <bruno@clisp.org>
64881
64882         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
64883         <stdlib.h>, <string.h>.
64884
64885 2006-07-30  Bruno Haible  <bruno@clisp.org>
64886
64887         * modules/readlink (License): Change to LGPL.
64888
64889 2006-07-30  Bruno Haible  <bruno@clisp.org>
64890
64891         * modules/javaversion (Makefile.am): Distribute javaversion.java and
64892         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
64893         set PKGDATADIR to point to it.
64894
64895 2006-07-30  Bruno Haible  <bruno@clisp.org>
64896
64897         * modules/csharpexec (configure.ac): Comment out macro invocation.
64898         * modules/javaexec (configure.ac): Likewise.
64899         * modules/javacomp-script (configure.ac): Likewise.
64900
64901         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
64902
64903 2006-07-30  Bruno Haible  <bruno@clisp.org>
64904
64905         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
64906         linked-list.
64907
64908 2006-07-30  Bruno Haible  <bruno@clisp.org>
64909
64910         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
64911
64912 2006-07-30  Bruno Haible  <bruno@clisp.org>
64913
64914         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
64915         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
64916         get removed.
64917
64918 2006-07-29  Bruno Haible  <bruno@clisp.org>
64919
64920         Make it possible for gnulib-tool to work with locally modified or
64921         augmented gnulib repositories.
64922         * gnulib-tool (func_usage): Document --local-dir option.
64923         (local_gnulib_dir): New variable.
64924         Handle --local-dir option.
64925         (func_lookup_file): New function.
64926         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
64927         (func_get_description, func_get_filelist, func_get_description,
64928         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
64929         func_get_automake_snippet, func_get_include_directive,
64930         func_get_license, func_get_maintainer): Use func_lookup_file.
64931         (func_import, func_create_testdir): Use func_lookup_file.
64932
64933 2006-07-29  Bruno Haible  <bruno@clisp.org>
64934
64935         * modules/setenv (Depends-on): Add unistd.
64936
64937 2006-07-29  Bruno Haible  <bruno@clisp.org>
64938
64939         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
64940
64941 2006-07-29  Bruno Haible  <bruno@clisp.org>
64942
64943         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
64944
64945 2006-07-29  Bruno Haible  <bruno@clisp.org>
64946
64947         * gnulib-tool (import, update): If there is no Makefile.am, look at
64948         aclocal.m4, instead of bailing out.
64949
64950 2006-07-29  Bruno Haible  <bruno@clisp.org>
64951
64952         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
64953         Categorize the options by when they are useful.
64954
64955 2006-07-29  Bruno Haible  <bruno@clisp.org>
64956
64957         * gnulib-tool (func_usage): Document option --no-libtool.
64958         Handle option --no-libtool.
64959         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
64960         for changed semantics of $libtool variable.
64961         (func_import): Likewise. If libtool is not used, show this through
64962         an option --no-libtool.
64963         (func_create_testdir): Update.
64964
64965 2006-07-29  Bruno Haible  <bruno@clisp.org>
64966
64967         * gnulib-tool (func_import): Extend error message about missing
64968         --doc-base.
64969
64970 2006-07-29  Bruno Haible  <bruno@clisp.org>
64971
64972         * gnulib-tool (func_import): Don't create the $docbase directory if
64973         there is no file to store there.
64974
64975 2006-07-29  Bruno Haible  <bruno@clisp.org>
64976
64977         * gnulib-tool (autoconf_minversion): If a --dir option is given and
64978         relevant, look for configure.ac there, not in the current directory.
64979         Also use a simple search for AC_PREREQ, not "autoconf --trace".
64980
64981 2006-07-29  Bruno Haible  <bruno@clisp.org>
64982
64983         * gnulib-tool (SORT): New variable.
64984         (func_usage): Undocument --assume-autoconf option.
64985         Remove --assume-autoconf option handling.
64986         (autoconf_minversion): Determine from the contents of configure.ac.
64987         (func_import): Remove autoconf_minversion handling.
64988         Suggested by Eric Blake.
64989
64990 2006-07-29  Bruno Haible  <bruno@clisp.org>
64991
64992         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
64993
64994 2006-07-29  Bruno Haible  <bruno@clisp.org>
64995
64996         * config/srclist.txt (*setenv.[ch]): Remove rules.
64997
64998 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
64999
65000         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
65001
65002 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
65003
65004         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
65005         arpa/inet.h.
65006
65007 2006-07-28  Simon Josefsson  <jas@extundo.com>
65008
65009         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
65010         * modules/inet_pton (Depends-on): Likewise.
65011
65012 2006-07-28  Simon Josefsson  <jas@extundo.com>
65013
65014         * m4/netinet_in_h.m4: New file.
65015
65016 2006-07-28  Simon Josefsson  <jas@extundo.com>
65017
65018         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
65019         #include's.
65020
65021 2006-07-28  Simon Josefsson  <jas@extundo.com>
65022
65023         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
65024         #include's.
65025
65026 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
65027
65028         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
65029         setgid on directories only if they set these bits.
65030         * lib/modechange.h: Remove obsolete comment about masks.
65031
65032 2006-07-28  Eric Blake  <ebb9@byu.net>
65033
65034         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
65035         macro expansion.
65036
65037 2006-07-28  Bruno Haible  <bruno@clisp.org>
65038
65039         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
65040
65041 2006-07-28  Bruno Haible  <bruno@clisp.org>
65042
65043         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
65044
65045 2006-07-28  Bruno Haible  <bruno@clisp.org>
65046
65047         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
65048         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
65049         Define fallbacks.
65050         Avoids link error on FreeBSD 4.x.
65051         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
65052
65053         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
65054         encoding.
65055         * lib/mbswidth.c (iswcntrl): Likewise.
65056
65057 2006-07-27  Bruno Haible  <bruno@clisp.org>
65058
65059         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
65060         test.
65061
65062 2006-07-27  Bruno Haible  <bruno@clisp.org>
65063
65064         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
65065         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
65066         defined.
65067
65068 2006-07-26  Eric Blake  <ebb9@byu.net>
65069
65070         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
65071
65072 2006-07-26  Eric Blake  <ebb9@byu.net>
65073
65074         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
65075         like mingw that lack mkstemp.
65076         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
65077         avoid compilation warning on mingw.
65078
65079 2006-07-26  Bruno Haible  <bruno@clisp.org>
65080
65081         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
65082         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
65083         INT_FAST*_MIN, INTPTR_MIN.
65084
65085 2006-07-25  Bruno Haible  <bruno@clisp.org>
65086
65087         * modules/version-etc (Depends-on): Add stdarg.
65088
65089 2006-07-25  Bruno Haible  <bruno@clisp.org>
65090
65091         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
65092         complex commands.
65093
65094 2006-07-25  Bruno Haible  <bruno@clisp.org>
65095
65096         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
65097         defined in <stdarg.h> or config.h.
65098
65099 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
65100
65101         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
65102         (gl_STDIO_SAFER): Remove.
65103
65104 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
65105
65106         * MODULES.html.sh (File stream based Input/Output):
65107         Add fopen-safer, tmpfile-safer; remove stdio-safer.
65108         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
65109         * modules/fopen-safer, modules/tmpfile-safer: New files.
65110         * modules/stdio-safer: Remove.
65111
65112 2006-07-24  Bruno Haible  <bruno@clisp.org>
65113
65114         * modules/tmpdir: New file.
65115         * MODULES.html.sh (File system functions): Add it.
65116
65117 2006-07-24  Bruno Haible  <bruno@clisp.org>
65118
65119         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
65120         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
65121
65122 2006-07-24  Bruno Haible  <bruno@clisp.org>
65123
65124         * modules/clean-temp: New file.
65125
65126 2006-07-24  Bruno Haible  <bruno@clisp.org>
65127
65128         * m4/tmpdir.m4: New file, from GNU gettext.
65129
65130 2006-07-24  Bruno Haible  <bruno@clisp.org>
65131
65132         * lib/tmpdir.h: New file, from GNU gettext.
65133         * lib/tmpdir.c: New file, from GNU gettext.
65134
65135 2006-07-24  Bruno Haible  <bruno@clisp.org>
65136
65137         * lib/clean-temp.h: New file, from GNU gettext.
65138         * lib/clean-temp.c: New file, from GNU gettext.
65139
65140 2006-07-23  Eric Blake  <ebb9@byu.net>
65141
65142         * modules/stdio-safer (Files): Add tmpfile-safer.c.
65143         (Depends-on): Add binary-io.
65144
65145 2006-07-23  Eric Blake  <ebb9@byu.net>
65146
65147         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
65148
65149 2006-07-23  Eric Blake  <ebb9@byu.net>
65150
65151         * lib/tmpfile-safer.c: New file.
65152         * lib/stdio-safer.h (fopen_safer): Add prototype.
65153         * lib/stdio--.h (tmpfile): Make safer.
65154
65155 2006-07-23  Bruno Haible  <bruno@clisp.org>
65156
65157         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
65158         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
65159         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
65160         gl_linked_remove_at): Use it.
65161
65162 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
65163         and Simon Josefsson <jas@extundo.com>
65164
65165         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
65166
65167         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
65168
65169 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
65170
65171         * modules/close-stream: New file.
65172         * modules/closeout (Description): Make it clear that it exits
65173         with a diagnostic on error.
65174         (Depends-on): Add close-stream.  Remove fpending, stdbool.
65175         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
65176
65177 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
65178
65179         * m4/close-stream.m4: New file.
65180
65181 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
65182
65183         * lib/close-stream.c, lib/close-stream.h: New files.
65184
65185 2006-07-22  Bruno Haible  <bruno@clisp.org>
65186
65187         Merge from GNU gettext 0.15.
65188
65189         2006-05-01  Bruno Haible  <bruno@clisp.org>
65190
65191                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
65192
65193         2006-07-22  Bruno Haible  <bruno@clisp.org>
65194
65195                 * modules/javaversion: New file.
65196                 * MODULES.html.sh (Java): Add javaversion.
65197
65198         2006-03-12  Bruno Haible  <bruno@clisp.org>
65199
65200                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
65201
65202         2005-12-04  Bruno Haible  <bruno@clisp.org>
65203
65204                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
65205                 (untested).
65206
65207         2006-06-21  Bruno Haible  <bruno@clisp.org>
65208
65209                 Avoid warnings from recent versions of mcs.
65210                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
65211                 -o, -L, -r any more. Use options documented since mcs-1.0
65212                 instead. Similarly for -g.
65213
65214         2005-12-04  Bruno Haible  <bruno@clisp.org>
65215
65216                 * build-aux/csharpcomp.sh.in: Suffix for resources is
65217                 .resources, not .resource.
65218
65219         2005-07-09  Bruno Haible  <bruno@clisp.org>
65220
65221                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
65222                 add a .dll suffix.
65223                 Reported by Mark Junker <mjscod@gmx.de>.
65224
65225         2006-07-22  Bruno Haible  <bruno@clisp.org>
65226
65227                 * modules/gettext: Upgrade to gettext-0.15.
65228                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
65229                 m4/visibility.m4.
65230                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
65231
65232 2006-07-22  Bruno Haible  <bruno@clisp.org>
65233
65234         Merge from GNU gettext 0.15.
65235
65236         2006-03-25  Bruno Haible  <bruno@clisp.org>
65237
65238                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
65239
65240         2006-07-21  Bruno Haible  <bruno@clisp.org>
65241
65242                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
65243                 "1.1".
65244
65245         2006-05-09  Bruno Haible  <bruno@clisp.org>
65246
65247                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
65248                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
65249                 for the conftestver execution.
65250
65251         2006-05-01  Bruno Haible  <bruno@clisp.org>
65252
65253                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
65254                 optional target-version argument. Verify that the compiler
65255                 groks source of the specified source-version, or add -source
65256                 option as necessary. Verify that the compiler produces
65257                 bytecode in the specified target-version, or add -target and
65258                 -source options as necessary. Make the result of the test
65259                 available as variable CONF_JAVAC. Also log error output in
65260                 config.log.
65261
65262         2006-03-11  Bruno Haible  <bruno@clisp.org>
65263
65264                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
65265
65266         2006-05-09  Bruno Haible  <bruno@clisp.org>
65267
65268                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
65269                 CLASSPATH_SEPARATOR to a semicolon.
65270
65271         2006-03-12  Bruno Haible  <bruno@clisp.org>
65272
65273                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
65274                 available as variable CONF_JAVA, for subsequent autoconf
65275                 tests. Also log error output in config.log.
65276
65277         2006-07-19  Bruno Haible  <bruno@clisp.org>
65278
65279                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
65280                 that getline works on glibc2 systems. Needed to avoid trouble
65281                 in relocatable.c.
65282                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
65283
65284         2005-12-04  Bruno Haible  <bruno@clisp.org>
65285
65286                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
65287                 launcher (untested).
65288
65289         2005-12-04  Bruno Haible  <bruno@clisp.org>
65290
65291                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
65292
65293         2006-07-22  Bruno Haible  <bruno@clisp.org>
65294
65295                 * gettext.m4: Update from GNU gettext-0.15.
65296                 * nls.m4: Likewise.
65297                 * po.m4: Likewise.
65298                 * inttypes-pri.m4: Likewise.
65299                 * inttypes-h.m4: Renamed from inttypes.m4.
65300                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
65301
65302 2006-07-22  Bruno Haible  <bruno@clisp.org>
65303
65304         Merge from GNU gettext 0.15.
65305
65306         2005-07-05  Bruno Haible  <bruno@clisp.org>
65307
65308                 * printf-args.c (printf_fetchargs): Work around broken
65309                 definition of wint_t on mingw.
65310
65311         2005-02-12  Bruno Haible  <bruno@clisp.org>
65312
65313                 * xallocsa.h: Add extern "C" for C++.
65314
65315         2006-05-17  Bruno Haible  <bruno@clisp.org>
65316
65317                 Cygwin portability.
65318                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
65319
65320         2006-04-30  Bruno Haible  <bruno@clisp.org>
65321
65322                 * progreloc.c: Include <mach-o/dyld.h> if available.
65323                 (find_executable): Use _NSGetExecutablePath when possible.
65324
65325         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
65326
65327                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
65328                 function.
65329
65330         2005-12-29  Bruno Haible  <bruno@clisp.org>
65331
65332                 * progreloc.c (set_program_name_and_installdir): Fix
65333                 compilation error.
65334
65335         2005-12-04  Bruno Haible  <bruno@clisp.org>
65336
65337                 Cygwin portability.
65338                 * progreloc.c: Include <windows.h> also on Cygwin.
65339                 (find_executable): Add support for Cygwin.
65340                 (set_program_name_and_installdir): Handle also platforms with
65341                 nonempty EXEEXT.
65342
65343         2006-07-11  Bruno Haible  <bruno@clisp.org>
65344
65345                 * javacomp.c: Fix a comment.
65346                 Reported by Jim Meyering.
65347
65348         2006-04-30  Bruno Haible  <bruno@clisp.org>
65349
65350                 * javacomp.h (compile_java_class): Add source_version,
65351                 target_version arguments.
65352                 * javacomp.c: Rewritten to choose only a compiler that
65353                 respects the specified source_version and target_version.
65354
65355         2006-06-27  Bruno Haible  <bruno@clisp.org>
65356
65357                 Assume correct S_ISDIR macro.
65358                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
65359
65360         2006-07-22  Bruno Haible  <bruno@clisp.org>
65361
65362                 * javaversion.h: New file, from GNU gettext.
65363                 * javaversion.c: New file, from GNU gettext.
65364                 * javaversion.java: New file, from GNU gettext.
65365                 * javaversion.class: New file, from GNU gettext.
65366
65367         2006-05-17  Bruno Haible  <bruno@clisp.org>
65368
65369                 Cygwin portability.
65370                 * javaexec.c (execute_java_class): Test for jview program
65371                 also on Cygwin.
65372
65373         2006-04-09  Bruno Haible  <bruno@clisp.org>
65374
65375                 * fatal-signal.c: Don't include string.h.
65376                 (at_fatal_signal): Use a copying loop instead of memcpy.
65377
65378         2005-12-04  Bruno Haible  <bruno@clisp.org>
65379
65380                 * csharpexec.c: Add support for 'clix' launcher (untested).
65381                 (execute_csharp_using_sscli): New function.
65382                 (execute_csharp_program): Call it.
65383
65384         2006-06-21  Bruno Haible  <bruno@clisp.org>
65385
65386                 Avoid warnings from recent versions of mcs.
65387                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
65388                 -o, -L, -r any more. Use options documented since mcs-1.0
65389                 instead. Similarly for -g.
65390
65391         2005-07-09  Bruno Haible  <bruno@clisp.org>
65392
65393                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
65394                 add a .dll suffix.
65395                 Reported by Mark Junker <mjscod@gmx.de>.
65396
65397         2006-06-17  Bruno Haible  <bruno@clisp.org>
65398
65399                 * config.charset: Update for NetBSD 3.0.
65400
65401         2006-05-17  Bruno Haible  <bruno@clisp.org>
65402
65403                 Cygwin portability.
65404                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
65405
65406         2006-05-16  Bruno Haible  <bruno@clisp.org>
65407
65408                 * localcharset.c [CYGWIN]: Include <windows.h>.
65409                 (get_charset_aliases): For Cygwin, return the same CPxxx
65410                 aliases list as under WIN32.
65411                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
65412                 the environment variables. Fall back to GetACP().
65413
65414         2006-04-05  Bruno Haible  <bruno@clisp.org>
65415
65416                 * config.charset: Update Juan Manuel Guerrero's address.
65417
65418         2005-02-12  Bruno Haible  <bruno@clisp.org>
65419
65420                 * allocsa.h: Add extern "C" for C++.
65421
65422         2005-02-10  Bruno Haible  <bruno@clisp.org>
65423
65424                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
65425                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
65426
65427         2006-07-22  Bruno Haible  <bruno@clisp.org>
65428
65429                 * gettext.h: Update to GNU gettext-0.15.
65430
65431 2006-07-22  Bruno Haible  <bruno@clisp.org>
65432
65433         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
65434         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
65435         lib-prefix.m4, longdouble.m4, ssize_t.m4.
65436
65437 2006-07-21  Eric Blake  <ebb9@byu.net>
65438
65439         * modules/stdlib-safer: New file.
65440         * MODULES.html.sh (File stream based Input/Output): Add
65441         stdlib-safer.
65442
65443 2006-07-21  Eric Blake  <ebb9@byu.net>
65444
65445         * lib/stdlib-safer.h: New file from coreutils, required by
65446         stdlib--.h.
65447
65448 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
65449
65450         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
65451
65452 2006-07-20  Bruno Haible  <bruno@clisp.org>
65453
65454         * gnulib-tool: Recognize new option --assume-autoconf.
65455         (autoconf_minversion): New variable.
65456         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
65457
65458 2006-07-20  Bruno Haible  <bruno@clisp.org>
65459
65460         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
65461
65462 2006-07-19  Derek R. Price  <derek@ximbiot.com>
65463
65464         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
65465         Reindent and repaginate.
65466
65467 2006-07-19  Derek Price  <derek@ximbiot.com>
65468
65469         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
65470         Correct grammar.
65471
65472 2006-07-17  Bruno Haible  <bruno@clisp.org>
65473
65474         * modules/list: New file.
65475         * modules/array-list: New file.
65476         * modules/carray-list, modules/carray-list-tests: New files.
65477         * modules/linked-list, modules/linked-list-tests: New files.
65478         * modules/avltree-list, modules/avltree-list-tests: New files.
65479         * modules/rbtree-list, modules/rbtree-list-tests: New files.
65480         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
65481         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
65482         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
65483         * modules/oset: New file.
65484         * modules/array-oset: New file.
65485         * modules/avltree-oset, modules/avltree-oset-tests: New files.
65486         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
65487         * tests/test-carray_list.c: New file.
65488         * tests/test-linked_list.c: New file.
65489         * tests/test-avltree_list.c: New file.
65490         * tests/test-rbtree_list.c: New file.
65491         * tests/test-linkedhash_list.c: New file.
65492         * tests/test-avltreehash_list.c: New file.
65493         * tests/test-rbtreehash_list.c: New file.
65494         * tests/test-avltree_oset.c: New file.
65495         * tests/test-rbtree_oset.c: New file.
65496         * MODULES.html.sh (Container data structures): New section.
65497
65498 2006-07-17  Bruno Haible  <bruno@clisp.org>
65499
65500         * m4/gl_list.m4: New file.
65501
65502 2006-07-17  Bruno Haible  <bruno@clisp.org>
65503
65504         * lib/gl_list.h: New file.
65505         * lib/gl_list.c: New file.
65506         * lib/gl_array_list.h: New file.
65507         * lib/gl_array_list.c: New file.
65508         * lib/gl_carray_list.h: New file.
65509         * lib/gl_carray_list.c: New file.
65510         * lib/gl_linked_list.h: New file.
65511         * lib/gl_linked_list.c: New file.
65512         * lib/gl_anylinked_list1.h: New file.
65513         * lib/gl_anylinked_list2.h: New file.
65514         * lib/gl_avltree_list.h: New file.
65515         * lib/gl_avltree_list.c: New file.
65516         * lib/gl_anyavltree_list1.h: New file.
65517         * lib/gl_anyavltree_list2.h: New file.
65518         * lib/gl_rbtree_list.h: New file.
65519         * lib/gl_rbtree_list.c: New file.
65520         * lib/gl_anyrbtree_list1.h: New file.
65521         * lib/gl_anyrbtree_list2.h: New file.
65522         * lib/gl_anytree_list1.h: New file.
65523         * lib/gl_anytree_list2.h: New file.
65524         * lib/gl_linkedhash_list.h: New file.
65525         * lib/gl_linkedhash_list.c: New file.
65526         * lib/gl_anyhash_list1.h: New file.
65527         * lib/gl_anyhash_list2.h: New file.
65528         * lib/gl_avltreehash_list.h: New file.
65529         * lib/gl_avltreehash_list.c: New file.
65530         * lib/gl_rbtreehash_list.h: New file.
65531         * lib/gl_rbtreehash_list.c: New file.
65532         * lib/gl_anytreehash_list1.h: New file.
65533         * lib/gl_anytreehash_list2.h: New file.
65534
65535         * lib/gl_oset.h: New file.
65536         * lib/gl_oset.c: New file.
65537         * lib/gl_array_oset.h: New file.
65538         * lib/gl_array_oset.c: New file.
65539         * lib/gl_avltree_oset.h: New file.
65540         * lib/gl_avltree_oset.c: New file.
65541         * lib/gl_rbtree_oset.h: New file.
65542         * lib/gl_rbtree_oset.c: New file.
65543         * lib/gl_anytree_oset.h: New file.
65544
65545 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
65546
65547         * m4/mkancesdirs.m4: New file.
65548         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
65549         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
65550         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
65551         it.
65552
65553 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
65554
65555         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
65556         * lib/mkancesdirs.h: New files.
65557         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
65558         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
65559         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
65560         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
65561         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
65562         callers changed.  Revamp internals significantly, by not
65563         attempting to create directories that are temporarily more
65564         permissive than the final results.  Do not attempt to use
65565         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
65566         This removes some race conditions, fixes some bugs, and simplifies
65567         things.  Use new dirchownmod function to do owner and mode changes.
65568         * lib/mkdir-p.h: Likewise.
65569         * lib/modechange.c (octal_to_mode): New function.
65570         (struct mode_change): New member mentioned.
65571         (make_node_op_equals): New arg mentioned.  All callers changed.
65572         (mode_compile): Keep track of which mode bits the user has explicitly
65573         mentioned.
65574         (mode_adjust): New arg DIR, so that we implement the X op correctly.
65575         New arg PMODE_BITS, to keep track of which mode bits the user
65576         mentioned; it treats S_ISUID and S_ISGID speciall.
65577         All callers changed.
65578         * lib/modechange.h: Likewise.
65579
65580 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
65581
65582         * MODULES.html.sh: Add mkancestors.
65583         * modules/mkancesdirs: New module.
65584         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
65585         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
65586         The chdir-safer and afs files are now orphans; I'll remove them
65587         unless someone speaks up.
65588         Add lib/dirchownmod.c, lib/dirchownmod.h.
65589         (Depends-on): Remove alloca, chown, save-cwd, dirname.
65590         Add lchown, mkancesdirs.
65591         (Maintainer): Add self.
65592
65593 2006-07-15  Karl Berry  <karl@gnu.org>
65594
65595         * gnulib-tool: help message wording/arrangement.
65596
65597 2006-07-14  Simon Josefsson  <jas@extundo.com>
65598
65599         * doc/gnulib.texi (Libtool and Windows): New section.
65600
65601 2006-07-12  Simon Josefsson  <jas@extundo.com>
65602
65603         * modules/gendocs (License): Fix license, approved by Karl.
65604
65605 2006-07-12  Eric Blake  <ebb9@byu.net>
65606
65607         * MODULES.html.sh: Add gendocs.
65608
65609 2006-07-11  Eric Blake  <ebb9@byu.net>
65610
65611         * modules/fdl: New module, to install doc/fdl.texi.
65612         * MODULES.html.sh: Add new section for documentation modules.
65613         * gnulib-tool: Avoid space-tab.
65614         (--doc-base): New option, to manage files from doc.
65615
65616 2006-07-11  Eric Blake  <ebb9@byu.net>
65617
65618         * m4/absolute-header.m4: Fix comments to match recent change.
65619
65620 2006-07-11  Eric Blake  <ebb9@byu.net>
65621
65622         * gnulib-tool: List --doc-base before --tests-base.
65623
65624 2006-07-11  Derek R. Price  <derek@ximbiot.com>
65625
65626         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
65627
65628 2006-07-11  Bruno Haible  <bruno@clisp.org>
65629
65630         * README: Mention where to put documentation.
65631
65632 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65633
65634         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
65635
65636 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
65637
65638         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
65639         to stdint.m4.
65640
65641 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
65642
65643         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
65644         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
65645         "no/such/file/stdint.h" when there is no such file, so that
65646         the resulting C code can be parsed by dodgy compilers.
65647         Problems reported by Bob Proulx.
65648
65649 2006-07-10  Derek R. Price  <derek@ximbiot.com>
65650
65651         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
65652         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
65653         macros into the GNU _D_EXACT_NAMLEN.
65654         * lib/savedir.c:  Likewise.
65655         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
65656
65657 2006-07-10  Derek R. Price  <derek@ximbiot.com>
65658         and Paul Eggert  <eggert@cs.ucla.edu>
65659
65660         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
65661         * m4/savedir.m4:
65662         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
65663         macros into the GNU _D_EXACT_NAMLEN.
65664
65665 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
65666
65667         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
65668         around the absolute name, to work around a problem with the HP-UX
65669         11.23 native C compiler, reported by Bob Proulx.
65670
65671 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
65672
65673         * doc/maintain.texi, make-stds.texi: Sync from
65674         <http://savannah.gnu.org/projects/gnustandards>.
65675
65676 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
65677
65678         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
65679
65680 2006-07-09  Jim Meyering  <jim@meyering.net>
65681
65682         * m4/glob.m4: Remove a doubled word in a comment.
65683
65684 2006-07-09  Jim Meyering  <jim@meyering.net>
65685
65686         * lib/argp-pv.c: Remove a doubled word in a comment.
65687         * lib/check-version.c (check_version): Likewise.
65688         * lib/javacomp.c (compile_java_class): Likewise.
65689
65690 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
65691
65692         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
65693         for the benefit of people using Autoconf 2.60.  If you want to
65694         support older Autoconf versions you can copy m4/onceonly_2_57.m4
65695         (or m4/onceonly.m4, if pre-2.57) manually.
65696
65697 2006-07-08  Jim Meyering  <jim@meyering.net>
65698
65699         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
65700         comment.
65701         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
65702         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
65703         comment.
65704
65705 2006-07-08  Jim Meyering  <jim@meyering.net>
65706
65707         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
65708
65709 2006-07-07  Simon Josefsson  <jas@extundo.com>
65710
65711         * tests/test-crc.c: Change expected crc value, the test vector
65712         were probably computed using the old broken crc.c?
65713
65714 2006-07-06  Simon Josefsson  <jas@extundo.com>
65715
65716         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
65717         now the canonical place for the M4 file).
65718
65719         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
65720         from the sys_socket dependency now.
65721
65722         * modules/inet_pton (Files): Ditto.
65723
65724         * modules/inet_ntop (Files): Ditto.
65725
65726 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
65727
65728         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
65729         not gl_PREREQ_GETUSERSHELL.
65730
65731 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65732
65733         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
65734         with only one argument, for Autoconf 2.60.
65735         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
65736         expand to nothing, so add a shell command to avoid syntax error.
65737         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
65738
65739 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65740
65741         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
65742
65743 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
65744
65745         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
65746         no longer needed.  Check for isblank decl.
65747         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
65748         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
65749         of existence.
65750
65751 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
65752
65753         * lib/getloadavg.c: Use __VMS, not VMS.
65754         * lib/getopt.c: Likewise.
65755         * lib/getpagesize.h: Likewise.
65756         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
65757         and probably does not work.
65758
65759 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
65760
65761         * lib/.cppi-disable: Add wcwidth.
65762         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
65763         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
65764         (ISGRAPH): Remove.  All uses changed to isgraph.
65765         (FOLD) [!defined _LIBC]: Remove special case.
65766         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
65767         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
65768         HAVE_ISBLANK.
65769         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
65770         case.
65771
65772 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
65773
65774         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
65775         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
65776         brackets.  Other minor changes to suppress some compiler
65777         warnings.
65778
65779 2006-07-06  Derek R. Price  <derek@ximbiot.com>
65780         and Paul Eggert  <eggert@cs.ucla.edu>
65781
65782         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
65783         of invoking obsolescent AC_HEADER_DIRENT macro.
65784         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
65785         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
65786         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
65787         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
65788         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
65789         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
65790         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
65791         * m4/readdir.m4: Remove; no longer needed.
65792
65793 2006-07-06  Derek R. Price  <derek@ximbiot.com>
65794         and Paul Eggert  <eggert@cs.ucla.edu>
65795
65796         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
65797         Don't worry about this obsolete case any more.
65798         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
65799         directories.
65800         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
65801         worry about this obsolete case any more.
65802         * lib/fts.c: Likewise.
65803         * lib/getcwd.c: Likewise.
65804         * lib/glob.h: Likewise.
65805         * lib/savedir.c: Likewise.
65806
65807 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
65808
65809         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
65810         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
65811         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
65812         needed.
65813         All uses removed.
65814         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
65815         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
65816         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
65817         needed.
65818         * m4/getdate.m4 (gl_GETDATE): Likewise.
65819         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
65820         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
65821         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
65822         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
65823         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
65824         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
65825         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
65826         needed.
65827
65828 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
65829
65830         * lib/memcasecmp.c: Include <limits.h>.
65831         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
65832         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
65833         Don't assume isdigit succeeds only on '0' through '9'.
65834
65835 2006-07-05  Eric Blake  <ebb9@byu.net>
65836
65837         * modules/getaddrinfo (Depends-on): Add snprintf.
65838
65839 2006-07-05  Eric Blake  <ebb9@byu.net>
65840
65841         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
65842         to avoid 'header present but could not be compiled' on cygwin.
65843
65844 2006-07-05  Eric Blake  <ebb9@byu.net>
65845
65846         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
65847         missing from netdb.h.
65848         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
65849
65850 2006-07-05  Derek R. Price  <derek@ximbiot.com>
65851
65852         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
65853         no longer needed.
65854         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
65855         * m4/getdate.m4 (gl_GETDATE): Likewise.
65856         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
65857         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
65858         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
65859         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
65860         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
65861
65862 2006-07-05  Derek R. Price  <derek@ximbiot.com>
65863
65864         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
65865         All uses of is_space replaced by isspace.
65866         * lib/exit.h: Don't talk about STDC_HEADERS.
65867         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
65868         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
65869         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
65870         replaced by isprint etc.
65871         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
65872         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
65873         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
65874         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
65875         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
65876         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
65877
65878 2006-07-05  Bruno Haible  <bruno@clisp.org>
65879
65880         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
65881         the function exists, before testing against AIX.
65882         Reported by Martin Lambers <marlam@marlam.de>.
65883
65884 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
65885
65886         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
65887         From Mark D. Baushke.
65888
65889 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
65890
65891         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
65892         to the absolute name, not just one, to bypass Sun C 5.8's
65893         "warning: #include of /usr/include/... may be non-portable".
65894
65895 2006-07-04  Eric Blake  <ebb9@byu.net>
65896
65897         * modules/dirname-tests: New test module.
65898         * tests/test-dirname.c: New file, replacing dirname.c
65899         TEST_DIRNAME section that was recently deleted.
65900
65901 2006-07-04  Bruno Haible  <bruno@clisp.org>
65902
65903         Assume ANSI C header files and <ctype.h> functions.
65904         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
65905         (mbsnwidth): Use isprint, iscntrl instead.
65906
65907 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
65908
65909         Merge from coreutils.
65910         * MODULES.html.sh: Add xstrtold.
65911         * modules/xstrtold: New file.
65912         * modules/cycle-check (Files): Add lib/same-inode.h.
65913         * modules/dirname (Files): Add m4/double-slash-root.m4.
65914         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
65915         * modules/mkdir-p (Files): Add lib/same-inode.h.
65916         * modules/same (Files): Add lib/same-inode.h.
65917
65918 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
65919
65920         * m4/absolute-header.m4: Renamed from full-header-path.m4.
65921         This is to keep the terminology clean; POSIX talks about
65922         "absolute pathnames", not "full pathnames", but the GNU
65923         Coding Standards say to use "path" for something else;
65924         so use "absolute" to keep both sides happy.
65925         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
65926         Set gl_absolute_header, not gl_full_header_path.
65927         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
65928         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
65929         All uses changed.
65930
65931         Merge from coreutils.
65932
65933         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
65934
65935         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
65936         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
65937         want to require the building of c-strtod.o.
65938         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
65939         needs -lm directly.
65940         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
65941
65942         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
65943
65944         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
65945         --as-needed option if available.  Problem reported by Albert Chin in
65946         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
65947         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
65948         cc merely issues a bunch of annoying warnings for --as-needed
65949         (this problem was reported by Bob Proulx).  Also, try linking with
65950         -lm to detect a bug in binutils 2.16 (this problem was reported
65951         by Ralf Wildenhues).
65952
65953         2006-06-18  Jim Meyering  <jim@meyering.net>
65954
65955         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
65956         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
65957         macro.
65958         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
65959         also check for glibc-2.4's abort-inducing bug.
65960
65961         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
65962         Low-probability clean-up should be to use rmdir to get rid of
65963         the just-created directory, not unlink.
65964
65965         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
65966         configure fail, and request a bug report to inform us about it.
65967         Add a comment that, barring reports to the contrary, in 2007 we'll
65968         assume ftruncate is universally available.
65969
65970         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
65971
65972         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
65973
65974         2006-03-12  Jim Meyering  <jim@meyering.net>
65975
65976         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
65977         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
65978         * m4/same.m4 (gl_SAME): Likewise.
65979         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
65980
65981         2006-03-11  Eric Blake  <ebb9@byu.net>
65982
65983         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
65984         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
65985         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
65986         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
65987
65988 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
65989
65990         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
65991         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
65992         reported by Mark D. Baushke, one in
65993         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
65994
65995         Merge from coreutils.
65996
65997         * lib/.cppi-disable: Add stdint_.h.
65998         * lib/.cvsignore: Add stdint.h.
65999
66000         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
66001
66002         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
66003         both double and long double versions.
66004         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
66005         * lib/xstrtold.c: New file.
66006         * lib/xstrtod.h (xstrtold): New decl.
66007
66008         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
66009
66010         * lib/filemode.c (setst): Remove.
66011         (strmode): Rewrite to avoid setst.  This makes the code shorter,
66012         (arguably) clearer, and the generated code is a bit smaller on my
66013         Debian GNU/Linux stable x86 host.
66014
66015         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
66016
66017         * lib/filemode.c: Include "filemode.h" first, to test the interface.
66018         Assume that filemode.h includes sys/types.h and sys/stat.h.
66019         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
66020         (ftypelet): Reorder to put common cases first, for efficiency.
66021         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
66022         to do 'M'.
66023         (strmode): Renamed from mode_string, and now stores 12 bytes instead
66024         of 10, for compatibility with FreeBSD.  All callers changed.
66025         (filemodestring): Now stores 12 bytes instead of 10, and sets file
66026         types that can't be deduced solely from st_mode.  First arg is now a
66027         const pointer.
66028         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
66029         (strmode): Renamed from mode_string.
66030         (filemodestring): New decl.
66031         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
66032         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
66033         needed.
66034         (S_ISPORT, S_ISWHT): New macros, if not already defined.
66035
66036         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
66037
66038         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
66039         fsusage.h now does that.  Include fsusage.h first, to test interface.
66040         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
66041         at most one method (the old code could have generated decls that
66042         didn't conform to C89, not that this was ever exercised).
66043         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
66044
66045         2006-03-19  Jim Meyering  <jim@meyering.net>
66046
66047         Work even in a chroot where d_ino values for entries in "/"
66048         don't match the stat.st_ino values for the same names.
66049         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
66050         number, iterate through all entries again, using lstat instead.
66051         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
66052         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
66053
66054         * lib/getcwd.c (__getcwd): Clarify a comment.
66055         Use memcpy in place of a call to strcpy.
66056
66057         2006-03-12  Jim Meyering  <jim@meyering.net>
66058
66059         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
66060         matches that of the current directory (which we're about to chdir ".."
66061         out of), then save the dev-ino of the parent, instead.
66062
66063         * lib/same-inode.h (SAME_INODE): New file/macro.
66064         * lib/chdir-safer.c (SAME_INODE): Remove definition.
66065         Include "same-inode.h", instead.
66066         * lib/same.c: Likewise.
66067         * lib/cycle-check.h: Include "same-inode.h".
66068         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
66069         * lib/cycle-check.c (SAME_INODE): Remove definition.
66070         * lib/root-dev-ino.h: Include "same-inode.h".
66071
66072         2006-03-11  Eric Blake  <ebb9@byu.net>
66073
66074         * lib/same.c (same_name): s/base_name/last_component/
66075         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
66076         * lib/filenamecat.c (file_name_concat): Likewise.
66077
66078         2006-03-11  Eric Blake  <ebb9@byu.net>,
66079                     Paul Eggert  <eggert@cs.ucla.edu>
66080
66081         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
66082         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
66083         drive prefix.
66084         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
66085         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
66086         (last_component): New method.
66087         * lib/dirname.c (dir_len): Determine when drive letters need a
66088         subsequent slash.  Preserve // when it is special.
66089         (dir_name): Don't append dot when drive letter is absolute.
66090         [TEST_DIRNAME]: Move into a full-blown gnulib test.
66091         * lib/basename.c (base_name): New semantics - malloc the result.
66092         Preserve // when it is special.  Preserve relative files that look
66093         like drive letters.
66094         (base_len): Preserve // when it is special.
66095         (last_component): New method, similar to old base_name semantics.
66096         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
66097         base_name.  Strip redundant slashes from ///.
66098
66099 2006-07-03  Jim Meyering  <jim@meyering.net>
66100
66101         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
66102         macro is used before the first cycle_check call.
66103
66104 2006-07-03  Eric Blake  <ebb9@byu.net>
66105
66106         * modules/dirname (Depends-on): Add xstrndup.
66107
66108 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
66109
66110         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
66111         test cases, so that config.log is a bit easier to follow.
66112
66113 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
66114
66115         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
66116         both are 64 bits, since this seems to be the tradition, and this
66117         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
66118         we ever run into a host that prefers long long to long in this
66119         case, we'll need another configure-time test.  Problem reported by
66120         Jim Meyering.
66121
66122 2006-07-02  Eric Blake  <ebb9@byu.net>
66123
66124         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
66125
66126 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
66127
66128         * modules/inttypes (Depends-on): No longer depends on stdint.
66129         * modules/stdint (Description): Say more about assumptions.
66130         Say that the fast types might differ.  Say macros are used.
66131         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
66132         (Makefile.am): Revise list of substituted symbols to match
66133         new stdint.m4.
66134         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
66135         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
66136         * tests/test-stdint.c (verify_same_types)
66137         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
66138         the code conforms to C99/C89.
66139         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
66140         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
66141
66142 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
66143
66144         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
66145         but fix a bug, by requiring at least 64 bits.
66146         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
66147         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
66148         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
66149         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
66150
66151         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
66152         changes.  Make 2.59 a prerequisite.  Check and substitute for
66153         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
66154         inttypes.h.  Do not use special include files; just use the
66155         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
66156         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
66157         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
66158         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
66159         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
66160         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
66161         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
66162         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
66163         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
66164         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
66165         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
66166         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
66167         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
66168         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
66169         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
66170         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
66171         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
66172         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
66173         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
66174         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
66175         WINT_MAX.  Check for C99 conformance more strictly, by detecting
66176         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
66177         not check for things that C99 does not require, e.g., int8_t.  If
66178         a test isn't needed unless <stdint.h> isn't working, and is
66179         unlikely to be needed for any other reason, then don't do it
66180         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
66181         size_t, since we assume C89 freestanding at least.  Do not check
66182         for sig_atomic_t, wchar_t, or wint_t, since the code now does
66183         the right thing even if the types are not defined.  Instead use:
66184         (gl_STDINT_TYPE_PROPERTIES): New macro.
66185         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
66186         testing whether <sys/types.h> clashes, as Autoconf does this for
66187         us now.  All uses removed.
66188         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
66189         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
66190         (gl_CHECK_TYPE_SAME):
66191         Remove; no longer needed.
66192         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
66193         exists, since we'll return 0 anyway in that case.
66194         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
66195
66196 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
66197
66198         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
66199         possible collision with system files.
66200         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
66201         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
66202         WCHAR_MIN and WCHAR_MAX in this case.
66203         (<stddef.h>): Do not include; no longer needed.
66204         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
66205         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
66206         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
66207         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
66208         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
66209         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
66210         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
66211         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
66212         !defined(__c99))]: Include in this case too, since it's harmless
66213         now.
66214         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
66215         dangerous to do so.
66216         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
66217         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
66218         (_STDINT_MIN, _STDINT_MAX): New macros.
66219         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
66220         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
66221         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
66222         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
66223         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
66224         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
66225         macros, not typedefs; this simplifies things quite a bit.
66226         Use long int for all types narrower than int64_t.
66227         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
66228         Define in terms of long long int or int64_t or long int,
66229         not int64_t or int32_t.  This saves some compile-time testing.
66230         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
66231         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
66232         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
66233         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
66234         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
66235         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
66236         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
66237         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
66238         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
66239         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
66240         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
66241         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
66242         undef any previous version and define our own version, for
66243         simplicity and consistency with the new macros for types.
66244         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
66245         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
66246         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
66247         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
66248         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
66249         @WINT_T_SUFFIX@ to keep things simple here.
66250         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
66251         Simplify by assuming typical 8/16/32/64 host, since we're
66252         already doing that elsewhere anyway.
66253         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
66254         and assume long long int is 64 bits if available.  This
66255         speeds up 'configure'.
66256
66257 2006-07-01  Eric Blake  <ebb9@byu.net>
66258
66259         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
66260         Reported by Andreas Buening.
66261
66262 2006-07-01  Eric Blake  <ebb9@byu.net>
66263
66264         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
66265
66266 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
66267
66268         * lib/getaddrinfo.c: fixed typo
66269
66270 2006-06-29  Jim Meyering  <jim@meyering.net>
66271
66272         * modules/strftime (Maintainer): Add my name, since with the
66273         FPRINTFTIME changes strftime.c has forked from glibc.
66274
66275 2006-06-29  Eric Blake  <ebb9@byu.net>
66276
66277         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
66278
66279 2006-06-29  Eric Blake  <ebb9@byu.net>
66280
66281         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
66282
66283 2006-06-29  Eric Blake  <ebb9@byu.net>
66284
66285         * lib/stat_.h: New file.
66286
66287 2006-06-29  Eric Blake  <ebb9@byu.net>
66288
66289         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
66290         unused static function.
66291
66292 2006-06-29  Eric Blake  <ebb9@byu.net>
66293
66294         * doc/functions.texi (Function Portability): Document missing lstat
66295         on mingw.
66296
66297 2006-06-29  Eric Blake  <ebb9@byu.net>
66298
66299         * MODULES.html.sh: Add sys_stat.
66300         * modules/sys_stat: New module.
66301         * modules/mkstemp (Depends-on): Add sys_stat.
66302
66303 2006-06-29  Derek R. Price  <derek@ximbiot.com>
66304
66305         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
66306
66307 2006-06-29  Derek R. Price  <derek@ximbiot.com>
66308
66309         * m4/c-bs-a.m4: Removed.
66310
66311 2006-06-29  Derek R. Price  <derek@ximbiot.com>
66312
66313         * lib/strftime.c: Assume strftime() exists.
66314
66315 2006-06-29  Derek Price  <derek@ximbiot.com>
66316
66317         * modules/c-bs-a: Removed - \a is C89.
66318         * MODULES.html.sh: Remove c-bs-a.
66319
66320 2006-06-29  Bruno Haible  <bruno@clisp.org>
66321
66322         * modules/wcwidth (License): Change to LGPL.
66323
66324 2006-06-28  Simon Josefsson  <jas@extundo.com>
66325
66326         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
66327         on _WIN32.
66328
66329         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
66330         getnameinfo.
66331
66332 2006-06-28  Simon Josefsson  <jas@extundo.com>
66333
66334         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
66335
66336 2006-06-28  Simon Josefsson  <jas@extundo.com>
66337
66338         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
66339         functions there.  It will succeed on Windows XP, but on Windows
66340         2000 and (presumably) earlier, it will fail, and use the internal
66341         re-implementation.
66342         (use_win32_p): New function.
66343         (getaddrinfo): Use strtoul on servname, to support numeric ports.
66344         Support AI_NUMERICSERV to disable getservbyname.
66345         (getnameinfo): New function, only supports
66346         NI_NUMERICHOST|NI_NUMERICSERV for now.
66347
66348         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
66349         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
66350         getnameinfo.
66351
66352 2006-06-28  Eric Blake  <ebb9@byu.net>
66353
66354         * modules/wcwidth: New file.
66355         * modules/mbchar (Depends-on): Add wcwidth.
66356         * modules/mbswidth (Depends-on): Add wcwidth.
66357         * MODULES.html.sh: Add wcwidth.
66358
66359 2006-06-28  Eric Blake  <ebb9@byu.net>
66360
66361         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
66362         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
66363
66364 2006-06-28  Eric Blake  <ebb9@byu.net>
66365
66366         * lib/xvasprintf.h: Fix comments.
66367
66368 2006-06-28  Eric Blake  <ebb9@byu.net>
66369
66370         * lib/mbchar.h (wcwidth): Include wcwidth.h.
66371         * lib/mbswidth.c (wcwidth): Move from here...
66372         * lib/wcwidth.h: ...to this new file.
66373
66374 2006-06-28  Derek R. Price  <derek@ximbiot.com>
66375
66376         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
66377
66378         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
66379         it's obsolete.
66380         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
66381
66382 2006-06-28  Derek R. Price  <derek@ximbiot.com>
66383
66384         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
66385         Autoconf 2.60 says this stuff was obsolete.
66386
66387 2006-06-28  Bruno Haible  <bruno@clisp.org>
66388
66389         * modules/wcwidth (Files): Add m4/wchar_t.m4.
66390
66391 2006-06-28  Bruno Haible  <bruno@clisp.org>
66392
66393         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
66394         gt_TYPE_WCHAR_T.
66395
66396 2006-06-28  Bruno Haible  <bruno@clisp.org>
66397
66398         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
66399         declaration for wcwidth.
66400         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
66401
66402 2006-06-28  Bruno Haible  <bruno@clisp.org>
66403
66404         * lib/mkdtemp.c [MINGW]: Include <io.h>.
66405         (mkdir): Define using _mkdir.
66406
66407 2006-06-28  Bruno Haible  <bruno@clisp.org>
66408
66409         * lib/getaddrinfo.h: Fix POSIX URL.
66410         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
66411         _WIN32.
66412         (use_win32_p): Make static.
66413         (getaddrinfo): Reject service name if it is empty or does not consist
66414         solely of decimal digits, or if its value is > 65535.
66415         (getnameinfo): Remove useless casts.
66416
66417 2006-06-27  Simon Josefsson  <jas@extundo.com>
66418
66419         * modules/sys_select: New file, suggested by Bruno Haible, Paul
66420         Eggert and Martin Lambers.
66421
66422 2006-06-27  Simon Josefsson  <jas@extundo.com>
66423
66424         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
66425         Eggert and Martin Lambers.
66426
66427 2006-06-27  Bruno Haible  <bruno@clisp.org>
66428
66429         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
66430         result to 0, not to empty.
66431         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
66432
66433 2006-06-27  Bruno Haible  <bruno@clisp.org>
66434
66435         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
66436
66437 2006-06-26  Simon Josefsson  <jas@extundo.com>
66438
66439         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
66440         present.
66441
66442 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
66443
66444         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
66445         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
66446         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
66447
66448 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
66449
66450         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
66451
66452 2006-06-26  Bruno Haible  <bruno@clisp.org>
66453
66454         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
66455
66456 2006-06-26  Bruno Haible  <bruno@clisp.org>
66457
66458         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
66459
66460 2006-06-26  Bruno Haible  <bruno@clisp.org>
66461
66462         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
66463         SGI C compiler in pre-C99 mode.
66464         Suggested by Mark D. Baushke and Larry Jones.
66465
66466 2006-06-26  Bruno Haible  <bruno@clisp.org>
66467
66468         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
66469         WCHAR_MAX.
66470         Reported by Mark D. Baushke and Larry Jones.
66471
66472 2006-06-26  Bruno Haible  <bruno@clisp.org>
66473
66474         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
66475         in pre-C99 mode.
66476         Suggested by Mark D. Baushke and Larry Jones.
66477
66478 2006-06-23  Simon Josefsson  <jas@extundo.com>
66479             Bruno Haible  <bruno@clisp.org>
66480
66481         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
66482         Emit mostlyclean-local rule.
66483         (func_emit_tests_Makefile_am): Likewise.
66484         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
66485
66486 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
66487
66488         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
66489
66490 2006-06-23  Bruno Haible  <bruno@clisp.org>
66491
66492         * tests/test-stdint.c: Update to match ISO C 99 Technical
66493         Corrigendum 1.
66494
66495 2006-06-23  Bruno Haible  <bruno@clisp.org>
66496
66497         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
66498
66499 2006-06-23  Bruno Haible  <bruno@clisp.org>
66500
66501         * lib/stdint_.h: Treat IRIX like OpenBSD.
66502
66503 2006-06-23  Bruno Haible  <bruno@clisp.org>
66504
66505         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
66506         ISO C 99 Technical Corrigendum 1.
66507
66508 2006-06-22  Simon Josefsson  <jas@extundo.com>
66509
66510         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
66511         MinGW.
66512
66513 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
66514
66515         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
66516         needed.  Some compiler complained about some of them.  Problem reported
66517         by Larry Jones in
66518         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
66519
66520 2006-06-21  Simon Josefsson  <jas@extundo.com>
66521
66522         * tests/test-getaddrinfo.c: New file.
66523
66524         * modules/getaddrinfo-tests: New file.
66525
66526         * MODULES.html.sh: Add inet_pton.
66527
66528         * modules/inet_pton: New file.
66529
66530 2006-06-21  Simon Josefsson  <jas@extundo.com>
66531
66532         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
66533         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
66534         of using the (limited) gnulib implementation on Windows XP.
66535
66536         * m4/inet_pton.m4: New file.
66537
66538 2006-06-21  Simon Josefsson  <jas@extundo.com>
66539
66540         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
66541         variable.
66542
66543         * lib/socket_.h: Don't define WINVER.
66544
66545         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
66546         slightly modified to work in gnulib.
66547
66548 2006-06-21  Simon Josefsson  <jas@extundo.com>
66549
66550         * doc/gnulib.texi (Windows sockets): Add.
66551
66552 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
66553
66554         * lib/read-file.c (fread_file): Start with buffer allocation of
66555         0 bytes rather than 1 byte; this simplifies the code.
66556         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
66557         code to free buffer and save/restore errno.
66558         (internal_read_file): Remove unused local.
66559
66560 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
66561
66562         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
66563         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
66564         Problem reported by Denis Excoffier in
66565         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
66566
66567 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
66568
66569         * modules/sys_socket, modules/socklen: Include sys/types since
66570         FreeBSD 4.x's sys/socket.h needs it.
66571
66572 2006-06-19  Simon Josefsson  <jas@extundo.com>
66573
66574         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
66575
66576 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
66577
66578         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
66579
66580 2006-06-19  Bruno Haible  <bruno@clisp.org>
66581
66582         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
66583         and FULL_PATH_INTTYPES_H in angle brackets.
66584         Reported by Mark D. Baushke <mdb@gnu.org>.
66585
66586 2006-06-17  Eric Blake  <ebb9@byu.net>
66587
66588         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
66589         errno.
66590
66591 2006-06-17  Bruno Haible  <bruno@clisp.org>
66592
66593         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
66594         <sys/inttypes.h>.
66595
66596 2006-06-17  Bruno Haible  <bruno@clisp.org>
66597
66598         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
66599         whether errno is declared. Assume <errno.h> declares errno.
66600
66601 2006-06-17  Bruno Haible  <bruno@clisp.org>
66602
66603         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
66604
66605 2006-06-17  Bruno Haible  <bruno@clisp.org>
66606
66607         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
66608         problem on Solaris 2.5.1.
66609
66610 2006-06-16  Eric Blake  <ebb9@byu.net>
66611
66612         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
66613         * lib/unicodeio.c [!defined errno]: Likewise.
66614         * lib/strtol.c [!defined errno]: Likewise.
66615         * lib/strtod.c [!defined errno]: Likewise.
66616
66617 2006-06-15  Eric Blake  <ebb9@byu.net>
66618
66619         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
66620
66621 2006-06-15  Eric Blake  <ebb9@byu.net>
66622
66623         * config/srclist.txt (ssize_t.m4): Lose sync.
66624
66625 2006-06-15  Bruno Haible  <bruno@clisp.org>
66626
66627         * modules/stdint (Files): Include m4/full-header-path.m4,
66628         m4/size_max.m4, m4/wchar_t.m4.
66629         (Makefile.am): Many more substitutions.
66630         * modules/stdint-tests: New file.
66631         * tests/test-stdint.c: New file.
66632
66633 2006-06-15  Bruno Haible  <bruno@clisp.org>
66634
66635         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
66636         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
66637         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
66638         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
66639         gl_CHECK_TYPE_SAME): New macros.
66640
66641 2006-06-15  Bruno Haible  <bruno@clisp.org>
66642
66643         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
66644
66645 2006-06-15  Bruno Haible  <bruno@clisp.org>
66646
66647         * lib/stdint_.h: Rewritten to be fully auto-configured.
66648         Fixes bug on HP-UX/IA64.
66649
66650 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
66651
66652         * lib/getdate.y (__attribute__): Don't define if already defined.
66653         Problem reported by Larry Jones.
66654         * lib/utimens.c (__attribute__): Likewise.
66655
66656 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
66657
66658         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
66659         reported by Andreas Schwab.
66660
66661 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66662             Bruno Haible  <bruno@clisp.org>
66663
66664         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
66665         check for the declaration of strnlen and a run test that exposes the
66666         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
66667         rpl_strndup.
66668
66669 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66670             Bruno Haible  <bruno@clisp.org>
66671
66672         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
66673
66674 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66675
66676         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
66677         compile test, for Tru64 4.0D.
66678
66679 2006-05-28  Karl Berry  <karl@gnu.org>
66680
66681         * config/srclist.txt (printf-args.c): lose sync.
66682
66683 2006-05-26  Martin Lambers  <marlam@marlam.de>
66684
66685         * lib/getpass.c: Updates the test for the native W32 API, and adds
66686         missing includes, thus fixing compilation warnings.
66687
66688 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
66689
66690         * lib/exclude.c (exclude_fnmatch): New function.
66691         (excluded_file_name): Call exclude_fnmatch.
66692         * lib/exclude.h (excluded_file_name): New prototype
66693
66694 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
66695
66696         * lib/tempname.c (small_open, large_open): New macros.
66697         (__open, __open64) [!_LIBC]: Remove.
66698         (__gen_tempname): Use small_open and large_open instead of __open
66699         and __open64.  This fixes a portability bug on HP-UX 11.11i
66700         reported by Simon Wing-Tang in
66701         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
66702
66703 2006-05-24  Bruno Haible  <bruno@clisp.org>
66704
66705         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
66706         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
66707         Reported by Thorsten Maerz <torte@netztorte.de> via
66708         Aaron Stone <aaron@serendipity.cx>.
66709
66710 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
66711
66712         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
66713         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
66714         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
66715         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
66716         not really conditional on the cache.
66717         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
66718
66719 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
66720
66721         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
66722         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
66723         (my_usleep): Don't mishandle maximum value.
66724
66725 2006-05-19  Jim Meyering  <jim@meyering.net>
66726
66727         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
66728
66729 2006-05-17  Bruno Haible  <bruno@clisp.org>
66730
66731         Cygwin portability.
66732         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
66733
66734 2006-05-17  Bruno Haible  <bruno@clisp.org>
66735
66736         * lib/stdint_.h: Fix recognition of Cygwin.
66737
66738 2006-05-15  Bruno Haible  <bruno@clisp.org>
66739
66740         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
66741         on libtool patch by Ralf Wildenhues.
66742
66743 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
66744
66745         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
66746         test for C99 conformance; (bool) 0.5 is an integer constant
66747         expression, but (bool) -0.5 is not.  Problem reported by Fedor
66748         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
66749
66750 2006-05-11  Simon Josefsson  <jas@extundo.com>
66751
66752         * m4/xvasprintf.m4: Fix obvious typo.
66753
66754 2006-05-11  Jim Meyering  <jim@meyering.net>
66755
66756         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
66757         James Lemley.
66758
66759 2006-05-10  Simon Josefsson  <jas@extundo.com>
66760
66761         * lib/md4.c: Typo fix, update copyright years.
66762         (K1, K2): Don't use L because it turn computations into 64-bit on
66763         64-bit platforms.
66764
66765 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
66766
66767         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
66768         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
66769         unwanted sign propagation, e.g., on hosts with 64-bit int.
66770         There still are some problems with reeelly weird theoretical hosts
66771         (e.g., 33-bit int) but it's not worth worrying about now.
66772         * lib/sha1.c (rol): Likewise.
66773         (K1, K2, K3, K4): Remove unnecessary L suffix.
66774
66775 2006-05-10  Bruno Haible  <bruno@clisp.org>
66776
66777         * lib/des.c: Cast to avoid warnings.
66778
66779 2006-05-09  Bruno Haible  <bruno@clisp.org>
66780
66781         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
66782         (Depends-on): Depend also on xsize, stdarg.
66783         (configure.ac): Add gl_XVASPRINTF.
66784
66785 2006-05-09  Bruno Haible  <bruno@clisp.org>
66786
66787         * m4/xvasprintf.m4: New file.
66788
66789 2006-05-09  Bruno Haible  <bruno@clisp.org>
66790
66791         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
66792         (EOVERFLOW): Define fallback value.
66793         (xstrcat): New function.
66794         (xvasprintf): Recognize the special case of a string concatenation.
66795
66796 2006-05-08  Eric Blake  <ebb9@byu.net>
66797
66798         * gnulib-tool (func_version): Base copyright year on CVS date.
66799         (func_emit_copyright_notice): New function.
66800         (func_emit_lib_Makefile_am): Use it.
66801         (func_emit_tests_Makefile_am): Likewise.
66802         (func_import): Likewise.
66803
66804 2006-05-08  Bruno Haible  <bruno@clisp.org>
66805
66806         * modules/stdarg: New file.
66807         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
66808
66809 2006-05-08  Bruno Haible  <bruno@clisp.org>
66810
66811         * m4/stdarg.m4: New file, from GNU gettext.
66812
66813 2006-05-08  Bruno Haible  <bruno@clisp.org>
66814
66815         * config/srclist.txt (build-aux/config.rpath): different from latest
66816         release.
66817
66818 2006-05-08  Bruno Haible  <bruno@clisp.org>
66819
66820         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
66821
66822 2006-05-05  Jim Meyering  <jim@meyering.net>
66823
66824         * m4/warning.m4: New file, derived from bison's file by the same name.
66825
66826 2006-05-03  Bruno Haible  <bruno@clisp.org>
66827
66828         * lib/stdint_.h: Shorter URL.
66829         * lib/inttypes.h: Likewise.
66830
66831 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
66832
66833         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
66834
66835 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
66836
66837         * lib/verify.h: Document the internals better.  Most of this change
66838         was written by Bruno Haible.
66839
66840 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
66841
66842         * doc/verify.texi: New file, partly based on a proposal by
66843         Bruno Haible.
66844
66845 2006-05-02  Bruno Haible  <bruno@clisp.org>
66846
66847         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
66848         test from here...
66849         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
66850
66851 2006-04-29  Bruno Haible  <bruno@clisp.org>
66852
66853         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
66854         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
66855
66856 2006-04-29  Bruno Haible  <bruno@clisp.org>
66857
66858         * gnulib-tool: Make --update option actually work.
66859
66860 2006-04-29  Bruno Haible  <bruno@clisp.org>
66861
66862         * doc/gcd.texi: New file.
66863         * doc/gnulib.texi: Include it.
66864
66865 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
66866
66867         * lib/getdate.y (get_date): When adding relative date, start with the
66868         initial time, not with the result of the first mktime call.
66869
66870 2006-04-25  Bruno Haible  <bruno@clisp.org>
66871
66872         * gnulib-tool (func_import): Output the include directives in three
66873         blocks, sorted separately.
66874         Reported by Ben Pfaff <blp@cs.stanford.edu>.
66875
66876 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
66877
66878         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
66879         to define main with arguments, for C++.  Reported by Eric Blake.
66880         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
66881         Prefer 'int main ()' to 'int main (void)', for C++.
66882         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
66883         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
66884         for 'main', for C99 and C++.
66885
66886 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
66887
66888         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
66889         Don't assume that exit status -1 is valid.
66890         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
66891         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
66892         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
66893         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
66894         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
66895         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
66896         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
66897         functions can be used without declaring them, or that you can
66898         exit with status -1.
66899         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
66900
66901 2006-04-24  Karl Berry  <karl@gnu.org>
66902
66903         * config/srclist.txt (longdouble.m4): sync lost.
66904
66905 2006-04-24  Eric Blake  <ebb9@byu.net>
66906
66907         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
66908
66909 2006-04-24  Bruno Haible  <bruno@clisp.org>
66910
66911         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
66912         poll() implementation in AIX.
66913         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
66914
66915 2006-04-24  Bruno Haible  <bruno@clisp.org>
66916
66917         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
66918         assigned exactly once.
66919
66920 2006-04-23  Claudio Fontana  <claudio@gnu.org>
66921             Bruno Haible  <bruno@clisp.org>
66922
66923         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
66924         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
66925         for AM_CPPFLAGS.
66926
66927 2006-04-23  Bruno Haible  <bruno@clisp.org>
66928
66929         * modules/copy-file: Depend on unistd.
66930         * modules/execute: Likewise.
66931         * modules/fatal-signal: Likewise.
66932         * modules/findprog: Likewise.
66933         * modules/mkdtemp : Likewise.
66934         * modules/pipe: Likewise.
66935         * modules/wait-process: Likewise.
66936
66937 2006-04-23  Bruno Haible  <bruno@clisp.org>
66938
66939         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
66940         condition was already detected.
66941         Reported by Ben Pfaff <blp@cs.stanford.edu>.
66942
66943 2006-04-23  Bruno Haible  <bruno@clisp.org>
66944
66945         * lib/copy-file.c: Include <unistd.h> unconditionally.
66946         * lib/execute.c: Likewise.
66947         * lib/fatal-signal.c: Likewise.
66948         * lib/findprog.c: Likewise.
66949         * lib/mkdtemp.c: Likewise.
66950         * lib/pipe.h: Likewise.
66951         * lib/pipe.c: Likewise.
66952         * lib/wait-process.h: Likewise.
66953
66954 2006-04-23  Bruno Haible  <bruno@clisp.org>
66955
66956         * gnulib-tool (func_usage): Fix --import description. Document
66957         --update.
66958         (func_import): Create temporary file in a temporary directory, if
66959         --dry-run is specified. Silence errors from 'grep' when there are no
66960         m4 files in $m4dir.
66961         (func_create_testdir): Silence errors from 'grep' when there are no
66962         m4 files in $m4dir.
66963         Reported by Karl Berry <karl@freefriends.org>.
66964
66965 2006-04-20  Bruno Haible  <bruno@clisp.org>
66966
66967         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
66968         one argument, so that the code will be portable to Autoconf 2.60.
66969         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
66970         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
66971         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
66972
66973 2006-04-19  Derek Price  <derek@ximbiot.com>
66974             Eric Blake  <ebb9@byu.net>
66975
66976         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
66977         rather than "/full/path.h".  Update comment to match.  Shorten &
66978         generalize m4_translit call via AS_TR_CPP.
66979
66980 2006-04-19  Derek Price  <derek@ximbiot.com>
66981             Eric Blake  <ebb9@byu.net>
66982
66983         * lib/inttypes.h: Correct grammar in comment.
66984
66985 2006-04-18  Derek Price  <derek@ximbiot.com>
66986             Paul Eggert  <eggert@cs.ucla.edu>
66987
66988         * modules/inttypes: New file.
66989         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
66990
66991 2006-04-18  Derek Price  <derek@ximbiot.com>
66992             Paul Eggert  <eggert@cs.ucla.edu>
66993
66994         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
66995         New files.
66996
66997 2006-04-18  Derek Price  <derek@ximbiot.com>
66998             Paul Eggert  <eggert@cs.ucla.edu>
66999
67000         * lib/inttypes.h: New file.
67001         * lib/strtoimax.c: Assume <inttypes.h>.
67002
67003 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
67004
67005         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
67006         isn't mounted.  Problem reported by Kir Kolyshkin.
67007
67008 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
67009
67010         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
67011         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
67012         Derek R. Price.
67013         * lib/regex.h (RE_DUP_MAX): Update comment to match current
67014         implementation.
67015
67016 2006-04-12  Eric Blake  <ebb9@byu.net>
67017
67018         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
67019         is now done automatically by the corresponding Autoconf macro.
67020
67021 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
67022
67023         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
67024         time_r.h.
67025
67026 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
67027
67028         Merge regex changes from libc, removing some of our
67029         POSIX-conformance changes that were rejected and redoing them in a
67030         less-intrusive way.
67031
67032         * lib/regcomp.c (re_compile_internal, init_dfa):
67033         Length arg is now size_t, not Idx.  All uses changed.
67034         (peek_token): Forward decl now says internal_function.
67035         (__re_error_msgid, __re_error_msgid_idx):
67036         Now static rather than extern with attribute_hidden.
67037         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
67038         For some reason libc prefers K&R style defns for external functions.
67039         (regerror) [!defined _LIBC]: Likewise.
67040         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
67041         (seek_collating_symbol_entry, lookup_collation_sequence_value):
67042         (build_range_exp, build_collating_symbol):
67043         Use K&R-style defn.
67044         (re_compile_fastmap): Use '\0' to memset, not 0.
67045         (utf8_sb_map): Make the calculations more obvious.
67046         (init_dfa, parse_bracket_exp, build_charclass_op):
67047         Call calloc and cast result, as glibc does.
67048         (init_word_char, fetch_token, peek_token, peek_token_bracket):
67049         (build_range_exp, build_collating_symbol):
67050         Now internal functions.
67051
67052         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
67053
67054         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
67055         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
67056         Don't depend on VMS; depend on __VMS instead, for POSIX
67057         namespace cleanness.
67058         (regoff_t): Define to ssize_t, not long int.
67059
67060         Remove the REG_ macros named below.  Instead, make the old names
67061         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
67062         __USE_GNU_REGEX.
67063         (REG_BACKSLASH_ESCAPE_IN_LISTS):
67064         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
67065         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
67066         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
67067         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
67068         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
67069         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
67070         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
67071         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
67072         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
67073         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
67074         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
67075         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
67076         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
67077         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
67078         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
67079         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
67080         (REG_NREGS):
67081         Remove.  All uses replaced by the old RE_* names.
67082         (RE_BACKSLASH_ESCAPE_IN_LISTS):
67083         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
67084         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
67085         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
67086         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
67087         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
67088         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
67089         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
67090         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
67091         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
67092         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
67093         Don't bother having these macros be independent of each others'
67094         values, since they no longer exist in the POSIX name space.
67095
67096         Rename the following member names back to their old names,
67097         unless !__USE_GNU_REGEX.  All uses changed back.
67098         (buffer): Renamed from re_buffer.
67099         (allocated): Renamed from re_allocated.
67100         (used): Renamed from re_used.
67101         (syntax): Renamed from re_syntax.
67102         (fastmap): Renamed from re_fastmap.
67103         (translate): Renamed from re_translate.
67104         (can_be_null): Renamed from re_can_be_null.
67105         (regs_allocated): Renamed from re_regs_allocated.
67106         (fastmap_accurate): Renamed from re_fastmap_accurate.
67107         (no_sub): Renamed from re_no_sub.
67108         (not_bol): Renamed from re_not_bol.
67109         (not_eol): Renamed from re_not_eol.
67110         (newline_anchor): Renamed from re_newline_anchor.
67111         (num_regs): Renamed from rm_num_regs.
67112         (start): Renamed from rm_start.
67113         (end): Renamed from rm_end.
67114
67115         (free_state): Move up a bit.
67116
67117         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
67118         #define to be empty.
67119         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
67120         when that is what is intended.
67121         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
67122         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
67123         (MAX): New macro.
67124         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
67125         All uses changed back to re_malloc, etc.  It's now the caller's
67126         responsibility to check for overflow; all callers changed.
67127         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
67128         (re_x2nrealloc): Remove.
67129         (free_state): Remove decl.
67130
67131         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
67132         (re_set_registers, re_exec):
67133         Use K&R-style defn.
67134
67135         2006-01-31  Roland McGrath  <roland@redhat.com>
67136
67137         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
67138         Reported by Mike Frysinger <vapier@gentoo.org>.
67139
67140         2006-01-15  Andreas Jaeger  <aj@suse.de>
67141
67142         [BZ #1950]
67143         * lib/regex_internal.c (re_string_reconstruct): Adjust for
67144         build_wcs_upper_buffer change.
67145         (build_wcs_upper_buffer): Change return type.
67146
67147         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
67148
67149         * lib/regex_internal.h: Include <stdint.h> if available.
67150
67151         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
67152
67153         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
67154
67155         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
67156
67157         * lib/regcomp.c: Adjust for changed secondary hash function.
67158
67159         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
67160
67161         * lib/regex.h: Pretty printing.
67162         Clean up namespace a bit.
67163
67164         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
67165
67166         * lib/regexec.c (update_cur_sifted_state, check_arrival,
67167         check_arrival_add_next_nodes): Avoid using uninitialized variable.
67168
67169         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
67170                     Ulrich Drepper  <drepper@redhat.com>
67171
67172         [BZ #1302]
67173         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
67174         changed.
67175         (bitset_word_t): Renamed from bitset_word.  All uses changed.
67176
67177         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
67178
67179         [BZ #281]
67180         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
67181         * lib/regcomp.c: Remove unnecessary uses of
67182         unsigned RE_TRANSLATE_TYPE.
67183         * lib/regex_internal.h: Likewise.
67184         * lib/regex_internal.c: Likewise.
67185         * lib/regexec.c: Likewise.
67186         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
67187
67188         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
67189
67190         * lib/regexec.c (find_recover_state): Remove unnecessary
67191         initialization.
67192         (transit_state_bkref): Make DFA a const pointer.
67193         (get_subexp): Likewise.
67194         (check_arrival): Likewise.
67195         (update_cur_sifted_state): Likewise.
67196         (re_search_internal): Likewise.
67197         (prune_impossible_nodes): Likewise.
67198         (acquire_init_state_context): Likewise.
67199         (proceed_next_node): Likewise.
67200         (set_regs): Likewise.
67201         (free_fail_stack_return): Likewise.
67202         (check_arrival_expand_ecl): Mark DFA parameter as const.
67203         (check_arrival_expand_ecl_sub): Likewise.
67204         (check_subexp_limits): Likewise.
67205         (sub_epsilon_src_nodes):  Likewise.
67206         (add_epsilon_src_nodes):  Likewise.
67207         (merge_state_array): Likewise.
67208         (update_regs): Likewise.
67209         (build_trtable): Likewise.
67210         (sift_states_backward): Mark MCTX parameter as const.
67211         (build_sifted_states): Likewise.
67212         (update_cur_sifted_state): Likewise.
67213         (sift_states_mkref): Likewise.
67214         (check_arrival_expand_ecl): Mark eclosure as const.
67215         (check_dst_limits_calc_pos_1): Likewise.
67216         * lib/regex_internal.h (re_match_context_t): Make dfa a const
67217         pointer.
67218
67219         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
67220
67221         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
67222         (transit_state_sb): Likewise.
67223         (transit_state_mb): Likewise.
67224         (sift_states_iter_mb): Likewise.
67225         (check_arrival_add_next_nodes): Likewise.
67226         (check_node_accept_bytes): Change first parameter to pointer-to-const.
67227         [_LIBC] (re_search_2_stub): Use mempcpy.
67228
67229         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
67230         mbrtowc for very simple UTF-8 case.
67231
67232         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
67233         a pointer-to-const.
67234         (re_acquire_state_context): Likewise.
67235         * lib/regex_internal.h: Adjust prototypes.
67236
67237         * lib/regex.c: Prevent using C++ compilers.
67238
67239         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
67240         (re_acquire_state_context): Likewise.
67241
67242 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
67243
67244         * modules/regex (Depends-on): Add ssize_t.
67245
67246 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
67247
67248         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
67249         translation table.
67250
67251 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
67252
67253         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
67254
67255 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
67256             Bruno Haible  <bruno@clisp.org>
67257
67258         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
67259         <sys/types.h> and <inttypes.h>.
67260
67261 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67262
67263         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
67264         `__error_t_defined', so argp.h will not typedef the former.
67265
67266 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
67267
67268         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
67269         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
67270         glibc names.  Even if glibc is changed to conform to POSIX, the
67271         traditional names will be available anyway, since regex depends on
67272         the extensions module.  Also, fix a longstanding typo in the
67273         implementation of Spencer ERE test #75 from grep 2.3.  Problems
67274         reported by Emanuele Giaquinta.  Also, change sense of cached
67275         variable, so that the message makes sense.
67276
67277 2006-03-24  Simon Josefsson  <jas@extundo.com>
67278
67279         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
67280         including some doc fixes.
67281         (base64_encode_alloc): Fix +1 bug on allocation failures.
67282
67283 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67284
67285         * lib/base64.c (base64_encode): Do not read past end of array with
67286         unsanitized input on systems with CHAR_BIT > 8.
67287
67288 2006-03-24  Eric Blake  <ebb9@byu.net>
67289
67290         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
67291
67292 2006-03-22  Karl Berry  <karl@gnu.org>
67293
67294         * config/srclist.txt (*setenv.[ch]): get from coreutils.
67295         * config/srclistvars.sh (COREUTILS): new var.
67296
67297 2006-03-17  Jim Meyering  <jim@meyering.net>
67298
67299         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
67300         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
67301
67302 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
67303
67304         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
67305         no longer needs it.  Instead, check that regoff_t is as least
67306         as wide as ptrdiff_t.
67307
67308         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
67309         so that our regex.h stays compatible with the installed regex.
67310         This is helpful for installers who configure --without-included-regex.
67311         Problem reported by Emanuele Giaquinta.
67312
67313 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
67314
67315         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
67316         Typedef to long int, not to off_, as POSIX will likely change
67317         in that direction.
67318
67319 2006-03-15  Eric Blake  <ebb9@byu.net>
67320
67321         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
67322
67323 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
67324
67325         * lib/argp-help.c (validate_uparams): Fix typo
67326         * lib/argp-parse.c (argp_default_options): Consistently begin help
67327         messages with a lowercase letter.
67328
67329 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
67330
67331         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
67332         overrun buffers and shouldn't be used (much as gets shouldn't be
67333         used).
67334         * lib/time_r.c (asctime_r, ctime_r): Likewise.
67335
67336 2006-03-08  Simon Josefsson  <jas@extundo.com>
67337
67338         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
67339         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
67340
67341 2006-03-08  Simon Josefsson  <jas@extundo.com>
67342
67343         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
67344         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
67345
67346 2006-03-08  Simon Josefsson  <jas@extundo.com>
67347
67348         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
67349         signal that configure disabled the device.
67350
67351 2006-03-08  Simon Josefsson  <jas@extundo.com>
67352
67353         * build-aux/maint.mk: Fix refresh-po, to handle no translated
67354         languages.
67355
67356 2006-03-07  Simon Josefsson  <jas@extundo.com>
67357
67358         * modules/getopt (Depends-on): Add unistd.
67359
67360         * modules/unistd: New file.
67361
67362 2006-03-07  Simon Josefsson  <jas@extundo.com>
67363
67364         * modules/gc-random: New file.
67365
67366 2006-03-07  Simon Josefsson  <jas@extundo.com>
67367
67368         * m4/unistd_h.m4: New file.
67369
67370 2006-03-07  Simon Josefsson  <jas@extundo.com>
67371
67372         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
67373         test to be side-effect free by storing the result in the cache
67374         variable gl_cv_lib_readline, and moving the assignment of
67375         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
67376         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
67377
67378 2006-03-07  Simon Josefsson  <jas@extundo.com>
67379
67380         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
67381         error on missing devices (the functions will return an error).
67382
67383         * m4/gc.m4: Move random stuff to gc-random.m4
67384
67385 2006-03-07  Simon Josefsson  <jas@extundo.com>
67386
67387         * lib/unistd_.h: New file.
67388
67389 2006-03-07  Simon Josefsson  <jas@extundo.com>
67390
67391         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
67392
67393 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
67394
67395         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
67396         Problem reported by Juan Manuel Guerrero.
67397
67398 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
67399
67400         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
67401         the unistd module.
67402         * lib/getlogin_r.c: Likewise.
67403         * lib/getlogin_r.h: Likewise.
67404         * lib/glob.c: Likewise.
67405         * lib/pagealign_alloc.c: Likewise.
67406         * lib/unistd_.h: Remove; no longer needed.
67407
67408 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
67409
67410         * MODULES.html.sh (Support for systems lacking POSIX:2001):
67411         Add unistd.
67412         * modules/c-stack (Depends-on): Add unistd.
67413         * modules/getlogin_r: Likewise.
67414         * modules/glob: Likewise.
67415         * modules/pagealign_alloc: Likewise.
67416         * modules/unistd (Files): Remove lib/unistd_.h.
67417         (EXTRA_DIST): Remove.
67418         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
67419         need unistd_.h.
67420         (MOSTLYCLEANFILES): Remove unistd.h-t.
67421
67422 2006-03-03  Simon Josefsson  <jas@extundo.com>
67423
67424         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
67425
67426 2006-03-03  Simon Josefsson  <jas@extundo.com>
67427
67428         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
67429         libidn and bison.
67430
67431 2006-03-03  Simon Josefsson  <jas@extundo.com>
67432
67433         * build-aux/maint.mk: Add indent target.
67434
67435 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
67436
67437         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
67438         our replacement poll.h in any case, to avoid a differing
67439         declaration from a system header.  Seen on AIX.
67440
67441 2006-03-01  Simon Josefsson  <jas@extundo.com>
67442
67443         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
67444         <kasal@ucw.cz>.
67445
67446 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
67447
67448         * modules/gettime (Depends-on): Add extensions module.
67449         * modules/nanosleep (Depends-on): Likewise.
67450         * modules/settime (Depends-on): Likewise.
67451
67452 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
67453
67454         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
67455         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
67456         pedantically.
67457         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
67458         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
67459
67460         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
67461         not "==".  Reported by Ralf Wildenhues.
67462
67463 2006-03-01  Karl Berry  <karl@gnu.org>
67464
67465         * doc/Copyright/request-*: new files, synced from gnuorg.
67466
67467 2006-03-01  Karl Berry  <karl@gnu.org>
67468
67469         * config/srclist.txt (Copyright/*): new entries.
67470
67471 2006-02-28  Simon Josefsson  <jas@extundo.com>
67472
67473         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
67474
67475 2006-02-27  Simon Josefsson  <jas@extundo.com>
67476
67477         * lib/base64.h: Indent #define's.  From Jim Meyering
67478         <jim@meyering.net>.
67479
67480 2006-02-27  Jim Meyering  <jim@meyering.net>
67481
67482         Revert the change of 2006-02-24, so these files can continue
67483         to be sync'd from gettext.
67484         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
67485         of `config.h'.
67486
67487 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
67488
67489         * modules/intprops: New file.
67490         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
67491         Add intprops.
67492         * modules/getloadavg (Files): Remove lib/intprops.h.
67493         (Depends-on): Add intprops.
67494         * modules/human: Likewise.
67495         * modules/inttostr: Likewise.
67496         * modules/openat: Likewise.
67497         * modules/sig2str: Likewise.
67498         * modules/userspec: Likewise.
67499         * modules/utimecmp: Likewise.
67500         * modules/xnanosleep: Likewise.
67501         * modules/xstrtol: Likewise.
67502
67503 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
67504
67505         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
67506         * modules/lock-tests (TESTS): Use $(EXEEXT).
67507         * modules/tls-tests: Likewise.
67508         * modules/argp-tests: Likewise.
67509         (check_PROGRAMS): New var, replacing...
67510         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
67511
67512 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67513
67514         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
67515         `config.h'.
67516
67517 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
67518
67519         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
67520
67521 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67522
67523         Sync from coreutils.
67524         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
67525         gl_CHDIR_SAFER.
67526
67527 2006-02-22  Jim Meyering  <jim@meyering.net>
67528
67529         Sync from coreutils.
67530         * m4/chdir-safer.m4: New file.
67531
67532 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
67533
67534         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
67535         AT_FDCWD exceeds INT_MAX.
67536         * lib/openat.h (AT_FDCWD): Likewise.
67537
67538 2006-02-17  Eric Blake  <address@hidden>
67539
67540         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
67541
67542 2006-02-16  Simon Josefsson  <jas@extundo.com>
67543
67544         * modules/getaddrinfo (Depends-on): Add sys_socket.
67545
67546 2006-02-15  Simon Josefsson  <jas@extundo.com>
67547
67548         * build-aux/maint.mk: Add dsyntax-check rule.
67549
67550 2006-02-15  Eric Blake  <ebb9@byu.net>
67551
67552         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
67553         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
67554         'present but cannot compile' warnings on cygwin.
67555         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
67556         use ws2tcpip.h if sys/socket.h works.
67557         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
67558         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
67559
67560 2006-02-14  Simon Josefsson  <jas@extundo.com>
67561
67562         * modules/maintainer-makefile (Files): Rename.
67563
67564         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
67565         and (the local) Makefile.cfg to maint-cfg.mk.
67566
67567         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
67568         to the latter.
67569
67570         * modules/maintainer-makefile: New module.
67571
67572         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
67573         severaly stripped to make it possible to build it up from scratch
67574         with reliable tests.
67575
67576         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
67577         fixes to permit overriding the default actions when configure and
67578         makefile are not available.
67579
67580 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
67581
67582         Sync from coreutils.
67583         * modules/lstat (Depends-on): Don't depend on xalloc.
67584         (License): Change from GPL to LGPL, since this is now simply a
67585         replacement for a libc function.
67586
67587 2006-02-14  Jim Meyering  <jim@meyering.net>
67588
67589         Sync from coreutils.
67590
67591         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
67592         failure on deficient systems, and simplify gnulib lgpl dependencies.
67593         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
67594         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
67595
67596         * lib/xalloc-die.c: Remove unused definition of N_.
67597
67598 2006-02-14  Jim Meyering  <jim@meyering.net>
67599
67600         Sync from coreutils.
67601         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
67602         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
67603         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
67604         double-quote uses of that variable, to accommodate the rare case in
67605         which getmntent is available in none of the libraries checked.  This
67606         happens at least on FreeBSD 5.0.
67607
67608 2006-02-13  Simon Josefsson  <jas@extundo.com>
67609
67610         * gnulib-tool (Usage): Fix --import, from
67611         karl@freefriends.org (Karl Berry).
67612
67613 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
67614
67615         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
67616
67617 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
67618
67619         * lib/argp-namefrob.h: Restore changes accidentally lost during the
67620         "autoupdate" on 2005-12-12.
67621
67622 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
67623
67624         * modules/closeout (Depends-on): Remove atexit.
67625
67626 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
67627
67628         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
67629         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
67630
67631 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
67632
67633         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
67634         __EXTENSIONS__ if this causes compilation to fail.  Problem
67635         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
67636         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
67637
67638 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
67639
67640         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
67641         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
67642         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
67643         All uses changed.
67644
67645 2006-01-26  Simon Josefsson  <jas@extundo.com>
67646
67647         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
67648         prototype is visible on mingw32.
67649
67650         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
67651         for mingw32.
67652
67653         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
67654         mingw32).
67655
67656 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
67657
67658         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
67659         attempt to open for write; this always fails, at least on POSIX
67660         hosts.  This reinstates the 2006-01-09 change, which was
67661         inadvertently removed.
67662
67663 2006-01-26  Bruno Haible  <bruno@clisp.org>
67664
67665         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
67666         Reported by Paul Eggert.
67667
67668 2006-01-26  Bruno Haible  <bruno@clisp.org>
67669             Paul Eggert  <eggert@cs.ucla.edu>
67670
67671         * lib/stdbool_.h (_Bool)
67672         [(! (defined __cplusplus || defined __BEOS__)
67673           && !defined __GNUC__
67674           && !(defined __HP_cc || defined __xlc__
67675                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
67676                || defined __sgi))]:
67677         #define to signed char in these cases too; this simplifies
67678         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
67679         etc., separately) and makes it more conservative.
67680
67681 2006-01-25  Simon Josefsson  <jas@extundo.com>
67682
67683         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
67684         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
67685         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
67686
67687 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
67688
67689         * lib/argp-namefrob.h: Bugfix. Remove stray #
67690
67691 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
67692
67693         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
67694         so that we test the test.
67695         Check for yet another HP-UX cc bug involving *bool |= bool.
67696
67697 2006-01-25  Karl Berry  <karl@gnu.org>
67698
67699         * config/srclist.txt (vasnprintf.c): sync lost.
67700
67701 2006-01-25  Jim Meyering  <jim@meyering.net>
67702
67703         Sync from the stable (b5) branch of coreutils:
67704
67705         * lib/fts.c (fts_children): Don't let close() clobber errno from
67706         failed fchdir().
67707
67708         * lib/fts.c (fts_stat): When following a symlink-to-directory,
67709         don't necessarily interpret stat-fails+lstat-succeeds as indicating
67710         a dangling symlink.  That can also happen at least for ELOOP.
67711         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
67712         FYI, this bug predates the inclusion of fts.c in coreutils.
67713
67714         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
67715         in their own block, so pre-c99 compilers don't object.
67716
67717         Avoid the double-free (first in fts_read, second in fts_close) that
67718         would occur when an `active' directory is made inaccessible (e.g.,
67719         via chmod a-x) during a traversal.
67720         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
67721         before returning.  Reproduce this failure by
67722         mkdir -p a/b; cd a; chmod a-x . b
67723         Reported by Stavros Passas.
67724
67725 2006-01-25  Jim Meyering  <jim@meyering.net>
67726
67727         * lib/fileblocks.c: Remove more useless parentheses.
67728         * lib/readutmp.h: Likewise.
67729
67730 2006-01-25  Bruno Haible  <bruno@clisp.org>
67731
67732         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
67733         warnings.
67734         Reported by Paul Eggert.
67735
67736 2006-01-25  Bruno Haible  <bruno@clisp.org>
67737
67738         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
67739         rid of a trap command. For Solaris sh.
67740         Reported by Mark D. Baushke <mdb@gnu.org>.
67741
67742 2006-01-24  Simon Josefsson  <jas@extundo.com>
67743
67744         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
67745         Bruno.
67746
67747 2006-01-24  Karl Berry  <karl@gnu.org>
67748
67749         * config/srclist.txt (argp-namefrob.h): sync lost.
67750
67751 2006-01-24  Jim Meyering  <jim@meyering.net>
67752
67753         * modules/openat (Files): Add lib/intprops.h.
67754         From Mark D. Baushke.
67755
67756 2006-01-24  Jim Meyering  <jim@meyering.net>
67757
67758         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
67759         Reported by Mark D. Baushke.
67760
67761 2006-01-24  Jim Meyering  <jim@meyering.net>
67762
67763         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
67764
67765 2006-01-24  Bruno Haible  <bruno@clisp.org>
67766
67767         * modules/strnlen (Maintainer): Change from glibc to all.
67768
67769 2006-01-24  Bruno Haible  <bruno@clisp.org>
67770
67771         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
67772         Patch by Paul Eggert.
67773
67774 2006-01-24  Bruno Haible  <bruno@clisp.org>
67775
67776         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
67777         already has it.
67778         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
67779         2005-11-26.
67780
67781         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
67782         'signed char' to avoid problems with the built-in _Bool type.
67783         Reported by Paul Eggert on 2005-11-26.
67784
67785 2006-01-24  Bruno Haible  <bruno@clisp.org>
67786
67787         * gnulib-tool (func_import): Avoid constructing complicated sed
67788         expressions inside backquote.
67789         Report and solution by Mark D. Baushke <mdb@gnu.org>.
67790
67791 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
67792
67793         These changes imported from libc.
67794         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
67795         test and two separate function calls.
67796         * lib/strndup.c (__strndup): Add libc_hidden_def.
67797
67798 2006-01-23  Simon Josefsson  <jas@extundo.com>
67799
67800         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
67801         Remove the test_*_SOURCES variable: automake infers it by default.
67802         * modules/tls-tests: Likewise.
67803
67804 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
67805
67806         Work around porting bugs reported by Dieter in
67807         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
67808         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
67809         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
67810         Include "getopt.h" first, to check interface.
67811         (getenv): Declare only if defined HAVE_DECL_GETENV &&
67812         !HAVE_DECL_GETENV.
67813         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
67814         (__strndup): Revert to K&R-style function dfns, the glibc style.
67815         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
67816         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
67817         Include strnlen.h first, to get prototype properly.
67818         (strnlen): Renamed from __strnlen.
67819         Remove weak alias.
67820
67821 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
67822
67823         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
67824
67825 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
67826
67827         * config/srclist.txt: Adjust to reflect glibc reorganization.
67828         This affects only comments.
67829
67830 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
67831
67832          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
67833          Reported by Bruce Korb <bkorb@gnu.org>.
67834
67835 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
67836
67837         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
67838         to pacify gcc -Wswitch-default.
67839
67840 2006-01-22  Bruno Haible  <bruno@clisp.org>
67841
67842         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
67843         temporary buffer for sprintf, take into account the precision also
67844         for 'd', 'i', 'u', 'o', 'x', 'X'.
67845
67846 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
67847
67848         * modules/argp-tests: New module
67849         * tests/test-argp.c: New file
67850         * tests/test-argp-2.sh: New file
67851
67852 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
67853
67854         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
67855         (__argp_base_name): Removed
67856         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
67857         typo.
67858         (__argp_base_name): Provide macro definition or extern declaration
67859         depending on the configuration
67860
67861 2006-01-20  Simon Josefsson  <jas@extundo.com>
67862
67863         * modules/inet_ntop (Depends-on): Depend on sys_socket.
67864
67865 2006-01-20  Simon Josefsson  <jas@extundo.com>
67866
67867         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
67868
67869 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
67870
67871         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
67872         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
67873         Suggested by Bruno Haible.
67874
67875 2006-01-20  Karl Berry  <karl@gnu.org>
67876
67877         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
67878         until changes propagate, I guess.
67879
67880 2006-01-19  Simon Josefsson  <jas@extundo.com>
67881
67882         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
67883
67884 2006-01-19  Simon Josefsson  <jas@extundo.com>
67885
67886         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
67887
67888 2006-01-19  Simon Josefsson  <jas@extundo.com>
67889
67890         * gnulib-tool: Set check_PROGRAMS.
67891
67892         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
67893         modules/des-tests, modules/gc-arcfour-tests,
67894         modules/gc-arctwo-tests, modules/gc-des-tests,
67895         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
67896         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
67897         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
67898         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
67899         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
67900         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
67901         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
67902         test_*_SOURCES.
67903
67904 2006-01-18  Simon Josefsson  <jas@extundo.com>
67905
67906         * modules/socklen (Depends-on): Depend on sys_socket.
67907
67908 2006-01-18  Simon Josefsson  <jas@extundo.com>
67909
67910         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
67911         modules/des-tests, modules/gc-arcfour-tests,
67912         modules/gc-arctwo-tests, modules/gc-des-tests,
67913         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
67914         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
67915         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
67916         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
67917         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
67918         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
67919         $(EXEEXT) to automake TESTS variable, for mingw32.
67920
67921 2006-01-17  Simon Josefsson  <jas@extundo.com>
67922
67923         * modules/socklen (Include): Need sys/socket.h.
67924
67925 2006-01-17  Bruno Haible  <bruno@clisp.org>
67926
67927         * modules/ssize_t (Include): Add <sys/types.h>.
67928
67929 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
67930
67931         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
67932         it's not portable and it doesn't work with cross-compiles.
67933         Problem reported by Bruno Haible.  Fix missing-$ typo in
67934         'test "gl_cv_ignore_unused_libraries" ...' that prevented
67935         -zignore from being used with Sun's C compiler.
67936
67937 2006-01-12  Simon Josefsson  <jas@extundo.com>
67938
67939         * lib/base64.c: Fix warning, reported by Bruno Haible
67940         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
67941
67942 2006-01-12  Bruno Haible  <bruno@clisp.org>
67943
67944         * modules/ldd: New file.
67945         * build-aux/ldd.sh.in: New file.
67946         * MODULES.html.sh (Support for building libraries and executables): Add
67947         ldd.
67948
67949 2006-01-12  Bruno Haible  <bruno@clisp.org>
67950
67951         * m4/ldd.m4: New file.
67952
67953 2006-01-12  Bruno Haible  <bruno@clisp.org>
67954
67955         * gnulib-tool (func_import, func_create_testdir): Don't go into an
67956         endless loop while replacing $auxdir with build-aux.
67957
67958 2006-01-11  Simon Josefsson  <jas@extundo.com>
67959
67960         * lib/stdint_.h (SIZE_MAX): Add missing (.
67961
67962 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
67963
67964         Sync from coreutils.
67965         * lib/md5.c: Fix commentary typos.
67966         (alignof, UNALIGNED_P): No need for a GCC-specific version.
67967         * lib/md5.h (__attribute__): Remove; unused.
67968         * lib/sha1.c: Fix commentary to match md5 better.
67969         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
67970         so that we don't need to worry about alignment.  All uses changed.
67971         This merges the 2005-10-28 md5 change into sha1.
67972
67973 2006-01-11  Jim Meyering  <jim@meyering.net>
67974
67975         Sync from coreutils.
67976         * lib/md5.c (OP): Fix spacing.
67977
67978 2006-01-11  Bruno Haible  <bruno@clisp.org>
67979
67980         Ensure automatic ordering between gl_LOCK and gl_ARGP.
67981         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
67982         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
67983
67984 2006-01-11  Bruno Haible  <bruno@clisp.org>
67985
67986         Ensure automatic ordering between gl_LOCK and gl_ARGP.
67987         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
67988         the "early" section as well.
67989
67990 2006-01-11  Bruno Haible  <bruno@clisp.org>
67991
67992         Avoid "ar: no archive members specified" error on MacOS X.
67993         * gnulib-tool (func_modules_add_dummy): New function.
67994         (func_import, func_create_testdir): Invoke it.
67995
67996 2006-01-11  Bruno Haible  <bruno@clisp.org>
67997
67998         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
67999         with $auxdir in AC_CONFIG_FILES statements.
68000
68001 2006-01-11  Bruno Haible  <bruno@clisp.org>
68002
68003         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
68004         Initialize also noinst_HEADERS to empty.
68005
68006 2006-01-11  Bruno Haible  <bruno@clisp.org>
68007
68008         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
68009         variables.
68010         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
68011         autoreconf.
68012
68013 2006-01-11  Bruno Haible  <bruno@clisp.org>
68014
68015         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
68016         overridable by the user.
68017         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
68018
68019 2006-01-10  Simon Josefsson  <jas@extundo.com>
68020
68021         * modules/sys_socket: New file.
68022
68023 2006-01-10  Simon Josefsson  <jas@extundo.com>
68024
68025         * m4/sys_socket_h.m4: New file.
68026
68027 2006-01-10  Simon Josefsson  <jas@extundo.com>
68028
68029         * lib/socket_.h: New file.
68030
68031 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
68032
68033         * modules/readutmp (Maintainer): Add myself.
68034
68035 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
68036
68037         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
68038         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
68039         People who are still concerned with buggy memcmp implementations
68040         can invoke gl_FUNC_MEMCMP themselves.
68041
68042 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
68043
68044         * lib/regex_internal.h (BITSET_WORD_BITS):
68045         Work around a bug in 64-bit PGC (before version 6.1-2), where the
68046         preprocessor mishandles large unsigned values as if they were signed.
68047         Problem reported by Claudio Fontana in
68048         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
68049
68050 2006-01-10  Jim Meyering  <jim@meyering.net>
68051
68052         Avoid the double-free (first in fts_read, second in fts_close) that
68053         would occur when an `active' directory is made inaccessible (e.g.,
68054         via chmod a-x) during a traversal.
68055         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
68056         before returning.  Reproduce this failure by
68057         mkdir -p a/b; cd a; chmod a-x . b
68058         Reported by Stavros Passas.
68059
68060         Sync from coreutils.
68061         * lib/sha1.c: Tweak grammar in a comment.
68062
68063 2006-01-10  Jim Meyering  <jim@meyering.net>
68064
68065         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
68066         Patch by Joerg Sonnenberger.
68067
68068 2006-01-10  Bruno Haible  <bruno@clisp.org>
68069
68070         * modules/readutmp: Depend on module free.
68071         * modules/strtok_r: Depend on module restrict.
68072
68073 2006-01-10  Bruno Haible  <bruno@clisp.org>
68074
68075         * modules/gettext (configure.ac): Add an invocation of
68076         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
68077
68078 2006-01-10  Bruno Haible  <bruno@clisp.org>
68079
68080         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
68081         Reported by Werner Lemberg <wl@gnu.org>.
68082
68083 2006-01-10  Bruno Haible  <bruno@clisp.org>
68084
68085         * lib/localcharset.c: Update from GNU gettext.
68086
68087 2006-01-10  Bruno Haible  <bruno@clisp.org>
68088
68089         * lib/argp.h (__const): Remove macro. Use const instead.
68090         * lib/argp-fmtstream.h (__const): Likewise.
68091         * lib/glob_.h (__const): Remove macro.
68092         * lib/glob-libc.h: Use const instead of __const.
68093
68094 2006-01-10  Bruno Haible  <bruno@clisp.org>
68095
68096         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
68097         variable.
68098         Needed to avoid an automake error regarding the 'gettext' module.
68099
68100 2006-01-09  Simon Josefsson  <jas@extundo.com>
68101
68102         * modules/inet_ntop (Depends-on): Add restrict.
68103
68104 2006-01-09  Simon Josefsson  <jas@extundo.com>
68105
68106         * modules/gc-rijndael-tests (License): Put under LGPL.
68107
68108         * modules/gc-des-tests (License): Likewise.
68109
68110         * modules/gc-arcfour-tests (License): Likewise.
68111
68112         * modules/gc-arctwo-tests (License): Likewise.
68113
68114         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
68115
68116         * modules/gc-hmac-sha1-tests (Files): Likewise.
68117
68118         * modules/gc-hmac-md5-tests (License): Likewise.
68119
68120         * modules/gc-sha1-tests (License): Likewise.
68121
68122         * modules/gc-md5-tests (License): Likewise.
68123
68124         * modules/gc-md4-tests (License): Likewise.
68125
68126         * modules/gc-md2-tests (License): Likewise.
68127
68128         * modules/gc-tests (License): Likewise.
68129
68130         * modules/des-tests (License): Likewise.
68131
68132         * modules/md4-tests (License): Likewise.
68133
68134         * modules/md2-tests (License): Likewise.
68135
68136 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
68137
68138         Sync from coreutils:
68139
68140         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
68141         * modules/lib-ignore: New file.
68142         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
68143         chdir-safer.m4, lchmod.m4.
68144         * modules/openat: Add mkdirat.c, openat-priv.h.
68145
68146 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
68147
68148         Sync from coreutils.
68149         * m4/lib-ignore.m4: New file.
68150         * m4/lchmod.m4: New file.
68151
68152 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
68153
68154         Sync from coreutils.
68155         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
68156         for write access: POSIX says that must fail.
68157         * lib/fts.c (diropen): Likewise.
68158         * lib/save-cwd.c (save_cwd): Likewise.
68159         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
68160         well, for minor improvements on hosts that lack O_DIRECTORY.
68161         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
68162         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
68163         Fall back on chown if open failed with EACCES.
68164
68165         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
68166         Report an error at compile-time if only a 1-second nominal clock
68167         resolution is found.
68168
68169         * lib/lchmod.h: New file.
68170         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
68171         (make_dir_parents): Use lchown rather than chown, and
68172         lchmod rather than chmod.
68173
68174         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
68175         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
68176         "proc" reported by n0dalus.
68177
68178         * lib/mountlist.c: Include <limits.h>.
68179         (dev_from_mount_options)
68180         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
68181         New function.  It no longer assumes "dev=" has the System V meaning
68182         on Linux (since it doesn't).  It also parses "dev=" more carefully.
68183         (read_file_system_list)
68184         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
68185         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
68186         dev= in that case.
68187
68188         * lib/posixtm.h (PDS_PRE_2000): New macro.
68189         * lib/posixtm.c (year): Arg is now syntax_bits rather than
68190         allow_century.  All usages changed.  Reject dates outside the range
68191         1969-1999 if PDS_PRE_2000 is used.
68192
68193 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
68194
68195         Sync from coreutils.
68196         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
68197         (Time of day items): Mention the possibility of leap seconds.
68198         Problem reported by Dr. David Alan Gilbert.
68199
68200 2006-01-09  Jim Meyering  <jim@meyering.net>
68201
68202         Sync from coreutils.
68203
68204         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
68205
68206         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
68207
68208         * lib/modechange.c (mode_compile): Reject an invalid mode string
68209         that starts with an octal digit.  From Andreas Gruenbacher.
68210
68211         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
68212         and dup to open_safer and dup_safer, respectively.
68213         (openat_permissive): Fix typo in comment.
68214
68215         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
68216         "gettext.h"; either no longer needed or are guaranteed by openat.h.
68217         (_): Remove; no longer needed.
68218         (openat): Renamed from rpl_openat; no need for rpl_openat
68219         since openat.h renames openat for us.
68220         Replace most of the body with a call to openat_permissive,
68221         to avoid duplicate code.
68222         Port to (probably hypothetical) environments were mode_t is
68223         wider than int.
68224         (openat_permissive): Require mode arg, so that we can check
68225         types better.  Put it just after flags.  Change cwd failure
68226         indicator from pointer-to-bool to pointer-to-errno-value.
68227         All callers changed.
68228         Invoke openat_save_fail and/or openat_restore_fail if
68229         cwd_errno is null, so that openat can call us.
68230         (openat_permissive, fdopendir, fstatat, unlinkat):
68231         Simplify errno handling to avoid some duplicate code,
68232         as it's OK to set errno on success.
68233         * lib/openat.h: Revamp code so that function macros depend on
68234         __OPENAT_PREFIX only, not also on AT_FDCWD.
68235         (openat_ro): Remove.  Caller changed to use openat_permissive.
68236         (openat_permissive): Now a macro, if not a function.
68237         (openat_restore_fail, openat_save_fail): Now always functions,
68238         since mkdirat needs them even if __OPENAT_PREFIX is defined.
68239
68240         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
68241         and openat.c.
68242         * lib/mkdirat.c: Include openat-priv.h.
68243         Remove definitions of macros defined therein.
68244         * lib/openat.c: Likewise.
68245
68246         * lib/mkdirat.c (mkdirat): New file and function.
68247         * lib/openat.h (mkdirat): Declare.
68248
68249         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
68250
68251         * lib/openat.h (openat_permissive): Declare.
68252         (openat_ro): Define.
68253
68254         * lib/openat.c (EXPECTED_ERRNO): New macro.
68255         (openat_permissive): New function -- used in remove.c rewrite.
68256         (all functions): Set errno just before returning, only if there
68257         was an actual failure.
68258         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
68259
68260         Emulate openat-family functions using Linux's procfs, if possible.
68261         Idea and some code based on Ulrich Drepper's glibc changes.
68262
68263         * lib/openat.c: (BUILD_PROC_NAME): New macro.
68264         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
68265         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
68266         before falling back on save_cwd and restore_cwd.
68267         (fdopendir, fstatat, unlinkat): Likewise.
68268
68269         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
68270         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
68271
68272         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
68273         as second argument to va_arg.  Otherwise, some versions of gcc
68274         warn that `if this code is reached, the program will abort'.
68275
68276 2006-01-09  Jim Meyering  <jim@meyering.net>
68277
68278         Sync from coreutils.
68279         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
68280         Require openat-priv.h.
68281
68282 2006-01-09  Bruno Haible  <bruno@clisp.org>
68283
68284         * modules/strnlen (Include): Use strnlen.h.
68285
68286 2006-01-09  Bruno Haible  <bruno@clisp.org>
68287
68288         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
68289
68290 2006-01-09  Bruno Haible  <bruno@clisp.org>
68291
68292         * lib/sysexit_.h (EX_OK): New macro.
68293         Suggested by Martin Lambers <marlam@marlam.de>.
68294
68295 2006-01-09  Bruno Haible  <bruno@clisp.org>
68296
68297         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
68298         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
68299
68300 2006-01-09  Bruno Haible  <bruno@clisp.org>
68301
68302         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
68303         numbers.
68304
68305 2006-01-09  Bruno Haible  <bruno@clisp.org>
68306
68307         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
68308         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
68309         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
68310         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
68311
68312 2006-01-09  Bruno Haible  <bruno@clisp.org>
68313
68314         * build-aux/javacomp.sh.in: New file, moved from lib/.
68315         * modules/javacomp-script (Files): Update.
68316         (configure.ac): Add AC_CONFIG_FILES invocation.
68317         (EXTRA_DIST): Remove variable.
68318
68319         * build-aux/javaexec.sh.in: New file, moved from lib/.
68320         * modules/javaexec (Files): Update.
68321         (configure.ac): Add AC_CONFIG_FILES invocation.
68322         (EXTRA_DIST): Remove javaexec.sh.in.
68323
68324         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
68325         * modules/csharpcomp-script (Files): Update.
68326         (configure.ac): Add AC_CONFIG_FILES invocation.
68327         (EXTRA_DIST): Remove variable.
68328
68329         * build-aux/csharpexec.sh.in: New file, moved from lib/.
68330         * modules/csharpexec (Files): Update.
68331         (configure.ac): Add AC_CONFIG_FILES invocation.
68332         (EXTRA_DIST): Remove csharpexec.sh.in.
68333
68334 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
68335
68336         Sync from coreutils.
68337
68338         Add POSIX ACL support
68339         * lib/acl.h (copy_acl, set_acl): Add declarations.
68340         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
68341         systems other than Linux.
68342         (chmod_or_fchmod): New function: use fchmod when possible,
68343         and chmod otherwise.
68344         (file_has_acl): Add a POSIX ACL implementation, with a
68345         Linux-specific subcase.
68346         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
68347         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
68348         acls are unsupported.
68349         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
68350         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
68351         are unsupported.
68352
68353 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
68354
68355         Sync from coreutils.
68356         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
68357
68358 2006-01-07  Bruno Haible  <bruno@clisp.org>
68359
68360         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
68361         gl_EARLY.
68362
68363 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
68364
68365         * lib/strftime.c (tzname): Don't declare if it is already #defined.
68366         Problem reported for Mingw by Mark Junker.
68367
68368 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
68369
68370         * README: Gnulib normally doesn't generate a tarball.
68371
68372 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
68373
68374         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
68375         long int, not int, for nanosecond counts, so that people who are
68376         used to POSIX struct timespec won't be surprised.  Reported by Jim
68377         Meyering.
68378
68379 2005-12-28  Bruno Haible  <bruno@clisp.org>
68380
68381         * build-aux/config.rpath: Update from GNU gettext.
68382
68383 2005-12-16  Jim Meyering  <jim@meyering.net>
68384
68385         * modules/fprintftime: New module.
68386         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
68387
68388 2005-12-16  Jim Meyering  <jim@meyering.net>
68389
68390         * m4/fprintftime.m4: New file.
68391
68392 2005-12-16  Jim Meyering  <jim@meyering.net>
68393
68394         * lib/fprintftime.c, lib/fprintftime.h: New files.
68395
68396 2005-12-15  Simon Josefsson  <jas@extundo.com>
68397
68398         * modules/socklen (configure.ac): Fix M4 macro name, to align with
68399         new m4/socklen.m4.
68400
68401 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
68402
68403         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
68404         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
68405
68406 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
68407
68408         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
68409         * lib/argp-help.c (fill_in_uparams): Check if the constructed
68410         struct uparams is valid. Fall back to the default values if it is
68411         not.
68412
68413 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
68414
68415         * modules/argp (Files): Add argp-pin.c
68416         (Depends-on): dirname
68417         (lib_SOURCES): Add argp-pin.c
68418
68419 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
68420
68421         * m4/argp.m4:  Check if program_invocation_name and
68422         program_invocation_short_name are declared and define appropriate
68423         macros if they are not.
68424
68425 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
68426
68427         * lib/argp-help.c (__argp_base_name): New function
68428         (__argp_short_program_name): Rewrite using __argp_base_name
68429         * lib/argp-namefrob.h: Define program_invocation_name and
68430         program_invocation_short_name if requested
68431         (__argp_base_name): Add prototype
68432         * lib/argp-parse.c (argp_def): Use gettext wrappers
68433         (argp_default_parser): Use __argp_base_name
68434         * lib/argp-pin.c: New file. Defines program_invocation_name and
68435         program_invocation_short_name on systems that lack them.
68436
68437 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
68438
68439         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
68440         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
68441         porting problem reported by Georg Schwarz in
68442         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
68443
68444 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
68445
68446         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
68447         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
68448         porting problem reported by Georg Schwarz in
68449         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
68450
68451 2005-12-05  Bruno Haible  <bruno@clisp.org>
68452
68453         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
68454         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
68455         Reported by Mark Junker <mjscod@gmx.de>.
68456
68457 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
68458
68459         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
68460         Use implementation from Albert Chin, with some
68461         comments/corrections by Stepan Kasal and myself.
68462
68463 2005-12-02  Bruno Haible  <bruno@clisp.org>
68464
68465         * gnulib-tool (func_import): Accept GPLed build tool modules when
68466         --lgpl is given.
68467         * modules/csharpcomp-script: New file.
68468         * modules/csharpcomp: Depend on it.
68469         * modules/javacomp-script: New file.
68470         * modules/javacomp: Depend on it.
68471         Suggested by Simon Josefsson.
68472
68473 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
68474
68475         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
68476         statement, to work around an HP-UX 10.20 compiler bug reported by
68477         Peter O'Gorman.
68478
68479 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
68480
68481         * modules/savedir (Depends-on): Add openat.
68482
68483 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
68484
68485         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
68486         (uintmax_t) [defined uintmax_t]: Do not declare.
68487         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
68488         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
68489         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
68490         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
68491         sake of portability to weird hosts that C allows (though we don't
68492         know of any practical examples).
68493
68494         * lib/savedir.h (fdsavedir): New decl.
68495         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
68496         contains most of the former guts of savedir.
68497         (savedir): Use savedirstream.
68498         Include "openat.h".
68499
68500 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
68501
68502         * modules/obstack (Files): Add m4/ulonglong.m4.
68503         Problem reported by Davide Angelocola.
68504
68505 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
68506
68507         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
68508         coreutils no longer futzes with rounding modes.
68509
68510 2005-11-14  Jim Meyering  <jim@meyering.net>
68511
68512         * lib/mkstemp-safer.c: Include <config.h>, required for possible
68513         replacement of mkstemp.
68514
68515 2005-11-10  Simon Josefsson  <jas@extundo.com>
68516
68517         * lib/readline.c: Remove EOL.
68518
68519 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
68520
68521         * modules/gethrxtime (Depends-on): Add gettime.
68522
68523 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
68524
68525         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
68526         or gettimeofday; no longer needed.
68527
68528 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
68529
68530         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
68531         time business.
68532         (gethrxtime) [! (HAVE_NANOUPTIME
68533         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
68534         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
68535         our own approximation.
68536
68537 2005-11-08  Eric Blake  <ebb9@byu.net>
68538
68539         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
68540
68541 2005-11-08  Eric Blake  <ebb9@byu.net>
68542
68543         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
68544
68545 2005-11-04  Bruno Haible  <bruno@clisp.org>
68546
68547         * gnulib-tool: Implement --update mode.
68548
68549 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
68550
68551         Fix porting problem reported by Theodoros V. Kalamatianos.
68552         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
68553         Don't assume that futimes failing means we must fail.
68554
68555 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
68556
68557         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
68558         variables to suggest the intended function of the PATH_MAX check.
68559
68560 2005-10-30  Kean Johnston  <jkj@sco.com>
68561
68562         Trivial changes to support SCO systems.
68563         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
68564         as PATH_MAX.
68565         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
68566         where __ptr is null when no I/O is pending.
68567
68568 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
68569
68570         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
68571         leave errno alone.  Problem reported by Dmitry V. Levin.
68572
68573 2005-10-28  Simon Josefsson  <jas@extundo.com>
68574
68575         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
68576         Test more.
68577
68578         * tests/test-gc-md2.c, tests/test-md2.c: New files.
68579
68580         * modules/md2, modules/md2-tests: New files.
68581
68582 2005-10-28  Simon Josefsson  <jas@extundo.com>
68583
68584         * m4/inet_ntop.m4: More tests.
68585
68586         * m4/gc-md2.m4, md2.m4: New file.
68587
68588 2005-10-28  Simon Josefsson  <jas@extundo.com>
68589
68590         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
68591         "restrict" keywords, as per POSIX.  Protect the function
68592         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
68593         Don't use K&R prototypes.  Check the sprintf return values.
68594         Re-define EAFNOSUPPORT if not present.  Indent.
68595
68596         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
68597         suggested by Bruno Haible <bruno@clisp.org>.
68598
68599         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
68600
68601         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
68602
68603         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
68604         libgcrypt).
68605
68606         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
68607
68608         * lib/md2.h, lib/md2.c: New files.
68609
68610 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
68611
68612         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
68613         errno alone.  Problem reported by Frederic Jolliton.
68614
68615 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
68616
68617         * modules/verify (License): Change from GPL to LGPL.  This is a
68618         tiny module and there are apparently near-equivalents that are
68619         under the BSD license.
68620
68621 2005-10-24  Simon Josefsson  <jas@extundo.com>
68622
68623         * modules/sha1: Relicense to LGPL.
68624
68625 2005-10-24  Simon Josefsson  <jas@extundo.com>
68626
68627         * lib/md4.h: Shrink buffer size, now that we changed the type.
68628
68629 2005-10-23  Simon Josefsson  <jas@extundo.com>
68630
68631         * gnulib-tool (func_import): Fix --tests-base.
68632
68633 2005-10-22  Simon Josefsson  <jas@extundo.com>
68634
68635         * modules/arcfour (Depends-on): Need stdint.
68636
68637 2005-10-22  Simon Josefsson  <jas@extundo.com>
68638
68639         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
68640         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
68641
68642 2005-10-22  Simon Josefsson  <jas@extundo.com>
68643
68644         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
68645         suggested by Bruno Haible <bruno@clisp.org>.
68646
68647 2005-10-22  Simon Josefsson  <jas@extundo.com>
68648
68649         * lib/crc.h: Include stddef.h, for size_t.
68650
68651 2005-10-22  Simon Josefsson  <jas@extundo.com>
68652
68653         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
68654         arcfour_context struct (simplify test vector testing in GNU
68655         Shishi).
68656
68657 2005-10-21  Simon Josefsson  <jas@extundo.com>
68658
68659         * modules/des, modules/des-tests: New files.
68660
68661         * modules/gc-des, modules/gc-des-tests: New files.
68662
68663         * tests/test-des.c, tests/test-gc-des.c: New file.
68664
68665 2005-10-21  Simon Josefsson  <jas@extundo.com>
68666
68667         * modules/arctwo, modules/arctwo-tests: New files.
68668
68669         * tests/test-arctwo.c: New file.
68670
68671         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
68672
68673         * tests/test-gc-arctwo.c: New file.
68674
68675 2005-10-21  Simon Josefsson  <jas@extundo.com>
68676
68677         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
68678         Bruno Haible <bruno@clisp.org>.
68679
68680         * m4/gc-des.m4: New file.
68681
68682 2005-10-21  Simon Josefsson  <jas@extundo.com>
68683
68684         * m4/arctwo.m4: New file.
68685
68686         * m4/gc-arctwo.m4: New file.
68687
68688 2005-10-21  Simon Josefsson  <jas@extundo.com>
68689
68690         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
68691         block.
68692
68693 2005-10-21  Simon Josefsson  <jas@extundo.com>
68694
68695         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
68696         <bruno@clisp.org>.
68697
68698         * lib/hmac-sha1.c (hmac_sha1): Likewise.
68699
68700         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
68701         Bruno Haible <bruno@clisp.org>.
68702
68703         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
68704         <bruno@clisp.org>.
68705
68706 2005-10-21  Simon Josefsson  <jas@extundo.com>
68707
68708         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
68709
68710 2005-10-21  Simon Josefsson  <jas@extundo.com>
68711
68712         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
68713
68714 2005-10-21  Simon Josefsson  <jas@extundo.com>
68715
68716         * lib/des.h, lib/des.c: New files.
68717
68718         * lib/gc-gnulib.c: Support DES.c
68719
68720 2005-10-21  Simon Josefsson  <jas@extundo.com>
68721
68722         * lib/arctwo.h, lib/arctwo.c: New files.
68723
68724         * lib/gc-gnulib.c: Support ARCTWO.
68725
68726 2005-10-21  Simon Josefsson  <jas@extundo.com>
68727
68728         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
68729         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
68730
68731 2005-10-21  Simon Josefsson  <jas@extundo.com>
68732
68733         * gnulib-tool (func_import, func_create_testdir): Define automake
68734         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
68735         Makefile.am snippet),
68736         suggested by Bruno Haible <bruno@clisp.org>.
68737
68738         * modules/gc (Makefile.am): Use it.
68739
68740 2005-10-21  Bruno Haible  <bruno@clisp.org>
68741
68742         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
68743         patch.
68744
68745 2005-10-19  Simon Josefsson  <jas@extundo.com>
68746
68747         * tests/test-gc-rijndael.c: New file.
68748
68749         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
68750
68751 2005-10-19  Simon Josefsson  <jas@extundo.com>
68752
68753         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
68754         interface too.
68755
68756 2005-10-19  Simon Josefsson  <jas@extundo.com>
68757
68758         * tests/test-gc-arcfour.c: New file.
68759
68760         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
68761
68762 2005-10-19  Simon Josefsson  <jas@extundo.com>
68763
68764         * modules/gc-md4, modules/gc-md4-tests: New file.
68765
68766         * tests/test-gc-md4.c: New file.
68767
68768 2005-10-19  Simon Josefsson  <jas@extundo.com>
68769
68770         * m4/gc-md4.m4: New file.
68771
68772 2005-10-19  Simon Josefsson  <jas@extundo.com>
68773
68774         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
68775         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
68776         <kasal@ucw.cz>.
68777
68778 2005-10-19  Simon Josefsson  <jas@extundo.com>
68779
68780         * m4/gc-arcfour.m4: New file.
68781
68782         * m4/gc-rijndael.m4: New file.
68783
68784 2005-10-19  Simon Josefsson  <jas@extundo.com>
68785
68786         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
68787
68788 2005-10-19  Simon Josefsson  <jas@extundo.com>
68789
68790         * lib/gc-gnulib.c: Support ARCFOUR.
68791
68792 2005-10-19  Simon Josefsson  <jas@extundo.com>
68793
68794         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
68795         support.
68796
68797         * lib/gc.h: Add ECB enum type.
68798
68799         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
68800
68801 2005-10-18  Simon Josefsson  <jas@extundo.com>
68802
68803         * tests/test-md5.c: New file.
68804
68805         * modules/md5-tests: New file.
68806
68807 2005-10-18  Simon Josefsson  <jas@extundo.com>
68808
68809         * tests/test-md4.c: New file.
68810
68811         * modules/md4, modules/md4-tests: New files.
68812
68813 2005-10-18  Simon Josefsson  <jas@extundo.com>
68814
68815         * m4/md4.m4: New file.
68816
68817 2005-10-18  Simon Josefsson  <jas@extundo.com>
68818
68819         * lib/md4.h, lib/md4.c: New files, based on md5.?.
68820
68821 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
68822
68823         * gnulib-tool (func_create_testdir): Omit the second check whether
68824         BUILT_SOURCES in nonempty.
68825
68826 2005-10-17  Simon Josefsson  <jas@extundo.com>
68827
68828         * tests/test-rijndael.c: New file.
68829
68830 2005-10-17  Simon Josefsson  <jas@extundo.com>
68831
68832         * modules/sha1: Depend on stdint instead of md5.
68833
68834         * modules/md5: Depend on stdint, remove uint32_t.
68835
68836 2005-10-17  Simon Josefsson  <jas@extundo.com>
68837
68838         * modules/gc-sha1-tests: New file.
68839
68840         * tests/test-gc-sha1.c: New file.
68841
68842 2005-10-17  Simon Josefsson  <jas@extundo.com>
68843
68844         * m4/md5.m4: Remove call to uint32_t.m4.
68845
68846 2005-10-17  Simon Josefsson  <jas@extundo.com>
68847
68848         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
68849
68850         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
68851         md5.h.
68852
68853         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
68854
68855         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
68856
68857 2005-10-17  Simon Josefsson  <jas@extundo.com>
68858
68859         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
68860
68861 2005-10-17  Simon Josefsson  <jas@extundo.com>
68862
68863         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
68864
68865 2005-10-17  Simon Josefsson  <jas@extundo.com>
68866
68867         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
68868
68869         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
68870
68871 2005-10-17  Bruno Haible  <bruno@clisp.org>
68872
68873         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
68874         that it can also be used in a test.
68875
68876 2005-10-16  Bruno Haible  <bruno@clisp.org>
68877
68878         * gnulib-tool (func_emit_tests_Makefile_am): Also define
68879         TESTS_ENVIRONMENT, so that individual tests can augment it.
68880
68881         * gnulib-tool (func_create_testdir): Use an intermediate target for
68882         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
68883         macros, like $(ALLOCA_H), which cannot be passed through the command
68884         line.
68885
68886 2005-10-15  Simon Josefsson  <jas@extundo.com>
68887
68888         * modules/rijndael-tests: New file.
68889
68890         * modules/rijndael: New file.
68891
68892 2005-10-15  Simon Josefsson  <jas@extundo.com>
68893
68894         * m4/rijndael.m4: New file.
68895
68896 2005-10-15  Simon Josefsson  <jas@extundo.com>
68897
68898         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
68899
68900         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
68901
68902 2005-10-14  Simon Josefsson  <jas@extundo.com>
68903
68904         * tests/test-arcfour.c: New file.
68905
68906         * modules/arcfour, modules/arcfour-tests: New files.
68907
68908 2005-10-14  Simon Josefsson  <jas@extundo.com>
68909
68910         * m4/arcfour.m4: New file.
68911
68912 2005-10-14  Simon Josefsson  <jas@extundo.com>
68913
68914         * lib/arcfour.h, lib/arcfour.c: New files.
68915
68916 2005-10-14  Roland McGrath  <roland@redhat.com>
68917
68918         Import from libc.  [BZ #1331]
68919         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
68920         macro argument.
68921         Reported by Matej Vela <vela@debian.org>.
68922
68923 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
68924
68925         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
68926         include <wchar.h>; no longer needed.
68927
68928 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
68929
68930         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
68931
68932 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
68933         and  Ulrich Drepper  <drepper@redhat.com>
68934
68935         Import from libc.
68936         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
68937         instead of inline stream orientation test and two separate
68938         function calls.  Pay no attention to USE_IN_LIBIO.
68939
68940 2005-10-13  Simon Josefsson  <jas@extundo.com>
68941
68942         * modules/gc-hmac-md5-tests: New file.
68943
68944         * tests/test-gc-hmac-sha1.c: New file.
68945
68946         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
68947
68948         * modules/gc-hmac-md5-tests: New file.
68949
68950         * tests/test-gc-md5.c: New file.
68951
68952         * modules/gc-md5-tests: New file.
68953
68954 2005-10-13  Simon Josefsson  <jas@extundo.com>
68955
68956         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
68957         Move memory allocation outside of loop.
68958
68959 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
68960
68961         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
68962         intermediate directory is in a read-only file system.  Problem
68963         reported by Eric Blake.
68964
68965 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
68966
68967         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
68968
68969 2005-10-12  Simon Josefsson  <jas@extundo.com>
68970
68971         * tests/test-hmac-sha1.c: New file.
68972
68973         * modules/hmac-sha1-tests: New file.
68974
68975         * modules/hmac-sha1: New file.
68976
68977 2005-10-12  Simon Josefsson  <jas@extundo.com>
68978
68979         * modules/gc-sha1: New file.
68980
68981 2005-10-12  Simon Josefsson  <jas@extundo.com>
68982
68983         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
68984
68985         * tests/test-gc-pbkdf2-sha1.c: New file.
68986
68987 2005-10-12  Simon Josefsson  <jas@extundo.com>
68988
68989         * modules/gc-md5, modules/gc-hmac-md5: New files.
68990
68991         * modules/gc (Files): Remove md5, memxor and hmac files.
68992
68993 2005-10-12  Simon Josefsson  <jas@extundo.com>
68994
68995         * m4/gc-pbkdf2-sha1.m4: New file.
68996
68997         * m4/gc-hmac-sha1.m4: New file.
68998
68999         * m4/gc-sha1: New file.
69000
69001         * m4/hmac-sha1.m4: New file.
69002
69003 2005-10-12  Simon Josefsson  <jas@extundo.com>
69004
69005         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
69006
69007         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
69008
69009 2005-10-12  Simon Josefsson  <jas@extundo.com>
69010
69011         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
69012         suggested by Bruno Haible <bruno@clisp.org>.
69013
69014 2005-10-12  Simon Josefsson  <jas@extundo.com>
69015
69016         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
69017
69018 2005-10-12  Simon Josefsson  <jas@extundo.com>
69019
69020         * lib/gc-pbkdf2-sha1.c: New file.
69021
69022         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
69023
69024 2005-10-12  Simon Josefsson  <jas@extundo.com>
69025
69026         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
69027
69028         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
69029
69030 2005-10-12  Simon Josefsson  <jas@extundo.com>
69031
69032         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
69033         GC_USE_HMAC_MD5, respectively.
69034
69035         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
69036         (gc_md5): Fix typo.
69037
69038         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
69039
69040         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
69041
69042         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
69043
69044 2005-10-12  Bruno Haible  <bruno@clisp.org>
69045
69046         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
69047         Reported by Stepan Kasal <kasal@ucw.cz>.
69048
69049 2005-10-11  Simon Josefsson  <jas@extundo.com>
69050
69051         * tests/test-crc.c: New file.
69052
69053         * modules/crc, modules/crc-tests: New files.
69054
69055 2005-10-11  Simon Josefsson  <jas@extundo.com>
69056
69057         * m4/crc.m4: New file.
69058
69059 2005-10-11  Simon Josefsson  <jas@extundo.com>
69060
69061         * lib/gc.h: Add gc_hash and gc_hash_buffer.
69062
69063         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
69064
69065         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
69066
69067 2005-10-11  Simon Josefsson  <jas@extundo.com>
69068
69069         * lib/crc.h, lib/crc.c: New files.
69070
69071         * lib/gc.h (gc_hash_buffer): Add doc.
69072
69073 2005-10-11  Bruno Haible  <bruno@clisp.org>
69074
69075         * modules/c-strcasestr: New file.
69076         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
69077
69078 2005-10-11  Bruno Haible  <bruno@clisp.org>
69079
69080         * modules/c-strcase: New file.
69081         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
69082
69083 2005-10-11  Bruno Haible  <bruno@clisp.org>
69084
69085         * lib/strcasecmp.c: Include limits.h.
69086         (strcasecmp): Avoid integer overflow on exotic platforms.
69087         * lib/strncasecmp.c: Include limits.h.
69088         (strncasecmp): Avoid integer overflow on exotic platforms.
69089         Reported by Paul Eggert.
69090
69091 2005-10-11  Bruno Haible  <bruno@clisp.org>
69092
69093         * lib/c-strcasestr.h: New file, from GNU gettext.
69094         * lib/c-strcasestr.c: New file, from GNU gettext.
69095
69096 2005-10-11  Bruno Haible  <bruno@clisp.org>
69097
69098         * lib/c-strcase.h: New file, from GNU gettext.
69099         * lib/c-strcasecmp.c: New file, from GNU gettext.
69100         * lib/c-strncasecmp.c: New file, from GNU gettext.
69101
69102 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
69103
69104         * modules/mempcpy (License): GPL -> LGPL.
69105         * modules/strchrnul (License): Likewise.
69106         * modules/sysexits (License): Likewise.
69107
69108 2005-10-08  Simon Josefsson  <jas@extundo.com>
69109
69110         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
69111
69112 2005-10-07  Simon Josefsson  <jas@extundo.com>
69113
69114         * m4/memxor.m4: Remove gl_C_RESTRICT call.
69115
69116 2005-10-06  Simon Josefsson  <jas@extundo.com>
69117
69118         * tests/test-hmac-md5.c: New file.
69119
69120         * modules/hmac-md5-tests: New file.
69121
69122         * modules/hmac-md5: New file.
69123
69124 2005-10-06  Simon Josefsson  <jas@extundo.com>
69125
69126         * m4/hmac-md5.m4: New file.
69127
69128         * m4/memxor.m4: Require gl_C_RESTRICT.
69129
69130 2005-10-06  Simon Josefsson  <jas@extundo.com>
69131
69132         * lib/memxor.c (memxor): Avoid casts and warnings.
69133
69134 2005-10-06  Simon Josefsson  <jas@extundo.com>
69135
69136         * lib/hmac-md5.c: New file.
69137
69138         * lib/hmac.h: New file.
69139
69140 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
69141
69142         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
69143         promotes to int, not unsigned int, to catch the AIX 5.3
69144         compiler bug.
69145
69146 2005-10-05  Simon Josefsson  <jas@extundo.com>
69147
69148         * modules/memxor: New file.
69149
69150         * modules/iconv (Files): Move config.rpath to havelib, it is used
69151         there.
69152
69153         * modules/havelib (Files): Add config.rpath.
69154
69155 2005-10-05  Simon Josefsson  <jas@extundo.com>
69156
69157         * m4/memxor.m4: New file.
69158
69159 2005-10-05  Simon Josefsson  <jas@extundo.com>
69160
69161         * lib/memxor.c (memxor): Fix compiler error.
69162
69163         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
69164         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
69165
69166         * lib/memxor.h, lib/memxor.c: New files.
69167
69168         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
69169         we assume all systems have it, suggested by Jim Meyering
69170         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
69171         any systems lack sys/socket.h; mingw32 is known to lack it, but we
69172         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
69173         same reasons.
69174
69175 2005-10-05  Simon Josefsson  <jas@extundo.com>
69176
69177         * config/srclist.txt: Add glibc bug 1423 for md5.h.
69178
69179 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
69180
69181         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
69182         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
69183         needed, since the source code now assumes these .h files.
69184
69185 2005-10-05  Derek Price  <derek@ximbiot.com>
69186
69187         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
69188
69189 2005-10-05  Bruno Haible  <bruno@clisp.org>
69190
69191         * modules/stdint (License): Change to LGPL.
69192
69193 2005-10-04  Simon Josefsson  <jas@extundo.com>
69194
69195         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
69196         D. Baushke" <mdb@gnu.org>.
69197
69198 2005-10-04  Bruno Haible  <bruno@clisp.org>
69199
69200         * lib/verify.h (verify_true): Provide alternative definition for C++.
69201
69202 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
69203
69204         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
69205         (SSIZE_MAX): New macro, if not already defined.
69206         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
69207         than 2 GiB.
69208
69209 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
69210
69211         Sync from coreutils.
69212         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
69213         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
69214         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
69215         ULLONG_MAX doesn't work with 2.7.2.1.
69216
69217 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
69218
69219         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
69220         From Ben Pfaff.
69221
69222         * modules/exclude (Depends-on): Depend on verify.
69223         * modules/strtoimax (Depends-on): Likewise.
69224         * modules/utimecmp (Depends-on): Likewise.
69225
69226 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
69227
69228         * lib/exclude.c: Include verify.h.
69229         (verify): Remove.  All callers changed to use verify.h's version.
69230         * lib/strtoimax.c: Likewise.
69231         * lib/utimecmp.c: Likewis.e
69232
69233         Sync from coreutils.
69234         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
69235         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
69236         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
69237         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
69238         bother returning ENOSYS if settimeofday or stime fails; just let
69239         them return whatever errno they want to return.
69240         * lib/utimens.c: Include unistd.h, for dup2.
69241         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
69242         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
69243
69244 2005-10-02  Jim Meyering  <jim@meyering.net>
69245
69246         Sync from coreutils.
69247         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
69248         from glibc-2.2.5 that fails for read-only files.
69249
69250 2005-10-02  Jim Meyering  <jim@meyering.net>
69251
69252         Sync from coreutils.
69253         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
69254         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
69255         `#if HAVE_CONFIG_H'.
69256         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
69257         Remove AT_FDCWD test.
69258         Do not consume the fd unless successful.
69259         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
69260         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
69261         block, so that we don't even try to compile it if settimeofday is
69262         available.  This works around a compilation failure on OSF1 V5.1,
69263         due to stime requiring a `long int*' while tv_sec is `int'.
69264
69265 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
69266
69267         Sync from coreutils.
69268         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
69269         against `yes', rather than just testing for nonempty.
69270
69271 2005-10-01  Simon Josefsson  <jas@extundo.com>
69272
69273         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
69274         and Darwin.
69275
69276         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
69277         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
69278         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
69279         freeaddrinfo and gai_strerror are declared by the POSIX headers.
69280         Check if struct addrinfo is declared.
69281
69282 2005-10-01  Simon Josefsson  <jas@extundo.com>
69283
69284         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
69285         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
69286         AI_* and EAI_* definitions.  Protect function declarations.
69287
69288 2005-10-01  Jim Meyering  <jim@meyering.net>
69289
69290         Sync from coreutils.
69291
69292         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
69293         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
69294         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
69295         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
69296         in the inet and nsl libraries.  Required on Solaris 5.7.
69297
69298 2005-10-01  Jim Meyering  <jim@meyering.net>
69299
69300         Sync from coreutils.
69301         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
69302         in the inet and nsl libraries.  Required on Solaris 5.7.
69303
69304 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
69305
69306         * lib/getdelim.c (getdelim): Remove unused variables.
69307
69308 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
69309
69310         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
69311         so that the code works even with ancient cpp.  Portability problem
69312         with GCC 2.7.2.1 reported by Thomas M.Ott.
69313
69314 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
69315
69316         * modules/regex (Depends-on): Add strcase.
69317
69318         * modules/gethostname (Licence): Change from GPL to LGPL, since
69319         gethostname.c is a trivial implementation of a standard library
69320         function.
69321         * modules/poll (License): Change from GPL to LGPL, since it's
69322         derived from LGPL code.
69323
69324 2005-09-27  Jim Meyering  <jim@meyering.net>
69325
69326         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
69327         HAVE_CONFIG_H.
69328
69329         * lib/intprops.h (signed_type_or_expr__): Define.
69330         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
69331         for unsigned types.
69332
69333 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
69334
69335         * lib/verify.h (verify_expr): Remove, replacing with:
69336         (verify_true): New macro that returns true instead of void.
69337         (verify_type__): Remove.
69338         (verify): Use verify_true rather than verify_type__.
69339
69340 2005-09-26  Bruno Haible  <bruno@clisp.org>
69341
69342         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
69343         is necessary.
69344         (lib_SOURCES): Remove mbchar.c.
69345         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
69346         (Files): Add m4/mbrtowc.m4.
69347         * modules/mbiter: Likewise.
69348         * modules/mbuiter: Likewise.
69349
69350 2005-09-26  Bruno Haible  <bruno@clisp.org>
69351
69352         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
69353         compile mbchar.c if they are not both present.
69354         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
69355         * m4/mbiter.m4 (gl_MBITER): Likewise.
69356         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
69357         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
69358         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
69359
69360 2005-09-25  Jim Meyering  <jim@meyering.net>
69361
69362         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
69363         also uses socklen_t.
69364
69365 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
69366
69367         * lib/utimens.c (ENOSYS): Define if not already defined.
69368         (futimens): Support having a null PATH if the file descriptor
69369         is nonnegative.
69370
69371         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
69372         Remove.
69373         (__attribute): Define to empty unless GCC 3.1 or later.
69374         This works around a core dump on OpenBSD 3.4, which has GCC
69375         2.95.3, which dumps core when given __attribute__(()).  It also
69376         simplifies other tests, since we really don't want to bother with
69377         worrying about which ancient version of GCC supported what.
69378         Original problem reported by Yoann Vandoorselaere, with part of
69379         the fix suggested by Derek Price.
69380
69381 2005-09-24  Jim Meyering  <jim@meyering.net>
69382
69383         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
69384         so we can once again use a positive bitfield width of 1 -- now we
69385         don't have to explain why we were using a bitfield width of 2.
69386
69387 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
69388
69389         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
69390         and similarly for the other external symbols.  Problem reported
69391         by James Gallager.
69392
69393         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
69394         bug reported by Jim Meyering.
69395
69396         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
69397         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
69398         not needed, since socklen is a prerequisite module.
69399
69400 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
69401
69402         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
69403         Problem reported by Eric Blake.
69404         (getaddrinfo): Initialize se so that it's not garbage.
69405         Redo internal storage allocation so that it doesn't make unportable
69406         assumptions about alignment.
69407         Fix a memory leak.
69408
69409         * lib/utimens.c (futimens): Use futimesat if available.
69410         Prefer it to futimes since it doesn't have the futimes bug.
69411
69412         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
69413         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
69414         Instead, declare a function that returns a pointer to an array,
69415         and use verify_type__ to declare the size of the array.
69416         Problem and germ of a solution reported by Bruno Haible.
69417         (verify_type__): Use 2, not 1, for bitfield size, to avoid
69418         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
69419
69420 2005-09-23  Jim Meyering  <jim@meyering.net>
69421
69422         Sync from coreutils.
69423         Correct build failure (socklen_t not defined) on at least
69424         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
69425         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
69426
69427 2005-09-23  Jim Meyering  <jim@meyering.net>
69428
69429         * modules/getaddrinfo (Depends-on): Add socklen.
69430
69431 2005-09-23  Bruno Haible  <bruno@clisp.org>
69432
69433         * tests/test-verify.c: New file.
69434
69435 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
69436
69437         Sync from coreutils.
69438
69439         * modules/argmatch (Depends-on): Add verify.
69440         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
69441         unistd-safer.
69442         * modules/save-cwd (Depends-on): Likewise.
69443
69444         * modules/openat (Files): Add lib/openat-die.c.
69445         (Depends-on): Remove error, exitfail.
69446         Add dirname.
69447
69448         * modules/verify: New file.
69449         * MODULES.html.sh (Diagnostics <assert.h>): New section,
69450         with "verify" module.
69451
69452 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
69453
69454         Sync from coreutils.
69455
69456         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
69457         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
69458         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
69459         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
69460         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
69461         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
69462         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
69463         Don't bother checking for string.h, stdlib.h, unistd.h.
69464         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
69465         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
69466         module's job.
69467         * m4/jm-macros.m4 (gl_MACROS): Likewise.
69468         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
69469
69470         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
69471         (gl_GETDATE): Use it.
69472
69473         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
69474
69475 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
69476
69477         Sync from coreutils.
69478
69479         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
69480         stat-time.h.
69481         * lib/argmatch.h: Include verify.h
69482         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
69483         (ARGMATCH_ASSERT): Remove; unused.
69484         * lib/canonicalize.c: Assume STDC_HEADERS.
69485         * lib/exclude.c: Include "strcase.h".
69486         * lib/regex_internal.h [!defined _LIBC]: Likewise.
69487         * lib/getusershell.c: Include stdio--.h rather than stdio.h
69488         and stdio-safer.h.
69489         (getusershell): Call fopen, not fopen_safer.
69490         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
69491         Do not include unistd-safer.h.
69492         (save_cwd): Don't call fd_safer; no longer needed
69493         now that we include fcntl--.h.
69494
69495         * lib/getdate.y (relative_time): New type.
69496         (RELATIVE_TIME_0): New constant.
69497         (parser_control): Use relative_time instead of doing it ourselves.
69498         (%union): Add new relative_time rel member.
69499         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
69500         Now typeless.
69501         (relunit, relunit_snumber): Now of type rel.
69502         (zone, rel, relunit, get_date): Adjust to above changes.
69503
69504         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
69505         Do not include unistd-safer.h.
69506         (getloadavg): Don't call fd_safer; no longer needed
69507         now that we include fcntl--.h.
69508
69509         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
69510         (make_dir_parents): Treat ENOSYS like EEXIST.
69511
69512         Improve quality of diagnostics on restore_cwd failure.
69513         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
69514         (make_dir_parents): Last arg is now int * (for errno), not bool *.
69515         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
69516         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
69517         each time through the loop.  Do not diagnose restore_cwd failure;
69518         that is the caller's job (and perhaps the caller does not care).
69519
69520         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
69521         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
69522         If the file already exists but is not a directory, don't bother
69523         to try to make its parents.
69524         Close potential file descriptor leak if we can't chdir("/") (!).
69525         Don't always return true if chdir($PWD) fails; return true only
69526         if the requested action was done successfully (except for the
69527         chdir($PWD)).
69528         Don't log final directory unless we actually made it.
69529         Refactor to avoid duplicate code to fix up permissions.
69530         Don't attempt to fix up parent permissions if chdir($PWD) fails.
69531
69532         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
69533         to make it a bit faster and (I hope) clearer.
69534         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
69535         Fix bug in formats like %2N.
69536
69537         * lib/verify.h: New file.
69538
69539 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
69540
69541         Sync from coreutils.
69542         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
69543
69544 2005-09-22  Jim Meyering  <jim@meyering.net>
69545
69546         Sync from coreutils.
69547
69548         * m4/lstat.m4 (gl_FUNC_LSTAT):
69549         Use AC_LIBSOURCES to require lstat.c and lstat.h.
69550         Remove obsolete comment.
69551         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
69552         * m4/xstrtod.m4: Likewise.
69553
69554         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
69555
69556 2005-09-22  Jim Meyering  <jim@meyering.net>
69557
69558         Sync from coreutils.
69559
69560         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
69561
69562         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
69563         the .tm_year member, since otherwise gcc-4.0 would now warn about
69564         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
69565
69566         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
69567         order to avoid an unsuppressible warning from gcc on 64-bit systems.
69568
69569         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
69570         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
69571         when run in a time zone for which daylight savings time is in effect
69572         for the starting date.
69573
69574         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
69575         stop us from restricting permissions of just-created absolute-named
69576         directories.
69577         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
69578         to restore initial working directory.
69579         * lib/mkdir-p.c (make_dir_parents): New parameter:
69580         different_working_dir, to tell caller if/when we change the working
69581         directory and are unable to return to the initial one.
69582         * lib/mkdir-p.h (make_dir_parents): Update prototype.
69583         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
69584         `return false'.  This fixes a bug introduced on 2004-07-30.
69585
69586         * lib/openat.c (fdopendir): Be sure to close the supplied
69587         file descriptor before returning.  This makes our replacement
69588         implementation a little closer to Solaris's, where fdopendir
69589         ties the file descriptor to the returned DIR* pointer.
69590         * lib/openat.c (unlinkat): New function.
69591         * lib/openat.h (unlinkat): Add prototype.
69592         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
69593         (openat_restore_fail): Rename from openat_restore_die.
69594         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
69595
69596         Provide an alternative to exiting immediately upon save_cwd or
69597         restore_cwd failure.  Now, an application can arrange e.g.,
69598         to perform a longjump in that case.
69599         * lib/openat.c: Include dirname.h.
69600         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
69601         (rpl_openat, fdopendir, fstatat): Call openat_save_die
69602         and openat_restore_die rather than calling error directly.
69603         Don't include "error.h" or "exitfail.h"; they're no longer needed.
69604
69605         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
69606         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
69607         define.
69608
69609         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
69610         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
69611                             int utc, int nanoseconds);
69612         Background:
69613         date should not have to allocate a megabyte of virtual memory to
69614         handle a format argument like +%1048575T.  When implemented with
69615         strftime, it must allocate such a buffer, use strftime to fill it
69616         in, print it, then free it.
69617         With fprintftime, it simply prints everything and exits.
69618         With no need for memory allocation, that's one fewer way to fail.
69619         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
69620         optional field width, not before, so we accept %9:z, not %:9z.
69621         (my_strftime): Be sure to use L_('x') for literals.
69622
69623         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
69624         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
69625         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
69626         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
69627         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
69628         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
69629         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
69630         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
69631         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
69632         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
69633         * lib/xgethostname.c, lib/xreadlink.c:
69634         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
69635
69636         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
69637         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
69638         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
69639         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
69640         and don't include <sys/file.h>).
69641
69642 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
69643
69644         Sync from coreutils.
69645
69646         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
69647         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
69648         [!LDAV_DONE]: Avoid unused variable warning.
69649
69650 2005-09-21  Bruno Haible  <bruno@clisp.org>
69651
69652         * lib/unicodeio.h (unicode_to_mb): New declaration.
69653
69654 2005-09-20  Derek Price  <derek@ximbiot.com>
69655
69656         * lib/getaddrinfo.c: Don't include <netdb.h> included from
69657         getaddrinfo.h.
69658
69659 2005-09-20  Bruno Haible  <bruno@clisp.org>
69660
69661         * gnulib-tool: Remove trailing slashes from the values specified for
69662         --source-base, --m4-base, --tests-base, --aux-dir.
69663         Suggested by Simon Josefsson <jas@extundo.com>.
69664
69665 2005-09-20  Bruno Haible  <bruno@clisp.org>
69666
69667         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
69668         func_modules_to_filelist, func_import, func_create_testdir): Make all
69669         sorting results locale-independent, so that gnulib-cache.m4 doesn't
69670         change when gnulib-tool is invoked in a different locale.
69671
69672 2005-09-19  Simon Josefsson  <jas@extundo.com>
69673
69674         * m4/socklen.m4: Fix typo.
69675
69676 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69677
69678         Use a consistent style for including <config.h>.
69679         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
69680         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
69681         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
69682         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
69683         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
69684         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
69685         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
69686         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
69687         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
69688         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
69689         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
69690         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
69691         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
69692         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
69693         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
69694         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
69695         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
69696         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
69697         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
69698         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
69699         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
69700         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
69701         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
69702         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
69703         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
69704         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
69705         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
69706         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
69707         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
69708         lib/xstrtoumax.c, lib/yesno.c:
69709         Standardize inclusion of config.h.
69710         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
69711         lib/inttostr.h:  Removed inclusion of config.h from header files.
69712         * lib/inttostr.c:  Adjusted in-tree users.
69713         * lib/timespec.h: Remove superfluous warning to include config.h.
69714         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
69715         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
69716         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
69717         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
69718         config.h with HAVE_CONFIG_H.
69719
69720 2005-09-19  Jim Meyering  <jim@meyering.net>
69721
69722         * modules/pathmax (License): Change to LGPL.
69723
69724 2005-09-19  Derek Price  <derek@ximbiot.com>
69725
69726         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
69727
69728 2005-09-19  Bruno Haible  <bruno@clisp.org>
69729
69730         * gnulib-tool (import): Provide default for --tests-base.
69731
69732 2005-09-19  Bruno Haible  <bruno@clisp.org>
69733
69734         * doc/quote.texi: New file, extracted from gnulib.texi.
69735         * doc/ctime.texi: New file, extracted from gnulib.texi.
69736         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
69737         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
69738         * doc/gnulib.texi: Include them.
69739
69740 2005-09-18  Bruno Haible  <bruno@clisp.org>
69741
69742         Portability fix.
69743         * gnulib-tool (func_readlink): New function.
69744         (func_ln_if_changed): Use it.
69745
69746 2005-09-18  Bruno Haible  <bruno@clisp.org>
69747
69748         * gnulib-tool: Support --with-tests also with --import.
69749         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
69750         (func_import): Use variables $testsbase and $inctests. Emit a
69751         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
69752         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
69753         SUBDIRS += $testsdir.
69754         (func_create_testdir): Update.
69755
69756 2005-09-18  Bruno Haible  <bruno@clisp.org>
69757
69758         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
69759         instead of $dry_run.
69760         (func_cp_if_changed, func_mv_if_changed): Remove functions.
69761         (func_ln_if_changed): Don't handle dry-run here.
69762         (func_import): In dry-run mode, detect more precisely which actions
69763         would be performed, and don't use "...ing" verbs.
69764
69765 2005-09-18  Bruno Haible  <bruno@clisp.org>
69766
69767         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
69768         (func_import): Use join on two temporary files instead of three nested
69769         loops, in order to determine which files are new or old.
69770
69771 2005-09-18  Bruno Haible  <bruno@clisp.org>
69772
69773         * gnulib-tool (func_import): Comment out code that spits out the
69774         new files with --dry-run.
69775
69776 2005-09-18  Bruno Haible  <bruno@clisp.org>
69777
69778         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
69779
69780 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
69781
69782         * lib/stat-time.h: New file.
69783         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
69784         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
69785         in a different way.
69786         (timespec_cmp): New function.
69787         * lib/utimecmp.c: Include stat-time.h.
69788         (SYSCALL_RESOLUTION): Depend on whether various struct stat
69789         members exist, not on the obsolescent ST_MTIM_NSEC.
69790         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
69791
69792 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
69793
69794         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
69795
69796 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
69797
69798         * MODULES.html.sh (File system functions): Add stat-time.
69799         * modules/stat-time: New file.
69800         * modules/timespec (Files): Remove m4/st_mtim.m4; this
69801         is now done in a different way, by the stat-time module.
69802         * modules/utimecmp (Depends-on): Add stat-time.
69803
69804 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
69805
69806         * m4/st_mtim.m4: Remove.  Superseded by...
69807         * m4/stat-time.m4: New file.
69808         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
69809         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
69810
69811 2005-09-15  Derek Price  <derek@ximbiot.com>
69812
69813         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
69814
69815 2005-09-15  Derek Price  <derek@ximbiot.com>
69816
69817         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
69818         * lib/regex_internal.c: Ditto, using this...
69819         (__GNUC_PREREQ): ...new macro.
69820         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
69821         using...
69822         (__GNUC_PREREQ): ...this new macro.
69823
69824         * lib/strstr.h: Include string.h. Define strstr as a macro here.
69825
69826 2005-09-15  Derek Price  <derek@ximbiot.com>
69827             Paul Eggert  <eggert@cs.ucla.edu>
69828
69829         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
69830         changes, consolidating in...
69831         * lib/regex_internal.h: ...this file.
69832
69833 2005-09-13  Jim Meyering  <jim@meyering.net>
69834
69835         * lib/canon-host.c: Filter through gnu indent and reword comments
69836         slightly.
69837         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
69838
69839 2005-09-13  Derek Price  <derek@ximbiot.com>
69840
69841         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
69842         failure.
69843         Reported by Jim Meyering  <jim@meyering.net>.
69844
69845 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
69846
69847         * lib/base64.c: Typo.
69848         (base64_encode): Put b64str in initialized data section.
69849
69850 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
69851
69852         Merge glibc and coreutils changes into gnulib, plus a few
69853         extra fixes.
69854         * lib/md5.c: Use #error rather than a string.
69855         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
69856         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
69857         (__attribute__): Define to empty for non recent-GCC.
69858         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
69859         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
69860         Renamed from their non-__ counterparts, with new macros replacing
69861         them if not _LIBC.  Add __THROW attribute.
69862         (rol): Remove.
69863         (struct md5_ctx): Align buffer if using GCC.
69864         * lib/sha1.h (struct sha1_ctx): Likewise.
69865         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
69866         The old name was backwards.
69867         (NOTSWAP): Remove; not used.
69868         (rol): New macro, moved here from md5.h.
69869         (sha1_process_block): Remove a FIXME that doesn't make sense.
69870
69871 2005-09-12  Derek Price  <derek@ximbiot.com>
69872
69873         Return usable errors from canon-host.
69874         * lib/canon-host.h: New file.
69875         * lib/canon-host.c (canon_host): Wrap...
69876         (canon_host_r): ...this new function, which now relies exclusively on
69877         getaddrinfo.
69878         (ch_strerror): New function.
69879         (last_cherror): New global.
69880         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
69881         interface.
69882         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
69883         void *.
69884         (freeaddrinfo): Free ai->ai_canonname when set.
69885
69886 2005-09-12  Derek Price  <derek@ximbiot.com>
69887
69888         Make canon-host require getaddrinfo.
69889         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
69890         AC_LIBSOURCE canon-host.h.  Call...
69891         (gl_PREREQ_CANON_HOST): ...this new function, which requires
69892         gl_GETADDRINFO.
69893         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
69894
69895 2005-09-12  Derek Price  <derek@ximbiot.com>
69896
69897         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
69898         LGPL.
69899         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
69900
69901 2005-09-12  Derek Price  <derek@ximbiot.com>
69902
69903         * lib/gai_strerror.c: Include config.h when available.  Include
69904         getaddrinfo.h before other headers to test interface.
69905         Reported by Larry Jones <lawrence.jones@ugs.com>.
69906
69907 2005-09-12  Derek Price  <derek@ximbiot.com>
69908             Paul Eggert  <eggert@cs.ucla.edu>
69909
69910         * modules/glob (Files): Add glob-libc.h.
69911
69912 2005-09-12  Derek Price  <derek@ximbiot.com>
69913             Paul Eggert  <eggert@cs.ucla.edu>
69914
69915         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
69916         glob_.h, glob-libc.h.
69917         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
69918
69919 2005-09-12  Derek Price  <derek@ximbiot.com>
69920             Paul Eggert  <eggert@cs.ucla.edu>
69921
69922         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
69923         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
69924         protecting things that should be done only in gnulib contexts.
69925         * lib/glob_.h: New file, containing only the glob things needed for
69926         gnulib.
69927         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
69928         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
69929         (glob, globfree, glob_pattern_p): Now defined simply in terms of
69930         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
69931         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
69932         and to respect the namespace rules better.
69933
69934 2005-09-08  Simon Josefsson  <jas@extundo.com>
69935
69936         * modules/socklen: New file.
69937
69938 2005-09-08  Simon Josefsson  <jas@extundo.com>
69939
69940         * m4/socklen.m4: New file.
69941
69942 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
69943
69944         * modules/utimens (Files): Add m4/utimbuf.m4, since
69945         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
69946         Reported by Sergey Poznyakoff.
69947
69948 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
69949
69950         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
69951         definitions, since that's the preferred style in glibc.
69952         Fix a minor spacing issue, and update copyright notice to match
69953         glibc's.
69954
69955 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
69956
69957         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
69958
69959 2005-09-06  Simon Josefsson  <jas@extundo.com>
69960
69961         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
69962         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
69963
69964 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
69965
69966         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
69967         warning.
69968
69969 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
69970
69971         * config/srclist.txt: Add glibc bug 1302.
69972
69973 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
69974
69975         Change bitset word type from unsigned int to unsigned long int,
69976         as this has better performance on typical 64-bit hosts.
69977         Port bitset code to hosts with unusual word sizes.
69978         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
69979         (build_collating_symbol):
69980         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
69981         argument is a bitset.  This is merely a style issue, but it makes
69982         it clearer that an entire array is expected.
69983         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
69984         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
69985         Port to the case where bitset_word is not the same as unsigned int.
69986         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
69987         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
69988         Likewise.
69989         * lib/regexec.c (check_dst_limits_calc_pos_1,
69990         check_subexp_matching_top):
69991         (build_trtable, group_nodes_into_DFAstates):
69992         Likewise.
69993         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
69994         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
69995         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
69996         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
69997         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
69998         * lib/regcomp.c (optimize_subexps, lower_subexp):
69999         Work even if bitset_word has holes in its bitwise representation.
70000         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
70001         * lib/regexec.c (check_dst_limits_calc_pos_1,
70002         check_subexp_matching_top):
70003         Likewise.
70004         * lib/regex_internal.c (re_string_reconstruct):
70005         Don't assume UCHAR_MAX == 255.
70006         * lib/regex_internal.h (bitset_set_all): Likewise.
70007         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
70008         All uses changed.
70009         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
70010         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
70011         All uses changed.
70012         (BITSET_WORD_MAX): New macro.
70013         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
70014         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
70015         (bitset_empty, bitset_copy):
70016         Prefer sizeof (bitset) to multiplying it out ourselves.
70017         (bitset_not_merge): Remove; unused.
70018         (bitset_contain): Return bool, not unsigned int with one bit on.
70019         All callers changed.
70020         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
70021         alignment than re_node_set; do this by defining a new internal
70022         type struct dests_alloc and using it to allocate memory.
70023
70024 2005-09-05  Bruno Haible  <bruno@clisp.org>
70025
70026         * gnulib-tool (func_import): Fix comparison in handling of symbolic
70027         links.
70028
70029 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
70030
70031         * modules/size_max (Makefile.am): Add size_max.h
70032
70033 2005-09-04  Derek Price  <derek@ximbiot.com>
70034
70035         * gnulib-tool (func_import): Fix reversed $symbolic logic.
70036
70037 2005-09-03  Simon Josefsson  <jas@extundo.com>
70038
70039         * gnulib-tool: Fix typo.
70040
70041 2005-09-03  Simon Josefsson  <jas@extundo.com>
70042
70043         * config/srclist.txt: Add glibc bug 1293.
70044
70045 2005-09-03  Derek Price  <derek@ximbiot.com>
70046
70047         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
70048         From Larry Jones <lawrence.jones@ugs.com>.
70049
70050 2005-09-02  Simon Josefsson  <jas@extundo.com>
70051
70052         * modules/socklen: New file.
70053
70054 2005-09-02  Simon Josefsson  <jas@extundo.com>
70055
70056         * modules/havelib: New module.
70057
70058         * modules/gettext, modules/iconv, modules/lock, modules/readline:
70059         Use havelib.
70060
70061 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
70062
70063         Check for arithmetic overflow when calculating sizes, to prevent
70064         some buffer-overflow issues.  These patches are conservative, in the
70065         sense that when I couldn't determine whether an overflow was possible,
70066         I inserted a run-time check.
70067         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
70068         macros.
70069         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
70070         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
70071         (re_xnrealloc, re_x2nrealloc): New inline functions.
70072         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
70073         parse_bracket_exp):
70074         (build_equiv_class, build_charclass): Check for arithmetic overflow
70075         in size expression calculations.
70076         * lib/regex_internal.c (re_string_realloc_buffers):
70077         (build_wcs_upper_buffer, re_node_set_add_intersect):
70078         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
70079         (re_dfa_add_node, register_state): Likewise.
70080         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
70081         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
70082         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
70083         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
70084
70085 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
70086
70087         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
70088         m4/ulonglong.m4.  Problem reported by Martin Lambers.
70089
70090 2005-09-02  Bruno Haible  <bruno@clisp.org>
70091
70092         Support for lib vs. lib64 distinction on biarch platforms.
70093         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
70094         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
70095         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
70096
70097 2005-09-02  Bruno Haible  <bruno@clisp.org>
70098
70099         * gnulib-tool (import): In the other first-use case, provide defaults
70100         as well.
70101
70102 2005-09-02  Bruno Haible  <bruno@clisp.org>
70103
70104         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
70105         patches not yet found in the latest gettext release.
70106
70107 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
70108
70109         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
70110         to avoid a collision with bits/local_lim.h in glibc.
70111         All uses changed.  Problem reported by Dmitry V. Levin in
70112         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
70113
70114         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
70115         bugs in int versus size_t comparisons.
70116         (re_string_context_at): Fix bug where the code assumed that
70117         Idx is signed.
70118
70119         Use bool where appropriate.
70120         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
70121         All callers changed.
70122         (calc_eclosure_iter): Likewise, for ROOT arg.
70123         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
70124         (build_charclass_op): Likewise, for NON_MATCH arg.
70125         * lib/regex_internal.c (re_string_allocate, re_string_construct):
70126         (re_string_construct_common): Likewise, for ICASE arg.
70127         * lib/regexec.c (re_search_2_stub, re_search_stub):
70128         Likewise, for RET_LEN arg.
70129         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
70130         (set_regs): Likewise, for FL_BACKTRACK arg.
70131         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
70132         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
70133         (calc_eclosure_iter, parse_bracket_exp):
70134         Use bool for internal variables that are booleans.
70135         * lib/regexec.c (re_search_internal, check_matching,
70136         proceed_next_node):
70137         (set_regs, build_sifted_states, sift_states_bkref):
70138         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
70139         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
70140         (find_collation_sequence_value):
70141         Likewise.
70142         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
70143         (re_node_set_compare):
70144         Return bool, not int. All callers changed.
70145         * lib/regexec.c (check_halt_node_context, check_dst_limits):
70146         (build_trtable, check_node_accept): Likewise.
70147         * lib/regex_internal.h: Include stdbool.h.
70148
70149         Fix bugs uncovered when converting to bool.
70150         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
70151         failure instead of charging ahead blindly.
70152         * lib/regex_internal.c (register_state): Likewise.
70153         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
70154         for freeing internal storage.
70155         (group_nodes_into_DFA_states): Use unsigned int, not int, for
70156         bitset pieces used as boolean, to avoid undefined behavior
70157         on hosts that do int overflow checking.
70158
70159 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
70160
70161         * config/srclist.txt: Add glibc bugs 1285-1287.
70162
70163 2005-09-01  Jim Meyering  <jim@meyering.net>
70164
70165         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
70166         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
70167         Require gl_STAT_MACROS, too.
70168
70169 2005-09-01  Bruno Haible  <bruno@clisp.org>
70170
70171         * gnulib-tool (import): In the first-use case, provide defaults.
70172
70173 2005-09-01  Bruno Haible  <bruno@clisp.org>
70174
70175         * gnulib-tool (func_import): Remove the .tmp files.
70176
70177 2005-09-01  Bruno Haible  <bruno@clisp.org>
70178
70179         * gnulib-tool (func_import): Fix handling of symbolic links.
70180
70181 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
70182
70183         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
70184         old glibc regex code mishandles strings longer than 2**31 bytes.
70185         This patch fixes this when the regex code is used in gnulib
70186         (i.e., outside glibc).
70187
70188         This patch should not affect the use of the regex code inside
70189         glibc.  No doubt this problem also needs to be handled for glibc
70190         as well, but the result will be an incompatible change to the
70191         glibc ABI, and the old ABI will have to be supported too.  That
70192         can be the the subject for another patch.
70193
70194         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
70195         governing whether the rest of this patch is active.  By default,
70196         the macro is disabled and the patch has no effect.
70197         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
70198         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
70199         (struct re_pattern_buffer, re_search, re_search_2, re_match):
70200         (re_match_2, re_set_registers): Use the new types.
70201         * lib/regex_internal.h (Idx, re_hashval_t): New types.
70202         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
70203         New macros.
70204         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
70205         (re_string_context_at, bin_tree_t, re_dfastate_t):
70206         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
70207         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
70208         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
70209         (re_string_char_size_at, re_string_wchar_at):
70210         (re_string_elem_size_at):
70211         Use the new types and macros to port to 64-bit hosts.
70212         Use unsigned types for internal values, so that the code
70213         mostly works even for arrays larger than SSIZE_MAX.
70214         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
70215         (search_duplicated_node, calc_eclosure_iter, fetch_number):
70216         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
70217         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
70218         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
70219         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
70220         (calc_inveclosure, parse_dup_op, build_range_exp):
70221         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
70222         (fetch_number, create_token_tree, mark_opt_subexp):
70223         Likewise.
70224         * lib/regex_internal.c (re_string_construct_common,
70225         create_ci_newstate):
70226         (create_cd_newstate, re_string_allocate, re_string_construct):
70227         (re_string_realloc_buffers, build_wcs_upper_buffer):
70228         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
70229         (re_string_reconstruct, re_string_peek_byte_case):
70230         (re_string_fetch_byte_case, re_string_context_at):
70231         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
70232         (re_node_set_init_copy, re_node_set_add_intersect):
70233         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
70234         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
70235         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
70236         (re_acquire_state, re_acquire_state_context, register_state):
70237         Likewise.
70238         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
70239         search_cur_bkref_entry):
70240         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
70241         (re_search_internal, re_search_2_stub, re_search_stub)
70242         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
70243         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
70244         (update_cur_sifted_state, check_dst_limits):
70245         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
70246         (check_subexp_limits, sift_states_bkref, merge_state_array):
70247         (check_subexp_matching_top, get_subexp, get_subexp_sub):
70248         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
70249         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
70250         (expand_bkref_cache, check_node_accept_bytes):
70251         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
70252         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
70253         (acquire_init_state_context, check_halt_node_context):
70254         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
70255         (sift_states_backward, clean_state_log_if_needed):
70256         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
70257         (find_recover_state, transit_state_sb, transit_state_mb):
70258         (transit_state_bkref, build_trtable, match_ctx_clean):
70259         Likewise.
70260         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
70261         to work around an assumption that REG_MISSING is negative.
70262
70263         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
70264         (seek_collating_symbol_entry) [defined _LIBC]:
70265         (lookup_collation_sequence_value) [defined _LIBC]:
70266         (build_range_exp, build_collating_symbol) [defined _LIBC]:
70267         Use prototypes rather than old-style function definitions.
70268         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
70269         (transit_state_sb) [0]:
70270         (find_collation_sequence_value) [defined _LIBC]: Likewise.
70271
70272         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
70273         rm_eo.
70274
70275         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
70276         (optimize_subexps, lower_subexp):
70277         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
70278         since the signed shift might overflow.  Use 1u<<31 instead.
70279         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
70280         Likewise.
70281         * lib/regexec.c (check_dst_limits_calc_pos_1,
70282         check_subexp_matching_top): Likewise.
70283
70284         * lib/regcomp.c (optimize_subexps, lower_subexp):
70285         Use CHAR_BIT rather than 8, for clarity.
70286         * lib/regexec.c (check_dst_limits_calc_pos_1):
70287         (check_subexp_matching_top): Likewise.
70288         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
70289         have to worry about portability issues when shifting it left.
70290         Remove no-longer-needed test for table_size > 0.
70291         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
70292         in a word, as the resulting behavior is undefined.
70293         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
70294         in one case, a <= should have been an <, and in another case the
70295         whole test was missing.
70296         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
70297         the standard name CHAR_BIT.
70298         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
70299         this is not true on one's complement and signed-magnitude hosts.
70300
70301         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
70302         next_last_offset.
70303         (struct re_dfa_t): Remove unused member states_alloc.
70304         * lib/regcomp.c (init_dfa): Don't initialize unused members.
70305
70306 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
70307
70308         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
70309         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
70310         and large-file glibc and in 32-bit large-file Solaris.
70311
70312 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
70313
70314         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
70315         lengths fit in regoff_t; this isn't true if regoff_t is the same
70316         width as size_t.
70317         * lib/regex.c (re_search_internal): 5th arg is LAST_START
70318         (= START + RANGE) instead of RANGE.  This avoids overflow
70319         problems when regoff_t is the same width as size_t.
70320         All callers changed.
70321         (re_search_2_stub): Check for overflow when adding the
70322         sizes of the two strings.
70323         (re_search_stub): Check for overflow when adding START
70324         to RANGE; if it occurs, substitute the extreme value.
70325
70326 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
70327
70328         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
70329
70330 2005-08-31  Jim Meyering  <jim@meyering.net>
70331
70332         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
70333         a pointer-to-const.
70334         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
70335         (register_state): Likewise.
70336         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
70337         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
70338         (group_nodes_into_DFAstates): Likewise.
70339
70340 2005-08-31  Jim Meyering  <jim@meyering.net>
70341
70342         * check-module: Add a FIXME comment.
70343
70344 2005-08-31  Eric Blake  <ebb9@byu.net>
70345
70346         * modules/unistd-safer (Files): Add unistd--.h.
70347         * modules/stdio-safer (Files): Add stdio--.h.
70348
70349 2005-08-31  Derek Price  <derek@ximbiot.com>
70350
70351         * lib/getdelim.c (getdelim): Return EOF on EOF.
70352         Reported by Larry Jones <lawrence.jones@ugs.com>.
70353
70354 2005-08-31  Bruno Haible  <bruno@clisp.org>
70355
70356         Avoid unnecessary diffs in the generated lib/Makefile.am.
70357         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
70358         the generated files.
70359         (func_import): Don't set cmd.
70360
70361 2005-08-31  Bruno Haible  <bruno@clisp.org>
70362
70363         * lib/strstr.c: Include <stddef.h>, for NULL.
70364         * lib/strcasestr.c: Likewise.
70365         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
70366
70367 2005-08-31  Bruno Haible  <bruno@clisp.org>
70368
70369         * gnulib-tool: New option --macro-prefix.
70370         (func_import): Use macro_prefix.
70371         (import): Handle option --macro-prefix.
70372
70373 2005-08-31  Bruno Haible  <bruno@clisp.org>
70374
70375         * gnulib-tool (import): Rename most ac_* variables to cached_*.
70376         Also use new variables cached_lgpl, cached_libtool.
70377
70378 2005-08-31  Bruno Haible  <bruno@clisp.org>
70379
70380         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
70381         always instantiating them.
70382
70383 2005-08-31  Bruno Haible  <bruno@clisp.org>
70384
70385         * gnulib-tool (func_import): Read the previous cached settings
70386         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
70387         earlier added by gnulib but are now dropped. Warn when a gnulib file
70388         overwrites a non-gnulib file.
70389
70390 2005-08-31  Bruno Haible  <bruno@clisp.org>
70391
70392         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
70393         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
70394         projects that don't keep autogenerated files in CVS. Put into
70395         actioncmd only the specified modules, not the transitive closure.
70396
70397 2005-08-31  Bruno Haible  <bruno@clisp.org>
70398
70399         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
70400         Create directories that shall be filled.
70401         (import): Don't look for gl_* macros in configure.ac. Recurse across
70402         all directories containing a gnulib-cache.m4 files, if meaningful.
70403
70404 2005-08-31  Bruno Haible  <bruno@clisp.org>
70405
70406         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
70407         (import): Set seen_libtool when we see gl_LIBTOOL.
70408
70409 2005-08-31  Bruno Haible  <bruno@clisp.org>
70410
70411         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
70412         declaration macro definitions from generated gnulib.m4.
70413
70414 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
70415
70416         * lib/iconvme.h: Add prototype for iconv_alloc.
70417
70418 2005-08-29  Simon Josefsson  <jas@extundo.com>
70419
70420         * lib/iconvme.c: Fix errno.
70421
70422 2005-08-29  Bruno Haible  <bruno@clisp.org>
70423
70424         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
70425         that it works when the directory contains spaces.
70426
70427 2005-08-29  Bruno Haible  <bruno@clisp.org>
70428
70429         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
70430
70431 2005-08-29  Bruno Haible  <bruno@clisp.org>
70432
70433         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
70434         Emit more advice.
70435
70436 2005-08-29  Bruno Haible  <bruno@clisp.org>
70437         and Stepan Kasal  <kasal@ucw.cz>
70438
70439         * check-module: If more parameters are given, check each of them
70440         separately; add more exceptions, as noted by Jim Meyering.
70441         (check_module): New procedure.
70442         (%exempt_header): Now contains all exceptions.
70443
70444 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
70445
70446         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
70447
70448 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
70449
70450         * lib/iconvme.c: Split iconv_string into iconv_alloc.
70451
70452 2005-08-28  Bruno Haible  <bruno@clisp.org>
70453
70454         * m4/gnulib-tool.m4: New file.
70455
70456 2005-08-27  Jim Meyering  <jim@meyering.net>
70457
70458         * modules/unistd-safer (Files): Add pipe-safer.c.
70459         * modules/fcntl-safer (Files): Add creat-safer.c.
70460
70461 2005-08-27  Jim Meyering  <jim@meyering.net>
70462
70463         * m4/stdlib-safer.m4: New file.  From coreutils.
70464         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
70465         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
70466         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
70467         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
70468         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
70469
70470 2005-08-27  Jim Meyering  <jim@meyering.net>
70471
70472         * lib/fopen-safer.c: Merge minor changes from coreutils.
70473         * lib/dup-safer.c: Likewise.
70474         * lib/fd-safer.c: Likewise.
70475
70476         Merge from coreutils.
70477         * lib/stdio--.h: New file.
70478         * lib/stdlib--.h: New file.
70479         * lib/mkstemp-safer.c: New file.
70480
70481         GNU tar needs these.
70482         * lib/pipe-safer.c: New file.
70483         * lib/creat-safer.c: New file.
70484         * lib/fcntl--.h (creat): Define to creat_safer.
70485         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
70486         * lib/unistd--.h (pipe): Define to pipe_safer.
70487         * lib/unistd-safer.h: Declare pipe_safer.
70488
70489 2005-08-26  Simon Josefsson  <jas@extundo.com>
70490
70491         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
70492         Haible <bruno@clisp.org>.
70493
70494 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
70495
70496         * lib/regex_internal.h: Remove all references to
70497         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
70498         or better.
70499         (bitset_not, bitset_merge, bitset_not_merge):
70500         (bitset_mask, re_string_allocate, re_string_construct):
70501         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
70502         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
70503         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
70504         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
70505         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
70506         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
70507         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
70508         (re_acquire_state_context):
70509         Remove unnecessary forward decls.
70510         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
70511         Put __attribute at function definition,
70512         now that the function decl has been removed.
70513         * lib/regex_internal.c (re_string_peek_byte_case):
70514         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
70515         Likewise.
70516
70517 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
70518
70519         * m4/regex.m4: Add AC_PREREQ(2.50).
70520         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
70521
70522 2005-08-25  Simon Josefsson  <jas@extundo.com>
70523
70524         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
70525         __fsetlocking.
70526
70527 2005-08-25  Simon Josefsson  <jas@extundo.com>
70528
70529         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
70530         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
70531         GLIBC specific code.
70532
70533 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
70534
70535         Make regex safe for g++.  This fixes one real bug (an "err"
70536         that should have been "*err").  g++ problem reported by
70537         Sam Steingold.
70538         * lib/regex_internal.h (re_calloc): New macro, consistent with
70539         re_malloc etc.  All callers of calloc changed to use re_calloc.
70540         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
70541         not int.  All callers changed.
70542         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
70543         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
70544         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
70545         (find_recover_state): Change "err" to "*err"; this fixes what
70546         appears to be a real bug.
70547         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
70548         versus int.
70549
70550 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
70551
70552         * modules/regex (Depends-on): Add malloc, since the code
70553         assumes that !malloc(0) means failure.
70554
70555 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
70556
70557         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
70558
70559         alloca modernization/simplification for regex.
70560         * lib/regex.c: Remove portability cruft for alloca.  This no longer
70561         needs to be at the start of the file, and can be moved into
70562         regex_internal.h and simplified.
70563         * lib/regex_internal.h: Include <alloca.h>.
70564         (__libc_use_alloca) [!defined _LIBC]: New macro.
70565         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
70566         now works outside glibc.
70567
70568 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
70569
70570         * config/srclist.txt: Add glibc bugs 1241, 1245.
70571
70572 2005-08-25  Jim Meyering  <jim@meyering.net>
70573
70574         * lib/open-safer.c: Include <config.h>.
70575         Otherwise, we'd lose LARGEFILE support in any file using
70576         e.g. "fcntl--.h"
70577
70578 2005-08-25  Bruno Haible  <bruno@clisp.org>
70579
70580         * m4/minmax.m4: Require autoconf 2.52.
70581         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
70582         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
70583         alternatives of translit over the alphabet.
70584         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
70585
70586 2005-08-24  Simon Josefsson  <jas@extundo.com>
70587
70588         * tests/test-getpass.c: New file.
70589
70590 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
70591
70592         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
70593         for GNU regex features.
70594
70595 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
70596
70597         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
70598         * lib/regex.h (regerror): Likewise.
70599
70600         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
70601         requires this.  (The code never needed it.)
70602
70603         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
70604         All uses of recently-renamed identifiers changed to use the new,
70605         POSIX-compliant names.  The code will build and run just fine
70606         without these changes, but it's better to eat our own dog food
70607         and use the standard-conforming names.
70608
70609         * lib/regex.h: Fix a multitude of POSIX name space violations.
70610         These changes have an effect only for programs that define
70611         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
70612         do not change anything for programs compiled in the normal way.
70613         Also, there is no effect on the ABI.
70614
70615         (_REGEX_SOURCE): New macro.
70616         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
70617         defined and _GNU_SOURCE is not; this fixes a name space violation.
70618
70619         Rename the following macros to obey POSIX requirements.
70620         The old names are still visible as macros if _REGEX_SOURCE is defined.
70621         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
70622         RE_BACKSLASH_ESCAPE_IN_LISTS.
70623         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
70624         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
70625         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
70626         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
70627         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
70628         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
70629         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
70630         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
70631         (REG_INTERVALS): renamed from RE_INTERVALS.
70632         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
70633         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
70634         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
70635         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
70636         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
70637         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
70638         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
70639         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
70640         RE_UNMATCHED_RIGHT_PAREN_ORD.
70641         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
70642         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
70643         (REG_DEBUG): renamed from RE_DEBUG.
70644         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
70645         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
70646         unusual, since we can't clash with the POSIX REG_ICASE.
70647         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
70648         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
70649         (REG_NO_SUB): renamed from RE_NO_SUB.
70650         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
70651         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
70652         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
70653         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
70654         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
70655         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
70656         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
70657         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
70658         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
70659         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
70660         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
70661         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
70662         RE_SYNTAX_POSIX_MINIMAL_BASIC.
70663         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
70664         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
70665         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
70666         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
70667         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
70668         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
70669         (REG_FIXED): Renamed from REGS_FIXED.
70670         (REG_NREGS): Renamed from RE_NREGS.
70671
70672         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
70673         of other REG_* macros, since POSIX says the user is allowed to
70674         #undef these macros selectively.
70675
70676         (reg_errcode_t): Update comment stating what other tables need
70677         to be consistent.
70678
70679         Rename the following enum values to obey POSIX requirements.
70680         The old names are still visible as macros.
70681         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
70682         is not defined, since GNU is supposed to be a superset of POSIX as
70683         much as possible, and since we want reg_errcode_t to be a signed
70684         type for implementation consistency.
70685         (_REG_NOERROR): Renamed from REG_NOERROR.
70686         (_REG_NOMATCH): Renamed from REG_NOMATCH.
70687         (_REG_BADPAT): Renamed from REG_BADPAT.
70688         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
70689         (_REG_ECTYPE): Renamed from REG_ECTYPE.
70690         (_REG_EESCAPE): Renamed from REG_EESCAPE.
70691         (_REG_ESUBREG): Renamed from REG_ESUBREG.
70692         (_REG_EBRACK): Renamed from REG_EBRACK.
70693         (_REG_EPAREN): Renamed from REG_EPAREN.
70694         (_REG_EBRACE): Renamed from REG_EBRACE.
70695         (_REG_BADBR): Renamed from REG_BADBR.
70696         (_REG_ERANGE): Renamed from REG_ERANGE.
70697         (_REG_ESPACE): Renamed from REG_ESPACE.
70698         (_REG_BADRPT): Renamed from REG_BADRPT.
70699         (_REG_EEND): Renamed from REG_EEND.
70700         (_REG_ESIZE): Renamed from REG_ESIZE.
70701         (_REG_ERPAREN): Renamed from REG_ERPAREN.
70702         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
70703         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
70704         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
70705         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
70706
70707         (_REG_RE_NAME, _REG_RM_NAME): New macros.
70708         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
70709         changed.  But support the old name if the new one is not defined
70710         and if _REGEX_SOURCE.
70711
70712         Change the following member names in struct re_pattern_buffer.
70713         The old names are still supported if !_REGEX_SOURCE.
70714         The new names are always supported, regardless of _REGEX_SOURCE.
70715         (re_buffer): Renamed from buffer.
70716         (re_allocated): Renamed from allocated.
70717         (re_used): Renamed from used.
70718         (re_syntax): Renamed from syntax.
70719         (re_fastmap): Renamed from fastmap.
70720         (re_translate): Renamed from translate.
70721         (re_can_be_null): Renamed from can_be_null.
70722         (re_regs_allocated): Renamed from regs_allocated.
70723         (re_fastmap_accurate): Renamed from fastmap_accurate.
70724         (re_no_sub): Renamed from no_sub.
70725         (re_not_bol): Renamed from not_bol.
70726         (re_not_eol): Renamed from not_eol.
70727         (re_newline_anchor): Renamed from newline_anchor.
70728
70729         Change the following member names in struct re_registers.
70730         The old names are still supported if !_REGEX_SOURCE.
70731         The new names are always supported, regardless of _REGEX_SOURCE.
70732         (rm_num_regs): Renamed from num_regs.
70733         (rm_start): Renamed from start.
70734         (rm_end): Renamed from end.
70735
70736         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
70737         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
70738         Prepend __ to parameter names.
70739
70740         Undo yesterday's changes.
70741
70742 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
70743
70744         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
70745         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
70746         lib/regex.c.
70747
70748 2005-08-24  Jim Meyering  <jim@meyering.net>
70749
70750         Sync from coreutils.
70751         * m4/fcntl-safer.m4: New file.
70752
70753         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
70754         and object files for this module.
70755
70756 2005-08-24  Jim Meyering  <jim@meyering.net>
70757
70758         Sync from coreutils.
70759         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
70760
70761 2005-08-24  Jim Meyering  <jim@meyering.net>
70762
70763         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
70764         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
70765
70766 2005-08-24  Jim Meyering  <jim@meyering.net>
70767
70768         * modules/fcntl-safer: New module.
70769         * modules/fts (Depends-on): Add fcntl-safer.
70770         * MODULES.html.sh (File descriptor based Input/Output):
70771         Add fcntl-safer.
70772
70773 2005-08-24  Bruno Haible  <bruno@clisp.org>
70774
70775         Support for unit test modules.
70776         * modules/README: Mention tests modules.
70777         * modules/TEMPLATE-TESTS: New file.
70778         * gnulib-tool: New options --extract-tests-module, --with-tests and
70779         --tests-base (unused for the moment).
70780         (testsbase, inctests): New variables.
70781         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
70782         (func_verify_module): Exclude TEMPLATE-TESTS.
70783         (func_verify_nontests_module, func_verify_tests_module): New functions.
70784         (func_get_dependencies): Add implicit dependency for tests modules.
70785         (func_get_tests_module): New function.
70786         (func_modules_transitive_closure): When --with-tests was specified,
70787         include the unit tests as well, unless explicitly avoided.
70788         (func_emit_lib_Makefile_am): Ignore the tests modules here.
70789         (func_emit_tests_Makefile_am): New function.
70790         (func_create_testdir): When --with-tests was specified, emit a
70791         tests/ directory.
70792         * MODULES.html.sh (Future developments): Update.
70793
70794 2005-08-24  Bruno Haible  <bruno@clisp.org>
70795
70796         * modules/tls-tests: New file.
70797         * tests/test-tls.c: New file, from GNU gettext.
70798
70799 2005-08-24  Bruno Haible  <bruno@clisp.org>
70800
70801         * modules/lock-tests: New file.
70802         * tests/test-lock.c: New file, from GNU gettext.
70803
70804 2005-08-24  Bruno Haible  <bruno@clisp.org>
70805
70806         * lib/lock.h: Add multiple inclusion guard.
70807         * lib/tls.h: Add multiple inclusion guard.
70808
70809 2005-08-24  Bruno Haible  <bruno@clisp.org>
70810
70811         * gnulib-tool: Add support for the --aux-dir option to
70812         --create-testdir, --create-megatestdir, --test, --megatest.
70813         (func_create_testdir, func_create_megatestdir): Optionally emit a
70814         AC_CONFIG_AUX_DIR directive.
70815         (create-testdir, create-megatestdir, test, megatest): Provide a
70816         default value for $auxdir.
70817
70818 2005-08-24  Bruno Haible  <bruno@clisp.org>
70819
70820         * gnulib-tool (import): Use compound statement instead of subshell
70821         where possible.
70822
70823 2005-08-24  Bruno Haible  <bruno@clisp.org>
70824
70825         * gnulib-tool (import): Change --aux-dir default to "build-aux".
70826
70827 2005-08-24  Bruno Haible  <bruno@clisp.org>
70828
70829         * gnulib-tool (func_version): Update.
70830
70831 2005-08-24  Bruno Haible  <bruno@clisp.org>
70832
70833         * gnulib-tool (func_import, func_create_testdir,
70834         func_create_megatestdir): Quote all autoconf macro arguments.
70835
70836 2005-08-24  Bruno Haible  <bruno@clisp.org>
70837
70838         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
70839         option --force, because --force causes the aclocal.m4 of each
70840         subdirectory to be newer than the corresponding config.h.in.
70841
70842 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
70843
70844         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
70845         All contents moved to gl_REGEX.
70846         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
70847         assume that it does.
70848
70849 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
70850
70851         * lib/regex.h (REG_NOSYS)
70852         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
70853         Define, since POSIX requires it as of 2001.
70854         (_REG_ENOSYS)
70855         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
70856         New private symbol, used to keep the enum signed in all cases.
70857         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
70858         Youngman in
70859         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
70860
70861         * lib/regex_internal.c (re_string_skip_chars, register_state):
70862         (calc_state_hash):
70863         Remove forward decls; no longer needed now that we use prototypes.
70864         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
70865         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
70866         (clean_state_log_if_needed): Likewise.
70867
70868 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
70869
70870         * config/srclist.txt: Add glibc bugs 1231-1233.
70871
70872 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
70873
70874         Fix problems reported by Sam Steingold in
70875         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
70876         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
70877         assumed that reg_errcode_t is a signed type, which is not
70878         necessarily true if _XOPEN_SOURCE is not defined.
70879         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
70880         since some compilers warn about it otherwise.
70881
70882 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
70883
70884         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
70885         (init_word_char, create_initial_state, duplicate_node_closure):
70886         (fetch_token, peek_token_bracket, build_range_exp):
70887         (build_collating_symbol): Remove forward decls; no longer needed
70888         now that we use prototypes.
70889
70890         * lib/regcomp.c:
70891         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
70892         (re_compile_fastmap_iter, regcomp, regerror, regfree):
70893         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
70894         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
70895         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
70896         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
70897         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
70898         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
70899         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
70900         (build_range_exp, build_collating_symbol, parse_bracket_exp):
70901         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
70902         (build_charclass, build_charclass_op, fetch_number, create_tree):
70903         (create_token_tree, mark_opt_subexp, duplicate_tree):
70904         Use prototypes rather than old-style definitions.
70905
70906         * lib/regex_internal.c:
70907         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
70908         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
70909         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
70910         (re_string_reconstruct, re_string_peek_byte_case):
70911         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
70912         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
70913         (re_node_set_init_copy, re_node_set_add_intersect):
70914         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
70915         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
70916         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
70917         (re_acquire_state, re_acquire_state_context, register_state):
70918         (create_ci_newstate, create_cd_newstate, free_state):
70919         Likewise.
70920         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
70921         re_search_2):
70922         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
70923         (re_search_internal, prune_impossible_nodes):
70924         (acquire_init_state_context, check_matching, static):
70925         (check_halt_node_context, check_halt_state_context, proceed_next_node):
70926         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
70927         (update_regs, sift_states_backward, build_sifted_states):
70928         (clean_state_log_if_needed, merge_state_array):
70929         (update_cur_sifted_state, add_epsilon_src_nodes):
70930         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
70931         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
70932         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
70933         (find_recover_state, check_subexp_matching_top, transit_state_mb):
70934         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
70935         (check_arrival, check_arrival_add_next_nodes):
70936         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
70937         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
70938         (check_node_accept_bytes, check_node_accept, extend_buffers):
70939         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
70940         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
70941         (sift_ctx_init):
70942         Likewise.
70943
70944         * lib/regex_internal.h:
70945         (re_string_allocate, re_string_construct, re_string_reconstruct):
70946         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
70947         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
70948         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
70949         (re_string_context_at, re_string_peek_byte_case):
70950         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
70951         is defined, since we now use prototypes always.
70952
70953         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
70954         C89 or better.  All uses removed.
70955
70956 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
70957
70958         * config/srclist.txt: Add glibc bugs 1220-1227.
70959
70960 2005-08-20  Jim Meyering  <jim@meyering.net>
70961
70962         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
70963         of unused local, dfa.
70964
70965 2005-08-20  Bruno Haible  <bruno@clisp.org>
70966
70967         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
70968
70969 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
70970
70971         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
70972         (re_node_set_insert_last, re_dfa_add_node):
70973         Rename local variables to avoid GCC shadowing warnings.
70974
70975 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
70976
70977         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
70978         [defined lint]: Suppress bogus uninitialized-variable warnings.
70979
70980         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
70981         and let the caller return REG_ESPACE if out of space.  This
70982         removes an uninitialied-variable warning with GCC 4.0.1, and also
70983         avoids taking the address of a local variable.  All callers
70984         changed.
70985
70986 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
70987
70988         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
70989         $LIBCSRC/posix/regexec.c.
70990         Add glibc bug 1217 for regcomp.c.
70991
70992 2005-08-19  Jim Meyering  <jim@meyering.net>
70993
70994         * lib/regexec.c (proceed_next_node): Redo local variables to
70995         avoid GCC shadowing warnings.
70996
70997 2005-08-18  Bruno Haible  <bruno@clisp.org>
70998
70999         * lib/strstr.c (strstr): Fix return value in multibyte case.
71000         * lib/strcasestr.c (strcasestr): Likewise.
71001
71002 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
71003
71004         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
71005
71006 2005-08-17  Jim Meyering  <jim@meyering.net>
71007
71008         Make the %s format (seconds since the epoch) work for a negative
71009         number and when used with a zero-padded field width, e.g. %015s.
71010
71011         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
71012         label so that it precedes the code to set `digits'.  Otherwise,
71013         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
71014         print `00-22'.  Now, it prints `-0022', as it should.
71015
71016 2005-08-17  Bruno Haible  <bruno@clisp.org>
71017
71018         * modules/strstr (Files): Add m4/mbrtowc.m4.
71019         (Depends-on): Add mbuiter.
71020
71021 2005-08-17  Bruno Haible  <bruno@clisp.org>
71022
71023         * modules/strcasestr: New file.
71024         * MODULES.html.sh (String handling, based on ANSI C 89): Add
71025         strcasestr.
71026
71027 2005-08-17  Bruno Haible  <bruno@clisp.org>
71028
71029         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
71030
71031 2005-08-17  Bruno Haible  <bruno@clisp.org>
71032
71033         * modules/mbuiter: New file.
71034         * MODULES.html.sh (Extended multibyte and wide character utilities):
71035         Add mbuiter.
71036
71037 2005-08-17  Bruno Haible  <bruno@clisp.org>
71038
71039         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
71040         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
71041
71042 2005-08-17  Bruno Haible  <bruno@clisp.org>
71043
71044         * m4/strcasestr.m4: New file.
71045
71046 2005-08-17  Bruno Haible  <bruno@clisp.org>
71047
71048         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
71049         * lib/strstr.c: Completely rewritten, with multibyte locale support.
71050
71051 2005-08-17  Bruno Haible  <bruno@clisp.org>
71052
71053         * lib/strcasestr.h: New file.
71054         * lib/strcasestr.c: New file.
71055
71056 2005-08-17  Bruno Haible  <bruno@clisp.org>
71057
71058         * lib/strcasecmp.c: Use mbuiter.h.
71059
71060 2005-08-17  Bruno Haible  <bruno@clisp.org>
71061
71062         * lib/mbuiter.h: New file.
71063
71064 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
71065
71066         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
71067         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
71068         and gl_GETOPT are both invoked via different paths (as happens
71069         with GNU tar CVS because it uses both argp and getopt), the former
71070         wins.
71071
71072 2005-08-16  Bruno Haible  <bruno@clisp.org>
71073
71074         * modules/tls: New file.
71075         * MODULES.html.sh (Multithreading): Add tls.
71076
71077 2005-08-16  Bruno Haible  <bruno@clisp.org>
71078
71079         * modules/strnlen1: New file.
71080         * MODULES.html.sh (String handling): Add strnlen1.
71081
71082 2005-08-16  Bruno Haible  <bruno@clisp.org>
71083
71084         * modules/strcase (Files): Add m4/mbrtowc.m4.
71085         (Depends-on): Add strnlen1, mbchar.
71086
71087 2005-08-16  Bruno Haible  <bruno@clisp.org>
71088
71089         * modules/mbiter: New file.
71090         * MODULES.html.sh (Extended multibyte and wide character utilities):
71091         Add mbiter.
71092
71093 2005-08-16  Bruno Haible  <bruno@clisp.org>
71094
71095         * modules/mbfile: New file.
71096         * MODULES.html.sh (Extended multibyte and wide character utilities):
71097         Add mbfile.
71098
71099 2005-08-16  Bruno Haible  <bruno@clisp.org>
71100
71101         * modules/mbchar: New file.
71102         * MODULES.html.sh (Extended multibyte and wide character utilities):
71103         New section.
71104
71105 2005-08-16  Bruno Haible  <bruno@clisp.org>
71106
71107         * m4/tls.m4: New file, from GNU gettext.
71108
71109 2005-08-16  Bruno Haible  <bruno@clisp.org>
71110
71111         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
71112         always.
71113         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
71114
71115 2005-08-16  Bruno Haible  <bruno@clisp.org>
71116
71117         * m4/mbiter.m4: New file.
71118
71119 2005-08-16  Bruno Haible  <bruno@clisp.org>
71120
71121         * m4/mbfile.m4: New file.
71122
71123 2005-08-16  Bruno Haible  <bruno@clisp.org>
71124
71125         * m4/mbchar.m4: New file.
71126
71127 2005-08-16  Bruno Haible  <bruno@clisp.org>
71128
71129         * lib/tls.h: New file, from GNU gettext.
71130         * lib/tls.c: New file, from GNU gettext.
71131
71132 2005-08-16  Bruno Haible  <bruno@clisp.org>
71133
71134         * lib/strnlen1.h: New file.
71135         * lib/strnlen1.c: New file.
71136
71137 2005-08-16  Bruno Haible  <bruno@clisp.org>
71138
71139         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
71140         (mbi_init): Update.
71141         (mbi_avail, mbi_advance): Let the iteration end before the terminating
71142         NUL byte, not after it.
71143
71144 2005-08-16  Bruno Haible  <bruno@clisp.org>
71145
71146         * lib/strcase.h (strcasecmp): Add note in comments.
71147         * lib/strncasecmp.c: Use code from strcasecmp.c.
71148         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
71149         (strcasecmp): Work correctly in multibyte locales.
71150
71151 2005-08-16  Bruno Haible  <bruno@clisp.org>
71152
71153         * lib/mbiter.h: New file.
71154
71155 2005-08-16  Bruno Haible  <bruno@clisp.org>
71156
71157         * lib/mbfile.h: New file.
71158
71159 2005-08-16  Bruno Haible  <bruno@clisp.org>
71160
71161         * lib/mbchar.h: New file.
71162         * lib/mbchar.c: New file.
71163
71164 2005-08-16  Bruno Haible  <bruno@clisp.org>
71165
71166         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
71167         the valid ones. Makes the comparison operations transitive:
71168         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
71169         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
71170
71171 2005-08-15  Simon Josefsson  <jas@extundo.com>
71172
71173         * modules/ssize_t (License): Change to 'unlimited'.
71174
71175         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
71176
71177 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
71178
71179         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
71180         Add comments for each pending glibc patch.
71181
71182 2005-08-15  Bruno Haible  <bruno@clisp.org>
71183
71184         * lib/regex.h (__restrict_arr): Don't define to __restrict if
71185         __cplusplus is defined.
71186
71187 2005-08-14  Jim Meyering  <jim@meyering.net>
71188
71189         Sync from coreutils.
71190
71191         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
71192         Use the hash-table-based cycle-detection code not just when
71193         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
71194         Reported by James Youngman in
71195         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
71196         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
71197         FTS_TIGHT_CYCLE_CHECK.
71198         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
71199         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
71200         once again.
71201         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
71202         * lib/fts.c (fd_safer): Remove decl.
71203         Include fcntl--.h rather than unistd-safer.h
71204         (fts_safe_changedir): Don't call fd_safer; no longer needed
71205         now that we include fcntl--.h.
71206
71207 2005-08-12  Simon Josefsson  <jas@extundo.com>
71208
71209         * modules/getndelim2: Use ssize_t module.
71210         * modules/getnline: Likewise.
71211         * modules/safe-read: Likewise.
71212         * modules/xreadlink: Likewise.
71213
71214         * modules/ssize_t: New file.
71215
71216 2005-08-12  Simon Josefsson  <jas@extundo.com>
71217
71218         * m4/readline.m4: Look for termcap, curses or ncurses if required.
71219
71220 2005-08-12  Simon Josefsson  <jas@extundo.com>
71221
71222         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
71223         ssize_t.
71224
71225 2005-08-12  Simon Josefsson  <jas@extundo.com>
71226
71227         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
71228         readline, getdelim and check_version.
71229         (Support for systems lacking ISO C 99: Sizes of integer types):
71230         Add size_max.
71231
71232 2005-08-12  Bruno Haible  <bruno@clisp.org>
71233
71234         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
71235
71236 2005-08-11  Simon Josefsson  <jas@extundo.com>
71237
71238         * modules/readline: New file.
71239
71240         * modules/strnlen (Files): Add strnlen.h.
71241
71242 2005-08-11  Simon Josefsson  <jas@extundo.com>
71243
71244         * m4/readline.m4: New file.
71245
71246 2005-08-11  Simon Josefsson  <jas@extundo.com>
71247
71248         * lib/readline.h, readline.c: New file.
71249
71250 2005-08-11  Simon Josefsson  <jas@extundo.com>
71251
71252         * doc/gnulib.texi (Initial import, Finishing touches): Mention
71253         gl_AVOID.
71254
71255 2005-08-11  Bruno Haible  <bruno@clisp.org>
71256
71257         * lib/strnlen.h (strnlen): Change parameter name to match comment.
71258
71259 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
71260
71261         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
71262
71263 2005-08-10  Simon Josefsson  <jas@extundo.com>
71264
71265         * tests/test-iconvme.c: New file.
71266
71267 2005-08-10  Simon Josefsson  <jas@extundo.com>
71268
71269         * m4/strnlen.m4: New file.
71270
71271         * m4/strndup.m4: Don't check for strnlen declaration, done in
71272         strnlen.m4.
71273
71274 2005-08-10  Simon Josefsson  <jas@extundo.com>
71275
71276         * lib/strndup.c: Use strnlen.h.
71277
71278         * lib/strnlen.h: New file.
71279
71280 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
71281
71282         * README: Typos.
71283
71284 2005-08-02  Simon Josefsson  <jas@extundo.com>
71285
71286         * modules/readline: New file.
71287
71288 2005-08-02  Simon Josefsson  <jas@extundo.com>
71289
71290         * modules/getdelim: New file.
71291
71292         * modules/getline: Rewrite, don't use getndelim2.
71293
71294 2005-08-02  Simon Josefsson  <jas@extundo.com>
71295
71296         * m4/getline.m4: Separate out getdelim stuff into separate module.
71297
71298         * m4/getdelim.m4: New file.
71299
71300 2005-08-02  Simon Josefsson  <jas@extundo.com>
71301
71302         * lib/getline.h, getline.c: Rewrite.
71303
71304         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
71305
71306 2005-07-31  Bruno Haible  <bruno@clisp.org>
71307
71308         * lib/lock.h (gl_lock_initializer): New macro.
71309         (gl_lock_define_initialized): Use it.
71310         (gl_rwlock_initializer): New macro.
71311         (gl_rwlock_define_initialized): Use it.
71312         (gl_recursive_lock_initializer): New macro.
71313         (gl_recursive_lock_define_initialized): Use it.
71314
71315 2005-07-30  Karl Berry  <karl@gnu.org>
71316
71317         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
71318         Report from Ben Pfaff, regarding getopt.
71319
71320 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
71321
71322         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
71323         normal way.
71324         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
71325         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
71326         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
71327         (gl_GETOPT): Use the new macros.  Most of the implementation
71328         is moved to the new macros.  This is for programs like Emacs
71329         that don't want all the functionality of gl_GETOPT.
71330
71331 2005-07-26  Bruno Haible  <bruno@clisp.org>
71332
71333         * m4/lock.m4: Update from GNU gettext.
71334
71335 2005-07-26  Bruno Haible  <bruno@clisp.org>
71336
71337         * lib/lock.h: Update from GNU gettext.
71338         * lib/lock.c: Update from GNU gettext.
71339
71340 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
71341
71342         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
71343         obsolescent AC_TRY_RUN.  Include the default includes files, for
71344         'exit'.
71345
71346 2005-07-24  Bruno Haible  <bruno@clisp.org>
71347
71348         * modules/visibility: New file.
71349         * MODULES.html.sh (Misc): Add visibility.
71350
71351 2005-07-24  Bruno Haible  <bruno@clisp.org>
71352
71353         * m4/visibility.m4: New file.
71354
71355 2005-07-24  Bruno Haible  <bruno@clisp.org>
71356
71357         * doc/visibility.texi: New file.
71358
71359 2005-07-22  Bruno Haible  <bruno@clisp.org>
71360
71361         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
71362         $(ALLOCA_H), redundant through BUILT_SOURCES.
71363         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
71364         redundant through BUILT_SOURCES.
71365         * modules/byteswap (Makefile.am): Remove explicit dependency on
71366         $(BYTESWAP_H), redundant through BUILT_SOURCES.
71367         * modules/fnmatch (Makefile.am): Remove explicit dependency on
71368         $(FNMATCH_H), redundant through BUILT_SOURCES.
71369         * modules/getopt (Makefile.am): Remove explicit dependency on
71370         $(GETOPT_H), redundant through BUILT_SOURCES.
71371         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
71372         redundant through BUILT_SOURCES.
71373         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
71374         redundant through BUILT_SOURCES.
71375         * modules/stdbool (Makefile.am): Remove explicit dependency on
71376         $(STDBOOL_H), redundant through BUILT_SOURCES.
71377         * modules/stdint (Makefile.am): Remove explicit dependency on
71378         $(STDINT_H), redundant through BUILT_SOURCES.
71379         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
71380         Remove explicit dependency on $(SYSEXITS_H).
71381         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
71382
71383 2005-07-18  Simon Josefsson  <jas@extundo.com>
71384
71385         * lib/check-version.c (check_version): Accept identical versions too.
71386
71387 2005-07-18  Bruno Haible  <bruno@clisp.org>
71388
71389         * modules/lock: New file.
71390         * MODULES.html.sh (Multithreading): New section.
71391
71392 2005-07-18  Bruno Haible  <bruno@clisp.org>
71393
71394         * m4/lock.m4: New file, from GNU gettext.
71395
71396 2005-07-18  Bruno Haible  <bruno@clisp.org>
71397
71398         * lib/lock.h: New file, from GNU gettext.
71399         * lib/lock.c: New file, from GNU gettext.
71400
71401 2005-07-18  Bruno Haible  <bruno@clisp.org>
71402
71403         * lib/lock.h (gl_once_t): New type.
71404         (gl_once_define, gl_once): New macros.
71405         * lib/lock.c (fresh_once): New variable.
71406         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
71407         functions.
71408
71409 2005-07-16  Simon Josefsson  <jas@extundo.com>
71410
71411         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
71412         workaround, suggested by Bruno.
71413
71414 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
71415
71416         * modules/xalloc (Depends-on): Add xalloc-die.
71417         * modules/xvasprintf (Depends-on): Add xalloc-die.
71418
71419 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
71420
71421         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
71422         with a minor change.
71423
71424 2005-07-15  Bruno Haible  <bruno@clisp.org>
71425
71426         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
71427         When using lib/poll.c, define poll as rpl_poll.
71428
71429 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
71430
71431         * modules/argp (Depends-on): Remove unlocked-io.
71432
71433 2005-07-14  Derek Price  <derek@ximbiot.com>
71434
71435         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
71436         for glob symlink bug.
71437
71438 2005-07-14  Bruno Haible  <bruno@clisp.org>
71439
71440         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
71441         Instead, test for *_unlocked function declarations directly.
71442
71443 2005-07-11  Simon Josefsson  <jas@extundo.com>
71444
71445         * modules/size_max: New file.
71446
71447         * modules/xsize: Depend on size_max module for size_max.m4.
71448
71449 2005-07-11  Simon Josefsson  <jas@extundo.com>
71450
71451         * lib/size_max.h: New file.
71452
71453 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
71454
71455         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
71456         copyright symbol and the year.
71457         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
71458         (version_etc_va): Use parameterized copyright notice.
71459         Reword to conform to the current GNU coding standards.
71460
71461 2005-07-11  Karl Berry  <karl@gnu.org>
71462
71463         * doc/gnulib.texi (Quoting): new node.
71464         (Initial import): more info, from Patrice.
71465
71466 2005-07-11  Bruno Haible  <bruno@clisp.org>
71467
71468         * gnulib-tool (func_usage): Document option --avoid.
71469         (Command line options): Handle --avoid.
71470         (func_acceptable): New function.
71471         (func_modules_transitive_closure): Use it.
71472
71473 2005-07-11  Bruno Haible  <bruno@clisp.org>
71474
71475         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
71476         Reported by Jim Meyering.
71477
71478 2005-07-10  Bruno Haible  <bruno@clisp.org>
71479
71480         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
71481         Needed when size_t is smaller than 'unsigned int'.
71482         Reported by Paul Eggert.
71483
71484 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
71485
71486         * modules/argp (Depends-on): Add unlocked-io
71487
71488 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
71489
71490         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
71491         block of defines.
71492
71493 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
71494
71495         * config/srclist.txt: Comment out regcomp.c, since we have a porting
71496         fix now.
71497
71498 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
71499         and Paul Eggert  <eggert@cs.ucla.edu>
71500
71501         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
71502         in wint_t, not wchar_t.  Remove now-unnecessary cast.
71503
71504 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
71505
71506         * modules/regex (Files): Add lib/regex_internal.c,
71507         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
71508         (Depends-on): Add extensions.
71509         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
71510
71511 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
71512
71513         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
71514         pathconf.
71515         * m4/same.m4 (gl_SAME): Likewise.
71516         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
71517
71518         * m4/regex.m4: Adjust to new libc regex implementation.
71519         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
71520         all the .c and .h parts of (the new) regex.
71521         Quote the m4 stuff better.
71522         Check for RE_ICASE bug of old gnulib.
71523         Check for REG_STARTEND of recent libc.
71524         Rename local variables from jm_* to gl_*.
71525         Quote operand of "test -f".
71526         Say "recent enough" version of libc, not "version 2".
71527         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
71528         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
71529         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
71530         Remove check for btowc, isascii.
71531         Require AM_LANGINFO_CODESET.
71532
71533 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
71534
71535         * lib/regex.c, regex.h: Sync from libc.
71536         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
71537         * lib/regexec.c:
71538         New files, synced from libc, except that regex_internal.h
71539         currently has a small porting fix.
71540
71541 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
71542
71543         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
71544         regex_internal.c, regexec.c.
71545         Add regex_internal.h too, but as a comment, since the libc version
71546         is currently broken in gnulib mode.
71547
71548 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
71549
71550         Support programs like Emacs that use gnulib but not gettext.
71551         * MODULES.html.sh (Internationalization functions): Add gettext-h.
71552         * modules/gettext-h: New file.
71553         * modules/gettext (Files): Remove lib/gettext.h.
71554         (Depends-on): Add gettext-h.
71555         (Makefile.am): Remove lib_SOURCES.
71556         * modules/argmatch, modules/c-stack, modules/closeout:
71557         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
71558         * modules/execute, modules/file-type, modules/getaddrinfo:
71559         * modules/getopt, modules/human, modules/javacomp:
71560         * modules/javaexec, modules/mkdir-p, modules/obstack:
71561         * modules/openat, modules/pagealign_alloc, modules/pipe:
71562         * modules/quotearg, modules/regex, modules/rpmatch:
71563         * modules/unicodeio, modules/userspec, modules/version-etc:
71564         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
71565         * modules/xsetenv:
71566         Depend on gettext-h, not gettext.
71567
71568 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
71569
71570         * gnulib-tool (func_import): Add support for 'public domain' license.
71571         * modules/alloca, modules/atexit, modules/memmove:
71572         Now public domain, not GPL.
71573         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
71574         * modules/realloc, modules/strerror, modules/strtod:
71575         Now LGPL, not GPL.
71576
71577 2005-07-05  Bruno Haible  <bruno@clisp.org>
71578
71579         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
71580         autoconf CVS. Needed for mingw.
71581
71582 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
71583
71584         Remove the dependency of the strftime module on the tzset module.
71585         * modules/strftime (Depends-on): Remove dependency on tzset.
71586
71587 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
71588
71589         Remove the dependency of the strftime module on the tzset module.
71590         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
71591         gl_FUNC_TZSET_CLOBBER.
71592
71593 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
71594
71595         Remove the dependency of the strftime module on the tzset module.
71596         * lib/strftime.c (my_strftime)
71597         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
71598         Copy the input structure, to work around some of the bug with
71599         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
71600         Solaris releases, you should also use the tzset module, but we won't
71601         require it as a dependency any more since we don't want LGPLed code
71602         to depend on GPLed code.
71603
71604 2005-07-02  Jim Meyering  <jim@meyering.net>
71605
71606         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
71607         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
71608         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
71609         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
71610
71611 2005-07-02  Jim Meyering  <jim@meyering.net>
71612
71613         * lib/backupfile.c (backup_args): Change a `0' to NULL.
71614
71615 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
71616
71617         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
71618         declares only 'struct timespec;' (!).
71619
71620 2005-07-01  Jim Meyering  <jim@meyering.net>
71621
71622         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
71623         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
71624         * lib/save-cwd.c, tempname.c:
71625         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
71626         and don't include <sys/file.h>).
71627
71628 2005-06-29  Jim Meyering  <jim@meyering.net>
71629
71630         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
71631         type name.  Use the variable name instead.
71632         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
71633         Likewise.
71634
71635 2005-06-28  Simon Josefsson  <jas@extundo.com>
71636
71637         * modules/check-version (Files): Add check-version.m4.
71638
71639 2005-06-28  Simon Josefsson  <jas@extundo.com>
71640
71641         * m4/check-version.m4: New file, suggested by Jim Meyering
71642         <jim@meyering.net>.
71643
71644 2005-06-28  Simon Josefsson  <jas@extundo.com>
71645
71646         * lib/check-version.h, lib/check-version.c: New files.
71647
71648 2005-06-28  Simon Josefsson  <jas@extundo.com>
71649
71650         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
71651         collision with global variable.  Better indentation.  Don't
71652         increment buffer pointer beyond buffer end.  Based on comments
71653         from Paul Eggert <eggert@cs.ucla.edu>.
71654
71655         * lib/base64.h: Indent.
71656
71657 2005-06-28  Simon Josefsson  <jas@extundo.com>
71658
71659         * doc/gnulib.texi (Library version handling): New section.
71660
71661 2005-06-28  Jim Meyering  <jim@meyering.net>
71662
71663         * check-module (find_included_lib_files): Hard-code another
71664         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
71665         but modules/fts-lgpl (correctly) does not list those files.
71666
71667         * modules/canonicalize (Files): Add lib/pathmax.h.
71668
71669 2005-06-25  Simon Josefsson  <jas@extundo.com>
71670
71671         * modules/check-version: New file.
71672
71673 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
71674
71675         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
71676         initializer of struct addrinfo, as an indication that we don't
71677         care how many members the structure has.
71678
71679 2005-06-24  Derek Price  <derek@ximbiot.com>
71680         and Bruno Haible  <bruno@clisp.org>
71681
71682         Remove stat module & update lstat.
71683         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
71684         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
71685         * m4/stat.m4: Remove this file.
71686
71687 2005-06-24  Derek Price  <derek@ximbiot.com>
71688         and Bruno Haible  <bruno@clisp.org>
71689
71690         Remove stat module & update lstat.
71691         * lib/stat.c: Remove this file...
71692         (slash_aware_lstat): ...moving this content and its support...
71693         * lib/lstat.c (rpl_lstat): ...into here.
71694         * lib/lstat.h: New file.
71695
71696 2005-06-24  Derek Price  <derek@ximbiot.com>
71697         and Bruno Haible  <bruno@clisp.org>
71698
71699         Remove stat module & update lstat.
71700         * config/srclist.txt (libc sources): Remove stat.
71701
71702 2005-06-24  Derek Price  <derek@ximbiot.com>
71703         and Bruno Haible  <bruno@clisp.org>
71704
71705         Remove stat module & update lstat.
71706         * MODULES.html.sh (stat): Remove.
71707         * MODULES.html: Regenerated.
71708         * modules/lstat (Description): Correct function name.
71709         (Files): Add "lstat.h".
71710         (Depends-on): Remove stat, add xalloc, stat-macros.
71711         * modules/stat: Remove this file.
71712         (Include): Add "lstat.h", remove <sys/stat.h>.
71713
71714 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
71715
71716         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
71717         (ranged_convert): Don't save conversion in a temporary struct.
71718         This causes a warning with GCC 4.0.0, and anyway in the typical
71719         case it's not worth the extra 100 bytes or so of code.
71720         (ranged_convert, __mktime_internal): When calling a function via a
71721         pointer P, use P () rather than (*P) (), as we now assume C89 or
71722         better.
71723
71724 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
71725
71726         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
71727         "who -r" failed to give output.  Problem reported by Tim Waugh.
71728
71729         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
71730         (xcalloc): Use it to avoid needless tests.
71731         Problem reported by Jim Meyering.
71732
71733 2005-06-20  Derek Price  <derek@ximbiot.com>
71734
71735         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
71736         unnecessary for Autoconfs > 2.59c.
71737
71738 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
71739
71740         * lib/argp.h (__option_is_short): Check upper limit of
71741         __key. Isprint() requires its argument to have the value
71742         of an unsigned char or EOF.
71743
71744 2005-06-16  Jim Meyering  <jim@meyering.net>
71745
71746         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
71747         when either N or S is zero.
71748
71749 2005-06-16  Derek Price  <derek@ximbiot.com>
71750
71751         * m4/bison.m4: Declare YACC & YFLAGS precious.
71752
71753 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
71754
71755         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
71756         multibyte string or pattern, fall back on unibyte matching.
71757         Problem reported by James Youngman.
71758
71759 2005-06-08  Bruno Haible  <bruno@clisp.org>
71760
71761         * modules/csharpcomp: New file.
71762         * MODULES.html.sh (C#): Add csharpcomp.
71763
71764 2005-06-08  Bruno Haible  <bruno@clisp.org>
71765
71766         * m4/csharpcomp.m4: New file, from GNU gettext.
71767
71768 2005-06-08  Bruno Haible  <bruno@clisp.org>
71769
71770         * lib/csharpcomp.h: New file, from GNU gettext.
71771         * lib/csharpcomp.c: New file, from GNU gettext.
71772         * lib/csharpcomp.sh.in: New file, from GNU gettext.
71773
71774 2005-06-08  Bruno Haible  <bruno@clisp.org>
71775
71776         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
71777         warning on mingw.
71778
71779 2005-06-07  Derek Price  <derek@ximbiot.com>
71780
71781         Sync from CVS.
71782         * lib/glob_.h: Indent nested #ifdef.
71783
71784 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
71785
71786         Sync from coreutils.
71787         Use "file name" when talking about file names, instead of "filename"
71788         or "path", as per the GNU coding standards.
71789         * lib/mkdir-p.c: Renamed from makepath.c.
71790         (make_dir_parents): Renamed from make_path.  All callers changed.
71791         * lib/mkdir-p.h: Likewise.  All includers changed.
71792         * lib/filenamecat.c: Renamed from path-concat.c.
71793         (file_name_concat): Renamed from path_concat.  All callers changed.
71794         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
71795         * lib/filenamecat.h: Likewise.  All includers changed.
71796         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
71797         in comments or local variable names.
71798         * lib/basename.c: Likewise.
71799         * lib/canonicalize.c, canonicalize.h: Likewise.
71800         * lib/dirname.c, dirname.h: Likewise.
71801         * lib/euidaccess.c: Likewise.
71802         * lib/exclude.c: Likewise
71803         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
71804         * lib/fsusage.c, fsuage.h: Likewise.
71805         * lib/fts.c, fts_.h: Likewise.
71806         * lib/getcwd.c: Likewise.
71807         * lib/getloadavg.c: Likewise.
71808         * lib/mkstemp.c: Likewise.
71809         * lib/mountlist.c, mountlist.h: Likewise.
71810         * lib/openat.c, openat.h: Likewise.
71811         * lib/readlink-stub.c: Likewise.
71812         * lib/readutmp.c, readutmp.h: Likewise.
71813         * lib/rename.c: Likewise.
71814         * lib/rmdir.c: Likewise.
71815         * lib/same.c: Likewise.
71816         * lib/savedir.c: Likewise.
71817         * lib/stripslash.c: Likewise.
71818         * lib/tempname.c: Likewise.
71819         * lib/xreadlink.c: Likewise.
71820         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
71821         All uses changed.
71822         * lib/exclude.h: Likewise.
71823
71824         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
71825         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
71826         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
71827         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
71828         * lib/pathmax.h: Include <limits.h> unconditionally, since other
71829         files have been getting away with it for years (MORE/BSD 4.3
71830         is extinct now).
71831         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
71832         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
71833
71834         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
71835         Define to 256, not 255, as per modern POSIX.
71836
71837 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
71838
71839         Sync from coreutils.
71840         Use "file name" when talking about file names, instead of "filename"
71841         or "path", as per the GNU coding standards.
71842         * MODULES.html.sh: mkdir-p renamed from makepath.
71843         filenamecat renamed from path-concat.
71844         * modules/filenamecat: Renamed from modules/path-concat.
71845         (Files): filenamecat.h and filenamecat.c renamed from
71846         path-concat.h and path-concat.c.
71847         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
71848         (Include): filenamecat.h, not path-concat.h.
71849         * modules/mkdir-p: Renamed from modules/makepath.
71850         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
71851         makepath.c.
71852         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
71853         (Include): mkdir-p.h, not makepath.h.
71854
71855 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
71856
71857         Sync from coreutils.
71858         * m4/mkdir-p.m4: Renamed from makepath.m4.
71859         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
71860         Rename files from makepath.c to mkdir-p.c, and from
71861         makepath.h to mkdir-p.h.
71862         * m4/filenamecat.m4: Renamed from path-concat.m4.
71863         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
71864         Rename files from path-concat.c to filenamecat.c,
71865         and from path-concat.h to filenamecat.h.
71866         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
71867         "file name" in local variables or comments.
71868         * m4/rename.m4: Likewise.
71869
71870 2005-06-01  Bruno Haible  <bruno@clisp.org>
71871
71872         * modules/csharpexec: New file.
71873         * MODULES.html.sh (C#): New section.
71874
71875 2005-06-01  Bruno Haible  <bruno@clisp.org>
71876
71877         * m4/csharp.m4: New file, from GNU gettext.
71878         * m4/csharpexec.m4: New file, from GNU gettext.
71879
71880 2005-06-01  Bruno Haible  <bruno@clisp.org>
71881
71882         * lib/csharpexec.h: New file, from GNU gettext.
71883         * lib/csharpexec.c: New file, from GNU gettext.
71884         * lib/csharpexec.sh.in: New file, from GNU gettext.
71885
71886 2005-05-31  Derek Price  <derek@ximbiot.com>
71887             Paul Eggert  <eggert@cs.ucla.edu>
71888
71889         Sync from cvs.
71890         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
71891
71892 2005-05-31  Derek Price  <derek@ximbiot.com>
71893             Paul Eggert  <eggert@cs.ucla.edu>
71894
71895         Sync from cvs.
71896         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
71897
71898 2005-05-29  Derek Price  <derek@ximbiot.com>
71899
71900         * config/srclist.txt (glob_.h, glob.c): Add these files.
71901
71902 2005-05-29  Derek Price  <derek@ximbiot.com>
71903
71904         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
71905         * modules/glob: New file.
71906         * modules/getlogin_r: Add link to POSIX spec in description.
71907
71908 2005-05-29  Derek Price  <derek@ximbiot.com>
71909             Paul Eggert  <eggert@cs.ucla.edu>
71910
71911         * m4/glob.m4: New file.
71912
71913 2005-05-29  Derek Price  <derek@ximbiot.com>
71914             Paul Eggert  <eggert@cs.ucla.edu>
71915
71916         * lib/glob_.h, lib/glob.c: New files.
71917
71918 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
71919
71920         * modules/fts (Files): Remove m4/inttypes-pri.m4.
71921         * modules/fts-lgpl (Depends-on): Remove gettext.
71922
71923 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
71924
71925         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
71926         and don't require gt_INTTYPES_PRI.
71927
71928 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
71929
71930         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
71931
71932         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
71933         the configuration hassle isn't worth it.
71934         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
71935         (LONGEST_MODIFIER, PRIuMAX): Remove.
71936
71937 2005-05-27  Bruno Haible  <bruno@clisp.org>
71938
71939         * lib/getlogin_r.h: Remove second include of <stddef.h>.
71940
71941 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
71942
71943         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
71944         _POSIX_PTHREAD_SEMANTICS for Solaris.
71945
71946 2005-05-25  Derek Price  <derek@ximbiot.com>
71947
71948         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
71949
71950 2005-05-25  Derek Price  <derek@ximbiot.com>
71951             Paul Eggert  <eggert@cs.ucla.edu>
71952
71953         * modules/getlogin_r, m4/getlogin_r.m4: New files.
71954         * lib/getlogin_r.c, getlogin_r.h: New files.
71955
71956 2005-05-25  Bruno Haible  <bruno@clisp.org>
71957             Derek Price  <derek@ximbiot.com>
71958
71959         * lib/getlogin_r.h: Simplify API documentation.
71960
71961 2005-05-23  Derek Price  <derek@ximbiot.com>
71962
71963         * modules/minmax (Files): Add m4/minmax.m4.
71964         (configure.ac): Add gl_MINMAX.
71965
71966 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
71967
71968         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
71969         so that unistd-safer.h (GPL'ed code) need not be included.
71970
71971 2005-05-22  Bruno Haible  <bruno@clisp.org>
71972
71973         * m4/minmax.m4: New file.
71974         Based on a patch by Derek Price <derek@ximbiot.com>.
71975
71976 2005-05-22  Bruno Haible  <bruno@clisp.org>
71977
71978         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
71979         (INT64_MIN): Fix definition.
71980         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
71981
71982         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
71983         NEED_SIGNED_INT_TYPES.
71984
71985         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
71986         HAVE_SYSTEM_INTTYPES.
71987
71988 2005-05-22  Bruno Haible  <bruno@clisp.org>
71989
71990         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
71991         Also include <sys/param.h> if it defines MIN, MAX.
71992         Based on a patch by Derek Price <derek@ximbiot.com>.
71993
71994 2005-05-21  Jim Meyering  <jim@meyering.net>
71995
71996         * modules/fts (Files): Add m4/inttypes-pri.m4.
71997         (Depends-on): Add lstat and remove gettext.  Alphabetize.
71998
71999 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
72000
72001         New fts module.
72002         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
72003         (setup_dir, free_dir): New functions.
72004         (enter_dir, leave_dir): Define trivial
72005         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
72006         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
72007         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
72008         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
72009         Move to fts-cycle.c.
72010         (fts_open): Use setup_dir.
72011         (fts_close): Use free_dir.
72012         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
72013         This adds a label and some gotos, but the alternatives were messier.
72014         Check for memory allocation failure when entering a dir.
72015         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
72016         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
72017         (FTS): New member fts_cycle, that is a union that contains the
72018         old active_dir_ht and cycle_state.  All uses changed to mention
72019         fts_cycle.ht and fts_cycle.state.
72020         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
72021         fts.c, with the following changes:
72022         (setup_dir, free_dir): New functions.
72023         (enter_dir): Now returns bool.  Return true if successful, false
72024         if memory exhausted.  All callers changed.
72025         Do not bother partly cleaning up on
72026         memory allocation failure; that is free_dir's job.
72027         However, free ad if hash_insert fails, to avoid memory leak.
72028         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
72029         fts->fts_options to see which union member to use.
72030
72031 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
72032
72033         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
72034         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
72035
72036 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
72037
72038         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
72039
72040 2005-05-20  Jim Meyering  <jim@meyering.net>
72041
72042         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
72043         Now a macro, to pacify GCC.
72044
72045 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
72046
72047         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
72048         of -1.
72049
72050 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
72051
72052         * lib/chown.c (rpl_chown): Return -1 on failure.
72053
72054 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
72055
72056         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
72057         Don't check for stddef.h.
72058         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
72059         don't use its results.
72060         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
72061         since we include them unconditionally.  Don't require
72062         AM_STDBOOL_H, since stdbool is a prerequisite.
72063         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
72064         since we assume C89 or better.
72065         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
72066         as we don't use their results.
72067         Don't check for fchdir, memmove, memset, strrchr, as we use
72068         them unconditionally.
72069         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
72070         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
72071
72072 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
72073
72074         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
72075         Include <stddef.h> unconditionally, since we assume C89 now.
72076         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
72077         * lib/fts.c: Include fts_.h first, to check interface.
72078         Do not include intprops.h; no longer needed.
72079         Include cycle-check.h and hash.h, since fts_.h no longer does.
72080         Remove unnecessary casts of closedir to void.
72081         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
72082         decide whether to decrement nlinks.
72083         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
72084         (FTS): Use struct hash_table * instead of Hash_table, so that
72085         we no longer need to include hash.h here.
72086
72087 2005-05-18  Jim Meyering  <jim@meyering.net>
72088
72089         * modules/dirfd (License): Change to LGPL.  Most of the code
72090         is already in the public domain.
72091
72092 2005-05-18  Jim Meyering  <jim@meyering.net>
72093
72094         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
72095         Reported by Yoann Vandoorselaere.
72096
72097 2005-05-17  Jim Meyering  <jim@meyering.net>
72098
72099         * m4/fts.m4: New file, from coreutils.
72100
72101 2005-05-17  Jim Meyering  <jim@meyering.net>
72102
72103         * lib/fts.c, lib/fts_.h: New files, from coreutils.
72104
72105 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
72106
72107         Sync from coreutils.
72108         * m4/unlinkdir.m4: New file.
72109
72110 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
72111
72112         Sync from coreutils.
72113         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
72114         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
72115         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
72116         White space changes only.
72117         * lib/makepath.c (make_path): Port to hosts where leading "//" is
72118         special.
72119         * lib/yesno.c: Include getline.h, not ctype.h.
72120         (yesno): Don't remove leading white space; POSIX doesn't allow it.
72121         Use getline to remove arbitrary restriction on response length.
72122
72123 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
72124
72125         * config/srclist-update: Spell out "Street" in FSF postal
72126         mail address; this is the style the FSF seems to prefer.
72127
72128         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
72129         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
72130         this updates FSF postal mail address.
72131
72132         Sync from coreutils.
72133         * modules/unlinkdir: New file.
72134         * modules/yesno (Depends-on): Add getline.
72135         * MODULES.html.sh (File system functions): Add unlinkdir.
72136
72137 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
72138
72139         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
72140         lib/strsep.h:
72141         Change the initial comment to refer to GPL, not LGPL.
72142         gnulib-tool will change it to LGPL as needed.
72143
72144         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
72145         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
72146         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
72147         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
72148         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
72149         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
72150         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
72151         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
72152         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
72153         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
72154         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
72155         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
72156         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
72157         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
72158         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
72159         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
72160         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
72161         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
72162         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
72163         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
72164         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
72165         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
72166         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
72167         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
72168         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
72169         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
72170         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
72171         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
72172         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
72173         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
72174         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
72175         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
72176         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
72177         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
72178         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
72179         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
72180         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
72181         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
72182         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
72183         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
72184         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
72185         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
72186         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
72187         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
72188         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
72189         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
72190         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
72191         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
72192         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
72193         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
72194         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
72195         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
72196         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
72197         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
72198         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
72199         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
72200         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
72201         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
72202         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
72203         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
72204         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
72205         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
72206         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
72207         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
72208         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
72209         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
72210         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
72211         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
72212         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
72213         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
72214         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
72215         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
72216         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
72217         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
72218         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
72219         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
72220         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
72221         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
72222         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
72223         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
72224         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
72225         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
72226         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
72227         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
72228         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
72229         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
72230         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
72231         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
72232         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
72233         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
72234         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
72235         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
72236         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
72237         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
72238         lib/yesno.c, lib/yesno.h:
72239         Update FSF postal mail address.
72240
72241 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
72242
72243         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
72244         tests/test-memmem.c, tests/test-stpncpy.c:
72245         Update FSF postal mail address.
72246
72247 2005-05-13  Bruno Haible  <bruno@clisp.org>
72248
72249         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
72250         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
72251         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
72252         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
72253         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
72254         Add support for 64-bit integers in the MSVC compiler.
72255
72256 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
72257
72258         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
72259
72260 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
72261
72262         * gnulib-tool (func_import): Sort and uniquify recommended includes.
72263
72264 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
72265
72266         * doc/getdate.texi (General date syntax): Don't say that date
72267         date --iso-8601=ns generates acceptable dates; it doesn't yet.
72268         Problem reported by Nic Ferrier.
72269
72270 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
72271
72272         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
72273         specified in ai_socktype. Fix invalid ai_protocol
72274         check. ai_protocol is usually set to 0 or depending on
72275         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
72276         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
72277         ai_socktype / ai_protocol in the returned addrinfo structure.
72278
72279 2005-05-10  Simon Josefsson  <jas@extundo.com>
72280
72281         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
72282         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
72283
72284 2005-05-10  Karl Berry  <karl@gnu.org>
72285
72286         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
72287         (from http://www.gnu.org/licenses).
72288         * doc/COPYING.LIB: also rename to COPYING.LESSER.
72289         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
72290         fdl.texi suffices.
72291
72292 2005-05-10  Karl Berry  <karl@gnu.org>
72293
72294         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
72295         (COPYING.DOC): remove.
72296
72297         * config/srclist-update: new FSF address.
72298
72299 2005-05-10  Derek Price  <derek@ximbiot.com>
72300
72301         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
72302         possible.
72303
72304 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
72305             Bruno Haible  <bruno@clisp.org>
72306
72307         * modules/inet_ntop: New file.
72308         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
72309         inet_ntop.
72310
72311 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
72312             Bruno Haible  <bruno@clisp.org>
72313
72314         * m4/inet_ntop.m4: New file.
72315
72316 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
72317             Bruno Haible  <bruno@clisp.org>
72318
72319         * lib/inet_ntop.h: New file.
72320         * lib/inet_ntop.c: New file, from glibc with modifications.
72321
72322 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
72323
72324         * modules/time_r (License): Change to LGPL.
72325         * modules/extensions (License): Change to LGPL.  Actually,
72326         the license is more permissive than that, but currently gnulib-tool
72327         doesn't know how to handle more-permissive licenses.
72328
72329         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
72330         Problem reported by Dave Love.
72331
72332 2005-05-08  Jim Meyering  <jim@meyering.net>
72333
72334         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
72335         blank.
72336
72337 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
72338
72339         * modules/argmatch (Depends-on): Add stdbool.
72340         * modules/backupfile (Depends-on): Likewise.
72341         * modules/chdir-long (Depends-on): Likewise.
72342         * modules/closeout (Depends-on): Likewise.
72343         * modules/cycle-check (Depends-on): Likewise.
72344         * modules/dirname (Depends-on): Likewise.
72345         * modules/fnmatch (Depends-on): Likewise.
72346         * modules/fsusage (Depends-on): Likewise.
72347         * modules/fwriteerror (Depends-on): Likewise.
72348         * modules/getcwd (Depends-on): Likewise.
72349         * modules/getloadavg (Depends-on): Likewise.
72350         * modules/hard-locale (Depends-on): Likewise.
72351         * modules/makepath (Depends-on): Likewise.
72352         * modules/mountlist (Depends-on): Likewise.
72353         * modules/nanosleep (Depends-on): Likewise.
72354         * modules/posixtm (Depends-on): Likewise.
72355         * modules/quotearg (Depends-on): Likewise.
72356         * modules/readtokens (Depends-on): Likewise.
72357         * modules/readtokens0 (Depends-on): Likewise.
72358         * modules/readutmp (Depends-on): Likewise.
72359         * modules/save-cwd (Depends-on): Likewise.
72360         * modules/strftime (Depends-on): Likewise.
72361         * modules/userspec (Depends-on): Likewise.
72362         * modules/utimecmp (Depends-on): Likewise.
72363         * modules/xgetcwd (Depends-on): Likewise.
72364         * modules/xnanosleep (Depends-on): Likewise.
72365         * modules/xstrtod (Depends-on): Likewise.
72366         * modules/yesno (Depends-on): Likewise.
72367
72368 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
72369
72370         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
72371         needless checks.
72372
72373 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
72374
72375         Merge from coreutils.  Among other things,
72376         add bulletproofing for cases where stdin, stdout, or stderr are closed.
72377         * lib/fd-safer.c: New file.
72378         * lib/fcntl-safer.h, open-safer.c: Remove.
72379         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
72380         * lib/dup-safer.c: Include unistd-safer.h first.
72381         Don't include errno.h.
72382         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
72383         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
72384         * lib/file-type.c: Rely on file-type.h change.
72385         * lib/getloadavg.c: Include unistd-safer.h.
72386         (getloadavg): Use safer open.
72387         * lib/getusershell.c: Include "stdio-safer.h".
72388         (getusershell): Use safer fopen.
72389         * lib/long-options.c (long_options): Use NULL rather than 0.
72390         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
72391         'free'.
72392         * lib/modechange.c: Likewise.
72393         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
72394         (MODE_DONE): New constant.
72395         (struct mode_change): Remove 'next' member.
72396         (make_node_op_equals): New function; like the old one of the
72397         same name, except it allocates an array.
72398         (mode_compile, mode_create_from_ref): Use it.
72399         (mode_compile): Allocate result as an array, not a linked list.
72400         Parse octal string ourself, so that we catch mistakes like "+0".
72401         (mode_adjust): Arg is an array, not a linked list.
72402         * lib/modechange.c: Include stat-macros.h, xalloc.h.
72403         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
72404         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
72405         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
72406         Remove.  This is now stat-macros.h's job.
72407         (talloc): Remove.  All callers replaced by xalloc, so that
72408         our invokers don't have to worry about reporting memory failures.
72409         (make_node_op_equals): Remove.
72410         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
72411         New constants.
72412         (struct mode_change): Moved here from modechange.h.
72413         (mode_append_entry): Remove.
72414         (mode_compile): Remove MASKED_OPS arg, since it encouraged
72415         apps to have incorrect behavior.  Use simpler algorithm for head
72416         and tail.  Don't futz with umask; that's now the job of mode_adjust.
72417         Detect more invalid usages rather than having somewhat-random behavior.
72418         Don't insert an "a=" action, as that leads to incorrect behavior.
72419         (mode_compile, mode_create_from_ref): Return NULL on error instead
72420         of an enum, since now there's only one way to have an error.  All
72421         callers changed.
72422         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
72423         at the correct time.  Simplify calculation of "+u" and its ilk.
72424         Don't mishandle "+X".
72425         (mode_free): Remove "register" and localize decls.
72426         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
72427         (struct mode_change): Move to modechange.c; callers don't
72428         need to see this stuff.
72429         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
72430         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
72431         (mode_change, mode_adjust): Reflect the new signatures noted above.
72432         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
72433         that might redefine system include files.
72434         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
72435         (my_usleep): Use NULL rather than (void *) 0.
72436         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
72437         Use siginterrupt to specify that system calls should be interrupted.
72438         (rpl_nanosleep): Move initialization of suspended closer to call of
72439         my_usleep.
72440         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
72441         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
72442         (desirable_utmp_entry): New function.
72443         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
72444         using x2nrealloc, to simplify logic.
72445         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
72446         size calculation.  Do not assume utmp file is a regular file.
72447         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
72448         (READ_UTMP_CHECK_PIDS): New constant.
72449         * lib/save-cwd.c: Include unistd-safer.h.
72450         (save_cwd): Use fd_safer.
72451         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
72452         [!_LIBC] Include "stat-macros.h" instead.
72453         * lib/unistd-safer.h (fd_safer): New decl.
72454
72455 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
72456
72457         * modules/getloadavg (Depends-on): Add unistd-safer.
72458         * modules/getusershell (Depends-on): Add stdio-safer.
72459         * modules/lstat (Depends-on): Remove xalloc.
72460         * modules/mkstemp (Depends-on): Add stat-macros.
72461         * modules/modechange (Depends-on): Remove xstrtol.
72462         Add stat-macros, xalloc.
72463         * modules/save-cwd (Depends-on): Add unistd-safer.
72464         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
72465         * modules/unistd-safer (Files): Add lib/fd-safer.c
72466         (Makefile.am): Remove lib_SOURCES.
72467
72468         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
72469         Remove fcntl-safer; unistd-safer supersedes it.
72470
72471 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
72472
72473         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
72474         AC_HEADER_STAT.
72475         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
72476         (gl_PREREQ_CHOWN): Remove.
72477         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
72478         it.  Don't require AC_HEADER_STAT.
72479         (gl_PREREQ_LSTAT): Remove.
72480         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
72481         Don't require AC_HEADER_STAT.
72482         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
72483         (gl_PREREQ_RMDIR): Remove.
72484         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
72485         mention stat-macros.h or AC_HEADER_STAT, since we'll make
72486         the stat-macros module a prerequisite.
72487         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
72488         * m4/filemode.m4 (gl_FILEMODE): Likewise.
72489         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
72490         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
72491         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
72492         variable names.
72493         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
72494         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
72495         variable prefixes.
72496         * m4/fcntl-safer.m4: Remove.
72497         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
72498         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
72499         Invoke gl_PREREQ_FD_SAFER.
72500         (gl_PREREQ_FD_SAFER): New macro.
72501         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
72502         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
72503         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
72504         Remove duplicate call to AC_LIBOBJ(readutmp).
72505         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
72506
72507         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
72508         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
72509
72510 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
72511
72512         * MODULES.html.sh (Misc): Add byteswap.
72513
72514 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
72515
72516         * modules/getcwd (Depends-on): Add extensions.
72517         * modules/openat (Depends-on): Likewise.
72518
72519 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
72520
72521         * modules/byteswap: New file.
72522
72523 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
72524
72525         * m4/byteswap.m4: New file.
72526
72527 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
72528
72529         * lib/byteswap_.h: New file.
72530
72531 2005-04-25  Karl Berry  <karl@gnu.org>
72532
72533         * m4/gettext.m4: Update from GNU gettext 0.14.4.
72534
72535 2005-04-25  Albert Chin  <china@thewrittenword.com>
72536
72537         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
72538         Toolkit C bug.
72539
72540 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
72541
72542         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
72543         (func_ln_if_changed): Remove forcibly for no error message
72544         in case file does not exist.
72545
72546 2005-04-19  Simon Josefsson  <jas@extundo.com>
72547
72548         * gnulib-tool (Options): Make --symlink mean --symbolic.
72549
72550 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
72551
72552         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
72553
72554 2005-04-16  Simon Josefsson  <jas@extundo.com>
72555
72556         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
72557
72558 2005-04-15  Simon Josefsson  <jas@extundo.com>
72559
72560         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
72561
72562 2005-04-15  Simon Josefsson  <jas@extundo.com>
72563
72564         * gnulib-tool: Rename --symlink to --symbolic.
72565
72566 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
72567
72568         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
72569         symbolic links to files instead of copying/moving.  Add --aux-dir,
72570         specifying directory relative --dir where auxiliary build tools
72571         are placed.
72572
72573 2005-04-14  Bruno Haible  <bruno@clisp.org>
72574
72575         * modules/allocsa (License): Change to LGPL.
72576         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
72577
72578 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
72579
72580         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
72581         that "UTC +1 second" continues to work.  Problem reported
72582         by Dmitry V. Levin.
72583         (relunit_snumber): New rule.
72584         (relunit): Use it.
72585
72586 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
72587
72588         * lib/getdate.y (universal_time_zone_table): New constant.
72589         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
72590         universal_time_zone_table.
72591         (lookup_zone): Prefer universal_time_zone_table to
72592         local_time_zone_table, so that "GMT" time stamps are allowed in
72593         London during the summer.  Problem reported by Ian Abbott.
72594
72595 2005-04-12  Jim Meyering  <jim@meyering.net>
72596
72597         * lib/human.c (humblock): Set *options even when returning due to
72598         xstrtoumax conversion failure.  Thanks to a used-uninitialized
72599         warning from gcc-4.
72600
72601 2005-04-09  Jim Meyering  <jim@meyering.net>
72602
72603         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
72604         -Wuninitialized: initialize tm0.tm_year.
72605
72606 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
72607
72608         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
72609         count, since there's no maximum.  All uses changed.
72610         Add member dsts_seen.
72611         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
72612         not being INT_MAX.
72613         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
72614         Use pc_rels_seen to decide whther a date is absolute.
72615
72616         * lib/getdate.y (number): Don't overwrite year.
72617         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
72618         check.
72619
72620 2005-04-02  Simon Josefsson  <jas@extundo.com>
72621
72622         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
72623         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
72624
72625 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
72626
72627         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
72628         where no absolute path name can be longer than PATH_MAX.
72629
72630 2005-03-27  Jim Meyering  <jim@meyering.net>
72631
72632         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
72633
72634 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
72635
72636         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
72637         "one's complement" -> "ones' complement" in comment, as per Knuth.
72638         "value of type" -> "type or expression" in comment.
72639         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
72640
72641 2005-03-26  Jim Meyering  <jim@meyering.net>
72642
72643         Comment nits.
72644         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
72645         Correct typos: s/or/of/.
72646
72647 2005-03-26  Jim Meyering  <jim@meyering.net>
72648
72649         * modules/check-include-files: Move to ../ and rename to...
72650         * check-module: ...this.
72651
72652 2005-03-25  Jim Meyering  <jim@meyering.net>
72653
72654         * modules/xvasprintf (Files): Add xalloc.h.
72655
72656 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
72657
72658         * modules/gettext (Files): config/config.rpath ->
72659         build-aux/config.rpath
72660         * modules/iconv (Files): Likewise.
72661         Problem reported by Oskar Liljeblad.
72662
72663 2005-03-23  Jim Meyering  <jim@meyering.net>
72664
72665         * modules/check-include-files: New script to check for
72666         missing dependencies, multiple includes, etc.
72667
72668         * modules/c-strtold (Depends-on): Add xalloc.
72669         * modules/c-strtod (Depends-on): Add xalloc.
72670         * modules/hash (Depends-on): Add xalloc.
72671         (Files): Remove lib/xalloc.h.
72672
72673         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
72674         * modules/userspec (Files): Add lib/inttostr.h.
72675
72676 2005-03-23  Jim Meyering  <jim@meyering.net>
72677
72678         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
72679
72680 2005-03-22  Jim Meyering  <jim@meyering.net>
72681
72682         * modules/stat-macros: New module.
72683         * modules/canonicalize, modules/euidaccess, modules/file-type,
72684         * modules/filemode, modules/lchown, modules/makepath,
72685         * modules/rmdir, modules/stat: Depend on new stat-macros module
72686         rather than listing lib/stat-macros.h manually.
72687         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
72688
72689 2005-03-22  Jim Meyering  <jim@meyering.net>
72690
72691         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
72692
72693 2005-03-22  Bruno Haible  <bruno@clisp.org>
72694
72695         * config/srclist.txt: Replace target directory 'config' with
72696         'build-aux'.
72697         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
72698         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
72699         ../build-aux/.
72700
72701 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
72702
72703         * modules/chdir-long (Depends-on): Add mempcpy.
72704
72705         * modules/acl, modules/backupfile, modules/c-strtod,
72706         modules/c-strtold, modules/canon-host, modules/canonicalize,
72707         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
72708         modules/exclude, modules/exitfail, modules/file-type,
72709         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
72710         modules/getdate, modules/getline, modules/getpagesize,
72711         modules/getpass, modules/getugroups, modules/group-member,
72712         modules/hard-locale, modules/hash, modules/human, modules/idcache,
72713         modules/inttostr, modules/long-options, modules/makepath,
72714         modules/md5, modules/memcasecmp, modules/memcoll,
72715         modules/modechange, modules/mountlist, modules/path-concat,
72716         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
72717         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
72718         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
72719         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
72720         modules/strftime, modules/strndup, modules/strverscmp,
72721         modules/timespec, modules/unlocked-io, modules/userspec,
72722         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
72723         modules/yesno:
72724         Remove lib_SOURCES line from Makefile.am section, as this is now
72725         done automatically by the corresponding Autoconf macro.
72726
72727 2005-03-21  Jim Meyering  <jim@meyering.net>
72728
72729         Changes imported from coreutils.
72730
72731         * lib/cycle-check.c: Don't include xalloc.h.
72732
72733         * lib/path-concat.c: Don't include assert.h.
72734         (path_concat): Remove assertion that would have triggered
72735         for ABASE starting with more than one slash.
72736         Reported by Andreas Schwab.
72737
72738         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
72739         properly when ABASE is an absolute file name.
72740         Correct the description of this function.
72741         Include <assert.h>.
72742         Add an assertion and a test driver.
72743         This fixes a bug introduced on 2004-07-02.
72744         Andreas Schwab reported the resulting failure of cp --parents:
72745         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
72746
72747 2005-03-21  Jim Meyering  <jim@meyering.net>
72748
72749         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
72750         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
72751
72752 2005-03-21  Jim Meyering  <jim@meyering.net>
72753         and  Paul Eggert  <eggert@cs.ucla.edu>
72754
72755         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
72756         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
72757         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
72758         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
72759         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
72760         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
72761         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
72762         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
72763         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
72764         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
72765         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
72766         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
72767         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
72768         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
72769         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
72770         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
72771         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
72772         for these modules.
72773
72774 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
72775
72776         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
72777         (which shouldn't happen), generate nothing instead of returning 0
72778         immediately, so that nstrftime (NULL, ...) doesn't return 0.
72779
72780 2005-03-16  Bruno Haible  <bruno@clisp.org>
72781
72782         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
72783         HAVE_LONGLONG_64BIT.
72784
72785 2005-03-16  Bruno Haible  <bruno@clisp.org>
72786
72787         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
72788         HAVE_LONGLONG_64BIT.
72789
72790 2005-03-16  Bruno Haible  <bruno@clisp.org>
72791
72792         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
72793         HAVE_LONGLONG_64BIT.
72794
72795 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
72796
72797         * lib/strftime.c (my_strftime): Prepend space to format so that we can
72798         reliably distinguish strftime failure from empty output on POSIX
72799         hosts.
72800
72801 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
72802
72803         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
72804         (iconv_string): Don't guess a size-zero buffer, as that might cause
72805         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
72806         result would be 'too large', where 'too large' is (heuristically)
72807         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
72808         overflow concerns.  This will prevent some unwanted malloc failures
72809         when the inputs are very large.
72810
72811 2005-03-15  Karl Berry  <karl@gnu.org>
72812
72813         * config/srclist.txt (config.rpath): from gettext.
72814         * config/config.rpath: update.
72815
72816 2005-03-15  Bruno Haible  <bruno@clisp.org>
72817
72818         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
72819         to 'negate'.
72820
72821         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
72822         variable.
72823
72824         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
72825         results.
72826
72827 2005-03-14  Simon Josefsson  <jas@extundo.com>
72828
72829         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
72830         <fx@gnu.org>.
72831
72832 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
72833
72834         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
72835         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
72836         intprops.h.
72837         * lib/strtol.c: Likewise.
72838
72839 2005-03-14  Jim Meyering  <jim@meyering.net>
72840
72841         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
72842         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
72843         to be nonzero so that we (and caller) can detect the difference
72844         between a valid zero-length expansion and an error return, even
72845         when the underlying strftime fails before writing anything into
72846         that location.
72847
72848 2005-03-14  Bruno Haible  <bruno@clisp.org>
72849
72850         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
72851         Update from GNU gettext 0.14.3.
72852
72853 2005-03-10  Jim Meyering  <jim@meyering.net>
72854
72855         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
72856
72857 2005-03-10  Jim Meyering  <jim@meyering.net>
72858
72859         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
72860         so that this module works on systems without fchdir.
72861
72862 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
72863
72864         Factor int-properties macros into a single file, except for
72865         glibc-related files.
72866         * lib/intprops.h: New file.
72867         * lib/getloadavg.c: Include it instead of limits.h.
72868         (INT_STRLEN_BOUND): Remove.
72869         * lib/human.c: Include intprops.h.
72870         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
72871         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
72872         302/1000.
72873         * lib/inttostr.h: Include intprops.h instead of limits.h.
72874         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
72875         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
72876         for consistency with intprops.h.
72877         (time_t_is_integer, twos_complement_arithmetic): Use them.
72878         * lib/sig2str.h: Include <signal.h>, intprops.h.
72879         (INT_STRLEN_BOUND): Remove.
72880         * lib/strftime.c (TYPE_SIGNED): Remove.
72881         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
72882         * lib/strtol.c: Adjust comments to match intprops.h.
72883         * lib/userspec.c: Include intprops.h.
72884         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
72885         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
72886         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
72887         instead of rolling our own expressions.
72888         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
72889
72890         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
72891         instead of int.
72892         (my_strftime): Do not mishandle years close to INT_MAX, by doing
72893         the right thing even if adding 1900 would overflow.  Similarly
72894         for tm_mon + 1 and tm_yday + 1.
72895         Make %Y always equivalent to %C%y, and similarly for %G and %g.
72896         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
72897         (DO_SIGNED_NUMBER): New macro.
72898         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
72899
72900 2005-03-07  Bruno Haible  <bruno@clisp.org>
72901
72902         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
72903
72904 2005-03-07  Bruno Haible  <bruno@clisp.org>
72905
72906         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
72907
72908 2005-03-04  Derek R. Price  <derek@ximbiot.com>
72909
72910         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
72911         (func_import): Only replace files via --import when they have actually
72912         changed.
72913
72914 2005-03-03  Derek R. Price  <derek@ximbiot.com>
72915
72916         * m4/mmap-anon.m4: New file.
72917         * m4/pagealign_alloc.m4: New file.
72918
72919 2005-03-03  Derek R. Price  <derek@ximbiot.com>
72920             Bruno Haible  <bruno@clisp.org>
72921
72922         * modules/pagealign_alloc: New file.
72923         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
72924
72925 2005-03-03  Derek R. Price  <derek@ximbiot.com>
72926             Bruno Haible  <bruno@clisp.org>
72927
72928         * lib/pagealign_alloc.h: New file.
72929         * lib/pagealign_alloc.c: New file.
72930
72931 2005-03-03  Bruno Haible  <bruno@clisp.org>
72932
72933         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
72934         Use an all-permissive copyright notice, recommended by RMS.
72935
72936 2005-03-02  Bruno Haible  <bruno@clisp.org>
72937
72938         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
72939         of AIX, the replacement has to be done only after <string.h> is
72940         included, therefore not in config.h. stpncpy.h does the replacement,
72941         and stpncpy.c uses it.
72942
72943 2005-03-02  Bruno Haible  <bruno@clisp.org>
72944
72945         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
72946         stpncpy.c uses it.
72947
72948 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
72949
72950         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
72951         The workaround isn't strictly needed for POSIX conformance, and
72952         it's too much of a pain to configure and maintain.  We'll ask
72953         people to fix their kernels instead.
72954         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
72955         (NANOSLEEP_BUG_WORKAROUND): Remove.
72956         (xnanosleep): Remove the workaround.
72957
72958 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
72959
72960         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
72961         Reported by Derek Price.
72962         (Include): Add "timespec.h".
72963
72964         * modules/xnanosleep (Depends-on): Remove gethrxtime.
72965
72966 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
72967
72968         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
72969         to detect nanosleep bug.
72970
72971 2005-03-01  Bruno Haible  <bruno@clisp.org>
72972
72973         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
72974
72975 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
72976
72977         * modules/gethrxtime: New file.
72978         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
72979         (Depends-on): Add gethrxtime.
72980         (configure.ac): Add gl_XNANOSLEEP.
72981         (Makefile.am): Remove lib_SOURCES line.
72982
72983 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
72984
72985         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
72986         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
72987
72988 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
72989
72990         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
72991         * lib/timespec.h (gettime): Return void, since it always
72992         succeeds now.  All uses changed.
72993         * lib/gettime.c (gettime): Likewise.
72994         [HAVE_NANOTIME]: Prefer nanotime.
72995         Assume gettimeofday succeeds, as POSIX requires.
72996         Assime time () succeeds, since other code already does.
72997         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
72998         (timespec_subtract): Remove.
72999         (NANOSLEEP_BUG_WORKAROUND): New constant.
73000         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
73001         things considerably.  Use it only on GNU/Linux hosts, since the
73002         workaround shouldn't be needed elsewhere.
73003
73004 2005-02-24  Bruno Haible  <bruno@clisp.org>
73005
73006         * modules/gettext (Files): Add m4/glibc2.m4.
73007
73008 2005-02-24  Bruno Haible  <bruno@clisp.org>
73009
73010         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
73011         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
73012         * m4/progtest.m4:
73013         Update from GNU gettext 0.14.2.
73014         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
73015
73016 2005-02-24  Bruno Haible  <bruno@clisp.org>
73017
73018         * lib/localcharset.c: Update from GNU gettext 0.14.2.
73019         * lib/config.charset: Update from GNU gettext 0.14.2.
73020
73021 2005-02-24  Bruno Haible  <bruno@clisp.org>
73022
73023         * lib/gettext.h: Update from GNU gettext 0.14.2.
73024
73025 2005-02-23  Simon Josefsson  <jas@extundo.com>
73026
73027         * m4/iconvme.m4: New file.
73028
73029 2005-02-23  Jim Meyering  <jim@meyering.net>
73030
73031         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
73032         change.
73033         Thanks to Bruno Haible for catching it.
73034
73035 2005-02-22  Simon Josefsson  <jas@extundo.com>
73036
73037         * modules/iconvme: New file.
73038
73039         * MODULES.html.sh: Add iconvme.
73040
73041 2005-02-22  Simon Josefsson  <jas@extundo.com>
73042
73043         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
73044
73045 2005-02-22  Simon Josefsson  <jas@extundo.com>
73046
73047         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
73048
73049 2005-02-22  Jim Meyering  <jim@meyering.net>
73050
73051         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
73052         s/ifndef/ifdef/.
73053
73054 2005-02-20  Neil Conway  <neilc@samurai.com>
73055
73056         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
73057         returned by OSX/Darwin if the specified buffer is not large
73058         enough for the hostname.
73059
73060 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
73061
73062         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
73063         pass it to _help, otherwise the latter coredumps trying to
73064         dereference state.root_argp.
73065
73066 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
73067
73068         * modules/chdir-long (Depends-on): Add memrchr.
73069         * modules/memrchr (Files): Add lib/memrchr.h.
73070         (Include): "memrchr.h".
73071
73072 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
73073
73074         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
73075
73076 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
73077
73078         * lib/memrchr.h: New file.
73079         * lib/chdir-long.c: Include it.
73080         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
73081         Don't bother including stddef.h.
73082
73083 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
73084
73085         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
73086         inclusion.
73087         Include <sys/types.h>, for dev_t.
73088         (ME_DUMMY, ME_REMOTE): Move from here....
73089         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
73090         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
73091         Dmitry V. Levin.
73092         Include mountlist.h first, to test the interface.
73093
73094 2005-01-29  Bruno Haible  <bruno@clisp.org>
73095
73096         * lib/progname.c (program_name): Initialize.
73097         Needed when linking statically on MacOS X.
73098
73099 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
73100
73101         Sync from coreutils.
73102         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
73103         (Depends-on): Add c-strtod.
73104         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
73105
73106 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
73107
73108         Sync from coreutils.
73109         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
73110
73111         Remove files that are specific to coreutils.
73112         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
73113
73114 2005-01-28  Bruno Haible  <bruno@clisp.org>
73115
73116         * modules/javacomp: New file.
73117         * MODULES.html.sh (Java): Add javacomp.
73118
73119 2005-01-28  Bruno Haible  <bruno@clisp.org>
73120
73121         * m4/javacomp.m4: New file, from GNU gettext.
73122
73123 2005-01-28  Bruno Haible  <bruno@clisp.org>
73124
73125         * lib/javacomp.sh.in: New file, from GNU gettext.
73126         * lib/javacomp.h: New file, from GNU gettext.
73127         * lib/javacomp.c: New file, from GNU gettext.
73128
73129 2005-01-26  Simon Josefsson  <jas@extundo.com>
73130
73131         * lib/gai_strerror.c: Use GPL in header.
73132
73133 2005-01-26  Bruno Haible  <bruno@clisp.org>
73134
73135         * modules/javaexec: New file.
73136         * MODULES.html.sh (Java): Add javaexec.
73137
73138 2005-01-26  Bruno Haible  <bruno@clisp.org>
73139
73140         * m4/javaexec.m4: New file, from GNU gettext.
73141
73142 2005-01-26  Bruno Haible  <bruno@clisp.org>
73143
73144         * lib/javaexec.sh.in: New file, from GNU gettext.
73145         * lib/javaexec.h: New file, from GNU gettext.
73146         * lib/javaexec.c: New file, from GNU gettext.
73147
73148 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
73149
73150         * modules/lchown (Depends-on): Remove lchown.h
73151
73152 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
73153
73154         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
73155         must be defined if the header file was not found, in order
73156         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
73157
73158 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
73159
73160         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
73161         initializers for struct pentry_state.
73162         (__argp_error): Check return value of __asprintf
73163         (__argp_failure): Translate error message
73164
73165         * lib/argp-parse.c: Removed braces around the expansion of N_()
73166
73167 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
73168
73169         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
73170         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
73171         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
73172         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
73173         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
73174         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
73175         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
73176         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
73177         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
73178         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
73179         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
73180         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
73181         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
73182         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
73183         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
73184         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
73185         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
73186         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
73187         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
73188         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
73189         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
73190         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
73191         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
73192         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
73193         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
73194         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
73195         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
73196         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
73197         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
73198         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
73199         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
73200         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
73201         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
73202         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
73203         xstrtol.m4, xstrtoumax.m4, yesno.m4:
73204         Use an all-permissive copyright notice, recommended by RMS.
73205
73206 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
73207
73208         * modules/chdir-long (Depends-on): Remove mempcpy.
73209
73210 2005-01-21  Jim Meyering  <jim@meyering.net>
73211
73212         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
73213         same value as for Solaris 9.
73214
73215         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
73216         component length.  This included changing the parameter to be
73217         of type `char *' rather than `char const *'.
73218         * lib/chdir-long.h (chdir_long): Update prototype.
73219
73220         * lib/openat.c (fdopendir, fstatat): New functions.
73221         * lib/openat.h: Include headers required for use of DIR and struct
73222         stat.
73223         [AT_SYMLINK_NOFOLLOW]: Define.
73224         (fdopendir, fstatat): Add prototypes.
73225
73226 2005-01-21  Bruno Haible  <bruno@clisp.org>
73227
73228         * modules/classpath: New file.
73229         * MODULES.html.sh (Java): Add classpath.
73230
73231 2005-01-21  Bruno Haible  <bruno@clisp.org>
73232
73233         * lib/classpath.h: New file, from GNU gettext.
73234         * lib/classpath.c: New file, from GNU gettext.
73235
73236 2005-01-20  Simon Josefsson  <jas@extundo.com>
73237
73238         * modules/version-etc-fsf: New file.
73239
73240 2005-01-20  Simon Josefsson  <jas@extundo.com>
73241
73242         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
73243         * lib/version-etc.c: Remove version_etc_copyright.
73244         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
73245         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
73246
73247 2005-01-20  Simon Josefsson  <jas@extundo.com>
73248
73249         * lib/base64.h (isbase64): Add.
73250
73251         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
73252         using a unsigned prototype, don't inline.
73253         (base64_decode): Use it.
73254
73255 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
73256
73257         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
73258         it.
73259
73260 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
73261
73262         * lib/save-cwd.c (save_cwd): Remove code to support the case
73263         where fchdir is missing or flaky.
73264
73265 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
73266
73267         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
73268
73269 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
73270
73271         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
73272         AC_LIBSOURCES now does this.
73273         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
73274         with new ullong_max module.
73275
73276 2005-01-19  Bruno Haible  <bruno@clisp.org>
73277
73278         * modules/sh-quote: New file.
73279         * MODULES.html.sh (Executing programs): Add sh-quote.
73280
73281 2005-01-19  Bruno Haible  <bruno@clisp.org>
73282
73283         * lib/sh-quote.h: New file, from GNU gettext.
73284         * lib/sh-quote.c: New file, from GNU gettext.
73285
73286 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
73287
73288         Merge from coreutils.
73289         * m4/ullong_max.m4: New file.
73290         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
73291         (gl_MACROS): Assume localeconv exists.
73292
73293 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
73294
73295         Merge changes from coreutils, as described below in several
73296         changelogs dated today.
73297
73298         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
73299         (O_DIRECTORY): Remove; not needed here, since "." must be
73300         a directory.  All uses removed.
73301         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
73302         universal on Suns, and we also need to test for IRIX.
73303         Revamp code to use 'if' rather than '#if'.
73304         Avoid unnecessary comparison of cwd->desc to 0.
73305
73306         * lib/utimens.c (futimens): Robustify the previous patch, by checking
73307         for known valid error numbers rather than observed invalid ones.
73308
73309 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
73310
73311         * modules/ullong_max: New file.
73312
73313         * modules/chdir-long, modules/openat: New files.
73314         * modules/save-cwd (Depends-on): Depend on chdir-long.
73315         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
73316
73317 2005-01-18  Jim Meyering  <jim@meyering.net>
73318
73319         Merge from coreutils.
73320         * m4/chdir-long.m4, m4/openat.m4: New files.
73321         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
73322         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
73323         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
73324         is sane and DOES follow symlinks.  Besides, testing 20 different
73325         systems found no broken chown implementations.
73326         Prompted by a change in rsync's copy of this macro.
73327         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
73328
73329         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
73330
73331         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
73332         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
73333         NULL-means-set-to-current-time semantics.
73334         Remove temporary file immediately, rather than waiting
73335         for configure's at-exit trap code to do it.
73336
73337 2005-01-18  Jim Meyering  <jim@meyering.net>
73338
73339         * lib/version-etc.c (version_etc_copyright): Update copyright date.
73340
73341         * lib/utimens.c (futimens): Account for the fact that futimes
73342         can also fail with errno == ENOSYS or errno == ENOENT.
73343         Patch from Dmitry V. Levin.
73344
73345         Change the name of the robust chdir function from chdir to chdir_long.
73346         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
73347         (restore_cwd): Use chdir_long, not chdir.
73348         * lib/chdir-long.c: Renamed from chdir.c.
73349         * lib/chdir-long.h: Renamed from chdir.h.
73350         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
73351         Hurd.
73352
73353 2005-01-18  Bruno Haible  <bruno@clisp.org>
73354
73355         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
73356         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
73357         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
73358         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
73359         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
73360         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
73361         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
73362         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
73363         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
73364         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
73365         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
73366         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
73367         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
73368         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
73369         Use an all-permissive copyright notice, recommended by RMS.
73370
73371 2005-01-18  Bob Proulx  <bob@proulx.com>
73372
73373         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
73374         simplify offsetof() macro construct to avoid compile failure with
73375         native HP-UX 11.0 ANSI C compiler.
73376
73377 2005-01-17  Bruno Haible  <bruno@clisp.org>
73378
73379         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
73380         redundant because stpncpy.m4 takes care of it.
73381
73382 2005-01-17  Bruno Haible  <bruno@clisp.org>
73383
73384         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
73385
73386 2005-01-17  Bruno Haible  <bruno@clisp.org>
73387
73388         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
73389         used.
73390
73391 2005-01-17  Bruno Haible  <bruno@clisp.org>
73392
73393         * lib/fwriteerror.h (fwriteerror): Change specification to include
73394         fclose.
73395         * lib/fwriteerror.c: Include <stdbool.h>.
73396         (fwriteerror): At the end, close the file stream. Record whether
73397         stdout was already closed.
73398
73399 2005-01-17  Bruno Haible  <bruno@clisp.org>
73400
73401         * lib/execute.c (environ): Declare if needed.
73402         * lib/pipe.c (environ): Likewise.
73403         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
73404
73405 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
73406
73407         * modules/argp: Depend on vsnprintf
73408
73409 2005-01-10  Jim Meyering  <jim@meyering.net>
73410
73411         * modules/closeout (Depends-on): Add atexit.
73412
73413 2005-01-06  Bruno Haible  <bruno@clisp.org>
73414
73415         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
73416
73417 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
73418
73419         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
73420         definitions to be after all include files, to avoid collisions.
73421         Problem reported by Bob Proulx.
73422
73423 2005-01-04  Jim Meyering  <jim@meyering.net>
73424
73425         Changes imported from coreutils.
73426         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
73427         as the mkstemp template, use a temporary directory and an
73428         8.3-friendly template to avoid trouble on systems like DJGPP.
73429         Reported by Juan M. Guerrero via Stepan Kasal.
73430         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
73431         close. Remove the temporary directory right away, rather than waiting
73432         for configure's at-exit trap code to do it.
73433         Suggestion from Stepan Kasal.
73434
73435 2005-01-01  Simon Josefsson  <jas@extundo.com>
73436
73437         * gnulib-tool: Print #include directives when --import'ing.
73438
73439 2004-12-28  Simon Josefsson  <jas@extundo.com>
73440
73441         * tests/test-base64.c: Include required header files.  Remove
73442         unused variables.
73443
73444 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
73445
73446         * modules/error (Depends-on): Remove gettext.
73447
73448 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
73449
73450         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
73451         not needed.  This removes a dependency on the gettext module.
73452         [defined _LIBC]: Do not include <libintl.h>; not needed.
73453
73454 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
73455
73456         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
73457         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
73458
73459 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
73460
73461         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
73462         HAVE_DECL_STRTOLD.
73463
73464 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
73465
73466         * modules/getdate (Depends-on): Remove alloca-opt.
73467
73468 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
73469
73470         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
73471
73472 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
73473
73474         * lib/argp-parse.c: Include <stddef.h>.
73475         (alignof, alignto): New macros.
73476         (parser_init): Don't assume that void * is aligned sufficiently
73477         for struct option.
73478
73479         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
73480         need to extend the stack.
73481         (YYINITDEPTH): New macro, so that the initial stack isn't overly
73482         large.
73483
73484 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
73485
73486         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
73487
73488 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
73489
73490         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
73491         (2004-10-24) change.  Apparently this was a false alarm.
73492
73493         * modules/getdate: Depend on alloca-opt, not alloca.
73494
73495 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
73496
73497         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
73498         Remove now-obsolete comment about AIX.
73499         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
73500         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
73501         (YYMAXDEPTH): New macro.
73502
73503 2004-12-18  Simon Josefsson  <jas@extundo.com>
73504
73505         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
73506
73507 2004-12-18  Bruno Haible  <bruno@clisp.org>
73508
73509         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
73510
73511 2004-12-18  Bruno Haible  <bruno@clisp.org>
73512
73513         * lib/fatal-signal.c (fatal_signals): Make non-const.
73514         (init_fatal_signals): New function.
73515         (uninstall_handlers, install_handlers): Ignore signals that were set to
73516         SIG_IGN.
73517         (at_fatal_signal): Call init_fatal_signals.
73518         (init_fatal_signal_set): Likewise. Ignore signals that were set to
73519         SIG_IGN.
73520         Reported by Paul Eggert.
73521
73522 2004-12-18  Bruno Haible  <bruno@clisp.org>
73523
73524         * doc/alloca.texi: New file.
73525         * doc/alloca-opt.texi: New file.
73526
73527 2004-12-17  Jim Meyering  <jim@meyering.net>
73528
73529         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
73530         Otherwise, install-sh could exit with improper exit status when
73531         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
73532
73533 2004-12-16  Simon Josefsson  <jas@extundo.com>
73534
73535         * tests/test-base64.c: Add license.
73536
73537 2004-12-15  Stepan Kasal  <address@hidden>
73538
73539         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
73540
73541 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
73542
73543         * modules/getcwd (Files): Add m4/d-ino.m4.
73544         Suggested by Mark D. Baushke.
73545
73546 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
73547
73548         * lib/getdate.y (textint): New member "negative".
73549         (time_zone_hhmm): New function.
73550         Expect 14 shift-reduce conflicts, not 13.
73551         (o_colon_minutes): New rule.
73552         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
73553         (yylex): Set the "negative" member of signed numbers.
73554
73555 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
73556
73557         * doc/getdate.texi (Time of day items, Time zone items):
73558         Describe new formats +00:00, UTC+00:00.
73559
73560 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
73561
73562         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
73563         spurious "-l"s.  Problem reported by Stepan Kasal.
73564
73565 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
73566
73567         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
73568         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
73569
73570 2004-12-04  Simon Josefsson  <jas@extundo.com>
73571
73572         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
73573         Vandoorselaere <yoann@prelude-ids.org>.
73574
73575 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
73576
73577         Changes imported from coreutils.
73578         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
73579         exist.
73580         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
73581
73582 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
73583
73584         Changes imported from coreutils.
73585         * lib/hard-locale.c: Assume <locale.h> exists.
73586         Include "strdup.h".
73587         (GLIBC_VERSION): New macro.
73588         (hard_locale): Assume setlocale exists.
73589         Rewrite to avoid #ifdef.
73590         Use strdup rather than malloc + strcpy.
73591         * lib/human.c: Assume <locale.h> exists.
73592         (human_readable): Assume localeconv exists.
73593
73594 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
73595
73596         * modules/hard-locale (Depends-on): Add strdup.
73597
73598 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
73599
73600         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
73601         convert T2, not T.  (Imported from libc.)
73602
73603 2004-11-30  Simon Josefsson  <jas@extundo.com>
73604
73605         * modules/restrict (License): Change to LGPL.
73606
73607 2004-11-30  Simon Josefsson  <jas@extundo.com>
73608
73609         * m4/restrict.m4: Add copyright and copying conditions.
73610
73611 2004-11-30  Simon Josefsson  <jas@extundo.com>
73612
73613         * m4/base64.m4: New file.
73614
73615 2004-11-30  Simon Josefsson  <jas@extundo.com>
73616
73617         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
73618         base64.
73619
73620         * tests/test-base64.c: New file.
73621
73622         * modules/base64: New file.
73623
73624 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
73625
73626         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
73627         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
73628
73629         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
73630
73631 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
73632
73633         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
73634         (__getcwd.c): Don't restore errno; glibc doesn't.
73635         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
73636         first, falling back to our code only if its results look suspicious.
73637         Ensure that the resulting buffer is only as large as necessary.
73638
73639         * lib/readutmp.c: Include readutmp.h first.
73640         Include <errno.h>, since readutmp.h no longer does that.
73641         * lib/readutmp.h: Don't include <errno.h>,
73642         <sys/param.h>, <time.h>; not needed to establish interface.
73643         (errno): Remove decl.
73644         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
73645         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
73646         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
73647
73648 2004-11-28  Simon Josefsson  <jas@extundo.com>
73649
73650         * lib/base64.h, base64.c: New file.
73651
73652 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
73653
73654         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
73655
73656 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
73657
73658         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
73659         (Depends-on): Remove pathmax, same.  Add mempcpy.
73660         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
73661         (Makefile.am): Append getcwd.h to lib_SOURCES.
73662         (Include): Add getcwd.h.
73663         (Maintainer): Change from Jim Meyering to "all, glibc",
73664         since getdate now uses intended-for-glibc code.
73665         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
73666         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
73667
73668 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
73669
73670         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
73671         HP's ANSI C compiler.
73672         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
73673         Declaring int functions causes warnings on some modern systems and
73674         shouldn't be needed to compile on ancient ones.
73675         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
73676         defined.
73677
73678         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
73679         with the following changes.
73680         (__set_errno): Parenthesize properly.
73681         Include <stdbool.h>.
73682         (MIN, MAX, MATCHING_INO): New macros.
73683         (__getcwd): Define with prototype, not K&R form.
73684         Use heuristics to allocate default buffer on stack if possible.
73685         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
73686         behavior, and to avoid the PATH_MAX limit when computing
73687         ../../../../...
73688         Use MATCHING_INO to compare inode number to file.
73689         Check for arithmetic overflow in size calculations.
73690         Fix bug in reallocation of dot array that caused getcwd to fail
73691         on directories nested deeper than 75.
73692         Be more careful about saving errno on error.
73693         Do not use realloc; use only free+malloc, as this is a bit
73694         more flexible and avoids a needless copy operation.
73695         Do not inspect st_dev and st_ino for symbolic links; POSIX
73696         doesn't specify the latter.
73697         Check for closedir errors.
73698         Avoid needless casts.
73699         Use "#ifdef weak_alias" around weak_alias, to be like other
73700         glibc code.
73701         The following changes to getcwd.c have effect only when used in
73702         gnulib; they have no effect inside glibc proper.
73703         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
73704         as alloca isn't used.
73705         (alloca, __alloca): Likewise.
73706         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
73707         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
73708         unconditionally, as gnulib assumes C89 or better.
73709         Do not include <sys/param.h>.
73710         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
73711         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
73712         better.
73713         (NULL) [!defined NULL]: Remove; we assume C89 or better.
73714         Include <dirent.h> in a way that is compatible with modern Autoconf.
73715         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
73716         New macros, if not already defined.
73717         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
73718         Use "_LIBC", not "defined _LIBC", for consistency.
73719         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
73720         a mempcpy module.
73721         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
73722         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
73723         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
73724         credit only to Jim Meyering and adjust the copyright dates.
73725         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
73726         <stdlib.h>, <unistd.h>, "pathmax.h".
73727         Instead, include "xgetcwd.h" (first) and "getcwd.h".
73728         (INITIAL_BUFFER_SIZE): Remove.
73729         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
73730
73731 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
73732
73733         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
73734         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
73735         Use the _ONCE methods, for efficiency.
73736         Check for fcntl.h.  In test program, include <errno.h>
73737         and <fcntl.h> if available.  Remove old K&R cruft from
73738         test program.  Check for common errors in GNU/Linux,
73739         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
73740         don't do AC_LIBOBJ, as that's getcwd.m4's job.
73741         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
73742         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
73743         name accordingly.
73744         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
73745         accommodate new getcwd.c.
73746         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
73747         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
73748         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
73749         that's all we need now.
73750
73751 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
73752
73753         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
73754         argp-parse.c depends on getopt internals, that means we should
73755         always use our getopt, to be on the safe side.
73756         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
73757         order not to spoil the result of an eventual previous invocation
73758         of gl_GETOPT_SUBSTITUTE.
73759
73760 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
73761
73762         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
73763         redefinition warnings. To avoid them, include the defines
73764         in `#if !defined __need_getopt ... #endif'. The only place
73765         where __getopt_argv_const is used is in definitions
73766         of getopt_long and getopt_long_only below, which are as well
73767         protected by `#ifndef __need_getopt'.
73768         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
73769         __need_getopt after including <stdio.h> and <unistd.h> These
73770         headers might have defined it.
73771
73772 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
73773
73774         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
73775
73776 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
73777
73778         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
73779         (futimens): New function, which uses futimes if available.
73780         (futimens, utimens): Support timespec==NULL, with same semantics
73781         as utime and utimens.
73782         * lib/utimens.h (futimens): New decl.
73783
73784 2004-11-23  Jim Meyering  <jim@meyering.net>
73785
73786         * lib/getopt_.h: Remove trailing blanks.
73787
73788 2004-11-23  Jim Meyering  <jim@meyering.net>
73789
73790         * lib/__fpending.c: Add comment.
73791
73792 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
73793
73794         * modules/canonicalize (Depends-on): Add xreadlink.
73795         Problem reported by James Youngman.
73796
73797 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
73798
73799         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
73800         New macros.
73801         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
73802         optopt): Use them instead of invoking ## directly; otherwise, the
73803         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
73804
73805 2004-11-19  Bruno Haible  <bruno@clisp.org>
73806
73807         * lib/strtok_r.c: Move comments from here...
73808         * lib/strtok_r.h: ... to here.
73809
73810 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
73811
73812         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
73813         implementations that mishandle size_t overflow.
73814
73815 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
73816
73817         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
73818         might fail.  Problem reported by Yoann Vandoorselaere.
73819         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
73820         implementations that mishandle size_t overflow.
73821
73822 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
73823
73824         * modules/canon-host (Depends-on): Add strdup.
73825
73826 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
73827
73828         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
73829
73830 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
73831
73832         * lib/canon-host.c: Include "strdup.h".
73833         (canon_host): Use getaddrinfo if available, so that IPv6 works.
73834         Use strdup instead of malloc/strcpy to duplicate strings.
73835
73836         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
73837         (human_space_before_unit): New constant.
73838         * lib/human.c (human_readable): Support it.
73839
73840         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
73841         (xgetcwd): Set errno correctly when failing.
73842         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
73843         the failure is actually due to a PATH_MAX problem.
73844
73845         Further getopt changes to make it more likely that glibc will
73846         buy the changes back.
73847         * lib/getopt.c (POSIXLY_CORRECT): New constant.
73848         (getopt): Use it, so to preserve glibc semantic
73849         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
73850         when compiling for libc.
73851         * lib/getopt_.h (__getopt_argv_const): Bring it back.
73852         (getopt_long, getopt_long_only): Use it.
73853
73854         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
73855         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
73856         (getopt): Argv is now char * const *, as per standard.
73857         (_getopt_internal_r, _getopt_internal): Argv is now char **,
73858         not char *__getopt_argv_const *.
73859         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
73860         _getopt_long_only_r): Likewise.
73861         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
73862         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
73863         _getopt_long_r, _getopt_long_only_r): Likewise.
73864         * lib/getopt_.h (__getopt_argv_const): Remove.
73865         (getopt): Argv is now char * const *, as per standard.
73866
73867         * lib/getdate.y (tORDINAL): New token.
73868         (day, relunit): Allow it for relative times.
73869         (relative_time_table): Use tORDINAL for ordinals.
73870
73871 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
73872
73873         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
73874         Document that "second" isn't allowed as an ordinal number.
73875
73876 2004-11-16  Jim Meyering  <jim@meyering.net>
73877
73878         * modules/closeout (Depends-on): Add fpending.
73879
73880 2004-11-15  Jim Meyering  <jim@meyering.net>
73881
73882         * lib/closeout.c: Include "__fpending.h" once again.
73883         Include <stdbool.h>.
73884         (close_stdout): Don't fail just because stdout was closed initially,
73885         since some programs don't write to stdout in the normal course of
73886         operation (other than --version and --help), and we don't want this
73887         function to make e.g. `touch file >&-' fail.
73888         But do fail if it was closed and someone has tried to write to it.
73889         E.g., `printf foo >&-' must fail.
73890
73891 2004-11-13  Jim Meyering  <jim@meyering.net>
73892
73893         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
73894
73895 2004-11-12  Simon Josefsson  <jas@extundo.com>
73896
73897         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
73898         small doc fix is still pending.
73899
73900 2004-11-11  Simon Josefsson  <jas@extundo.com>
73901
73902         * modules/strtok_r: New file.
73903
73904         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
73905         strtok_r.
73906
73907 2004-11-11  Simon Josefsson  <jas@extundo.com>
73908
73909         * m4/strtok_r.m4: New file.
73910
73911         * m4/getopt.m4: Replace opterr.
73912
73913 2004-11-11  Simon Josefsson  <jas@extundo.com>
73914
73915         * lib/strtok_r.h, strtok_r.c: New file.
73916
73917 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
73918
73919         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
73920         of replacing opterr, getopt, etc.  This should handle the
73921         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
73922
73923 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
73924
73925         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
73926         we can stop lying to compilers about the constness of argv when we
73927         are compiled outside glibc.
73928         (getopt, getopt_long, getopt_long_only): Use it.
73929         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
73930         _getopt_internal, getopt): Likewise.
73931         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
73932         _getopt_long_only_r): Likewise.
73933         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
73934         _getopt_long_r, _getopt_long_only_r): Likewise.
73935
73936         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
73937         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
73938         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
73939         the other external symbols.
73940         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
73941         declaration, since the above renaming now works around collisions.
73942
73943 2004-11-11  Jim Meyering  <jim@meyering.net>
73944
73945         * lib/linebreak.c: Remove trailing blanks.
73946         * lib/alloca_.h: Likewise.
73947         * lib/acosl.c: Likewise.
73948         * lib/euidaccess.c: Likewise.
73949         * lib/allocsa.h: Likewise.
73950
73951 2004-11-10  Simon Josefsson  <jas@extundo.com>
73952
73953         * m4/getaddrinfo.m4: New file.
73954
73955 2004-11-10  Simon Josefsson  <jas@extundo.com>
73956
73957         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
73958
73959 2004-11-10  Simon Josefsson  <jas@extundo.com>
73960
73961         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
73962         getaddrinfo.
73963
73964         * modules/getaddrinfo: New file.
73965
73966 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
73967
73968         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
73969
73970 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
73971
73972         * lib/mktime.c (SHR): New macro, which is a portable
73973         substitute for >> that should work even on Crays.
73974         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
73975         Problem reported by Mark D. Baushke in
73976         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
73977         * lib/getdate.y (SHR): Likewise.
73978         (tm_diff): Use it.
73979         * lib/strftime.c (SHR): Likewise.
73980         (tm_diff): Use it.
73981         * lib/quotearg.c (struct quoting_options): Use unsigned int for
73982         quote_these_too, so that right shifts are well defined.  All uses
73983         changed.
73984
73985 2004-11-10  Jim Meyering  <jim@meyering.net>
73986
73987         Ensure that no close failure goes unreported.
73988         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
73989         return early when it seems there's nothing to flush.
73990         Don't include __fpending.h.
73991
73992 2004-11-10  Jim Meyering  <jim@meyering.net>
73993
73994         * modules/closeout (Depends-on): Remove fpending.
73995
73996 2004-11-10  Jim Meyering  <jim@meyering.net>
73997
73998         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
73999
74000 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
74001
74002         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
74003         gl_FUNC_STRFTIME.
74004         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
74005         and AC_REQUIRE when possible, to avoid duplicate checks.
74006         Check for <wchar.h>.
74007
74008 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
74009
74010         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
74011
74012 2004-11-09  Bruno Haible  <bruno@clisp.org>
74013
74014         * m4/sockpfaf.m4: New file.
74015
74016 2004-11-05  Bruno Haible  <bruno@clisp.org>
74017
74018         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
74019         Reported by Mark D. Baushke <mdb@cvshome.org>.
74020
74021 2004-11-04  Bruno Haible  <bruno@clisp.org>
74022
74023         2004-09-11  Bruno Haible  <bruno@clisp.org>
74024                 * allocsa.valgrind: New file.
74025         2004-02-06  Bruno Haible  <bruno@clisp.org>
74026                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
74027                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
74028                 Reported by Christopher Seip <chris.seip@hp.com>.
74029
74030 2004-11-04  Bruno Haible  <bruno@clisp.org>
74031
74032         * modules/allocsa (Files): Add lib/allocsa.valgrind.
74033         (Makefile.am): Distribute it.
74034
74035 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
74036
74037         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
74038         with errno == ERANGE if the buffer is too small.
74039         Problem reported by Mark D. Baushke.
74040
74041 2004-11-03  Albert Chin  <china@thewrittenword.com>
74042             Paul Eggert  <eggert@cs.ucla.edu>
74043
74044         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
74045         equivalent, substitute $ac_type for equivalent type rather than
74046         blindly using uint32_t *always* which won't work if uint32_t is not
74047         available.  Define _UINT32_T to work around typedef of uint32_t if
74048         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
74049         2.5.1.
74050
74051 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
74052
74053         * m4/jm-macros.m4: Sync from coreutils.
74054         (gl_MACROS): Check for mbrlen, for pathchk.
74055         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
74056
74057 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
74058
74059         * lib/xreadlink.c (MAXSIZE): New macro.
74060         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
74061         size does not exceed MAXSIZE.  Avoid cast.
74062         As suggested by Mark D. Baushke in
74063         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
74064         if readlink fails with buffer size just under MAXSIZE, try again
74065         with MAXSIZE.
74066
74067 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
74068
74069         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
74070
74071 2004-11-02  Derek R. Price  <derek@ximbiot.com>
74072         and  Paul Eggert  <eggert@cs.ucla.edu>
74073
74074         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
74075         (get_date): Overparenthesize to avoid GCC warning.
74076
74077 2004-11-02  Bruno Haible  <bruno@clisp.org>
74078
74079         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
74080         returns void.
74081
74082 2004-11-02  Bruno Haible  <bruno@clisp.org>
74083
74084         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
74085         function returns void.
74086
74087 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
74088
74089         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
74090         fflush_unlocked, flockfile, funlockfile, funlockfile,
74091         fputs_unlocked, putc_unlocked.
74092
74093 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
74094
74095         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
74096         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
74097         already declared.
74098
74099 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
74100
74101         * modules/getdate (Files): Add doc/getdate.texi.
74102         (Depends-on): Add setenv, xalloc.
74103
74104 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
74105
74106         * lib/getdate.y: Add support for TZ="foo" within a date string.
74107         Fix some bugs near time_t boundaries.  Reject dates with
74108         out-of-range components, e.g., "Sept 31".
74109         Include <stdlib.h>, "setenv.h", "xalloc.h".
74110         (ISDIGIT_LOCALE): Remove; unused.
74111         Note that the TZ and time functions used here are not reentrant.
74112         (mktime_ok, get_tz): New functions.
74113         (TZBUFSIZE): New constant.
74114         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
74115         This requires that we sometimes generate our own TZ="XXX..." setting.
74116
74117 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
74118
74119         * doc/getdate.texi: New file, from coreutils with modifications for
74120         the new TZ parsing.
74121
74122 2004-10-27  Derek R. Price  <derek@ximbiot.com>
74123
74124         * lib/mktime.c (not_equal_tm): Remove redundant check.
74125
74126 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
74127
74128         * modules/regex (lib_SOURCES): Add regex.c.
74129         Reported by James Youngman in
74130         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
74131
74132 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
74133
74134         * lib/getdate.y: Use Bison 1.875 features, and some minor
74135         code cleanups.  This change does not affect semantics.
74136         Don't include <stdlib.h>; no longer needed.
74137         Don't include unlocked-io.h; only the "#if TEST" code uses
74138         stdio, and performance isn't crucial there.
74139         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
74140         Bison 1.875 features as described below.
74141         All uses of "PC." replaced by "pc->".
74142         (YYSTYPE): Add a forward declaration.
74143         (yylex, yyerror): Use full prototypes in forward decls.
74144         Use "%pure-parser" rather than obsolescent "%pure_parser".
74145         Use %parse-param and %lex-param instead of obsolescent
74146         YYPARSE_PARAM and YYLEX_PARAM.
74147         (meridian_table, month_and_day_table, time_units_table,
74148         relative_time_table, time_zone_table, military_table,
74149         lookup_zone, lookup_word, get_date):
74150         Use NULL instead of 0 where appropriate.
74151         (to_hour): Avoid abort (), to avoid a dependency on
74152         stdlib.h.
74153         (yyerror, yylex): Now accepts parser_control * arg.
74154         (main) [TEST]: Use '\0' rather than 0 for char.
74155
74156 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
74157
74158         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
74159
74160 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
74161
74162         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
74163         It's now the caller's responsibility to handle the case where
74164         !HAVE_GETPAGESIZE && !defined getpagesize.
74165
74166         * lib/mktime.c (leapyear): Arg is long int, not int.
74167
74168 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
74169
74170         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
74171
74172 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
74173
74174         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
74175         missing.  Problem reported by James Youngman.
74176
74177 2004-10-16  Simon Josefsson  <jas@extundo.com>
74178
74179         * gnulib-tool: Fix comments.  Fix parse problem.
74180         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
74181
74182 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
74183
74184         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
74185         implementation of getopt_long.  Problem reported by Alexander Taler in:
74186         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
74187
74188 2004-10-15  Bruno Haible  <bruno@clisp.org>
74189
74190         * gnulib-tool: Untabify. Initialize supplied_libname.
74191         (func_usage): More homogenous output.
74192         (func_modules_transitive_closure, func_modules_to_filelist,
74193         func_emit_lib_Makefile_am): New functions.
74194         (func_import): New function, extracted from big case statement. Use
74195         func_get_license, func_modules_transitive_closure,
74196         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
74197         opt_lgpl. Don't use test -a, as it's not portable.
74198         (func_create_testdir): Use func_modules_transitive_closure,
74199         func_modules_to_filelist, func_emit_lib_Makefile_am.
74200
74201 2004-10-15  Bruno Haible  <bruno@clisp.org>
74202
74203         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
74204
74205 2004-10-15  Bruno Haible  <bruno@clisp.org>
74206
74207         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
74208         the portions belonging to each module.
74209         Suggested by Derek Robert Price <derek@ximbiot.com>.
74210
74211 2004-10-12  Simon Josefsson  <jas@extundo.com>
74212
74213         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
74214         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
74215         to real functions.
74216
74217 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
74218
74219         * modules/vsnprintf: New file.
74220
74221 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
74222
74223         * m4/vsnprintf.m4: New file.
74224
74225 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
74226
74227         * lib/vsnprintf.h: New file.
74228         * lib/vsnprintf.c: New file.
74229
74230 2004-10-11  Bruno Haible  <bruno@clisp.org>
74231
74232         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
74233         vsnprintf.
74234
74235 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
74236
74237         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
74238
74239 2004-10-07  Bruno Haible  <bruno@clisp.org>
74240
74241         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
74242         fits into the provided buffer.
74243
74244 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
74245
74246         * lib/diacrit.c, diacrit.h: Add GPL notice.
74247
74248         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
74249         notice.
74250         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
74251         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
74252         This avoids a potential constant-folding bug.
74253
74254 2004-10-05  Bruno Haible  <bruno@clisp.org>
74255
74256         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
74257         for the declaration of strsep.
74258
74259 2004-10-05  Bruno Haible  <bruno@clisp.org>
74260
74261         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
74262
74263 2004-10-04  Simon Josefsson  <jas@extundo.com>
74264
74265         * modules/memmem: New file.
74266         * tests/test-memmem.c: New file.
74267         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
74268
74269 2004-10-04  Simon Josefsson  <jas@extundo.com>
74270
74271         * m4/memmem.m4: New file.
74272
74273 2004-10-04  Simon Josefsson  <jas@extundo.com>
74274
74275         * lib/memmem.h: New file.
74276         * lib/memmem.c: New file, taken from glibc.
74277
74278 2004-10-04  Simon Josefsson  <jas@extundo.com>
74279
74280         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
74281         '#ifdef USE_UNLOCKED_IO'.
74282
74283 2004-10-04  Simon Josefsson  <jas@extundo.com>
74284
74285         * config/srclist.txt: Add memmem from glibc.
74286
74287 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
74288
74289         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
74290
74291         * modules/argmatch, modules/argp, modules/closeout, modules/error,
74292         modules/exclude, modules/getdate, modules/getline,
74293         modules/getndelim2, modules/getpass, modules/getpass-gnu,
74294         modules/getusershell, modules/linebuffer, modules/md5,
74295         modules/mountlist, modules/posixtm, modules/readtokens,
74296         modules/readutmp, modules/regex, modules/sha1,
74297         modules/version-etc, modules/yesno:
74298         Remove dependency on unlocked-io.
74299
74300 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
74301
74302         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
74303
74304         * m4/unlocked-io.m4: Add copyright notice.
74305         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
74306
74307 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
74308
74309         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
74310         * lib/xmalloc.c (xmemdup): Likewise.
74311         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
74312         XFREE): Remove these long-obsolescent macros.
74313         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
74314         * lib/xstrdup.c: Remove.
74315
74316         * lib/regex.c (re_comp): Cast gettext return value to char *,
74317         Problem reported by Martin Neitzel via Mark D. Baushke.
74318
74319 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
74320
74321         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
74322         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
74323         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
74324         regex.c, sha1.c, version-etc.c, yesno.c:
74325         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
74326         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
74327         the includer's responsibility.
74328
74329         Sync from coreutils.
74330
74331         * lib/modechange.c (mode_compile): Don't decrement a pointer that
74332         points to the start of a string, as the C Standard says the
74333         resulting behavior is undefined.
74334
74335         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
74336         simple -> simple_backups, numbered_existing ->
74337         numbered_existing_backups, numbered -> numbered_backups
74338         to avoid shadowing problems.  All uses changed.
74339         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
74340         * lib/backupfile.c (check_extension, numbered_backup):
74341         Rename locals to avoid shadowing 'basename'.
74342         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
74343         once.
74344
74345         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
74346         * lib/.cvsignore: Add getopt.h.
74347
74348 2004-10-04  Bruno Haible  <bruno@clisp.org>
74349
74350         * modules/README: New file.
74351         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
74352         not a module.
74353
74354 2004-10-02  Jim Meyering  <jim@meyering.net>
74355
74356         * lib/dirfd.h, getpagesize.h: Add copyright notice.
74357
74358 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
74359
74360         * modules/strsep: New file.
74361
74362 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
74363
74364         * m4/strsep.m4: New file.
74365
74366 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
74367
74368         * lib/strsep.h: New file.
74369         * lib/strsep.c: New file.
74370
74371 2004-10-01  Simon Josefsson  <jas@extundo.com>
74372
74373         * lib/snprintf.c (snprintf): Handle size==0.
74374
74375 2004-10-01  Simon Josefsson  <jas@extundo.com>
74376             Bruno Haible  <bruno@clisp.org>
74377
74378         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
74379         (snprintf): Declare 'args'.
74380
74381 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
74382
74383         * lib/snprintf.c: Remove comments as to why each header is needed.
74384
74385 2004-10-01  Bruno Haible  <bruno@clisp.org>
74386
74387         * MODULES.html.sh: Add strsep.
74388
74389 2004-09-30  Simon Josefsson  <jas@extundo.com>
74390
74391         * modules/snprintf: New file.
74392
74393 2004-09-30  Simon Josefsson  <jas@extundo.com>
74394
74395         * m4/snprintf.m4: New file.
74396
74397 2004-09-30  Simon Josefsson  <jas@extundo.com>
74398
74399         * lib/snprintf.h, lib/snprintf.c: New files.
74400
74401 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
74402
74403         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
74404         (hol_entry_help): Never translate an empty string.
74405         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
74406         * lib/argp.h (OPTION_NO_TRANS): New option.
74407
74408 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
74409
74410         * modules/argp (Maintainer): Replace Simon Josefsson
74411         by Sergey Poznyakoff.
74412
74413 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
74414
74415         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
74416         changes merged back into glibc.
74417
74418 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
74419
74420         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
74421
74422 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
74423
74424         * lib/xvasprintf.c: Include xalloc.h.
74425         (xvasprintf): Use xalloc_die, not xmalloc_die.
74426
74427 2004-09-29  Bruno Haible  <bruno@clisp.org>
74428
74429         * modules/alloca-opt: New file, derived from modules/alloca.
74430         * modules/allocsa: Depend on alloca-opt instead of alloca.
74431         * modules/setenv: Likewise.
74432         * modules/vasnprintf: Likewise.
74433         * MODULES.html.sh: Add alloca-opt.
74434
74435 2004-09-28  Simon Josefsson  <jas@extundo.com>
74436
74437         * gnulib-tool: New parameter --lgpl, to asseert that modules are
74438         LGPL, and to replace license template from GPL to LGPL.
74439
74440 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
74441
74442         * modules/dummy: Change license to LGPL.
74443
74444 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
74445
74446         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
74447
74448 2004-09-24  Simon Josefsson  <jas@extundo.com>
74449
74450         * modules/minmax (License): Change from GPL to LGPL.
74451
74452 2004-09-23  Simon Josefsson  <jas@extundo.com>
74453
74454         * gnulib-tool (--import): Typo.
74455
74456 2004-09-23  Simon Josefsson  <jas@extundo.com>
74457
74458         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
74459
74460 2004-09-22  Bruno Haible  <bruno@clisp.org>
74461
74462         * modules/*: Add 'License' field.
74463         * gnulib-tool: Accept --extract-license option.
74464         (func_get_license): New function.
74465
74466 2004-09-21  Bruno Haible  <bruno@clisp.org>
74467
74468         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
74469         Reported by Simon Josefsson.
74470
74471 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
74472
74473         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
74474         gl_AC_TYPE_LONG_LONG.
74475
74476 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
74477
74478         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
74479
74480 2004-09-18  Simon Josefsson  <jas@extundo.com>
74481         and  Paul Eggert  <eggert@cs.ucla.edu>
74482
74483         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
74484         calls with autoreconf.  Define GL_LIB.
74485
74486 2004-09-14  Karl Berry  <karl@gnu.org>
74487
74488         * config/srclist.txt: unsync setenv.c, sigh.
74489
74490 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
74491
74492         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
74493         Problem reported by Bruno Haible in:
74494         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
74495
74496 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
74497
74498         * config/srclist.txt: Comment out argp-pvh.c.
74499
74500 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
74501
74502         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
74503         in case some system header has #define'd it.  Problem reported by
74504         Soeren D. Schulze in
74505         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
74506
74507 2004-09-09  Karl Berry  <karl@gnu.org>
74508
74509         * regex.[ch]: delete from the root.  These were supposed to be
74510                 synced with emacs cvs, but this has not happened for about
74511                 a year, and anyway nothing else uses emacs regex.[ch].
74512                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
74513                 lib/regex[.ch] is untouched.
74514
74515 2004-09-09  Bruno Haible  <bruno@clisp.org>
74516
74517         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
74518
74519 2004-09-09  Bruno Haible  <bruno@clisp.org>
74520
74521         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
74522         modifications.
74523         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
74524
74525 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
74526
74527         * modules/xvasprintf: New file.
74528         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
74529
74530 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
74531
74532         * lib/xvasprintf.h: New file.
74533         * lib/xvasprintf.c: New file.
74534         * lib/xasprintf.c: New file.
74535
74536 2004-09-08  Bruno Haible  <bruno@clisp.org>
74537
74538         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
74539
74540 2004-09-08  Bruno Haible  <bruno@clisp.org>
74541
74542         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
74543         length is > INT_MAX.
74544         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
74545         more.
74546
74547 2004-09-08  Bruno Haible  <bruno@clisp.org>
74548
74549         * lib/stdint_.h: New file, taken from GNU clisp.
74550
74551 2004-09-08  Bruno Haible  <bruno@clisp.org>
74552             Oskar Liljeblad  <oskar@osk.mine.nu>
74553
74554         * modules/stdint: New file.
74555         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
74556
74557 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
74558
74559         Import from coreutils.
74560         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
74561         strings on unbounded length.  alloca's performance benefits aren't
74562         that important here.
74563         (V_STRDUP): Remove.
74564         (parse_with_separator): New function, with most of the internals
74565         of the old parse_user_spec.  Allow user to omit both user and group,
74566         for compatibility with FreeBSD.
74567         Clone only the user name, not the entire spec.
74568         Do not set *uid, *gid unless entirely successful.
74569         Avoid memory leak in some failing cases.
74570         Fix regression for USER.GROUP reported by Dmitry V. Levin in
74571         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
74572         (parse_user_spec): Rewrite to use parse_with_separator.
74573
74574 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
74575
74576         * modules/userspec: Don't depend on alloca.
74577
74578 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
74579
74580         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
74581
74582 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
74583
74584         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
74585         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
74586         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
74587
74588 2004-08-16  Simon Josefsson  <jas@extundo.com>
74589
74590         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
74591         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
74592         Add --dry-run for --import.
74593         Let user provided command line parameters override configure.ac
74594         settings.
74595
74596 2004-08-12  Simon Josefsson  <jas@extundo.com>
74597
74598         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
74599         as discussed with Paul Eggert in threads rooted at
74600         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
74601         and
74602         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
74603         Before, the test was empty, and relied on ELIDE_CODE in source
74604         code.)
74605         (gl_PREREQ_GETOPT): New macro.
74606         (gl_GETOPT): Use them.
74607
74608 2004-08-12  Simon Josefsson  <jas@extundo.com>
74609
74610         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
74611         * lib/getopt_.h: Renamed from getopt.h.
74612
74613 2004-08-12  Simon Josefsson  <jas@extundo.com>
74614
74615         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
74616         Change default library name from libfoo to libgnu.
74617         Now, if you have a configure.ac that says:
74618                 gl_SOURCE_BASE(gl)
74619                 gl_M4_BASE(gl/m4)
74620                 gl_MODULES(error getopt etcetera)
74621                 gl_INIT
74622         you can import all you need by running:
74623                 ../gnulib/gnulib-tool --import
74624
74625         * modules/getopt (Files): Rename getopt.h to getopt_.h.
74626         (Makefile.am): Rewrite, use logic from argz.
74627         (Include): Use <getopt.h> instead of "getopt.h".
74628
74629 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
74630
74631         * modules/argp (Files): Add m4/unlocked-io.m4.
74632         (Depends-on): Add extensions.
74633
74634 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
74635
74636         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
74637         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
74638         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
74639         Check for program_invocation_name, program_invocation_short_name,
74640         flockfile, funlockfile, features.h, _getopt_long_only_r.
74641
74642 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
74643
74644         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
74645         its complicated substitute.
74646         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
74647         and program_invocation_name.
74648         (__argp_basename) [!_LIBC]: Remove; the only use was
74649         replaced by its body.
74650         (__argp_short_program_name): Change condition from
74651         !defined __argp_short_program_name to
74652         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
74653         to match argp-namefrob.h.
74654         (__argp_failure): Don't assume strerror_r returns char *.
74655         * lib/argp-parse.c (N_): Define unconditionally.
74656         (argp_default_options): Fill out initializers with 0 to avoid
74657         gcc warnings.
74658
74659 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
74660
74661         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
74662         getopt1.c.
74663
74664 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
74665
74666         Merge from coreutils.
74667
74668         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
74669
74670         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
74671         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
74672
74673 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
74674
74675         Merge from coreutils.
74676
74677         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
74678         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
74679         for Reliant Unix 5.43.
74680
74681         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
74682         (union fooround): Use uintmax_t, not long int.
74683         The rest is a merge from libc:
74684         [defined _LIBC]: Include <shlib-compat.h>.
74685         (_obstack) [defined _LIBC]: Remove after 2.3.4.
74686
74687         * lib/settime.c (settime): Recode to avoid warning with
74688         Sun Forte C 6U2.
74689
74690         * lib/strverscmp.c: Convert to UTF-8.
74691
74692 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
74693
74694         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
74695         m4/uintmax_t.m4.
74696
74697 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
74698
74699         * modules/xalloc-die: New file.
74700         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
74701
74702         * modules/md5 (Files): Add m4/uint32_t.m4.
74703         * modules/sha1: Renamed from modules/sha.
74704         (Files):
74705         Rename lib/sha.h to lib/sha1.h.
74706         Rename lib/sha.c to lib/sha1.c.
74707         Rename m4/sha.m4 to m4/sha1.m4.
74708         (lib_SOURCES): Likewise.
74709         (configure.ac): Rename gl_SHA to gl_SHA1.
74710         (Include): sha.h -> sha1.h.
74711
74712 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
74713
74714         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
74715         * m4/sha1.m4: Renamed from sha.m4.
74716         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
74717
74718 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
74719
74720         * lib/obstack.h (obstack_empty_p):
74721         Don't assume that chunk->contents is suitably aligned.
74722         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
74723         Likewise. Problem reported by Benno in
74724         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
74725
74726         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
74727         readable.  This could be improved further but it'd take some work.
74728
74729 2004-08-08  Simon Josefsson  <jas@extundo.com>
74730
74731         * modules/xgethostname (Depends-on): Remove exit and error (not
74732         used).
74733
74734         * modules/getpass-gnu: Add getpass.h.
74735         (Depends-on): Add stdbool.
74736         * modules/getpass: Add getpass.h.
74737
74738 2004-08-08  Simon Josefsson  <jas@extundo.com>
74739
74740         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
74741         Check getpass declaration.
74742
74743 2004-08-08  Simon Josefsson  <jas@extundo.com>
74744
74745         * lib/xgethostname.c: Don't include error.h (not used).
74746
74747         * lib/getpass.h: Add.
74748         * lib/getpass.c: Include getpass.h first.
74749
74750 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
74751
74752         * lib/xalloc-die.c: New file.
74753         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
74754         All uses removed.
74755         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
74756         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
74757         xalloc-die.c.
74758         (_, N_, xalloc_die): Move to xalloc-die.c.
74759         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
74760         so that we needn't mess with xalloc_msg_memory_exhausted.
74761
74762         * lib/sha1.h: Renamed from sha.h.
74763         (SHA1_H): Renamed from _SHA_H.
74764         (sha1_ctx): Renamed from sha_ctx.
74765         (sha1_init_ctx): Renamed from sha_init_ctx.
74766         (sha1_process_block): Renamed from sha_process_block.
74767         (sha1_process_bytes): Renamed from sha_process_bytes.
74768         (sha1_finish_ctx): Renamed from sha_finish_ctx.
74769         (sha1_read_ctx): Renamed from sha_read_ctx.
74770         (sha1_stream): Renamed from sha_stream.
74771         (sha1_buffer): Renamed from sha_buffer.
74772         * lib/sha1.c: Likewise; renamed from sha.c.
74773         Do not include <sys/types.h>.
74774         Include <stddef.h> rather than <stdlib.h>.
74775
74776 2004-08-08  Bruno Haible  <bruno@clisp.org>
74777
74778         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
74779         FILESYSTEM_PREFIX_LEN.
74780         * lib/progreloc.c: Likewise.
74781         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
74782
74783 2004-08-06  Simon Josefsson  <jas@extundo.com>
74784
74785         * modules/progname (Depends-on): Don't depend on stdbool.
74786
74787 2004-08-06  Simon Josefsson  <jas@extundo.com>
74788
74789         * modules/getsubopt: New file.
74790         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
74791         getsubopt.
74792
74793 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
74794
74795         More merge from coreutils.
74796
74797         * m4/utimens.m4, m4/utimecmp.m4: New files.
74798         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
74799         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
74800         prereq.m4, sha.m4: Import changes from coreutils.
74801
74802 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
74803
74804         More merge from coreutils.
74805         * modules/raise, modules/readtokens0, modules/utimens:
74806         * modules/utimecmp, module/xnanosleep: New files.
74807         * modules/strftime: Add lib/strftime.h.
74808         Change include from <time.h> to "strftime.h".
74809         * modules/yesno: Add lib/yesno.h.
74810         * modules/backupfile: Remove lib/addext.c.
74811         * modules/euidaccess: Add stat-macros.h.
74812         * modules/canonicalize, modules/euidaccess,
74813         modules/filemode, modules/lchown, modules/makepath,
74814         modules/rmdir, modules/stat: Likewise.
74815
74816 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
74817
74818         Merge from tar.
74819         * lib/argp-help.c (make_hol, hol_append): Don't assume that
74820         SIZE_MAX is a valid preprocessor constant.
74821         (__argp_basename): Change from "#ifndef _LIBC"
74822         to "#ifndef __argp_short_program_name", so that
74823         we don't compile these functions for tar.
74824
74825         More merges from coreutils.
74826         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
74827         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
74828         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
74829         * lib/addext.c: Remove; no longer needed.
74830         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
74831         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
74832         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
74833         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
74834         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
74835         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
74836         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
74837         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
74838         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
74839         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
74840         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
74841         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
74842         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
74843         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
74844         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
74845         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
74846         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
74847         Import changes from coreutils.
74848
74849 2004-08-05  Simon Josefsson  <jas@extundo.com>
74850
74851         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
74852
74853 2004-08-05  Simon Josefsson  <jas@extundo.com>
74854
74855         * m4/getsubopt.m4: New file.
74856
74857 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
74858
74859         Merge from coreutils.
74860
74861         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
74862         * m4/getcwd-path-max.m4: New files.
74863
74864         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
74865         FILESYSTEM_PREFIX_LEN ->
74866         FILE_SYSTEM_PREFIX_LEN.
74867         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
74868         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
74869         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
74870         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
74871
74872         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
74873         prerequisite modules now handle the DOS stuff.
74874         Don't check for unistd.h.
74875
74876 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
74877
74878         Merge from coreutils.
74879
74880         * lib/.gdb-history: Remove; this doesn't belong here.
74881
74882         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
74883         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
74884         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
74885         * lib/getcwd.c: New files.
74886
74887         * lib/dirname.h: Include <stdbool.h>.
74888         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
74889         for consistency with POSIX terminology.  All uses changed.
74890         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
74891         (strip_trailing_slashes): Use bool for booleans.
74892         * lib/stripslash.c (strip_trailing_slashes): Likewise.
74893
74894         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
74895         sometimes returns a positive errno value even when it succeeds.
74896         (print_errno_message) [!LIBC]: Fall back on strerror if
74897         __strerror_r fails.
74898
74899         * lib/path-concat.c (mempcpy): Don't define if a system header defines
74900         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
74901         (longest_relative_suffix): New function.
74902         (path_concat): Use it.  Assume first argument is not NULL.
74903         Port to DOS.  Omit redundant separators.
74904         Report an error instead of returning NULL.
74905         Use mempcpy instead of memcpy.
74906         (xpath_concat): Remove: not declared or used.
74907
74908         * lib/same.h: Include <stdbool.h>
74909         (same_name): Return bool, not int.
74910         * lib/same.c (same_name): Likewise.
74911         (errno): Don't declare; we assume C89 or better now.
74912
74913         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
74914         if not already defined.
74915
74916         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
74917         * lib/dup-safer.c (errno): Likewise.
74918
74919 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
74920
74921         Merge from coreutils.
74922         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
74923         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
74924         * modules/path-concat: Don't depend on strdup.
74925
74926 2004-08-03  Simon Josefsson  <jas@extundo.com>
74927
74928         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
74929         * lib/progname.h: Don't include stdbool.h.
74930
74931 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
74932
74933         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
74934         * MODULES.html.sh (func_all_modules): Remove fatal.
74935
74936 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
74937
74938         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
74939
74940 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
74941
74942         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
74943         working.
74944
74945 2004-08-02  Simon Josefsson  <jas@extundo.com>
74946
74947         * lib/getsubopt.h: New file, with comments from Bruno Haible.
74948         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
74949         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
74950
74951 2004-08-01  Simon Josefsson  <jas@extundo.com>
74952
74953         * lib/xgetdomainname.c: Include stdlib.h, for free().
74954
74955 2004-07-19  Bruno Haible  <bruno@clisp.org>
74956
74957         * MODULES.html.sh (func_all_modules): Add dummy.
74958
74959 2004-07-16  Simon Josefsson  <jas@extundo.com>
74960
74961         * modules/dummy: New file.
74962
74963 2004-07-16  Simon Josefsson  <jas@extundo.com>
74964
74965         * lib/dummy.c: New file.
74966
74967 2004-07-16  Bruno Haible  <bruno@clisp.org>
74968
74969         * lib/backupfile.h: Add extern "C" for C++.
74970         * lib/closeout.h: Likewise.
74971         * lib/copy-file.h: Likewise.
74972         * lib/findprog.h: Likewise.
74973         * lib/full-write.h: Likewise.
74974         * lib/pathname.h: Likewise.
74975         * lib/progname.h: Likewise.
74976         * lib/stpcpy.h: Likewise.
74977         * lib/stpncpy.h: Likewise.
74978         * lib/strcase.h: Likewise.
74979         * lib/strstr.h: Likewise.
74980         * lib/xalloc.h: Likewise.
74981
74982         * lib/mbswidth.h: Add extern "C" for C++.
74983         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
74984
74985 2004-07-13  Robert Millan  <robertmh@gnu.org>
74986
74987         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
74988
74989 2004-07-09  Simon Josefsson  <jas@extundo.com>
74990
74991         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
74992         failed without this.)
74993
74994 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
74995
74996         * modules/chown (Files): Add lib/fchown-stub.c, since
74997         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
74998
74999 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
75000
75001         * lib/fchown-stub.c: New file.
75002
75003 2004-06-24  Jim Meyering  <jim@meyering.net>
75004
75005         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
75006
75007 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
75008
75009         * modules/argz: Omit "#include".
75010
75011         * MODULES.html.sh (func_all_modules): Add calloc, to match
75012         2004-06-01 addition of calloc module.
75013
75014 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
75015
75016         * m4/argz.m4: New file, which is autoupdated from libtool.
75017
75018 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
75019
75020         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
75021         libtool.
75022
75023 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
75024
75025         * config/srclist-update: Don't insist on "USA." before the
75026         close-comment, as libtool omits the period and puts the */ on a
75027         separate line.
75028         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
75029         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
75030
75031 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
75032
75033         * modules/argz: New file.
75034         * MODULES.html.sh (func_all_modules): Add argz.
75035
75036 2004-06-12  Jim Meyering  <jim@meyering.net>
75037         and  Paul Eggert  <eggert@cs.ucla.edu>
75038
75039         * modules/hash (Files): Add lib/xalloc.h.
75040         * modules/pipe (Depends-on): Add wait-process.
75041         * modules/stat (Depends-on): Add xalloc.
75042         * modules/userspec (Files): Add lib/userspec.h.
75043         * modules/xstrto
75044
75045         Upgrade from gettext-0.13.
75046         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
75047         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
75048         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
75049
75050 2004-06-10  Jim Meyering  <jim@meyering.net>
75051
75052         * lib/calloc.c: New file.
75053
75054 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
75055
75056         * lib/getdate.y (yylex): Allow space between sign and number.
75057         Problem reported by Dan Jacobson.
75058
75059 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
75060
75061         Merge from coreutils CVS.
75062
75063         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
75064         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
75065         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
75066         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
75067         xstrtol.m4: Fix copyright date and/or serial number.
75068
75069         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
75070         See if we need an fchown replacement.
75071         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
75072         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
75073         and use the replacement function if we detect either defect.
75074
75075         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
75076         gl_UTIMECMP.
75077
75078 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
75079         and  Jim Meyering  <jim@meyering.net>
75080
75081         Merge from coreutils CVS.
75082
75083         * lib/stat-macros.h: New file, with contents from file-type.h
75084         and coreutils' system.h.
75085         * lib/file-type.c: Include "stat-macros.h".
75086         * lib/file-type.h (file_type): Move all macro definitions to new file,
75087         stat-macros.h.
75088
75089         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
75090         Wrap old code with this conditional.
75091         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
75092         function that does not dereference symlinks.
75093         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
75094
75095         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
75096         dependency problems.
75097         (xreadlink): Accept new arg SIZE, for efficiency.
75098         All decls and uses changed.
75099         * lib/xreadlink.h: Include <stddef.h>, for size_t.
75100
75101         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
75102         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
75103
75104         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
75105         sysexits.h.
75106
75107 2004-06-01  Jim Meyering  <jim@meyering.net>
75108
75109         * m4/calloc.m4: New file.
75110
75111 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
75112
75113         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
75114         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
75115         Also, fix a typo in a diagnostic.
75116
75117 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
75118
75119         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
75120         or AC_FUNC_REALLOC.
75121
75122 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
75123
75124         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
75125         macros to be defined.
75126         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
75127         the allocator returns NULL because the requested size is zero.
75128
75129 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
75130
75131         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
75132         var.  Add comment explaining why libc still defines it.  This
75133         merges the following patch from glibc:
75134         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
75135
75136 2004-05-20  Andreas Schwab  <schwab@suse.de>
75137
75138         * m4/free.m4: Replace free if it not known to work, not the other
75139         way round.
75140
75141 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
75142
75143         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
75144         present in glibc since revision 1.1 of this file.
75145         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
75146         obstack_alignment_mask, obstack_alloc, obstack_base,
75147         obstack_blank, obstack_blank_fast, obstack_chunk_size,
75148         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
75149         obstack_grow0, obstack_init, obstack_int_grow,
75150         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
75151         obstack_next_free, obstack_object_size, obstack_ptr_grow,
75152         obstack_ptr_grow_fast, obstack_room): Remove declarations of
75153         nonexistent functions.
75154
75155 2004-05-18  Karl Berry  <karl@gnu.org>
75156
75157         * config/srclist.txt: break link for vasnprintf.c.
75158
75159 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
75160
75161         Port obstack to the AS/400, where pointers are 16 bytes wide and
75162         you cannot cast an integer to a valid pointer.  This patch is
75163         currently waiting to be integrated into glibc; see
75164         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
75165
75166         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
75167         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
75168         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
75169         (struct obstack): temp member is now a union of a pointer and
75170         an integer, instead of an integer.  All integer uses changed.
75171         This does not affect the physical layout of struct obstack,
75172         except on hosts (like the AS/400) where the size or alignment of
75173         void * is greater than that of ptrdiff_t.
75174         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
75175         __STDC__)]: Store temporary in pointer member of union, not
75176         integer member.
75177         * lib/obstack.c: Include <stddef.h>, for offsetof.
75178         (struct fooalign): Remove; it doesn't need a name.
75179         (union fooround): Change double to long double, and add void *.
75180         (DEFAULT_ALIGNMENT): Use offsetof to compute.
75181         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
75182         not a macro.  Hence the values are always int; so remove all
75183         casts-to-int in uses.
75184
75185 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
75186
75187         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
75188         we can get this patch merged into glibc.
75189
75190 2004-05-17  Derek R. Price  <derek@ximbiot.com>
75191             Paul Eggert  <eggert@cs.ucla.edu>
75192
75193         * m4/argp: Depend on alloca.
75194
75195 2004-05-17  Derek R. Price  <derek@ximbiot.com>
75196             Paul Eggert  <eggert@cs.ucla.edu>
75197
75198         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
75199         freecoding.
75200
75201 2004-05-17  Bruno Haible  <bruno@clisp.org>
75202
75203         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
75204         precision that consists of a '.' followed by an empty digit string.
75205         Patch by Tor Lillqvist <tml@iki.fi>.
75206
75207 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
75208
75209         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
75210         for backward compatibility with older code.  We need our own
75211         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
75212         it under some other name, and our alloca.h will define it.
75213
75214 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
75215             Derek Price  <derek@ximbiot.com>
75216
75217         * lib/alloca.c: Include <alloca.h>, to get our interface.
75218         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
75219         include <alloca.h> first.  Use C89 prototype for alloca; this
75220         requires including <stddef.h> for size_t.  Use extern "C" if C++.
75221         Use #elif for simplicity, since we can assume C89 now.
75222         Don't try to source the system alloca.h since it will not be found
75223         and to prevent recursively including its replacement.
75224         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
75225         * lib/regex.c: Likewise.
75226
75227 2004-05-16  Derek Price  <derek@ximbiot.com>
75228             Paul Eggert  <eggert@cs.ucla.edu>
75229
75230         getline cleanup.  This changes the getndelim2 API: both order of
75231         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
75232         no delimiter).
75233
75234         * lib/getline.c: Don't include stddef.h or stdio.h, since our
75235         interface does that.
75236         (getline): Always use getdelim, so that we don't have two
75237         copies of this code.
75238         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
75239         if available.
75240         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
75241         (GETNDELIM2_MAXIMUM): New macro.
75242         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
75243         instead of the old practice of delim2==0.  All callers changed.
75244         Return -1 on overflow, instead of returning junk.
75245         Do not set *linesize unless allocation succeeds.
75246         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
75247         that we include sys/types.h.
75248         * lib/getnline.h: Likewise.
75249         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
75250         (getndelim2): Reorder arguments.
75251         * lib/getnline.c (getnline, getndelim):
75252         Don't discard the NMAX argument.
75253         (getnline): Invoke getndelim, to avoid code duplication.
75254         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
75255         of (size_t) -1 by callers of the getnline family.
75256
75257 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
75258
75259         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
75260         Check for gettimeofday.
75261         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
75262         Check for settimeofday, stime.
75263
75264 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
75265
75266         * lib/nanosleep.c (suspended): Change its type from int to
75267         sig_atomic_t volatile.
75268         (first_call): Make it private to rpl_nanosleep, and have it
75269         be zero initially as that's a bit faster.
75270         (my_usleep): Round up fractional times instead of truncating them,
75271         as this is the usual meaning for 'sleep'.
75272
75273         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
75274         doesn't work.
75275         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
75276         (ENOSYS): Define if not defined.
75277         (settime): Fall back on stime if it exists and settimeofday fails.
75278         But don't bother with fallbacks if a method fails with errno == EPERM.
75279
75280 2004-05-11  Jim Meyering  <jim@meyering.net>
75281
75282         Prior to this change, the save_cwd caller required read access to the
75283         current directory on most systems (ones with the fchdir function).
75284
75285         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
75286         fails, try write-only, and finally, resort to using xgetcwd.
75287
75288 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
75289
75290         * lib/obstack.c, obstack.h: Import changes from libc.
75291
75292 2004-04-28  Bruno Haible  <bruno@clisp.org>
75293
75294         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
75295         also implicitly appends .exe to executables.
75296         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
75297         accepts Windows pathnames.
75298         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
75299         Treat Cygwin like Windows, since it now accepts Windows pathnames.
75300         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
75301         Treat Cygwin like Windows, since it now accepts Windows pathnames.
75302         Reported by Derek Robert Price <derek@ximbiot.com>.
75303
75304 2004-04-21  Karl Berry  <karl@gnu.org>
75305
75306         * config/srclist.txt (localcharset.c): break sync.
75307
75308 2004-04-20  Paul Eggert  <eggert@twinsun.com>
75309
75310         * m4/host-os.m4: Add a copyright notice.
75311
75312 2004-04-20  Jim Meyering  <jim@meyering.net>
75313
75314         Change UTILS_ to gl_ in AC_DEFINE'd names.
75315         Change utils_- and jm_-prefixed variables, too.
75316         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
75317         UTILS_FUNC_MKDIR_TRAILING_SLASH.
75318         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
75319
75320         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
75321         Don't emit trailing blanks.
75322         Also rename jm_-prefixed variables to have gl_ prefix.
75323
75324         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
75325         Also rename jm_-prefixed variables to have gl_ prefix.
75326
75327         * m4/jm-macros.m4: Reflect the renamings.
75328         * m4/prereq.m4: Likewise.
75329
75330 2004-04-20  Jim Meyering  <jim@meyering.net>
75331
75332         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
75333         memory.
75334
75335 2004-04-20  Jim Meyering  <jim@meyering.net>
75336             Bruno Haible  <bruno@clisp.org>
75337
75338         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
75339         memory when realloc fails.
75340
75341 2004-04-19  Jim Meyering  <jim@meyering.net>
75342
75343         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
75344         now that readutmp.c may call `free (0)'.
75345
75346 2004-04-19  Bruno Haible  <bruno@clisp.org>
75347
75348         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
75349         * m4/inttypes_h.m4: Likewise.
75350         * m4/stdint_h.m4: Likewise.
75351         * m4/intmax_t.m4: Likewise.
75352         * m4/uintmax_t.m4: Likewise.
75353
75354 2004-04-18  Jim Meyering  <jim@meyering.net>
75355
75356         * m4/prereq.m4: Don't forbid jm_ prefix.
75357
75358         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
75359         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
75360         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
75361         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
75362         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
75363         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
75364         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
75365         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
75366         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
75367         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
75368         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
75369         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
75370         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
75371         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
75372         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
75373         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
75374         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
75375         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
75376         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
75377
75378 2004-04-18  Jim Meyering  <jim@meyering.net>
75379
75380         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
75381         failure, don't leak memory and do call END_UTMP_ENT.
75382
75383 2004-04-16  Jim Meyering  <jim@meyering.net>
75384
75385         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
75386         coreutils' stat program.
75387         (gl_PREREQ): Don't require jm_PREREQ_STAT.
75388
75389 2004-04-11  Paul Eggert  <eggert@twinsun.com>
75390
75391         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
75392         C89.
75393         (CHAR_BIT): Remove, since we assume C89.
75394         Include <stdint.h> if available, as per current Autoconf CVS advice.
75395
75396 2004-03-31  Jim Meyering  <jim@meyering.net>
75397
75398         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
75399         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
75400         * m4/xalloc.m4: Likewise.
75401
75402 2004-03-30  Paul Eggert  <eggert@twinsun.com>
75403
75404         Merge from coreutils.
75405
75406         * m4/inttostr.m4: New file.
75407         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
75408         Require AM_STDBOOL_H and gl_TIMESPEC instead.
75409         Require gl_CLOCK_TIME.
75410         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
75411
75412 2004-03-30  Paul Eggert  <eggert@twinsun.com>
75413
75414         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
75415         not bool, to be more consistent with Unix conventions.
75416         Suggested by Bruno Haible.
75417
75418         Merge from coreutils.
75419
75420         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
75421         * lib/umaxtostr.c: New files.
75422
75423         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
75424         the usual <time.h> dance.
75425         (get_date): Change signature to support fractional time stamps.
75426         All callers changed.
75427         * lib/getdate.y: Include "getdate.h" first, as we can now
75428         assume C89 and don't need to worry about 'const'.
75429         Similarly, include "unlocked-io.h" near start, not in middle.
75430         Include <limits.h>.
75431         (textint.value): Use long int rather than int.
75432         (textint.digits): Use size_t rather than int.
75433         (BILLION, LOG10_BILLION): New constants.
75434         (parser_control): New member rel_ns.  Members day_ordinal,
75435         time_zone, month, day, hour, minutes, rel_year, rel_month,
75436         rel_day, rel_hour, rel_minutes, rel_seconds
75437         are now long int, not int.  Member seconds is now struct timespec,
75438         not int.  New member timespec_seen.  Members dates_seen, days_seen,
75439         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
75440         not int.
75441         (%union.intval): Now long int, not int.
75442         New member timespec.
75443         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
75444         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
75445         (spec): Now is a timespec or an item list.
75446         (timespec, items): New nonterminals.
75447         (time, rel, relunit, number, get_date):
75448         Add support for fractional seconds.
75449         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
75450         (gmtime, localtime, mktime): Remove decls; not needed with C89.
75451         (to_hour): First arg is now long int, not int.
75452         (to_year): Returns long int, not int.
75453         Don't treat year -70 like 70.
75454         (tm_diff): Returns long int, not int.
75455         (lookup_word): Use bool instead of int when appropriate.
75456         (yylex): Use size_t for count, not int.
75457         Detect overflow when parsing large integer constants.
75458         Add support for fractions.
75459         (get_date): Make pointers 'const' if possible.
75460         Use more-portable code to detect integer overflow.
75461         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
75462         Don't use ctime; it's not reliable if the year has >4 digits.
75463
75464         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
75465         This is for compatibility with BSD.
75466
75467         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
75468         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
75469         From coreutils' system.h.
75470
75471         * lib/userspec.c: Don't include "posixver.h".
75472         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
75473         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
75474         compatible extension.  Simplify code by removing a boolean int
75475         that was always nonzero if a string was nonnull.
75476
75477 2004-03-30  Jim Meyering  <jim@meyering.net>
75478
75479         Merge from coreutils.
75480
75481         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
75482         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
75483         on some systems one must include <grp.h> before it.
75484         Reported by Christian Krackowizer.
75485
75486 2004-03-30  Jim Meyering  <jim@meyering.net>
75487
75488         Merge from coreutils.
75489
75490         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
75491
75492         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
75493         an empty input stream.
75494
75495         * lib/readtokens.c: Include <stdbool.h>.
75496         (readtoken): Use `size_t' rather than int/long.
75497         All callers adjusted.
75498         Use `bool' rather than `int' where appropriate.
75499         Use memset rather than an explicit loop.
75500         Use x2nrealloc rather than xrealloc.
75501         Allow the use of `\0' as a delimiter.
75502         (readtokens): Likewise.
75503         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
75504
75505 2004-03-30  Jim Meyering  <jim@meyering.net>
75506
75507         * m4/realloc.m4: Remove file, since now it does no more than
75508         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
75509         the `configure.ac' section of module/realloc.
75510         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
75511
75512 2004-03-30  Bruno Haible  <bruno@clisp.org>
75513
75514         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
75515         nonnull.
75516
75517 2004-03-29  Paul Eggert  <eggert@twinsun.com>
75518
75519         Merge changes to getloadavg.c from coreutils and Emacs.
75520
75521         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
75522         Define to an expression, not to the empty string.
75523         Include cloexec.h and xalloc.h.
75524         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
75525         Use set_cloexec_flag rather than rolling our own.
75526         * lib/cloexec.c, lib/cloexec.h: New files.
75527
75528 2004-03-29  Paul Eggert  <eggert@twinsun.com>
75529
75530         * m4/cloexec.m4: New file.
75531
75532 2004-03-18  Paul Eggert  <eggert@twinsun.com>
75533
75534         * lib/getopt.h: Sync with libc CVS.
75535
75536 2004-03-18  Paul Eggert  <eggert@twinsun.com>
75537             Bruno Haible  <bruno@clisp.org>
75538
75539         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
75540         mbswidth.
75541
75542 2004-03-18  Paul Eggert  <eggert@twinsun.com>
75543             Bruno Haible  <bruno@clisp.org>
75544
75545         * lib/mbswidth.h: Include <wchar.h> only if
75546         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
75547         <wchar.h>.
75548         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
75549
75550 2004-03-09  Paul Eggert  <eggert@twinsun.com>
75551
75552         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
75553         Sync with libc CVS.
75554         * lib/getopt_int.h: New file, also synced from libc.
75555
75556 2004-03-09  Paul Eggert  <eggert@twinsun.com>
75557
75558         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
75559         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
75560         Bring back getopt.c, getopt.h, getopt1.c.
75561
75562 2004-03-07  Paul Eggert  <eggert@twinsun.com>
75563
75564         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
75565         All uses changed.  Check for sa_sigaction member; this fixes
75566         a bug first reported by Jason Andrade in
75567         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
75568
75569 2004-03-07  Paul Eggert  <eggert@twinsun.com>
75570
75571         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
75572         '#if' expressions.  Unlike the code it replaces, it does not
75573         depend on (defined _SC_PAGESIZE).  However, it does depend on
75574         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
75575         first reported by Jason Andrade in
75576         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
75577
75578 2004-02-25  Simon Josefsson  <jas@extundo.com>
75579
75580         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
75581
75582 2004-02-25  Simon Josefsson  <jas@extundo.com>
75583
75584         * lib/strdup.h: New file.
75585         * lib/strdup.c: Include it.
75586         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
75587         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
75588
75589 2004-02-23  Karl Berry  <karl@gnu.org>
75590
75591         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
75592         (from fencepost.gnu.org:/gd/gnuorg).
75593
75594 2004-02-23  Karl Berry  <karl@gnu.org>
75595
75596         * config/srclistvars.sh (GNUORG) [karl]: redefine.
75597         * config/srclist.txt: add maintain/standards documents.
75598
75599 2004-02-18  Bruno Haible  <bruno@clisp.org>
75600
75601         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
75602         Reported by Derek Robert Price <derek@ximbiot.com>.
75603
75604 2004-02-16  Karl Berry  <karl@gnu.org>
75605
75606         * config/mkinstalldirs, install-sh: update from automake.
75607
75608 2004-02-06  Karl Berry  <karl@gnu.org>
75609
75610         * m4/po.m4: update from gettext 0.14.1.
75611
75612 2004-02-06  Karl Berry  <karl@gnu.org>
75613
75614         * lib/config.charset: update from gettext 0.14.1.
75615
75616 2004-02-05  Paul Eggert  <eggert@twinsun.com>
75617
75618         Add comments and code, prompted by suggestions from Bruno Haible
75619         for sh-quote.
75620         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
75621         describing the enum quoting_style values.
75622         * lib/quotearg.c (quotearg_alloc): New function.
75623         (quotearg_buffer_restyled): Treat lone { and } as special.
75624         Treat = as special.  Work around bug with older shells
75625         that "see" a '\' that is really the 2nd byte of a multibyte char.
75626         Quote empty string with shell_quoting_style.
75627
75628 2004-02-03  Bruno Haible  <bruno@clisp.org>
75629
75630         * m4/pipe.m4: New file, from GNU gettext.
75631
75632 2004-02-03  Bruno Haible  <bruno@clisp.org>
75633
75634         * lib/pipe.h: New file, from GNU gettext.
75635         * lib/pipe.c: New file, from GNU gettext.
75636
75637 2004-01-27  Bruno Haible  <bruno@clisp.org>
75638
75639         * m4/execute.m4: New file, from GNU gettext.
75640
75641 2004-01-27  Bruno Haible  <bruno@clisp.org>
75642
75643         * lib/execute.h: New file, from GNU gettext.
75644         * lib/execute.c: New file, from GNU gettext.
75645         * lib/w32spawn.h: New file, from GNU gettext.
75646
75647 2004-01-24  Paul Eggert  <eggert@twinsun.com>
75648
75649         Merge from diffutils.
75650
75651         * lib/file-type.c (file_type): Add typed memory objects.
75652         * lib/file-type.h (S_TYPEISTMO): New macro.
75653
75654         * lib/c-stack.h (c_stack_action): Remove argv argument.
75655         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
75656         (die): Don't calculate message unless segv_action returns.
75657         (get_stack_location, min_address_from_argv, max_address_from_argv,
75658         volatile stack_base, volatile_stack_size): Remove.
75659         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
75660         that every segmentation violation is a stack overflow.  (Ouch!)
75661         See Debian bug 136249 (still outstanding) for more info about why
75662         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
75663
75664 2004-01-24  Paul Eggert  <eggert@twinsun.com>
75665
75666         Exit-status fix from coreutils.
75667
75668         Use exit_failure consistently in place of EXIT_FAILURE,
75669         so that program exit statuses are consistent on failure.
75670
75671         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
75672         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
75673         * lib/argmatch.h: Comment fix to match the above.
75674         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
75675         Now a macro referring to exit_failure, instead of a separate
75676         variable.  Include "exitfail.h" to get it.
75677         * lib/xstrtol.h: Include "exitfail.h".
75678         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
75679
75680         * lib/long-options.c (parse_long_options): Use prototype
75681         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
75682         for clarity.
75683
75684 2004-01-21  Jim Meyering  <jim@meyering.net>
75685
75686         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
75687         so as not to conflict with a different-sized __mktime_internal
75688         function in GNU libc.
75689         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
75690         Problem building statically-linked `ls' reported by Michael Brunnbauer.
75691
75692 2004-01-20  Karl Berry  <karl@gnu.org>
75693
75694         * config/config.guess: update from config.
75695
75696         * config/srclistvars.sh: GNUWWWLICENSES for karl.
75697
75698 2004-01-20  Bruno Haible  <bruno@clisp.org>
75699
75700         Safer stack allocation.
75701         * lib/setenv.c: Include allocsa.h.
75702         (alloca): Remove fallback definition.
75703         (freea): Remove macro.
75704         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
75705         instead of freea.
75706
75707 2004-01-20  Bruno Haible  <bruno@clisp.org>
75708
75709         * m4/eealloc.m4: New file, from GNU gettext.
75710
75711 2004-01-20  Bruno Haible  <bruno@clisp.org>
75712
75713         * m4/allocsa.m4: New file, from GNU gettext.
75714
75715 2004-01-20  Bruno Haible  <bruno@clisp.org>
75716
75717         * lib/xallocsa.h: New file, from GNU gettext.
75718         * lib/xallocsa.c: New file, from GNU gettext.
75719
75720 2004-01-20  Bruno Haible  <bruno@clisp.org>
75721
75722         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
75723
75724 2004-01-20  Bruno Haible  <bruno@clisp.org>
75725
75726         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
75727         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
75728         specially.
75729
75730 2004-01-20  Bruno Haible  <bruno@clisp.org>
75731
75732         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
75733         patch.
75734
75735 2004-01-20  Bruno Haible  <bruno@clisp.org>
75736
75737         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
75738
75739 2004-01-20  Bruno Haible  <bruno@clisp.org>
75740
75741         * lib/eealloc.h: New file.
75742
75743 2004-01-20  Bruno Haible  <bruno@clisp.org>
75744
75745         * lib/binary-io.h: Avoid warnings on Cygwin.
75746
75747 2004-01-20  Bruno Haible  <bruno@clisp.org>
75748
75749         * lib/allocsa.h: New file, from GNU gettext.
75750         * lib/allocsa.c: New file, from GNU gettext.
75751
75752 2004-01-18  Karl Berry  <karl@gnu.org>
75753
75754         * doc/gpl.texi, doc/lgpl.texi: new files.
75755
75756 2004-01-18  Karl Berry  <karl@gnu.org>
75757
75758         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
75759         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
75760
75761 2004-01-15  Paul Eggert  <eggert@twinsun.com>
75762
75763         Merge from coreutils.
75764
75765         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
75766         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
75767         (gl_DEFAULT_POSIX2_VERSION): Move
75768         the documentation from 'configure' into 'config.hin',
75769         so that 'configure --help' isn't burdened by it and
75770         we don't have to worry about its formatting there.
75771         Reword the documentation so that it's more succinct
75772         and can be run together into a single paragraph.
75773         * m4/same.m4 (gl_SAME): Check for pathconf.
75774
75775 2004-01-15  Paul Eggert  <eggert@twinsun.com>
75776
75777         Merge from coreutils.
75778
75779         * lib/posixver.c: Include posixver.h.
75780
75781         * lib/same.c: Include <stdbool.h>, <limits.h>.
75782         (_POSIX_NAME_MAX): Define if not defined.
75783         (MIN): New macro.
75784         (same_name): If file names are silently truncated, report
75785         that the file names are the same if they are the same after
75786         the silent truncation.
75787
75788         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
75789         conversion function.
75790         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
75791         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
75792         longer needed.
75793
75794 2004-01-15  Jim Meyering  <jim@meyering.net>
75795
75796         Merge from coreutils.
75797
75798         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
75799         if no library is required.
75800         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
75801         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
75802         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
75803         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
75804         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
75805         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
75806         value, $ac_cv_search_crypt, if it's "none required".
75807         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
75808         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
75809         not gl_FUNC_GETLOADAVG.
75810         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
75811         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
75812
75813 2004-01-15  Jim Meyering  <jim@meyering.net>
75814
75815         Merge from coreutils.
75816
75817         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
75818         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
75819         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
75820
75821         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
75822         optional configure-time default.
75823
75824         * lib/version-etc.c (version_etc_copyright): Update copyright date.
75825
75826         * lib/xreadlink.c (xreadlink): Correct outdated comment.
75827
75828 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
75829
75830         Merge from coreutils.
75831
75832         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
75833         value, $ac_cv_search_nanosleep, if it's "none required".
75834
75835 2004-01-14  Paul Eggert  <eggert@twinsun.com>
75836
75837         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
75838         with like-named macro in fnmatch.c.
75839         (EXT): Use an internal constant instead.
75840
75841         Merge fnmatch patches from glibc.
75842         * lib/fnmatch.c (mbsinit): Remove define.
75843         Add libc_hidden_ver (__fnmatch, fnmatch).
75844         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
75845         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
75846
75847 2004-01-14  Karl Berry  <karl@gnu.org>
75848
75849         * config/install-sh: update from automake.
75850
75851 2004-01-13  Karl Berry  <karl@gnu.org>
75852
75853         * config/install-sh: update from automake.
75854
75855 2004-01-09  Karl Berry  <karl@gnu.org>
75856
75857         * config/install-sh: update from automake.
75858
75859 2004-01-05  Karl Berry  <karl@gnu.org>
75860
75861         * config/config.{sub,guess}: update from config.
75862
75863 2003-12-31  Karl Berry  <karl@gnu.org>
75864
75865         * config/depcomp: update from automake.
75866
75867 2003-12-14  Karl Berry  <karl@gnu.org>
75868
75869         * lib/config.charset: update from gettext-runtime.
75870
75871 2003-12-03  Paul Eggert  <eggert@twinsun.com>
75872
75873         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
75874         Bug reported by Alfred M. Szmidt.
75875
75876 2003-12-03  Bruno Haible  <bruno@clisp.org>
75877
75878         * m4/gettext.m4: Upgrade from gettext-0.13.
75879         * m4/po.m4: Upgrade from gettext-0.13.
75880         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
75881         * m4/intmax.m4: New file, from gettext-0.13.
75882         * m4/printf-posix.m4: New file, from gettext-0.13.
75883
75884 2003-11-29  Karl Berry  <karl@gnu.org>
75885
75886         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
75887
75888 2003-11-25  Paul Eggert  <eggert@twinsun.com>
75889             Bruno Haible  <bruno@clisp.org>
75890
75891         * lib/printf-parse.h: Don't include sys/types.h.
75892         (ARG_NONE): New macro.
75893         (char_directive): Change type of *arg_index fields to size_t.
75894         * lib/printf-parse.c: Don't include sys/types.h.
75895         (SSIZE_MAX): Remove macro.
75896         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
75897         Remove unnecessary overflow check.
75898         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
75899         fields.
75900
75901 2003-11-25  Bruno Haible  <bruno@clisp.org>
75902
75903         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
75904
75905 2003-11-25  Bruno Haible  <bruno@clisp.org>
75906
75907         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
75908         gt_TYPE_SSIZE_T.
75909
75910 2003-11-24  Paul Eggert  <eggert@twinsun.com>
75911
75912         * modules/alloca: Remove dependency on xalloc.
75913
75914 2003-11-24  Paul Eggert  <eggert@twinsun.com>
75915
75916         * lib/alloca.c: Remove dependency on xalloc module.
75917         (xalloc_die): Remove.
75918         (memory_full) [!defined emacs]: New macro.
75919         [!defined emacs]: Don't include xalloc.h.
75920         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
75921         address arithmetic overflows.  Change datatypes a bit to avoid
75922         unnecessary casts.
75923
75924 2003-11-22  Jim Meyering  <jim@meyering.net>
75925
75926         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
75927         s/size/size_t/.
75928
75929 2003-11-21  Karl Berry  <karl@gnu.org>
75930
75931         * config/config.{sub,guess}: update from config.
75932
75933 2003-11-18  Karl Berry  <karl@gnu.org>
75934
75935         * config/config.{sub,guess}: update from config.
75936
75937         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
75938
75939 2003-11-17  Paul Eggert  <eggert@twinsun.com>
75940
75941         * README: Mention that S+T cannot overflow if S is the size of
75942         an existing object and T is sufficiently small.
75943
75944 2003-11-17  Jim Meyering  <jim@meyering.net>
75945
75946         On systems without utime and without a utimes function capable of
75947         dealing with a NULL struct utimbuf* argument, this utime replacement
75948         could -- in unusual circumstances -- leak a file descriptor.
75949         * lib/utime.c: Include <unistd.h> and <errno.h>.
75950         (utime_null): Be sure to close `fd' and to preserve errno.
75951         Reported by Geoff Collyer via Arnold Robbins.
75952
75953 2003-11-17  Bruno Haible  <bruno@clisp.org>
75954
75955         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
75956         (Depends-on): Add xsize.
75957
75958 2003-11-17  Bruno Haible  <bruno@clisp.org>
75959
75960         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
75961
75962 2003-11-17  Bruno Haible  <bruno@clisp.org>
75963
75964         * lib/vasnprintf.c (alloca): Remove fallback definition.
75965         (freea): Remove definition.
75966         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
75967         Reported by Paul Eggert.
75968
75969 2003-11-16  Paul Eggert  <eggert@twinsun.com>
75970             Bruno Haible  <bruno@clisp.org>
75971
75972         Protect against address arithmetic overflow.
75973         * lib/printf-args.h: Include stddef.h.
75974         (arguments): Change type of field 'count' to size_t.
75975         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
75976         'unsigned int' where appropriate.
75977         * lib/printf-parse.h: Include sys/types.h.
75978         (char_directive): Change type of *arg_index fields to ssize_t.
75979         (char_directives): Change type of fields 'count', max_*_length to
75980         size_t.
75981         * lib/printf-parse.c: Include sys/types.h and xsize.h.
75982         (SSIZE_MAX): Define fallback value.
75983         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
75984         instead of 'int' where appropriate. Check a_allocated, d_allocated
75985         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
75986         * lib/vasnprintf.c: Include xsize.h.
75987         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
75988         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
75989         overflow. Avoid wraparound when converting a width or precision from
75990         decimal to binary.
75991
75992 2003-11-16  Bruno Haible  <bruno@clisp.org>
75993
75994         Update from GNU gettext.
75995         * lib/printf-parse.c: Generalize to it can be compiled for wide
75996         strings.
75997         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
75998         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
75999         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
76000         SNPRINTF): New macros.
76001         Don't include <alloca.h> if the file is used inside libintl.
76002         (local_wcslen): New function, for Solaris 2.5.1.
76003         (VASNPRINTF): Use it instead of wcslen.
76004
76005 2003-11-16  Bruno Haible  <bruno@clisp.org>
76006
76007         * lib/xsize.h (xmax): New function.
76008         (xsum, xsum3, xsum4): Declare as "pure" functions.
76009
76010 2003-11-12  Paul Eggert  <eggert@twinsun.com>
76011
76012         * modules/xalloc (Files): Undo latest change, since xalloc.h
76013         no longer needs SIZE_MAX or PTRDIFF_MAX.
76014
76015 2003-11-12  Paul Eggert  <eggert@twinsun.com>
76016
76017         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
76018         gl_PTRDIFF_MAX.
76019
76020 2003-11-12  Paul Eggert  <eggert@twinsun.com>
76021
76022         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
76023         "return", to pacify some unknown compiler.  Problem reported
76024         by Joerg Schilling.
76025
76026 2003-11-12  Paul Eggert  <eggert@twinsun.com>
76027
76028         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
76029         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
76030         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
76031         heuristic is just as accurate as far as we know, and it removes a
76032         dependency on size_max.m4 and ptrdiff_max.m4.
76033
76034 2003-11-11  Bruno Haible  <bruno@clisp.org>
76035
76036         * modules/xsize (Files): Add m4/size_max.m4.
76037         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
76038
76039 2003-11-11  Bruno Haible  <bruno@clisp.org>
76040
76041         * m4/size_max.m4: New file.
76042         * m4/ptrdiff_max.m4: New file.
76043         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
76044         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
76045         (gl_XALLOC): Invoke it.
76046
76047 2003-11-11  Bruno Haible  <bruno@clisp.org>
76048
76049         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
76050         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
76051         defined.
76052
76053 2003-11-10  Paul Eggert  <eggert@twinsun.com>
76054
76055         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
76056         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
76057         rejected some allocations of exactly SIZE_MAX - 2 bytes.
76058         From Bruno Haible.
76059         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
76060         not (size_t) -1, since it's defined here.
76061
76062 2003-11-09  Karl Berry  <karl@gnu.org>
76063
76064         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
76065
76066 2003-11-06  Paul Eggert  <eggert@twinsun.com>
76067
76068         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
76069         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
76070         Reject sizes of exactly SIZE_MAX bytes.
76071         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
76072         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
76073
76074 2003-11-05  Bruno Haible  <bruno@clisp.org>
76075
76076         * lib/xsize.h: Include limits.h, to avoid a possible collision with
76077         SIZE_MAX defined in <limits.h> on Solaris.
76078
76079 2003-11-04  Jim Meyering  <jim@meyering.net>
76080
76081         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
76082         variable names, rather than @VAR@.
76083         * modules/poll: Likewise.
76084
76085 2003-11-04  Bruno Haible  <bruno@clisp.org>
76086
76087         * modules/xsize: New file.
76088         * modules/linebreak: Depend on xsize.
76089         * MODULES.html.sh (func_all_modules): Add xsize.
76090
76091 2003-11-04  Bruno Haible  <bruno@clisp.org>
76092
76093         * m4/xsize.m4: New file.
76094
76095 2003-11-04  Bruno Haible  <bruno@clisp.org>
76096
76097         * lib/xsize.h: New file.
76098         * lib/linebreak.c: Include xsize.h.
76099         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
76100         argument for overflow.
76101         Suggested by Paul Eggert.
76102
76103 2003-11-03  Karl Berry  <karl@gnu.org>
76104
76105         * config/config.{guess,sub}: update from config.
76106
76107 2003-11-03  Jim Meyering  <jim@meyering.net>
76108
76109         * modules/userspec (lib_SOURCES): Add userspec.h.
76110         (Include): Add "userspec.h".
76111         Improve description.
76112
76113 2003-11-03  Jim Meyering  <jim@meyering.net>
76114
76115         * lib/userspec.c: Include "userspec.h".
76116         * lib/userspec.h: New file.
76117
76118 2003-11-03  Bruno Haible  <bruno@clisp.org>
76119
76120         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
76121
76122 2003-11-03  Bruno Haible  <bruno@clisp.org>
76123
76124         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
76125         available, to avoid (extremely rare) race condition.
76126         Suggested by Paul Eggert.
76127
76128 2003-11-02  Karl Berry  <karl@gnu.org>
76129
76130         * config/srclist.txt (vasprintf.c): sync broken, sigh.
76131
76132 2003-10-31  Paul Eggert  <eggert@twinsun.com>
76133
76134         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
76135         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
76136         (read_filesystem_list): Set and use me_type_malloced.
76137         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
76138         whatever the type happens to be), for brevity and consistency.
76139         Check for size calculation overflow on Alphas running OSF/1.
76140
76141 2003-10-31  Jim Meyering  <jim@meyering.net>
76142
76143         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
76144
76145         * lib/linebuffer.c: Include <string.h> for declaration of memset.
76146
76147 2003-10-30  Paul Eggert  <eggert@twinsun.com>
76148             Bruno Haible  <bruno@clisp.org>
76149
76150         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
76151         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
76152
76153 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
76154
76155         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
76156         netbsd*-gnu*.  Suggested by Robert Millan.
76157
76158 2003-10-29  Paul Eggert  <eggert@twinsun.com>
76159
76160         * modules/group-member: Depend on stdbool.
76161
76162 2003-10-29  Paul Eggert  <eggert@twinsun.com>
76163
76164         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
76165
76166 2003-10-29  Paul Eggert  <eggert@twinsun.com>
76167
76168         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
76169         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
76170         after the 'gnu' in these cases.  This fixes some bugs in the
76171         previous change, and is based on suggestions by Robert Millan.
76172
76173 2003-10-29  Paul Eggert  <eggert@twinsun.com>
76174
76175         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
76176         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
76177         no longer needed.
76178         * lib/quotearg.c (quotearg_n_options): Use it.
76179         * lib/group-member.c: Include <stdbool.h>.
76180         (free_group_info): Arg is now const *; don't free arg.
76181         (get_group_info): Now returns bool and accepts struct group_info *,
76182         rather than returning a malloc'ed struct group_info *.
76183         All uses changed.  Check for overflow in internal size calculation.
76184
76185         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
76186         rather than xmalloc/xrealloc.
76187         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
76188         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
76189         conformance bug: the old code used a pointer after freeing the
76190         storage that it addressed.
76191         * lib/hash.c (hash_initialize): Simplify the code by using
76192         xalloc_oversized rather than doing it by hand.
76193         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
76194         the buffer preserved.  Use free and xmalloc instead.
76195         * lib/quotearg.c (quotearg_n_options): Likewise.
76196         Use a simpler test for size overflow.  Don't use xalloc_oversized
76197         because unsigned int might be wider than size_t (!); this suggests
76198         that we should switch from unsigned int to size_t for slot numbers.
76199
76200 2003-10-28  Paul Eggert  <eggert@twinsun.com>
76201
76202         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
76203         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
76204         NetBSD kernels.  Requested by Richard Stallman.
76205
76206 2003-10-27  Paul Eggert  <eggert@twinsun.com>
76207
76208         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
76209         to allocate the returned structure.  Do not allocate a subarray,
76210         as x2nrealloc will do that.
76211         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
76212         instead of xnrealloc.
76213         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
76214
76215 2003-10-27  Bruno Haible  <bruno@clisp.org>
76216
76217         * lib/stdbool_.h: Better support for BeOS.
76218
76219 2003-10-26  Paul Eggert  <eggert@twinsun.com>
76220
76221         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
76222         now uses inline.
76223
76224 2003-10-26  Paul Eggert  <eggert@twinsun.com>
76225
76226         * lib/xalloc.h (xalloc_oversized): New static inline function, for
76227         callers that want to do their own size-overflow checking.  Include
76228         <stdbool.h>, since xalloc_oversized returns bool.
76229         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
76230         to use xalloc_oversized.
76231
76232         Add two functions x2realloc, x2nrealloc, for programs that grow
76233         arrays dynamically by doubling their sizes.
76234         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
76235         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
76236         New functions.
76237
76238         Port to C99 semantics for 'inline' of external functions.
76239         Bug reported by Bruno Haible.
76240         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
76241         with the old contents of xnmalloc.
76242         (xnmalloc, xmalloc): Use it.
76243         (xnrealloc_inline): New static inline function,
76244         with the old contents of xnrealloc.
76245         (xnrealloc, xrealloc): Use it.
76246
76247         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
76248         that.
76249
76250 2003-10-26  Karl Berry  <karl@gnu.org>
76251
76252         * config/srclist.txt (COPYING.DOC): no longer available from
76253         /gd/gnuorg; don't know where the ultimate source is.
76254
76255 2003-10-25  Paul Eggert  <eggert@twinsun.com>
76256
76257         Fix several address-calculation bugs in the hash modules,
76258         plus some minor code cleanup.
76259
76260         * lib/hash.h: Include <stdbool.h>, for bool.
76261         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
76262         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
76263         hash_get_n_entries, hash_get_max_bucket_length,
76264         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
76265         hash_rehash): Use size_t rather than unsigned.
76266         * lib/hash.c (struct hash_table, hash_get_n_buckets,
76267         hash_get_n_buckets_used, hash_get_n_entries,
76268         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
76269         hash_get_entries, hash_do_for_each, hash_string, is_prime,
76270         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
76271         Likewise.
76272         (SIZE_MAX): Define if not defined.
76273         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
76274         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
76275         hash_print):
76276         Use const * when possible.
76277         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
76278         (check_tuning): Fix bug: if tuning parameters were very close to
76279         0 or 1, rounding errors could have caused subscript violations.
76280         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
76281         (hash_initialize): Add 'fail:' label
76282         to free table and return NULL, and use it to simplify code.
76283         Use calloc rather than clearing the storage ourself.
76284         (hash_initialize, hash_rehash): Check for arithmetic overflow in
76285         buffer size calculations.
76286         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
76287         Include <stddef.h>, for size_t.
76288         * lib/hash-pjw.c (hash_pjw): Likewise.
76289         Switch to method described by Bruno Haible.
76290         Include <limits.h>, for CHAR_BIT.
76291         (SIZE_BITS): New macro.
76292
76293 2003-10-23  Paul Eggert  <eggert@twinsun.com>
76294
76295         * m4/getline.m4 (AM_FUNC_GETLINE):
76296         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
76297         hosts.  Problem reported by Derek Robert Price in
76298         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
76299         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
76300         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
76301
76302 2003-10-21  Paul Eggert  <eggert@twinsun.com>
76303
76304         * lib/getndelim2.c (getndelim2): When size calculation overflows,
76305         ceiling the allocation at NMAX bytes rather than silently
76306         discarding input bytes before NMAX is reached.  This makes
76307         a difference only if NMAX exceeds SIZE_MAX / 2.
76308
76309         * lib/obstack.c: Merge from glibc.
76310         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
76311         Add libc_hidden_def (_obstack_newchunk).
76312         (_obstack_free) [! defined _LIBC]: Remove.
76313         [defined _LIBC]: Make a strong alias from obstack_free, rather than
76314         a clone of the function body.
76315         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
76316         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
76317
76318         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
76319         glibc.
76320         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
76321         arg to memcpy.
76322
76323         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
76324         (obstack_ptr_grow_fast, obstack_int_grow_fast):
76325         Don't use lvalue casts, as GCC plans to remove support for them
76326         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
76327         was also present in the non-GCC version, indicating that this
76328         code had always been buggy and had never been widely used.
76329         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
76330         Use the fast variant of each macro, rather than copying the
76331         definiens of the fast variant; that way, we'll be more likely to
76332         catch future bugs in the fast variants.
76333
76334 2003-10-20  Bruno Haible  <bruno@clisp.org>
76335
76336         * modules/wait-process: New file.
76337         * MODULES.html.sh (func_all_modules): Add wait-process.
76338
76339 2003-10-20  Bruno Haible  <bruno@clisp.org>
76340
76341         * m4/wait-process.m4: New file.
76342
76343 2003-10-20  Bruno Haible  <bruno@clisp.org>
76344
76345         * lib/wait-process.h: New file, from GNU gettext.
76346         * lib/wait-process.c: New file, from GNU gettext.
76347
76348 2003-10-19  Jim Meyering  <jim@meyering.net>
76349
76350         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
76351         HPUX 10.20.
76352
76353 2003-10-18  Karl Berry  <karl@gnu.org>
76354
76355         * config/config.guess: update from config.
76356
76357 2003-10-16  Paul Eggert  <eggert@twinsun.com>
76358
76359         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
76360         (getgroups): First arg is int, not size_t.
76361         Don't let 'free' mangle errno.
76362
76363 2003-10-16  Paul Eggert  <eggert@twinsun.com>
76364
76365         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
76366
76367 2003-10-16  Karl Berry  <karl@gnu.org>
76368
76369         * config/config.{guess,sub}: update from config.
76370
76371 2003-10-16  Jim Meyering  <jim@meyering.net>
76372
76373         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
76374         memcpy.
76375
76376 2003-10-15  Paul Eggert  <eggert@twinsun.com>
76377
76378         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
76379         (SIZE_MAX): Remove.
76380         (new_exclude, add_exclude_file): Initial size no longer needs to
76381         be a power of 2.
76382         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
76383         our own address arithmetic overflow checking.
76384
76385         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
76386         (fnmatch): Do not alloca more than 2000 wide characters;
76387         instead, use malloc for large buffers.
76388         Check for address arithmetic overflow, and return -1
76389         with errno set to ENOMEM in that case.
76390         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
76391         (NEW_PATTERN): Do not alloca more than 8000 bytes;
76392         instead, return -1.  Check for address arithmetic overflow.
76393
76394 2003-10-14  Paul Eggert  <eggert@twinsun.com>
76395
76396         Handle invalid suffixes and overflow independently, so that
76397         callers can treat them independently as needed.  Fix some bugs in
76398         suffix handling, e.g., "100k@" was not diagnosed as an invalid
76399         suffix for a human-readable blocksize.  The major caller-visible
76400         change is the addition of a new
76401         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
76402         that both overflow and suffix chars were found.
76403
76404         * lib/human.c (humblock): Don't check separately for invalid suffix
76405         char; that is xstrtoumax's job (now that its bug is fixed).
76406         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
76407         INTMAX_MAX]: New macros.
76408         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
76409         TYPE_MAXIMUM): New macros.
76410         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
76411         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
76412         if overflow occurs, as it's what __strtol does and it's more useful
76413         in practice.
76414         (__xstrtol): If __strtol reports some error other than ERANGE,
76415         reflect it to the caller as LONGINT_INVALID.  If it reports
76416         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
76417         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
76418         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
76419         value.
76420         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
76421         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
76422         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
76423         [defined UINTMAX_MAX]: New macros.
76424
76425 2003-10-14  Bruno Haible  <bruno@clisp.org>
76426
76427         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
76428
76429 2003-10-14  Bruno Haible  <bruno@clisp.org>
76430
76431         * m4/sig_atomic_t: New file, from GNU gettext.
76432         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
76433
76434 2003-10-14  Bruno Haible  <bruno@clisp.org>
76435
76436         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
76437         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
76438         Also use volatile where needed.
76439
76440 2003-10-12  Paul Eggert  <eggert@twinsun.com>
76441
76442         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
76443         Change maintainer from Bruno Haible to 'all'.
76444
76445 2003-10-12  Paul Eggert  <eggert@twinsun.com>
76446
76447         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
76448
76449 2003-10-12  Paul Eggert  <eggert@twinsun.com>
76450
76451         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
76452         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
76453         and define in terms of the other primitives.
76454         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
76455         (SIZE_MAX): Define if not already defined.
76456         (array_size_overflow): New function.
76457         (xalloc_die): Abort instead of exiting if 'error' returns.
76458         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
76459         (xmalloc, xrealloc): Use them.
76460         (xcalloc): Check for address arithmetic overflow.
76461         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
76462         a bit faster than strcpy.
76463
76464 2003-10-10  Simon Josefsson  <jas@extundo.com>
76465
76466         * modules/argp (Depends-on): Add restrict and strcase.
76467
76468 2003-10-10  Simon Josefsson  <jas@extundo.com>
76469
76470         * m4/argp.m4: Add AC_C_INLINE.
76471
76472 2003-10-08  Paul Eggert  <eggert@twinsun.com>
76473
76474         Merge getpass from libc, plus a few fixes.
76475
76476         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
76477         Include <stdbool.h>.
76478         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
76479         __fsetlocking to empty.
76480         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
76481         do include <bits/libc-lock.h>.
76482         Do not include <fcntl.h>; not needed.
76483         [_LIBC]: Include <wchar.h>.
76484         (NOTCANCEL_MODE): New macro.
76485         (flockfile, funlockfile) [_LIBC]: New macros.
76486         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
76487         [!_LIBC]: New macros.
76488         (call_fclose): New function.
76489         (getpass): Use it.  Save tty stream separately; this simplifies the
76490         code and makes it more reliable if stdin happens to equal stdout.
76491         Invoke __fsetlocking on tty.
76492         Handle thread cancellation if needed.
76493         Namespace cleanup (use __tcgetattr, __getline).
76494         Use bool for Booleans.
76495         [USE_IN_LIBIO]: Handle wide streams.
76496         [!_LIBC]: Unconditionally do the fseek, since we don't know what
76497         stream might go where.
76498
76499         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
76500         doesn't have to include <stdio.h> before us.
76501         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
76502         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
76503         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
76504         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
76505         if not declared, so that we can use getpass.c code from libc without
76506         rewriting it.
76507         (flockfile, ftrylockfile, funlockfile): New macros.
76508
76509 2003-10-08  Paul Eggert  <eggert@twinsun.com>
76510
76511         * modules/getpass: Depend on stdbool.
76512
76513 2003-10-08  Paul Eggert  <eggert@twinsun.com>
76514
76515         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
76516
76517 2003-10-07  Karl Berry  <karl@gnu.org>
76518
76519         * config/config.{guess,sub}: update from config.
76520
76521 2003-10-06  Jim Meyering  <jim@meyering.net>
76522             Bruno Haible  <bruno@clisp.org>
76523
76524         This lets translators provide better translations for the
76525         "Written by ..." part of --version output.
76526         * lib/version-etc.h: Include stdarg.h.
76527         (version_etc_copyright): Declare as readonly.
76528         (version_etc): Make this function variadic with a NULL-terminated list
76529         of author name strings.
76530         (version_etc_va): New declaration.
76531         * lib/version-etc.c: Include stdarg.h, stdlib.h.
76532         (version_etc_copyright): Declare as readonly.
76533         (version_etc_va): New function. Provide a different translatable string
76534         for each possible number of authors < 10. Abbreviate when there are 10
76535         authors or more.
76536         (version_etc): Make this function variadic. Call version_etc_va.
76537         Suggestion from Gary V. Vaughan.
76538
76539         * lib/long-options.h (parse_long_options): Change prototype: the
76540         authors string is moved to the end and becomes variadic.
76541         * lib/long-options.c: Include stdarg.h.
76542         (parse_long_options): Make this function variadic, too.
76543         Call version_etc_va, not version_etc.
76544
76545 2003-10-06  Bruno Haible  <bruno@clisp.org>
76546
76547         * modules/version-etc-2: Remove file.
76548         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
76549
76550 2003-10-06  Bruno Haible  <bruno@clisp.org>
76551
76552         * modules/fatal-signal: New file.
76553         * MODULES.html.sh (func_all_modules): Add fatal-signal.
76554
76555 2003-10-06  Bruno Haible  <bruno@clisp.org>
76556
76557         * m4/fatal-signal.m4: New file.
76558         * m4/signalblocking.m4: New file, from GNU gettext.
76559
76560 2003-10-06  Bruno Haible  <bruno@clisp.org>
76561
76562         * lib/version-etc-2.h: Remove file.
76563         * lib/version-etc-2.c: Remove file.
76564
76565 2003-10-06  Bruno Haible  <bruno@clisp.org>
76566
76567         * lib/fatal-signal.h: New file, from GNU gettext.
76568         * lib/fatal-signal.c: New file, from GNU gettext.
76569
76570 2003-10-05  Paul Eggert  <eggert@twinsun.com>
76571
76572         * README: Rework advice for preventing empty .o files.
76573         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
76574         not <sys/types.h>.
76575
76576 2003-10-04  Karl Berry  <karl@gnu.org>
76577
76578         * lib/argp*: update from libc.
76579
76580 2003-10-04  Karl Berry  <karl@gnu.org>
76581
76582         * config/config.{guess,sub}: update from config.
76583
76584 2003-10-02  Bruno Haible  <bruno@clisp.org>
76585
76586         * modules/lchown (Include): Add lchown.h.
76587         * modules/time_r (Include): Use "..." syntax.
76588         * modules/xgetdomainname (Include): Add xgetdomainname.h.
76589
76590 2003-10-01  Simon Josefsson  <jas@extundo.com>
76591
76592         * MODULES.html.sh (func_all_modules): Move gethostname from section
76593         'based on' to section 'lacking' POSIX:2001.
76594
76595 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
76596
76597         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
76598         to output mode on the same stream.
76599
76600 2003-09-29  Paul Eggert  <eggert@twinsun.com>
76601
76602         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
76603         Fix arg typo in previous patch.
76604
76605 2003-09-28  Jim Meyering  <jim@meyering.net>
76606
76607         * lib/error.c: Correct cpp indentation.
76608
76609 2003-09-27  Paul Eggert  <eggert@twinsun.com>
76610
76611         * modules/free: New file.
76612
76613 2003-09-27  Paul Eggert  <eggert@twinsun.com>
76614
76615         * m4/free.m4: New file.
76616
76617 2003-09-27  Paul Eggert  <eggert@twinsun.com>
76618
76619         * lib/minmax.h (MIN, MAX)
76620         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
76621         Omit the special code that used __typeof__, since we worry that
76622         it could be more trouble than it's worth.  See:
76623         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
76624         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
76625
76626         * lib/free.c: New file.
76627
76628 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
76629
76630         Trivial fixes to Makefile.am parts of module listings.
76631         * modules/strstr: Append strstr.h to lib_SOURCES.
76632         * modules/strcase: Likewise, for strcase.h.
76633
76634 2003-09-27  Karl Berry  <karl@gnu.org>
76635
76636         * config/mkinstalldirs: update from automake.
76637
76638 2003-09-26  Paul Eggert  <eggert@twinsun.com>
76639
76640         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
76641         (error_tail): Do not loop, reallocating temporary buffer, since
76642         the output cannot contain more wide characters than the input
76643         contains bytes, the size must be big enough already.  This avoids
76644         one potential size overflow calculation.  Check for size overflow
76645         when calculating temporary buffer size.  Free temporary buffer
76646         when done, if it was allocated with malloc; this plugs a memory
76647         leak.  Remove casts from void * to pointers, that are no longer
76648         needed now that we're assuming C89 or better.
76649
76650         Merge error changes from glibc.
76651
76652         * lib/error.c, error.h: Update copyright notice header to match glibc.
76653         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
76654         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
76655         Disable cancellation while printing error.
76656         * lib/error.h: Prepend __ to parameter names.
76657
76658 2003-09-26  Jim Meyering  <jim@meyering.net>
76659
76660         * lib/error.c (error_tail): Move some declarations
76661         into inner scope where the local variables are used.
76662
76663 2003-09-26  Bruno Haible  <bruno@clisp.org>
76664
76665         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
76666         stpncpy().
76667         Don't define stpncpy through config.h; it's now done through stpncpy.h.
76668
76669 2003-09-26  Bruno Haible  <bruno@clisp.org>
76670
76671         * lib/stpncpy.h (gnu_stpncpy): New declaration.
76672         (stpncpy): Define as alias for gnu_stpncpy.
76673         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
76674
76675 2003-09-25  Simon Josefsson  <jas@extundo.com>
76676
76677         * lib/xgetdomainname.h: New file.
76678         * lib/xgetdomainname.c: New file.
76679
76680 2003-09-25  Simon Josefsson  <jas@extundo.com>
76681             Bruno Haible  <bruno@clisp.org>
76682
76683         * modules/getdomainname: New file.
76684         * modules/xgetdomainname: New file.
76685         * MODULES.html.sh (func_all_modules): Add getdomainname,
76686         xgetdomainname.
76687
76688 2003-09-25  Simon Josefsson  <jas@extundo.com>
76689             Bruno Haible  <bruno@clisp.org>
76690
76691         * m4/getdomainname.m4: New file.
76692
76693 2003-09-25  Simon Josefsson  <jas@extundo.com>
76694             Bruno Haible  <bruno@clisp.org>
76695
76696         * lib/getdomainname.h: New file.
76697         * lib/getdomainname.c: New file.
76698
76699 2003-09-25  Karl Berry  <karl@gnu.org>
76700
76701         * lib/argp-fmtstream.c, argp-help.c: update from libc.
76702
76703 2003-09-25  Karl Berry  <karl@gnu.org>
76704
76705         * config/install-sh: update from automake.
76706
76707 2003-09-25  Bruno Haible  <bruno@clisp.org>
76708
76709         * modules/version-etc-2: New file, from modules/version-etc with
76710         modifications.
76711         * MODULES.html.sh (func_all_modules): Add version-etc-2.
76712
76713 2003-09-25  Bruno Haible  <bruno@clisp.org>
76714
76715         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
76716         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
76717
76718 2003-09-24  Simon Josefsson  <jas@extundo.com>
76719
76720         * modules/xgethostname: Add xgethostname.h.
76721
76722 2003-09-24  Paul Eggert  <eggert@twinsun.com>
76723
76724         * lib/linebuffer.c (freebuffer): Don't free the argument, just
76725         the buffer associated with the argument.  Bug reported by
76726         Simon Josefsson.
76727
76728 2003-09-24  Paul Eggert  <eggert@twinsun.com>
76729
76730         * README: Document assumptions that 'int' is at least 32 bits
76731         wide, that integer arithmetic is 2's complement without overflow,
76732         that there are no holes in integer values, that adding sizes of
76733         two nonoverlapping objects can't overflow, and that all-bits-zero
76734         yields scalar zero.  Fix spelling and capitalization typos.
76735
76736 2003-09-19  Karl Berry  <karl@gnu.org>
76737
76738         * lib/argp.h: update from libc.
76739
76740 2003-09-17  Paul Eggert  <eggert@twinsun.com>
76741
76742         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
76743         to avoid spurious warnings like "AC_RUN_IFELSE was called before
76744         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
76745
76746 2003-09-17  Paul Eggert  <eggert@twinsun.com>
76747
76748         * gnulib-tool: Use "test -h", not "test -L", for portability
76749         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
76750         (tags_regexp): Remove, since \| doesn't conform to POSIX.
76751         (sed_extract_prog): Issue s commands one-by-one, rather than
76752         using \| in one s command.
76753
76754 2003-09-16  Paul Eggert  <eggert@twinsun.com>
76755
76756         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
76757         input error, instead of returning NULL the next time we are called
76758         (and therefore losing track of errno).
76759
76760 2003-09-16  Bruno Haible  <bruno@clisp.org>
76761
76762         * gnulib-tool (func_create_testdir): Warn about duplicated
76763         dependencies.
76764
76765 2003-09-15  Paul Eggert  <eggert@twinsun.com>
76766
76767         * modules/argmatch, modules/fatal, modules/obstack,
76768         modules/xalloc, modules/xgethostname: Sort dependencies by
76769         importance, not alphabetically.
76770
76771 2003-09-15  Paul Eggert  <eggert@twinsun.com>
76772
76773         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
76774         fails, so that the caller gets the proper errno.
76775
76776         * lib/readutmp.c (read_utmp): Likewise.
76777         Check for fstat error.  Close stream and free storage
76778         when failing.
76779
76780 2003-09-14  Karl Berry  <karl@gnu.org>
76781
76782         * config/srclist.txt (strdup.c): disable for c89 changes.
76783
76784 2003-09-14  Jim Meyering  <jim@meyering.net>
76785
76786         * lib/getloadavg.c: Correct cpp indentation.
76787         * lib/strdup.c: Likewise.
76788         * lib/vasnprintf.c: Likewise.
76789
76790 2003-09-14  Bruno Haible  <bruno@clisp.org>
76791
76792         * modules/fwriteerror: New file.
76793         * MODULES.html.sh (func_all_modules): Add fwriteerror.
76794
76795 2003-09-14  Bruno Haible  <bruno@clisp.org>
76796
76797         * lib/fwriteerror.h: New file.
76798         * lib/fwriteerror.c: New file.
76799
76800 2003-09-12  Paul Eggert  <eggert@twinsun.com>
76801
76802         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
76803         modules/xgethostname, modules/xalloc: Depend on exit.
76804
76805 2003-09-12  Paul Eggert  <eggert@twinsun.com>
76806
76807         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
76808
76809         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
76810         and AC_MINIX, too, so that their extensions are available.
76811
76812         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
76813         This macro has been superseded by gl_BACKUPFILE.
76814
76815         More patches to assume C89 or better.
76816
76817         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
76818
76819         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
76820         unconditionally.
76821         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
76822         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
76823         Include <string.h>, <stdlib.h> unconditionally.
76824         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
76825         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
76826         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
76827         headers or for string.h.
76828         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
76829         or strtoul.
76830
76831         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
76832         headers.
76833         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
76834         * m4/userspec.m4 (gl_USERSPEC): Likewise.
76835         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
76836         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
76837         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
76838         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
76839         memcpy, memset.
76840         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
76841         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
76842         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
76843         strtol.
76844         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
76845         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
76846         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
76847         strtoul.
76848
76849 2003-09-12  Paul Eggert  <eggert@twinsun.com>
76850
76851         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
76852         * lib/obstack.c [!defined _LIBC]: Likewise.
76853         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
76854         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
76855         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
76856
76857         More changes to assume C89 or better.
76858
76859         * lib/error.c (error_tail): Assume vprintf.
76860
76861         * lib/argmatch.c (getenv): Remove decl.
76862         * lib/progreloc.c (get_full_program_name): Define via prototype.
76863         * lib/setenv.c (clearenv): Likewise.
76864         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
76865         needed.
76866         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
76867         (malloc, memcpy): Remove decls.
76868         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
76869         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
76870         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
76871         (memcpy): Remove macro.
76872         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
76873         (__P): Remove.  All uses removed.
76874         (PTR): Remove.  All uses changed to void *.
76875         (CHAR_BIT, NULL): Remove.
76876         (spaces, zeros, memset_space, memset_zero)
76877         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
76878         Remove.
76879         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
76880         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
76881         Define with prototype.
76882         Remove now-unnecessary prototype decl.
76883         (extra_args_spec): Assume ANSI C.  All uses changed.
76884         (extra_args_spec_iso): Remove.
76885         (my_strftime, emacs_strftimeu): Define via prototype.
76886         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
76887         unconditionally.
76888         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
76889         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
76890         (strtoul, strtol): Remove decls.
76891         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
76892         LONG_MAX): Remove.
76893         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
76894         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
76895         (LOCALE_PARAM_PROTO): New macro.
76896         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
76897         (INTERNAL (strtol), strtol): Define with a prototype.
76898         (PARAMS): Remove.  All uses removed.
76899         * lib/tempname.c: Include <string.h> unconditionally.
76900         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
76901         * lib/xgethostname.c (main): Define with a prototype.
76902         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
76903         Include <stdlib.h> unconditionally.
76904         (calloc, malloc, realloc, free): Remove decls.
76905         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
76906         Include <stdlib.h> unconditionally.  Sort include file names.
76907         (strtod): Remove.
76908         (xstrtod): Define with a prototype.
76909         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
76910         (strtol, strtoul): Remove decls.
76911
76912 2003-09-11  Paul Eggert  <eggert@twinsun.com>
76913
76914         More patches to assume C89 or better.
76915         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
76916         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
76917         string.h, memchr, STDC_HEADERS.
76918
76919 2003-09-11  Paul Eggert  <eggert@twinsun.com>
76920
76921         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
76922         Include <stdlib.h>, <string.h> unconditionally.
76923         Remove now-unnecessary cast to char *.
76924         * lib/strnlen.c: Include <string.h> unconditionally.
76925         * lib/yesno.c (yesno): Define with a prototype.
76926
76927 2003-09-11  Bruno Haible  <bruno@clisp.org>
76928
76929         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
76930
76931 2003-09-10  Jim Meyering  <jim@meyering.net>
76932
76933         * lib/error.c: Correct indentation of cpp directives.
76934
76935 2003-09-10  Bruno Haible  <bruno@clisp.org>
76936
76937         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
76938         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
76939         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
76940         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
76941         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
76942         <stdlib.h> and <string.h> checks.
76943         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
76944         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
76945
76946 2003-09-10  Bruno Haible  <bruno@clisp.org>
76947
76948         * lib/strcspn.c: Include <string.h> unconditionally.
76949         * lib/strpbrk.c: Include <string.h> unconditionally.
76950         * lib/strstr.c: Include <string.h> unconditionally.
76951         * lib/unicodeio.c: Include <string.h> unconditionally.
76952         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
76953         * lib/unsetenv.c: Likewise.
76954         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
76955         * lib/yesno.c: Include <stdlib.h> unconditionally.
76956         (rpmatch): Add prototype.
76957
76958 2003-09-09  Paul Eggert  <eggert@twinsun.com>
76959
76960         More patches to assume C89 or better.
76961         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
76962         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
76963         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
76964         or for string.h.
76965         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
76966         stdlib.h.
76967         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
76968         C headers.
76969         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
76970         string.h.
76971         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
76972         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
76973         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
76974         or for string.h.
76975         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
76976         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
76977         C headers.
76978         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
76979         memcpy.
76980         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
76981         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
76982         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
76983         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
76984         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
76985         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
76986         string.h, free.
76987         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
76988         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
76989         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
76990         C headers, or for string.h.
76991         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
76992         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
76993         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
76994         headers, memory.h, stdlib.h, string.h, strings.h.
76995         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
76996         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
76997         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
76998         strchr.
76999         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
77000         headers, memory.h, string.h.
77001         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
77002         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
77003         free.
77004         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
77005         headers.
77006         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
77007         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
77008         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
77009         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
77010         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
77011
77012 2003-09-09  Paul Eggert  <eggert@twinsun.com>
77013
77014         More K&R removal.
77015
77016         * lib/acosl.c (main): Use a prototype.
77017         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
77018         tanl.c: Likewise.
77019
77020         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
77021
77022         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
77023         (getopt, etopt_long, getopt_long_only, _getopt_internal)
77024         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
77025         with a prototype.
77026         * lib/getopt.c (const): Remove macro.
77027         Include <string.h> unconditionally.
77028         (my_index): Remove; all uses changed to strchr.
77029         (strlen): Remove decl.
77030         (exchange): Remove forward decl; no longer needed.
77031         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
77032         Define with prototype.
77033         * lib/getopt1.c (const): Remove macro.
77034         (getopt_long, getopt_long_only, main): Define with prototype.
77035
77036         * lib/getugroups.c: Include <string.h> unconditionally.
77037
77038         * lib/getusershell.c: Include <stdlib.h> unconditionally.
77039         (getusershell, setusershell, endusershell, readname, main):
77040         Define with prototypes.
77041
77042         * lib/group-member.c: Include group-member.h first.
77043         Include <stdlib.h> unconditionally.
77044
77045         * lib/hard-locale.c: Include hard-locale.h first.
77046         Include <stdlib.h>, <string.h> unconditionally.
77047
77048         * lib/hash.c (free, malloc): Remove decls.
77049         Include <stdlib.h> unconditionally.
77050
77051         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
77052         (getenv): Do not declare.
77053
77054         * lib/idcache.c: Include <string.h> unconditionally.
77055
77056         * lib/long-options.c: Include long-options.h first, to test interface.
77057         Include <stdlib.h> unconditionally.
77058
77059         * lib/makepath.c: Include makepath.h first, to test interface.
77060         Include <stdlib.h> and <string.h> unconditionally.
77061
77062         * lib/linebuffer.c: Include <stdlib.h>.
77063         (free): Remove decl.
77064
77065         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
77066         stddef.h. rpl_malloc returns void *, not char *.
77067         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
77068         prototype.
77069
77070         * lib/md5.h: Include <limits.h> unconditionally.
77071         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
77072         (__P): Remove; all uses removed.
77073         * lib/md5.c: Include "md5.h" first.
77074         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
77075         md5_buffer, md5_process_bytes, md5_process_block):
77076         Define with prototypes.
77077         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
77078         * lib/sha.c: Include "sha.h" first.
77079         Include <stdlib.h>, <string.h> unconditionally.
77080
77081         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
77082         * lib/memcmp.c (__ptr_t): Likewise.
77083         * lib/memrchr.c (__ptr_t): Likewise.
77084         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
77085         Include <string.h> unconditionally.
77086         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
77087         * lib/memchr.c: Include <stdlib.h> unconditionally.
77088         * lib/memchr.c (LONG_MAX): Remove.
77089         * lib/memrchr.c (LONG_MAX): Likewise.
77090         * lib/memchr.c (__memchr): Define via a prototype.
77091         * lib/memrchr.c (__memrchr): Likewise.
77092         * lib/memcmp.c (__P): Remove, and remove all uses.
77093         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
77094         Remove forward decls; no longer needed.
77095         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
77096         Use types required by C89 in prototype.
77097
77098         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
77099         * lib/savedir.c: Likewise.
77100         * lib/mkdir.c (free): Remove decl.
77101         * lib/rmdir.c (rmdir): Define with a prototype.
77102         * lib/savedir.c: Include savedir.h first, to test interface.
77103
77104         * lib/mktime.c (STDC_HEADERS): Remove.
77105         Include <stdlib.h>, <string.h> unconditionally.
77106
77107         * lib/modechange.c: Include <stdlib.h> unconditionally.
77108         (malloc): Remove decl.
77109
77110         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
77111         (free): Remove decl.
77112
77113         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
77114         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
77115         (This type really should be intptr_t, but that's a C99ism.)
77116         (_obstack_memcpy): Remove: all uses changed to memcpy.
77117         Include <string.h> unconditionally.
77118         (struct obstack): Assume __STDC__ for types of members
77119         chunkfun, freefun, extra_arg.
77120         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
77121         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
77122         obstack_begin, obstack_specify_allocation,
77123         obstack_specify_allocation_with_arg, obstack_chunkfun,
77124         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
77125         Remove unprototyped decls and the macros that use them.
77126         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
77127         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
77128         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
77129         (defined __STDC__ && __STDC__)]:
77130         Remove nonprototyped code.
77131         Include <stdlib.h> unconditionally.
77132         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
77133         _obstack_allocated_p, _obstack_free, obstack_free,
77134         _obstack_memory_used, print_and_abort):
77135         Define using prototypes.
77136         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
77137         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
77138         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
77139         obstack_next_free, obstack_object_size, obstack_room) [0]:
77140         Remove unused, unprototyped code.
77141
77142         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
77143
77144         * lib/physmem.c (physmem_total, physmem_available, main): Define
77145         with prototypes.
77146
77147         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
77148         (main): Define with a prototype.
77149
77150         * lib/posixver.c (getenv): Remove decl.
77151
77152         * lib/putenv.c (malloc): Returns void *, not char *.
77153         Include <string.h> unconditionally.
77154         (strchr, memcpy, NULL): Do not define.
77155
77156         * lib/readtokens.c: Include readtokens.h first, to test interface.
77157         Include <stdlib.h>, <string.h> unconditionally.
77158         (init_tokenbuffer): Define with a prototype.
77159
77160         * lib/regex.c (PARAMS): Remove.  All uses removed.
77161         All uses of _RE_ARGS removed, too.
77162         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
77163         unconditionally.
77164         (bzero): Assume memset exists.
77165         (memcmp, memcpy, NULL): Remove.
77166         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
77167         char, or assignments to local vars of type signed char.
77168         (init_syntax_once, PREFIX(extract_number_and_incr),
77169         PREFIX(print_partial_compiled_pattern),
77170         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
77171         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
77172         PREFIX(regex_grow_registers), PREFIX(regex_compile),
77173         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
77174         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
77175         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
77176         wcs_compile_range, byte_compile_range, truncate_wchar,
77177         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
77178         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
77179         count_mbs_length, wcs_re_match_2_internal,
77180         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
77181         PREFIX(alt_match_null_string_p),
77182         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
77183         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
77184         regfree, PREFIX(extract_number)): Define with prototype.  Remove
77185         now-unnecessary declaration, if any.
77186         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
77187         regcomp, regexec):
77188         Remove now-unnecessary casts among pointer types.
77189         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
77190
77191         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
77192         (free): Remove decl.
77193
77194         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
77195
77196         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
77197         (free): Remove decl.
77198
77199         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
77200         * lib/xgetcwd.c: Likewise.
77201
77202         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
77203         (free): Remove decl.
77204
77205         * lib/strchrnul.c (strchrnul): Define with a prototype.
77206         Fix bug: c_in was not converted to char before searching.
77207
77208         The following changes are not K&R related:
77209
77210         * lib/group-member.h: Include <sys/types.h>, so that this file is
77211         self-contained.
77212         * lib/makepath.h: Likewise.
77213
77214         * lib/getusershell.c (readname, default_index, line_size, readname):
77215         Use size_t, not int, for sizes.
77216         (readname): If the size overflows, report an error instead of
77217         looping forever.
77218
77219 2003-09-09  Paul Eggert  <eggert@twinsun.com>
77220
77221         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
77222         libc.
77223
77224 2003-09-09  Paul Eggert  <eggert@twinsun.com>
77225
77226         * README: New section: portability guidelines.
77227
77228 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
77229
77230         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
77231         C89 spec.
77232
77233 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
77234
77235         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
77236
77237 2003-09-08  Paul Eggert  <eggert@twinsun.com>
77238
77239         Assume C89 or better; remove K&R cruft.
77240         A few of these changes were first proposed by Derek Robert Price
77241         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
77242
77243         * lib/addext.c: Include <string.h> unconditionally.
77244         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
77245         Don't declare getenv or malloc.
77246
77247         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
77248         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
77249         (NULL): Remove.
77250         (find_stack_direction, alloca): Use prototypes.
77251
77252         * lib/atexit.c (atexit): Define using a prototype.
77253
77254         * lib/basename.c, dirname.c, stripslash.c:
77255         Include <string.h> unconditionally.
77256
77257         * lib/bcopy.c: Include <stddef.h>.
77258         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
77259
77260         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
77261
77262         * lib/error.h (error, error_at_line, error_print_progname)
77263         [! (defined (__STDC__) && __STDC__)]: Remove decls.
77264         * lib/error.c: Include error.h first, to check interface.
77265         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
77266         (VA_START): Remove; all uses changeed to va_start.
77267         (exit, strerror): Remove decls.
77268         (error_print_progname): Prototype uncondionally.
77269         Don't include <errno.h>; no longer needed.
77270         (private_strerror): Remove.
77271         (error_tail): Always define.
77272         (error, error_at_line): Assume C89 or better; always use prototypes.
77273         * lib/fatal.c: Include "fatal.h" first, to test interface.
77274         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
77275         (VA_START): Remove; all uses changed to va_start.
77276         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
77277         this case.
77278         (exit): Remove decl.
77279         (fatal): Prototype unconditionally.  Assume va_start works.
77280         Abort at end, to pacify gcc.
77281
77282         * lib/euidaccess.c (main): Define with a prototype.
77283
77284         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
77285
77286         * lib/exitfail.c: Include <stdlib.h> unconditionally.
77287
77288         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
77289         prototypes.
77290         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
77291         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
77292         (getenv): Remove decl.
77293         (fnmatch): Define using a prototype.
77294         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
77295         (FCT): Define using a prototype.
77296
77297         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
77298
77299         * lib/gethostname.c: Include <stddef.h>.
77300         (gethostname): Define with prototype.  Length is size_t, not int.
77301
77302 2003-09-08  Paul Eggert  <eggert@twinsun.com>
77303
77304         Assume C89 or better; remove K&R cruft.
77305         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
77306         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
77307         string.h, getenv, malloc.
77308         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
77309         headers.
77310         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
77311         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
77312         do not check for strerror.
77313         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
77314         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
77315         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
77316         do not check for doprnt or vprintf.
77317         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
77318         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
77319
77320 2003-09-08  Paul Eggert  <eggert@twinsun.com>
77321
77322         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
77323         getversion.c should have been removed then, but was accidentally
77324         preserved.
77325
77326         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
77327         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
77328
77329 2003-09-08  Karl Berry  <karl@gnu.org>
77330
77331         * config/config.sub, config.guess, srclistvars.sh: update from savannah
77332                 config, forget about prep.
77333
77334         * config/depcomp, missing: update from automake.
77335
77336 2003-09-07  Paul Eggert  <eggert@twinsun.com>
77337
77338         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
77339         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
77340
77341 2003-09-07  Paul Eggert  <eggert@twinsun.com>
77342
77343         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
77344         copy_tm_result.  Bug reported by Simon Josefsson in
77345         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
77346
77347 2003-09-06  Paul Eggert  <eggert@twinsun.com>
77348
77349         * m4/time_r.m4: New file.
77350         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
77351         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
77352         is. Check for timegm declaration.
77353         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
77354         Do not check for gmtime_r.
77355         Replace mktime if __mktime_internal does not exist and if mktime
77356         hasn't been replaced already.
77357
77358 2003-09-06  Paul Eggert  <eggert@twinsun.com>
77359
77360         * lib/time_r.c, lib/time_r.h: New files.
77361
77362         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
77363         __localtime_r.
77364         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
77365         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
77366
77367         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
77368         __gmtime_r.
77369         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
77370         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
77371         Include <time_r.h>.
77372
77373         * lib/timegm.c: Switch to glibc implementation, with the following
77374         changes:
77375         [defined HAVE_CONFIG_H]: Include <config.h>.
77376         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
77377         (__mktime_internal) [!defined _LIBC]: New decl.
77378         (__gmtime_r) [!defined _LIBC]: New macro and function.
77379         (timegm): Use a prototype, since gnulib assumes C89.
77380         Do not bother declaring tmp to be const, as it's not really usefu.
77381         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
77382         (timegm): Declare only if HAVE_DECL_TIMEGM.
77383
77384 2003-09-06  Paul Eggert  <eggert@twinsun.com>
77385
77386         * MODULES.html.sh (func_all_modules): Add time_r.
77387         * modules/time_r: New file.
77388         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
77389         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
77390
77391 2003-09-03  Paul Eggert  <eggert@twinsun.com>
77392
77393         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
77394         Bug reported by Lute Kamstra in
77395         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
77396
77397         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
77398         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
77399         course with correspondingly smaller numbers for tomorrow and
77400         yesterday.  From Tadayoshi Funaba.  Originally installed into
77401         sh-utils on 1999-08-07, but the patch got lost (I guess during the
77402         coreutils merge?).
77403
77404 2003-08-31  Simon Josefsson  <jas@extundo.com>
77405
77406         * modules/timegm: New file.
77407         * MODULES.html.sh (func_all_modules): Add timegm.
77408
77409 2003-08-31  Simon Josefsson  <jas@extundo.com>
77410
77411         * m4/timegm.m4: New file.
77412
77413 2003-08-31  Simon Josefsson  <jas@extundo.com>
77414
77415         * lib/timegm.h: New file.
77416         * lib/timegm.c: New file.  Based on
77417         wget-1.8.2/src/http.c:mktime_from_utc.
77418
77419 2003-08-31  Karl Berry  <karl@gnu.org>
77420
77421         * lib/argp.h: update from libc.
77422
77423 2003-08-28  Bruno Haible  <bruno@clisp.org>
77424
77425         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
77426         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
77427         followed by '#define fnmatch fnmatch_posix' gives an error.
77428
77429 2003-08-28  Bruno Haible  <bruno@clisp.org>
77430
77431         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
77432         warning on QNX, which defines O_BINARY to 000000.
77433
77434 2003-08-27  Jim Meyering  <jim@meyering.net>
77435
77436         * m4/mkstemp.m4: Require that the system mkstemp be able to create
77437         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
77438         would fail after 32.  Reported by Danny Levinson.  Details here:
77439         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
77440
77441 2003-08-24  Bruno Haible  <bruno@clisp.org>
77442
77443         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
77444         MSVC7 <stdio.h> is included later.
77445
77446 2003-08-22  Simon Josefsson  <jas@extundo.com>
77447
77448         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
77449
77450 2003-08-20  Karl Berry  <karl@gnu.org>
77451
77452         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
77453
77454 2003-08-20  Bruno Haible  <bruno@clisp.org>
77455
77456         * modules/progname: New file.
77457         * MODULES.html.sh (func_all_modules): Add progname.
77458
77459 2003-08-20  Bruno Haible  <bruno@clisp.org>
77460
77461         * lib/progname.h: New file, from GNU gettext.
77462         * lib/progname.c: New file, from GNU gettext.
77463         * lib/progreloc.c: New file, from GNU gettext.
77464
77465 2003-08-19  Jim Meyering  <jim@meyering.net>
77466
77467         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
77468         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
77469
77470 2003-08-19  Bruno Haible  <bruno@clisp.org>
77471
77472         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
77473         more.
77474
77475 2003-08-19  Bruno Haible  <bruno@clisp.org>
77476
77477         * lib/xstrdup.c: Assume <string.h> exists.
77478
77479 2003-08-18  Paul Eggert  <eggert@twinsun.com>
77480
77481         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
77482         in makefile rules.
77483
77484 2003-08-18  Jim Meyering  <jim@meyering.net>
77485
77486         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
77487         * m4/lib-ld.m4: Likewise.
77488
77489 2003-08-18  Jim Meyering  <jim@meyering.net>
77490
77491         * lib/setenv.h: Indent nested cpp directive.
77492         * lib/vasnprintf.c: Remove trailing blanks.
77493
77494 2003-08-17  Simon Josefsson  <jas@extundo.com>
77495
77496         * modules/xstrndup: New file.
77497         * MODULES.html.sh (func_all_modules): Add xstrndup.
77498
77499 2003-08-17  Simon Josefsson  <jas@extundo.com>
77500
77501         * modules/argp: Fix autoconf macro name. Add more dependencies.
77502
77503 2003-08-17  Simon Josefsson  <jas@extundo.com>
77504
77505         * m4/xstrndup.m4: New file.
77506
77507 2003-08-17  Simon Josefsson  <jas@extundo.com>
77508
77509         * m4/argp.m4: New file.
77510
77511 2003-08-17  Simon Josefsson  <jas@extundo.com>
77512             Bruno Haible  <bruno@clisp.org>
77513
77514         * lib/xstrndup.h: New file.
77515         * lib/xstrndup.c: New file.
77516
77517 2003-08-17  Bruno Haible  <bruno@clisp.org>
77518
77519         * modules/strndup (Files, Include): Add lib/strndup.h.
77520
77521 2003-08-17  Bruno Haible  <bruno@clisp.org>
77522
77523         * modules/euidaccess (Files): Add lib/euidaccess.h.
77524
77525 2003-08-17  Bruno Haible  <bruno@clisp.org>
77526
77527         * lib/strndup.h: New file.
77528
77529 2003-08-17  Bruno Haible  <bruno@clisp.org>
77530
77531         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
77532         like AC_GNU_SOURCE.
77533         * modules/extensions (configure.ac): Comment out the invocation of
77534         gl_USE_SYSTEM_EXTENSIONS.
77535
77536 2003-08-16  Paul Eggert  <eggert@twinsun.com>
77537
77538         Merges from coreutils, etc.
77539         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
77540         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
77541         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
77542         fixing a typo.
77543         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
77544         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
77545
77546 2003-08-16  Paul Eggert  <eggert@twinsun.com>
77547
77548         Document merge from coreutils.
77549         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
77550         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
77551         * modules/utime: Add m4/utimes-null.m4.
77552
77553 2003-08-16  Paul Eggert  <eggert@twinsun.com>
77554
77555         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
77556         space, undoing this 2003-08-12 change:
77557         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
77558
77559 2003-08-16  Paul Eggert  <eggert@twinsun.com>
77560
77561         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
77562         strtoul.c from libc, undoing this 2003-08-12 change:
77563         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
77564
77565 2003-08-16  Jim Meyering  <jim@meyering.net>
77566
77567         Merges from coreutils.
77568         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
77569         prefix.  Adjust cache variables similarly.  Create 500 rather than
77570         just 300 files, to exercise bug on Darwin6.5, too.
77571         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
77572         $missing_dir.
77573         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
77574         AM_SYS_POSIX_TERMIOS.
77575         Reported by mkc@mathdogs.com.
77576         Also change use of $am_cv_sys_posix_termios
77577         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
77578         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
77579         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
77580         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
77581         in /proc/mounts until it finds one with matching device number.  This
77582         is unnecessary when the FILE argument *is* a mount point.  No stat call
77583         is necessary in that case.  So, disable the statvfs-testing code on
77584         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
77585         as RedHat bug# 84846.
77586         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
77587         to 1MB, so as not to render systems with no stack size limit (e.g.,
77588         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
77589         Include <unistd.h>.  On some systems,
77590         it is required for the definition of _SC_PAGESIZE.
77591
77592 2003-08-16  Jim Meyering  <jim@meyering.net>
77593
77594         Merge from coreutils.
77595         * lib/xstrtoimax.c: #else #if -> #elif.
77596         * lib/xstrtoumax.c: Likewise.
77597
77598 2003-08-16  Jim Meyering  <jim@meyering.net>
77599
77600         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
77601         * m4/utimes.m4: Removed.
77602         * m4/utimes-null.m4: Renamed from utimes.m4.
77603
77604         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
77605         to 1MB, so as not to render systems with no stack size limit (e.g.,
77606         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
77607         Include <unistd.h>.  On some systems,
77608         it is required for the definition of _SC_PAGESIZE.
77609
77610 2003-08-16  Jim Meyering  <jim@meyering.net>
77611         and Paul Eggert  <eggert@cs.ucla.edu>
77612
77613         Merges from coreutils, etc.
77614
77615         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
77616         using the latest version from cvs.  This avoids problems with #line
77617         directives using a vendor (Sun) compiler.
77618         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
77619         Don't set GETGROUPS_LIB here; now it's
77620         done via getgroups.m4's wrapper function.
77621         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
77622         rather than just in sh-util/configure.in, so that the
77623         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
77624         same.
77625         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
77626         AC_FUNC_GETLOADAVG where to find getloadavg.c.
77627         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
77628         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
77629         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
77630         Remove code that is now done by the newly-required macros.
77631         Append $(EXEEXT) to DF_PROG.
77632         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
77633         Do not invoke or require the following here,
77634         since prereq.m4 or some gnulib .m4 now does this for us:
77635         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
77636         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
77637         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
77638         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
77639         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
77640         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
77641         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
77642         AC_FUNC_OBSTACK.
77643         Do not replace the following functions, as this is now the job
77644         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
77645         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
77646         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
77647         atexit getpass, strdup, getpagesize.
77648         Replace 'raise'.
77649         Do not check for the following functions, as this is now the job
77650         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
77651         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
77652         setregid.
77653         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
77654         Check for sys/sysctl.h.
77655         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
77656         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
77657         of checking for ssize_t ourselves.
77658
77659         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
77660         Require every macro that gnulib/modules/* suggests for us.
77661         (jm_PREREQ_ADDEXT): New macro.
77662         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
77663         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
77664
77665         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
77666         (gl_PHYSMEM): Use it.
77667         Also check for `table' function.
77668         Check for new headers and functions.
77669         Add check for sys/sysmp.h.
77670         With suggestions from Kaveh Ghazi.
77671         Ignore headers that are present but cannot be compiled.  This
77672         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
77673         C 5.4.
77674
77675 2003-08-15  Paul Eggert  <eggert@twinsun.com>
77676
77677         Document merge from coreutils.
77678         * modules/userspec: Depend on posixver.
77679         * modules/strftime: Depend on tzset.
77680
77681 2003-08-15  Paul Eggert  <eggert@twinsun.com>
77682
77683         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
77684         rather than tab, after '#' in shell-script copyright notices.
77685         Suggested by Bruno Haible.
77686
77687 2003-08-15  Paul Eggert  <eggert@twinsun.com>
77688
77689         * config/srclist-update: Use three spaces, rather than tab, after '#'
77690         in shell-script copyright notices.  Suggested by Bruno Haible.
77691         Remove unnecessary parenthesization in regular expression.
77692
77693 2003-08-15  Jim Meyering  <jim@meyering.net>
77694
77695         Merge from coreutils.
77696         * lib/xgethostname.c: Include <stdlib.h>.
77697         (xghostname): Don't exit for anything other than memory-related
77698         failure; just return NULL.
77699         * lib/userspec.c: Include "posixver.h".
77700         (parse_user_spec): Accept `.' as a separator only
77701         in pre-POSIX-200112 mode.
77702         * lib/strtoimax.c: Use #elif rather than #else #if.
77703         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
77704         Remove function, now that we can rely on a working tzset function.
77705         [!_LIBC]: Ensure that the required autoconf test has been run.
77706         [!defined _NL_CURRENT && HAVE_STRFTIME]:
77707         Use underlying_strftime for %r.
77708         * lib/sha.c: Merge in some clean-up and optimization changes from
77709         glibc.
77710         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
77711         Ensure that it is a multiple of 64.
77712         Rearrange loop exit tests so as to avoid performing an
77713         additional fread after encountering an error or EOF.
77714         * lib/realloc.c: Update copyright date.
77715
77716 2003-08-15  Jim Meyering  <jim@meyering.net>
77717         and Paul Eggert  <eggert@twinsun.com>
77718
77719         Merge from coreutils.
77720         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
77721         member but strut utmpx does not.  Needed for AIX 4.3.3.
77722         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
77723
77724 2003-08-15  Jim Meyering  <jim@meyering.net>
77725         and Paul Eggert  <eggert@cs.ucla.edu>
77726
77727         Merges from coreutils, etc.
77728         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
77729         Require gl_FUNC_TZSET_CLOBBER.
77730         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
77731         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
77732         members.
77733
77734 2003-08-14  Paul Eggert  <eggert@twinsun.com>
77735
77736         Help the merge from coreutils.
77737         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
77738         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
77739         * m4/tzset.m4: Use it too.
77740
77741 2003-08-14  Paul Eggert  <eggert@twinsun.com>
77742
77743         * modules/tzset: New file.
77744
77745 2003-08-14  Jim Meyering  <jim@meyering.net>
77746
77747         Merges from coreutils.
77748         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
77749         variable names, rather than @FNMATCH_H@.
77750         * modules/alloca: Likewise for $(ALLOCA_H).
77751
77752         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
77753         the three copies of the literal target, `fnmatch.h'.
77754         * modules/alloca (alloca.h): Likewise.
77755
77756 2003-08-14  Jim Meyering  <jim@meyering.net>
77757
77758         Merge from coreutils.
77759         * m4/tzset.m4: New file.
77760         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
77761         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
77762         otherwise, AIX 5.1 systems would end up using the latter.
77763         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
77764         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
77765         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
77766         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
77767
77768 2003-08-14  Jim Meyering  <jim@meyering.net>
77769
77770         Merge from coreutils.
77771         * lib/obstack.h: Whitespace changes.
77772         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
77773         and xcalloc return values.
77774         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
77775         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
77776         hang on OSF/1 5.1 for DIR on both local and remote file systems.
77777         Reported by (and fix confirmed by) Nelson H. F. Beebe.
77778         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
77779         error from mntctl.
77780         Use mntctl's return value to drive the entry-processing loop, since
77781         we can't rely on the value of the vmt_length member in the last
77782         entry.  On some systems doing so could result in exhausting
77783         virtual memory.  Based in part on a patch from Mike Jetzer.
77784
77785 2003-08-14  Jim Meyering  <jim@meyering.net>
77786         and Paul Eggert  <eggert@twinsun.com>
77787
77788         Merges from coreutils, plus other fixes.
77789         * lib/physmem.c: Merge in portability changes from gcc/libiberty
77790         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
77791         for credits and details.  Thanks to Kaveh Ghazi for helping
77792         to keep these files in sync.
77793         (ARRAY_SIZE): Define it.
77794         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
77795         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
77796         (memcasecmp): Don't assume size_t fits in unsigned int.
77797         Remove casts and duplicate code.
77798         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
77799         (memcpy): Remove definition.
77800         Merge in some clean-up and optimization changes from glibc.
77801         [BLOCKSIZE]: Move definition to top of file.
77802         Ensure that it is a multiple of 64.
77803         Rearrange loop exit tests so as to avoid performing an
77804         additional fread after encountering an error or EOF.
77805         * lib/md5.h (md5_uintptr): Define.
77806         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
77807         return to the initial working directory.  Preserve errno
77808         for caller.
77809         * lib/idcache.c: Include "xalloc.h".
77810         (xmalloc, xrealloc): Remove decls.
77811         (getuser): Remove casts no longer required in C89.
77812         * lib/human.c: Include stdio.h, for sprintf.
77813         * lib/group-member.c: Include "xalloc.h".
77814         (xmalloc, xrealloc): Remove decls.
77815         (get_group_info): Remove casts no longer required in C89.
77816         * lib/getusershell.c (readname): Remove casts no longer required in
77817         C89.
77818         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
77819         * lib/getline.c: Whitespace fix, from coreutils.
77820
77821 2003-08-13  Paul Eggert  <eggert@twinsun.com>
77822
77823         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
77824         Check for isascii.
77825
77826         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
77827         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
77828         Undo previous (whitespace-only) change.
77829
77830 2003-08-13  Paul Eggert  <eggert@twinsun.com>
77831
77832         * lib/exclude.c: Include <ctype.h>
77833         (IN_CTYPE_DOMAIN): New macro.
77834         (is_space): New fn.
77835         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
77836         and empty lines.
77837
77838         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
77839         Undo previous (whitespace-only) change.
77840
77841 2003-08-13  Paul Eggert  <eggert@twinsun.com>
77842
77843         * config/srclist-update: Change update back to the old behavior,
77844         leaving whitespace alone.  Use one 'sed' command rather than a
77845         pipeline.
77846         (fixlicense): Now a variable, not a function.
77847         (remove_trailing_blanks): Remove.
77848         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
77849         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
77850         Undo previous (whitespace-only) change.
77851
77852 2003-08-12  Paul Eggert  <eggert@twinsun.com>
77853
77854         Merge from coreutils.
77855         * modules/euidaccess: Add lib_SOURCES, include for new
77856         file euidaccess.h
77857
77858 2003-08-12  Paul Eggert  <eggert@twinsun.com>
77859
77860         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
77861         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
77862         Normalize leading white space and remove trailing white space.
77863
77864         Merge from coreutils
77865         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
77866
77867         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
77868         0.12.1.  These files are now being upgraded automatically by
77869         ../config/srclist-update.
77870
77871 2003-08-12  Paul Eggert  <eggert@twinsun.com>
77872
77873         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
77874         Normalize leading white space and remove trailing white space.
77875         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
77876         notice, as per ../config/srclist-update.
77877
77878         Merge from coreutils.
77879         * lib/euidaccess.h: New file.
77880         * lib/euidaccess.c: Include it.
77881         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
77882         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
77883         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
77884
77885 2003-08-12  Paul Eggert  <eggert@twinsun.com>
77886
77887         * config/srclist-update: Add copyright notice.
77888         (remove_id_lines, remove_trailing_blanks): New constants.
77889         (fixfile): Use them to normalize spacing a bit in copied files.
77890         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
77891         Normalize leading white space and remove trailing white space.
77892
77893         * config/texinfo.tex: Sync with texinfo.
77894
77895         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
77896         strtoul.c from libc, to merge coreutils whitespace changes.
77897
77898         * config/srclist.txt: Get the following m4 files from gettext:
77899         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
77900         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
77901         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
77902         wint_t.m4.
77903
77904 2003-08-12  Karl Berry  <karl@gnu.org>
77905
77906         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
77907         been made.
77908
77909 2003-08-11  Paul Eggert  <eggert@twinsun.com>
77910
77911         * modules/gnu-source, m4/gnu-source.m4:
77912         Remove; we're assuming Autoconf 2.54 or later now.
77913         Suggested by Bruno Haible.
77914         * MODULES.html.sh (func_all_modules): Remove gnu-source.
77915
77916 2003-08-11  Bruno Haible  <bruno@clisp.org>
77917
77918         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
77919
77920 2003-08-11  Bruno Haible  <bruno@clisp.org>
77921
77922         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
77923         (vasnprintf): Use it instead of wcslen.
77924
77925 2003-08-11  Bruno Haible  <bruno@clisp.org>
77926
77927         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
77928         value to ensure that _Bool promotes to int. Use #define for _Bool when
77929         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
77930
77931 2003-08-10  Karl Berry  <karl@gnu.org>
77932
77933         * lib/regex.h: update from libc (whitespace fix).
77934
77935 2003-08-09  Paul Eggert  <eggert@twinsun.com>
77936
77937         Merge some files from coreutils.  These changes were
77938         originally made by Jim Meyering.
77939         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
77940         many older Unixes require this.
77941         * lib/alloca.c (alloca): Remove cast to argument of free;
77942         no longer needed in C89.
77943         * lib/alloca_.h, regex.h: Fix white space to match
77944         what GNU indent does.
77945
77946 2003-08-09  Paul Eggert  <eggert@twinsun.com>
77947
77948         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
77949         apparently Emacs's Unicode mode got confused before my 2003-08-05
77950         checkin.
77951
77952 2003-08-08  Paul Eggert  <eggert@twinsun.com>
77953
77954         * m4/extensions.m4: New file.
77955         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
77956         Require gl_USE_SYSTEM_EXTENSIONS.
77957         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
77958         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
77959
77960 2003-08-08  Paul Eggert  <eggert@twinsun.com>
77961
77962         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
77963         * modules/extensions, modules/gnu-source: New files.
77964         * modules/timespec, modules/unlocked-io: Depend on extensions.
77965
77966 2003-08-07  Paul Eggert  <eggert@twinsun.com>
77967
77968         * modules/restrict: New file.
77969         * MODULES.html.sh (func_all_modules): Add restrict.
77970         * modules/regex: Depend on restrict.
77971
77972 2003-08-07  Paul Eggert  <eggert@twinsun.com>
77973
77974         * m4/restrict.m4: New file.
77975         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
77976
77977 2003-08-07  Bruno Haible  <bruno@clisp.org>
77978
77979         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
77980         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
77981
77982 2003-08-07  Bruno Haible  <bruno@clisp.org>
77983
77984         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
77985         makes the module 'getndelim2' compatible with the module 'getline'.
77986
77987 2003-08-05  Paul Eggert  <eggert@twinsun.com>
77988
77989         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
77990         byte with "\201" to avoid glitches when editing that source file
77991         with multi-gnome-terminal.
77992
77993 2003-08-05  Paul Eggert  <eggert@twinsun.com>
77994
77995         * lib/bumpalloc.h: Remove.
77996
77997 2003-08-05  Paul Eggert  <eggert@twinsun.com>
77998
77999         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
78000         * modules/bumpalloc: Remove.
78001
78002 2003-08-04  Paul Eggert  <eggert@twinsun.com>
78003
78004         * lib/getloadavg.c: Change copyright notice and spacing to conform to
78005         GNU coding style.
78006
78007         Merge from coreutils.
78008         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
78009         1. From glibc.
78010         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
78011         from Karl Berry, implemented by Jim Meyering.
78012         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
78013         from Dmitry V. Levin.
78014         Remove anachronistic cast of xrealloc.
78015         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
78016         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
78017         type. Otherwise, it wouldn't compile with at least /bin/cc on
78018         ymp-cray-unicos9.0.2.X.
78019         Combine two mostly-identical uses of alloca into one.
78020         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
78021
78022 2003-08-04  Dave Love  <d.love@dl.ac.uk>
78023
78024         [From Emacs.]
78025
78026         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
78027         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
78028         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
78029         obsolete NLIST_NAME_UNION.
78030         [__GNU__]: Undef BSD and FSCALE.
78031         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
78032
78033 2003-08-03  Paul Eggert  <eggert@twinsun.com>
78034
78035         * lib/stdbool_.h (_Bool): Make it signed char, instead of
78036         an enum type, so that it's guaranteed to promote to int.  See:
78037         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
78038
78039 2003-08-03  Karl Berry  <karl@gnu.org>
78040
78041         * config/depcomp: update from automake.
78042
78043 2003-07-31  Paul Eggert  <eggert@twinsun.com>
78044
78045         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
78046         (strerror): Don't assume that a printable int fits in 14 bytes.
78047
78048 2003-07-31  Bruno Haible  <bruno@clisp.org>
78049
78050         * modules/getpass-gnu: New file.
78051         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
78052
78053 2003-07-31  Bruno Haible  <bruno@clisp.org>
78054
78055         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
78056
78057 2003-07-24  Karl Berry  <karl@gnu.org>
78058
78059         * config/missing: update from automake.
78060
78061 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
78062             Bruno Haible  <bruno@clisp.org>
78063
78064         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
78065         * lib/getline.c (getline, getdelim): Likewise.
78066         Remove _GNU_SOURCE define; now it's defined in config.h through
78067         m4/getline.m4.
78068
78069 2003-07-23  Karl Berry  <karl@gnu.org>
78070
78071         * config/config.sub: update from prep.
78072
78073 2003-07-22  Paul Eggert  <eggert@twinsun.com>
78074
78075         * modules/xalloc (Depends-on): Add exitfail.
78076         * modules/xmemcoll: Likewise.
78077
78078 2003-07-22  Paul Eggert  <eggert@twinsun.com>
78079
78080         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
78081         over-parenthesization in macros.
78082
78083         Sync with coreutils.
78084
78085         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
78086         required by C99.
78087
78088         Use `exit_failure' for xalloc and xmemcoll instead of their own
78089         private exit-failure variables.
78090         * lib/xalloc.h (xalloc_exit_failure): Remove.
78091         * lib/xmalloc.c: Likewise.  Include exitfail.h.
78092         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
78093         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
78094         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
78095         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
78096
78097 2003-07-20  Jim Meyering  <jim@meyering.net>
78098
78099         * modules/closeout (Depends-on): Add exitfail.
78100         Suggestion from Bruno Haible.
78101
78102 2003-07-19  Karl Berry  <karl@gnu.org>
78103
78104         * config/config.sub: update from prep.
78105
78106 2003-07-18  Paul Eggert  <eggert@twinsun.com>
78107
78108         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
78109         Remove.
78110         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
78111         to test that it can stand by itself.  Include "exitfail.h".
78112         Clients should set exit_failure instead.
78113         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
78114
78115 2003-07-18  Bruno Haible  <bruno@clisp.org>
78116
78117         * modules/getndelim2: New file.
78118         * modules/getline: Share files with module getndelim2.
78119         * modules/getnline: Depend on getndelim2 instead of sharing files with
78120         it. Add getnline.c to lib_SOURCES.
78121         * MODULES.html.sh (func_all_modules): Add getndelim2.
78122
78123 2003-07-18  Bruno Haible  <bruno@clisp.org>
78124
78125         * m4/getndelim2.m4: New file.
78126         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
78127         invoke gl_PREREQ_GETNDELIM2.
78128         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
78129         gl_PREREQ_GETNDELIM2.
78130         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
78131         gl_GETNDELIM2.
78132
78133 2003-07-18  Bruno Haible  <bruno@clisp.org>
78134
78135         * lib/getndelim2.h: New file.
78136         * lib/getndelim2.c: Make into a module of its own. Include config.h,
78137         getndelim2.h.
78138         (getndelim2): Make non-static. Change return type to ssize_t.
78139         * lib/getline.h: Change argument names.
78140         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
78141         * lib/getnline.c: Include getndelim2.h.
78142
78143 2003-07-18  Andreas Schwab  <schwab@suse.de>
78144
78145         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
78146
78147 2003-07-17  Karl Berry  <karl@gnu.org>
78148
78149         * config/config.sub: update from prep.
78150
78151 2003-07-17  Bruno Haible  <bruno@clisp.org>
78152
78153         * modules/getnline: New file.
78154         * modules/getline: Add lib/getndelim2.c to source file list.
78155         * MODULES.html.sh (func_all_modules): Add getnline.
78156
78157 2003-07-17  Bruno Haible  <bruno@clisp.org>
78158
78159         * m4/getnline.m4: New file.
78160
78161 2003-07-17  Bruno Haible  <bruno@clisp.org>
78162
78163         * m4/Makefile.am.in: Remove file.
78164         * m4/Makefile.am: Remove file.
78165         * m4/Makefile.in: Remove file.
78166
78167 2003-07-17  Bruno Haible  <bruno@clisp.org>
78168
78169         * lib/getnline.h: New file.
78170         * lib/getnline.c: New file.
78171         * lib/getndelim2.c: New file, extracted from getline.c.
78172         (getndelim2): Renamed from getdelim2, with added nmax argument.
78173         * lib/getline.c: Include getndelim2.c.
78174         (getdelim2): Moved out to getndelim2.c.
78175         (getline, getdelim): Update.
78176
78177 2003-07-17  Bruno Haible  <bruno@clisp.org>
78178
78179         * lib/Makefile.am: Remove file.
78180         * lib/Makefile.in: Remove file.
78181
78182 2003-07-17  Bruno Haible  <bruno@clisp.org>
78183
78184         * configure.in: Remove file.
78185         * Makefile.in: Remove file.
78186
78187 2003-07-17  Bruno Haible  <bruno@clisp.org>
78188
78189         * MODULES.html.sh: Put the </BODY> right before </HTML>.
78190
78191 2003-07-16  Karl Berry  <karl@gnu.org>
78192
78193         * config/srclist-update: was running fixlicense twice, which caused
78194                 texinfo.tex to be nullified for some reason.  Simplify,
78195                 $gplsrc is no longer needed as far as I can see?
78196
78197 2003-07-16  Jim Meyering  <jim@meyering.net>
78198
78199         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
78200
78201 2003-07-15  Paul Eggert  <eggert@twinsun.com>
78202
78203         * config/srclist.txt: Get the following files from gettext-runtime/intl
78204         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
78205         ref-del.sin.  From Bruno Haible.
78206         * config/srclist-update (fixfile): Change grep pattern again, since the
78207         previous fix didn't work (there was another trailing $).  Use
78208         '[$]' to escape the $s.
78209
78210 2003-07-15  Karl Berry  <karl@gnu.org>
78211
78212         * lib/vasnprintf.c: update from gettext.
78213
78214 2003-07-15  Karl Berry  <karl@gnu.org>
78215
78216         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
78217         gets expanded when surrounded by '$'.
78218
78219 2003-07-15  Jim Meyering  <jim@meyering.net>
78220
78221         * modules/save-cwd: Don't depend on error.  From Derek Price.
78222
78223 2003-07-15  Jim Meyering  <jim@meyering.net>
78224
78225         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
78226
78227 2003-07-14  Simon Josefsson  <jas@extundo.com>
78228
78229         * modules/mempcpy: New file.
78230         * MODULES.html.sh (func_all_modules): Add mempcpy.
78231
78232 2003-07-14  Simon Josefsson  <jas@extundo.com>
78233
78234         * m4/mempcpy.m4: New file.
78235
78236 2003-07-14  Simon Josefsson  <jas@extundo.com>
78237
78238         * lib/mempcpy.h: New file.
78239         * lib/mempcpy.c: New file.
78240
78241 2003-07-14  Paul Eggert  <eggert@twinsun.com>
78242
78243         * modules/getdate, modules/posixtm: Depend on mktime.
78244
78245 2003-07-14  Paul Eggert  <eggert@twinsun.com>
78246
78247         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
78248         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
78249         unicodeio.c, unicodeio.h, unlocked-io.h:
78250         Switch from LGPL to GPL.
78251
78252 2003-07-14  Paul Eggert  <eggert@twinsun.com>
78253
78254         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
78255         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
78256         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
78257         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
78258         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
78259         updated automatically by ../config/srclist-update.  This changes
78260         their license from LPGL to GPL.
78261
78262 2003-07-14  Paul Eggert  <eggert@twinsun.com>
78263
78264         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
78265         assumed to refer to the root of the most recent stable gettext version.
78266         * config/srclistvars.sh: Add defaults for eggert.
78267         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
78268         Match "This program" as well as "The program".  This is needed
78269         for gettext.
78270
78271 2003-07-14  Jim Meyering  <jim@meyering.net>
78272
78273         Don't emit diagnostics.  Let callers do that.
78274         * lib/save-cwd.c: Don't include "error.h".
78275         (save_cwd): Don't call error.  Ensure that errno is valid
78276         when returning nonzero.
78277
78278         * lib/save-cwd.h (restore_cwd): Update prototype.
78279         * lib/save-cwd.c (restore_cwd): Remove two parameters.
78280         Simplify.  Don't call error upon failure.  Let callers do that.
78281         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
78282         when auditing is enabled.  But don't bother updating the #if.
78283
78284 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
78285
78286         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
78287         it breaks C++ compilation.
78288         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
78289
78290 2003-07-10  Simon Josefsson  <jas@extundo.com>
78291
78292         * modules/strchrnul (Makefile.am): Add strchrnul.h.
78293
78294 2003-07-10  Jim Meyering  <jim@meyering.net>
78295
78296         * m4/clock_time.m4: Remove trailing blank.
78297         * m4/intmax_t.m4: Likewise.
78298
78299 2003-07-10  Jim Meyering  <jim@meyering.net>
78300
78301         * lib/vasnprintf.c: Remove trailing blanks.
78302         Make cpp indentation consistent.
78303
78304 2003-07-09  Paul Eggert  <eggert@twinsun.com>
78305
78306         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
78307         posixver.c, strftime.c, strnlen.c, strverscmp.c:
78308         Switch from LGPL to GPL.
78309
78310 2003-07-09  Paul Eggert  <eggert@twinsun.com>
78311
78312         * config/srclist.txt: Sort sublists.  Add
78313         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
78314         that differ from gnulib for one reason or another; we'd like this list
78315         to be smaller but for now let's document what we have.
78316
78317 2003-07-08  Paul Eggert  <eggert@twinsun.com>
78318
78319         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
78320         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
78321         and sweeter "eval x=$x".
78322         * config/srclist.txt: Get lib/argp* from glibc.
78323
78324 2003-07-07  Paul Eggert  <eggert@twinsun.com>
78325
78326         * lib/mktime.c: Fix some boundary cases and remove need for floating
78327         point.
78328
78329         Issue a compile-time diagnostic if time_t is floating point, or if
78330         two's complement arithmetic is not in effect, or if arithmetic
78331         right shift does not propagate the sign.  These assumptions were
78332         all in the original code but they weren't checked.
78333
78334         (TIME_T_MIDPOINT, verify): New macros.
78335         (__isleap): Remove; it has integer overflow problems.
78336         (leapyear): New function, without those problems.
78337         (ydhms_tm_diff): Remove; splitting into two parts.
78338         (ydhms_diff): New function, containing the arithmetic part of
78339         the old ydhms_tm_diff function.  Issue a compile-time
78340         diagnostic if we are not using C99 integer division.
78341         Avoid casts when possible.
78342         (guess_time_tm): New function, containing the checking part of
78343         the old ydhms_tm_diff function.  Return the new value, rather than
78344         the difference between it and the old.  Accept a new argument T
78345         so that *T specifies the old value.  Check for overflow in the result.
78346
78347         (__mktime_internal): Use a time_t offset, not a long int offset.
78348         This undoes the 2003-06-04 change, which is no longer needed now
78349         that we have better overflow checking.
78350         (localtime_offset): Likewise.
78351
78352         (__mktime_internal): Avoid harmful overflow on hosts where time_t
78353         and long are 64-bit but int is only 32-bit.
78354         (ydhms_diff): Use long int to store year1 and yday1.
78355         Issue a compile-time diagnostic if long int is not wide enough.
78356
78357         (__mktime_internal): Use long int to store adjusted year and yday.
78358         Use plain C rather than preprocessor commands, if that doesn't
78359         affect efficiency.
78360         Check for overflow (and try to repair) after each probe
78361         rather than checking only at the very end.  This avoids some bugs
78362         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
78363         does not equal GMT offset at maximum time).
78364         Use integer to check for overflow rather than floating point; this
78365         is more portable to non-IEEE hosts, and is a tad faster.
78366         When we detect that we are oscillating between two values,
78367         don't check whether tm_isdst has the requested value, since
78368         we already know the answer.  When tm_isdst has the wrong value,
78369         use a different heuristic to find the right one, based on the
78370         extreme values actually observed in practice in tz2003a,
78371         rather than the (overly optimistic) "previous 3 calendar quarters".
78372
78373         (not_equal_tm, print_tm, check_result): Use "const T" rather than
78374         "T const" to accommodate glibc style.
78375         (check_result): Use less-confusing report format.  "long" -> "long int.
78376         (main): Likewise.
78377         Don't loop if the iteration overflows time_t.
78378         Allow a negative step in the iteration.
78379
78380 2003-07-06  Karl Berry  <karl@gnu.org>
78381
78382         * config/depcomp: update from automake.
78383         * config/config.sub: update from prep.
78384
78385 2003-07-03  Karl Berry  <karl@gnu.org>
78386
78387         * config/config.guess: update from prep.
78388
78389 2003-07-01  Paul Eggert  <eggert@twinsun.com>
78390
78391         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
78392         xreadlink.c now includes it unconditionally.
78393
78394 2003-07-01  Paul Eggert  <eggert@twinsun.com>
78395
78396         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
78397         having it depend on HAVE_SYS_TYPES_H.
78398
78399 2003-07-01  Bruno Haible  <bruno@clisp.org>
78400
78401         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
78402         <sys/types.h> should be sufficient.
78403         Reported by Paul Eggert.
78404
78405 2003-06-26  Karl Berry  <karl@gnu.org>
78406
78407         * config/depcomp: update from automake.
78408
78409 2003-06-26  Bruno Haible  <bruno@clisp.org>
78410
78411         * modules/human: Depend on module stdbool.
78412
78413 2003-06-25  Bruno Haible  <bruno@clisp.org>
78414
78415         * modules/readlink: New file.
78416         * modules/xreadlink: Depend on it.
78417         * MODULES.html.sh (func_all_modules): Add readlink.
78418
78419 2003-06-25  Bruno Haible  <bruno@clisp.org>
78420
78421         * m4/readlink.m4: New file.
78422
78423 2003-06-25  Bruno Haible  <bruno@clisp.org>
78424
78425         * lib/readlink.c: New file.
78426
78427 2003-06-22  Karl Berry  <karl@gnu.org>
78428
78429         * config/srclist.txt: update mkinstalldirs from automake.
78430         * config/mkinstalldirs: update.
78431
78432 2003-06-22  Bruno Haible  <bruno@clisp.org>
78433
78434         Portability to mingw32.
78435         * m4/ssize_t.m4: New file, from GNU gettext.
78436         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
78437         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
78438
78439 2003-06-22  Bruno Haible  <bruno@clisp.org>
78440
78441         * modules/safe-read: Add m4/ssize_t.m4.
78442         * modules/xreadlink: Add m4/ssize_t.m4.
78443
78444 2003-06-20  Bruno Haible  <bruno@clisp.org>
78445
78446         Assume C89, so PARAMS isn't needed.
78447         * lib/unicodeio.h (PARAMS): Remove.
78448         * lib/unicodeio.c: Don't use PARAMS.
78449
78450 2003-06-18  Karl Berry  <karl@gnu.org>
78451
78452         * config/config.{guess,sub}: update from prep.
78453
78454 2003-06-18  Jim Meyering  <jim@meyering.net>
78455
78456         Merge changes from coreutils.
78457         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
78458         Remove explicit declarations of xmalloc and realloc.
78459         Include xalloc.h.
78460         (read_utmp): Remove anachronistic cast of xmalloc.
78461
78462 2003-06-17  Paul Eggert  <eggert@twinsun.com>
78463
78464         Assume C89, so PARAMS isn't needed.
78465         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
78466         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
78467         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
78468         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
78469         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
78470         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
78471         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
78472         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
78473         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
78474         lib/xstrtod.h, lib/xstrtol.h: Likewise.
78475         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
78476         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
78477         no longer needed. Anyway, config.h should always be included before any
78478         other file.
78479
78480 2003-06-11  Simon Josefsson  <jas@extundo.com>
78481
78482         * modules/sysexits: New file.
78483         * MODULES.html.sh (func_all_modules): Add sysexits.
78484
78485 2003-06-11  Simon Josefsson  <jas@extundo.com>
78486
78487         * lib/sysexit_.h: New file.
78488
78489 2003-06-11  Derek Price  <derek@ximbiot.com>
78490
78491         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
78492         necessary.
78493
78494 2003-06-11  Bruno Haible  <bruno@clisp.org>
78495
78496         * m4/sysexits.m4: New file.
78497
78498 2003-06-10  Simon Josefsson  <jas@extundo.com>
78499
78500         * lib/argp.h: New file, from glibc.
78501         * lib/argp-ba.c: New file, from glibc.
78502         * lib/argp-eexst.c: New file, from glibc.
78503         * lib/argp-fmtstream.c: New file, from glibc.
78504         * lib/argp-fmtstream.h: New file, from glibc.
78505         * lib/argp-fs-xinl.c: New file, from glibc.
78506         * lib/argp-help.c: New file, from glibc.
78507         * lib/argp-namefrob.h: New file, from glibc.
78508         * lib/argp-parse.c: New file, from glibc.
78509         * lib/argp-pv.c: New file, from glibc.
78510         * lib/argp-pvh.c: New file, from glibc.
78511         * lib/argp-xinl.c: New file, from glibc.
78512
78513 2003-06-10  Simon Josefsson  <jas@extundo.com>
78514
78515         * modules/strchrnul: New file.
78516
78517 2003-06-10  Simon Josefsson  <jas@extundo.com>
78518
78519         * modules/argp: New file.
78520
78521 2003-06-10  Simon Josefsson  <jas@extundo.com>
78522
78523         * m4/strchrnul.m4: New file.
78524
78525 2003-06-10  Simon Josefsson  <jas@extundo.com>
78526
78527         * lib/strchrnul.h: New file.
78528         * lib/strchrnul.c: New file.
78529
78530 2003-06-10  Bruno Haible  <bruno@clisp.org>
78531
78532         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
78533
78534 2003-06-07  Karl Berry  <karl@gnu.org>
78535
78536         * config/config.{guess,sub}: update from prep.
78537
78538 2003-06-07  Jim Meyering  <jim@meyering.net>
78539
78540         * modules/strtod: Use $(...) notation, not @...@ for
78541         AC_REPLACE'd variables.
78542         * modules/localcharset: Likewise.
78543
78544 2003-06-07  Jim Meyering  <jim@meyering.net>
78545
78546         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
78547         in place of my name in the copyright comment.
78548         Remove definition and uses of __P.
78549
78550         From coreutils.
78551         * lib/stat.c: Don't declare xmalloc explicitly.
78552         Instead, include "xalloc.h".
78553         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
78554         xrealloc, and xcalloc return values.
78555         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
78556         Improve comment.
78557         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
78558
78559 2003-06-07  Bruno Haible  <bruno@clisp.org>
78560
78561         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
78562         avoid AC_CONFIG_LINKS.
78563         * modules/fnmatch (Makefile.am): Use explicit creation rule for
78564         fnmatch.h, to avoid AC_CONFIG_LINKS.
78565         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
78566
78567 2003-06-07  Bruno Haible  <bruno@clisp.org>
78568
78569         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
78570         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
78571         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
78572         directory.
78573         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
78574         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
78575         directory.
78576
78577 2003-06-06  Jim Meyering  <jim@meyering.net>
78578
78579         Merge from coreutils.
78580         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
78581         Consolidate declarations and initializations of *_base* locals.
78582
78583         Merge from coreutils.
78584         This avoids a core dump on systems without GNU putenv,
78585         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
78586         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
78587         (unsetenv): New static function, from GNU libc.
78588         (rpl_putenv): Use it.
78589
78590         * lib/modechange.c: Remove trailing blanks.
78591
78592         Merge from coreutils.
78593         * lib/fsusage.c: Remove declaration of statfs.
78594         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
78595
78596         * lib/posixtm.c: Include <stdbool.h> unconditionally.
78597
78598 2003-06-06  Jim Meyering  <jim@meyering.net>
78599
78600         * lib/stdbool_.h: Renamed from stdbool.h.in.
78601
78602 2003-06-06  Jim Meyering  <jim@meyering.net>
78603             Bruno Haible  <bruno@clisp.org>
78604
78605         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
78606         Adjust Makefile.am snippet not to redirect directly to target.
78607         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
78608
78609 2003-06-05  Paul Eggert  <eggert@twinsun.com>
78610
78611         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
78612         mismatch, look in future quarters as well as past.  This fixes a
78613         bug when processing fall-backwards gaps immediately after a long
78614         period of daylight-saving time.
78615
78616         * lib/mktime.c: Assume freestanding C89 or better.
78617         (HAVE_LIMITS_H): Remove.  Assume it's 1.
78618         (__P): Remove; not used.
78619         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
78620         (mktime, not_equal_tm, print_tm, check_result,
78621         main): Use prototypes.  Use const * where appropriate.
78622         (main): Fix typo in testing code that uncovered by above changes.
78623         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
78624
78625 2003-06-04  Paul Eggert  <eggert@twinsun.com>
78626
78627         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
78628         locale.h, localeconv.  This merges changes from coreutils.
78629
78630         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
78631         It can be removed after the next Autoconf is released.
78632         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
78633         needed.
78634
78635 2003-06-04  Paul Eggert  <eggert@twinsun.com>
78636
78637         * lib/mktime.c: Fix Debian bug 177940
78638         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
78639         (localtime_offset): Now long int, not time_t, because we want it
78640         to be guaranteed to be signed.  All uses changed.
78641         (__mktime_internal): If overflow would occur when adding offset,
78642         don't add it.
78643
78644         Merge 'human' changes from coreutils.  Rewrite to support
78645         locale-specific notations like thousands separators.
78646         * lib/human.c: Simplify authorship notice.
78647         Include human.h immediately after config.h.
78648         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
78649         <limits.h>: Do not include, since human.h does.
78650         (SIZE_MAX, UINTMAX_MAX): New macros.
78651         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
78652         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
78653         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
78654         (power_letter): Renamed from suffixes.
78655         (generate_suffix_backwards): Remove.
78656         (adjust_value): Now takes int style (because of human.h changes)
78657         and long double value (for greater precision on some platforms).
78658         (group_number): New function.
78659         (human_readable): Use it.  Use integer options, not enum.
78660         Put the options before the sizes in the arg list.
78661         Support all the new options.
78662         The old human_readable function has been removed;
78663         use inttostr.h instead.
78664         (human_readable, default_block_size, humblock):
78665         Use uintmax_t, not int, for block sizes.
78666         (human_readable_inexact, block_size_types): Remove.
78667         (block_size_opts): New constant.
78668         (human_options): Renamed from human_block_size, with new signature
78669         that allows block sizes up to UINTMAX_MAX.  All callers changed.
78670         * lib/human.h: Add copyright and authorship notice.
78671         Include <limits.h> and <stdbool.h> unconditionally.
78672         (PARAMS): Remove.  All uses removed.
78673         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
78674         (enum human_inexact_style): Remove tag; now a nameless enum.
78675         (human_floor, human_ceiling, human_round_to_even): Now have
78676         values 2, 0, 1 rather than -1, 1, 0.
78677         (human_group_digits, human_suppress_point_zero, human_autoscale,
78678         human_base_1024, human_SI, human_B): New constants.
78679         (human_readable_inexact, human_block_size): Remove.
78680         (human_readable): Size args are now uintmax_t, not int.
78681         (human_options): New decl.
78682
78683         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
78684         unnecessary now that we assume C89 or better.  This change
78685         imported from coreutils.
78686
78687         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
78688         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
78689         in the 2003-05-30 sync from glibc.
78690
78691         .h files should stand alone, but we shouldn't include <sys/types.h>
78692         if we can get away with just <stddef.h>.
78693
78694         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
78695         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
78696         rather than <sys/types.h>, as we merely need size_t.
78697         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
78698         to get size_t.
78699         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
78700         Include <stdio.h>, to get FILE.
78701         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
78702         memcasecmp.h has included <stddef.h> and all we need is size_t.
78703         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
78704         our interface, instead of including <sys/types.h>
78705
78706 2003-06-04  Paul Eggert  <eggert@twinsun.com>
78707
78708         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
78709         now, as glibc mktime is buggy on non-glibc systems.
78710
78711 2003-06-03  Karl Berry  <karl@gnu.org>
78712
78713         * config/config.sub: update from prep.
78714
78715 2003-06-02  Paul Eggert  <eggert@twinsun.com>
78716
78717         [from coreutils]
78718         Fix some minor time-related bugs with POSIX time arguments.
78719         Some valid time stamps were being rejected (notably -1, and
78720         time stamps before 1900 on 64-bit hosts).  And some invalid
78721         time stamps were being accepted, e.g. September 31.
78722
78723         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
78724         that we can return (time_t) -1 successfully.
78725         * lib/posixtm.c: Likewise.
78726         [HAVE_STDBOOL_H]: Include <stdbool.h>.
78727         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
78728         (t): Remove static var.
78729         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
78730         of static var.  All uses changed.
78731         (year): Do not reject years before 1900; they can occur with
78732         64-bit time_t.
78733         (posix_time_parse): Do not check for out-of-range components;
78734         that is now the caller's responsibility, since our checks were
78735         only approximations.
78736         (posixtime): Use mktime to check for out-of-range components,
78737         since it knows them exactly.
78738         If mktime returns (time_t) -1, check whether an error actually occurred
78739         by invoking localtime on -1.
78740         (main) [TEST_POSIXTIME]: Check for input data errors, and report
78741         posixtime failures better.
78742         Improve the test data (in comments only).
78743
78744 2003-06-02  Karl Berry  <karl@gnu.org>
78745
78746         * config/mkinstalldirs (version): new variable.
78747         (--version): new option.
78748         (usage): improve message.
78749
78750 2003-05-30  Karl Berry  <karl@gnu.org>
78751
78752         * lib/mktime.c: update from libc.
78753
78754 2003-05-30  Bruno Haible  <bruno@clisp.org>
78755
78756         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
78757         * config/config.rpath: Upgrade to gettext-0.12.1.
78758
78759 2003-05-30  Bruno Haible  <bruno@clisp.org>
78760
78761         * m4/gettext.m4: Upgrade to gettext-0.12.1.
78762         * m4/nls.m4: New file, from gettext-0.12.1.
78763         * m4/po.m4: New file, from gettext-0.12.1.
78764         * m4/progtest.m4: Upgrade to gettext-0.12.1.
78765
78766 2003-05-30  Bruno Haible  <bruno@clisp.org>
78767
78768         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
78769         * lib/localcharset.h: Likewise.
78770         * lib/localcharset.c: Likewise.
78771
78772 2003-05-29  Karl Berry  <karl@gnu.org>
78773
78774         * config/config.rpath: update from gettext.
78775
78776 2003-05-28  Paul Eggert  <eggert@twinsun.com>
78777
78778         Assume the headers required for C89 freestanding compilers.
78779         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
78780         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
78781         * m4/human.m4 (gl_HUMAN): Likewise.
78782         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
78783         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
78784         * m4/userspec.m4 (gl_USERSPEC): Likewise.
78785         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
78786         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
78787         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
78788
78789 2003-05-28  Paul Eggert  <eggert@twinsun.com>
78790
78791         Assume the headers required for C89 freestanding compilers.
78792         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
78793         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
78794         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
78795         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
78796         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
78797         define, since <limits.h> is guaranteed to do that.
78798         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
78799         * lib/exclude.c: Include <stdbool.h> unconditionally.
78800         * lib/tempname.c: Include <stddef.h> unconditionally.
78801         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
78802         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
78803         <stddef.h> does that.
78804         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
78805         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
78806         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
78807         needed.
78808         * lib/xstrtol.c: Likewise.
78809         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
78810         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
78811
78812         * lib/addext.c (addext): Use assignment rather than cast, to avoid
78813         warnings on some platforms.
78814
78815         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
78816         arbitrarily.
78817
78818 2003-05-26  Jim Meyering  <jim@meyering.net>
78819
78820         Merge in a change from coreutils:
78821         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
78822         that is guaranteed to be `no'.  Use `no_such_member' to indicate
78823         that condition, rather than `-1' which is slightly misleading.
78824         Change the name of the cache variable to have the gl_ prefix.
78825         Prompted by a patch from Richard Dawe for DJGPP.
78826
78827 2003-05-24  Karl Berry  <karl@gnu.org>
78828
78829         * config/config.guess: update from prep.
78830
78831 2003-05-22  Karl Berry  <karl@gnu.org>
78832
78833         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
78834
78835 2003-05-20  Karl Berry  <karl@gnu.org>
78836
78837         * config/config.guess: update from prep.
78838
78839 2003-05-18  Karl Berry  <karl@gnu.org>
78840
78841         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
78842         might actually be set by the user.
78843
78844         * config/depcomp, install-sh, mdate-sh: update from automake.
78845
78846 2003-05-17  Bruno Haible  <bruno@clisp.org>
78847
78848         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
78849         invalid expansion for AC_EGREP_CPP.
78850         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
78851         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
78852         Suggested by Akim Demaille <akim@epita.fr> in
78853         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
78854
78855 2003-05-12  Jim Meyering  <jim@meyering.net>
78856
78857         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
78858         the space-padded-by-default conversion specifiers, %e, %k, %l.
78859
78860 2003-05-12  Bruno Haible  <bruno@clisp.org>
78861
78862         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
78863         the string is longer than 4 KB.
78864
78865 2003-05-11  Karl Berry  <karl@gnu.org>
78866
78867         * config/config.{guess,sub}: update from prep.
78868
78869 2003-05-09  Bruno Haible  <bruno@clisp.org>
78870
78871         * modules/error: Add m4/strerror_r.m4 to file list.
78872
78873 2003-05-03  Bruno Haible  <bruno@clisp.org>
78874
78875         Upgrade to Unicode-4.0.
78876         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
78877         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
78878         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
78879         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
78880         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
78881         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
78882         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
78883         Change width of U+E0100..U+E01EF from 1 to 0.
78884
78885 2003-04-25  Jim Meyering  <jim@meyering.net>
78886
78887         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
78888         of type size_t, not int.
78889
78890 2003-04-25  Bruno Haible  <bruno@clisp.org>
78891
78892         * lib/copy-file.c: Include <stddef.h>, for size_t.
78893
78894 2003-04-21  Paul Eggert  <eggert@twinsun.com>
78895
78896         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
78897         code which expansion is under static control.  Patch imported from
78898         Akim Demaille's patch to Bison; see
78899         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
78900
78901 2003-04-14  Bruno Haible  <bruno@clisp.org>
78902
78903         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
78904
78905 2003-04-11  Jim Meyering  <jim@meyering.net>
78906
78907         Merge changes from Coreutils.
78908
78909         2003-03-22  Jim Meyering  <jim@meyering.net>
78910
78911         * lib/strftime.c (widen): Cast alloca return value to proper type.
78912
78913         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
78914
78915         From GNU libc.
78916         * lib/strftime.c (my_strftime): Handle very large width
78917         specifications for numeric values correctly.  Improve checks for
78918         overflow.
78919
78920         2003-01-19  Jim Meyering  <jim@meyering.net>
78921
78922         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
78923         definitions.
78924         (nl_get_alt_digit) [! defined my_strftime]: Define.
78925         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
78926         _nl_get_alt_digit and _nl_get_walt_digit.
78927
78928         * lib/strftime.c (my_strftime): Merge in locale-related changes from
78929         libc. These changes have no effect outside of _LIBC.
78930
78931 2003-04-10  Bruno Haible  <bruno@clisp.org>
78932
78933         * modules/findprog: New file.
78934         * MODULES.html.sh (func_all_modules): Add it.
78935
78936 2003-04-10  Bruno Haible  <bruno@clisp.org>
78937
78938         * m4/findprog.m4: New file.
78939         * m4/eaccess.m4: New file.
78940
78941 2003-04-10  Bruno Haible  <bruno@clisp.org>
78942
78943         * lib/findprog.h: New file, from GNU gettext.
78944         * lib/findprog.c: New file, from GNU gettext.
78945
78946 2003-04-05  Jim Meyering  <jim@meyering.net>
78947
78948         Merge changes from Coreutils.
78949
78950         * lib/exclude.h (PARAMS): Remove definition and uses.
78951         * lib/exclude.c: Remove uses of `PARAMS'.
78952
78953         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
78954         Add test-cases for DOS filenames. Declare program_name.
78955         (main): Set up program_name.  Patch by Rich Dawe.
78956
78957         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
78958         error from mntctl.
78959         Use mntctl's return value to drive the entry-processing loop, since
78960         we can't rely on the value of the vmt_length member in the last
78961         entry.  On some systems doing so could result in exhausting
78962         virtual memory.  Based in part on a patch from Mike Jetzer.
78963
78964 2003-04-04  Bruno Haible  <bruno@clisp.org>
78965
78966         * modules/linebreak: New file.
78967         * MODULES.html.sh (func_all_modules): Add it.
78968
78969 2003-04-04  Bruno Haible  <bruno@clisp.org>
78970
78971         * m4/linebreak.m4: New file.
78972
78973 2003-04-04  Bruno Haible  <bruno@clisp.org>
78974
78975         * lib/linebreak.h: New file, from GNU gettext.
78976         * lib/linebreak.c: New file, from GNU gettext with slight
78977         modifications.
78978         * lib/lbrkprop.h: New file, from GNU gettext.
78979
78980 2003-04-03  Bruno Haible  <bruno@clisp.org>
78981
78982         * modules/utf8-ucs4: New file.
78983         * modules/utf16-ucs4: New file.
78984         * modules/ucs4-utf8: New file.
78985         * modules/ucs4-utf16: New file.
78986         * MODULES.html.sh (func_all_modules): Add them.
78987
78988 2003-04-03  Bruno Haible  <bruno@clisp.org>
78989
78990         * m4/utf-ucs4.m4: New file.
78991         * m4/ucs4-utf.m4: New file.
78992
78993 2003-04-03  Bruno Haible  <bruno@clisp.org>
78994
78995         * lib/utf8-ucs4.h: New file, from GNU gettext.
78996         * lib/utf16-ucs4.h: New file, from GNU gettext.
78997         * lib/ucs4-utf8.h: New file, from GNU gettext.
78998         * lib/ucs4-utf16.h: New file, from GNU gettext.
78999
79000 2003-04-02  Bruno Haible  <bruno@clisp.org>
79001
79002         * modules/binary-io: New file.
79003         * MODULES.html.sh (func_all_modules): Add it.
79004
79005 2003-04-02  Bruno Haible  <bruno@clisp.org>
79006
79007         * lib/binary-io.h: New file, from GNU gettext.
79008
79009 2003-04-01  Bruno Haible  <bruno@clisp.org>
79010
79011         * modules/pathname: New file.
79012         * MODULES.html.sh (func_all_modules): Add it.
79013
79014 2003-04-01  Bruno Haible  <bruno@clisp.org>
79015
79016         * lib/pathname.h: New file, from GNU gettext.
79017         * lib/concatpath.c: New file, from GNU gettext.
79018
79019 2003-03-30  Bruno Haible  <bruno@clisp.org>
79020
79021         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
79022
79023 2003-03-30  Bruno Haible  <bruno@clisp.org>
79024
79025         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
79026         function chown() doesn't exist.
79027
79028 2003-03-28  Bruno Haible  <bruno@clisp.org>
79029
79030         * modules/copy-file: New file.
79031         * MODULES.html.sh (func_all_modules): Add it.
79032
79033 2003-03-28  Bruno Haible  <bruno@clisp.org>
79034
79035         * m4/copy-file.m4: New file.
79036
79037 2003-03-28  Bruno Haible  <bruno@clisp.org>
79038
79039         * lib/copy-file.h: New file, from GNU gettext.
79040         * lib/copy-file.c: New file, from GNU gettext.
79041
79042 2003-03-18  Jim Meyering  <jim@meyering.net>
79043
79044         * lib/quote.c (quote_n): Fix typo in comment.
79045
79046 2003-03-18  Bruno Haible  <bruno@clisp.org>
79047
79048         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
79049         checking.
79050         * m4/onceonly_2_57.m4: Likewise.
79051
79052 2003-03-17  Bruno Haible  <bruno@clisp.org>
79053
79054         * m4/onceonly.m4: Require autoconf 2.54 or newer.
79055         (m4_quote): Remove macro.
79056         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
79057
79058 2003-03-14  Jim Meyering  <jim@meyering.net>
79059
79060         Merge changes from Coreutils.
79061         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
79062         to be const, in order to avoid warnings.
79063         (obstack_room): Likewise.
79064         (obstack_empty_p): Likewise.
79065
79066 2003-03-14  Bruno Haible  <bruno@clisp.org>
79067
79068         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
79069         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
79070
79071 2003-03-13  Paul Eggert  <eggert@twinsun.com>
79072
79073         Merge changes from Bison.
79074         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
79075         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
79076         when compiling Bison 1.875's `bitset bset = obstack_alloc
79077         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
79078         * lib/hash.c: Include <stdbool.h> unconditionally.
79079
79080 2003-03-13  Paul Eggert  <eggert@twinsun.com>
79081
79082         * m4/onceonly.m4 (m4_quote): New macro.
79083         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
79084         Quote AC_FOREACH variable-expansions properly.
79085
79086 2003-03-13  Paul Eggert  <eggert@twinsun.com>
79087
79088         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
79089
79090 2003-03-09  Paul Eggert  <eggert@twinsun.com>
79091
79092         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
79093         Reported by Bruce Becker; see:
79094         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
79095
79096 2003-03-03  Paul Eggert  <eggert@twinsun.com>
79097             Bruno Haible  <bruno@clisp.org>
79098
79099         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
79100         Reported by John Hughes, see
79101         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
79102
79103 2003-02-20  Bruno Haible  <bruno@clisp.org>
79104
79105         * MODULES.html.sh (func_all_modules): Add poll.
79106
79107 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
79108
79109         * modules/poll: New file.
79110
79111 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
79112
79113         * lib/poll_.h: New file.
79114         * lib/poll.c: New file.
79115
79116 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
79117
79118         * m4/poll.m4: New file.
79119
79120 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
79121
79122         * modules/mathl: New file.
79123
79124 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
79125
79126         * lib/mathl.h: New file.
79127         * lib/acosl.c: New file.
79128         * lib/asinl.c: New file.
79129         * lib/atanl.c: New file.
79130         * lib/ceill.c: New file.
79131         * lib/cosl.c: New file.
79132         * lib/expl.c: New file.
79133         * lib/floorl.c: New file.
79134         * lib/frexpl.c: New file.
79135         * lib/ldexpl.c: New file.
79136         * lib/logl.c: New file.
79137         * lib/sincosl.c: New file.
79138         * lib/sinl.c: New file.
79139         * lib/sqrtl.c: New file.
79140         * lib/tanl.c: New file.
79141         * lib/trigl.c: New file.
79142         * lib/trigl.h: New file.
79143
79144 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
79145
79146         * m4/mathl.m4: New file.
79147
79148 2003-02-18  Bruno Haible  <bruno@clisp.org>
79149
79150         * MODULES.html.sh (func_all_modules): Add mathl.
79151
79152 2003-02-17  Bruno Haible  <bruno@clisp.org>
79153
79154         * modules/mkdtemp: New module.
79155         * MODULES.html.sh (func_all_modules): Add it.
79156
79157 2003-02-17  Bruno Haible  <bruno@clisp.org>
79158
79159         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
79160
79161 2003-02-17  Bruno Haible  <bruno@clisp.org>
79162
79163         * lib/mkdtemp.h: New file, from GNU gettext.
79164         * lib/mkdtemp.c: New file, from GNU gettext.
79165
79166 2003-02-02  Jim Meyering  <jim@meyering.net>
79167
79168         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
79169         e.g. glibc-2.2.93.
79170
79171 2003-01-31  Bruno Haible  <bruno@clisp.org>
79172
79173         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
79174         'rpl_rename'.
79175         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
79176         'rpl_strnlen'.
79177         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
79178         'rpl_strtod'.
79179         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
79180         'rpl_utime'.
79181
79182 2003-01-31  Bruno Haible  <bruno@clisp.org>
79183
79184         * lib/rename.c: #undef rename before defining rpl_rename.
79185         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
79186
79187 2003-01-30  Bruno Haible  <bruno@clisp.org>
79188
79189         * modules/vasnprintf, modules/vasprintf: New modules.
79190         * MODULES.html.sh (func_all_modules): Add them.
79191
79192 2003-01-30  Bruno Haible  <bruno@clisp.org>
79193
79194         * m4/signed.m4: New file, from GNU gettext.
79195         * m4/longdouble.m4: New file, from GNU gettext.
79196         * m4/wchar_t.m4: New file, from GNU gettext.
79197         * m4/wint_t.m4: New file, from GNU gettext.
79198         * m4/vasnprintf.m4: New file.
79199         * m4/vasprintf.m4: New file.
79200
79201 2003-01-30  Bruno Haible  <bruno@clisp.org>
79202
79203         * lib/printf-args.h: New file, from GNU gettext.
79204         * lib/printf-args.c: New file, from GNU gettext.
79205         * lib/printf-parse.h: New file, from GNU gettext.
79206         * lib/printf-parse.c: New file, from GNU gettext.
79207         * lib/vasnprintf.h: New file, from GNU gettext.
79208         * lib/vasnprintf.c: New file, from GNU gettext.
79209         * lib/asnprintf.c: New file, from GNU gettext.
79210         * lib/vasprintf.h: New file, from GNU gettext with modifications.
79211         * lib/vasprintf.c: New file, from GNU gettext.
79212         * lib/asprintf.c: New file, from GNU gettext.
79213
79214 2003-01-29  Bruno Haible  <bruno@clisp.org>
79215
79216         * modules/stpncpy: New module.
79217         * MODULES.html.sh (func_all_modules): Add it.
79218
79219 2003-01-29  Bruno Haible  <bruno@clisp.org>
79220
79221         * m4/stpncpy.m4: New file.
79222
79223 2003-01-29  Bruno Haible  <bruno@clisp.org>
79224
79225         * lib/stpncpy.h: New file, from GNU gettext with modifications.
79226         * lib/stpncpy.c: New file, from GNU gettext with modifications.
79227
79228 2003-01-28  Bruno Haible  <bruno@clisp.org>
79229
79230         * modules/c-ctype: New module.
79231         * MODULES.html.sh (func_all_modules): Add it.
79232
79233 2003-01-28  Bruno Haible  <bruno@clisp.org>
79234
79235         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
79236         Paul Eggert.
79237         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
79238         Paul Eggert.
79239
79240 2003-01-27  Bruno Haible  <bruno@clisp.org>
79241
79242         * modules/xsetenv: New module.
79243         * MODULES.html.sh (func_all_modules): Add it.
79244
79245 2003-01-27  Bruno Haible  <bruno@clisp.org>
79246
79247         * lib/xsetenv.h: New file, from GNU gettext.
79248         * lib/xsetenv.c: New file, from GNU gettext.
79249
79250 2003-01-23  Jim Meyering  <jim@meyering.net>
79251
79252         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
79253         from working on systems without dirfd (at least Irix and OSF1/Tru64).
79254
79255 2003-01-23  Bruno Haible  <bruno@clisp.org>
79256
79257         * modules/minmax: New module.
79258         * MODULES.html.sh (func_all_modules): Add it.
79259
79260 2003-01-23  Bruno Haible  <bruno@clisp.org>
79261
79262         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
79263         Eggert.
79264
79265 2003-01-22  Bruno Haible  <bruno@clisp.org>
79266
79267         * modules/exit: New module.
79268         * MODULES.html.sh (func_all_modules): Add it.
79269
79270 2003-01-22  Bruno Haible  <bruno@clisp.org>
79271
79272         * lib/exit.h: New file, from GNU gettext.
79273
79274 2003-01-19  Bruno Haible  <bruno@clisp.org>
79275
79276         * gnulib-tool: Recognize option --extract-maintainer.
79277         (func_get_maintainer): New function.
79278         * modules/*: Add Maintainer entry.
79279
79280 2003-01-16  Jim Meyering  <jim@meyering.net>
79281
79282         * m4/regex.m4: The `regex' struct is both input and output.
79283         Initialize it before each use.  Patch by Tim Waugh.
79284
79285 2003-01-16  Bruno Haible  <bruno@clisp.org>
79286
79287         * MODULES.html.sh: Add a table of contents. Add the module name as
79288         leftmost column. Add hyperlinks.
79289
79290 2003-01-15  Bruno Haible  <bruno@clisp.org>
79291
79292         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
79293
79294 2003-01-15  Bruno Haible  <bruno@clisp.org>
79295
79296         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
79297         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
79298         suffix.
79299
79300 2003-01-15  Bruno Haible  <bruno@clisp.org>
79301
79302         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
79303
79304 2003-01-15  Bruno Haible  <bruno@clisp.org>
79305
79306         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
79307         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
79308
79309 2003-01-14  Jim Meyering  <jim@meyering.net>
79310
79311         * lib/same.c (same_name): Tweak a comment.
79312
79313 2003-01-14  Bruno Haible  <bruno@clisp.org>
79314
79315         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
79316         when a string comparison is sufficient.
79317
79318 2003-01-14  Bruno Haible  <bruno@clisp.org>
79319
79320         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
79321         'unsigned int'.
79322
79323 2003-01-14  Bruno Haible  <bruno@clisp.org>
79324
79325         * lib/hash-pjw.c: Add comment about low quality of this function.
79326
79327 2003-01-13  Bruno Haible  <bruno@clisp.org>
79328
79329         * modules/stpcpy: Distribute lib/stpcpy.h.
79330         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
79331
79332 2003-01-13  Bruno Haible  <bruno@clisp.org>
79333
79334         * modules/*: Add a description.
79335         * modules/strpbrk: Fix Makefile.am snippet.
79336         * modules/strtoimax: Fix dependencies.
79337         * modules/strtoumax: Likewise.
79338
79339 2003-01-13  Bruno Haible  <bruno@clisp.org>
79340
79341         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
79342         * modules/alloca (Makefile.am): All object files depend on alloca.h.
79343         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
79344
79345 2003-01-13  Bruno Haible  <bruno@clisp.org>
79346
79347         * gnulib-tool (func_create_testdir): Store config/* files in the main
79348         directory.
79349         * config.rpath: Move to ...
79350         * config/config.rpath: ... here.
79351         * modules/gettext: Contains config/config.rpath, not config.rpath.
79352         * modules/iconv: Likewise.
79353
79354 2003-01-12  Paul Eggert  <eggert@twinsun.com>
79355
79356         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
79357         to avoid collisions with libcurses and libreadline.
79358
79359         * m4/getstr.m4: Remove.
79360         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
79361
79362 2003-01-12  Paul Eggert  <eggert@twinsun.com>
79363
79364         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
79365         to avoid collisions with libcurses and libreadline.
79366
79367         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
79368         * lib/getstr.h, getstr.c: Remove.
79369         * lib/getline.c: Include "getline.h", to check interface.
79370         Move body of old getstr.c here: this defines MIN_CHUNK and
79371         declares getdelim2, which is renamed from getstr.
79372         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
79373
79374         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
79375         All uses changed.
79376         * lib/linebuffer.h: Likewise.
79377         (readline): Remove backward-compatibility macro.
79378
79379 2003-01-12  Paul Eggert  <eggert@twinsun.com>
79380
79381         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
79382         to avoid collisions with libcurses and libreadline.
79383         * getstr: Remove.
79384         * MODULES.html.sh: Remove getstr.
79385         * modules/getline: Depend on unlocked-io, not getstr.
79386
79387 2003-01-12  Jim Meyering  <jim@meyering.net>
79388
79389         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
79390
79391 2003-01-10  Bruno Haible  <bruno@clisp.org>
79392
79393         * modules/alloca: Change Makefile.am requirements. Simplify Include
79394         requirements. Add lib/alloca_.h to file list.
79395
79396 2003-01-10  Bruno Haible  <bruno@clisp.org>
79397
79398         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
79399
79400 2003-01-10  Bruno Haible  <bruno@clisp.org>
79401
79402         * lib/alloca_.h: New file.
79403         * lib/getdate.y: Unconditionally include alloca.h.
79404         * lib/makepath.c: Likewise.
79405         * lib/setenv.c: Likewise.
79406         * lib/userspec.c: Likewise.
79407
79408 2003-01-09  Karl Berry  <karl@gnu.org>
79409
79410         * MODULES.html.sh: include `dirname $0` in PATH, to find
79411         gnulib-tool.
79412
79413 2003-01-09  Bruno Haible  <bruno@clisp.org>
79414
79415         * modules/stdbool: Change configure.ac, Makefile.am requirements.
79416         Simplify Include requirements. Add lib/stdbool.h.in to file list.
79417
79418 2003-01-09  Bruno Haible  <bruno@clisp.org>
79419
79420         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
79421
79422 2003-01-09  Bruno Haible  <bruno@clisp.org>
79423
79424         * lib/stdbool.h.in: New file.
79425
79426 2003-01-09  Bruno Haible  <bruno@clisp.org>
79427
79428         * gnulib-tool (func_all_modules): Ignore files ending in ~.
79429         * MODULES.html.sh: Likewise.
79430
79431 2003-01-08  Jim Meyering  <jim@meyering.net>
79432
79433         * lib/full-write.c: Undefine and define-away `const' after inclusion
79434         of errno.h, not before.  Suggestion from Bruno Haible.
79435
79436 2003-01-08  Bruno Haible  <bruno@clisp.org>
79437
79438         * modules/full-read: Depend on full-write.
79439
79440 2003-01-08  Bruno Haible  <bruno@clisp.org>
79441
79442         * lib/safe-read.c: Include specification header first, to ensure its
79443         selfcontainedness.
79444         * lib/full-write.c: Likewise.
79445
79446 2003-01-07  Jim Meyering  <jim@meyering.net>
79447
79448         * lib/full-write.c: Rework so that it may serve to define full_read,
79449         too.
79450         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
79451
79452 2003-01-07  Bruno Haible  <bruno@clisp.org>
79453
79454         * lib/strtoimax.c: Include <stdint.h> as an alternative to
79455         <inttypes.h>.
79456         * lib/xstrtol.h: Likewise.
79457         * lib/xstrtoimax.c: Likewise.
79458         * lib/xstrtoumax.c: Likewise.
79459         * lib/human.h: Likewise.
79460
79461         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
79462         on systems that have <inttypes.h> but not <stdint.h>.
79463
79464 2003-01-07  Bruno Haible  <bruno@clisp.org>
79465
79466         * MODULES.html.sh: Add copyright notice.
79467         (missed_files): Omit CVS directory entries.
79468         (func_module): Make it work with sed-3.02.
79469         * MODULES.txt: Remove file.
79470
79471 2003-01-06  Jim Meyering  <jim@meyering.net>
79472
79473         * lib/version-etc.c: Update year in translatable copyright string.
79474
79475 2003-01-03  Karl Berry  <karl@gnu.org>
79476
79477         * config/config.{guess,sub}: update from prep.
79478
79479 2003-01-02  Karl Berry  <karl@gnu.org>
79480
79481         * doc/COPYING.DOC: belatedly updated to 1.2.
79482
79483 2003-01-01  Karl Berry  <karl@gnu.org>
79484
79485         * gnulib-tool (func_verify_module): report module name $module in
79486         error message, not $1.
79487         * gnulib-tool (create-testdir): don't complain if destdir couldn't
79488         be created, only if it doesn't exist.
79489         * gnulib-tool (last_checkin_date): don't expand the $Date here.
79490
79491 2002-12-31  Paul Eggert  <eggert@twinsun.com>
79492
79493         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
79494
79495 2002-12-31  Paul Eggert  <eggert@twinsun.com>
79496
79497         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
79498         memcmp if strcoll doesn't work.
79499
79500 2002-12-31  Bruno Haible  <bruno@clisp.org>
79501
79502         * lib/utime.c (utime_null): No need to call ftruncate if the file was
79503         nonempty.
79504
79505 2002-12-31  Bruno Haible  <bruno@clisp.org>
79506
79507         * lib/memcoll.c (STRCOLL): New macro.
79508         (memcoll): Use it.
79509
79510 2002-12-31  Bruno Haible  <bruno@clisp.org>
79511
79512         * lib/localcharset.h: New file.
79513         * lib/localcharset.c: Include it.
79514         * lib/unicodeio.c: Likewise.
79515
79516 2002-12-31  Bruno Haible  <bruno@clisp.org>
79517
79518         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
79519         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
79520
79521 2002-12-31  Bruno Haible  <bruno@clisp.org>
79522
79523         * lib/getline.h: Include <stddef.h>, for size_t.
79524
79525         * lib/unicodeio.h: Include <stddef.h>, for size_t.
79526         * lib/unicodeio.c: Don't include <stddef.h>.
79527
79528 2002-12-31  Bruno Haible  <bruno@clisp.org>
79529
79530         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
79531         HAVE_TM_ZONE.
79532
79533 2002-12-24  Karl Berry  <karl@gnu.org>
79534
79535         * config/config.guess: update from prep.
79536
79537 2002-12-24  Bruno Haible  <bruno@clisp.org>
79538
79539         General infrasructure.
79540         * m4/README: Rewritten.
79541         * m4/onceonly.m4: New file.
79542         * m4/onceonly_2_57.m4: New file.
79543
79544         Module atexit.
79545         * m4/atexit.m4: New file.
79546
79547         Module strtod.
79548         * m4/strtod.m4: New file.
79549
79550         Module strtol.
79551         * m4/strtol.m4: New file.
79552
79553         Module strtoul.
79554         * m4/strtoul.m4: New file.
79555
79556         Module memchr.
79557         * m4/memchr.m4: New file.
79558
79559         Module memcmp.
79560         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
79561         (jm_FUNC_MEMCMP): Invoke it.
79562
79563         Module memcpy.
79564         * m4/memcpy.m4: New file.
79565
79566         Module memmove.
79567         * m4/memmove.m4: New file.
79568
79569         Module memset.
79570         * m4/memset.m4: New file.
79571
79572         Module strcspn.
79573         * m4/strcspn.m4: New file.
79574
79575         Module strpbrk.
79576         * m4/strpbrk.m4: New file.
79577
79578         Module strstr.
79579         * m4/strstr.m4: New file.
79580
79581         Module strerror.
79582         * m4/strerror.m4: New file.
79583
79584         Module mktime.
79585         * m4/mktime.m4: Renamed from jm-mktime.m4.
79586         (gl_PREREQ_MKTIME): New macro.
79587         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
79588
79589         Module malloc.
79590         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
79591         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
79592         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
79593
79594         Module realloc.
79595         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
79596         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
79597         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
79598
79599         Module strftime.
79600         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
79601         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
79602         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
79603         gl_TM_GMTOFF.
79604         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
79605
79606         Module xalloc.
79607         * m4/xalloc.m4: New file.
79608
79609         Module alloca.
79610         * m4/alloca.m4: New file.
79611
79612         Module putenv.
79613         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
79614         (jm_FUNC_PUTENV): Invoke it.
79615
79616         Module setenv.
79617         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
79618         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
79619         when invoked twice.
79620         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
79621         gt_FUNC_SETENV.
79622
79623         Module memrchr.
79624         * m4/memrchr.m4: New file.
79625
79626         Module stpcpy.
79627         * m4/stpcpy.m4: New file.
79628
79629         Module strcase.
79630         * m4/strcase.m4: New file.
79631
79632         Module strdup.
79633         * m4/strdup.m4: New file.
79634
79635         Module strnlen.
79636         * m4/strnlen.m4: New file.
79637
79638         Module strndup.
79639         * m4/strndup.m4: New file.
79640
79641         Module xstrtod.
79642         * m4/xstrtod.m4: New file.
79643
79644         Module xstrtol.
79645         * m4/xstrtol.m4: New file.
79646
79647         Module getdate.
79648         * m4/getdate.m4: New file.
79649
79650         Module unlocked-io.
79651         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
79652         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
79653         * m4/jm-glibc-io.m4n: Remove file.
79654
79655         Module long-options.
79656         * m4/long-options.m4: New file.
79657
79658         Module md5.
79659         * m4/md5.m4: New file.
79660
79661         Module sha.
79662         * m4/sha.m4: New file.
79663
79664         Module getstr.
79665         * m4/getstr.m4: New file.
79666
79667         Module getline.
79668         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
79669         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
79670         <sys/types.h>, for size_t. Use the function name gnu_getline, not
79671         simply getline. Infoke gl_PREREQ_GETLINE.
79672
79673         Module obstack.
79674         * m4/obstack.m4: New file.
79675
79676         Module hash.
79677         * m4/hash.m4: New file.
79678
79679         Module readtokens.
79680         * m4/readtokens.m4: New file.
79681
79682         Module strverscmp.
79683         * m4/strverscmp.m4: New file.
79684
79685         Module stdbool.
79686         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
79687         OSF/1.
79688
79689         Module strtoll.
79690         * m4/strtoll.m4: New file.
79691
79692         Module strtoull.
79693         * m4/strtoull.m4: New file.
79694
79695         Module strtoimax.
79696         * m4/strtoimax.m4: New file.
79697
79698         Module strtoumax.
79699         * m4/strtoumax.m4: New file.
79700
79701         Module xstrtoimax.
79702         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
79703         jm_AC_PREREQ_XSTRTOIMAX.
79704         Moved the strtol prerequisites to strtol.m4.
79705         Moved the strtoll prerequisites to strtoll.m4.
79706         Moved the strtoimax prerequisites to strtoimax.m4.
79707
79708         Module xstrtoumax.
79709         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
79710         jm_AC_PREREQ_XSTRTOUMAX.
79711         Moved the strtoul prerequisites to strtoul.m4.
79712         Moved the strtoull prerequisites to strtoull.m4.
79713         Moved the strtoumax prerequisites to strtoumax.m4.
79714
79715         Module chown.
79716         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
79717         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
79718
79719         Module dup2.
79720         * m4/dup2.m4: New file.
79721
79722         Module ftruncate.
79723         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
79724         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
79725
79726         Module getgroups.
79727         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
79728         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
79729
79730         Module gettimeofday.
79731         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
79732         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
79733         gl_PREREQ_GETTIMEOFDAY.
79734
79735         Module mkdir.
79736         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
79737         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
79738
79739         Module mkstemp.
79740         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
79741         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
79742         jm_AC_TYPE_UINTMAX_T.
79743         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
79744
79745         Module stat.
79746         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
79747         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
79748
79749         Module lstat.
79750         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
79751         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
79752
79753         Module timespec.
79754         * m4/timespec.m4 (gl_TIMESPEC): New macro.
79755         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
79756         * m4/st_mtim.m4: Indentation.
79757
79758         Module nanosleep.
79759         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
79760         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
79761         gl_PREREQ_NANOSLEEP.
79762
79763         Module regex.
79764         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
79765         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
79766         (gl_REGEX): New macro.
79767
79768         Module rename.
79769         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
79770         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
79771
79772         Module rmdir.
79773         * m4/rmdir.m4: New file.
79774
79775         Module utime.
79776         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
79777         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
79778         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
79779
79780         Module dirname.
79781         * m4/dirname.m4: New file.
79782
79783         Module getopt.
79784         * m4/getopt.m4: New file.
79785
79786         Module unistd-safer.
79787         * m4/unistd-safer.m4: New file.
79788
79789         Module fnmatch.
79790         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
79791         declaration.
79792         (gl_PREREQ_FNMATCH_EXTRA): New macro.
79793         (gl_FUNC_FNMATCH_POSIX): New macro.
79794         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
79795         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
79796         simply fnmatch.
79797
79798         Module exclude.
79799         * m4/exclude.m4: New file.
79800
79801         Module human.
79802         * m4/human.m4: New file.
79803
79804         Module acl.
79805         * m4/acl.m4: Nop.
79806
79807         Module backupfile.
79808         * m4/backupfile.m4: New file.
79809         * m4/d-ino.m4: Indentation.
79810
79811         Module fsusage.
79812         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
79813         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
79814         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
79815
79816         Module dirfd.
79817         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
79818         requirements.
79819
79820         Module euidaccess.
79821         * m4/euidaccess.m4: New file.
79822
79823         Module file-type.
79824         * m4/file-type.m4: New file.
79825
79826         Module fileblocks.
79827         * m4/fileblocks.m4: New file.
79828
79829         Module filemode.
79830         * m4/filemode.m4: New file.
79831
79832         Module isdir.
79833         * m4/isdir.m4: New file.
79834
79835         Module lchown.
79836         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
79837         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
79838
79839         Module makepath.
79840         * m4/makepath.m4: New file.
79841
79842         Module modechange.
79843         * m4/modechange.m4: New file.
79844
79845         Module mountlist.
79846         * m4/mountlist.m4: New file.
79847         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
79848         Indentation.
79849
79850         Module path-concat.
79851         * m4/path-concat.m4: New file.
79852
79853         Module pathmax.
79854         * m4/pathmax.m4: New file.
79855
79856         Module same.
79857         * m4/same.m4: New file.
79858
79859         Module save-cwd.
79860         * m4/save-cwd.m4: New file.
79861
79862         Module savedir.
79863         * m4/savedir.m4: New file.
79864
79865         Module xgetcwd.
79866         * m4/xgetcwd.m4: New file.
79867         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
79868
79869         Module xreadlink.
79870         * m4/xreadlink.m4: New file.
79871
79872         Module safe-read.
79873         * m4/safe-read.m4: New file.
79874
79875         Module safe-write.
79876         * m4/safe-write.m4: New file.
79877
79878         Module closeout.
79879         * m4/closeout.m4: New file.
79880
79881         Module stdio-safer.
79882         * m4/stdio-safer.m4: New file.
79883
79884         Module getpass.
79885         * m4/getpass.m4: New file.
79886
79887         Module getugroups.
79888         * m4/getugroups.m4: New file.
79889
79890         Module group-member.
79891         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
79892         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
79893
79894         Module idcache.
79895         * m4/idcache.m4: New file.
79896
79897         Module userspec.
79898         * m4/userspec.m4: New file.
79899
79900         Module gettime.
79901         * m4/clock_time.m4: New file.
79902         * m4/gettime.m4: New file.
79903
79904         Module settime.
79905         * m4/settime.m4: New file.
79906
79907         Module posixtm.
79908         * m4/posixtm.m4: New file.
79909
79910         Module gethostname.
79911         * m4/gethostname.m4: New file.
79912
79913         Module canon-host.
79914         * m4/canon-host.m4: New file.
79915
79916         Module gettext.
79917         * m4/codeset.m4: New file, from gettext-0.11.5.
79918         * m4/gettext.m4: New file, from gettext-0.11.5.
79919         * m4/glibc21.m4: New file, from gettext-0.11.5.
79920         * m4/iconv.m4: New file, from gettext-0.11.5.
79921         * m4/intdiv0.m4: New file, from gettext-0.11.5.
79922         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
79923         * m4/inttypes.m4: New file, from gettext-0.11.5.
79924         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
79925         * m4/isc-posix.m4: New file, from gettext-0.11.5.
79926         * m4/lcmessage.m4: New file, from gettext-0.11.5.
79927         * m4/lib-ld.m4: New file, from gettext-0.11.5.
79928         * m4/lib-link.m4: New file, from gettext-0.11.5.
79929         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
79930         * m4/progtest.m4: New file, from gettext-0.11.5.
79931         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
79932         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
79933         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
79934
79935         Module localcharset.
79936         * m4/localcharset.m4: New file.
79937
79938         Module hard-locale.
79939         * m4/hard-locale.m4: New file.
79940
79941         Module mbswidth.
79942         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
79943         onceonly macros.
79944         * m4/mbrtowc.m4: Add comment.
79945
79946         Module memcasecmp.
79947         * m4/memcasecmp.m4: New file.
79948
79949         Module memcoll.
79950         * m4/memcoll.m4: New file.
79951
79952         Module unicodeio.
79953         * m4/unicodeio.m4: New file.
79954
79955         Module rpmatch.
79956         * m4/rpmatch.m4: New file.
79957
79958         Module yesno.
79959         * m4/yesno.m4: New file.
79960
79961         Module exitfail.
79962         * m4/exitfail.m4: New file.
79963
79964         Module c-stack.
79965         * m4/c-stack.m4 (gl_C_STACK): New macro.
79966         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
79967
79968         Module error.
79969         * m4/error.m4 (gl_ERROR): New macro.
79970         (jm_PREREQ_ERROR): Use onceonly macros.
79971
79972         Module fatal.
79973         * m4/fatal.m4: New file.
79974
79975         Module getloadavg.
79976         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
79977         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
79978
79979         Module getpagesize.
79980         * m4/getpagesize.m4: New file.
79981
79982         Module getusershell.
79983         * m4/getusershell.m4: New file.
79984
79985         Module physmem.
79986         * m4/physmem.m4: New file.
79987
79988         Module posixver.
79989         * m4/posixver.m4: New file.
79990
79991         Module quotearg.
79992         * m4/quotearg.m4: New file.
79993
79994         Module quote.
79995         * m4/quote.m4: New file.
79996
79997         Module readutmp.
79998         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
79999
80000         Module sig2str.
80001         * m4/sig2str.m4: New file.
80002
80003         Other.
80004         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
80005         ulonglong.m4.
80006         * m4/intmax_t.m4: New file.
80007         * m4/d-type.m4: Indentation.
80008         * m4/jm-macros.m4: Update.
80009         * m4/prereq.m4 (jm_PREREQ): Update.
80010         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
80011         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
80012         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
80013         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
80014         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
80015         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
80016         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
80017         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
80018         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
80019         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
80020         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
80021         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
80022         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
80023         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
80024         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
80025         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
80026         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
80027         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
80028         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
80029
80030 2002-12-24  Bruno Haible  <bruno@clisp.org>
80031
80032         * MODULES.txt: Update according to m4/ changes.
80033
80034         Module gettext.
80035         * config.rpath: New file, from gettext-0.11.5.
80036
80037         * modules/*: New module descriptions.
80038         * gnulib-tool: New file.
80039         * MODULES.html.sh: New file.
80040
80041 2002-12-21  Karl Berry  <karl@gnu.org>
80042
80043         * doc/fdl.texi: update to version 1.2.
80044
80045 2002-12-19  Karl Berry  <karl@gnu.org>
80046
80047         * config/config.guess: update from prep.
80048
80049 2002-12-18  Bruno Haible  <bruno@clisp.org>
80050
80051         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
80052         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
80053
80054 2002-12-17  Bruno Haible  <bruno@clisp.org>
80055
80056         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
80057         stdlib.h, string.h.
80058
80059 2002-12-17  Bruno Haible  <bruno@clisp.org>
80060
80061         * lib/canon-host.c (strdup): Remove unused declaration.
80062
80063         * lib/fsusage.c: Include full_read.h.
80064         (get_fs_usage): Use full_read instead of safe_read.
80065
80066         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
80067
80068 2002-12-12  Karl Berry  <karl@gnu.org>
80069
80070         * config/config.guess: update from prep.
80071
80072 2002-12-11  Bruno Haible  <bruno@clisp.org>
80073
80074         * m4/setenv.m4: New file, from gettext-0.11.5.
80075
80076 2002-12-11  Bruno Haible  <bruno@clisp.org>
80077
80078         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
80079         not unsetenv().
80080         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
80081         modifications:
80082
80083         2002-12-11  Bruno Haible  <bruno@clisp.org>
80084
80085                 * setenv.c (alloca): Fall back to malloc.
80086                 (freea): New macro.
80087                 (setenv): Use freea() to free memory allocated with alloca().
80088
80089         2002-11-13  Bruno Haible  <bruno@clisp.org>
80090
80091                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
80092                 function declarations.
80093                 * unsetenv.c (unsetenv): Likewise.
80094
80095         2002-03-04  Bruno Haible  <bruno@clisp.org>
80096
80097                 Portability to AIX 4.3.3.
80098                 * unsetenv.c: New file, extracted from setenv.c.
80099                 * setenv.c: Move the unsetenv() function to unsetenv.c.
80100
80101         2001-12-20  Bruno Haible  <bruno@clisp.org>
80102
80103                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
80104                 use malloc instead. For SunOS 4.
80105
80106         2001-12-11  Bruno Haible  <bruno@clisp.org>
80107
80108                 * setenv.c: Declare alloca.
80109                 (compar_fn_t): New typedef.
80110                 (KNOWN_VALUE, STORE_VALUE): Use it.
80111
80112         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
80113         setenv.h.
80114
80115 2002-12-10  Paul Eggert  <eggert@twinsun.com>
80116
80117         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
80118         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
80119         Choose values that are less likely to collide with system fnmatch
80120         options.
80121         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
80122         defined (e.g., a pure POSIX system).
80123         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
80124         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
80125
80126 2002-12-06  Paul Eggert  <eggert@twinsun.com>
80127
80128         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
80129         a pain in practice to deal with generated m4 files.  This change
80130         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
80131
80132         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
80133         and jm-glibc-io.m4, as they are no longer a special case.
80134         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
80135         kludge and the auto-generation stuff.  Check only whether the
80136         functions are declared, not whether they exist, since older hosts
80137         that don't declare the functions can't use the optimization anyway.
80138
80139 2002-12-06  Jim Meyering  <jim@meyering.net>
80140
80141         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
80142
80143         Merge in changes from libc's misc/error.c, in preparation
80144         for the merge of gnulib's changes back into libc.
80145
80146         * lib/error.c (_): Define only if not already defined.
80147         Move definition to follow all #include directives.
80148         Include unlocked-io.h only if !_LIBC.
80149         [_LIBC]: Include <libio/libioP.h>.
80150         [USE_IN_LIBIO]: Include <libio/iolibio.h>
80151         (fflush): Tweak definition to use INTUSE.
80152         (putc): Define.
80153
80154 2002-12-05  Paul Eggert  <eggert@twinsun.com>
80155
80156         * lib/alloca.c [defined emacs]: Include "lisp.h".
80157         (xalloc_die) [defined emacs]: New macro.
80158         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
80159         [! defined emacs]: Include <xalloc.h>.
80160         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
80161         (pointer): Typedef to POINTER_TYPE *.
80162         (malloc): Remove decl; we now always use xmalloc.
80163         (alloca): Use old-style definition, since Emacs needs this.
80164         Check for arithmetic overflow when computing combined size.
80165
80166 2002-12-04  Paul Eggert  <eggert@twinsun.com>
80167
80168         Do not generate unlocked-io.h automatically, since it's easier to
80169         maintain it by hand.
80170
80171         * lib/unlocked-io.h: New file, from GNU diffutils,
80172         but with proper copyright notice and attribution.
80173         * lib/gen-uio: Remove.
80174         * lib/Makefile.am: Add copyright notice.
80175         (libfetish_a_SOURCES): Add unlocked-io.h.
80176         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
80177         (DISTCLEANFILES, io_functions): Remove macros.
80178         (EXTRA_DIST): Remove gen_uio.
80179         (unlocked-io.h): Remove rule.
80180
80181 2002-12-04  Jim Meyering  <jim@meyering.net>
80182
80183         Reflect the fact that stat.c and lstat.c are no longer generated.
80184         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
80185         (DISTCLEANFILES): Likewise.
80186         (EXTRA_DIST): Likewise.
80187         (all_local): Don't depend on stat.c or lstat.c.
80188         (stat.c, lstat.c): Remove rules.
80189         (EXTRA_DIST): Remove xstat.in.
80190
80191         * lib/xstat.in: Remove file.  Contents moved into stat.c.
80192         * lib/stat.c: New file.  Contents mostly from xstat.in.
80193         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
80194         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
80195
80196         * lib/safe-read.c: Rework so that it may serve to define safe_write,
80197         too.
80198         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
80199
80200 2002-12-03  Jim Meyering  <jim@meyering.net>
80201
80202         * lib/safe-read.c, safe-write.c: Change variable names and comments,
80203         but not semantics, to minimize the differences between these two files.
80204         (safe_read): Change comment to mention SAFE_READ_ERROR.
80205
80206         * lib/safe-read.c (IS_EINTR): Define.
80207         (safe_read): Use IS_EINTR in place of in-function cpp directives.
80208
80209 2002-12-02  Jim Meyering  <jim@meyering.net>
80210
80211         * lib/safe-read.c (EINTR): Define.
80212         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
80213         (INT_MAX): Provide fallback.
80214         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
80215
80216         * lib/safe-read.h (SAFE_READ_ERROR): Define.
80217
80218 2002-12-02  Bruno Haible  <bruno@clisp.org>
80219
80220         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
80221         Define, taken from safe-read.c.
80222         (INT_MAX): Provide fallback.
80223         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
80224         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
80225
80226         * lib/safe-read.c (EINTR): Remove definition.
80227         (safe_read): Don't use EINTR if it is absent.
80228
80229 2002-12-01  Jim Meyering  <jim@meyering.net>
80230
80231         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
80232         zero.
80233         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
80234
80235 2002-11-27  Paul Eggert  <eggert@twinsun.com>
80236
80237         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
80238         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
80239         with `if (! (value < limit)) abort ();', for readability.
80240
80241 2002-11-26  Karl Berry  <karl@gnu.org>
80242
80243         * lib/strdup.c: copy from libc again, with jim's ok.
80244         * lib/.cppi-disable: re-add strdup.c
80245
80246 2002-11-25  Karl Berry  <karl@gnu.org>
80247
80248         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
80249         instead of "strtol.c".
80250
80251 2002-11-25  Karl Berry  <karl@gnu.org>
80252
80253         * config/install-sh: update from automake for variable quoting, $0 in
80254         error msgs, etc.
80255
80256         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
80257         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
80258         entry.
80259
80260 2002-11-25  Jim Meyering  <jim@meyering.net>
80261
80262         * lib/mktime.c: Sync from libc, now that it has the latest fix.
80263
80264 2002-11-24  Karl Berry  <karl@gnu.org>
80265
80266         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
80267         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
80268
80269 2002-11-24  Jim Meyering  <jim@meyering.net>
80270
80271         Update from coreutils:
80272
80273         * lib/mktime.c: Merge in changes from libc.
80274
80275         Avoid a link-time failure on some Linux systems.
80276         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
80277         (otherwise).
80278         (__mon_yday): Declare with the STATIC attribute.
80279         (__mktime_internal): Likewise.
80280         Based on a report from Greg Schafer.
80281
80282 2002-11-23  Jim Meyering  <jim@meyering.net>
80283
80284         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
80285         Use `unsigned', not `int', as type of index.
80286
80287         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
80288
80289         * lib/fsusage.c: Remove unneeded parentheses around operands of
80290         `defined'.
80291
80292 2002-11-22  Paul Eggert  <eggert@twinsun.com>
80293
80294         * lib/quotearg.h: Allow multiple inclusion by surrounding with
80295         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
80296         so that we can be included first.
80297         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
80298         * lib/quotearg.c: Include quotearg.h immediately after config.h.
80299         No need to include stddef.h or sys/types.h any more.
80300         Surround local include files with "", not "<>".
80301         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
80302         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
80303         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
80304         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
80305         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
80306         (ISPRINT): Remove; no longer needed now that we assume C89.
80307
80308         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
80309         Preserve errno.
80310
80311         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
80312         quotearg_char): Use SIZE_MAX rather than
80313         (size_t) -1 when we are talking about "infinity".
80314
80315         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
80316
80317 2002-11-22  Paul Eggert  <eggert@twinsun.com>
80318
80319         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
80320         hint that one should use `if (! x) abort ();' rather than `assert
80321         (x);', and anyway it's one less thing to worry about configuring.
80322         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
80323         hash_rehash, hash_insert): Use abort rather than assert.
80324
80325 2002-11-22  Bruno Haible  <bruno@clisp.org>
80326
80327         * lib/safe-read.h: Assume C89. Add comments.
80328         (safe_read): Change return type to size_t.
80329         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
80330         byte counts > SSIZE_MAX correctly.
80331         * lib/safe-write.h: New file.
80332         * lib/safe-write.c: New file.
80333         * lib/full-read.h: New file.
80334         * lib/full-read.c: New file.
80335         * lib/full-write.h: Assume C89. Add comments.
80336         * lib/full-write.c: Include safe-write.h.
80337         (full_write): Rewritten to use safe_write.
80338         Suggested by Jim Meyering and Paul Eggert.
80339
80340 2002-11-21  Jim Meyering  <jim@meyering.net>
80341
80342         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
80343
80344         Merge in changes from the coreutils.
80345
80346         2002-09-25  Paul Eggert  <eggert@twinsun.com>
80347         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
80348         <stdint.h>.
80349         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
80350         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
80351         int.  Work more efficiently if X is the same width as uintmax_t.
80352         Do not compare X to -1, to avoid bogus compiler warning.
80353         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
80354         Don't assume that f_frsize and f_bsize are the same type.
80355
80356         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
80357         warning on FreeBSD.
80358
80359         * lib/makepath.c (make_path): Restore umask *before* creating the final
80360         component.
80361         (make_path): Minor reformatting.
80362
80363         * lib/xmalloc.c: Adjust to work with new autoconf macros,
80364         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
80365         HAVE_MALLOC/HAVE_REALLOC.
80366
80367         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
80368         dummy ones.  At least on GNU/Linux systems, `auto' means something
80369         else.
80370         From Michael Stone.
80371
80372 2002-11-21  Bruno Haible  <bruno@clisp.org>
80373
80374         Remove case insensitive option matching.
80375         * lib/argmatch.h (argcasematch): Remove declaration.
80376         (ARGCASEMATCH): Remove macro.
80377         (__xargmatch_internal): Remove case_sensitive argument.
80378         (XARGMATCH): Update.
80379         (XARGCASEMATCH): Remove macro.
80380         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
80381         case_sensitive argument.
80382         (argcasematch): Remove function.
80383         (__xargmatch_internal): Remove case_sensitive argument.
80384         (main): Use XARGMATCH instead of XARGCASEMATCH.
80385
80386         * lib/xmalloc.c: Change compile-time error message. Add comment about
80387         required autoconf version.
80388
80389 2002-11-20  Paul Eggert  <eggert@twinsun.com>
80390
80391         Merge argmatch cleanups from Bison.  Assume C89.
80392
80393         * lib/argmatch.c: Include config.h here, not in argmatch.h.
80394         Include stdlib.h, for EXIT_FAILURE.
80395         Always include <string.h>, since we assume C89.
80396         (EXIT_FAILURE): Remove pre-C89 bug workaround.
80397         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
80398         Include <stddef.h> instead, since it's all we need for size_t.
80399         (PARAMS): Remove.  All uses removed.
80400         (ARRAY_CARDINALITY): Do not bother to #undef.
80401         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
80402         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
80403         Remove unnecessary parentheses.
80404         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
80405         Insert necessary parentheses.
80406         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
80407         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
80408
80409 2002-11-19  Bruno Haible  <bruno@clisp.org>
80410
80411         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
80412         * lib/mbswidth.h: Include <stddef.h>, for size_t.
80413
80414         * lib/mbswidth.h (PARAMS): Remove macro.
80415         (mbswidth, mbsnwidth): Use ANSI C function declarations.
80416         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
80417
80418         * lib/gcd.h (PARAMS): Remove macro.
80419         (gcd): Use ANSI C function declarations.
80420         * lib/gcd.c (gcd): Likewise.
80421
80422 2002-11-15  Bruno Haible  <bruno@clisp.org>
80423
80424         * lib/strcspn.c: Include <stddef.h>.
80425         (strcspn): Use ANSI C function declaration. Change return type to
80426         size_t. Use NULL.
80427         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
80428         (strpbrk): Use NULL.
80429         * lib/strpbrk.h (PARAMS): Remove macro.
80430         (strpbrk): Use ANSI C function declaration.
80431         * lib/strstr.c: Don't include <sys/types.h>.
80432         * lib/strstr.h (PARAMS): Remove macro.
80433         (strstr): Use ANSI C function declarations.
80434
80435 2002-11-14  Karl Berry  <karl@gnu.org>
80436
80437         * config/mkinstalldirs: `do' on separate line, instead of
80438         `for var; do'.
80439
80440 2002-11-06  Bruno Haible  <bruno@clisp.org>
80441
80442         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
80443         * lib/gcd.c (gcd): Likewise.
80444
80445 2002-11-05  Bruno Haible  <bruno@clisp.org>
80446
80447         * lib/gcd.h: New file, from gettext-0.11.5.
80448         * lib/gcd.c: New file, from gettext-0.11.5.
80449
80450 2002-11-05  Bruno Haible  <bruno@clisp.org>
80451
80452         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
80453         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
80454         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
80455         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
80456
80457         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
80458         <libintl.h>.
80459         * lib/makepath.c: Include gettext.h instead of <locale.h> and
80460         <libintl.h>.
80461
80462         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
80463         * lib/human.c: Include gettext.h instead of <libintl.h>.
80464         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
80465         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
80466         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
80467         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
80468         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
80469         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
80470         (textdomain): Remove definition.
80471         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
80472
80473         * lib/long-options.c: Remove include of <libintl.h> and definition of
80474         _.
80475         * lib/same.c: Remove include of <libintl.h> and definition of _.
80476
80477 2002-11-04  Owen Taylor  <otaylor@redhat.com>
80478
80479         * lib/config.charset: A few additions for Solaris.
80480
80481 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
80482
80483         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
80484         * lib/localcharset.c (locale_charset): Declare as extern "C".
80485
80486 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
80487
80488         * lib/config.charset: msdos in uk_UA uses CP1125.
80489
80490 2002-11-04  Bruno Haible  <bruno@clisp.org>
80491
80492         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
80493         * lib/strcase.h: New file, from GNU gettext-0.11.5.
80494         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
80495         * lib/strstr.h: New file, from GNU gettext-0.11.5.
80496         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
80497
80498 2002-11-04  Bruno Haible  <bruno@clisp.org>
80499
80500         * lib/localcharset.c (locale_charset): Don't return an empty string.
80501
80502 2002-11-04  Bruno Haible  <bruno@clisp.org>
80503
80504         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
80505         aliases.
80506
80507 2002-11-04  Bruno Haible  <bruno@clisp.org>
80508
80509         * lib/config.charset: Update for newest glibc. Add canonical names
80510         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
80511
80512 2002-11-04  Bruno Haible  <bruno@clisp.org>
80513
80514         * lib/config.charset: Add support for NetBSD.
80515
80516 2002-11-04  Bruno Haible  <bruno@clisp.org>
80517
80518         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
80519
80520 2002-11-01  Bruno Haible  <bruno@clisp.org>
80521
80522         * configure.in: Add AC_CONFIG_AUX_DIR call.
80523         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
80524         test/Makefile.
80525         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
80526
80527 2002-09-28  Karl Berry  <karl@gnu.org>
80528
80529         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
80530         installed automake until the next release, since changes have been
80531         made.
80532
80533 2002-09-25  Karl Berry  <karl@gnu.org>
80534
80535         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
80536         * lib/getopt*: copy from libc/posix.
80537         * lib/gettext.h: copy from gettext.
80538         * lib/.cppi-disable: add strdup.c, gettext.h.
80539
80540 2002-09-25  Karl Berry  <karl@gnu.org>
80541
80542         * config/srclist.txt: enable gettext.h check.
80543         * config/config.{guess,sub}: update from prep.
80544         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
80545                 from automake 1.6.3.
80546         See srclist*.
80547
80548 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
80549
80550         * regex.c (PATFETCH): Remove the translating fetch.
80551         (PATFETCH_RAW): Rename to PATFETCH.
80552         (set_image_of_range): New fun.
80553         (SET_RANGE_TABLE_WORK_AREA): Use it.
80554         (regex_compile): Don't translate the pattern chars so eagerly.
80555         Only do it when inserting an `exactn' bytecode or when handling
80556         a char-range.
80557         (mutually_exclusive_p): Avoid empty statement.
80558
80559 2002-07-06  Jim Meyering  <meyering@lucent.com>
80560
80561         * m4/README: Don't mention Makefile.am.in.
80562         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
80563
80564 2002-07-01  Jim Meyering  <meyering@lucent.com>
80565
80566         * lib/c-stack.c: Include sys/time.h.
80567         From Volker Borchert.
80568
80569 2002-06-26  Paul Eggert  <eggert@twinsun.com>
80570
80571         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
80572
80573 2002-06-26  Paul Eggert  <eggert@twinsun.com>
80574
80575         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
80576         New macro.  Use it uniformly instead of
80577         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
80578         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
80579         reported by Vin Shelton.
80580
80581 2002-06-22  Paul Eggert  <eggert@twinsun.com>
80582
80583         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
80584         Do not assume SA_SIGINFO behavior.
80585         Bug reported by Jim Meyering on NetBSD 1.5.2.
80586
80587 2002-06-22  Jim Meyering  <meyering@lucent.com>
80588
80589         * m4/c-stack.m4: New file, from diffutils-2.8.2.
80590         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
80591
80592         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
80593         now that configure.ac uses AC_GNU_SOURCE.
80594         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
80595         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
80596
80597         Update to latest tools.  Suggestions from Paul Eggert.
80598         * m4/stdbool.m4: New file, from diffutils-2.8.2.
80599         * m4/gnu-source.m4: Update from diffutils-2.8.2.
80600         * m4/fnmatch.m4: Likewise.
80601         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
80602         to AC_HEADER_STDBOOL
80603
80604 2002-06-22  Jim Meyering  <meyering@lucent.com>
80605
80606         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
80607         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
80608
80609 2002-06-22  Jim Meyering  <meyering@lucent.com>
80610
80611         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
80612
80613         * lib/exitfail.c, exitfail.h: Likewise.
80614         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
80615
80616         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
80617         of fnmatch.h.
80618         (EXTRA_DIST): Add fnmatch_loop.c.
80619         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
80620
80621         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
80622         * lib/fnmatch.c: Update from diffutils-2.8.2.
80623         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
80624         * lib/fnmatch.h: Remove file.
80625
80626 2002-06-21  Jim Meyering  <meyering@lucent.com>
80627
80628         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
80629         * m4/mbrtowc.m4: Likewise.
80630
80631         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
80632         * m4/mbswidth.m4: Reflect name change:
80633         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
80634         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
80635
80636         * m4/lib-link.m4: Update from gettext-0.11.2.
80637         * m4/gettext.m4: Likewise.
80638
80639         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
80640         From Alfred M. Szmidt.
80641
80642 2002-06-18  Paul Eggert  <eggert@twinsun.com>
80643
80644         * lib/file-type.h: Report an error if neither S_ISREG nor
80645         S_IFREG is defined, instead of using a test specific to glibc
80646         2.2.  This should be safe, since POSIX requires S_ISREG and
80647         Unix Version 7 had S_IFREG.  We don't need to check for
80648         <sys/types.h> since we don't use any symbols that it defines.
80649
80650 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
80651
80652         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
80653         $@-t, so that each temporary file name is unique and valid in the first
80654         8 characters, for operation under DOS.
80655
80656 2002-06-15  Paul Eggert  <eggert@twinsun.com>
80657
80658         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
80659
80660 2002-06-15  Jim Meyering  <meyering@lucent.com>
80661
80662         Work even with DJGPP 2.03, which lacks support for symlinks.
80663         From Richard Dawe.
80664         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
80665         is defined.
80666         * lib/lchown.c (S_ISLNK): Likewise.
80667
80668 2002-06-15  Jim Meyering  <meyering@lucent.com>
80669
80670         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
80671         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
80672         have been included before this file.
80673
80674 2002-06-14  Jim Meyering  <meyering@lucent.com>
80675
80676         * lib/file-type.h: Use the version from diffutils-2.8.2.
80677         * lib/file-type.c: Likewise.
80678
80679 2002-06-07  Jim Meyering  <meyering@lucent.com>
80680
80681         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
80682         They're needed at least for NetBSD 1.5.2.
80683         ($statxfs_includes): Include those same headers.
80684         ($statxfs_includes): Include sys/vfs.h if available.
80685         ($statxfs_includes): Likewise for sys/statvfs.h.
80686         Check for the following members in both structs statfs and statvfs:
80687         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
80688
80689 2002-06-01  Jim Meyering  <meyering@lucent.com>
80690
80691         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
80692         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
80693
80694 2002-05-28  Jim Meyering  <meyering@lucent.com>
80695
80696         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
80697         Reported by Volker Borchert.
80698
80699 2002-05-27  Jim Meyering  <meyering@lucent.com>
80700
80701         Fix a problem seen only on nonconforming systems whereby ls.c's
80702         use of localtime, and then of gettimeofday would cause trouble:
80703         the localtime call used to initialize rpl_gettimeofday's save
80704         mechanism would clobber ls's current local time information so
80705         that in any long listing the first file would always be listed
80706         with date 1970-01-01.  Analysis by Volker Borchert.
80707
80708         * lib/gettimeofday.c (localtime): Undefine.
80709         (rpl_localtime): New function.
80710
80711 2002-05-27  Jim Meyering  <meyering@lucent.com>
80712
80713         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
80714         localtime.
80715
80716         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
80717         use the replacement function; it wouldn't resolve at link time.
80718         Reported by Volker Borchert.
80719
80720 2002-05-22  Jim Meyering  <meyering@lucent.com>
80721
80722         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
80723         file-type.h.
80724         * lib/file-type.h: New file.
80725         * lib/file-type.c (file_type): New file/function.  Extracted from
80726         diffutils.
80727
80728 2002-04-30  Jim Meyering  <meyering@lucent.com>
80729
80730         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
80731
80732 2002-04-29  Paul Eggert  <eggert@twinsun.com>
80733
80734         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
80735
80736 2002-04-29  Paul Eggert  <eggert@twinsun.com>
80737
80738         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
80739         Do not check for alloca.h (no longer used) or stdbool.h (was never
80740         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
80741
80742 2002-04-29  Paul Eggert  <eggert@twinsun.com>
80743
80744         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
80745
80746 2002-04-29  Jim Meyering  <meyering@lucent.com>
80747
80748         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
80749         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
80750         Use AC_FUNC_STRNLEN here instead.
80751
80752         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
80753         With autoconf-2.53a, it's part of AC_PROG_CC.
80754
80755 2002-04-28  Paul Eggert  <eggert@twinsun.com>
80756
80757         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
80758         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
80759
80760 2002-04-28  Paul Eggert  <eggert@twinsun.com>
80761
80762         * lib/sig2str.h, lib/sig2str.c: New files.
80763         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
80764
80765 2002-04-28  Paul Eggert  <eggert@twinsun.com>
80766
80767         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
80768         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
80769         of 127, since 64 is the largest conceivable number for ancient
80770         nonstandard hosts.
80771         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
80772
80773 2002-04-28  Jim Meyering  <meyering@lucent.com>
80774
80775         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
80776
80777 2002-04-24  Jim Meyering  <meyering@lucent.com>
80778
80779         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
80780         (jm_PREREQ): Use it.
80781
80782         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
80783         mach/mach.h fcntl.h.
80784         Check for this function: setlocale.
80785
80786 2002-04-24  Jim Meyering  <meyering@lucent.com>
80787
80788         * lib/gettext.h: New file, from Gettext.
80789         * lib/Makefile.am (INCLUDES): Remove -I../intl.
80790         (libfetish_a_SOURCES): Add gettext.h.
80791
80792 2002-04-16  Jim Meyering  <meyering@lucent.com>
80793
80794         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
80795         ut_pid, ut_id, ut_exit.
80796
80797 2002-04-16  Jim Meyering  <meyering@lucent.com>
80798
80799         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
80800         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
80801         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
80802
80803 2002-04-12  Jim Meyering  <meyering@lucent.com>
80804
80805         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
80806         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
80807         existence of the getmntinfo function.  Needed for Darwin 5.3.
80808
80809         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
80810         This is necessary at least on Darwin 5.3.
80811
80812         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
80813         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
80814         strnlen.o in the library, and that makes some versions of ranlib
80815         object.
80816
80817 2002-04-12  Jim Meyering  <meyering@lucent.com>
80818
80819         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
80820
80821 2002-04-09  Jim Meyering  <meyering@lucent.com>
80822
80823         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
80824         to be more precise.  Rather than saying we're checking whether the
80825         function `works', say what we're testing.
80826         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
80827         Reported by Bruno Haible.
80828
80829 2002-03-10  Jim Meyering  <meyering@lucent.com>
80830
80831         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
80832         Suggestion from Santiago Vila.
80833
80834 2002-03-08  Jim Meyering  <meyering@lucent.com>
80835
80836         * lib/rename.c: Mention that this wrapper is needed also on
80837         mips-dec-ultrix4.4 systems.
80838
80839 2002-03-02  Jim Meyering  <meyering@lucent.com>
80840
80841         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
80842         not HAVE_CLOCK_SETTIME.
80843
80844 2002-02-27  Paul Eggert  <eggert@twinsun.com>
80845
80846         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
80847         Check for clock_settime.
80848
80849 2002-02-27  Paul Eggert  <eggert@twinsun.com>
80850
80851         * lib/nanosleep.h: Rename to....
80852         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
80853
80854         * lib/gettime.c: New file.
80855         * lib/settime.c: New file.
80856         * lib/stime.c: Remove.
80857
80858         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
80859         timespec.h.  Remove nanosleep.h.
80860
80861 2002-02-25  Paul Eggert  <eggert@twinsun.com>
80862
80863         * m4/acl.m4: New file.
80864         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
80865         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
80866
80867 2002-02-25  Paul Eggert  <eggert@twinsun.com>
80868
80869         * lib/acl.c, lib/acl.h: New files.
80870         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
80871
80872 2002-02-24  Jim Meyering  <meyering@lucent.com>
80873
80874         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
80875         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
80876         cause trouble.  Reported by Nelson Beebe.
80877
80878 2002-02-23  Paul Eggert  <eggert@twinsun.com>
80879
80880         * lib/path-concat.c (xpath_concat): Reorder code to pacify
80881         compilers that don't know that xalloc_die never returns.
80882
80883 2002-02-20  Jim Meyering  <meyering@lucent.com>
80884
80885         * lib/getdate.c: Regenerate using bison-1.33.
80886
80887 2002-02-17  Jim Meyering  <meyering@lucent.com>
80888
80889         * config/config.guess (main): Don't use `head -1'; it's no longer
80890         portable. Use `sed 1q' instead.
80891
80892 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
80893
80894         * m4/codeset.m4: Upgrade to gettext-0.11.
80895         * m4/gettext.m4: Upgrade to gettext-0.11.
80896         * m4/glibc21.m4: Upgrade to gettext-0.11.
80897         * m4/iconv.m4: Upgrade to gettext-0.11.
80898         * m4/isc-posix.m4: Upgrade to gettext-0.11.
80899         * m4/lcmessage.m4: Upgrade to gettext-0.11.
80900         * m4/lib-ld.m4: New file, from gettext-0.11.
80901         * m4/lib-link.m4: New file, from gettext-0.11.
80902         * m4/lib-prefix.m4: New file, from gettext-0.11.
80903         * m4/progtest.m4: Upgrade to gettext-0.11.
80904
80905 2002-02-15  Paul Eggert  <eggert@twinsun.com>
80906
80907         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
80908         (jm_PREREQ): Use it.
80909
80910 2002-02-15  Paul Eggert  <eggert@twinsun.com>
80911
80912         * lib/posixver.c, lib/posixver.h: New files.
80913         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
80914
80915 2002-02-02  Paul Eggert  <eggert@twinsun.com>
80916             Bruno Haible  <bruno@clisp.org>
80917
80918         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
80919         (fwrite_success_callback): New declaration.
80920         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
80921         print_unicode_char. Call failure callback instead of error.
80922         (fwrite_success_callback): New function.
80923         (exit_failure_callback): New function.
80924         (fallback_failure_callback): New function.
80925         (print_unicode_char): Call unicode_to_mb.
80926
80927 2002-01-26  Jim Meyering  <meyering@lucent.com>
80928
80929         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
80930         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
80931
80932 2002-01-26  Jim Meyering  <meyering@lucent.com>
80933
80934         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
80935
80936 2002-01-22  Paul Eggert  <eggert@twinsun.com>
80937
80938         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
80939
80940 2002-01-22  Jim Meyering  <meyering@lucent.com>
80941
80942         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
80943         Otherwise, some versions of automake would omit the rule that makes
80944         Makefile from Makefile.in.
80945
80946 2002-01-21  Paul Eggert  <eggert@twinsun.com>
80947
80948         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
80949         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
80950         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
80951         (memcoll): Set errno to zero if there is no error.
80952
80953         * lib/quotearg.c (quotearg_buffer_restyled):
80954         Fix bug with quoting buffers containing NUL when backslashing escapes.
80955         This bug was exposed by the other changes in this patch.
80956         (quotearg_n_options): New arg ARGSIZE.
80957         All callers changed.
80958         (quoting_options_from_style): New function.
80959         (quotearg_n_style): Use it.
80960         (quotearg_n_style_mem): New function.
80961
80962         * lib/quotearg.h (quotearg_n_style_mem): New function.
80963
80964 2002-01-19  Jim Meyering  <meyering@lucent.com>
80965
80966         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
80967         Remove useless quotes: DF_PROG="df".
80968         * m4/strnlen.m4: New file.
80969
80970 2002-01-16  Paul Eggert  <eggert@twinsun.com>
80971
80972         * lib/backupfile.c (ISDIGIT): Comment fix.
80973         * lib/getdate.y (ISDIGIT): Likewise.
80974         * lib/posixtm.c (ISDIGIT, year): Likewise.
80975         * lib/strverscmp.c (ISDIGIT): Likewise.
80976         * lib/userspec.c (ISDIGIT): Likewise.
80977
80978 2002-01-16  Jim Meyering  <meyering@lucent.com>
80979
80980         * lib/getdate.y: Add three semicolons, each just before a closing
80981         brace. Bison (as of version 1.31) no longer papers over that mistake.
80982
80983 2002-01-05  Jim Meyering  <meyering@lucent.com>
80984
80985         * lib/version-etc.c (version_etc_copyright): Update copyright year.
80986
80987 2001-12-19  Paul Eggert  <eggert@twinsun.com>
80988
80989         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
80990         not silently exit merely because the output buffer happens to
80991         have nothing pending.
80992
80993 2001-12-18  Paul Eggert  <eggert@twinsun.com>
80994
80995         See the big note in ../ChangeLog.
80996         * lib/human.c (suffixes): Prefer K to k for 1024.
80997         (generate_suffix_backwards): New function.
80998         (human_readable_inexact): Use it.
80999         * lib/xstrtol.c (__xstrtol): If there is no number but there
81000         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
81001         Accept 'K' as well as 'k'.
81002
81003 2001-12-15  Jim Meyering  <meyering@lucent.com>
81004
81005         * lib/regex.h (__restrict_arr): Update from libc.
81006
81007         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
81008         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
81009         (STREQ): Define.
81010
81011 2001-12-14  Jim Meyering  <meyering@lucent.com>
81012
81013         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
81014         Suggestion from Bruno Haible.
81015
81016 2001-12-10  Jim Meyering  <meyering@lucent.com>
81017
81018         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
81019         xrealloc, Instead, include "xalloc.h".
81020         (initbuffer): Don't cast xmalloc return value to char*.
81021         (readline): Reword comment.
81022         Don't cast xrealloc return value to char*
81023         Return NULL, not 0.
81024
81025 2001-12-09  Jim Meyering  <meyering@lucent.com>
81026
81027         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
81028         about `signed and unsigned type in conditional expression'.
81029         * lib/posixtm.c (posix_time_parse): Likewise.
81030
81031         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
81032
81033         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
81034         to avoid a pedantic warning.
81035
81036         * lib/getstr.c: Don't include assert.h.
81037         (getstr): Remove warning-evoking assertions.
81038         Return -1 if offset parameter is out of bounds.
81039         Change the type of a local from int to size_t.
81040
81041         * lib/strftime.c (my_strftime_localtime_r): Include this function
81042         definition in the `#if ! HAVE_TM_GMTOFF' block.
81043
81044         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
81045         Include xalloc.h instead.
81046
81047 2001-12-02  Jim Meyering  <meyering@lucent.com>
81048
81049         * lib/tempname.c: Don't declare getenv, thus reverting the change of
81050         2001-11-18.  It's no longer necessary, now that stdlib.h is always
81051         included.
81052
81053         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
81054         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
81055
81056 2001-11-30  Akim Demaille  <akim@epita.fr>
81057
81058         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
81059         before being defined.
81060
81061 2001-11-27  Paul Eggert  <eggert@twinsun.com>
81062
81063         * lib/quotearg.h (quotearg_n, quotearg_n_style):
81064         First arg is int, not unsigned.
81065         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
81066         (SIZE_MAX, UINT_MAX): New macros.
81067         (quotearg_n_options): Abort if N is negative.
81068         Avoid overflow check on hosts where size_t is 64 bits and int
81069         is 32 bits, as overflow is impossible there.
81070         Fix off-by-one typo that caused unnecessary reallocation.
81071
81072 2001-11-27  Jim Meyering  <meyering@lucent.com>
81073
81074         * lib/tempname.c: Merge with version from libc.
81075         * lib/regex.c: Likewise.
81076
81077         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
81078         systems for which STDC_HEADERS is 0, it was not included, resulting in
81079         a warning about an integer-to-pointer conversion problem with getenv.
81080         Reported by Volker Borchert.
81081
81082 2001-11-26  Jim Meyering  <meyering@lucent.com>
81083
81084         * lib/gtod.h: Remove file.
81085         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
81086         * lib/gettimeofday.c: Don't include gtod.h.
81087         (GTOD_init): Remove function.
81088         (rpl_gettimeofday): Do its job here instead, rather than aborting.
81089         Suggestion from Volker Borchert.
81090
81091 2001-11-23  Jim Meyering  <meyering@lucent.com>
81092
81093         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
81094         it.
81095         * lib/hash.c (struct hash_table): Define it here instead.
81096
81097 2001-11-22  Jim Meyering  <meyering@lucent.com>
81098
81099         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
81100
81101 2001-11-20  Jim Meyering  <meyering@lucent.com>
81102
81103         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
81104         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
81105
81106 2001-11-19  Jim Meyering  <meyering@lucent.com>
81107
81108         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
81109         directory.  Use "conftestXXXXXX" as the template.
81110         Suggestion from Paul Eggert.
81111
81112         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
81113         immediately, so the test doesn't mistakenly hit the max-open-files
81114         limit.
81115
81116 2001-11-18  Paul Eggert  <eggert@twinsun.com>
81117
81118         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
81119         (TEMPORARIES): New macro.
81120         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
81121         removes an artificial limitation (e.g. HP-UX 10.20, where
81122         TMP_MAX is 17576).
81123
81124 2001-11-18  Jim Meyering  <meyering@lucent.com>
81125
81126         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
81127
81128 2001-11-18  Jim Meyering  <meyering@lucent.com>
81129
81130         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
81131         on SunOS 4.
81132
81133         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
81134         files will be created before anything else.
81135
81136 2001-11-17  Paul Eggert  <eggert@twinsun.com>
81137
81138         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
81139         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
81140
81141 2001-11-17  Jim Meyering  <meyering@lucent.com>
81142
81143         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
81144         Prompted by a report from Bob Proulx.
81145
81146         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
81147         Instead, require UTILS_FUNC_MKSTEMP.
81148
81149 2001-11-17  Jim Meyering  <meyering@lucent.com>
81150
81151         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
81152         Now, that's done as part of AC_FUNC_STRTOD.
81153
81154 2001-11-17  Jim Meyering  <meyering@lucent.com>
81155
81156         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
81157         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
81158         rather than group writable.  Patch by Juan F. Codagnone.
81159
81160         * lib/readtokens.c: Remove explicit declarations of xmalloc and
81161         xrealloc, Instead, include "xalloc.h".
81162
81163         * lib/mountlist.c: Include unlocked-io.h after all system headers.
81164         Remove explicit declarations of xmalloc, xrealloc,
81165         and xstrdup.  Instead, include "xalloc.h".
81166
81167         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
81168         unlocked-io.h.
81169         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
81170         Likewise.
81171         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
81172
81173         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
81174         Reported by Padraig Brady.
81175
81176         * lib/mkstemp.c: #undef mkstemp.
81177         Include config.h.
81178         (rpl_mkstemp): Rename from mkstemp.
81179         Protoize.
81180
81181 2001-11-16  Jim Meyering  <meyering@lucent.com>
81182
81183         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
81184         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
81185         determine the amount of total physical memory, use pstat_getstatic.
81186         HPUX-11 doesn't define _SC_PHYS_PAGES.
81187         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
81188         If sysconf couldn't be used to determine the amount of available
81189         physical memory, use both pstat_getstatic and pstat_getdynamic.
81190         Based on a patch from Bob Proulx.
81191
81192 2001-11-10  Jim Meyering  <meyering@lucent.com>
81193
81194         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
81195         (jm_PREREQ): Use it.
81196
81197 2001-11-09  Jim Meyering  <meyering@lucent.com>
81198
81199         * m4/jm-macros.m4: Require autoconf-2.52f.
81200         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
81201         Use these AC_-prefixed names, not the AM_-prefixed ones.
81202
81203         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
81204
81205 2001-11-05  Jim Meyering  <meyering@lucent.com>
81206
81207         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
81208
81209 2001-11-04  Jim Meyering  <meyering@lucent.com>
81210
81211         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
81212         $DEFS.
81213
81214 2001-11-03  Jim Meyering  <meyering@lucent.com>
81215
81216         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
81217         of AC_DEFUN.
81218
81219         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
81220         know the name of the variable in the macro definition.
81221
81222 2001-11-03  Jim Meyering  <meyering@lucent.com>
81223
81224         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
81225         in argmatch_to_argument call.
81226
81227         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
81228         argument.
81229
81230         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
81231         e.g., a fault due to an attempt to free a NULL pointer.
81232
81233 2001-11-01  Jim Meyering  <meyering@lucent.com>
81234
81235         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
81236         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
81237
81238 2001-11-01  Jim Meyering  <meyering@lucent.com>
81239
81240         * lib/dirfd.c, lib/dirfd.h: New files.
81241         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
81242
81243         * lib/hash.c (hash_print) [TESTING]: Clean up.
81244
81245 2001-10-22  Paul Eggert  <eggert@twinsun.com>
81246
81247         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
81248         to avoid a warning if -Wall.
81249
81250 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
81251
81252         * README: New file
81253         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
81254         (per RMS's instructions, this is now the canonical source)
81255         * lgpl/, gpl/: New directories.
81256
81257 2001-10-21  Paul Eggert  <eggert@twinsun.com>
81258
81259         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
81260
81261 2001-10-21  Jim Meyering  <meyering@lucent.com>
81262
81263         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
81264         this code would end up calling gettext even in packages built
81265         with --disable-nls.
81266         * lib/getopt.c (_): Likewise.
81267         * lib/regex.c (_): Likewise.
81268
81269 2001-10-20  Paul Eggert  <eggert@twinsun.com>
81270
81271         * m4/error.m4 (jm_PREREQ_ERROR):
81272         Do not invoke AC_CHECK_FUNCS with strerror_r, as
81273         AC_FUNC_STRERROR_R does that.
81274         Check for strerror declaration.
81275
81276         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
81277         are supposed to have them these days.
81278         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
81279         Merge changes from latest Autoconf CVS.
81280         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
81281         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
81282         POSIX decided to standardize on the int flavor of strerror_r.
81283
81284 2001-10-20  Paul Eggert  <eggert@twinsun.com>
81285
81286         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
81287         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
81288         Use strerror_r that is only a macro, even if it is not a function.
81289         (strerror): Check for HAVE_DECL_STRERROR before declaring.
81290         (private_strerror): Use prototypes, not old-style function definition.
81291         (print_errno_message): New function.
81292         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
81293         char*-flavored one.
81294         (error_tail, error, error_at_line): Use it.
81295
81296 2001-10-11  Jim Meyering  <meyering@lucent.com>
81297
81298         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
81299         and quote_n (1, ... to avoid clobbering a buffer.
81300
81301 2001-10-05  Jim Meyering  <meyering@lucent.com>
81302
81303         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
81304         hash-pjw.h.
81305         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
81306         * lib/hash-pjw.h: New file.
81307
81308 2001-09-30  Jim Meyering  <meyering@lucent.com>
81309
81310         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
81311         `struct fsstat' has the `f_fstypename' member.
81312         Use that to define FS_TYPE, which is now used to make
81313         the getfsstat link test tighter.
81314
81315 2001-09-30  Jim Meyering  <meyering@lucent.com>
81316
81317         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
81318         Include <sys/ucred.h>, for Apple Darwin.
81319         Include sys/mount.h and sys/fs_types.h only if available.
81320         (FS_TYPE): Define.
81321         (read_filesystem_list): Use FS_TYPE.
81322
81323 2001-09-29  Paul Eggert  <eggert@twinsun.com>
81324
81325         * lib/exclude.c (excluded_filename): 0 -> false, since it's
81326         a boolean context.
81327
81328 2001-09-29  Jim Meyering  <meyering@lucent.com>
81329
81330         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
81331         [one-argument getmntent function]): Include stdio.h before mntent.h.
81332         SunOS 4.1.x needs it for the declaration of `FILE'.
81333         Patch by Volker Borchert.
81334
81335         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
81336         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
81337         sys/fs_types.h, and make the link-test for getfsstat guard #include
81338         directives with appropriate #if HAVE_*_H tests so that we can
81339         detect getfsstat on Apple Darwin1.3.7 systems.
81340         Reported by Nelson Beebe.
81341         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
81342
81343 2001-09-28  Paul Eggert  <eggert@twinsun.com>
81344
81345         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
81346         #defines strtoimax.  Also treat the other strto* functions
81347         like strtoimax.
81348
81349         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
81350         Check for strtoul and strtoumax,
81351         as those declarations are made even in the signed case.
81352         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
81353         Likewise, for strtol and strtoimax.
81354
81355 2001-09-28  Paul Eggert  <eggert@twinsun.com>
81356
81357         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
81358         #defines strtoimax.  Also treat the other strto* functions
81359         like strtoimax.
81360
81361         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
81362         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
81363         (strtoimax, strtoumax): Do not declare if already defined as a macro.
81364
81365 2001-09-26  Jim Meyering  <meyering@lucent.com>
81366
81367         Most macros in unlocked-io.h had the wrong number of arguments.
81368         * lib/gen-uio: New script.
81369         (USE_UNLOCKED_IO): Define to 1 if not already defined.
81370         * lib/unlocked-io.hin: Remove file.
81371         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
81372         rather than trying to embed it here.
81373         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
81374         Reported by Padraig Brady.
81375
81376 2001-09-25  Volker Borchert  <bt@teknon.de>
81377
81378         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
81379         `result'.
81380
81381 2001-09-24  Jim Meyering  <meyering@lucent.com>
81382
81383         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
81384
81385 2001-09-23  Jim Meyering  <meyering@lucent.com>
81386
81387         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
81388         instead of the mere test for existence of mntent.h.  The latter
81389         would get a false-positive on AIX 3.4 systems.
81390         In the outer getmntent if-block, don't die if neither of the getmntent
81391         tests succeeds.  Instead, just fall through and continue with the
81392         remaining tests.
81393
81394 2001-09-23  Jim Meyering  <meyering@lucent.com>
81395
81396         * lib/mountlist.c: Remove useless parentheses in #if directives.
81397         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
81398         the deprecated MOUNTED symbol is no longer defined in mntent.h.
81399
81400 2001-09-22  Jim Meyering  <meyering@lucent.com>
81401
81402         * m4/gettext.m4: New file.  From gettext.
81403         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
81404         * m4/progtest.m4: Likewise
81405         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
81406         * m4/glibc21.m4: Likewise.
81407
81408         * m4/libintl.m4: Remove.  No longer used.
81409
81410 2001-09-22  Jim Meyering  <meyering@lucent.com>
81411
81412         * lib/localcharset.c: Update from latest gettext.
81413         * lib/config.charset: Likewise.
81414
81415 2001-09-20  Jim Meyering  <meyering@lucent.com>
81416
81417         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
81418         strtoimax.
81419         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
81420         strtoumax.
81421
81422 2001-09-20  Jim Meyering  <meyering@lucent.com>
81423
81424         * lib/xstrtol.c (strtoimax): Guard declaration with
81425         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
81426         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
81427         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
81428         (strtoumax): Likewise, for completeness (it wasn't necessary).
81429
81430 2001-09-17  Paul Eggert  <eggert@twinsun.com>
81431
81432         * lib/strtoimax.c (HAVE_LONG_LONG):
81433         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
81434         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
81435         to work around bug in IBM C compiler.
81436
81437 2001-09-17  Jim Meyering  <meyering@lucent.com>
81438
81439         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
81440         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
81441         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
81442         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
81443         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
81444         whenever the right hand side need not be expanded by the shell.
81445
81446 2001-09-16  Paul Eggert  <eggert@twinsun.com>
81447
81448         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
81449         library.  It's not correct, as some older glibcs are buggy.
81450         fnmatch wasn't fixed until glibc 2.2.
81451
81452         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
81453         special shell magic here.
81454
81455 2001-09-16  Jim Meyering  <meyering@lucent.com>
81456
81457         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
81458         * m4/jm-macros.m4: Require it.
81459
81460 2001-09-16  Jim Meyering  <meyering@lucent.com>
81461
81462         * lib/mkdir.c: New file.
81463
81464 2001-09-15  Jim Meyering  <meyering@lucent.com>
81465
81466         * m4/jm-macros.m4: Check for help2man.
81467
81468 2001-09-11  Jim Meyering  <meyering@lucent.com>
81469
81470         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
81471         The body, by Paul Eggert, was moved here from configure.in.
81472         * m4/jm-macros.m4: Require UTILS_HOST_OS.
81473
81474 2001-09-04  Paul Eggert  <eggert@twinsun.com>
81475
81476         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
81477         (jm_PREREQ): Use it.
81478
81479 2001-09-04  Paul Eggert  <eggert@twinsun.com>
81480
81481         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
81482         Use ssize_t, not int, to store result of readlink.
81483         Check for ssize_t overflow as well as size_t overflow,
81484         as POSIX says the result of readlink is implementation-defined
81485         when ssize_t overflows.
81486         Remove unnecessary cast to char*.
81487         Use free+malloc instead of realloc, as the storage doesn't need
81488         to be preserved and it's clearer and can be more efficient that way.
81489         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
81490         * lib/xreadlink.h (xreadlink): Update prototype.
81491
81492 2001-09-04  Paul Eggert  <eggert@twinsun.com>
81493
81494         * lib/xgetcwd.c: Revert some of the previous change; intead,
81495         fix the HAVE_GETCWD_NULL code to behave more like the
81496         !HAVE_GETCWD_NULL code used to.
81497
81498         Include "xalloc.h".
81499         (xgetcwd): Do not return NULL when memory is exhausted; instead,
81500         invoke xalloc_die.
81501
81502 2001-09-03  Paul Eggert  <eggert@twinsun.com>
81503
81504         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
81505         sys/param.h, as pathmax.h includes them.
81506
81507 2001-09-03  Paul Eggert  <eggert@twinsun.com>
81508
81509         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
81510         (jm_PREREQ_XGETCWD): New macro.
81511
81512         * m4/getcwd.m4: New file.
81513
81514 2001-09-03  Paul Eggert  <eggert@twinsun.com>
81515
81516         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
81517         like the HAVE_GETCWD_NULL code.
81518         Include pathmax.h if not HAVE_GETCWD.
81519         Do not include xalloc.h.
81520         (INITIAL_BUFFER_SIZE): New symbol.
81521         Do not use xmalloc / xrealloc, since the caller is responsible for
81522         handling errors.  Preserve errno around `free' during failure.
81523         Do not overrun buffer when using getwd.
81524
81525 2001-09-03  Paul Eggert  <eggert@twinsun.com>
81526
81527         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
81528         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
81529         getcwd (NULL, 0).
81530
81531 2001-09-03  Paul Eggert  <eggert@twinsun.com>
81532
81533         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
81534         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
81535         spotted by Jim Meyering.
81536
81537 2001-09-03  Jim Meyering  <meyering@lucent.com>
81538
81539         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
81540         failure.
81541
81542 2001-09-02  Jim Meyering  <meyering@lucent.com>
81543
81544         * lib/error.c: Update from GNU libc.
81545
81546 2001-09-01  Jim Meyering  <meyering@lucent.com>
81547
81548         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
81549         Used by df.
81550
81551 2001-09-01  Jim Meyering  <meyering@lucent.com>
81552
81553         * lib/xreadlink.c: New file.
81554         * lib/xreadlink.h: New file.
81555         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
81556         xreadlink.h.
81557
81558         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
81559         doesn't conflict with sparc Solaris 7's definition in
81560         /usr/include/sys/int_types.h.
81561
81562         * lib/exclude.c: Use `""', not `<>' to #include non-system header
81563         files.
81564         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
81565         and strncasecmp as r-values.  Unixware didn't have declarations.
81566
81567 2001-08-31  Paul Eggert  <eggert@twinsun.com>
81568
81569         * lib/xstrtol.h: Add copyright notice.
81570         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
81571         LONGINT_INVALID_SUFFIX_CHAR.
81572
81573 2001-08-31  Paul Eggert  <eggert@twinsun.com>
81574
81575         * lib/xstrtol.c (strtoimax): New decl.
81576
81577 2001-08-31  Paul Eggert  <eggert@twinsun.com>
81578
81579         * lib/xgetcwd.c: Don't include pathmax.h.
81580         Include stdlib.h and unistd.h if available.
81581         Include xalloc.h.
81582         (xmalloc, xstrdup, free): Remove decls.
81583         (xgetcwd): Don't assume sizes fit in unsigned.
81584         Check for overflow when computing sizes.
81585         Simplify reallocation code.
81586
81587 2001-08-31  Paul Eggert  <eggert@twinsun.com>
81588
81589         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
81590         a directory's st_size can have an arbitrary value, so the old
81591         usage could waste an arbitrary amount of memory.  All uses
81592         changed.
81593         * lib/savedir.h: Update prototype.
81594
81595 2001-08-31  Paul Eggert  <eggert@twinsun.com>
81596
81597         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
81598
81599         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
81600         old strtoimax.c.
81601
81602         Also, make the following further changes to make this file's
81603         configuration more similar to that of strtol.c:
81604         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
81605         (strtoumax, uintmax_t, strtoull, strtol): Remove.
81606         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
81607         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
81608         changed to signed values.
81609
81610         And make the following changes as well:
81611         Fix copyright notice, as 1999 was missing.
81612         (verify): New macro.
81613         (strtoimax): Check sizes at compile-time, not run-time.
81614         Prefer strtol to strtoll if both work.
81615         (main): Remove; it was not that useful and was a pain to maintain.
81616
81617         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
81618
81619 2001-08-31  Jim Meyering  <meyering@lucent.com>
81620
81621         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
81622         Use an initial, malloc'd, buffer of length 128 rather than
81623         a statically allocated one of length 1024.
81624
81625 2001-08-30  Paul Eggert  <eggert@twinsun.com>
81626
81627         Simplify code, partly by assuming autoconf 2.52 semantics.
81628
81629         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
81630
81631         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
81632         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
81633         All uses removed.
81634         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
81635         Move AC_REQUIRE to next-to-top level, to avoid confusion.
81636         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
81637         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
81638         jm_AC_HEADER_INTTYPES_H.
81639         * m4/jm-macros.m4 (jm_MACROS): Likewise.
81640
81641         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
81642
81643         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
81644         Quote first arg of AC_DEFUN.
81645         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
81646         since they are needed to parse the include file even if we need
81647         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
81648         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
81649         but with opposite signedness.
81650
81651 2001-08-30  Paul Eggert  <eggert@twinsun.com>
81652
81653         Merge 'exclude' changes from tar 1.13.22.
81654         This fixes one or two unlikely storage allocation overflow bugs,
81655         but doesn't change user-visible behavior otherwise.
81656
81657 2001-08-30  Paul Eggert  <eggert@twinsun.com>
81658
81659         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
81660         (jm_PREREQ_EXCLUDE): New macro.
81661
81662 2001-08-30  Paul Eggert  <eggert@twinsun.com>
81663
81664         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
81665         tm to be declared.
81666
81667 2001-08-30  Paul Eggert  <eggert@twinsun.com>
81668
81669         * lib/hash.c: Remove '2001' from copyright notice.
81670
81671 2001-08-30  Paul Eggert  <eggert@twinsun.com>
81672
81673         * lib/full-write.h: New file.
81674         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
81675         * lib/full-write.c: Correct credits, as cccp.c no longer
81676         exists and anyway it was so heavily changed from the old cccp
81677         code as to be unrecognizable.  Include full-write.h.
81678         (full_write): Return size_t, with short writes meaning failure.
81679         All callers changed.  This fixes a bug with large buffers
81680         on 64-bit hosts.
81681         * lib/utime.c: Include full-write.h.
81682
81683 2001-08-30  Paul Eggert  <eggert@twinsun.com>
81684
81685         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
81686         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
81687         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
81688         Include if available.
81689         (<xalloc.h>): Include
81690         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
81691         (verify): New macro.  Use it to verify that EXCLUDE macros do not
81692         collide with FNM macros.
81693         (struct patopts): New struct.
81694         (struct exclude): Use it, as exclude patterns now come with options.
81695         (new_exclude): Support above changes.
81696         (new_exclude, add_exclude_file):
81697         Initial size must now be a power of two to simplify overflow checking.
81698         (free_exclude, fnmatch_no_wildcards): New function.
81699         (excluded_filename): No longer requires options arg, as the options
81700         are determined by add_exclude.  Now returns bool, not int.
81701         (excluded_filename, add_exclude):
81702         Add support for the fancy new exclusion options.
81703         (add_exclude, add_exclude_file): Now takes int options arg.
81704         Check for arithmetic overflow when computing sizes.
81705         (add_exclude_file): xrealloc might modify errno, so don't
81706         realloc until after errno might be used.
81707
81708         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
81709         New macros.
81710         (free_exclude): New decl.
81711         (add_exclude, add_exclude_file): Now takes int options arg.
81712         (excluded_filename): No longer requires options arg, as the options
81713         are determined by add_exclude.  Now returns bool, not int.
81714
81715 2001-08-30  Paul Eggert  <eggert@twinsun.com>
81716
81717         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
81718
81719 2001-08-27  Jim Meyering  <meyering@lucent.com>
81720
81721         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
81722
81723         * lib/version-etc.c (N_): Remove definition.
81724         Revert most of last change.
81725         Instead, simply don't mark the `Copyright...' string for translation.
81726         Based on advice from Paul Eggert.
81727
81728         * lib/strtoxmax.c: Tweak comment.
81729
81730 2001-08-26  Jim Meyering  <meyering@lucent.com>
81731
81732         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
81733
81734         * m4/xstrtoimax.m4: New file.
81735         * m4/xstrtoumax.m4: Add comments explaining why we
81736         AC_REPLACE_FUNCS(strtol).
81737
81738 2001-08-26  Jim Meyering  <meyering@lucent.com>
81739
81740         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
81741         of copyright with `%s' so translators don't get an untranslated
81742         message in 2002.
81743         (COPYRIGHT_YEAR): Define.
81744         (version_etc): Use fprintf rather than fputs.
81745         Suggestion from Ulrich Drepper.
81746
81747         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
81748
81749         * lib/strtoll.c: New file, from GNU libc.
81750         * lib/xstrtoimax.c: New file.
81751
81752         * lib/xstrtol.h: Add xstrtoimax.
81753         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
81754         * lib/strtoimax.c: New file.  Likewise, but first define
81755         STRTOUXMAX_SIGNED.
81756
81757         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
81758         ...
81759         * lib/strtoxmax.c: ... then renamed to this.
81760
81761 2001-08-18  Paul Eggert  <eggert@twinsun.com>
81762
81763         * m4/inttypes.m4: Add AC_PREREQ(2.13).
81764         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
81765         (jm_AC_TYPE_INTMAX_T): New macro.
81766         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
81767
81768         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
81769
81770         * m4/longlong.m4: Renamed from ulonglong.m4.
81771         * m4/inttypes.m4: Renamed from inttypes_h.m4.
81772         * m4/uintmax_t.m4: Removed.
81773
81774 2001-08-13  Paul Eggert  <eggert@twinsun.com>
81775
81776         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
81777         Port to Solaris 8, where 'sed' requires a space after the 'r'
81778         command, and where sh dislikes "$/".  Clean up the spacing a bit.
81779         Redirect output to $tmp just once.
81780
81781 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
81782
81783         * lib/addext.c (<errno.h>): Include.
81784         (errno): Declare if not defined.
81785         (addext): Work correctly when pathconf returns -1 and leaves
81786         errno alone because there is no limit.  Also, work even if
81787         pathconf returns a value greater than SIZE_MAX.
81788
81789 2001-08-12  Jim Meyering  <meyering@lucent.com>
81790
81791         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
81792         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
81793         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
81794         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
81795         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
81796         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
81797         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
81798         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
81799         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
81800         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
81801         utime.m4, utimes.m4, xstrtoumax.m4:
81802         Quote the first argument in each use of AC_DEFUN.
81803
81804 2001-08-12  Jim Meyering  <meyering@lucent.com>
81805
81806         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
81807         Simply `return getcwd (NULL, 0);'.
81808         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
81809         Use 1300 as initial value for length, not PATH_MAX.
81810
81811         * lib/pathmax.h: Clean up cpp syntax.
81812
81813 2001-08-12  Jim Meyering  <meyering@lucent.com>
81814
81815         * lib/gettimeofday.c: New file.
81816         * lib/gtod.h: New file.
81817         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
81818
81819 2001-08-05  Jim Meyering  <meyering@lucent.com>
81820
81821         * m4/jm-macros.m4: Require autoconf-2.52.
81822
81823 2001-08-04  Jim Meyering  <meyering@lucent.com>
81824
81825         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
81826         stmt, to get in sync with glibc.
81827
81828 2001-08-03  Paul Eggert  <eggert@twinsun.com>
81829
81830         The following changes are from gettext 0.10.39 as maintained by
81831         Bruno Haible.
81832
81833         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
81834         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
81835         with inverted sense.  All uses changed.
81836
81837         * lib/mbswidth.c: Don't include <limits.h>.
81838         Include <stdlib.h> and <string.h> unconditionally.
81839         (iswcntrl, mbsinit, ISCNTRL): New macros.
81840         (mbsnwidth): Use K&R style function declarations.
81841         Don't bother checking for MB_LEN_MAX == 1, since the compiler
81842         can optimize it when MB_CUR_MAX == 1.
81843         The width of control characters is zero, not 1.
81844
81845 2001-08-03  Paul Eggert  <eggert@twinsun.com>
81846
81847         The following changes are from gettext 0.10.39 as maintained by
81848         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
81849
81850         * m4/codeset.m4: Upgrade to serial AM1.
81851         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
81852         all uses changed.  Quote first arg of AC_DEFUN.
81853         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
81854
81855         * m4/iconv.m4: Upgrade to serial AM2.
81856         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
81857         Add --with-libconv-prefix.
81858         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
81859         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
81860         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
81861         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
81862         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
81863
81864         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
81865         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
81866         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
81867         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
81868         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
81869         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
81870         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
81871         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
81872         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
81873
81874         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
81875         string.h any more.
81876
81877         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
81878         not the default value.
81879
81880         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
81881         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
81882         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
81883         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
81884         Also check for iswcntrl, used for wcwidth fallback.
81885         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
81886         to Autoconf 2.13.
81887
81888 2001-08-03  Jim Meyering  <meyering@lucent.com>
81889
81890         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
81891         as it was in the original.  Reported by Paul Eggert.
81892
81893 2001-07-16  Jim Meyering  <meyering@lucent.com>
81894
81895         * m4/gettimeofday.m4: New file.
81896         Prompted by a report from Bernhard Baehr.
81897
81898 2001-07-15  Jim Meyering  <meyering@lucent.com>
81899
81900         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
81901         stuff. Now it's in ../Makefile.cfg.
81902
81903 2001-07-15  Jim Meyering  <meyering@lucent.com>
81904
81905         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
81906         (BUILT_SOURCES): Add unlocked-io.h.
81907         (io_functions): Define.
81908         (unlocked-io.h): New rule.
81909         (DISTCLEANFILES): Add unlocked-io.h.
81910         (all-local): Depend on unlocked-io.h, to ensure it is created.
81911
81912         * lib/unlocked-io.hin: New file
81913
81914         * lib/regex.c: Update from glibc.
81915
81916 2001-07-05  Jim Meyering  <meyering@lucent.com>
81917
81918         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
81919         recommendation.
81920         (libfetish_a_SOURCES): Put all .h files here instead.
81921         Remove a thus-exposed (better checks in automake) duplicate and
81922         two unnecessary .h files.
81923
81924 2001-07-04  Jim Meyering  <meyering@lucent.com>
81925
81926         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
81927         that generates jm-glibc-io.m4 so that it doesn't trigger any make
81928         distcheck failure.
81929
81930 2001-07-02  Jim Meyering  <meyering@lucent.com>
81931
81932         The following changes were prompted by suggestions from Bruno Haible.
81933
81934         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
81935         is now generated.
81936         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
81937         definition of EXTRA_DIST.
81938         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
81939         ensure that the generated file is created/updated whenever the list
81940         of $(unlocked_functions) is changed.
81941         (jm-glibc-io.m4): New rule.
81942         (unlocked-io.h): New rule -- currently unused.
81943
81944 2001-06-24  Jim Meyering  <meyering@lucent.com>
81945
81946         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
81947         unmatched right bracket, rather than kludging it with an extra,
81948         falsely-matching quote in a comment.  Patch by Akim Demaille.
81949
81950 2001-06-11  Jim Meyering  <meyering@lucent.com>
81951
81952         * lib/regex.c: Update from GNU libc.
81953
81954 2001-05-27  Jim Meyering  <meyering@lucent.com>
81955
81956         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
81957         Check for ut_type in struct utmp.
81958
81959 2001-05-27  Jim Meyering  <meyering@lucent.com>
81960
81961         * lib/readutmp.h (UT_TYPE): Define.
81962
81963 2001-05-24  Jim Meyering  <meyering@lucent.com>
81964
81965         * lib/argmatch.c: Include "quote.h".
81966         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
81967         quote function.  Reported by Göran Uddeborg.
81968
81969 2001-05-22  Jim Meyering  <meyering@lucent.com>
81970
81971         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
81972         now that we use the package-supplied version unconditionally.
81973         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
81974
81975 2001-05-21  Jim Meyering  <meyering@lucent.com>
81976
81977         * m4/regex.m4: Change a couple backticks to single quotes to avoid
81978         shell syntax errors.
81979
81980 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
81981
81982         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
81983
81984 2001-05-20  Paul Eggert  <eggert@twinsun.com>
81985
81986         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
81987         Don't bother to check library strftime, since
81988         we'll be using our own my_strftime function anyway.
81989         Define my_strftime instead of strftime.
81990
81991 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
81992
81993         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
81994         which is not yet declared.
81995
81996 2001-05-15  Jim Meyering  <meyering@lucent.com>
81997
81998         * m4/regex.m4: Use proper quoting so brackets appear in the test
81999         program.
82000         Reported by, and with help from, Bruno Haible.
82001
82002 2001-05-13  Jim Meyering  <meyering@lucent.com>
82003
82004         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
82005         undefined.
82006
82007 2001-05-11  Paul Eggert  <eggert@twinsun.com>
82008
82009         dirname code cleanup.  base_name now behaves more compatibly
82010         with POSIX basename when given file names that have trailing
82011         slashes, and similarly for dir_name.  Add new primitives
82012         base_len and dir_len.  Put the directory-name-related decls
82013         into dirname.h.
82014
82015         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
82016         * lib/backupfile.c (base_name): Likewise.
82017         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
82018         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
82019         * lib/makepath.c (strip_trailing_slashes): Likewise.
82020         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
82021         ISSLASH): Likewise.
82022         * lib/rename.c (strip_trailing_slashes): Likewise.
82023         * lib/same.c (base_name): Likewise.
82024         * lib/stripslash.c (ISSLASH): Likewise.
82025
82026         * lib/addext.c: Include <dirname.h> after size_t is defined.
82027         * lib/backupfile.c: Likewise.
82028
82029         * lib/addext.c (addext): Use base_len to trim redundant
82030         trailing slashes instead of doing it ourselves.
82031         But do not trim the last slash if it is not redundant.
82032
82033         * lib/backupfile.c (find_backup_file_name,
82034         max_backup_version): Use base_len instead of rolling it ourselves.
82035         Handle the case of "" and (on DOS) "C:" correctly.
82036
82037         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
82038         needed. Include <string.h>, <dirname.h>.
82039         (base_name): Allow file names ending in slashes, other than names
82040         that are all slashes.  In this case, return the basename followed
82041         by the slashes.  This is more general, and can be used in places
82042         where the original base_name purposely had an assertion failure.
82043         (base_len): New function.
82044
82045         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
82046         Do not include <assert.h>; no longer needed.
82047         Include xalloc.h.
82048         (memrchr): Remove decl.
82049         (dir_name_r): Remove.
82050         (dir_len): Renamed from dirlen.  All callers changed.
82051         Rewrite in terms of base_name, for simplicity and consistency.
82052         (dir_name): Never return NULL.  All callers changed.
82053         Do not include <stdlib.h> in test program; no longer needed.
82054         return 0; is fine for test program.
82055
82056         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
82057         New macros.
82058         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
82059
82060         * lib/path-concat.c (path_concat): Use base_len to compute
82061         base length, not strlen; this means we cannot rely on memcpy
82062         to null-terminate.
82063
82064         * lib/same.c (STREQ): Remove.
82065         (same_name): Handle the case where the basename ends in trailing '/'.
82066
82067         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
82068         a slash was stripped.  Do not strip the last slash after a
82069         file system prefix.
82070
82071 2001-05-11  Paul Eggert  <eggert@twinsun.com>
82072
82073         * lib/Makefile.am (libfetish_a_SOURCES):
82074         Add strftime.c, since we now compile it on all hosts.
82075
82076         * lib/strftime.c (my_strftime):
82077         Define to nstrftime if emacs, but only if my_strftime is not defined.
82078         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
82079         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
82080         Add one more extra argument: a nanoseconds value.
82081         All uses changed.
82082         (ns): New macro.
82083         (my_strftime function): Add %N format.
82084         (emacs_strftimeu): Renamed from emacs_strftime,
82085         with extra ut argument.
82086
82087 2001-05-09  Paul Eggert  <eggert@twinsun.com>
82088
82089         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
82090
82091 2001-04-21  Jim Meyering  <meyering@lucent.com>
82092
82093         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
82094         doesn't interfere.
82095
82096 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
82097
82098         * m4/ftruncate.m4: Check for chsize.
82099         Link with ftruncate.o unconditionally if ftruncate is missing.
82100         This was required when cross-compiling to i586-mingw32msvc.
82101
82102 2001-04-08  Jim Meyering  <meyering@lucent.com>
82103
82104         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
82105         recomputed; that's necessary when the offset spans a DST transition.
82106         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
82107
82108 2001-04-02  Jim Meyering  <meyering@lucent.com>
82109
82110         * lib/regex.h, regex.c: Update from GNU libc.
82111
82112 2001-03-24  Jim Meyering  <meyering@lucent.com>
82113
82114         * m4/jm-macros.m4: Require autoconf-2.49d.
82115
82116 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
82117
82118         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
82119
82120 2001-03-19  Paul Eggert  <eggert@twinsun.com>
82121
82122         * lib/version-etc.c (version_etc_copyright): Update to 2001.
82123
82124 2001-03-17  Jim Meyering  <meyering@lucent.com>
82125
82126         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
82127         now that the version in autoconf is equivalent.
82128         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
82129
82130         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
82131         Suggestion from Akim Demaille.
82132
82133         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
82134         (jm_PREREQ_TEMPNAME): New function.
82135
82136 2001-03-16  Paul Eggert  <eggert@twinsun.com>
82137
82138         * lib/tempname.c (uint64_t): Define to uintmax_t if
82139         not defined, and if UINT64_MAX is not defined.
82140         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
82141         Reported by John David Anglin.
82142
82143 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
82144
82145         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
82146         resolve alias if codeset is empty.
82147         * lib/config.charset (BeOS): Use wildcard syntax.
82148
82149 2001-03-13  Jim Meyering  <meyering@lucent.com>
82150
82151         * lib/path-concat.c (path_concat)
82152         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
82153         concatenating e.g., `C:' and `foo'.
82154         From Bruno Haible.
82155
82156 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
82157
82158         * lib/localcharset.c (locale_charset): Don't use
82159         setlocale(LC_CTYPE,NULL). Don't return NULL.
82160         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
82161
82162 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
82163
82164         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
82165         support for DOS/DJGPP.
82166
82167 2001-03-01  Paul Eggert  <eggert@twinsun.com>
82168
82169         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
82170         lacks mkstemp.  Compile our own tempname.c if we compile our own
82171         mkstemp.c, as mkstemp relies on tempname.
82172
82173 2001-03-01  Jim Meyering  <meyering@lucent.com>
82174
82175         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
82176         AH_VERBATIM really does output its argument verbatim.
82177
82178 2001-02-28  Paul Eggert  <eggert@twinsun.com>
82179
82180         * lib/Makefile.am (libfetish_a_SOURCES):
82181         Add dup-safer.c, fopen-safer.c.
82182         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
82183
82184         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
82185         * lib/unistd-safer.h: New files.
82186
82187 2001-02-25  Paul Eggert  <eggert@twinsun.com>
82188
82189         The mkstemp replacement is taken from glibc 2.2.2, with some
82190         portability fixes for use outside glibc, as follows:
82191
82192         * lib/tempname.c (struct_stat64): New macro.
82193         (direxists, __gen_tempname): Use it.
82194         This avoids a portability problem with Solaris 8.
82195
82196         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
82197         (<stddef.h>, <stdint.h>, <string.h>):
82198         Include only if STDC_HEADERS || _LIBC.
82199         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
82200         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
82201         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
82202         (__set_errno): Define this macro if <errno.h> doesn't.
82203         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
82204         Define these macros if <stdio.h> doesn't.
82205         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
82206         Define these macros if <sys/stat.h>
82207         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
82208         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
82209         __xstat64): Define if not _LIBC.
82210         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
82211         (__gen_tempname): Invoke gettimeofday only if
82212         HAVE_GETTIMEOFDAY || _LIBC;
82213         otherwise, fall back on plain "time".
82214         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
82215
82216         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
82217
82218         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
82219
82220 2001-02-18  Paul Eggert  <eggert@twinsun.com>
82221
82222         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
82223
82224 2001-02-17  Paul Eggert  <eggert@twinsun.com>
82225
82226         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
82227         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
82228         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
82229         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
82230
82231 2001-02-17  Paul Eggert  <eggert@twinsun.com>
82232
82233         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
82234         Remove workaround macros for hosts that have mbrtowc but not
82235         mbstate_t, as we now insist on proper declarations for both
82236         before using mbrtowc.
82237
82238 2001-02-17  Jim Meyering  <meyering@lucent.com>
82239
82240         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
82241         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
82242         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
82243         UnixWare 7.1.1.
82244
82245         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
82246         rather than AC_CACHE_VAL.
82247
82248 2001-02-17  Jim Meyering  <meyering@lucent.com>
82249
82250         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
82251         around included file name.
82252
82253         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
82254
82255         * lib/strftime.c: Update from GNU libc (the only changes were to
82256         comments).
82257
82258 2001-02-17  Jim Meyering  <meyering@lucent.com>
82259
82260         * lib/regex.c: Update from libc.
82261
82262 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
82263
82264         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
82265         clash.
82266
82267 2001-02-16  Paul Eggert  <eggert@twinsun.com>
82268
82269         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
82270         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
82271         Reported by Mark Hounschell via Paul Eggert.
82272
82273 2001-02-07  Jim Meyering  <meyering@lucent.com>
82274
82275         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
82276
82277 2001-02-05  Jim Meyering  <meyering@lucent.com>
82278
82279         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
82280         it includes the patch required for `large file' support with at least
82281         HP-UX's 10.20 /bin/cc.
82282
82283 2001-02-03  Jim Meyering  <meyering@lucent.com>
82284
82285         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
82286         AS_IF, now that it works once again (mysteriously).
82287         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
82288
82289 2001-01-30  Jim Meyering  <meyering@lucent.com>
82290
82291         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
82292         * m4/chown.m4: Rename conftestchown to conftest.chown.
82293         * m4/rename.m4: s/conftestdir/conftest.d1/ and
82294         s/conftestdir2/conftest.d2/.
82295         * m4/utimes.m4: s/conftestdata/conftest.data/
82296         Inspired by Pavel Roskin's change in autoconf.
82297
82298 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
82299
82300         * lib/config.charset: Update for FreeBSD 4.2.
82301
82302 2001-01-27  Jim Meyering  <meyering@lucent.com>
82303
82304         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
82305         a use of AS_IF.
82306         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
82307
82308 2001-01-26  Jim Meyering  <meyering@lucent.com>
82309
82310         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
82311         quotearg.c includes it.
82312
82313 2001-01-26  Jim Meyering  <meyering@lucent.com>
82314
82315         * lib/quotearg.c: Include stddef.h.
82316         * lib/quote.c: Include stddef.h.
82317         Reported by Axel Kittenberger.
82318
82319         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
82320         line in double quotes so that it evokes a better diagnostic.
82321         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
82322         Reported by Axel Kittenberger.
82323
82324 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
82325
82326         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
82327         as if it was a `charset'.
82328
82329 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
82330
82331         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
82332         has const.
82333
82334 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
82335
82336         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
82337         to avoid a warning.  Add back 'const' to inptr.
82338
82339 2001-01-20  Jim Meyering  <meyering@lucent.com>
82340
82341         Be sure that headers are checked before used in code compiled
82342         for the type checks.
82343         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
82344         In place of that, invoke jm_CHECK_ALL_TYPES.
82345         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
82346         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
82347         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
82348         The check for ssize_t was mistakenly run before the test for unistd.h.
82349
82350         The configure-time check for stdbool.h was missing.
82351         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
82352         (jm_PREREQ_HASH): New function.
82353
82354 2001-01-17  Jim Meyering  <meyering@lucent.com>
82355
82356         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
82357         for autoconf-2.49c.
82358         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
82359
82360 2001-01-16  Jim Meyering  <meyering@lucent.com>
82361
82362         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
82363         From Bruno Haible.
82364
82365 2001-01-14  Jim Meyering  <meyering@lucent.com>
82366
82367         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
82368         foo and bar.  Create conftestdir/ in the script, not in the C code.
82369         Remove directories in the script, not in the C code.
82370         Remove conftestdir{,2} before trying to create the directory.
82371         Make the entire configure script fail if the mkdir fails.
82372
82373 2001-01-14  Jim Meyering  <meyering@lucent.com>
82374
82375         * lib/rename.c: New file.  From Volker Borchert.
82376         Include stdlib.h, string.h or strings.h, and xalloc.h.
82377         Use strip_trailing_slashes rather than open-coding it.
82378
82379 2001-01-03  Paul Eggert  <eggert@twinsun.com>
82380
82381         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
82382
82383 2001-01-03  Jim Meyering  <meyering@lucent.com>
82384
82385         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
82386         of local `inptr' to avoid warning with some system declarations of
82387         iconv.
82388
82389 2001-01-02  Volker Borchert  <bt@teknon.de>
82390
82391         * m4/rename.m4: New file.
82392         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
82393
82394 2001-01-01  Jim Meyering  <meyering@lucent.com>
82395
82396         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
82397         even on systems with utmpx.h.  It's necessary for the declaration of
82398         utmp's ut_user member.  Reported by Andreas Jaeger.
82399
82400         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
82401         available. They are required for the declarations of getgrgid and
82402         getpwuid resp.
82403         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
82404         Reported by Andreas Jaeger.
82405
82406 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
82407
82408         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
82409         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
82410         so `make install' also works in VPATH builds.
82411
82412 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
82413
82414         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
82415         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
82416         can be used in subdirectories.
82417
82418 2000-12-29  Paul Eggert  <eggert@twinsun.com>
82419
82420         * lib/modechange.c: Do not assume that mode_t uses the
82421         traditional octal encoding.  E.g. "chmod 1 FOO" should set
82422         the other-execute bit of FOO even if S_IXOTH != 1.
82423
82424         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
82425         WOTH, XOTH, ALLM): New macros.
82426         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
82427          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
82428         Use them.
82429         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
82430         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
82431         (mode_compile):
82432         No need to use uintmax_t; unsigned long is long enough.
82433         Don't bother to get suffix since we don't use it.
82434
82435 2000-12-26  Jim Meyering  <meyering@lucent.com>
82436
82437         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
82438         better with autoheader.
82439
82440 2000-12-24  Jim Meyering  <meyering@lucent.com>
82441
82442         * lib/hash.c (is_prime): Return explicit boolean values.
82443         (hash_get_first): Return NULL to appease Irix5.6's 89.
82444         Reported by Nelson Beebe.
82445
82446 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
82447
82448         * lib/localcharset.c (locale_charset): Add support for Win32.
82449
82450 2000-12-18  Paul Eggert  <eggert@twinsun.com>
82451
82452         * lib/physmem.h, lib/physmem.c: New files.
82453
82454         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
82455         (noinst_HEADERS): Add physmem.h.
82456
82457         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
82458         't' for compatibility with Solaris 8 sort.
82459
82460 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
82461
82462         * lib/config.charset: Add support for BeOS.
82463
82464 2000-12-17  Jim Meyering  <meyering@lucent.com>
82465
82466         * m4/dos.m4 (jm_AC_DOS): New file and macro.
82467         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
82468
82469 2000-12-16  Jim Meyering  <meyering@lucent.com>
82470
82471         This bug had a serious impact on chown: `chown N:M FILE' (for integer
82472         N and M) would have treated it like `chown N:N FILE'.
82473
82474         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
82475
82476 2000-12-16  Jim Meyering  <meyering@lucent.com>
82477
82478         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
82479         SHELLS_FILE to a file name that's useful on djgpp systems.
82480         Include stdlib.h.
82481         (ADDITIONAL_DEFAULT_SHELLS): Define.
82482         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
82483         Based mostly on a patch from Prashant TR.
82484
82485 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
82486
82487         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
82488         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
82489         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
82490
82491 2000-12-08  Andreas Schwab  <schwab@suse.de>
82492
82493         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
82494         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
82495
82496 2000-12-07  Jim Meyering  <meyering@lucent.com>
82497
82498         * lib/stripslash.c (ISSLASH): Define.
82499         (strip_trailing_slashes): Use ISSLASH rather than comparing against
82500         `/'.
82501         From Prashant TR.
82502
82503         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
82504         (dir_name_r): Declare this function as static.
82505         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
82506         manifest itself on a name containing a mix of slashes and
82507         backslashes.
82508         Make this function work with names starting with a DOS-style
82509         drive letter and colon prefix.
82510         (dir_name): Append `.' if necessary.
82511         Based mostly on patches from Prashant TR and Eli Zaretskii.
82512
82513         * lib/dirname.h (dir_name_r): Remove prototype.
82514
82515 2000-12-06  Paul Eggert  <eggert@twinsun.com>
82516
82517         * m4/off_t-format.m4: Remove this file.
82518         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
82519
82520 2000-12-06  Jim Meyering  <meyering@lucent.com>
82521
82522         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
82523         replacement strtoull, we may well need the replacement strtoul, too.
82524         Check for declarations of strtoul and strtoull.
82525         Check for strtol.  Mainly as a cue to cause automake to include
82526         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
82527         Check for limits.h -- strtol.c needs it.
82528
82529 2000-12-05  Jim Meyering  <meyering@lucent.com>
82530
82531         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
82532
82533 2000-12-04  Jim Meyering  <meyering@lucent.com>
82534
82535         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
82536         Also include memory.h, stdlib.h, unistd.h if appropriate.
82537         Reported by Andreas Jaeger (conflicting declaration of malloc).
82538
82539 2000-12-02  Jim Meyering  <meyering@lucent.com>
82540
82541         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
82542         * m4/jm-macros.m4 (jm_MACROS): require it.
82543
82544 2000-12-02  Jim Meyering  <meyering@lucent.com>
82545
82546         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
82547
82548 2000-12-01  Paul Eggert  <eggert@twinsun.com>
82549
82550         * lib/memrchr.c: Include <config.h> before any system include file.
82551
82552 2000-11-30  Jim Meyering  <meyering@lucent.com>
82553
82554         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
82555
82556 2000-11-30  Jim Meyering  <meyering@lucent.com>
82557
82558         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
82559
82560 2000-11-29  Paul Eggert  <eggert@twinsun.com>
82561
82562         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
82563
82564 2000-11-26  Jim Meyering  <meyering@lucent.com>
82565
82566         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
82567
82568 2000-11-22  Paul Eggert  <eggert@twinsun.com>
82569
82570         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
82571         size of (size_t) -1; it's not portable.
82572
82573 2000-11-17  Jim Meyering  <meyering@lucent.com>
82574
82575         * lib/strstr.c: Update from GNU libc.
82576
82577 2000-11-17  Akim Demaille  <akim@epita.fr>
82578
82579         * lib/obstack.h: Formatting changes.
82580         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
82581         prevent type checking.
82582         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
82583         cast the value to (void *): assigning a `foo *' to a `void *'
82584         variable is valid.
82585         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
82586
82587 2000-11-16  Jim Meyering  <meyering@lucent.com>
82588
82589         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
82590
82591 2000-11-11  Jim Meyering  <meyering@lucent.com>
82592
82593         * lib/error.c: Add a couple #includes, merging from GNU libc version.
82594
82595 2000-11-10  Jim Meyering  <meyering@lucent.com>
82596
82597         * lib/obstack.h: Update from GNU libc.
82598         * lib/obstack.c: Likewise.
82599
82600 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
82601
82602         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
82603
82604 2000-11-06  Paul Eggert  <eggert@twinsun.com>
82605
82606         * lib/getusershell.c (setusershell): Use rewind rather than
82607         fseek/fseeko, to avoid configuration hassles with fseeko.
82608         Don't bother opening SHELLS_FILE if shellstream is NULL;
82609         it's not necessary.
82610
82611 2000-11-05  Jim Meyering  <meyering@lucent.com>
82612
82613         * lib/makepath.h (make_dir): Declare.
82614         * lib/makepath.c (make_dir): Remove `static' attribute.
82615         Tweak a comment.
82616
82617 2000-11-04  Jim Meyering  <meyering@lucent.com>
82618
82619         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
82620
82621 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
82622
82623         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
82624         last one in a bucket, advance to the next bucket.
82625
82626 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
82627
82628         * lib/fnmatch.c: Do not comment out all the code if we are using
82629         the GNU C library, because in some cases we are replacing buggy
82630         code in the GNU C library itself.
82631
82632 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
82633
82634         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
82635         (regex_compile): Catch bogus \(\1\).
82636
82637 2000-10-30  Paul Eggert  <eggert@twinsun.com>
82638
82639         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
82640         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
82641         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
82642
82643 2000-10-30  Paul Eggert  <eggert@twinsun.com>
82644
82645         * lib/error.h, getline.h, modechange.h:
82646         Remove "2000" from Copyright line, as the file hasn't been
82647         changed this year other than in the copyright notice.
82648
82649         * lib/xalloc.h: Add "2000" to Copyright line, as this file
82650         was changed this year.
82651
82652 2000-10-29  Jim Meyering  <meyering@lucent.com>
82653
82654         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
82655         renaming.
82656         * m4/ls-mntd-fs.m4: Likewise
82657
82658 2000-10-29  Jim Meyering  <meyering@lucent.com>
82659
82660         * lib/xstat.in: Fix grammar in comment.
82661
82662 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
82663
82664         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
82665         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
82666         doesn't define __restrict_arr.
82667
82668 2000-10-28  Jim Meyering  <meyering@lucent.com>
82669
82670         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
82671         (jm_PREREQ_MEMCHR): New function.
82672
82673 2000-10-28  Jim Meyering  <meyering@lucent.com>
82674
82675         * lib/memchr.c: Update from libc.
82676         Adjust for portability:
82677         [HAVE_STDLIB_H]: Include stdlib.h.
82678         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
82679         Undef __memchr, too.
82680         [!weak_alias]: Define __memchr to memchr.
82681
82682         * lib/regex.c: Update from libc.
82683         * lib/regex.h: Likewise.
82684         * lib/getopt1.c: Likewise.
82685         * lib/memcmp.c: Likewise.
82686
82687         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
82688         Avoid using fseek, when possible -- it's broken by design.
82689         Patch by Ulrich Drepper.
82690
82691 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
82692
82693         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
82694         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
82695         Giving in to popular pressure to shut up the compiler with casts.
82696
82697 2000-10-26  Jim Meyering  <meyering@lucent.com>
82698
82699         * lib/strftime.c: Update from libc.
82700
82701 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
82702
82703         * regex.c: More `unsigned char' -> `re_char' changes.
82704         Also change several `int' into `re_wchar_t'.
82705         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
82706         (PUSH_FAILURE_POINTER): Don't cast any more.
82707         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
82708         We want GCC to complain, since this piece of code makes
82709         re_match non-reentrant, which *should* be fixed.
82710         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
82711         (EXTEND_BUFFER): Use RETALLOC.
82712         (SET_LIST_BIT): Don't cast.
82713         (re_wchar_t): New type.
82714         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
82715         that those two functions will always properly return.
82716         (IMMEDIATE_QUIT_CHECK): Cast to void.
82717         (analyse_first): Use recursion rather than an explicit stack.
82718         (re_compile_fastmap): Can't fail anymore.
82719         (re_search_2): Don't check re_compile_fastmap for failure.
82720         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
82721         Now also sets the new value (passed in a new argument).
82722         (re_match_2_internal): Use it.
82723         Also, use a new var `reg' of type size_t when looping through regs
82724         rather than reuse the inappropriate `mcnt'.
82725
82726 2000-10-25  Jim Meyering  <meyering@lucent.com>
82727
82728         * lib/obstack.c: Update from libc.
82729
82730 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
82731
82732         * regex.c (regex_compile): Change the way of handling a range from
82733         a char less than 256 to a char not less than 256.
82734
82735 2000-10-24  Andrew Innes  <andrewi@gnu.org>
82736
82737         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
82738         NT-Emacs only.
82739         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
82740         so that re_search functions only quit when callers expect them to.
82741
82742 2000-10-23  Jim Meyering  <meyering@lucent.com>
82743
82744         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
82745         wrong.  That set_locale call must not have any side effects.
82746         From Paul Eggert.
82747
82748 2000-10-22  Jim Meyering  <meyering@lucent.com>
82749
82750         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
82751         [CYCLIC]: Remove now-unused definition.
82752
82753         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
82754         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
82755         Suggestion from Ulrich Drepper.
82756
82757 2000-10-21  Jim Meyering  <meyering@lucent.com>
82758
82759         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
82760         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
82761         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
82762
82763 2000-10-21  Jim Meyering  <meyering@lucent.com>
82764
82765         * lib/dirname.c (memrchr): Declare if necessary.
82766         (dir_name): Remove the restriction that there be no
82767         trailing slashes.  Now, this code skips past them, effectively
82768         ignoring them.
82769         [TEST_DIRNAME] (main): New unit tests.
82770
82771         * lib/memrchr.c: New file from GNU libc.
82772         Undef __memrchr, too.
82773         [!weak_alias]: Define __memrchr to memrchr.
82774         Guard weak_alias use with `#ifdef weak_alias'.
82775
82776 2000-10-21  Jim Meyering  <meyering@lucent.com>
82777
82778         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
82779         (dir_name): Use dir_name_r.
82780         * lib/dirname.h (dir_name_r): Declare it.
82781
82782 2000-10-17  Jim Meyering  <meyering@lucent.com>
82783
82784         * lib/quote.h (PARAMS): Define and use.
82785         Reported by Akim Demaille.
82786
82787         * lib/getopt.c: Update from libc.
82788
82789 2000-10-16  Jim Meyering  <meyering@lucent.com>
82790
82791         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
82792         setlocale.
82793         From Jan Fedak.
82794
82795 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
82796
82797         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
82798
82799 2000-09-25  Jim Meyering  <meyering@lucent.com>
82800
82801         * lib/md5.h (rol): Define (from GnuPG).
82802
82803         * lib/sha.c: Give credit (GnuPG) where due.
82804         (M): Use rol rather than open-coding it.
82805         Add a FIXME comment.
82806
82807 2000-09-21  Jim Meyering  <meyering@lucent.com>
82808
82809         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
82810         Reported by Michael Stone.
82811
82812 2000-09-20  Jim Meyering  <meyering@lucent.com>
82813
82814         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
82815         (noinst_HEADERS): Add sha.h.
82816         Based on code from Scott G. Miller and from GnuPG.
82817
82818 2000-09-18  Jim Meyering  <meyering@lucent.com>
82819
82820         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
82821         LIBS. Otherwise, everyone ends up linking with -lelf for some
82822         configurations.
82823         Reported by Mike Stone.
82824
82825 2000-09-15  Jim Meyering  <meyering@lucent.com>
82826
82827         * lib/regex.c: Update from libc.
82828
82829 2000-09-10  Jim Meyering  <meyering@lucent.com>
82830
82831         * lib/getopt.c (_getopt_internal): Update from glibc.
82832
82833 2000-09-09  Jim Meyering  <meyering@lucent.com>
82834
82835         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
82836         think it should be used as a general replacement for isascii.
82837         * lib/fnmatch.c: Likewise.
82838         * lib/mbswidth.c: Likewise
82839         * lib/regex.c: Likewise.
82840
82841         Don't use atoi.
82842         * lib/userspec.c: Include sys/param.h and limits.h.
82843         Include xstrtol.h.
82844         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
82845         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
82846         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
82847         UID, GID.  Check range.
82848
82849 2000-09-06  Jim Meyering  <meyering@lucent.com>
82850
82851         * lib/getopt.c (_getopt_internal): Update from glibc.
82852
82853 2000-08-30  Jim Meyering  <meyering@lucent.com>
82854
82855         * lib/strftime.c: Merge in changes from GNU libc.
82856
82857 2000-08-26  Jim Meyering  <meyering@lucent.com>
82858
82859         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
82860         * m4/fpending.m4: New file.
82861
82862 2000-08-26  Jim Meyering  <meyering@lucent.com>
82863
82864         * lib/closeout.c: Include "__fpending.h".
82865         (close_stdout_status): Return right away if there's nothing to flush.
82866
82867         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
82868         * lib/__fpending.c: New file.
82869         * lib/__fpending.h: New file.
82870
82871 2000-08-20  Jim Meyering  <meyering@lucent.com>
82872
82873         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
82874         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
82875         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
82876
82877 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
82878
82879         Improve fileutils installation on systems where running
82880         programs (like install) can't be unlinked.
82881         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
82882         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
82883
82884 2000-08-07  Paul Eggert  <eggert@twinsun.com>
82885
82886         Standardize on "memory exhausted" instead of "Memory exhausted"
82887         or "virtual memory exhausted".
82888         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
82889         "virtual memory exhausted".
82890         * lib/same.c (same_name): Invoke xalloc_die instead of printing
82891         our own message.
82892         * lib/userspec.c (parse_user_spec): Likewise.
82893         * lib/bumpalloc.h: comment fix
82894         * lib/same.c, userspec.c: Include xalloc.h.
82895
82896         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
82897         not char *const and pointing to a constant array.
82898         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
82899         (xrealloc): Comment fix.
82900
82901         * lib/userspec.c (parse_user_spec):
82902         Don't translate a message until just before returning,
82903         to avoid unnecessary translation.
82904
82905 2000-08-07  Jim Meyering  <meyering@lucent.com>
82906
82907         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
82908         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
82909         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
82910         getgroups.c, gethostname.c, getopt.h, group-member.c,
82911         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
82912         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
82913         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
82914         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
82915         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
82916         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
82917         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
82918         yesno.c: Back out Copyright date changes for each file with no change
82919         this year.  This eases coordination with other programs using the same
82920         source code modules.  From Paul Eggert.
82921
82922 2000-08-06  Paul Eggert  <eggert@twinsun.com>
82923
82924         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
82925         not char, for compatibility with glibc 2.1.3 strftime.c.
82926
82927 2000-08-03  Greg McGary  <greg@mcgary.org>
82928
82929         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
82930         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
82931         (EXTEND_BUFFER): Use them.
82932
82933 2000-08-01  Jim Meyering  <meyering@lucent.com>
82934
82935         * lib/dirname.c (ISSLASH): Define.
82936         (BACKSLASH_IS_PATH_SEPARATOR): Define.
82937         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
82938         both `\' and `/' may be use as path separators.
82939         Based on a patch from Prashant TR.
82940
82941 2000-07-31  Paul Eggert  <eggert@twinsun.com>
82942
82943         * lib/quotearg.c (quotearg_n_options): Don't make the initial
82944         slot vector a constant, since it might get modified.
82945
82946 2000-07-31  Jim Meyering  <meyering@lucent.com>
82947
82948         * lib/xmalloc.c: Use `virtual memory exhausted', not
82949         `Memory exhausted'.
82950         * lib/obstack.c (print_and_abort): Likewise.
82951
82952 2000-07-30  Paul Eggert  <eggert@twinsun.com>
82953
82954         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
82955         buffer, so that the caller can always quote one small
82956         component of a "memory exhausted" message in slot 0.
82957         From a suggestion by Jim Meyering.
82958
82959 2000-07-30  Jim Meyering  <meyering@lucent.com>
82960
82961         * lib/makepath.c (make_path): Quote the other instance, too.
82962
82963         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
82964         (STATIC_BUF_SIZE): Define.
82965         (quotearg_n_options): Use only statically allocated storage when
82966         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
82967         than STATIC_BUF_SIZE.
82968
82969 2000-07-29  Jim Meyering  <meyering@lucent.com>
82970
82971         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
82972         * lib/dirname.c (dir_name): Likewise.
82973
82974         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
82975         `/'.
82976
82977         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
82978         (dir_name): Assert that there are no trailing slashes.
82979
82980 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
82981
82982         * lib/mbswidth.h (mbswidth): Add a flags argument.
82983         (mbswidth): New declaration.
82984         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
82985         * lib/mbswidth.c (mbswidth): Add a flags argument.
82986         (mbsnwidth): New function.
82987
82988 2000-07-24  Jim Meyering  <meyering@lucent.com>
82989
82990         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
82991
82992 2000-07-23  Paul Eggert  <eggert@twinsun.com>
82993
82994         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
82995
82996 2000-07-23  Paul Eggert  <eggert@twinsun.com>
82997
82998         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
82999         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
83000         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
83001         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
83002         invoke multibyte primitives.
83003
83004 2000-07-23  Paul Eggert  <eggert@twinsun.com>
83005
83006         * lib/quotearg.c:
83007         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
83008         so that mbstate_t is always defined.
83009
83010         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
83011         be 1 in at least one GCC installation, and this configuration
83012         error is likely to be common.  Ignoring MB_LEN_MAX hurts
83013         performance on hosts that have mbrtowc but have only unibyte
83014         locales, but I assume these hosts are rare.
83015
83016 2000-07-23  Paul Eggert  <eggert@twinsun.com>
83017
83018         * lib/mbswidth.c (_XOPEN_SOURCE):
83019         Don't define; this causes problems on Solaris 7.
83020         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
83021
83022 2000-07-23  Jim Meyering  <meyering@lucent.com>
83023
83024         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
83025         too: getgrgid, getpwuid, getuid.
83026
83027 2000-07-23  Jim Meyering  <meyering@lucent.com>
83028
83029         * lib/basename.c (base_name): Add an assertion.
83030
83031 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
83032
83033         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
83034         shadow its mbsinit function.
83035
83036 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
83037
83038         * lib/mbswidth.h: New file.
83039         * lib/mbswidth.c: New file.
83040         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
83041         (noinst_HEADERS): Add mbswidth.h.
83042
83043 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
83044
83045         * lib/config.charset: Add support for FreeBSD. Improve support for
83046         HP-UX and IRIX 6.
83047
83048 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
83049
83050         * m4/mbswidth.m4: New file.
83051         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
83052
83053 2000-07-15  Jim Meyering  <meyering@lucent.com>
83054
83055         * lib/makepath.c: Include quote.h.
83056         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
83057         corresponding argument in a `quote (...)' call.
83058         Give better diagnostics.
83059
83060         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
83061         (noinst_HEADERS): Add quote.h.
83062
83063         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
83064         from tar's src/misc.c.
83065         * lib/quote.h: New file.  Prototypes for same.
83066
83067 2000-07-14  Paul Eggert  <eggert@twinsun.com>
83068
83069         From a suggestion by Bruno Haible.
83070         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
83071         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
83072         to decide whether to define the BeOS workaround macro;
83073         this adjusts to the change to AC_MBSTATE_T.
83074
83075 2000-07-14  Jim Meyering  <meyering@lucent.com>
83076
83077         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
83078         jm_AC_TYPE_UINTMAX_T.
83079
83080 2000-07-13  Paul Eggert  <eggert@twinsun.com>
83081
83082         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
83083
83084         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
83085         quotearg_buffer_restyled): Add support for
83086         clocale_quoting_style.  Undo previous change to
83087         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
83088         and "{RIGHT QUOTATION MARK}" msgids.
83089
83090 2000-07-10  Paul Eggert  <eggert@twinsun.com>
83091
83092         From a suggestion by Bruno Haible.
83093         * m4/mbstate_t.m4 (AC_MBSTATE_T):
83094         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
83095         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
83096         and mbstate_t, to a single-part test that simply defines mbstate_t.
83097         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
83098         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
83099
83100 2000-07-10  Jim Meyering  <meyering@lucent.com>
83101
83102         * m4/strerror_r.m4: Mirror the correction made in autoconf.
83103
83104         * m4/gnu-source.m4: Output to confdefs.h directly.
83105         Suggestion from Akim Demaille.
83106
83107 2000-07-09  Paul Eggert  <eggert@twinsun.com>
83108
83109         The old behavior of quoting `like this' doesn't look good with
83110         newer, ISO-style fonts.  See:
83111         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
83112
83113         Instead, quote "like this" by default.  Let the translator
83114         tailor the locale-specific quoting behavior by providing
83115         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
83116
83117         * lib/quotearg.c (N_): New macro.
83118         (gettext_default): New function.
83119         (quotearg_buffer_restyled): Use
83120         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
83121         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
83122
83123 2000-07-09  Jim Meyering  <meyering@lucent.com>
83124
83125         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
83126         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
83127
83128         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
83129         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
83130
83131 2000-07-09  Jim Meyering  <meyering@lucent.com>
83132
83133         * lib/Most files: Update copyright dates to include 2000.
83134
83135 2000-07-08  Jim Meyering  <meyering@lucent.com>
83136
83137         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
83138         if not defined.
83139         (xgethostname): Remove now-unnecessary #ifdef.
83140         Move declaration of `err' into loop where it's used.
83141
83142 2000-07-05  Paul Eggert  <eggert@twinsun.com>
83143         and Bruno Haible  <haible@clisp.cons.org>
83144
83145         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
83146         only if the test for an object-type mbstate_t fails.  This
83147         prevents us from mistakenly reporting that mbstate_t is a
83148         system object type after we "#define mbstate_t int" to work
83149         around its lack.
83150
83151 2000-07-05  Paul Eggert  <eggert@twinsun.com>
83152         and Bruno Haible  <haible@clisp.cons.org>
83153
83154         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
83155
83156 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
83157
83158         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
83159         to strerror_r.
83160         Include <ctype.h> for use of isalpha.
83161
83162 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
83163
83164         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
83165         by allocating a larger buffer. Test the gethostname return value for
83166         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
83167         returns an error and ENAMETOOLONG isn't defined.
83168
83169 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
83170
83171         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
83172         dimension.
83173
83174 2000-07-04  Jim Meyering  <meyering@lucent.com>
83175
83176         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
83177         of the deprecated AC_CHECKING.
83178
83179 2000-07-04  Jim Meyering  <meyering@lucent.com>
83180
83181         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
83182         Reported by Bruno Haible.
83183
83184 2000-07-04  Jim Meyering  <meyering@lucent.com>
83185
83186         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
83187         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
83188         lacks mbrtowc.
83189
83190 2000-07-03  Paul Eggert  <eggert@twinsun.com>
83191
83192         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
83193         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
83194
83195 2000-07-03  Paul Eggert  <eggert@twinsun.com>
83196         and Bruno Haible  <haible@clisp.cons.org>
83197
83198         * lib/quotearg.c (mbrtowc):
83199         Assign to *pwc, and return 1 only if result is nonzero.
83200         (iswprint): Use ISPRINT when substituting our own mbrtowc.
83201
83202 2000-07-03  Jim Meyering  <meyering@lucent.com>
83203
83204         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
83205
83206 2000-07-03  Jim Meyering  <meyering@lucent.com>
83207
83208         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
83209         This is necessary to get a definition of e.g., UTMP_FILE on
83210         HP-UX 10.20.
83211         From Bob Proulx.
83212
83213 2000-07-02  Jim Meyering  <meyering@lucent.com>
83214
83215         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
83216
83217         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
83218         AC_LIBOBJ(function_name).
83219         * m4/chown.m4: Likewise.
83220         * m4/fnmatch.m4: Likewise.
83221         * m4/ftruncate.m4: Likewise.
83222         * m4/getgroups.m4: Likewise.
83223         * m4/getline.m4: Likewise.
83224         * m4/group-member.m4: Likewise.
83225         * m4/jm-macros.m4: Likewise.
83226         * m4/lstat.m4: Likewise.
83227         * m4/malloc.m4: Likewise.
83228         * m4/memcmp.m4: Likewise.
83229         * m4/nanosleep.m4: Likewise.
83230         * m4/putenv.m4: Likewise.
83231         * m4/realloc.m4: Likewise.
83232         * m4/regex.m4: Likewise.
83233         * m4/stat.m4: Likewise.
83234         * m4/strftime.m4: Likewise.
83235
83236 2000-07-02  Jim Meyering  <meyering@lucent.com>
83237
83238         * lib/quotearg.c (mbstate_t): Don't define here.
83239
83240 2000-07-02  Jim Meyering  <meyering@lucent.com>
83241
83242         * lib/nanosleep.c (SIGCONT): Define if not already defined.
83243
83244 2000-07-01  Jim Meyering  <meyering@lucent.com>
83245
83246         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
83247
83248 2000-07-01  Jim Meyering  <meyering@lucent.com>
83249
83250         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
83251         problem.
83252
83253 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
83254
83255         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
83256         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
83257
83258 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
83259
83260         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
83261         per change in ../m4/ls-mntd-fs.m4.
83262         (read_filesystem_list): Ignore symbolic links.
83263
83264 2000-06-29  Jim Meyering  <meyering@lucent.com>
83265
83266         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
83267         for declaration of strcmp.
83268
83269         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
83270
83271         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
83272         Avoid warning by casting result to `char *' to remove `const'.
83273
83274 2000-06-28  Jim Meyering  <meyering@lucent.com>
83275
83276         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
83277         included by quotearg.c, for which we perform this test.  From
83278         Bruno Haible.
83279
83280 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
83281
83282         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
83283         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
83284         <utmpx.h> exists, put readutmp.o into LIBOBJS.
83285
83286 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
83287
83288         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
83289
83290 2000-06-26  Paul Eggert  <eggert@twinsun.com>
83291
83292         savedir now sets errno on failure and invokes xmalloc to get memory.
83293         Fix a couple of other minor bugs while we're at it.
83294
83295         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
83296         (NAMLEN): Remove macro.
83297         (malloc, realloc): Remove decls.
83298         (stpcpy): Likewise.
83299         ("xalloc.h"): Include.
83300         (NAME_SIZE_DEFAULT): New macro.
83301         (savedir): Use xmalloc / xrealloc to allocate memory.
83302         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
83303         Skip "" directory entries.
83304         Use strlen to calculate directory entry length, since the old method
83305         is rarely used these days and isn't worth supporting.
83306         Don't use a pointer after freeing it.
83307         Check for integer overflow when calculating allocation size.
83308         Use memcpy to copy entries, instead of stpcpy.
83309         Set errno properly when returning NULL.
83310         Check for readdir error.
83311
83312 2000-06-26  Jim Meyering  <meyering@lucent.com>
83313
83314         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
83315
83316 2000-06-25  Jim Meyering  <meyering@lucent.com>
83317
83318         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
83319         Linux header bug when _XOPEN_SOURCE is defined to 500.
83320
83321 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
83322
83323         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
83324         deficiency.
83325
83326 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
83327
83328         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
83329         Include xalloc.h.
83330         Don't include <stdlib.h>.  Don't declare malloc, realloc.
83331
83332 2000-06-24  Jim Meyering  <meyering@lucent.com>
83333
83334         * m4/strerror_r.m4: Revive this file -- to try out an experimental
83335         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
83336         for which strerror does return char*, but which lacks a conveniently
83337         accessible declaration of the function.  If the compile-test says
83338         strerror_r doesn't work, then resort to a `run'-test that works on
83339         BeOS and segfaults on DEC Unix.
83340
83341 2000-06-24  Jim Meyering  <meyering@lucent.com>
83342
83343         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
83344
83345 2000-06-23  Paul Eggert  <eggert@twinsun.com>
83346
83347         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
83348         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
83349
83350 2000-06-23  Paul Eggert  <eggert@twinsun.com>
83351
83352         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
83353         (mbrtowc, mbstate_t): Define substitutes if
83354         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
83355         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
83356         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
83357
83358 2000-06-23  Jim Meyering  <meyering@lucent.com>
83359
83360         * m4/afs.m4: Add missing AC_MSG_RESULT.
83361         Reported by Bruno Haible.
83362
83363         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
83364         Suggestion from Bruno Haible.
83365
83366 2000-06-23  Jim Meyering  <meyering@lucent.com>
83367
83368         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
83369
83370 2000-06-21  Jim Meyering  <meyering@lucent.com>
83371
83372         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
83373
83374 2000-06-21  Jim Meyering  <meyering@lucent.com>
83375
83376         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
83377         (noinst_HEADERS): Add getstr.h.
83378
83379         * lib/getline.c (getstr): Move into a separate file.
83380         * lib/getstr.c (getstr): New file, extracted from getline.c, with
83381         the following changes: new parameter, delim2; both delim[12]
83382         parameters have type `int', not `char'.  The latter would lose
83383         with 8-bit delimiters.
83384         * lib/getstr.h: New file.
83385
83386 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
83387
83388         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
83389         than 1024, return a memory chunk of least possible size, instead
83390         of size PATH_MAX + 2. In the loop, increment the size proportionally.
83391         Use free/xmalloc instead of xrealloc to avoid copying for very long
83392         paths.
83393
83394 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
83395
83396         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
83397         the empty string.
83398
83399 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
83400
83401         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
83402         address, not strdup.  Include <stdlib.h> and don't declare free().
83403
83404 2000-06-19  Jim Meyering  <meyering@lucent.com>
83405
83406         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
83407
83408 2000-06-18  Jim Meyering  <meyering@lucent.com>
83409
83410         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
83411
83412         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
83413         `checking whether...' message to be consistent with that of the
83414         lstat test.
83415
83416 2000-06-18  Jim Meyering  <meyering@lucent.com>
83417
83418         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
83419         Besides, these days every porting target provides a mkdir function.
83420
83421         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
83422         needed. (this snippet comes from src/system.h).
83423
83424 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
83425
83426         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
83427
83428 2000-06-15  Paul Eggert  <eggert@twinsun.com>
83429
83430         * lib/human.c (adjust_value): New function.
83431         (human_readable_inexact): Apply rounding style even when
83432         printing approximate values.
83433
83434 2000-06-14  Paul Eggert  <eggert@twinsun.com>
83435
83436         * lib/human.c (human_readable_inexact): Allow an input block
83437         size that is not a multiple of the output block size, and vice versa.
83438         Reported by Piergiorgio Sartor.
83439
83440 2000-06-14  Paul Eggert  <eggert@twinsun.com>
83441
83442         * lib/getdate.y (get_date): Apply relative times after time
83443         zone indicator, not before.  Reported by Todd A. Jacobs.
83444
83445 2000-06-13  Jim Meyering  <meyering@lucent.com>
83446
83447         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
83448
83449         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
83450
83451 2000-06-12  Paul Eggert  <eggert@twinsun.com>
83452
83453         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
83454
83455 2000-06-12  Jim Meyering  <meyering@lucent.com>
83456
83457         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
83458         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
83459         optional argument.
83460         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
83461         the optional argument, `lib'.
83462
83463 2000-06-08  Jim Meyering  <meyering@lucent.com>
83464
83465         * m4/largefile.m4: Remove file (now that it's part of autoconf).
83466
83467 2000-06-04  Paul Eggert  <eggert@twinsun.com>
83468
83469         Rewrite largefile configuration so that we don't need to run
83470         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
83471         AC_CANONICAL_HOST in configure.in -- jmm]
83472
83473         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
83474         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
83475         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
83476         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
83477         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
83478         All uses changed.
83479         Instead of inspecting the output of getconf, try to compile the
83480         test program without and with the macro definition.
83481         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
83482         for getconf.  Instead, check for the needed flags by compiling
83483         test programs.
83484
83485 2000-06-04  Paul Eggert  <eggert@twinsun.com>
83486
83487         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
83488
83489 2000-06-04  Jim Meyering  <meyering@lucent.com>
83490
83491         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
83492         SunOS 4.1.4 for which gid_t is an unsigned type.
83493
83494 2000-06-03  Jim Meyering  <meyering@lucent.com>
83495
83496         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
83497         now that autoconf requires that.
83498
83499         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
83500         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
83501         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
83502
83503 2000-06-03  Jim Meyering  <meyering@lucent.com>
83504
83505         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
83506
83507 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
83508
83509         * m4/glibc21.m4: New file.
83510         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
83511
83512 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
83513
83514         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
83515         newer, don't install charset.alias.
83516         * lib/config.charset: Change the Linux/glibc rules so they become empty
83517         on glibc-2.1 or newer.
83518
83519 2000-06-02  Jim Meyering  <meyering@lucent.com>
83520
83521         * lib/mountlist.c: Back out last change.  Instead, do this...
83522         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
83523         me_dummy member using the same `ignore'-testing code.
83524         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
83525         fs_type strings.
83526         From Mark D. Roth.
83527
83528 2000-05-29  Jim Meyering  <meyering@lucent.com>
83529
83530         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
83531         mounts with the `ignore' attribute.  Based on a patch from
83532         Mark D. Roth.
83533
83534 2000-05-28  Jim Meyering  <meyering@lucent.com>
83535
83536         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
83537         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
83538         * m4/stat.m4: Likewise.
83539         * m4/lstat.m4: Likewise.
83540         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
83541
83542         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
83543         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
83544
83545 2000-05-26  Jim Meyering  <meyering@lucent.com>
83546
83547         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
83548
83549 2000-05-24  Jim Meyering  <meyering@lucent.com>
83550
83551         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
83552         autoconf requires that.
83553         * m4/lib-check.m4: Likewise.
83554         * m4/jm-macros.m4: Likewise.
83555         * m4/strftime.m4: Likewise.
83556
83557         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
83558         AC_CHECK_DECLS, now that autoconf requires that.
83559
83560 2000-05-22  Jim Meyering  <meyering@lucent.com>
83561
83562         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
83563         * m4/lstat.m4: Likewise.
83564
83565 2000-05-22  Jim Meyering  <meyering@lucent.com>
83566
83567         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
83568
83569 2000-05-20  Jim Meyering  <meyering@lucent.com>
83570
83571         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
83572         (jm_PREREQ): Use it.
83573
83574 2000-05-18  Jim Meyering  <meyering@lucent.com>
83575
83576         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
83577         back, too, since it may have been modified by allocate_entry.
83578         (hash_delete): Rewrite to use neither the assignment operator
83579         nor the comma operator in an if-expression.
83580
83581 2000-05-15  Paul Eggert  <eggert@twinsun.com>
83582
83583         * lib/closeout.c:
83584         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
83585         Remove; no longer needed.
83586         "quotearg.h": Add include.
83587         (file_name): Do not bother to explicitly initialize to NULL; it's less
83588         efficient on some hosts.
83589         (close_stdout_status): Remove test as to whether stdout was already
83590         closed; it breaks for the case "echo x | sort >&-".
83591         Quote file name colons.
83592         Do not assume that _("write error") lacks format strings.
83593
83594 2000-05-15  Jim Meyering  <meyering@lucent.com>
83595
83596         * lib/version-etc.c (version_etc_copyright): Update the copyright
83597         string used in all --version output.
83598
83599 2000-05-14  Jim Meyering  <meyering@lucent.com>
83600
83601         * lib/closeout.c (close_stdout_set_file_name): New function.
83602         (close_stdout_status): Use new file-scoped global.
83603         Return right away if fstat says the stdout file descriptor is invalid.
83604         * lib/closeout.h (close_stdout_set_file_name): Declare.
83605
83606 2000-05-10  Jim Meyering  <meyering@lucent.com>
83607
83608         * lib/closeout.c [default_exit_status]: New file-scoped variable.
83609         (close_stdout_set_status): New function.
83610         * lib/closeout.h (close_stdout_set_status): Declare.
83611
83612 2000-05-09  Jim Meyering  <meyering@lucent.com>
83613
83614         * m4/gettext.m4: Rename this...
83615         * m4/libintl.m4: ...to this.
83616
83617 2000-05-08  Jim Meyering  <meyering@lucent.com>
83618
83619         * lib/long-options.c: Don't include closeout.h.
83620         (parse_long_options): Don't call close_stdout for --version.
83621
83622 2000-05-06  Paul Eggert  <eggert@twinsun.com>
83623
83624         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
83625         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
83626         2.1.3 bug.  This avoids a clash when files like regex.c define
83627         _GNU_SOURCE.
83628
83629 2000-05-06  Jim Meyering  <meyering@lucent.com>
83630
83631         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
83632         (AC_REPLACE_FUNCS): Add strnlen.
83633
83634         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
83635         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
83636
83637         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
83638         AC_SEARCH_LIBS call for nanosleep.
83639         (LIB_NANOSLEEP): Set and AC_SUBST.
83640
83641 2000-05-06  Jim Meyering  <meyering@lucent.com>
83642
83643         * lib/strnlen.c: Undefine __strnlen and strnlen.
83644         [!weak_alias]: Define __strnlen to strnlen.
83645
83646         * lib/atexit.c: New file, from libiberty.
83647
83648 2000-05-06  Jim Meyering  <meyering@lucent.com>
83649
83650         * lib/closeout.c (close_stdout_status): Also check for errors on the
83651         stderr stream.
83652
83653 2000-05-05  Jim Meyering  <meyering@lucent.com>
83654
83655         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
83656         AC_SEARCH_LIBS call for clock_gettime.
83657         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
83658
83659         * m4/search-libs.m4: Update from autoconf.
83660
83661         su doesn't work on Solaris 2.6.
83662         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
83663         <shadow.h>.  Reported by Dragos Harabor.
83664
83665 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
83666
83667         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
83668         memcpy instead of xmalloc, xrealloc, path_concat.
83669         (locale_charset): Treat empty environment variables as absent.
83670         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
83671
83672 2000-05-04  Jim Meyering  <meyering@lucent.com>
83673
83674         * lib/getopt.c: Update from glibc.
83675         * lib/obstack.c: Likewise.
83676         * lib/obstack.h: Likewise.
83677         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
83678         file
83679
83680         * lib/regex.h: Likewise.
83681         * lib/strndup.c: Likewise.
83682         * lib/strnlen.c: New file, from glibc.
83683
83684 2000-05-03  Jim Meyering  <meyering@lucent.com>
83685
83686         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
83687
83688 2000-05-02  Paul Eggert  <eggert@twinsun.com>
83689
83690         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
83691         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
83692         compile-time test, rather than inspecting host and OS, to
83693         decide whether to define _LARGEFILE_SOURCE.
83694
83695 2000-05-01  Jim Meyering  <meyering@lucent.com>
83696
83697         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
83698
83699         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
83700         Based on a patch from Bruno Haible.
83701
83702 2000-05-01  Jim Meyering  <meyering@lucent.com>
83703
83704         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
83705
83706 2000-04-29  Jim Meyering  <meyering@lucent.com>
83707
83708         * lib/path-concat.c: Declare strdup only if it's not defined.
83709         * lib/canon-host.c: Likewise.
83710
83711 2000-04-28  Jim Meyering  <meyering@lucent.com>
83712
83713         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
83714         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
83715         is included first, then limits.h is included by locale.h by libintl.h.
83716         From John David Anglin.
83717
83718 2000-04-25  Jim Meyering  <meyering@lucent.com>
83719
83720         * lib/makepath.c (S_IRWXUGO): Define.
83721         (make_path): Always perform explicit chmod if MODE specifies any
83722         of the `special' permission bits.  Prompted by a bug report against
83723         install from Mate Wierdl and Joost van Baal.
83724
83725 2000-04-18  Jim Meyering  <meyering@lucent.com>
83726
83727         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
83728         (jm_PREREQ): Use it.
83729
83730 2000-04-18  Jim Meyering  <meyering@lucent.com>
83731
83732         * lib/README: New file.
83733
83734         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
83735         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
83736
83737 2000-04-17  Jim Meyering  <meyering@lucent.com>
83738
83739         Get it right :-)
83740         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
83741         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
83742         Suggestion from Akim Demaille.
83743
83744 2000-04-17  Jim Meyering  <meyering@lucent.com>
83745
83746         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
83747         the definition of it to rpl_strftime also defined-away the system's
83748         declaration.
83749
83750 2000-04-15  Jim Meyering  <meyering@lucent.com>
83751
83752         Use `C' to denote so-called `contiguous' files, the same way
83753         that tar does.
83754         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
83755         (ftypelet): Use S_ISCTG.
83756         From Michael Deutschmann.
83757
83758 2000-04-14  Jim Meyering  <meyering@lucent.com>
83759
83760         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
83761         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
83762         clobbered.
83763
83764 2000-04-14  Jim Meyering  <meyering@lucent.com>
83765
83766         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
83767
83768 2000-04-13  Jim Meyering  <meyering@lucent.com>
83769
83770         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
83771         AH_VERBATIM to insert required #ifndef into config.h.in.
83772         Suggestion from Akim Demaille.
83773
83774 2000-04-12  Jim Meyering  <meyering@lucent.com>
83775
83776         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
83777         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
83778         Christian Krackowizer.
83779
83780         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
83781         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
83782         (AC_SYS_LARGEFILE): Require.
83783         (AM_C_PROTOTYPES): Require.
83784
83785 2000-04-08  Jim Meyering  <meyering@lucent.com>
83786
83787         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
83788         names don't conflict.  Reported by Eli Zaretskii.
83789
83790 2000-04-07  Jim Meyering  <meyering@lucent.com>
83791
83792         * lib/putenv.c: Move inclusion of errno.h so it follows that of
83793         sys/types.h, to work around system header problems on AIX 3.2.5.
83794         From Bruno Haible.
83795
83796 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
83797
83798         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
83799         bug.  Deal with the different error behavior of Irix iconv.
83800
83801 2000-04-05  Paul Eggert  <eggert@twinsun.com>
83802
83803         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
83804         IRIX if the installer said otherwise.
83805
83806 2000-04-05  Jim Meyering  <meyering@lucent.com>
83807
83808         Portability tweaks required for ultrix4.3.
83809         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
83810         (jm_CHECK_DECLS): Add getutent to the list of functions.
83811         (_jm_DECL_HEADERS): Add utmpx.h.
83812         From John David Anglin.
83813
83814         * m4/strftime.m4: Back out the 2000-04-02 change.
83815         Instead of that change, simply undefine putenv in the test program.
83816
83817 2000-04-05  Jim Meyering  <meyering@lucent.com>
83818
83819         Portability tweaks required for ultrix4.3.
83820         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
83821         getutent.
83822         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
83823         * lib/canon-host.c: Declare strdup.
83824         * lib/path-concat.c: Likewise.
83825         From John David Anglin.
83826
83827 2000-04-04  Jim Meyering  <meyering@lucent.com>
83828
83829         Be more DOS 8.3-friendly.
83830         * lib/ref-add.sin: Renamed from ref-add.sed.in.
83831         * lib/ref-del.sin: Renamed from ref-del.sed.in.
83832         * lib/Makefile.am: Reflect renaming.
83833         Reported by Eli Zaretskii.
83834
83835         Use a temporary file name that won't clash with `charset.alias'
83836         in the DOS 8.3 name space.
83837         * lib/Makefile.am (charset_tmp): Define.
83838         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
83839         (uninstall-local): Likewise.
83840         Reported by Eli Zaretskii.
83841
83842 2000-04-03  Jim Meyering  <meyering@lucent.com>
83843
83844         * m4/gettext.m4: Fix typo in comment.
83845
83846         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
83847         textutils/configure.in).  Suggestion from Paul Eggert.
83848         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
83849
83850 2000-04-02  Paul Eggert  <eggert@twinsun.com>
83851
83852         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
83853         variable in the shell rather than using putenv, which isn't
83854         portable.  This avoids the configure-time inter-test dependency
83855         on the potentially-renamed putenv function.
83856
83857 2000-03-30  Paul Eggert  <eggert@twinsun.com>
83858
83859         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
83860         before checking struct stat.st_blksize, so that
83861         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
83862
83863 2000-03-29  Paul Eggert  <eggert@twinsun.com>
83864
83865         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
83866         since strftime.c uses HAVE_STRFTIME to decide whether to use
83867         the underlying strftime.
83868
83869 2000-03-29  Paul Eggert  <eggert@twinsun.com>
83870
83871         * lib/time/strftime.c (my_strftime): Make sure we call the system
83872         strftime, not ourselves, when invoking the underlying strftime.
83873
83874 2000-03-24  Jim Meyering  <meyering@lucent.com>
83875
83876         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
83877         (charset_alias): Define.
83878         (install-exec-local): Factor out common code.
83879         (uninstall-local): Split lines longer than 80.
83880         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
83881         (SUFFIXES): Define.
83882         (.sed.in.sed): New rule.  Don't redirect directly to $@.
83883         (CLEANFILES): Add ref-add.sed and ref-del.sed.
83884
83885 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
83886
83887         * lib/config.charset: Output a line containing "Packages using this
83888         file".
83889         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
83890         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
83891         ref-del.sed): New rules.
83892
83893 2000-03-17  Jim Meyering  <meyering@lucent.com>
83894
83895         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
83896         Otherwise, include <strings.h>
83897
83898 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
83899
83900         * lib/unicodeio.c (utf8_wctomb): New function.
83901         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
83902         format instead of in UCS-4 with platform dependent endianness.
83903
83904 2000-03-10  Jim Meyering  <meyering@lucent.com>
83905
83906         * m4/lib-check.m4: Look for getspnam in -lgen, too.
83907         From Marco Franzen.
83908
83909 2000-03-07  Paul Eggert  <eggert@twinsun.com>
83910
83911         * lib/savedir.c (savedir): Work even if directory size is
83912         negative; this can happen with some screwy NFS configurations.
83913
83914 2000-03-06  Jim Meyering  <meyering@lucent.com>
83915
83916         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
83917         if it's NULL (because we ran out of memory).  From Bruno Haible.
83918
83919 2000-03-05  Jim Meyering  <meyering@lucent.com>
83920
83921         * lib/localcharset.c ("path-concat.h"): Include.
83922         (get_charset_aliases): Use path_concat instead of ANSI string
83923         concatenation.
83924
83925         * lib/unicodeio.h (PARAMS): Define.
83926         Use it to guard prototype.
83927
83928 2000-03-04  Jim Meyering  <meyering@lucent.com>
83929
83930         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
83931         for lib/localcharset.c.
83932
83933 2000-03-04  Jim Meyering  <meyering@lucent.com>
83934
83935         * lib/Makefile.am (install-exec-local): Create $(libdir) before
83936         installing into it.
83937         (uninstall-local): Uncomment this rule so `make distcheck' works
83938         once again.
83939
83940         * lib/unicodeio.c (<errno.h>): Include it.
83941         (errno): Declare if not defined.
83942
83943         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
83944
83945         * lib/config.charset: New version, incorporating remarks from a linux
83946         i18n mailing list.  From Bruno Haible.
83947
83948 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
83949
83950         * m4/codeset.m4: New file.
83951         * m4/iconv.m4: New file.
83952         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
83953
83954 2000-03-03  Jim Meyering  <meyering@lucent.com>
83955
83956         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
83957
83958 2000-03-02  Jim Meyering  <meyering@lucent.com>
83959
83960         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
83961         the messages come out on separate lines.
83962
83963         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
83964         rather than jm_CHECK_DECLARATIONS.
83965         * m4/decl.m4: Remove now-unused file.
83966
83967         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
83968         geteuid.
83969
83970 2000-03-02  Jim Meyering  <meyering@lucent.com>
83971
83972         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
83973
83974 2000-03-01  Jim Meyering  <meyering@lucent.com>
83975
83976         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
83977         * lib/unicodeio.c: Likewise.
83978
83979 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
83980
83981         * lib/config.charset: New file.
83982         * lib/localcharset.c: New file.
83983         * lib/unicodeio.h, lib/unicodeio.c: New files.
83984         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
83985         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
83986         (noinst_HEADERS): Add unicodeio.h.
83987         (all-local, install-exec-local, charset.alias): New targets.
83988
83989 2000-02-28  Paul Eggert  <eggert@twinsun.com>
83990
83991         * lib/quotearg.c (ALERT_CHAR): New macro.
83992         (quotearg_buffer_restyled): Use it.
83993
83994 2000-02-27  Jim Meyering  <meyering@lucent.com>
83995
83996         * m4/check-decl.m4: Add getenv to the list.
83997
83998 2000-02-27  Jim Meyering  <meyering@lucent.com>
83999
84000         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
84001         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
84002
84003         * lib/backupfile.c: Guard inclusion of stdlib.h with
84004         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
84005         Declare malloc if needed.
84006
84007         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
84008         `#ifndef HAVE_DECL..'
84009         now that autoconf always defines the HAVE_DECL_ symbols.
84010         * lib/human.c: Likewise.
84011         * lib/same.c: Likewise.
84012         * lib/strtoumax.c: Likewise.
84013
84014         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
84015         declaration check was not run.
84016         * lib/hash.c: Likewise.
84017         * lib/human.c: Likewise.
84018         * lib/same.c: Likewise.
84019         * lib/strtoumax.c: Likewise.
84020
84021         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
84022         `.', then first look up the entire `.'-containing string as a login
84023         name.
84024
84025 2000-02-23  Jim Meyering  <meyering@lucent.com>
84026
84027         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
84028         in place of my hack.
84029
84030 2000-02-18  Paul Eggert  <eggert@twinsun.com>
84031
84032         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
84033         (textint): New typedef.
84034         (parser_control): Member year changed from int to textint.
84035         All uses changed.
84036         (YYSTYPE): Removed; replaced by %union with int and textint members.
84037         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
84038         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
84039         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
84040         (tSNUMBER, tUNUMBER): Now of type <textintval>.
84041         (date, number, to_year): Use width of number in digits, not its value,
84042         to determine whether it's a 2-digit year, or a 2-digit time.
84043         (yylex): Store number of digits of numeric tokens.
84044         Reported by John Kendall.
84045
84046         (parser_control): Changed from struct parser_control to typedef (for
84047         consistency).  All uses changed.
84048
84049         (tID): Removed; not used.
84050         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
84051
84052 2000-02-14  Paul Eggert  <eggert@twinsun.com>
84053
84054         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
84055         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
84056
84057 2000-02-12  Jim Meyering  <meyering@lucent.com>
84058
84059         * lib/userspec.c (ISDIGIT): Define it.
84060         (isdigit): Remove definition.
84061         (is_number): Use ISDIGIT, not isdigit.
84062         <libintl.h>: Include.
84063         (_ and N_): Define.
84064         (parse_user_spec): Mark translatable strings.
84065
84066 2000-02-10  Jim Meyering  <meyering@lucent.com>
84067
84068         With these changes, nanosleep.[ch] are finally enough like the other
84069         lib/* replacement files to compile on a few more losing systems.
84070
84071         * lib/nanosleep.h: Don't include config.h.
84072         Remove prototype from declaration of nanosleep.
84073         (PARAMS): Remove now-unneeded definition.
84074         * lib/nanosleep.c: #undef nanosleep.
84075         (rpl_nanosleep): Rename from nanosleep.
84076
84077 2000-02-10  Jim Meyering  <meyering@lucent.com>
84078
84079         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
84080         gnu_nanosleep to rpl_nanosleep.
84081
84082 2000-02-09  Jim Meyering  <meyering@lucent.com>
84083
84084         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
84085         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
84086
84087 2000-02-08  Akim Demaille  <akim@epita.fr>
84088
84089         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
84090         `[' and `]' and remove uses of `changequote'.
84091         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
84092         (AC_SYS_LARGEFILE): Likewise.
84093         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
84094         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
84095         of changequote.
84096         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
84097         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
84098         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
84099         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
84100
84101 2000-02-05  Jim Meyering  <meyering@lucent.com>
84102
84103         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
84104         Remove explicit use of AC_HEADER_TIME.  It is required by
84105         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
84106         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
84107         in autoconf whereby the expansion of the latter ended up preceding
84108         the expansion of its prerequisite, AC_HEADER_TIME.
84109         Reported by Volker Borchert.
84110
84111 2000-02-03  Jim Meyering  <meyering@lucent.com>
84112
84113         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
84114
84115 2000-02-03  Jim Meyering  <meyering@lucent.com>
84116
84117         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
84118         rather than with `#if HAVE_UTMPNAME'.
84119
84120 2000-02-02  Jim Meyering  <meyering@lucent.com>
84121
84122         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
84123         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
84124         Reported by Eli Zaretskii.
84125
84126 2000-02-01  Jim Meyering  <meyering@lucent.com>
84127
84128         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
84129
84130 2000-01-31  Jim Meyering  <meyering@lucent.com>
84131
84132         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
84133         functions.  Add the time.h and sys/time.h headers along with the
84134         AC_REQUIRE'ment of AC_HEADER_TIME.
84135
84136 2000-01-31  Jim Meyering  <meyering@lucent.com>
84137
84138         * lib/nanosleep.h (nanosleep): Guard declaration with
84139         `#if ! HAVE_DECL_NANOSLEEP'.
84140         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
84141         the declaration in that vendor's sys/timers.h.
84142         Reported by Christian Krackowizer.
84143
84144         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
84145         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
84146         (ISPRINT): Likewise.
84147         Reported by Tom Tromey.
84148
84149 2000-01-30  Jim Meyering  <meyering@lucent.com>
84150
84151         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
84152
84153         * m4/prereq.m4 (utmp_includes): Define.
84154         Check for ut_user and ut_name members in both struct utmpx
84155         and struct utmp.
84156
84157 2000-01-30  Jim Meyering  <meyering@lucent.com>
84158
84159         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
84160         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
84161         header files where only utmpx.ut_user is declared.
84162
84163         * lib/readutmp.h (UT_USER): Define.
84164
84165 2000-01-29  Jim Meyering  <meyering@lucent.com>
84166
84167         * m4/lib-check.m4: New file containing library-related checks from
84168         fileutils and sh-utils (textutils had none).
84169
84170 2000-01-28  Jim Meyering  <meyering@lucent.com>
84171
84172         * m4/perl.m4: Change format of warning message to look more like that
84173         from the missing script.  Suggestion from François Pinard.
84174
84175 2000-01-25  Jim Meyering  <meyering@lucent.com>
84176
84177         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
84178         well as time.h in the compile check.
84179         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
84180         Fix typo in cross-compiling case: s/yes/no/.
84181
84182 2000-01-23  Jim Meyering  <meyering@lucent.com>
84183
84184         * m4/jm-macros.m4: Move df-related tests here from
84185         fileutils/configure.in
84186
84187         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
84188         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
84189
84190         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
84191         s/space/ac_fsusage_space/.
84192         (jm_FILE_SYSTEM_USAGE): Take two parameters.
84193
84194         * m4/ftruncate.m4: New file (derived from part of
84195         fileutils/configure.in).
84196         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
84197         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
84198
84199         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
84200         AC_SUBST these here, rather than just in sh-util/configure.in, so
84201         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
84202         all the same.
84203         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
84204         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
84205         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
84206         (AC_SUBST(POW_LIBM)): Likewise.
84207         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
84208
84209 2000-01-23  Jim Meyering  <meyering@lucent.com>
84210
84211         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
84212         obstack.c.
84213
84214 2000-01-22  Jim Meyering  <meyering@lucent.com>
84215
84216         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
84217
84218         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
84219
84220         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
84221         configure.in
84222         (AC_CHECK_HEADERS): Likewise for sh-utils.
84223         (AC_CHECK_HEADERS): Likewise for textutils.
84224         Merge the three lists of headers.
84225
84226         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
84227         from fileutils' configure.in.
84228
84229         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
84230         code. Moved tests into their own function (_jm_DECL_HEADERS) in
84231         check-decl.m4.
84232
84233         * m4/check-decl.m4: Use #if rather than #ifdef.
84234         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
84235         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
84236         (_jm_DECL_HEADERS): Define new function.
84237         (jm_CHECK_DECLARATIONS): Require it.
84238
84239 2000-01-22  Jim Meyering  <meyering@lucent.com>
84240
84241         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
84242         [! HAVE_DECL_STRTOULL]: Declare strtoull.
84243         Required for some AIX systems.  Reported by Christian Krackowizer.
84244         [TESTING] (main): New function.
84245
84246         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
84247         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
84248         letters.
84249
84250         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
84251         iswprint.
84252
84253         * lib/strverscmp.c (ISDIGIT): Define.
84254         (strverscmp): Use ISDIGIT, not isdigit.
84255
84256 2000-01-19  Jim Meyering  <meyering@lucent.com>
84257
84258         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
84259         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
84260         defines `struct timespec' in <sys/time.h>
84261
84262         * m4/c-bs-a.m4: Remove uses of changequote altogether.
84263         Thanks to Akim for explaining.
84264
84265 2000-01-17  Paul Eggert  <eggert@twinsun.com>
84266
84267         * lib/nanosleep.c (nanosleep):
84268         Don't use SA_INTERRUPT to decide whether to call sigaction, as
84269         POSIX.1 doesn't require SA_INTERRUPT and some systems
84270         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
84271         it's been part of POSIX.1 since day 1 (in 1988).
84272
84273 2000-01-17  Jim Meyering  <meyering@lucent.com>
84274
84275         * lib/interlock: Remove unused file.  Reported by François Pinard.
84276
84277 2000-01-16  Paul Eggert  <eggert@twinsun.com>
84278
84279         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
84280         alert, backslash, formfeed, and vertical tab unnecessarily in
84281         shell quoting style.
84282
84283 2000-01-16  Jim Meyering  <meyering@lucent.com>
84284
84285         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
84286         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
84287         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
84288         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
84289
84290 2000-01-16  Jim Meyering  <meyering@lucent.com>
84291
84292         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
84293         because the latter didn't work.
84294
84295 2000-01-15  Jim Meyering  <meyering@lucent.com>
84296
84297         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
84298         (AC_REPLACE_FUNCS): Add memcpy and memset.
84299         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
84300         Add strpbrk.
84301         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
84302
84303 2000-01-12  Jim Meyering  <meyering@lucent.com>
84304
84305         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
84306         (jm_PREREQ): Use it.
84307         (jm_PREREQ_READUTMP): New macro.
84308         (jm_PREREQ): Use it.
84309
84310 2000-01-11  Paul Eggert  <eggert@twinsun.com>
84311
84312         Quote multibyte characters correctly.
84313         * m4/c-bs-a.m4: New file.
84314         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
84315         (jm_PREREQ): Use it.
84316
84317 2000-01-11  Paul Eggert  <eggert@twinsun.com>
84318
84319         * m4/uintmax_t.m4: Port to autoconf 2.13.
84320
84321 2000-01-08  Jim Meyering  <meyering@ascend.com>
84322
84323         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
84324         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
84325
84326 2000-01-04  Jim Meyering  <meyering@ascend.com>
84327
84328         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
84329         jm_STRUCT_DIRENT_D_TYPE.
84330         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
84331         jm_STRUCT_DIRENT_D_INO.
84332         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
84333         jm_STRUCT_UTIMBUF.
84334         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
84335         renamings.
84336         * m4/utime.m4: Likewise.
84337
84338         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
84339         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
84340
84341 2000-01-03  Paul Eggert  <eggert@twinsun.com>
84342
84343         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
84344         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
84345
84346 2000-01-02  Jim Meyering  <meyering@ascend.com>
84347
84348         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
84349         remember if this is necessary.
84350
84351 1999-12-26  Jim Meyering  <meyering@ascend.com>
84352
84353         * m4/jm-macros.m4: Use it here.
84354         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
84355
84356 1999-12-23  Jim Meyering  <meyering@ascend.com>
84357
84358         * m4/jm-macros.m4: Check for clock_gettime (moved from
84359         fileutils/configure.in)
84360         Check for gettimeofday.
84361
84362 1999-12-20  Jim Meyering  <meyering@ascend.com>
84363
84364         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
84365         autoconf-2.14a-1999-12-20.
84366
84367 1999-12-19  Jim Meyering  <meyering@ascend.com>
84368
84369         * m4/lstat-slash.m4: New file.
84370         * m4/jm-macros.m4: Use the new macro:
84371         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
84372
84373 1999-12-07  Jim Meyering  <meyering@ascend.com>
84374
84375         * m4/perl.m4: Require that File::Compare be available, too.
84376         Too many systems seem to lack it.
84377
84378         * m4/strftime.m4: Add checks for most of the cpp macros tested in
84379         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
84380
84381 1999-11-18  Paul Eggert  <eggert@twinsun.com>
84382
84383         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
84384         problem with the QNX 4.25 shell, which doesn't propagate exit
84385         status of failed commands inside shell assignments.
84386
84387 1999-11-17  Jim Meyering  <meyering@ascend.com>
84388
84389         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
84390
84391 1999-11-07  Jim Meyering  <meyering@ascend.com>
84392
84393         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
84394
84395 1999-11-06  Jim Meyering  <meyering@ascend.com>
84396
84397         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
84398         * m4/jm-macros.m4 (jm_MACROS): Use it here.
84399
84400 1999-11-05  Jim Meyering  <meyering@ascend.com>
84401
84402         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
84403         configure.in of textutils, fileutils, and sh-utils into this one
84404         (shared between those packages) file.
84405         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
84406         AC_STRUCT_ST_BLKSIZE.
84407
84408 1999-11-03  Jim Meyering  <meyering@ascend.com>
84409
84410         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
84411         of AC_CHECK_TYPE checks includes unistd.h.
84412         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
84413         Suggestion from Akim Demaille.
84414
84415 1999-10-30  Jim Meyering  <meyering@ascend.com>
84416
84417         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
84418         m4-quoted string.
84419         * m4/ls-mntd-fs.m4: Likewise.
84420         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
84421         * m4/jm-winsz1.m4: Likewise.
84422
84423         * m4/const.m4: Remove file, since the fix made it into the experimental
84424         version of autoconf.
84425         * m4/mktime.m4: Likewise.
84426
84427         * m4/check-type.m4: Remove file, now that the latest version of
84428         AC_CHECK_TYPE takes a third arg to specify additional #includes.
84429
84430         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
84431         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
84432         AC_CHECK_TYPE.
84433
84434 1999-10-04  Jim Meyering  <meyering@ascend.com>
84435
84436         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
84437
84438 1999-09-22  Paul Eggert  <eggert@twinsun.com>
84439
84440         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
84441         2.95.1 bug with HP-UX 10.20.
84442
84443 1999-09-17  Jim Meyering  <meyering@ascend.com>
84444
84445         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
84446         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
84447         due to missing strdup (against sh-utils-2.0).
84448
84449 1999-08-29  Jim Meyering  <meyering@ascend.com>
84450
84451         * m4/jm-macros.m4: Require jm_BISON.
84452         * m4/bison.m4: New file.
84453
84454 1999-08-17  Paul Eggert  <eggert@twinsun.com>
84455
84456         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
84457         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
84458
84459 1999-08-05  Jim Meyering  <meyering@ascend.com>
84460
84461         * m4/getline.m4: Rename test file from conftestdata to conftest.data
84462         to avoid conflicts with `conftest' on 8+3 filesystems.
84463         Suggestion from Eli Zaretskii.
84464
84465 1999-08-04  Jim Meyering  <meyering@ascend.com>
84466
84467         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
84468         fileutils and sh-utils (textutils's getline test was inadequate).
84469         (AM_FUNC_GETLINE): Run this test.
84470         (AC_CHECK_FUNCS): Check for getdelim.
84471         Reported by Bob Proulx.
84472
84473 1999-08-02  Jim Meyering  <meyering@ascend.com>
84474
84475         * m4/jm-macros.m4: Add a comment.
84476
84477 1999-08-01  Paul Eggert  <eggert@twinsun.com>
84478
84479         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
84480         <inttypes.h> defines strtoumax as a macro (and not as a
84481         function).
84482
84483 1999-08-01  Paul Eggert  <eggert@twinsun.com>
84484
84485         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
84486         that we can shift, multiply and divide unsigned long long
84487         values; Ultrix cc can't do it.
84488
84489 1999-08-01  Paul Eggert  <eggert@twinsun.com>
84490
84491         * m4/mktime.m4: New file, which is a preview of what should appear
84492         in the next public autoconf release.
84493
84494 1999-08-01  Paul Eggert  <eggert@twinsun.com>
84495
84496         * m4/lfs.m4: Remove this file.
84497         * m4/largefile.m4: New file.  It contains the old contents of
84498         lfs.m4, except that all names with prefix AC_LFS have been
84499         changed to use the prefix AC_SYS_LARGEFILE instead, to be
84500         compatible with future autoconf versions.  Also, some minor m4
84501         quoting problems have been fixed.
84502
84503 1999-08-01  Paul Eggert  <eggert@twinsun.com>
84504
84505         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
84506         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
84507         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
84508         and simplify the shell code.
84509
84510 1999-08-01  Jim Meyering  <meyering@ascend.com>
84511
84512         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
84513         m4.
84514
84515 1999-07-20  Jim Meyering  <meyering@ascend.com>
84516
84517         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
84518
84519 1999-07-15  Jim Meyering  <meyering@ascend.com>
84520
84521         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
84522
84523 1999-05-22  Jim Meyering  <meyering@ascend.com>
84524
84525         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
84526
84527 1999-05-20  Jim Meyering  <meyering@ascend.com>
84528
84529         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
84530         Add a colon after each `then' in case $4 is empty.
84531
84532 1999-05-16  Jim Meyering  <meyering@ascend.com>
84533
84534         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
84535
84536 1999-05-10  Jim Meyering  <meyering@ascend.com>
84537
84538         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
84539
84540         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
84541         AC_FUNC_MKTIME.
84542
84543 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
84544
84545         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
84546
84547 1999-05-04  Paul Eggert  <eggert@twinsun.com>
84548
84549         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
84550         not CPPFLAGS, so that linking works correctly in IRIX.
84551
84552 1999-04-30  Paul Eggert  <eggert@twinsun.com>
84553
84554         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
84555
84556 1999-04-20  Paul Eggert  <eggert@twinsun.com>
84557
84558         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
84559         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
84560         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
84561         jm_AC_TYPE_UNSIGNED_LONG_LONG.
84562         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
84563
84564         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
84565
84566 1999-04-20  Jim Meyering  <meyering@ascend.com>
84567
84568         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
84569         AC_REPLACE xstroull if necessary.  From Paul Eggert.
84570         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
84571
84572 1999-04-18  Jim Meyering  <meyering@ascend.com>
84573
84574         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
84575         * m4/jm-macros.m4: Use it.
84576
84577 1999-04-06  Jim Meyering  <meyering@ascend.com>
84578
84579         * m4/strftime.m4: Remove test for %f.
84580
84581 1999-03-29  Jim Meyering  <meyering@ascend.com>
84582
84583         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
84584         superset of the AC_TYPE_* checks in the textutils, fileutils,
84585         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
84586         AC_TYPE_PID_T.
84587
84588 1999-03-28  Jim Meyering  <meyering@ascend.com>
84589
84590         * m4/jm-macros.m4: Define GNU_PACKAGE here.
84591         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
84592         replaced e.g., in the *.sh files of the sh-utils.
84593
84594 1999-03-20  Jim Meyering  <meyering@ascend.com>
84595
84596         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
84597         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
84598         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
84599
84600 1999-03-19  Jim Meyering  <meyering@ascend.com>
84601
84602         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
84603
84604 1999-03-12  Jim Meyering  <meyering@ascend.com>
84605
84606         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
84607
84608 1999-03-07  Jim Meyering  <meyering@ascend.com>
84609
84610         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
84611         declared.
84612
84613 1999-02-17  Jim Meyering  <meyering@ascend.com>
84614
84615         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
84616         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
84617
84618 1999-02-07  Jim Meyering  <meyering@ascend.com>
84619
84620         * m4/group-member.m4: New file -- extracted from sh-utils'
84621         configure.in.
84622
84623         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
84624         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
84625
84626 1999-02-06  Jim Meyering  <meyering@ascend.com>
84627
84628         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
84629         * m4/fnmatch.m4: Likewise.
84630         * m4/getgroups.m4: Likewise.
84631         * m4/lstat.m4: Likewise.
84632         * m4/malloc.m4: Likewise.
84633         * m4/putenv.m4: Likewise.
84634         * m4/realloc.m4: Likewise.
84635         * m4/regex.m4: Likewise.
84636         * m4/stat.m4: Likewise.
84637         * m4/strftime.m4: Likewise.
84638         Suggestion from Alain Magloire.
84639
84640         * m4/chown.m4: Use `.$ac_objext', not `.o'.
84641         * m4/fnmatch.m4: Likewise.
84642         * m4/getgroups.m4: Likewise.
84643         * m4/getline.m4: Likewise.
84644         * m4/lstat.m4: Likewise.
84645         * m4/malloc.m4: Likewise.
84646         * m4/memcmp.m4: Likewise.
84647         * m4/putenv.m4: Likewise.
84648         * m4/realloc.m4: Likewise.
84649         * m4/regex.m4: Likewise.
84650         * m4/stat.m4: Likewise.
84651         * m4/strftime.m4: Likewise.
84652         Suggestion from Alain Magloire.
84653
84654         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
84655         an argument.
84656
84657         * m4/regex.m4: Add a run-time Test for proper operation of
84658         re_compile_pattern.
84659
84660 1999-01-31  Jim Meyering  <meyering@ascend.com>
84661
84662         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
84663
84664 1999-01-30  Jim Meyering  <meyering@ascend.com>
84665
84666         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
84667
84668         * m4/jm-mktime.m4: Make this a wrapper around the official
84669         AM_FUNC_MKTIME rather than my private copy, now that the official one
84670         is up to date.
84671         * m4/mktime.m4: Remove file.
84672
84673         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
84674         * m4/uptime.m4: Likewise.
84675         * m4/uintmax_t.m4: Likewise.
84676
84677 1999-01-28  Jim Meyering  <meyering@ascend.com>
84678
84679         * m4/jm-macros.m4: Use jm_AFS.
84680         * m4/afs.m4: New file (from fileutils' configure.in).
84681
84682         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
84683         * m4/chown.m4: Likewise.
84684         * m4/d-ino.m4: Likewise.
84685         * m4/d-type.m4: Likewise.
84686         * m4/fnmatch.m4: Likewise.
84687         * m4/getgroups.m4: Likewise.
84688         * m4/gettext.m4: Likewise.
84689         * m4/jm-mktime.m4: Likewise.
84690         * m4/jm-winsz2.m4: Likewise.
84691         * m4/lcmessage.m4: Likewise.
84692         * m4/ls-mntd-fs.m4: Likewise.
84693         * m4/malloc.m4: Likewise.
84694         * m4/memcmp.m4: Likewise.
84695         * m4/putenv.m4: Likewise.
84696         * m4/realloc.m4: Likewise.
84697         * m4/st_mtim.m4: Likewise.
84698         * m4/strftime.m4: Likewise.
84699
84700 1999-01-16  Jim Meyering  <meyering@ascend.com>
84701
84702         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
84703         (ARGMATCH_DIE_DECL): Define.
84704
84705 1999-01-12  Jim Meyering  <meyering@ascend.com>
84706
84707         * m4/Makefile.am.in: Rewrite to avoid using fmt.
84708         Reported by Lars Hecking.
84709
84710 1999-01-10  Jim Meyering  <meyering@ascend.com>
84711
84712         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
84713         gross kludge.
84714         * m4/inttypes_h.m4: Likewise.
84715         * m4/lstat.m4: Likewise.
84716         * m4/malloc.m4: Likewise.
84717         * m4/readdir.m4: Likewise.
84718         * m4/realloc.m4: Likewise.
84719         * m4/st_dm_mode.m4: Likewise.
84720         * m4/stat.m4: Likewise.
84721         * m4/utimbuf.m4: Likewise.
84722         * m4/utimes.m4: Likewise.
84723
84724         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
84725         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
84726         comments in config.h.in are meaningful.
84727
84728         * m4/jm-macros.m4: Require autoconf-2.13 here.
84729
84730         * m4/regex.m4: By default, don't use the included regex.c on systems
84731         with glibc 2.  Suggestion from Uli Drepper.
84732
84733 1999-01-02  Jim Meyering  <meyering@ascend.com>
84734
84735         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
84736
84737 1998-12-18  Jim Meyering  <meyering@ascend.com>
84738
84739         * m4/Makefile.am.in (Makefile.am): Simplify rule.
84740         Based on a suggestion from Lars Hecking.
84741
84742 1998-11-16  Paul Eggert  <eggert@twinsun.com>
84743
84744         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
84745
84746 1998-11-16  Jim Meyering  <meyering@ascend.com>
84747
84748         * m4/lfs.m4: Double-quote the `uname...` expression.
84749
84750 1998-11-14  Jim Meyering  <meyering@ascend.com>
84751
84752         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
84753         * m4/stat.m4: Likewise.
84754
84755 1998-11-03  Jim Meyering  <meyering@ascend.com>
84756
84757         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
84758         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
84759
84760 1998-10-18  Jim Meyering  <meyering@ascend.com>
84761
84762         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
84763
84764 1998-10-17  Jim Meyering  <meyering@ascend.com>
84765
84766         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
84767         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
84768         calls for those previously hard-coded headers.  Instead, take a new
84769         parameter.
84770         (jm_CHECK_DECLARATIONS): Reflect interface change.
84771         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
84772         (jm_CHECK_DECL_LOCALTIME_R): New macro.
84773
84774         * m4/mktime.m4: Test for spring-forward gap before long-running test.
84775
84776 1998-10-14  Jim Meyering  <meyering@ascend.com>
84777
84778         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
84779         instead of "TZ=America/Vancouver".  From Paul Eggert.
84780
84781 1998-10-11  Jim Meyering  <meyering@ascend.com>
84782
84783         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
84784         This adds a test for a recently added compatibility fix for mktime.c.
84785         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
84786
84787 1998-09-27  Jim Meyering  <meyering@ascend.com>
84788
84789         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
84790
84791         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
84792         ../configure.in, including a change from Gordon Matzigkeit to allow
84793         cross-compiling for the Hurd.
84794
84795         * m4/glibc.m4: New file/macro to test for the GNU C Library
84796         versions 1 and 2.  From Gordon Matzigkeit.
84797         Indent.
84798
84799 1998-09-21  Jim Meyering  <meyering@ascend.com>
84800
84801         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
84802
84803 1998-08-18  Paul Eggert  <eggert@twinsun.com>
84804
84805         Port nanosecond-resolution times to UnixWare 2.1.2 and
84806         pedantic Solaris 2.6.
84807
84808         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
84809         AC_STRUCT_ST_MTIM.
84810         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
84811         Generate name of ns member, instead of just 1 or undef.
84812         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
84813
84814 1998-08-15  Jim Meyering  <meyering@ascend.com>
84815
84816         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
84817         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
84818         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
84819         instead of jm_TYPE_SSIZE_T.
84820
84821 1998-08-12  Jim Meyering  <meyering@ascend.com>
84822
84823         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
84824
84825 1998-08-02  Jim Meyering  <meyering@ascend.com>
84826
84827         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
84828         in acconfig.h manually.
84829
84830 1998-07-31  Paul Eggert  <eggert@twinsun.com>
84831
84832         * m4/st_mtim.m4: New file.
84833
84834 1998-07-28  Jim Meyering  <meyering@ascend.com>
84835
84836         * m4/utimes.m4: Undef stat.
84837
84838 1998-07-25  Jim Meyering  <meyering@ascend.com>
84839
84840         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
84841         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
84842
84843 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
84844
84845         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
84846         uid and gid actually remain unchanged.
84847
84848 1998-07-07  Jim Meyering  <meyering@ascend.com>
84849
84850         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
84851
84852 1998-07-04  Jim Meyering  <meyering@ascend.com>
84853
84854         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
84855         to prove that this macro can be used in packages without regex.c.
84856
84857 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
84858
84859         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
84860         is to be used.
84861
84862 1998-07-03  Jim Meyering  <meyering@ascend.com>
84863
84864         * m4/gettext.m4: Add -lintl if it's found to be necessary.
84865
84866         * m4/gettext.m4: New file -- from gettext-0.10.35.
84867         * m4/lcmessage.m4: Likewise.
84868         * m4/progtest.m4: Likewise.
84869
84870         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
84871         * m4/jm-macros.m4: Require the new macro.
84872
84873 1998-06-29  Jim Meyering  <meyering@ascend.com>
84874
84875         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
84876         for the definition of NGROUPS (used in a system header included
84877         by sys/mount.h).
84878
84879 1998-06-28  Jim Meyering  <meyering@ascend.com>
84880
84881         * m4/ls-mntd-fs.m4: New file.
84882         * m4/fstypename.m4: New file.
84883
84884         * m4/jm-macros.m4: Require the new macro.
84885         * m4/jm-glibc-io.m4: New file.
84886
84887 1998-05-19  Jim Meyering  <meyering@ascend.com>
84888
84889         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
84890         * m4/lchown.m4: New file.
84891
84892         * m4/Makefile.am.in: New file.
84893         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
84894
84895 1998-05-14  Jim Meyering  <meyering@ascend.com>
84896
84897         * m4/Makefile.am (EXTRA_DIST): Add them.
84898         * m4/jm-macros.m4: New file.
84899         * m4/utimbuf.m4: New file.
84900
84901 1998-05-12  Jim Meyering  <meyering@ascend.com>
84902
84903         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
84904
84905 1998-05-11  Jim Meyering  <meyering@ascend.com>
84906
84907         * m4/isc-posix.m4: New file.
84908
84909 1998-05-10  Jim Meyering  <meyering@ascend.com>
84910
84911         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
84912
84913 1998-05-09  Jim Meyering  <meyering@ascend.com>
84914
84915         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
84916         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
84917         with automake.
84918
84919         * m4/ssize_t.m4: New file.
84920         * m4/mktime.m4: Remove file -- the new automake has this now.
84921
84922 1998-04-26  Jim Meyering  <meyering@ascend.com>
84923
84924         * m4/assert.m4: New file.
84925         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
84926
84927 1998-04-05  Jim Meyering  <meyering@ascend.com>
84928
84929         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
84930         (jm_PREREQ): Use it here.
84931
84932 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
84933
84934         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
84935         in acconfig.h.
84936
84937 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
84938
84939         * m4/prereq.m4: New file.
84940         * m4/error.m4: New file.
84941         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
84942
84943 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
84944
84945         * m4/getline.m4: Don't set am_cv_func_working_getline before the
84946         cache-check for the same variable -- that defeated the purpose of
84947         the test; the test program was never run.  This was a problem only
84948         on systems with losing getline functions -- HP-UX 10.20 is one.
84949         Reported by Bjorn Helgaas.
84950
84951 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
84952
84953         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
84954
84955 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
84956
84957         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
84958
84959         * m4/const.m4: New file.  Use an initializer in this declaration
84960         typedef int charset[2]; const charset x;
84961         Reported by Bob Glickstein.
84962
84963 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
84964
84965         * m4/chown.m4: Fix reversed types on -1 args to chown.
84966         From Kaveh Ghazi.
84967
84968 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
84969
84970         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
84971         Add lseek and memchr.
84972
84973         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
84974         T.E.Dickey <dickey@clark.net> said that some older preprocessors
84975         have a 20-character limit on names.
84976
84977 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
84978
84979         * m4/inttypes_h.m4: New file.
84980         * m4/uintmax_t.m4: New file.
84981         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
84982
84983
84984         -----
84985
84986         Local Variables:
84987         coding: utf-8
84988         End:
84989
84990         Copyright (C) 1997-2011 Free Software Foundation, Inc.
84991
84992         Copying and distribution of this file, with or without
84993         modification, are permitted provided the copyright notice
84994         and this notice are preserved.