5626264b56abb4f07771f67fa5a5ca86be6df457
[gnulib.git] / ChangeLog
1 2011-07-25  Bruno Haible  <bruno@clisp.org>
2
3         close: Move AC_LIBOBJ invocation to module description.
4         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
5         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
6         1.
7         * modules/close (configure.ac): Invoke AC_LIBOBJ.
8
9         close: Remove call-in from fchdir.m4.
10         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
11         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
12
13         open: Move AC_LIBOBJ invocation to module description.
14         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
15         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
16         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
17
18         open: Remove call-in from fchdir.m4.
19         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
20         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
21
22         fchdir: Start to remove gl_REPLACE_* idiom.
23         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
24         (gl_FUNC_FCHDIR): Invoke it.
25
26 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
27
28         * lib/ftell.c (ftell): Comment out cast.
29
30         close: use gl_REPLACE_FCLOSE only if defined
31         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
32         is defined.  The close module doesn't depend on the fclose module
33         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
34         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
35         I reproduced the problem with "./gnulib-tool --test close sys_socket".
36
37 2011-07-24  Jim Meyering  <meyering@redhat.com>
38
39         test-select.h: avoid warning when using gcc's -Wmissing-declarations
40         * tests/test-select.h (test_function): Declare as "static".
41
42 2011-07-24  Bruno Haible  <bruno@clisp.org>
43
44         doc: Mention the effects of AC_SYS_LARGEFILE.
45         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
46         on this function.
47         * doc/posix-functions/aio_error.texi: Likewise.
48         * doc/posix-functions/aio_fsync.texi: Likewise.
49         * doc/posix-functions/aio_read.texi: Likewise.
50         * doc/posix-functions/aio_return.texi: Likewise.
51         * doc/posix-functions/aio_suspend.texi: Likewise.
52         * doc/posix-functions/aio_write.texi: Likewise.
53         * doc/posix-functions/fgetpos.texi: Likewise.
54         * doc/posix-functions/fopen.texi: Likewise.
55         * doc/posix-functions/freopen.texi: Likewise.
56         * doc/posix-functions/fsetpos.texi: Likewise.
57         * doc/posix-functions/fstatvfs.texi: Likewise.
58         * doc/posix-functions/ftruncate.texi: Likewise.
59         * doc/posix-functions/ftw.texi: Likewise.
60         * doc/posix-functions/getrlimit.texi: Likewise.
61         * doc/posix-functions/glob.texi: Likewise.
62         * doc/posix-functions/lio_listio.texi: Likewise.
63         * doc/posix-functions/lockf.texi: Likewise.
64         * doc/posix-functions/mkstemp.texi: Likewise.
65         * doc/posix-functions/mmap.texi: Likewise.
66         * doc/posix-functions/nftw.texi: Likewise.
67         * doc/posix-functions/openat.texi: Likewise.
68         * doc/posix-functions/opendir.texi: Likewise.
69         * doc/posix-functions/posix_fadvise.texi: Likewise.
70         * doc/posix-functions/posix_fallocate.texi: Likewise.
71         * doc/posix-functions/pread.texi: Likewise.
72         * doc/posix-functions/pwrite.texi: Likewise.
73         * doc/posix-functions/readdir.texi: Likewise.
74         * doc/posix-functions/readdir_r.texi: Likewise.
75         * doc/posix-functions/rewinddir.texi: Likewise.
76         * doc/posix-functions/scandir.texi: Likewise.
77         * doc/posix-functions/seekdir.texi: Likewise.
78         * doc/posix-functions/setrlimit.texi: Likewise.
79         * doc/posix-functions/statvfs.texi: Likewise.
80         * doc/posix-functions/telldir.texi: Likewise.
81         * doc/posix-functions/tmpfile.texi: Likewise.
82         * doc/posix-functions/truncate.texi: Likewise.
83         * doc/glibc-functions/fallocate.texi: Likewise.
84         * doc/glibc-functions/fstatfs.texi: Likewise.
85         * doc/glibc-functions/fts_children.texi: Likewise.
86         * doc/glibc-functions/fts_read.texi: Likewise.
87         * doc/glibc-functions/getdirentries.texi: Likewise.
88         * doc/glibc-functions/mkostemp.texi: Likewise.
89         * doc/glibc-functions/mkostemps.texi: Likewise.
90         * doc/glibc-functions/mkstemps.texi: Likewise.
91         * doc/glibc-functions/preadv.texi: Likewise.
92         * doc/glibc-functions/pwritev.texi: Likewise.
93         * doc/glibc-functions/sendfile.texi: Likewise.
94         * doc/glibc-functions/statfs.texi: Likewise.
95
96 2011-07-24  Bruno Haible  <bruno@clisp.org>
97
98         doc: Fix typo.
99         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
100
101 2011-07-24  Bruno Haible  <bruno@clisp.org>
102
103         doc: Mention fsusage.
104         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
105
106 2011-07-24  Bruno Haible  <bruno@clisp.org>
107
108         doc: Mention new glibc headers and functions.
109         * doc/glibc-headers/gshadow.texi: New file.
110         * doc/glibc-functions/endsgent.texi: New file.
111         * doc/glibc-functions/fgetsgent.texi: New file.
112         * doc/glibc-functions/fgetsgent_r.texi: New file.
113         * doc/glibc-functions/getsgent.texi: New file.
114         * doc/glibc-functions/getsgent_r.texi: New file.
115         * doc/glibc-functions/getsgnam.texi: New file.
116         * doc/glibc-functions/getsgnam_r.texi: New file.
117         * doc/glibc-functions/putsgent.texi: New file.
118         * doc/glibc-functions/setsgent.texi: New file.
119         * doc/glibc-functions/sgetsgent.texi: New file.
120         * doc/glibc-functions/sgetsgent_r.texi: New file.
121         * doc/glibc-functions/malloc_info.texi: New file.
122         * doc/glibc-functions/preadv.texi: New file.
123         * doc/glibc-functions/pwritev.texi: New file.
124         * doc/glibc-functions/register_printf_modifier.texi: New file.
125         * doc/glibc-functions/register_printf_specifier.texi: New file.
126         * doc/glibc-functions/register_printf_type.texi: New file.
127         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
128         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
129         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
130         * doc/glibc-functions/pthread_getname_np.texi: New file.
131         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
132         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
133         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
134         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
135         * doc/glibc-functions/pthread_setname_np.texi: New file.
136         * doc/glibc-functions/pthread_sigqueue.texi: New file.
137         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
138         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
139         * doc/glibc-functions/qsort_r.texi: New file.
140         * doc/glibc-functions/quick_exit.texi: New file.
141         * doc/glibc-functions/syncfs.texi: New file.
142         * doc/gnulib.texi: Include them.
143         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
144         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
145         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
146         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
147         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
148         * doc/glibc-functions/execvpe.texi: Likewise.
149
150 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
151
152         ftell: don't include <unistd.h>
153         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
154         guaranteed to define off_t, and the ftell module depends on the
155         stdio module.
156
157         ftell: do not assume wraparound signed arithmetic
158         * lib/ftell.c: Include <limits.h>.
159         (ftell): Don't assume wraparound signed arithmetic.
160
161 2011-07-24  Bruno Haible  <bruno@clisp.org>
162
163         close: No longer depend on module 'fclose'.
164         * modules/close (Depends-on): Remove fclose.
165         * NEWS: Mention the change.
166         Suggested by Sam Steingold <sds@gnu.org>.
167
168 2011-07-24  Bruno Haible  <bruno@clisp.org>
169
170         fsusage: Enable large volume support on AIX >= 5.2.
171         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
172         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
173         instead of STAT_STATVFS.
174         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
175
176         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
177         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
178         f_blocks field only on MacOS X.
179
180         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
181         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
182         * modules/fsusage (Depends-on): Add largefile.
183
184 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
185
186         * README: Modernize discussion of signed integers.
187         Assuming overflow wraparound is no longer safe.
188         Mention ones' complement and signed magnitude.
189
190 2011-07-22  Bruno Haible  <bruno@clisp.org>
191
192         select tests, pselect tests: Refactor.
193         * tests/test-select.h: New file, extracted from tests/test-select.c.
194         (select_fn): New type.
195         (test, do_select, do_select_nowait, do_select_wait, test_tty,
196         test_connect_first, test_accept_first, test_pair, test_socket_pair,
197         test_pipe): Add my_select argument.
198         (test_function): Renamed from main. Add my_select argument.
199         * tests/test-select.c: Move most code to tests/test-select.h. Include
200         test-select.h.
201         * modules/select-tests (Files): Add tests/test-select.h.
202         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
203         (my_select, main): New functions.
204         * modules/pselect-tests (Files): Add tests/test-select.h,
205         tests/macros.h, tests/signature.h.
206         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
207         (configure.ac): Check for <sys/wait.h>.
208
209 2011-07-22  Bruno Haible  <bruno@clisp.org>
210
211         sys_select tests: Check the signature of FD_*.
212         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
213         signature tests from here...
214         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
215         here.
216         * modules/sys_select-tests (Files): Add tests/signature.h.
217
218 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
219
220         largefile: new module, replacing large-inode
221         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
222         * MODULES.html.sh: Add largefile, remove large-inode.
223         * modules/largefile, m4/largefile.m4: New files.
224         * modules/large-inode, m4/large-inode.m4: Remove.
225
226         fsusage: port to MacOS X 10.7 with 4 TiB file systems
227         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
228         implementations that use only 32 bits to count blocks.
229         On typical hosts with 1024-byte blocks, this fails with file
230         systems as small as 4 TiB.  Problem reported by Herb Wartens
231         <http://debbugs.gnu.org/9140> and this should also fix a similar
232         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
233
234         large-inode: New module
235         * MODULES.html.sh: Add it.
236         * modules/large-inode, m4/large-inode.m4: New files.
237
238         extensions: Enable extensions on MacOS X 10.5 and later.
239         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
240
241 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
242
243         file-has-acl: use acl_extended_file_nofollow if available
244         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
245         (acl_extended_file): New macro.
246         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
247         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
248
249 2011-07-21  Bruno Haible  <bruno@clisp.org>
250
251         Declare system functions in a way that works with C++.
252         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
253         declare fdopendir as extern "C".
254         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
255         declare frexpl as extern "C".
256         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
257         declare gai_strerror as extern "C".
258         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
259         programs, declare gai_strerror as extern "C".
260         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
261         declare getlogin_r as extern "C".
262         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
263         as extern "C".
264         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
265         declare ldexpl as extern "C".
266         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
267         as extern "C".
268         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
269         program, declare getmntinfo as extern "C".
270         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
271         stpncpy as extern "C".
272         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
273         program, declare __xpg_strerror_r as extern "C".
274         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
275         strndup as extern "C".
276         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
277         declare memset and bzero as extern "C".
278         Reported by Sam Steingold <sds@gnu.org>.
279
280 2011-07-12  Jim Meyering  <meyering@redhat.com>
281
282         maint.mk: prohibit inclusion of "verify.h" without use
283         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
284
285 2011-07-19  Pádraig Brady  <P@draigBrady.com>
286
287         timer-time: A new module to check for timer_settime()
288         * m4/timer_time.m4: Check for the posix function.
289         * modules/timer-time: Add the new module.
290         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
291         Mention it.
292
293 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
294             Bruno Haible  <bruno@clisp.org>
295
296         pthread_sigmask: assume POSIX threads if --avoid=threadlib
297         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
298         not defined, assume POSIX threads and look for pthread_sigmask in
299         $LIBS, without changing $CPPFLAGS.
300
301 2011-07-19  Bruno Haible  <bruno@clisp.org>
302
303         strstr: Update cross-compilation guess.
304         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
305         CPUs, guess no, in view of glibc
306         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
307         Suggested by Eric Blake. Reported by Reuben Thomas.
308
309 2011-07-19  Pádraig Brady  <P@draigBrady.com>
310
311         getopt-gnu: suppress core dumps from detection code
312         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
313         to suppress core dumps that may well occur on glibc systems.
314         * modules/getopt-gnu: Depend on nocrash.
315
316 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
317
318         pthread_sigmask: ensure usleep is declared
319         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
320         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
321
322 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
323
324         doc: Document NonStop portability issues.
325         * doc/posix-functions/sigaction.texi (sigaction):
326         * doc/posix-headers/signal.texi (signal.h):
327         Document NonStop.  See Joachim Schmitz in
328         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
329
330 2011-07-15  Bruno Haible  <bruno@clisp.org>
331
332         ffsl, ffsll: Avoid unportable behaviour.
333         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
334
335 2011-07-15  Bruno Haible  <bruno@clisp.org>
336
337         ffs: More tests.
338         * tests/test-ffs.c (NBITS): New macro.
339         (main): Add more tests.
340         * tests/test-ffsl.c (NBITS): New macro.
341         (main): Add more tests.
342         * tests/test-ffsll.c (NBITS): New macro.
343         (main): Add more tests.
344
345 2011-07-15  Eric Blake  <eblake@redhat.com>
346
347         ffsl, ffsll: new modules
348         * modules/ffsl: New file.
349         * modules/ffsll: Likewise.
350         * m4/ffsl.m4: Likewise.
351         * m4/ffsll.m4: Likewise.
352         * lib/ffsl.c: Likewise.
353         * lib/ffsl.h: Likewise.
354         * lib/ffsll.c: Likewise.
355         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
356         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
357         * modules/string (Makefile.am): Substitute witnesses.
358         * lib/strings.in.h (ffsl, ffsll): Declare.
359         * modules/ffsl-tests: New test file.
360         * modules/ffsll-tests: Likewise.
361         * tests/test-ffsl.c: Likewise.
362         * tests/test-ffsll.c: Likewise.
363         * MODULES.html.sh (Integer arithmetic functions): Mention it.
364         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
365         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
366
367         ffs: fix m4 prerequisite
368         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
369
370         ffs: avoid undefined behavior
371         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
372         * tests/test-ffs.c (naive, main): Avoid signed shifts.
373         Reported by Bruno Haible.
374
375 2011-07-12  Bruno Haible  <bruno@clisp.org>
376
377         pthread_sigmask: Rely on module 'threadlib'.
378         * modules/pthread_sigmask (Depends-on): Add threadlib.
379         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
380         is defined.
381
382 2011-07-12  Bruno Haible  <bruno@clisp.org>
383
384         regex: Depend on module 'strcase'.
385         * modules/regex (Depends-on): Add strcase, for strcasecmp().
386
387 2011-07-12  Jim Meyering  <meyering@redhat.com>
388
389         warn-on-use: fix typo in file name
390         * modules/snippet/warn-on-use (Files): Correct file name:
391         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
392
393 2011-07-12  Bruno Haible  <bruno@clisp.org>
394
395         strings: Document module.
396         * doc/posix-headers/strings.texi: Mention module 'strings'.
397
398 2011-07-12  Bruno Haible  <bruno@clisp.org>
399
400         Rename module '_Noreturn' to 'snippet/_Noreturn'.
401         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
402         (Files, Makefile.am): Update.
403         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
404         * modules/stdlib (Depends-on): Update.
405
406 2011-07-12  Bruno Haible  <bruno@clisp.org>
407
408         * NEWS: Mention the changes.
409
410         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
411         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
412         (Files, Makefile.am): Update.
413         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
414         * modules/arpa_inet (Depends-on): Update.
415         * modules/ctype (Depends-on): Update.
416         * modules/dirent (Depends-on): Update.
417         * modules/fcntl-h (Depends-on): Update.
418         * modules/glob (Depends-on): Update.
419         * modules/iconv-h (Depends-on): Update.
420         * modules/inttypes-incomplete (Depends-on): Update.
421         * modules/langinfo (Depends-on): Update.
422         * modules/locale (Depends-on): Update.
423         * modules/math (Depends-on): Update.
424         * modules/netdb (Depends-on): Update.
425         * modules/poll-h (Depends-on): Update.
426         * modules/pty (Depends-on): Update.
427         * modules/search (Depends-on): Update.
428         * modules/signal (Depends-on): Update.
429         * modules/spawn (Depends-on): Update.
430         * modules/stdio (Depends-on): Update.
431         * modules/stdlib (Depends-on): Update.
432         * modules/string (Depends-on): Update.
433         * modules/strings (Depends-on): Update.
434         * modules/sys_file (Depends-on): Update.
435         * modules/sys_ioctl (Depends-on): Update.
436         * modules/sys_select (Depends-on): Update.
437         * modules/sys_socket (Depends-on): Update.
438         * modules/sys_stat (Depends-on): Update.
439         * modules/sys_time (Depends-on): Update.
440         * modules/sys_times (Depends-on): Update.
441         * modules/sys_utsname (Depends-on): Update.
442         * modules/sys_wait (Depends-on): Update.
443         * modules/termios (Depends-on): Update.
444         * modules/time (Depends-on): Update.
445         * modules/unistd (Depends-on): Update.
446         * modules/wchar (Depends-on): Update.
447         * modules/wctype-h (Depends-on): Update.
448         * MODULES.html.sh (Support for building libraries and executables):
449         Update.
450
451         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
452         * modules/snippet/unused-parameter: Renamed from
453         modules/unused-parameter.
454         (Files, Makefile.am): Update.
455         * build-aux/snippet/unused-parameter.h: Renamed from
456         build-aux/unused-parameter.h.
457         * modules/selinux-h (Depends-on): Update.
458         * modules/unistr/base (Depends-on): Update.
459         * MODULES.html.sh (Core language properties): Update.
460
461         Rename module 'link-warning' to 'snippet/link-warning'.
462         * modules/snippet/link-warning: Renamed from modules/link-warning.
463         (Files, Makefile.am): Update.
464         * build-aux/snippet/link-warning.h: Renamed from
465         build-aux/link-warning.h.
466         * MODULES.html.sh (Support for building libraries and executables):
467         Update.
468
469         Rename module 'c++defs' to 'snippet/c++defs'.
470         * modules/snippet/c++defs: Renamed from modules/c++defs.
471         (Files, Makefile.am): Update.
472         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
473         * modules/arpa_inet (Depends-on): Update.
474         * modules/ctype (Depends-on): Update.
475         * modules/dirent (Depends-on): Update.
476         * modules/fcntl-h (Depends-on): Update.
477         * modules/glob (Depends-on): Update.
478         * modules/iconv-h (Depends-on): Update.
479         * modules/langinfo (Depends-on): Update.
480         * modules/locale (Depends-on): Update.
481         * modules/math (Depends-on): Update.
482         * modules/netdb (Depends-on): Update.
483         * modules/poll-h (Depends-on): Update.
484         * modules/pty (Depends-on): Update.
485         * modules/search (Depends-on): Update.
486         * modules/signal (Depends-on): Update.
487         * modules/spawn (Depends-on): Update.
488         * modules/stdio (Depends-on): Update.
489         * modules/stdlib (Depends-on): Update.
490         * modules/string (Depends-on): Update.
491         * modules/strings (Depends-on): Update.
492         * modules/sys_ioctl (Depends-on): Update.
493         * modules/sys_select (Depends-on): Update.
494         * modules/sys_socket (Depends-on): Update.
495         * modules/sys_stat (Depends-on): Update.
496         * modules/sys_time (Depends-on): Update.
497         * modules/sys_wait (Depends-on): Update.
498         * modules/termios (Depends-on): Update.
499         * modules/time (Depends-on): Update.
500         * modules/unistd (Depends-on): Update.
501         * modules/wchar (Depends-on): Update.
502         * modules/wctype-h (Depends-on): Update.
503
504         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
505         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
506         (Files, Makefile.am): Update.
507         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
508         * modules/argv-iter (Depends-on): Update.
509         * modules/arpa_inet (Depends-on): Update.
510         * modules/dirent (Depends-on): Update.
511         * modules/fcntl-h (Depends-on): Update.
512         * modules/fnmatch (Depends-on): Update.
513         * modules/getopt-posix (Depends-on): Update.
514         * modules/glob (Depends-on): Update.
515         * modules/iconv-h (Depends-on): Update.
516         * modules/inttypes-incomplete (Depends-on): Update.
517         * modules/locale (Depends-on): Update.
518         * modules/math (Depends-on): Update.
519         * modules/netdb (Depends-on): Update.
520         * modules/search (Depends-on): Update.
521         * modules/signal (Depends-on): Update.
522         * modules/spawn (Depends-on): Update.
523         * modules/stdio (Depends-on): Update.
524         * modules/stdlib (Depends-on): Update.
525         * modules/string (Depends-on): Update.
526         * modules/strings (Depends-on): Update.
527         * modules/sys_socket (Depends-on): Update.
528         * modules/sys_stat (Depends-on): Update.
529         * modules/sys_time (Depends-on): Update.
530         * modules/sys_times (Depends-on): Update.
531         * modules/sys_utsname (Depends-on): Update.
532         * modules/time (Depends-on): Update.
533         * modules/unistd (Depends-on): Update.
534         * modules/wchar (Depends-on): Update.
535         * MODULES.html.sh (Support for building libraries and executables):
536         Update.
537
538 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
539
540         Improvements on _Noreturn and related modules.
541
542         modules/_Exit-tests: test _Noreturn too
543         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
544         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
545         (main): Use them.
546
547         stdnoreturn, stdnoreturn-tests: remove modules
548         They're not needed here and a bit premature for use elsewhere.  See
549         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
550         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
551         * tests/test-stdnoreturn.c: Remove files.
552         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
553         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
554         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
555         and using noreturn.
556         * modules/openat, modules/sigpipe-die, modules/xalloc:
557         * modules/xmemdup0, modules/xstrtol:
558         Remove dependency on stdnoreturn.
559
560         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
561         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
562         Reparenthesize to avoid GCC warning.
563         Support Microsoft's syntax.
564         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
565
566         _Noreturn-tests: remove module
567         * modules/_Noreturn-tests: Remove.
568         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
569         * tests/test-_Noreturn.c: Remove.
570         * tests/test-stdnoreturn.c: Merge from the old
571         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
572
573 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
574
575         _Noreturn, stdnoreturn, and related modules.
576
577         * top/maint.mk: Adjust to new noreturn support.
578         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
579         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
580
581         xalloc: use stdnoreturn.h
582         * lib/xalloc.h: Include <stdnoreturn.h>.
583         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
584         * modules/xalloc (Depends-on): Add stdnoreturn.
585
586         xstrtol: use stdnoreturn.h
587         * lib/xstrtol.h: Include <stdnoreturn.h>.
588         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
589         * modules/xstrtol (Depends-on): Add stdnoreturn.
590
591         xmemdup0: use stdnoreturn.h
592         * lib/xmemdup0.h: Include <stdnoreturn.h>.
593         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
594         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
595
596         sigpipe-die: use stdnoreturn.h
597         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
598         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
599         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
600
601         openat: use stdnoreturn.h
602         * lib/openat.h: Include <stdnoreturn.h>.
603         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
604         * modules/openat (Depends-on): Add stdnoreturn.
605
606         * lib/openat-die.c (openat_save_fail): Modernize comment.
607
608         * lib/xalloc-die.c (xalloc_die): Modernize comment.
609
610         * lib/glthread/thread.h: Modernize comment.
611
612         obstack: use _Noreturn
613         * lib/obstack.c (__attribute__): Remove macro.
614         (print_and_abort): Use _Noreturn.
615
616         c-stack: use _Noreturn
617         * lib/c-stack.c (die, overflow_handler, segv_handler):
618         Use _Noreturn rather than __attribute__((noreturn)).
619
620         argmatch-tests, exclude_tests: use _Noreturn
621         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
622         Remove.
623         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
624
625         stdlib: use _Noreturn
626         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
627         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
628         * modules/stdlib (Depends-on): Add _Noreturn.
629         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
630
631         stdnoreturn-tests: new module
632         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
633
634         stdnoreturn: new module
635         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
636         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
637
638         _Noreturn-tests: new module
639         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
640
641         _Noreturn: new module
642         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
643         New section, mentioning it.
644         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
645
646         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
647
648 2011-07-11  Eric Blake  <eblake@redhat.com>
649
650         ffs: new module
651         * modules/ffs: New file.
652         * m4/ffs.m4: Likewise.
653         * lib/ffs.c: Likewise.
654         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
655         * modules/strings (Makefile.am): Substitute witness.
656         (Depends-on): Add c++defs.
657         * lib/strings.in.h (ffs): Declare.
658         * modules/ffs-tests: New test file.
659         * tests/test-ffs.c: Test new module.
660         * MODULES.html.sh (Integer arithmetic functions): Mention it.
661         * doc/posix-functions/ffs.texi (ffs): Likewise.
662
663         regex: avoid compiler warning
664         * lib/regex.c (includes): Include <strings.h>, for use of
665         strcasecmp in regcomp.c.
666         Reported by Joachim Schmitz.
667
668 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
669
670         stdint: respect system's intmax_t if INTMAX_MAX
671         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
672         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
673         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
674         long but int64_t is long long, and where we will clash with the
675         system intmax_t if we override it.  See
676         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
677         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
678         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
679         similarly for UINTMAX_C.
680
681 2011-07-08  Bruno Haible  <bruno@clisp.org>
682
683         pthread_sigmask tests: Avoid a compiler warning.
684         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
685         non-zero.
686
687         sigprocmask tests: A better way to avoid a compiler warning.
688         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
689         (main): Complain if system() returns non-zero.
690         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
691
692 2011-07-08  Bruno Haible  <bruno@clisp.org>
693
694         pthread_sigmask: Work around IRIX bug.
695         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
696         bug.
697         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
698         there may be unblocked pending signals.
699         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
700
701 2011-07-08  Bruno Haible  <bruno@clisp.org>
702
703         pthread_sigmask: Work around Cygwin bug.
704         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
705         bug.
706         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
707         the system's pthread_sigmask function.
708         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
709
710 2011-07-08  Bruno Haible  <bruno@clisp.org>
711
712         pthread_sigmask: Work around bug in single-threaded implementation.
713         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
714         FreeBSD, HP-UX, Solaris bug.
715         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
716         * lib/pthread_sigmask.c: Include <stddef.h>.
717         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
718         the system's pthread_sigmask function.
719         * modules/pthread_sigmask (configure.ac): Invoke
720         gl_PREREQ_PTHREAD_SIGMASK.
721         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
722         HP-UX, Solaris.
723
724 2011-07-08  Eric Blake  <eblake@redhat.com>
725
726         test-sigprocmask: avoid compiler warning
727         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
728         * tests/test-sigprocmask.c (main): Use it to silence warning.
729         Reported by Jim Meyering.
730
731         test-snprintf: avoid compiler warning
732         * tests/test-snprintf.c (main): Avoid shadowed declaration.
733         * tests/test-vsnprintf.c (main): Likewise.
734         Reported by Jim Meyering.
735
736 2011-07-08  Bruno Haible  <bruno@clisp.org>
737
738         Tests for module 'pthread_sigmask'.
739         * modules/pthread_sigmask-tests: New file.
740         * tests/test-pthread_sigmask1.c: New file, based on
741         tests/test-sigprocmask.c.
742         * tests/test-pthread_sigmask2.c: New file.
743
744 2011-07-08  Jim Meyering  <meyering@redhat.com>
745
746         test-getopt.h: avoid warning about an unused variable
747         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
748
749 2011-07-07  Jim Meyering  <meyering@redhat.com>
750
751         maint: reduce list of files exempt from sc_prohibit_leading_TABs
752         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
753         now that it no longer contains leading TABs.
754         Remove unused "url=FIXME" statement.
755
756 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
757
758         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
759         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
760         When gl_THREADLIB is not in use, assume that the POSIX sematics
761         are desired.  This is better for Emacs, which uses POSIX semantics
762         on GNUish and/or POSIXish platforms, and does not use threads at
763         all otherwise.
764
765         pthread_sigmask: fix typo when testing for libraries
766         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
767         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
768
769 2011-07-08  Eric Blake  <eblake@redhat.com>
770
771         fts: introduce FTS_NOATIME
772         * lib/fts_.h (FTS_NOATIME): New bit flag.
773         (FTS_OPTIONMASK): Adjust.
774         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
775         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
776
777 2011-07-08  Bruno Haible  <bruno@clisp.org>
778
779         Tests for module 'thread'.
780         * modules/thread-tests: New file.
781         * tests/test-thread_self.c: New file.
782         * tests/test-thread_create.cc: New file.
783
784 2011-07-08  Bruno Haible  <bruno@clisp.org>
785
786         thread: Avoid gcc warnings when using gl_thread_self().
787         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
788         'void *'.
789         (gl_thread_self_pointer): Update.
790
791 2011-07-07  Bruno Haible  <bruno@clisp.org>
792
793         signal-c++-tests: Check declaration of pthread_sigmask.
794         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
795         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
796         $(LIB_PTHREAD_SIGMASK).
797
798 2011-07-07  Bruno Haible  <bruno@clisp.org>
799
800         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
801         * lib/signal.in.h (pthread_sigmask): Override if
802         REPLACE_PTHREAD_SIGMASK is 1.
803         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
804         REPLACE_PTHREAD_SIGMASK.
805         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
806         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
807         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
808         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
809         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
810
811 2011-07-07  Bruno Haible  <bruno@clisp.org>
812
813         pthread_sigmask: Ensure declaration in <signal.h>.
814         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
815         include <pthread.h>.
816         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
817         problem.
818
819 2011-07-07  Bruno Haible  <bruno@clisp.org>
820
821         pthread_sigmask: Document the module.
822         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
823
824 2011-07-07  Bruno Haible  <bruno@clisp.org>
825
826         pthread_sigmask: Follow gnulib conventions.
827         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
828         gl_PTHREAD_SIGMASK.
829         * modules/pthread_sigmask (configure.ac): Update.
830
831 2011-07-07  Bruno Haible  <bruno@clisp.org>
832
833         pthread_sigmask: Make declaration C++ safe.
834         * lib/signal.in.h: In two special conditions, just do an #include_next.
835         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
836         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
837         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
838         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
839         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
840         not REPLACE_PTHREAD_MASK.
841         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
842         not REPLACE_PTHREAD_MASK.
843         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
844
845 2011-07-07  Bruno Haible  <bruno@clisp.org>
846
847         pthread_sigmask: Fix return value.
848         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
849         * lib/pthread_sigmask.c: New file.
850         * modules/pthread_sigmask (Files): Add it.
851         (configure.ac): Invoke AC_LIBOBJ.
852
853 2011-07-07  Eric Blake  <eblake@redhat.com>
854
855         getopt: more portable argv creation
856         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
857         const, use char arrays rather than strings.
858         Suggested by Paul Eggert.
859
860 2011-07-07  Bruno Haible  <bruno@clisp.org>
861
862         Tests for module 'sigprocmask'.
863         * modules/sigprocmask-tests: New file.
864         * tests/test-sigprocmask.c: New file.
865
866 2011-07-07  Bruno Haible  <bruno@clisp.org>
867
868         float tests: Tweak.
869         * tests/test-float.c (main): Tweak skip message.
870
871 2011-07-07  Eric Blake  <eblake@redhat.com>
872
873         getopt: avoid compiler warning during configure
874         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
875         assigning string literals to non-const pointer.
876
877         getopt-gnu: avoid crash in glibc getopt
878         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
879         * tests/test-getopt.h (test_getopt): Enhance test.
880         * tests/test-getopt_long.h (test_getopt_long): Likewise.
881         * doc/posix-functions/getopt.texi (getopt): Document it.
882         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
883         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
884         Likewise.
885
886 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
887
888         getopt: handle W; without long options in getopt [BZ #12922]
889         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
890         but no long options are defined, just return 'W'.
891
892 2011-07-07  Bruno Haible  <bruno@clisp.org>
893
894         Avoid literal tabs.
895         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
896         variable containing a tab instead of a literal tab.
897         Reported by Jim Meyering.
898
899 2011-07-07  Bruno Haible  <bruno@clisp.org>
900
901         Comments.
902         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
903
904 2011-07-06  Bruno Haible  <bruno@clisp.org>
905
906         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
907         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
908         <winsock2.h>.
909         (rpl_fd_isset, FD_ISSET): New definitions, copied from
910         lib/sys_socket.in.h.
911         (close, gethostname): Hide declarations from <winsock2.h>.
912         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
913         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
914         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
915         (select): Don't override if gnulib's <sys/select.h> was already
916         included.
917         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
918         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
919         setsockopt, shutdown, select): Tweak indentation.
920
921 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
922
923         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
924         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
925         in an application that does not use the sys_select module.
926
927 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
928
929         poll: do not return 0 on timeout=-1
930         * lib/poll.c: Loop with yield if no events occured
931
932 2011-07-06  Eric Blake  <eblake@redhat.com>
933
934         pthread_sigmask: always replace when not using pthread
935         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
936         replacement when using some threading other than pthread.  Fix
937         logic bug.
938
939 2011-07-06  Bruno Haible  <bruno@clisp.org>
940
941         Comments.
942         * m4/printf.m4: Update comments about mingw.
943
944 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
945
946         sys_select: define sigset_t more portably
947         * lib/sys_select.in.h: Always include <sys/types.h>, since
948         we now need sigset_t and mingw defines it there.
949         Include <signal.h> before split inclusion guard, to avoid
950         mishaps on Solaris, whose <signal.h> eventually includes us.
951         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
952         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
953         which come from ...
954         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
955         gl_CHECK_TYPE_SIGSET_T.
956         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
957         does the real work.
958         * modules/sys_select (Depends-on): Add 'signal'.
959
960         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
961         Suggested by Bruno Haible.
962
963         pselect: Use pthread_sigmask, not sigprocmask.
964         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
965         multithreaded apps better than sigprocmask does.
966         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
967         sigprocmask directly.
968
969 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
970
971         * lib/pselect.c (pselect): Use plain name, without "rpl_".
972         Don't #undef,  since we don't need any underlying pselect.
973         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
974         (Depends-on): Add select.
975         (Link): Add $(LIBSOCKET).
976         These changes suggested by Bruno Haible.
977
978         pselect: document better
979         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
980         * doc/posix-functions/pselect.texi (pselect): Document new module.
981
982         pthread_sigmask: new module
983         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
984         * doc/posix-functions/pthread_sigmask.texi: Document new module.
985         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
986         This is done only as a macro; I don't know how well that'll
987         work for C++.  Move <sys/types.h> include before the include_next,
988         to avoid mishap on Solaris.
989         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
990         * modules/signal (Makefile.am): Substitute the check's results.
991         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
992
993         test-pselect: new module
994         * modules/pselect-tests, tests/test-pselect.c: New files.
995         * tests/test-select.c, tests/test-sys_select-c++.cc:
996         If TEST_PSELECT is defined, test pselect instead of testing select.
997
998         * tests/test-sys_select.c (sigset_t): Test for it, too.
999         Suggested by Bruno Haible.
1000
1001 2011-07-05  Eric Blake  <eblake@redhat.com>
1002
1003         snprintf: guarantee %1$d, for libintl
1004         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
1005         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
1006         * doc/posix-functions/snprintf.texi (snprintf): Update.
1007         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
1008         * tests/test-snprintf.c (main): Enhance test.
1009         * tests/test-vsnprintf.c (main): Likewise.
1010
1011 2011-07-05  Jim Meyering  <meyering@redhat.com>
1012
1013         maint: exempt stdio-read.c and stdio-write.c from the cppi check
1014         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
1015         per Bruno's request, to accommodate this idiom (no space after "#")
1016         even when the function is inside an #if block:
1017         char *
1018         gets (char *s)
1019         #undef gets
1020         {
1021           ...
1022         }
1023
1024 2011-07-04  Jim Meyering  <meyering@redhat.com>
1025
1026         maint: indent with spaces, not TABs, and add a rule to check this
1027         * tests/test-userspec.c: Indent with spaces, not TABs.
1028         * tests/test-argp.c: Likewise.
1029         * tests/test-c-stack2.sh: Likewise.
1030         * tests/test-parse-duration.sh: Likewise
1031         * m4/strtod.m4: Likewise.
1032         * m4/alloca.m4: Likewise.
1033         * m4/pselect.m4: Likewise.
1034         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
1035
1036 2011-07-03  Jim Meyering  <meyering@redhat.com>
1037
1038         maint.mk: correct omissions in prohibit_argmatch_without_use check
1039         This rule would mistakenly report that argmatch.h is included without
1040         use even when both the argmatch and invalid_arg macro were used.
1041         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
1042         of argmatch and invalid_arg.
1043
1044 2011-07-03  Bruno Haible  <bruno@clisp.org>
1045
1046         Comments about EINTR.
1047         * lib/safe-read.h: Explain the purpose of this module.
1048         * lib/safe-write.h: Likewise.
1049         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
1050         module.
1051         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
1052         module.
1053         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
1054
1055 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
1056
1057         xnanosleep: Rewrite to use new dtotimespec module.
1058         It has the conversion code that used to be in xnanosleep.
1059         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
1060         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
1061         (TIME_T_MAX): Remove.
1062         (xnanosleep): Rewrite in terms of dtotimespec.
1063         * modules/xnanosleep (Depends-on): Add dtotimespec.
1064         Remove intprops, stdbool.
1065
1066         timespec-add, timespec-sub: new modules
1067         * lib/timespec.h (timespec_add, timespec_sub): New decls.
1068         * lib/timespec-add.c, lib/timespec-sub.c:
1069         * modules/timespec-add, modules/timespec-sub: New files.
1070
1071         dtotimespec: new module
1072         * lib/timespec.h (dtotimespec): New decl.
1073         * lib/dtotimespec.c, modules/dtotimespec: New files.
1074
1075         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
1076
1077         pselect: new module
1078         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
1079         (pselect): New decls.
1080         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
1081         since the standard pselect decl uses 'restrict'.
1082         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
1083         HAVE_PSELECT, REPLACE_PSELECT.
1084         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
1085         HAVE_PSELECT, REPLACE_PSELECT.
1086         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
1087
1088         sys_select: don't depend on sys_socket
1089         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
1090         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
1091         This fix works on GNU and GNU-like platforms, but has not been tested
1092         on native Windows.
1093         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
1094         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
1095         gl_HEADER_SYS_SOCKET.
1096         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
1097         gl_PREREQ_SYS_H_WINSOCK2.
1098
1099 2011-06-29  Eric Blake  <eblake@redhat.com>
1100
1101         pipe2: fix C89 compile problem
1102         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
1103         Reported by Bruno Haible.
1104
1105         pipe, pipe2: don't corrupt fd on error
1106         * lib/pipe.c (pipe): Leave fd unchanged on error.
1107         * lib/pipe2.c (pipe2): Likewise.
1108         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
1109         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
1110
1111 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
1112
1113         mmap-anon: do not use regular expressions inadvertently
1114         * m4/mmap-anon.m4: Remove trailing period from strings sought
1115         in the output.
1116
1117 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
1118
1119         nanosleep: fix integer overflow problem
1120         * lib/nanosleep.c (my_usleep): Don't assume signed integer
1121         arithmetic wraps around on overflow.
1122
1123         nanosleep: simplify carrying
1124         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
1125         first call to the underyling nanosleep, not for the last one.
1126         This doesn't fix any bugs, but it simplifies the computation of
1127         the remaining delay.  Found while auditing integer overflow issues.
1128
1129         dup2: remove test for existence of fcntl
1130         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
1131         "#if HAVE_FCNTL", in the configure-time test program.
1132         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
1133         and therefore speeds up "configure" a bit.  Found while
1134         adding the dup2 module to Emacs.
1135
1136 2011-06-24  Eric Blake  <eblake@redhat.com>
1137
1138         maint.mk: enhance useless header checks
1139         * top/maint.mk (_sc_header_without_use): Check both include
1140         styles.
1141         (sc_prohibit_assert_without_use)
1142         (sc_prohibit_close_stream_without_use)
1143         (sc_prohibit_getopt_without_use)
1144         (sc_prohibit_quotearg_without_use)
1145         (sc_prohibit_quote_without_use)
1146         (sc_prohibit_long_options_without_use)
1147         (sc_prohibit_inttostr_without_use)
1148         (sc_prohibit_ignore_value_without_use)
1149         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
1150         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
1151         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
1152         (sc_prohibit_hash_pjw_without_use)
1153         (sc_prohibit_safe_read_without_use)
1154         (sc_prohibit_argmatch_without_use)
1155         (sc_prohibit_canonicalize_without_use)
1156         (sc_prohibit_root_dev_ino_without_use)
1157         (sc_prohibit_openat_without_use)
1158         (sc_prohibit_c_ctype_without_use)
1159         (sc_prohibit_signal_without_use)
1160         (sc_prohibit_stdio--_without_use)
1161         (sc_prohibit_stdio-safer_without_use)
1162         (sc_prohibit_strings_without_use)
1163         (sc_prohibit_intprops_without_use)
1164         (sc_prohibit_stddef_without_use)
1165         (sc_prohibit_xfreopen_without_use): Update clients.
1166
1167 2011-06-24  Jim Meyering  <meyering@redhat.com>
1168
1169         syntax-check: keep one maint.mk rule in sync with its header
1170         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
1171         of the bug Eric has just fixed, with today's commit 25e4c2ec.
1172         I prefer to avoid temporary files here, so use <(...), but that
1173         is not supported by /bin/sh, so...
1174         (SHELL): Define to /bin/bash.
1175
1176 2011-06-24  Eric Blake  <eblake@redhat.com>
1177
1178         maint.mk: update sc_prohibit_intprops_without_use
1179         * top/maint.mk (_intprops_names): Match recent changes.
1180
1181 2011-06-24  Bruno Haible  <bruno@clisp.org>
1182
1183         strerror-override: No-op tweak.
1184         * lib/strerror-override.h (strerror_override): Reorder conditions,
1185         for consistency with lib/strerror-override.c.
1186
1187 2011-06-23  Eric Blake  <eblake@redhat.com>
1188
1189         maint.mk: test further PATH_MAX issues
1190         * top/maint.mk (sc_prohibit_path_max_array): Rename...
1191         (sc_prohibit_path_max_allocation): ...and also test alloca.
1192         Suggested by Jim Meyering.
1193
1194 2011-06-22  Eric Blake  <eblake@redhat.com>
1195
1196         maint.mk: add syntax-check to avoid char[PATH_MAX]
1197         * top/maint.mk (sc_prohibit_path_max_array): New rule.
1198
1199         stat: be robust to PATH_MAX definition
1200         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
1201         * modules/stat (Depends-on): Add verify.
1202
1203         link: work around IRIX bug
1204         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
1205         * lib/link.c (rpl_link): Work around it.
1206         * tests/test-link.h (test_link): Enhance test.
1207         * doc/posix-functions/link.texi (link): Document the bug.
1208
1209         getopt: silence clang warning
1210         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
1211         dereference.
1212         Reported by Gustavo Martin Domato.
1213
1214 2011-06-22  Jim Meyering  <meyering@redhat.com>
1215
1216         bootstrap: do not insert a blank line into each .gitignore file
1217         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
1218
1219 2011-06-21  Eric Blake  <eblake@redhat.com>
1220
1221         perror: test for output mismatch
1222         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
1223         perror on IRIX.
1224
1225         strerror_r: fix OpenBSD behavior on out-of-range
1226         * lib/strerror_r.c (strerror_r): Always use maximal string.
1227         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
1228
1229         strerror_r: fix OpenBSD behavior on 0
1230         * lib/strerror-override.c (strerror_override): Also override 0
1231         when needed.
1232         * lib/strerror-override.h (strerror_override): Likewise.
1233         * lib/strerror.c (strerror): Simplify, now that 0 override is done
1234         earlier.
1235         * lib/strerror_r.c (strerror_r): Likewise.
1236         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
1237         behavior...
1238         (gl_FUNC_STRERROR_0): ...into new macro.
1239         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
1240         is overridden.
1241         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
1242         * modules/strerror-override (Files): Add strerror.m4.
1243         (configure.ac): Also provide override for 0 when needed.
1244         * doc/posix-functions/strerror.texi (strerror): Document this.
1245         * doc/posix-functions/perror.texi (perror): Likewise.
1246
1247         perror: adjust array size
1248         * modules/perror (Depends-on): Add strerror-override.
1249         * lib/perror.c (perror): Use it to avoid magic number.
1250
1251         strerror-override: reduce size
1252         * lib/strerror-override.c (strerror_override): Use fewer lines.
1253
1254 2011-06-20  Bruno Haible  <bruno@clisp.org>
1255
1256         pathmax: Ensure correct value for PATH_MAX on HP-UX.
1257         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
1258
1259 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
1260
1261         alloca: port to compilers that can optimize like GCC 4.6.0
1262         * lib/alloca.c (find_stack_direction): New signature, taken from
1263         Autoconf git.  This works with GCC 4.6.0.  This code should never
1264         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
1265         be used with other compilers that optimize as well as GCC 4.6.0 does.
1266         (alloca): Adjust to new signature.
1267         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
1268         New macro, which patches Autoconf in a similar way.
1269
1270         c-stack: stop worrying about stack direction
1271         * lib/c-stack.c (find_stack_direction): Remove.
1272         (segv_handler): Don't worry about stack direction growth, as it's
1273         too much of a pain to configure this correctly, given how compilers
1274         are optimizing-away our stack-growth detection code.  Instead, assume
1275         that any access to just before or just after the stack is OK.
1276         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
1277         Don't require AC_FUNC_ALLOCA; no longer needed.
1278
1279 2011-06-20  Eric Blake  <eblake@redhat.com>
1280
1281         test-stat: don't allocate PATH_MAX bytes
1282         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
1283         PATH_MAX-sized buffer.
1284         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
1285         * modules/stat-tests (Depends-on): Likewise.
1286         * tests/test-fstatat.c (includes): Drop pathmax.h.
1287         * tests/test-stat.c (includes): Likewise.
1288         Reported by Bruno Haible.
1289
1290 2011-06-20  Bruno Haible  <bruno@clisp.org>
1291
1292         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
1293         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
1294         * lib/float.c: New file.
1295         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
1296         REPLACE_FLOAT_LDBL.
1297         * modules/float (Files): Add lib/float.c.
1298         (configure.ac): Invoke AC_LIBOBJ.
1299         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
1300
1301 2011-06-20  Bruno Haible  <bruno@clisp.org>
1302
1303         Tests for module 'float'.
1304         * modules/float-tests: New file.
1305         * tests/test-float.c: New file.
1306
1307 2011-06-19  Bruno Haible  <bruno@clisp.org>
1308
1309         isinf: Coding style.
1310         * lib/isinf.c: Use GNU coding style.
1311
1312 2011-06-19  Bruno Haible  <bruno@clisp.org>
1313
1314         linkat test: Avoid test failure on AIX 7.1.
1315         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
1316         * tests/test-link.h (test_link): Likewise.
1317
1318 2011-06-19  Bruno Haible  <bruno@clisp.org>
1319
1320         pread test: Avoid test failure on OpenBSD 4.9.
1321         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
1322
1323 2011-06-19  Bruno Haible  <bruno@clisp.org>
1324
1325         sprintf-posix: Fix test failure on AIX 7.1.
1326         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
1327         * doc/posix-functions/dprintf.texi: Mention limited precision problem
1328         on AIX.
1329         * doc/posix-functions/fprintf.texi: Likewise.
1330         * doc/posix-functions/printf.texi: Likewise.
1331         * doc/posix-functions/snprintf.texi: Likewise.
1332         * doc/posix-functions/sprintf.texi: Likewise.
1333         * doc/posix-functions/vdprintf.texi: Likewise.
1334         * doc/posix-functions/vfprintf.texi: Likewise.
1335         * doc/posix-functions/vprintf.texi: Likewise.
1336         * doc/posix-functions/vsnprintf.texi: Likewise.
1337         * doc/posix-functions/vsprintf.texi: Likewise.
1338
1339 2011-06-19  Bruno Haible  <bruno@clisp.org>
1340
1341         roundl-ieee: Fix test failure on AIX 7.1.
1342         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
1343         * doc/posix-functions/roundl.texi: Mention problem with negative
1344         arguments.
1345
1346 2011-06-19  Bruno Haible  <bruno@clisp.org>
1347
1348         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
1349         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
1350         * doc/posix-functions/round.texi: Mention problem with negative
1351         arguments.
1352         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
1353
1354 2011-06-19  Bruno Haible  <bruno@clisp.org>
1355
1356         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
1357         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
1358         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
1359         * doc/posix-functions/roundf.texi: Mention problem with negative
1360         arguments.
1361         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
1362
1363 2011-06-19  Bruno Haible  <bruno@clisp.org>
1364
1365         ceilf-ieee: Work around bug on MacOS X 10.5.
1366         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
1367
1368         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
1369         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
1370         IEEE compliant, avoid compiler optimizations.
1371         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
1372         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
1373         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
1374         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
1375         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
1376         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
1377         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
1378         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
1379         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
1380         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
1381
1382 2011-06-19  Bruno Haible  <bruno@clisp.org>
1383
1384         ceilf-ieee: Work around bug on AIX 7.1.
1385         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
1386         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
1387
1388 2011-06-19  Bruno Haible  <bruno@clisp.org>
1389
1390         ceil-ieee: Work around bug on AIX 7.1.
1391         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
1392         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
1393
1394 2011-06-18  Bruno Haible  <bruno@clisp.org>
1395
1396         fsync test: Avoid test failure on MacOS X and AIX.
1397         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
1398         EINVAL.
1399
1400 2011-06-18  Bruno Haible  <bruno@clisp.org>
1401
1402         openat, fdopendir tests: Fix link errors.
1403         * modules/openat-tests (Depends-on): Add progname.
1404         * modules/fdopendir-tests (Depends-on): Likewise.
1405         * tests/test-fchownat.c: Include progname.h.
1406         (main): Call set_program_name.
1407         * tests/test-fstatat.c: Include progname.h.
1408         (main): Call set_program_name.
1409         * tests/test-mkdirat.c: Include progname.h.
1410         (main): Call set_program_name.
1411         * tests/test-openat.c: Include progname.h.
1412         (main): Call set_program_name.
1413         * tests/test-unlinkat.c: Include progname.h.
1414         (main): Call set_program_name.
1415         * tests/test-fdopendir.c: Include progname.h.
1416         (main): Call set_program_name.
1417
1418 2011-06-18  Bruno Haible  <bruno@clisp.org>
1419
1420         Doc update.
1421         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
1422         HP-UX.
1423         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
1424
1425 2011-06-18  Bruno Haible  <bruno@clisp.org>
1426
1427         getcwd tests: Avoid compilation error on HP-UX 11.31.
1428         * modules/getcwd-tests (Depends-on): Add pathmax.
1429         * tests/test-getcwd.c: Include pathmax.h.
1430
1431 2011-06-18  Bruno Haible  <bruno@clisp.org>
1432
1433         isfinite, isinf: Fix link error on AIX 6 and 7.
1434         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
1435         needed, also test the macro with a 'float' argument.
1436         * m4/isinf.m4 (gl_ISINF): Likewise.
1437
1438 2011-06-18  Bruno Haible  <bruno@clisp.org>
1439
1440         getloadavg: Don't clobber LIBS. Regression from previous commit.
1441         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
1442         AC_CHECK_LIB from here...
1443         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
1444         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
1445         gl_func_getloadavg_done.
1446         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1447
1448 2011-06-18  Bruno Haible  <bruno@clisp.org>
1449
1450         clean-temp: Improve documentation.
1451         * lib/clean-temp.h: Explain better how to use this module.
1452         Reported by John Darrington <john@darrington.wattle.id.au>.
1453
1454 2011-06-17  Bruno Haible  <bruno@clisp.org>
1455
1456         pread, pwrite: Avoid cc warning on AIX.
1457         * lib/unistd.in.h (pread): Undefine before defining as a macro.
1458         (pwrite): Likewise.
1459
1460 2011-06-17  Bruno Haible  <bruno@clisp.org>
1461
1462         spawn-pipe tests: Fix link error.
1463         * tests/test-spawn-pipe-child.c: Undefine fprintf.
1464         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1465
1466 2011-06-17  Bruno Haible  <bruno@clisp.org>
1467
1468         Tests: Remove unnecessary dependency.
1469         * modules/canonicalize-tests (Depends-on): Remove progname.
1470         * modules/chown-tests (Depends-on): Likewise.
1471         * modules/dirname-tests (Depends-on): Likewise.
1472         * modules/fdopendir-tests (Depends-on): Likewise.
1473         * modules/fdutimensat-tests (Depends-on): Likewise.
1474         * modules/hash-tests (Depends-on): Likewise.
1475         * modules/lchown-tests (Depends-on): Likewise.
1476         * modules/linkat-tests (Depends-on): Likewise.
1477         * modules/renameat-tests (Depends-on): Likewise.
1478         * modules/spawn-pipe-tests (Depends-on): Likewise.
1479         * modules/utimensat-tests (Depends-on): Likewise.
1480
1481 2011-06-17  Bruno Haible  <bruno@clisp.org>
1482
1483         spawn-pipe tests: Fix link error.
1484         * tests/test-spawn-pipe-child.c: Undefine fflush.
1485
1486 2011-06-17  Bruno Haible  <bruno@clisp.org>
1487
1488         Fix tests link errors.
1489         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
1490         * modules/chown-tests (Makefile.am): Don't link test-chown with
1491         LIBINTL.
1492         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
1493         LIBINTL.
1494         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
1495         LIBINTL.
1496         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
1497         LIBINTL.
1498
1499 2011-06-16  Bruno Haible  <bruno@clisp.org>
1500
1501         crypto/gc-sha1: Fix recent regression.
1502         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
1503         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
1504
1505         crypto/gc-md5: Fix recent regression.
1506         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
1507
1508         crypto/gc-md4: Fix recent regression.
1509         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
1510         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
1511
1512         crypto/gc-arctwo: Fix recent regression.
1513         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
1514         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
1515
1516         crypto/gc-rijndael: Fix recent regression.
1517         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
1518         (configure.ac): Invoke AC_LIBOBJ here.
1519         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
1520         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1521
1522         crypto/gc-hmac-sha1: Fix recent regression.
1523         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
1524         (configure.ac): Invoke AC_LIBOBJ here.
1525         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
1526         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1527
1528         crypto/gc-hmac-md5: Fix recent regression.
1529         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
1530         (configure.ac): Invoke AC_LIBOBJ here.
1531         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
1532         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1533
1534         crypto/gc-des: Fix recent regression.
1535         * modules/crypto/gc-des (Files): Remove m4/des.m4.
1536         (configure.ac): Invoke AC_LIBOBJ here.
1537         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
1538         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1539
1540         crypto/gc-arcfour: Fix recent regression.
1541         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
1542         (configure.ac): Invoke AC_LIBOBJ here.
1543         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
1544         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1545
1546 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
1547
1548         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
1549         After the 2011-05-21 change, this macro requires
1550         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
1551         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
1552
1553 2011-06-16  Bruno Haible  <bruno@clisp.org>
1554
1555         fprintftime: Move AC_LIBOBJ invocations to module description.
1556         * m4/fprintftime.m4: Remove file.
1557         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
1558         (configure.ac): Remove gl_FPRINTFTIME call.
1559         (Makefile.am): Augment lib_SOURCES.
1560         Reported by Jim Meyering.
1561
1562 2011-06-16  Bruno Haible  <bruno@clisp.org>
1563
1564         tmpfile-safer: Finish 2011-05-23 commit.
1565         * m4/stdio-safer.m4: Really remove file.
1566         Reported by Jim Meyering.
1567
1568 2011-06-16  Bruno Haible  <bruno@clisp.org>
1569
1570         syntax-check: Fix typo.
1571         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
1572         printf-posix.m4.
1573         Reported by Jim Meyering.
1574
1575 2011-06-13  Jim Meyering  <meyering@redhat.com>
1576
1577         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
1578         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
1579
1580 2011-05-23  Bruno Haible  <bruno@clisp.org>
1581
1582         yesno: Move AC_LIBOBJ invocations to module description.
1583         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
1584         * modules/yesno (Makefile.am): Augment lib_SOURCES.
1585
1586 2011-05-23  Bruno Haible  <bruno@clisp.org>
1587
1588         xstrtol: Move AC_LIBOBJ invocations to module description.
1589         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
1590         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
1591
1592 2011-05-23  Bruno Haible  <bruno@clisp.org>
1593
1594         xstrtold: Move AC_LIBOBJ invocations to module description.
1595         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
1596         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
1597
1598 2011-05-23  Bruno Haible  <bruno@clisp.org>
1599
1600         xstrtod: Move AC_LIBOBJ invocations to module description.
1601         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
1602         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
1603
1604 2011-05-23  Bruno Haible  <bruno@clisp.org>
1605
1606         xnanosleep: Move AC_LIBOBJ invocations to module description.
1607         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
1608         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
1609
1610 2011-05-23  Bruno Haible  <bruno@clisp.org>
1611
1612         xgetcwd: Move AC_LIBOBJ invocations to module description.
1613         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
1614         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
1615
1616 2011-05-23  Bruno Haible  <bruno@clisp.org>
1617
1618         xalloc: Move AC_LIBOBJ invocations to module description.
1619         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
1620         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
1621
1622 2011-05-23  Bruno Haible  <bruno@clisp.org>
1623
1624         write-any-file: Move AC_LIBOBJ invocations to module description.
1625         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
1626         invocation.
1627         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
1628
1629 2011-05-23  Bruno Haible  <bruno@clisp.org>
1630
1631         utimens: Move AC_LIBOBJ invocations to module description.
1632         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
1633         * modules/utimens (Makefile.am): Augment lib_SOURCES.
1634
1635 2011-05-23  Bruno Haible  <bruno@clisp.org>
1636
1637         utimecmp: Move AC_LIBOBJ invocations to module description.
1638         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
1639         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
1640
1641 2011-05-23  Bruno Haible  <bruno@clisp.org>
1642
1643         userspec: Move AC_LIBOBJ invocations to module description.
1644         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
1645         * modules/userspec (Makefile.am): Augment lib_SOURCES.
1646
1647 2011-05-23  Bruno Haible  <bruno@clisp.org>
1648
1649         unlinkdir: Move AC_LIBOBJ invocations to module description.
1650         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
1651         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
1652
1653 2011-05-23  Bruno Haible  <bruno@clisp.org>
1654
1655         unistd-safer: Move AC_LIBOBJ invocations to module description.
1656         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
1657         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
1658
1659 2011-05-23  Bruno Haible  <bruno@clisp.org>
1660
1661         tempname: Move AC_LIBOBJ invocations to module description.
1662         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
1663         * modules/tempname (Makefile.am): Augment lib_SOURCES.
1664
1665 2011-05-23  Bruno Haible  <bruno@clisp.org>
1666
1667         strftime: Move AC_LIBOBJ invocations to module description.
1668         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
1669         * modules/strftime (Makefile.am): Augment lib_SOURCES.
1670
1671 2011-05-23  Bruno Haible  <bruno@clisp.org>
1672
1673         stdlib-safer: Move AC_LIBOBJ invocations to module description.
1674         * m4/stdlib-safer.m4: Remove file.
1675         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
1676         (configure.ac): Remove gl_STDLIB_SAFER call.
1677         (Makefile.am): Augment lib_SOURCES.
1678
1679 2011-05-23  Bruno Haible  <bruno@clisp.org>
1680
1681         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
1682         * m4/stdio-safer.m4: Remove file.
1683         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
1684         (configure.ac): Remove gl_TMPFILE_SAFER call.
1685         (Makefile.am): Augment lib_SOURCES.
1686
1687 2011-05-23  Bruno Haible  <bruno@clisp.org>
1688
1689         popen-safer: Move AC_LIBOBJ invocations to module description.
1690         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
1691         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
1692         (configure.ac): Remove gl_POPEN_SAFER call.
1693         (Makefile.am): Augment lib_SOURCES.
1694
1695 2011-05-23  Bruno Haible  <bruno@clisp.org>
1696
1697         freopen-safer: Move AC_LIBOBJ invocations to module description.
1698         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
1699         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
1700         (configure.ac): Remove gl_FREOPEN_SAFER call.
1701         (Makefile.am): Augment lib_SOURCES.
1702
1703 2011-05-23  Bruno Haible  <bruno@clisp.org>
1704
1705         fopen-safer: Move AC_LIBOBJ invocations to module description.
1706         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
1707         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
1708         (configure.ac): Remove gl_FOPEN_SAFER call.
1709         (Makefile.am): Augment lib_SOURCES.
1710
1711 2011-05-23  Bruno Haible  <bruno@clisp.org>
1712
1713         crypto/sha512: Move AC_LIBOBJ invocations to module description.
1714         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
1715         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
1716
1717 2011-05-23  Bruno Haible  <bruno@clisp.org>
1718
1719         crypto/sha256: Move AC_LIBOBJ invocations to module description.
1720         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
1721         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
1722
1723 2011-05-23  Bruno Haible  <bruno@clisp.org>
1724
1725         crypto/sha1: Move AC_LIBOBJ invocations to module description.
1726         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
1727         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
1728
1729 2011-05-23  Bruno Haible  <bruno@clisp.org>
1730
1731         settime: Move AC_LIBOBJ invocations to module description.
1732         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
1733         * modules/settime (Makefile.am): Augment lib_SOURCES.
1734
1735 2011-05-23  Bruno Haible  <bruno@clisp.org>
1736
1737         savedir: Move AC_LIBOBJ invocations to module description.
1738         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
1739         * modules/savedir (Makefile.am): Augment lib_SOURCES.
1740
1741 2011-05-23  Bruno Haible  <bruno@clisp.org>
1742
1743         save-cwd: Move AC_LIBOBJ invocations to module description.
1744         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
1745         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
1746
1747 2011-05-23  Bruno Haible  <bruno@clisp.org>
1748
1749         same: Move AC_LIBOBJ invocations to module description.
1750         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
1751         * modules/same (Makefile.am): Augment lib_SOURCES.
1752
1753 2011-05-23  Bruno Haible  <bruno@clisp.org>
1754
1755         safe-write: Move AC_LIBOBJ invocations to module description.
1756         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
1757         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
1758         instead of gl_SAFE_WRITE.
1759         (Makefile.am): Augment lib_SOURCES.
1760
1761 2011-05-23  Bruno Haible  <bruno@clisp.org>
1762
1763         safe-read: Move AC_LIBOBJ invocations to module description.
1764         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
1765         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
1766         of gl_SAFE_READ.
1767         (Makefile.am): Augment lib_SOURCES.
1768
1769 2011-05-23  Bruno Haible  <bruno@clisp.org>
1770
1771         safe-alloc: Move AC_LIBOBJ invocations to module description.
1772         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
1773         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
1774
1775 2011-05-23  Bruno Haible  <bruno@clisp.org>
1776
1777         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
1778         * m4/rijndael.m4: Remove file.
1779         * modules/crypto/rijndael (Files): Remove it.
1780         (configure.ac): Remove gl_RIJNDAEL call.
1781         (Makefile.am): Augment lib_SOURCES.
1782
1783 2011-05-23  Bruno Haible  <bruno@clisp.org>
1784
1785         readtokens: Move AC_LIBOBJ invocations to module description.
1786         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
1787         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
1788
1789 2011-05-23  Bruno Haible  <bruno@clisp.org>
1790
1791         read-file: Move AC_LIBOBJ invocations to module description.
1792         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
1793         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
1794         of gl_FUNC_READ_FILE.
1795         (Makefile.am): Augment lib_SOURCES.
1796
1797 2011-05-23  Bruno Haible  <bruno@clisp.org>
1798
1799         quotearg: Move AC_LIBOBJ invocations to module description.
1800         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
1801         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
1802
1803 2011-05-23  Bruno Haible  <bruno@clisp.org>
1804
1805         quote: Move AC_LIBOBJ invocations to module description.
1806         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
1807         * modules/quote (Makefile.am): Augment lib_SOURCES.
1808
1809 2011-05-23  Bruno Haible  <bruno@clisp.org>
1810
1811         posixver: Move AC_LIBOBJ invocations to module description.
1812         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
1813         * modules/posixver (Makefile.am): Augment lib_SOURCES.
1814
1815 2011-05-23  Bruno Haible  <bruno@clisp.org>
1816
1817         posixtm: Move AC_LIBOBJ invocations to module description.
1818         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
1819         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
1820
1821 2011-05-23  Bruno Haible  <bruno@clisp.org>
1822
1823         physmem: Move AC_LIBOBJ invocations to module description.
1824         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
1825         * modules/physmem (Makefile.am): Augment lib_SOURCES.
1826
1827 2011-05-23  Bruno Haible  <bruno@clisp.org>
1828
1829         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
1830         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
1831         invocation.
1832         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
1833
1834 2011-05-23  Bruno Haible  <bruno@clisp.org>
1835
1836         mpsort: Move AC_LIBOBJ invocations to module description.
1837         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
1838         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
1839
1840 2011-05-23  Bruno Haible  <bruno@clisp.org>
1841
1842         modechange: Move AC_LIBOBJ invocations to module description.
1843         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
1844         * modules/modechange (Makefile.am): Augment lib_SOURCES.
1845
1846 2011-05-23  Bruno Haible  <bruno@clisp.org>
1847
1848         mkdir-p: Move AC_LIBOBJ invocations to module description.
1849         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
1850         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
1851
1852 2011-05-23  Bruno Haible  <bruno@clisp.org>
1853
1854         mkancesdirs: Move AC_LIBOBJ invocations to module description.
1855         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
1856         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
1857
1858 2011-05-23  Bruno Haible  <bruno@clisp.org>
1859
1860         mgetgroups: Move AC_LIBOBJ invocations to module description.
1861         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
1862         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
1863
1864 2011-05-23  Bruno Haible  <bruno@clisp.org>
1865
1866         memxor: Move AC_LIBOBJ invocations to module description.
1867         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
1868         * modules/memxor (Makefile.am): Augment lib_SOURCES.
1869
1870 2011-05-23  Bruno Haible  <bruno@clisp.org>
1871
1872         memcoll: Move AC_LIBOBJ invocations to module description.
1873         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
1874         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
1875
1876 2011-05-23  Bruno Haible  <bruno@clisp.org>
1877
1878         memcasecmp: Move AC_LIBOBJ invocations to module description.
1879         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
1880         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
1881
1882 2011-05-23  Bruno Haible  <bruno@clisp.org>
1883
1884         crypto/md5: Move AC_LIBOBJ invocations to module description.
1885         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
1886         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
1887
1888 2011-05-23  Bruno Haible  <bruno@clisp.org>
1889
1890         crypto/md4: Move AC_LIBOBJ invocations to module description.
1891         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
1892         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
1893
1894 2011-05-23  Bruno Haible  <bruno@clisp.org>
1895
1896         crypto/md2: Move AC_LIBOBJ invocations to module description.
1897         * m4/md2.m4: Remove file.
1898         * modules/crypto/md2 (Files): Remove it.
1899         (configure.ac): Remove gl_MD2 call.
1900         (Makefile.am): Augment lib_SOURCES.
1901
1902 2011-05-23  Bruno Haible  <bruno@clisp.org>
1903
1904         long-options: Move AC_LIBOBJ invocations to module description.
1905         * m4/long-options.m4: Remove file.
1906         * modules/long-options (Files): Remove it.
1907         (configure.ac): Remove gl_LONG_OPTIONS call.
1908         (Makefile.am): Augment lib_SOURCES.
1909
1910 2011-05-23  Bruno Haible  <bruno@clisp.org>
1911
1912         i-ring: Move AC_LIBOBJ invocations to module description.
1913         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
1914         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
1915
1916 2011-05-23  Bruno Haible  <bruno@clisp.org>
1917
1918         idcache: Move AC_LIBOBJ invocations to module description.
1919         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
1920         * modules/idcache (Makefile.am): Augment lib_SOURCES.
1921
1922 2011-05-23  Bruno Haible  <bruno@clisp.org>
1923
1924         human: Move AC_LIBOBJ invocations to module description.
1925         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
1926         * modules/human (Makefile.am): Augment lib_SOURCES.
1927
1928 2011-05-23  Bruno Haible  <bruno@clisp.org>
1929
1930         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
1931         * m4/hmac-sha1.m4: Remove file.
1932         * modules/crypto/hmac-sha1 (Files): Remove it.
1933         (configure.ac): Remove gl_HMAC_SHA1 call.
1934         (Makefile.am): Augment lib_SOURCES.
1935
1936 2011-05-23  Bruno Haible  <bruno@clisp.org>
1937
1938         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
1939         * m4/hmac-md5.m4: Remove file.
1940         * modules/crypto/hmac-md5 (Files): Remove it.
1941         (configure.ac): Remove gl_HMAC_MD5 call.
1942         (Makefile.am): Augment lib_SOURCES.
1943
1944 2011-05-23  Bruno Haible  <bruno@clisp.org>
1945
1946         hash: Move AC_LIBOBJ invocations to module description.
1947         * m4/hash.m4: Remove file.
1948         * modules/hash (Files): Remove it.
1949         (configure.ac): Remove gl_HASH call.
1950         (Makefile.am): Augment lib_SOURCES.
1951
1952 2011-05-23  Bruno Haible  <bruno@clisp.org>
1953
1954         hard-locale: Move AC_LIBOBJ invocations to module description.
1955         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
1956         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
1957
1958 2011-05-23  Bruno Haible  <bruno@clisp.org>
1959
1960         getugroups: Move AC_LIBOBJ invocations to module description.
1961         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
1962         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
1963
1964 2011-05-23  Bruno Haible  <bruno@clisp.org>
1965
1966         gettime: Move AC_LIBOBJ invocations to module description.
1967         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
1968         * modules/gettime (Makefile.am): Augment lib_SOURCES.
1969
1970 2011-05-23  Bruno Haible  <bruno@clisp.org>
1971
1972         getndelim2: Move AC_LIBOBJ invocations to module description.
1973         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
1974         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
1975
1976 2011-05-23  Bruno Haible  <bruno@clisp.org>
1977
1978         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
1979         * m4/gc-pbkdf2-sha1.m4: Remove file.
1980         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
1981         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
1982         (Makefile.am): Augment lib_SOURCES.
1983
1984 2011-05-23  Bruno Haible  <bruno@clisp.org>
1985
1986         fts: Move AC_LIBOBJ invocations to module description.
1987         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
1988         * modules/fts (configure.ac): ... to here.
1989
1990 2011-05-23  Bruno Haible  <bruno@clisp.org>
1991
1992         file-type: Move AC_LIBOBJ invocations to module description.
1993         * m4/file-type.m4: Remove file.
1994         * modules/file-type (Files): Remove it.
1995         (configure.ac): Remove gl_FILE_TYPE call.
1996         (Makefile.am): Augment lib_SOURCES.
1997
1998 2011-05-23  Bruno Haible  <bruno@clisp.org>
1999
2000         filenamecat*: Respect rules for use of AC_LIBOBJ.
2001         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
2002         Remove AC_LIBOBJ invocation.
2003         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
2004         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
2005
2006 2011-05-23  Bruno Haible  <bruno@clisp.org>
2007
2008         filemode: Move AC_LIBOBJ invocations to module description.
2009         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
2010         * modules/filemode (Makefile.am): Augment lib_SOURCES.
2011
2012 2011-05-23  Bruno Haible  <bruno@clisp.org>
2013
2014         openat-safer: Move AC_LIBOBJ invocations to module description.
2015         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
2016         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
2017
2018 2011-05-23  Bruno Haible  <bruno@clisp.org>
2019
2020         fcntl-safer: Move AC_LIBOBJ invocations to module description.
2021         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
2022         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
2023
2024 2011-05-23  Bruno Haible  <bruno@clisp.org>
2025
2026         exclude: Move AC_LIBOBJ invocations to module description.
2027         * m4/exclude.m4: Remove file.
2028         * modules/exclude (Files): Remove it.
2029         (configure.ac): Remove gl_EXCLUDE call.
2030         (Makefile.am): Augment lib_SOURCES.
2031
2032 2011-05-23  Bruno Haible  <bruno@clisp.org>
2033
2034         dirname*: Respect rules for use of AC_LIBOBJ.
2035         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
2036         invocations.
2037         * modules/dirname (Makefile.am): Augment lib_SOURCES.
2038         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
2039
2040 2011-05-23  Bruno Haible  <bruno@clisp.org>
2041
2042         dirent-safer: Move AC_LIBOBJ invocations to module description.
2043         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
2044         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
2045
2046 2011-05-23  Bruno Haible  <bruno@clisp.org>
2047
2048         crypto/des: Move AC_LIBOBJ invocations to module description.
2049         * m4/des.m4: Remove file.
2050         * modules/crypto/des (Files): Remove it.
2051         (configure.ac): Remove gl_DES call.
2052         (Makefile.am): Augment lib_SOURCES.
2053
2054 2011-05-23  Bruno Haible  <bruno@clisp.org>
2055
2056         cycle-check: Move AC_LIBOBJ invocations to module description.
2057         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
2058         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
2059
2060 2011-05-23  Bruno Haible  <bruno@clisp.org>
2061
2062         c-strtold: Move AC_LIBOBJ invocations to module description.
2063         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
2064         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
2065
2066 2011-05-23  Bruno Haible  <bruno@clisp.org>
2067
2068         c-strtod: Move AC_LIBOBJ invocations to module description.
2069         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
2070         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
2071
2072 2011-05-23  Bruno Haible  <bruno@clisp.org>
2073
2074         crc: Move AC_LIBOBJ invocations to module description.
2075         * m4/crc.m4: Remove file.
2076         * modules/crc (Files): Remove it.
2077         (configure.ac): Remove gl_CRC call.
2078         (Makefile.am): Augment lib_SOURCES.
2079
2080 2011-05-23  Bruno Haible  <bruno@clisp.org>
2081
2082         close-stream: Move AC_LIBOBJ invocations to module description.
2083         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
2084         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
2085
2086 2011-05-23  Bruno Haible  <bruno@clisp.org>
2087
2088         closeout: Move AC_LIBOBJ invocations to module description.
2089         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
2090         * modules/closeout (Makefile.am): Augment lib_SOURCES.
2091
2092 2011-05-23  Bruno Haible  <bruno@clisp.org>
2093
2094         closein: Move AC_LIBOBJ invocations to module description.
2095         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
2096         * modules/closein (Makefile.am): Augment lib_SOURCES.
2097
2098 2011-05-23  Bruno Haible  <bruno@clisp.org>
2099
2100         cloexec: Move AC_LIBOBJ invocations to module description.
2101         * m4/cloexec.m4: Remove file.
2102         * modules/cloexec (Files): Remove it.
2103         (configure.ac): Remove gl_CLOEXEC call.
2104         (Makefile.am): Augment lib_SOURCES.
2105
2106 2011-05-23  Bruno Haible  <bruno@clisp.org>
2107
2108         check-version: Move AC_LIBOBJ invocations to module description.
2109         * m4/check-version.m4: Remove file.
2110         * modules/check-version (Files): Remove it.
2111         (configure.ac): Remove gl_CHECK_VERSION call.
2112         (Makefile.am): Augment lib_SOURCES.
2113
2114 2011-05-23  Bruno Haible  <bruno@clisp.org>
2115
2116         chdir-safer: Move AC_LIBOBJ invocations to module description.
2117         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
2118         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
2119
2120 2011-05-23  Bruno Haible  <bruno@clisp.org>
2121
2122         canonicalize: Move AC_LIBOBJ invocations to module description.
2123         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
2124         AC_LIBOBJ invocation.
2125         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
2126
2127 2011-05-23  Bruno Haible  <bruno@clisp.org>
2128
2129         canon-host: Move AC_LIBOBJ invocations to module description.
2130         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
2131         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
2132         instead of gl_CANON_HOST.
2133         (Makefile.am): Augment lib_SOURCES.
2134
2135 2011-05-23  Bruno Haible  <bruno@clisp.org>
2136
2137         backupfile: Move AC_LIBOBJ invocations to module description.
2138         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
2139         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
2140
2141 2011-05-23  Bruno Haible  <bruno@clisp.org>
2142
2143         argmatch: Move AC_LIBOBJ invocations to module description.
2144         * m4/argmatch.m4: Remove file.
2145         * modules/argmatch (Files): Remove it.
2146         (configure.ac): Remove gl_ARGMATCH call.
2147         (Makefile.am): Augment lib_SOURCES.
2148
2149 2011-05-23  Bruno Haible  <bruno@clisp.org>
2150
2151         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
2152         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
2153         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
2154
2155 2011-05-23  Bruno Haible  <bruno@clisp.org>
2156
2157         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
2158         * m4/arcfour.m4: Remove file.
2159         * modules/crypto/arcfour (Files): Remove it.
2160         (configure.ac): Remove gl_ARCFOUR call.
2161         (Makefile.am): Augment lib_SOURCES.
2162
2163 2011-05-22  Bruno Haible  <bruno@clisp.org>
2164
2165         write: Move AC_LIBOBJ invocations to module description.
2166         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
2167         * modules/write (configure.ac): ... to here.
2168
2169 2011-05-22  Bruno Haible  <bruno@clisp.org>
2170
2171         wmemset: Move AC_LIBOBJ invocations to module description.
2172         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
2173         here...
2174         * modules/wmemset (configure.ac): ... to here.
2175
2176 2011-05-22  Bruno Haible  <bruno@clisp.org>
2177
2178         wmemmove: Move AC_LIBOBJ invocations to module description.
2179         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
2180         here...
2181         * modules/wmemmove (configure.ac): ... to here.
2182
2183 2011-05-22  Bruno Haible  <bruno@clisp.org>
2184
2185         wmemcpy: Move AC_LIBOBJ invocations to module description.
2186         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
2187         here...
2188         * modules/wmemcpy (configure.ac): ... to here.
2189
2190 2011-05-22  Bruno Haible  <bruno@clisp.org>
2191
2192         wmemcmp: Move AC_LIBOBJ invocations to module description.
2193         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
2194         here...
2195         * modules/wmemcmp (configure.ac): ... to here.
2196
2197 2011-05-22  Bruno Haible  <bruno@clisp.org>
2198
2199         wmemchr: Move AC_LIBOBJ invocations to module description.
2200         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
2201         here...
2202         * modules/wmemchr (configure.ac): ... to here.
2203
2204 2011-05-22  Bruno Haible  <bruno@clisp.org>
2205
2206         wcswidth: Move AC_LIBOBJ invocations to module description.
2207         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
2208         here...
2209         * modules/wcswidth (configure.ac): ... to here.
2210
2211 2011-05-22  Bruno Haible  <bruno@clisp.org>
2212
2213         wcwidth: Respect rules for use of AC_LIBOBJ.
2214         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
2215         invocation from here...
2216         * modules/wcwidth (configure.ac): ... to here.
2217         (Depends-on): Update conditions.
2218
2219 2011-05-22  Bruno Haible  <bruno@clisp.org>
2220
2221         wctype: Move AC_LIBOBJ invocations to module description.
2222         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
2223         invocation from here...
2224         * modules/wctype (configure.ac): ... to here.
2225         (Depends-on): Update conditions.
2226
2227 2011-05-22  Bruno Haible  <bruno@clisp.org>
2228
2229         wctrans: Move AC_LIBOBJ invocations to module description.
2230         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
2231         invocation from here...
2232         * modules/wctrans (configure.ac): ... to here.
2233
2234 2011-05-22  Bruno Haible  <bruno@clisp.org>
2235
2236         wctomb: Move AC_LIBOBJ invocations to module description.
2237         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
2238         invocations from here...
2239         * modules/wctomb (configure.ac): ... to here.
2240
2241 2011-05-22  Bruno Haible  <bruno@clisp.org>
2242
2243         wctob: Move AC_LIBOBJ invocations to module description.
2244         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
2245         gl_PREREQ_WCTOB invocations from here...
2246         * modules/wctob (configure.ac): ... to here.
2247         (Depends-on): Update conditions.
2248
2249 2011-05-22  Bruno Haible  <bruno@clisp.org>
2250
2251         wcsxfrm: Move AC_LIBOBJ invocations to module description.
2252         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
2253         here...
2254         * modules/wcsxfrm (configure.ac): ... to here.
2255
2256 2011-05-22  Bruno Haible  <bruno@clisp.org>
2257
2258         wcstok: Move AC_LIBOBJ invocations to module description.
2259         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
2260         * modules/wcstok (configure.ac): ... to here.
2261
2262 2011-05-22  Bruno Haible  <bruno@clisp.org>
2263
2264         wcsstr: Move AC_LIBOBJ invocations to module description.
2265         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
2266         * modules/wcsstr (configure.ac): ... to here.
2267
2268 2011-05-22  Bruno Haible  <bruno@clisp.org>
2269
2270         wcsspn: Move AC_LIBOBJ invocations to module description.
2271         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
2272         * modules/wcsspn (configure.ac): ... to here.
2273
2274 2011-05-22  Bruno Haible  <bruno@clisp.org>
2275
2276         wcsrtombs: Move AC_LIBOBJ invocations to module description.
2277         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
2278         gl_PREREQ_WCSRTOMBS invocations from here...
2279         * modules/wcsrtombs (configure.ac): ... to here.
2280
2281 2011-05-22  Bruno Haible  <bruno@clisp.org>
2282
2283         wcsrchr: Move AC_LIBOBJ invocations to module description.
2284         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
2285         here...
2286         * modules/wcsrchr (configure.ac): ... to here.
2287
2288 2011-05-22  Bruno Haible  <bruno@clisp.org>
2289
2290         wcspbrk: Move AC_LIBOBJ invocations to module description.
2291         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
2292         here...
2293         * modules/wcspbrk (configure.ac): ... to here.
2294
2295 2011-05-22  Bruno Haible  <bruno@clisp.org>
2296
2297         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
2298         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
2299         gl_PREREQ_WCSNRTOMBS invocations from here...
2300         * modules/wcsnrtombs (configure.ac): ... to here.
2301
2302 2011-05-22  Bruno Haible  <bruno@clisp.org>
2303
2304         wcsnlen: Move AC_LIBOBJ invocations to module description.
2305         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
2306         here...
2307         * modules/wcsnlen (configure.ac): ... to here.
2308
2309 2011-05-22  Bruno Haible  <bruno@clisp.org>
2310
2311         wcsncpy: Move AC_LIBOBJ invocations to module description.
2312         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
2313         here...
2314         * modules/wcsncpy (configure.ac): ... to here.
2315
2316 2011-05-22  Bruno Haible  <bruno@clisp.org>
2317
2318         wcsncmp: Move AC_LIBOBJ invocations to module description.
2319         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
2320         here...
2321         * modules/wcsncmp (configure.ac): ... to here.
2322
2323 2011-05-22  Bruno Haible  <bruno@clisp.org>
2324
2325         wcsncat: Move AC_LIBOBJ invocations to module description.
2326         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
2327         here...
2328         * modules/wcsncat (configure.ac): ... to here.
2329
2330 2011-05-22  Bruno Haible  <bruno@clisp.org>
2331
2332         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
2333         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
2334         from here...
2335         * modules/wcsncasecmp (configure.ac): ... to here.
2336
2337 2011-05-22  Bruno Haible  <bruno@clisp.org>
2338
2339         wcslen: Move AC_LIBOBJ invocations to module description.
2340         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
2341         * modules/wcslen (configure.ac): ... to here.
2342
2343 2011-05-22  Bruno Haible  <bruno@clisp.org>
2344
2345         wcsdup: Move AC_LIBOBJ invocations to module description.
2346         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
2347         * modules/wcsdup (configure.ac): ... to here.
2348
2349 2011-05-22  Bruno Haible  <bruno@clisp.org>
2350
2351         wcscspn: Move AC_LIBOBJ invocations to module description.
2352         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
2353         here...
2354         * modules/wcscspn (configure.ac): ... to here.
2355
2356 2011-05-22  Bruno Haible  <bruno@clisp.org>
2357
2358         wcscpy: Move AC_LIBOBJ invocations to module description.
2359         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
2360         * modules/wcscpy (configure.ac): ... to here.
2361
2362 2011-05-22  Bruno Haible  <bruno@clisp.org>
2363
2364         wcscoll: Move AC_LIBOBJ invocations to module description.
2365         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
2366         here...
2367         * modules/wcscoll (configure.ac): ... to here.
2368
2369 2011-05-22  Bruno Haible  <bruno@clisp.org>
2370
2371         wcscmp: Move AC_LIBOBJ invocations to module description.
2372         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
2373         * modules/wcscmp (configure.ac): ... to here.
2374
2375 2011-05-22  Bruno Haible  <bruno@clisp.org>
2376
2377         wcschr: Move AC_LIBOBJ invocations to module description.
2378         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
2379         * modules/wcschr (configure.ac): ... to here.
2380
2381 2011-05-22  Bruno Haible  <bruno@clisp.org>
2382
2383         wcscat: Move AC_LIBOBJ invocations to module description.
2384         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
2385         * modules/wcscat (configure.ac): ... to here.
2386
2387 2011-05-22  Bruno Haible  <bruno@clisp.org>
2388
2389         wcscasecmp: Move AC_LIBOBJ invocations to module description.
2390         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
2391         here...
2392         * modules/wcscasecmp (configure.ac): ... to here.
2393
2394 2011-05-22  Bruno Haible  <bruno@clisp.org>
2395
2396         wcrtomb: Move AC_LIBOBJ invocations to module description.
2397         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
2398         invocations from here...
2399         * modules/wcrtomb (configure.ac): ... to here.
2400
2401 2011-05-22  Bruno Haible  <bruno@clisp.org>
2402
2403         wcpncpy: Move AC_LIBOBJ invocations to module description.
2404         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
2405         here...
2406         * modules/wcpncpy (configure.ac): ... to here.
2407
2408 2011-05-22  Bruno Haible  <bruno@clisp.org>
2409
2410         wcpcpy: Move AC_LIBOBJ invocations to module description.
2411         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
2412         * modules/wcpcpy (configure.ac): ... to here.
2413
2414 2011-05-22  Bruno Haible  <bruno@clisp.org>
2415
2416         waitpid: Move AC_LIBOBJ invocations to module description.
2417         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
2418         invocation from here...
2419         * modules/waitpid (configure.ac): ... to here.
2420
2421 2011-05-22  Bruno Haible  <bruno@clisp.org>
2422
2423         utimensat: Move AC_LIBOBJ invocations to module description.
2424         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
2425         here...
2426         * modules/utimensat (configure.ac): ... to here.
2427
2428 2011-05-22  Bruno Haible  <bruno@clisp.org>
2429
2430         usleep: Move AC_LIBOBJ invocations to module description.
2431         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
2432         here...
2433         * modules/usleep (configure.ac): ... to here.
2434
2435 2011-05-22  Bruno Haible  <bruno@clisp.org>
2436
2437         unlockpt: Move AC_LIBOBJ invocations to module description.
2438         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
2439         gl_PREREQ_UNLOCKPT invocations from here...
2440         * modules/unlockpt (configure.ac): ... to here.
2441
2442 2011-05-22  Bruno Haible  <bruno@clisp.org>
2443
2444         unlink: Respect rules for use of AC_LIBOBJ.
2445         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
2446         * modules/unlink (configure.ac): ... to here.
2447
2448 2011-05-22  Bruno Haible  <bruno@clisp.org>
2449
2450         uname: Move AC_LIBOBJ invocations to module description.
2451         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
2452         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
2453         here...
2454         * modules/uname (configure.ac): ... to here.
2455
2456 2011-05-22  Bruno Haible  <bruno@clisp.org>
2457
2458         ttyname_r: Move AC_LIBOBJ invocations to module description.
2459         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
2460         gl_PREREQ_TTYNAME_R invocations from here...
2461         * modules/ttyname_r (configure.ac): ... to here.
2462
2463 2011-05-22  Bruno Haible  <bruno@clisp.org>
2464
2465         tsearch: Move AC_LIBOBJ invocations to module description.
2466         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
2467         invocations from here...
2468         * modules/tsearch (configure.ac): ... to here.
2469
2470 2011-05-22  Bruno Haible  <bruno@clisp.org>
2471
2472         towctrans: Move AC_LIBOBJ invocations to module description.
2473         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
2474         AC_LIBOBJ invocation from here...
2475         * modules/towctrans (configure.ac): ... to here.
2476
2477 2011-05-22  Bruno Haible  <bruno@clisp.org>
2478
2479         tmpfile: Move AC_LIBOBJ invocations to module description.
2480         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
2481         invocations from here...
2482         * modules/tmpfile (configure.ac): ... to here.
2483
2484 2011-05-22  Bruno Haible  <bruno@clisp.org>
2485
2486         times: Move AC_LIBOBJ invocations to module description.
2487         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
2488         * modules/times (configure.ac): ... to here.
2489
2490 2011-05-22  Bruno Haible  <bruno@clisp.org>
2491
2492         time_r: Move AC_LIBOBJ invocations to module description.
2493         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
2494         invocations from here...
2495         * modules/time_r (configure.ac): ... to here.
2496
2497 2011-05-22  Bruno Haible  <bruno@clisp.org>
2498
2499         timegm: Move AC_LIBOBJ invocations to module description.
2500         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
2501         invocations from here...
2502         * modules/timegm (configure.ac): ... to here.
2503
2504 2011-05-22  Bruno Haible  <bruno@clisp.org>
2505
2506         tcgetsid: Move AC_LIBOBJ invocations to module description.
2507         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
2508         and gl_PREREQ_TCGETSID invocations from here...
2509         * modules/tcgetsid (configure.ac): ... to here.
2510         (Depends-on): Update conditions.
2511
2512 2011-05-22  Bruno Haible  <bruno@clisp.org>
2513
2514         symlinkat: Move AC_LIBOBJ invocations to module description.
2515         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
2516         here...
2517         * modules/symlinkat (configure.ac): ... to here.
2518
2519 2011-05-22  Bruno Haible  <bruno@clisp.org>
2520
2521         symlink: Move AC_LIBOBJ invocations to module description.
2522         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
2523         here...
2524         * modules/symlink (configure.ac): ... to here.
2525
2526 2011-05-22  Bruno Haible  <bruno@clisp.org>
2527
2528         strverscmp: Move AC_LIBOBJ invocations to module description.
2529         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
2530         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
2531         from here...
2532         * modules/strverscmp (configure.ac): ... to here.
2533
2534 2011-05-22  Bruno Haible  <bruno@clisp.org>
2535
2536         strtok_r: Move AC_LIBOBJ invocations to module description.
2537         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
2538         and gl_PREREQ_STRTOK_R invocations from here...
2539         * modules/strtok_r (configure.ac): ... to here.
2540         (Depends-on): Update conditions.
2541
2542 2011-05-22  Bruno Haible  <bruno@clisp.org>
2543
2544         strtoumax: Move AC_LIBOBJ invocations to module description.
2545         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
2546         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
2547         from here...
2548         * modules/strtoumax (configure.ac): ... to here.
2549
2550 2011-05-22  Bruno Haible  <bruno@clisp.org>
2551
2552         strtoimax: Move AC_LIBOBJ invocations to module description.
2553         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
2554         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
2555         from here...
2556         * modules/strtoimax (configure.ac): ... to here.
2557
2558 2011-05-22  Bruno Haible  <bruno@clisp.org>
2559
2560         strtoull: Move AC_LIBOBJ invocations to module description.
2561         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
2562         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
2563         from here...
2564         * modules/strtoull (configure.ac): ... to here.
2565
2566 2011-05-22  Bruno Haible  <bruno@clisp.org>
2567
2568         strtoll: Move AC_LIBOBJ invocations to module description.
2569         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
2570         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
2571         here...
2572         * modules/strtoll (configure.ac): ... to here.
2573
2574 2011-05-22  Bruno Haible  <bruno@clisp.org>
2575
2576         strtoul: Move AC_LIBOBJ invocations to module description.
2577         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
2578         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
2579         * modules/strtoul (configure.ac): ... to here.
2580
2581 2011-05-22  Bruno Haible  <bruno@clisp.org>
2582
2583         strtol: Move AC_LIBOBJ invocations to module description.
2584         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
2585         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
2586         * modules/strtol (configure.ac): ... to here.
2587
2588 2011-05-22  Bruno Haible  <bruno@clisp.org>
2589
2590         strtod: Move AC_LIBOBJ invocations to module description.
2591         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
2592         invocations from here...
2593         * modules/strtod (configure.ac): ... to here.
2594
2595 2011-05-22  Bruno Haible  <bruno@clisp.org>
2596
2597         strstr*: Move AC_LIBOBJ invocations to module description.
2598         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
2599         invocations from here...
2600         * modules/strstr-simple (configure.ac): ... to here.
2601         * modules/strstr (configure.ac): ... and here.
2602
2603 2011-05-22  Bruno Haible  <bruno@clisp.org>
2604
2605         strsignal: Move AC_LIBOBJ invocations to module description.
2606         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
2607         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
2608         * modules/strsignal (configure.ac): ... to here.
2609         (Depends-on): Update conditions.
2610
2611 2011-05-22  Bruno Haible  <bruno@clisp.org>
2612
2613         strsep: Move AC_LIBOBJ invocations to module description.
2614         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
2615         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
2616         here...
2617         * modules/strsep (configure.ac): ... to here.
2618
2619 2011-05-22  Bruno Haible  <bruno@clisp.org>
2620
2621         strptime: Move AC_LIBOBJ invocations to module description.
2622         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
2623         gl_PREREQ_STRPTIME invocations from here...
2624         * modules/strptime (configure.ac): ... to here.
2625
2626 2011-05-22  Bruno Haible  <bruno@clisp.org>
2627
2628         strpbrk: Move AC_LIBOBJ invocations to module description.
2629         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
2630         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
2631         here...
2632         * modules/strpbrk (configure.ac): ... to here.
2633
2634 2011-05-22  Bruno Haible  <bruno@clisp.org>
2635
2636         strnlen: Move AC_LIBOBJ invocations to module description.
2637         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
2638         invocations from here...
2639         * modules/strnlen (configure.ac): ... to here.
2640
2641 2011-05-22  Bruno Haible  <bruno@clisp.org>
2642
2643         strndup: Move AC_LIBOBJ invocations to module description.
2644         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
2645         invocations from here...
2646         * modules/strndup (configure.ac): ... to here.
2647         (Depends-on): Update conditions.
2648
2649 2011-05-22  Bruno Haible  <bruno@clisp.org>
2650
2651         strncat: Move AC_LIBOBJ invocations to module description.
2652         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
2653         invocations from here...
2654         * modules/strncat (configure.ac): ... to here.
2655
2656 2011-05-22  Bruno Haible  <bruno@clisp.org>
2657
2658         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
2659         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
2660         invocations from here...
2661         * modules/strdup (configure.ac): ... to here.
2662         * modules/strdup-posix (configure.ac): ... and here.
2663
2664 2011-05-22  Bruno Haible  <bruno@clisp.org>
2665
2666         strcspn: Move AC_LIBOBJ invocations to module description.
2667         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
2668         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
2669         here...
2670         * modules/strcspn (configure.ac): ... to here.
2671
2672 2011-05-22  Bruno Haible  <bruno@clisp.org>
2673
2674         strchrnul: Move AC_LIBOBJ invocations to module description.
2675         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
2676         gl_PREREQ_STRCHRNUL invocations from here...
2677         * modules/strchrnul (configure.ac): ... to here.
2678
2679 2011-05-22  Bruno Haible  <bruno@clisp.org>
2680
2681         strcasestr*: Move AC_LIBOBJ invocations to module description.
2682         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
2683         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
2684         * modules/strcasestr-simple (configure.ac): ... to here.
2685         * modules/strcasestr (configure.ac): ... and here.
2686
2687 2011-05-22  Bruno Haible  <bruno@clisp.org>
2688
2689         strcase: Move AC_LIBOBJ invocations to module description.
2690         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
2691         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
2692         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
2693         gl_PREREQ_STRNCASECMP invocations from here...
2694         * modules/strcase (configure.ac): ... to here.
2695
2696 2011-05-22  Bruno Haible  <bruno@clisp.org>
2697
2698         stpncpy: Move AC_LIBOBJ invocations to module description.
2699         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
2700         here...
2701         * modules/stpncpy (configure.ac): ... to here.
2702
2703 2011-05-22  Bruno Haible  <bruno@clisp.org>
2704
2705         stpcpy: Move AC_LIBOBJ invocations to module description.
2706         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
2707         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
2708         here...
2709         * modules/stpcpy (configure.ac): ... to here.
2710
2711 2011-05-21  Bruno Haible  <bruno@clisp.org>
2712
2713         stat: Move AC_LIBOBJ invocations to module description.
2714         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
2715         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
2716         here...
2717         * modules/stat (configure.ac): ... to here.
2718
2719 2011-05-21  Bruno Haible  <bruno@clisp.org>
2720
2721         sleep: Move AC_LIBOBJ invocations to module description.
2722         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
2723         * modules/sleep (configure.ac): ... to here.
2724
2725 2011-05-21  Bruno Haible  <bruno@clisp.org>
2726
2727         signbit: Move AC_LIBOBJ invocations to module description.
2728         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
2729         * modules/signbit (configure.ac): ... to here.
2730
2731 2011-05-21  Bruno Haible  <bruno@clisp.org>
2732
2733         sigprocmask: Move AC_LIBOBJ invocations to module description.
2734         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
2735         gl_PREREQ_SIGPROMASK invocations from here...
2736         * modules/sigprocmask (configure.ac): ... to here.
2737
2738 2011-05-21  Bruno Haible  <bruno@clisp.org>
2739
2740         sigaction: Move AC_LIBOBJ invocations to module description.
2741         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
2742         gl_PREREQ_SIGACTION invocations from here...
2743         * modules/sigaction (configure.ac): ... to here.
2744
2745 2011-05-21  Bruno Haible  <bruno@clisp.org>
2746
2747         sig2str: Move AC_LIBOBJ invocations to module description.
2748         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
2749         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
2750         here...
2751         * modules/sig2str (configure.ac): ... to here.
2752
2753 2011-05-21  Bruno Haible  <bruno@clisp.org>
2754
2755         setlocale: Move AC_LIBOBJ invocations to module description.
2756         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
2757         gl_PREREQ_SETLOCALE invocations from here...
2758         * modules/setlocale (configure.ac): ... to here.
2759
2760 2011-05-21  Bruno Haible  <bruno@clisp.org>
2761
2762         unsetenv: Move AC_LIBOBJ invocations to module description.
2763         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
2764         and gl_PREREQ_UNSETENV invocations from here...
2765         * modules/unsetenv (configure.ac): ... to here.
2766         (Depends-on): Update.
2767
2768 2011-05-21  Bruno Haible  <bruno@clisp.org>
2769
2770         setenv: Move AC_LIBOBJ invocations to module description.
2771         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
2772         here...
2773         * modules/setenv (configure.ac): ... to here.
2774
2775 2011-05-21  Bruno Haible  <bruno@clisp.org>
2776
2777         selinux-h: Move AC_LIBOBJ invocations to module description.
2778         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
2779         AC_LIBOBJ invocation from here...
2780         * modules/selinux-h (configure.ac): ... to here.
2781
2782 2011-05-21  Bruno Haible  <bruno@clisp.org>
2783
2784         select: Respect rules for use of AC_LIBOBJ.
2785         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
2786         here...
2787         * modules/select (configure.ac): ... to here.
2788
2789 2011-05-21  Bruno Haible  <bruno@clisp.org>
2790
2791         scandir: Move AC_LIBOBJ invocations to module description.
2792         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
2793         invocations from here...
2794         * modules/scandir (configure.ac): ... to here.
2795
2796 2011-05-21  Bruno Haible  <bruno@clisp.org>
2797
2798         rpmatch: Move AC_LIBOBJ invocations to module description.
2799         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
2800         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
2801         here...
2802         * modules/rpmatch (configure.ac): ... to here.
2803
2804 2011-05-21  Bruno Haible  <bruno@clisp.org>
2805
2806         rmdir: Respect rules for use of AC_LIBOBJ.
2807         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
2808         * modules/rmdir (configure.ac): ... to here.
2809
2810 2011-05-21  Bruno Haible  <bruno@clisp.org>
2811
2812         renameat: Move AC_LIBOBJ invocations to module description.
2813         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
2814         here...
2815         * modules/renameat (configure.ac): ... to here.
2816
2817 2011-05-21  Bruno Haible  <bruno@clisp.org>
2818
2819         rename: Respect rules for use of AC_LIBOBJ.
2820         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
2821         here...
2822         * modules/rename (configure.ac): ... to here.
2823
2824 2011-05-21  Bruno Haible  <bruno@clisp.org>
2825
2826         remove: Move AC_LIBOBJ invocations to module description.
2827         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
2828         here...
2829         * modules/remove (configure.ac): ... to here.
2830
2831 2011-05-21  Bruno Haible  <bruno@clisp.org>
2832
2833         relocatable-lib: Move AC_LIBOBJ invocations to module description.
2834         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
2835         macro.
2836         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
2837         * modules/relocatable-lib (configure.ac): ... to here.
2838         * modules/relocatable-prog-wrapper (configure.ac): Invoke
2839         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
2840
2841 2011-05-21  Bruno Haible  <bruno@clisp.org>
2842
2843         relocatable-prog: Move AC_LIBOBJ invocations to module description.
2844         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
2845         here...
2846         * modules/relocatable-prog (configure.ac): ... to here.
2847
2848 2011-05-21  Bruno Haible  <bruno@clisp.org>
2849
2850         regex: Move AC_LIBOBJ invocations to module description.
2851         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
2852         invocations from here...
2853         * modules/regex (configure.ac): ... to here.
2854
2855 2011-05-21  Bruno Haible  <bruno@clisp.org>
2856
2857         realloc-*: Move AC_LIBOBJ invocations to module description.
2858         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
2859         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
2860         AC_LIBOBJ invocations from here...
2861         * modules/realloc-gnu (configure.ac): ... to here.
2862         * modules/realloc-posix (configure.ac): ... and here.
2863
2864 2011-05-21  Bruno Haible  <bruno@clisp.org>
2865
2866         readutmp: Move AC_LIBOBJ invocations to module description.
2867         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
2868         * modules/readutmp (configure.ac): ... to here.
2869
2870 2011-05-21  Bruno Haible  <bruno@clisp.org>
2871
2872         readlinkat: Move AC_LIBOBJ invocations to module description.
2873         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
2874         here...
2875         * modules/readlinkat (configure.ac): ... to here.
2876
2877 2011-05-21  Bruno Haible  <bruno@clisp.org>
2878
2879         readlink: Move AC_LIBOBJ invocations to module description.
2880         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
2881         gl_PREREQ_READLINK invocations from here...
2882         * modules/readlink (configure.ac): ... to here.
2883
2884 2011-05-21  Bruno Haible  <bruno@clisp.org>
2885
2886         readline: Move AC_LIBOBJ invocations to module description.
2887         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
2888         gl_PREREQ_READLINE invocations from here...
2889         * modules/readline (configure.ac): ... to here.
2890
2891 2011-05-21  Bruno Haible  <bruno@clisp.org>
2892
2893         read: Move AC_LIBOBJ invocations to module description.
2894         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
2895         * modules/read (configure.ac): ... to here.
2896
2897 2011-05-21  Bruno Haible  <bruno@clisp.org>
2898
2899         rawmemchr: Move AC_LIBOBJ invocations to module description.
2900         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
2901         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
2902         from here...
2903         * modules/rawmemchr (configure.ac): ... to here.
2904
2905 2011-05-21  Bruno Haible  <bruno@clisp.org>
2906
2907         random_r: Move AC_LIBOBJ invocations to module description.
2908         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
2909         gl_PREREQ_RANDOM_R invocations from here...
2910         * modules/random_r (configure.ac): ... to here.
2911
2912 2011-05-21  Bruno Haible  <bruno@clisp.org>
2913
2914         pwrite: Move AC_LIBOBJ invocations to module description.
2915         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
2916         * modules/pwrite (configure.ac): ... to here.
2917
2918 2011-05-21  Bruno Haible  <bruno@clisp.org>
2919
2920         putenv: Move AC_LIBOBJ invocations to module description.
2921         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
2922         * modules/putenv (configure.ac): ... to here.
2923
2924 2011-05-21  Bruno Haible  <bruno@clisp.org>
2925
2926         login_tty: Move AC_LIBOBJ invocations to module description.
2927         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
2928         * modules/login_tty (configure.ac): ... to here.
2929
2930 2011-05-21  Bruno Haible  <bruno@clisp.org>
2931
2932         openpty: Move AC_LIBOBJ invocations to module description.
2933         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
2934         * modules/openpty (configure.ac): ... to here.
2935
2936 2011-05-21  Bruno Haible  <bruno@clisp.org>
2937
2938         forkpty: Move AC_LIBOBJ invocations to module description.
2939         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
2940         * modules/forkpty (configure.ac): ... to here.
2941
2942 2011-05-21  Bruno Haible  <bruno@clisp.org>
2943
2944         ptsname: Move AC_LIBOBJ invocations to module description.
2945         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
2946         invocations from here...
2947         * modules/ptsname (configure.ac): ... to here.
2948
2949 2011-05-21  Bruno Haible  <bruno@clisp.org>
2950
2951         pread: Move AC_LIBOBJ invocations to module description.
2952         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
2953         * modules/pread (configure.ac): ... to here.
2954
2955 2011-05-21  Bruno Haible  <bruno@clisp.org>
2956
2957         posix_spawn*: Move AC_LIBOBJ invocations to module description.
2958         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
2959         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
2960         * modules/posix_spawn (configure.ac): ... to here.
2961         * modules/posix_spawnp (configure.ac): ... and here.
2962
2963 2011-05-21  Bruno Haible  <bruno@clisp.org>
2964
2965         popen: Move AC_LIBOBJ invocations to module description.
2966         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
2967         invocations from here...
2968         * modules/popen (configure.ac): ... to here.
2969
2970 2011-05-21  Bruno Haible  <bruno@clisp.org>
2971
2972         poll: Move AC_LIBOBJ invocations to module description.
2973         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
2974         invocations from here...
2975         * modules/poll (configure.ac): ... to here.
2976
2977 2011-05-21  Bruno Haible  <bruno@clisp.org>
2978
2979         pipe-posix: Move AC_LIBOBJ invocations to module description.
2980         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
2981         * modules/pipe-posix (configure.ac): ... to here.
2982
2983 2011-05-21  Bruno Haible  <bruno@clisp.org>
2984
2985         openat: Respect rules for use of AC_LIBOBJ.
2986         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
2987         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
2988         * modules/openat (configure.ac): ... to here.
2989
2990 2011-05-21  Bruno Haible  <bruno@clisp.org>
2991
2992         obstack-printf*: Move AC_LIBOBJ invocations to module description.
2993         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
2994         invocation from here...
2995         * modules/obstack-printf (configure.ac): ... to here.
2996         * modules/obstack-printf-posix (configure.ac): ... and here.
2997
2998 2011-05-21  Bruno Haible  <bruno@clisp.org>
2999
3000         nl_langinfo: Move AC_LIBOBJ invocations to module description.
3001         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
3002         from here...
3003         * modules/nl_langinfo (configure.ac): ... to here.
3004
3005 2011-05-21  Bruno Haible  <bruno@clisp.org>
3006
3007         nanosleep: Move AC_LIBOBJ invocations to module description.
3008         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
3009         gl_PREREQ_NANOSLEEP invocations from here...
3010         * modules/nanosleep (configure.ac): ... to here.
3011
3012 2011-05-21  Bruno Haible  <bruno@clisp.org>
3013
3014         mountlist: Move AC_LIBOBJ invocations to module description.
3015         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
3016         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
3017         * modules/mountlist (configure.ac): ... to here.
3018
3019 2011-05-21  Bruno Haible  <bruno@clisp.org>
3020
3021         mktime: Respect rules for use of AC_LIBOBJ.
3022         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
3023         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
3024         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
3025         (gl_FUNC_MKTIME_INTERNAL): ... and here...
3026         * modules/mktime (configure.ac): ... to here.
3027         * modules/mktime-internal (configure.ac): ... and here.
3028         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
3029
3030 2011-05-21  Bruno Haible  <bruno@clisp.org>
3031
3032         mkstemps: Move AC_LIBOBJ invocations to module description.
3033         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
3034         here...
3035         * modules/mkstemps (configure.ac): ... to here.
3036
3037 2011-05-21  Bruno Haible  <bruno@clisp.org>
3038
3039         mkstemp: Move AC_LIBOBJ invocations to module description.
3040         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
3041         gl_PREREQ_MKSTEMP invocations from here...
3042         * modules/mkstemp (configure.ac): ... to here.
3043
3044 2011-05-21  Bruno Haible  <bruno@clisp.org>
3045
3046         mkostemps: Move AC_LIBOBJ invocations to module description.
3047         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
3048         here...
3049         * modules/mkostemps (configure.ac): ... to here.
3050
3051 2011-05-21  Bruno Haible  <bruno@clisp.org>
3052
3053         mkostemp: Move AC_LIBOBJ invocations to module description.
3054         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
3055         gl_PREREQ_MKOSTEMP invocations from here...
3056         * modules/mkostemp (configure.ac): ... to here.
3057
3058 2011-05-21  Bruno Haible  <bruno@clisp.org>
3059
3060         mknod: Move AC_LIBOBJ invocations to module description.
3061         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
3062         * modules/mknod (configure.ac): ... to here.
3063
3064 2011-05-21  Bruno Haible  <bruno@clisp.org>
3065
3066         mkfifoat: Move AC_LIBOBJ invocations to module description.
3067         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
3068         here...
3069         * modules/mkfifoat (configure.ac): ... to here.
3070
3071 2011-05-21  Bruno Haible  <bruno@clisp.org>
3072
3073         mkfifo: Respect rules for use of AC_LIBOBJ.
3074         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
3075         here...
3076         * modules/mkfifo (configure.ac): ... to here.
3077
3078 2011-05-21  Bruno Haible  <bruno@clisp.org>
3079
3080         mkdtemp: Move AC_LIBOBJ invocations to module description.
3081         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
3082         invocations from here...
3083         * modules/mkdtemp (configure.ac): ... to here.
3084
3085 2011-05-21  Bruno Haible  <bruno@clisp.org>
3086
3087         mkdir: Move AC_LIBOBJ invocations to module description.
3088         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
3089         * modules/mkdir (configure.ac): ... to here.
3090
3091 2011-05-21  Bruno Haible  <bruno@clisp.org>
3092
3093         memset: Move AC_LIBOBJ invocations to module description.
3094         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
3095         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
3096         here...
3097         * modules/memset (configure.ac): ... to here.
3098
3099 2011-05-21  Bruno Haible  <bruno@clisp.org>
3100
3101         memrchr: Move AC_LIBOBJ invocations to module description.
3102         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
3103         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
3104         here...
3105         * modules/memrchr (configure.ac): ... to here.
3106
3107 2011-05-21  Bruno Haible  <bruno@clisp.org>
3108
3109         mempcpy: Move AC_LIBOBJ invocations to module description.
3110         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
3111         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
3112         here...
3113         * modules/mempcpy (configure.ac): ... to here.
3114
3115 2011-05-21  Bruno Haible  <bruno@clisp.org>
3116
3117         memmove: Move AC_LIBOBJ invocations to module description.
3118         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
3119         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
3120         here...
3121         * modules/memmove (configure.ac): ... to here.
3122
3123 2011-05-21  Bruno Haible  <bruno@clisp.org>
3124
3125         memmem*: Move AC_LIBOBJ invocations to module description.
3126         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
3127         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
3128         here...
3129         (gl_FUNC_MEMMEM): ... and here...
3130         * modules/memmem-simple (configure.ac): ... to here.
3131         * modules/memmem (configure.ac): ... and here.
3132
3133 2011-05-21  Bruno Haible  <bruno@clisp.org>
3134
3135         memcpy: Move AC_LIBOBJ invocations to module description.
3136         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
3137         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
3138         here...
3139         * modules/memcpy (configure.ac): ... to here.
3140
3141 2011-05-21  Bruno Haible  <bruno@clisp.org>
3142
3143         memcmp: Simplify autoconf macro.
3144         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
3145         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
3146         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
3147
3148 2011-05-21  Bruno Haible  <bruno@clisp.org>
3149
3150         memcmp: Move AC_LIBOBJ invocations to module description.
3151         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
3152         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
3153         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
3154         * modules/memcmp (configure.ac): ... to here.
3155         (Depends-on): Update conditions.
3156
3157 2011-05-21  Bruno Haible  <bruno@clisp.org>
3158
3159         memchr: Respect rules for use of AC_LIBOBJ.
3160         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
3161         invocations from here...
3162         * modules/memchr (configure.ac): ... to here.
3163
3164 2011-05-21  Bruno Haible  <bruno@clisp.org>
3165
3166         mbtowc: Move AC_LIBOBJ invocations to module description.
3167         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
3168         invocations from here...
3169         * modules/mbtowc (configure.ac): ... to here.
3170
3171 2011-05-21  Bruno Haible  <bruno@clisp.org>
3172
3173         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
3174         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
3175         gl_PREREQ_MBSRTOWCS invocations from here...
3176         * modules/mbsrtowcs (configure.ac): ... to here.
3177
3178 2011-05-21  Bruno Haible  <bruno@clisp.org>
3179
3180         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
3181         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
3182         gl_PREREQ_MBSNRTOWCS invocations from here...
3183         * modules/mbsnrtowcs (configure.ac): ... to here.
3184
3185 2011-05-21  Bruno Haible  <bruno@clisp.org>
3186
3187         mbsinit: Move AC_LIBOBJ invocations to module description.
3188         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
3189         invocations from here...
3190         * modules/mbsinit (configure.ac): ... to here.
3191
3192 2011-05-21  Bruno Haible  <bruno@clisp.org>
3193
3194         mbrlen: Move AC_LIBOBJ invocations to module description.
3195         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
3196         invocations from here...
3197         * modules/mbrlen (configure.ac): ... to here.
3198
3199 2011-05-21  Bruno Haible  <bruno@clisp.org>
3200
3201         mbrtowc: Respect rules for use of AC_LIBOBJ.
3202         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
3203         invocations from here...
3204         * modules/mbrtowc (configure.ac): ... to here.
3205
3206 2011-05-21  Bruno Haible  <bruno@clisp.org>
3207
3208         malloc-*: Move AC_LIBOBJ invocations to module description.
3209         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
3210         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
3211         AC_LIBOBJ invocations from here...
3212         * modules/malloc-gnu (configure.ac): ... to here.
3213         * modules/malloc-posix (configure.ac): ... and here.
3214
3215 2011-05-21  Bruno Haible  <bruno@clisp.org>
3216
3217         lstat, openat: Respect rules for use of AC_LIBOBJ.
3218         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
3219         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
3220         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
3221         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
3222         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
3223         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
3224         here.
3225         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
3226
3227 2011-05-21  Bruno Haible  <bruno@clisp.org>
3228
3229         lseek: Move AC_LIBOBJ invocations to module description.
3230         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
3231         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
3232         * modules/lseek (configure.ac): ... to here.
3233
3234 2011-05-21  Bruno Haible  <bruno@clisp.org>
3235
3236         linkat: Move AC_LIBOBJ invocations to module description.
3237         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
3238         here...
3239         * modules/linkat (configure.ac): ... to here.
3240
3241 2011-05-21  Bruno Haible  <bruno@clisp.org>
3242
3243         link: Respect rules for use of AC_LIBOBJ.
3244         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
3245         * modules/link (configure.ac): ... to here.
3246
3247 2011-05-21  Bruno Haible  <bruno@clisp.org>
3248
3249         lchown: Move AC_LIBOBJ invocations to module description.
3250         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
3251         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
3252         * modules/lchown (configure.ac): ... to here.
3253
3254 2011-05-21  Bruno Haible  <bruno@clisp.org>
3255
3256         iswctype: Move AC_LIBOBJ invocations to module description.
3257         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
3258         here...
3259         * modules/iswctype (configure.ac): ... to here.
3260
3261 2011-05-21  Bruno Haible  <bruno@clisp.org>
3262
3263         iswblank: Move AC_LIBOBJ invocations to module description.
3264         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
3265         here...
3266         * modules/iswblank (configure.ac): ... to here.
3267
3268 2011-05-21  Bruno Haible  <bruno@clisp.org>
3269
3270         atanl: Move AC_LIBOBJ invocations to module description.
3271         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
3272         * modules/atanl (configure.ac): ... to here.
3273
3274 2011-05-21  Bruno Haible  <bruno@clisp.org>
3275
3276         acosl: Move AC_LIBOBJ invocations to module description.
3277         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
3278         * modules/acosl (configure.ac): ... to here.
3279
3280 2011-05-21  Bruno Haible  <bruno@clisp.org>
3281
3282         asinl: Respect rules for use of AC_LIBOBJ.
3283         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
3284         * modules/asinl (configure.ac): ... to here.
3285
3286 2011-05-21  Bruno Haible  <bruno@clisp.org>
3287
3288         tanl: Move AC_LIBOBJ invocations to module description.
3289         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
3290         * modules/tanl (configure.ac): ... to here.
3291
3292 2011-05-21  Bruno Haible  <bruno@clisp.org>
3293
3294         cosl: Move AC_LIBOBJ invocations to module description.
3295         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
3296         * modules/cosl (configure.ac): ... to here.
3297
3298 2011-05-21  Bruno Haible  <bruno@clisp.org>
3299
3300         sinl: Move AC_LIBOBJ invocations to module description.
3301         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
3302         * modules/sinl (configure.ac): ... to here.
3303
3304 2011-05-21  Bruno Haible  <bruno@clisp.org>
3305
3306         logl: Move AC_LIBOBJ invocations to module description.
3307         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
3308         * modules/logl (configure.ac): ... to here.
3309
3310 2011-05-21  Bruno Haible  <bruno@clisp.org>
3311
3312         expl: Move AC_LIBOBJ invocations to module description.
3313         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
3314         * modules/expl (configure.ac): ... to here.
3315
3316 2011-05-21  Bruno Haible  <bruno@clisp.org>
3317
3318         roundl: Move AC_LIBOBJ invocations to module description.
3319         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
3320         * modules/roundl (configure.ac): ... to here.
3321
3322 2011-05-21  Bruno Haible  <bruno@clisp.org>
3323
3324         round: Move AC_LIBOBJ invocations to module description.
3325         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
3326         * modules/round (configure.ac): ... to here.
3327
3328 2011-05-21  Bruno Haible  <bruno@clisp.org>
3329
3330         roundf: Move AC_LIBOBJ invocations to module description.
3331         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
3332         * modules/roundf (configure.ac): ... to here.
3333
3334 2011-05-21  Bruno Haible  <bruno@clisp.org>
3335
3336         truncl: Move AC_LIBOBJ invocations to module description.
3337         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
3338         * modules/truncl (configure.ac): ... to here.
3339
3340 2011-05-21  Bruno Haible  <bruno@clisp.org>
3341
3342         trunc: Move AC_LIBOBJ invocations to module description.
3343         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
3344         * modules/trunc (configure.ac): ... to here.
3345
3346 2011-05-21  Bruno Haible  <bruno@clisp.org>
3347
3348         truncf: Move AC_LIBOBJ invocations to module description.
3349         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
3350         * modules/truncf (configure.ac): ... to here.
3351
3352 2011-05-21  Bruno Haible  <bruno@clisp.org>
3353
3354         ceill: Move AC_LIBOBJ invocations to module description.
3355         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
3356         * modules/ceill (configure.ac): ... to here.
3357
3358 2011-05-21  Bruno Haible  <bruno@clisp.org>
3359
3360         ceil: Move AC_LIBOBJ invocations to module description.
3361         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
3362         * modules/ceil (configure.ac): ... to here.
3363
3364 2011-05-21  Bruno Haible  <bruno@clisp.org>
3365
3366         ceilf: Move AC_LIBOBJ invocations to module description.
3367         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
3368         * modules/ceilf (configure.ac): ... to here.
3369
3370 2011-05-21  Bruno Haible  <bruno@clisp.org>
3371
3372         floorl: Respect rules for use of AC_LIBOBJ.
3373         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
3374         * modules/floorl (configure.ac): ... to here.
3375
3376 2011-05-21  Bruno Haible  <bruno@clisp.org>
3377
3378         floor: Respect rules for use of AC_LIBOBJ.
3379         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
3380         * modules/floor (configure.ac): ... to here.
3381
3382 2011-05-21  Bruno Haible  <bruno@clisp.org>
3383
3384         floorf: Move AC_LIBOBJ invocations to module description.
3385         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
3386         * modules/floorf (configure.ac): ... to here.
3387
3388 2011-05-20  Bruno Haible  <bruno@clisp.org>
3389
3390         sqrtl: Respect rules for use of AC_LIBOBJ.
3391         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
3392         * modules/sqrtl (configure.ac): ... to here.
3393
3394 2011-05-20  Bruno Haible  <bruno@clisp.org>
3395
3396         ldexpl: Respect rules for use of AC_LIBOBJ.
3397         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
3398         * modules/ldexpl (configure.ac): ... to here.
3399
3400 2011-05-20  Bruno Haible  <bruno@clisp.org>
3401
3402         frexpl*: Respect rules for use of AC_LIBOBJ.
3403         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
3404         invocation from here...
3405         * modules/frexpl (configure.ac): ... to here.
3406         * modules/frexpl-nolibm (configure.ac): ... and here.
3407
3408 2011-05-20  Bruno Haible  <bruno@clisp.org>
3409
3410         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
3411         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
3412         invocation from here...
3413         * modules/frexp (configure.ac): ... to here.
3414         * modules/frexp-nolibm (configure.ac): ... and here.
3415
3416 2011-05-20  Bruno Haible  <bruno@clisp.org>
3417
3418         isnan: Respect rules for use of AC_LIBOBJ.
3419         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
3420         invocations here.
3421         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
3422         REPLACE_ISNAN.
3423         * modules/isnand (configure.ac): Likewise.
3424         * modules/isnanl (configure.ac): Likewise.
3425
3426 2011-05-20  Bruno Haible  <bruno@clisp.org>
3427
3428         isnanl*: Respect rules for use of AC_LIBOBJ.
3429         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
3430         invocation from here...
3431         * modules/isnanl (configure.ac): ... to here.
3432         * modules/isnanl-nolibm (configure.ac): ... and here.
3433
3434 2011-05-20  Bruno Haible  <bruno@clisp.org>
3435
3436         isnand*: Move AC_LIBOBJ invocations to module description.
3437         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
3438         invocation from here...
3439         * modules/isnand (configure.ac): ... to here.
3440         * modules/isnand-nolibm (configure.ac): ... and here.
3441
3442 2011-05-20  Bruno Haible  <bruno@clisp.org>
3443
3444         isnanf*: Move AC_LIBOBJ invocations to module description.
3445         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
3446         invocation from here...
3447         * modules/isnanf (configure.ac): ... to here.
3448         * modules/isnanf-nolibm (configure.ac): ... and here.
3449
3450 2011-05-20  Bruno Haible  <bruno@clisp.org>
3451
3452         isnan*: Separate the AC_LIBOBJ invocations.
3453         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
3454         AC_LIBOBJ invocation.
3455         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
3456         here.
3457         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
3458         AC_LIBOBJ invocation.
3459         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
3460         here.
3461         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
3462         AC_LIBOBJ invocation.
3463         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
3464         here.
3465         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
3466
3467 2011-05-08  Bruno Haible  <bruno@clisp.org>
3468
3469         isinf: Move AC_LIBOBJ invocations to module description.
3470         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
3471         * modules/isinf (configure.ac): ... to here.
3472
3473 2011-05-08  Bruno Haible  <bruno@clisp.org>
3474
3475         isfinite: Move AC_LIBOBJ invocations to module description.
3476         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
3477         * modules/isfinite (configure.ac): ... to here.
3478
3479 2011-05-08  Bruno Haible  <bruno@clisp.org>
3480
3481         isblank: Move AC_LIBOBJ invocations to module description.
3482         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
3483         here...
3484         * modules/isblank (configure.ac): ... to here.
3485
3486 2011-05-08  Bruno Haible  <bruno@clisp.org>
3487
3488         isapipe: Move AC_LIBOBJ invocations to module description.
3489         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
3490         gl_PREREQ_ISAPIPE invocations from here...
3491         * modules/isapipe (configure.ac): ... to here.
3492         (Depends-on): Update condition.
3493
3494 2011-05-08  Bruno Haible  <bruno@clisp.org>
3495
3496         ioctl: Move AC_LIBOBJ invocations to module description.
3497         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
3498         invocations from here...
3499         * modules/ioctl (configure.ac): ... to here.
3500         (Depends-on): Update condition.
3501
3502 2011-05-08  Bruno Haible  <bruno@clisp.org>
3503
3504         imaxdiv: Move AC_LIBOBJ invocations to module description.
3505         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
3506         invocations from here...
3507         * modules/imaxdiv (configure.ac): ... to here.
3508
3509 2011-05-08  Bruno Haible  <bruno@clisp.org>
3510
3511         imaxabs: Move AC_LIBOBJ invocations to module description.
3512         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
3513         invocations from here...
3514         * modules/imaxabs (configure.ac): ... to here.
3515
3516 2011-05-08  Bruno Haible  <bruno@clisp.org>
3517
3518         getaddrinfo: Move AC_LIBOBJ invocations to module description.
3519         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
3520         AC_LIBOBJ invocations from here...
3521         * modules/getaddrinfo (configure.ac): ... to here.
3522         (Depends-on): Add conditions.
3523
3524 2011-05-08  Bruno Haible  <bruno@clisp.org>
3525
3526         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
3527         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
3528         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
3529         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
3530         (gl_PREREQ_INET_PTON): ... from here.
3531         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
3532         gl_PREREQ_INET_PTON here.
3533         (Depends-on): Update condition.
3534
3535 2011-05-08  Bruno Haible  <bruno@clisp.org>
3536
3537         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
3538         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
3539         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
3540         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
3541         (gl_PREREQ_INET_NTOP): ... from here.
3542         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
3543         gl_PREREQ_INET_NTOP here.
3544         (Depends-on): Update condition.
3545
3546 2011-05-08  Bruno Haible  <bruno@clisp.org>
3547
3548         iconv_open: Move AC_LIBOBJ invocations to module description.
3549         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
3550         AC_LIBOBJ invocations from here...
3551         * modules/iconv_open (configure.ac): ... to here.
3552
3553 2011-05-08  Bruno Haible  <bruno@clisp.org>
3554
3555         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
3556         If module 'iconv_open' is among the main modules and module
3557         'iconv_open-utf' is among the tests dependencies, then
3558         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
3559         return the special iconv_t values. Therefore iconv() and iconv_close()
3560         must support these special iconv_t values, already in lib, not only in
3561         tests.
3562         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
3563         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
3564         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
3565         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
3566         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
3567         (Depends-on): Add the dependencies of iconv_open-utf.
3568         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
3569         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
3570         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
3571
3572 2011-05-08  Bruno Haible  <bruno@clisp.org>
3573
3574         group-member: Move AC_LIBOBJ invocations to module description.
3575         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
3576         gl_PREREQ_GROUP_MEMBER invocations from here...
3577         * modules/group-member (configure.ac): ... to here.
3578
3579 2011-05-08  Bruno Haible  <bruno@clisp.org>
3580
3581         grantpt: Move AC_LIBOBJ invocations to module description.
3582         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
3583         invocations from here...
3584         * modules/grantpt (configure.ac): ... to here.
3585
3586 2011-05-08  Bruno Haible  <bruno@clisp.org>
3587
3588         glob: Move AC_LIBOBJ invocations to module description.
3589         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
3590         from here...
3591         * modules/glob (configure.ac): ... to here.
3592
3593 2011-05-08  Bruno Haible  <bruno@clisp.org>
3594
3595         getusershell: Move AC_LIBOBJ invocations to module description.
3596         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
3597         Move AC_LIBOBJ invocation from here...
3598         * modules/getusershell (configure.ac): ... to here.
3599         (Depends-on): Update condition.
3600
3601 2011-05-08  Bruno Haible  <bruno@clisp.org>
3602
3603         gettimeofday: Move AC_LIBOBJ invocations to module description.
3604         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
3605         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
3606         gl_PREREQ_GETTIMEOFDAY invocations from here...
3607         * modules/gettimeofday (configure.ac): ... to here.
3608
3609 2011-05-08  Bruno Haible  <bruno@clisp.org>
3610
3611         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
3612         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
3613         just gl_FUNC_TZSET.
3614         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
3615         (gl_FUNC_TZSET_CLOBBER): Remove actions.
3616         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
3617         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
3618
3619 2011-05-08  Bruno Haible  <bruno@clisp.org>
3620
3621         getsubopt: Move AC_LIBOBJ invocations to module description.
3622         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
3623         gl_PREREQ_GETSUBOPT invocations from here...
3624         * modules/getsubopt (configure.ac): ... to here.
3625
3626 2011-05-08  Bruno Haible  <bruno@clisp.org>
3627
3628         getpass-gnu: Move AC_LIBOBJ invocations to module description.
3629         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
3630         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
3631         * modules/getpass-gnu (configure.ac): ... to here.
3632
3633 2011-05-08  Bruno Haible  <bruno@clisp.org>
3634
3635         getpass: Move AC_LIBOBJ invocations to module description.
3636         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
3637         gl_PREREQ_GETPASS invocations from here...
3638         * modules/getpass (configure.ac): ... to here.
3639
3640 2011-05-08  Bruno Haible  <bruno@clisp.org>
3641
3642         getpagesize: Move AC_LIBOBJ invocations to module description.
3643         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
3644         from here...
3645         * modules/getpagesize (configure.ac): ... to here.
3646
3647 2011-05-08  Bruno Haible  <bruno@clisp.org>
3648
3649         getopt: Move AC_LIBOBJ invocations to module description.
3650         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
3651         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
3652         invocations from here...
3653         * modules/getopt-gnu (configure.ac): ... to here.
3654         * modules/getopt-posix (configure.ac): ... and here.
3655         (Depends-on): Update condition.
3656
3657 2011-05-08  Bruno Haible  <bruno@clisp.org>
3658
3659         getopt, argp: Respect rules for use of AC_LIBOBJ.
3660         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
3661         (gl_REPLACE_GETOPT_ALWAYS): New macro.
3662         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
3663         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
3664
3665 2011-05-08  Bruno Haible  <bruno@clisp.org>
3666
3667         getlogin_r: Move AC_LIBOBJ invocations to module description.
3668         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
3669         gl_PREREQ_GETLOGIN_R invocations from here...
3670         * modules/getlogin_r (configure.ac): ... to here.
3671
3672 2011-05-08  Bruno Haible  <bruno@clisp.org>
3673
3674         getlogin: Move AC_LIBOBJ invocations to module description.
3675         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
3676         here...
3677         * modules/getlogin (configure.ac): ... to here.
3678
3679 2011-05-08  Bruno Haible  <bruno@clisp.org>
3680
3681         getloadavg: Move AC_LIBOBJ invocations to module description.
3682         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
3683         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
3684         * modules/getloadavg (configure.ac): ... to here.
3685
3686 2011-05-08  Bruno Haible  <bruno@clisp.org>
3687
3688         gethrxtime: Move AC_LIBOBJ invocations to module description.
3689         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
3690         LIB_GETHRXTIME from here...
3691         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
3692         invocations from here...
3693         * modules/gethrxtime (configure.ac): ... to here.
3694
3695 2011-05-08  Bruno Haible  <bruno@clisp.org>
3696
3697         gethostname: Move AC_LIBOBJ invocations to module description.
3698         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
3699         gl_PREREQ_GETHOSTNAME invocations from here...
3700         * modules/gethostname (configure.ac): ... to here.
3701
3702 2011-05-08  Bruno Haible  <bruno@clisp.org>
3703
3704         getgroups: Move AC_LIBOBJ invocations to module description.
3705         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
3706         here...
3707         * modules/getgroups (configure.ac): ... to here.
3708
3709 2011-05-08  Bruno Haible  <bruno@clisp.org>
3710
3711         getdtablesize: Move AC_LIBOBJ invocations to module description.
3712         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
3713         invocation from here...
3714         * modules/getdtablesize (configure.ac): ... to here.
3715
3716 2011-05-08  Bruno Haible  <bruno@clisp.org>
3717
3718         getdomainname: Move AC_LIBOBJ invocations to module description.
3719         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
3720         gl_PREREQ_GETDOMAINNAME invocations from here...
3721         * modules/getdomainname (configure.ac): ... to here.
3722
3723 2011-05-08  Bruno Haible  <bruno@clisp.org>
3724
3725         getline: Move AC_LIBOBJ invocations to module description.
3726         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
3727         invocations from here...
3728         * modules/getline (configure.ac): ... to here.
3729
3730 2011-05-08  Bruno Haible  <bruno@clisp.org>
3731
3732         getline: Simplify.
3733         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
3734         It's already handled through the module dependency.
3735
3736 2011-05-08  Bruno Haible  <bruno@clisp.org>
3737
3738         getdelim: Move AC_LIBOBJ invocations to module description.
3739         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
3740         and gl_PREREQ_GETDELIM invocations from here...
3741         * modules/getdelim (configure.ac): ... to here.
3742         (Depends-on): Fix condition.
3743
3744 2011-05-08  Bruno Haible  <bruno@clisp.org>
3745
3746         getcwd: Move AC_LIBOBJ invocations to module description.
3747         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
3748         invocations from here...
3749         * modules/getcwd (configure.ac): ... to here.
3750
3751 2011-05-08  Bruno Haible  <bruno@clisp.org>
3752
3753         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
3754         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
3755         here...
3756         * modules/getcwd-lgpl (configure.ac): ... to here.
3757
3758 2011-05-07  Bruno Haible  <bruno@clisp.org>
3759
3760         crypto/gc: Move AC_LIBOBJ invocations to module description.
3761         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
3762         * modules/crypto/gc (configure.ac): ... to here.
3763
3764 2011-05-07  Bruno Haible  <bruno@clisp.org>
3765
3766         fwriting: Move AC_LIBOBJ invocations to module description.
3767         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
3768         here...
3769         * modules/fwriting (configure.ac): ... to here.
3770
3771 2011-05-07  Bruno Haible  <bruno@clisp.org>
3772
3773         fwritable: Move AC_LIBOBJ invocations to module description.
3774         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
3775         here...
3776         * modules/fwritable (configure.ac): ... to here.
3777
3778 2011-05-07  Bruno Haible  <bruno@clisp.org>
3779
3780         futimens: Move AC_LIBOBJ invocations to module description.
3781         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
3782         here...
3783         * modules/futimens (configure.ac): ... to here.
3784
3785 2011-05-07  Bruno Haible  <bruno@clisp.org>
3786
3787         ftruncate: Move AC_LIBOBJ invocations to module description.
3788         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
3789         gl_PREREQ_FTRUNCATE invocations from here...
3790         * modules/ftruncate (configure.ac): ... to here.
3791
3792 2011-05-07  Bruno Haible  <bruno@clisp.org>
3793
3794         fsync: Move AC_LIBOBJ invocations to module description.
3795         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
3796         invocations from here...
3797         * modules/fsync (configure.ac): ... to here.
3798
3799 2011-05-07  Bruno Haible  <bruno@clisp.org>
3800
3801         fsusage: Move AC_LIBOBJ invocations to module description.
3802         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
3803         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
3804         * modules/fsusage (configure.ac): ... to here.
3805
3806 2011-05-07  Bruno Haible  <bruno@clisp.org>
3807
3808         freopen: Move AC_LIBOBJ invocations to module description.
3809         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
3810         invocations from here...
3811         * modules/freopen (configure.ac): ... to here.
3812
3813 2011-05-07  Bruno Haible  <bruno@clisp.org>
3814
3815         free: Move AC_LIBOBJ invocations to module description.
3816         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
3817         invocations from here...
3818         * modules/free (configure.ac): ... to here.
3819
3820 2011-05-07  Bruno Haible  <bruno@clisp.org>
3821
3822         freadable: Move AC_LIBOBJ invocations to module description.
3823         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
3824         here...
3825         * modules/freadable (configure.ac): ... to here.
3826
3827 2011-05-07  Bruno Haible  <bruno@clisp.org>
3828
3829         fpurge: Move AC_LIBOBJ invocations to module description.
3830         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
3831         invocations from here...
3832         * modules/fpurge (configure.ac): ... to here.
3833
3834 2011-05-07  Bruno Haible  <bruno@clisp.org>
3835
3836         fpending: Move AC_LIBOBJ invocations to module description.
3837         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
3838         gl_FUNC_FPENDING.
3839         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
3840         invocations from here...
3841         * modules/fpending (configure.ac): ... to here.
3842
3843 2011-05-07  Bruno Haible  <bruno@clisp.org>
3844
3845         fopen: Move AC_LIBOBJ invocations to module description.
3846         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
3847         invocations from here...
3848         * modules/fopen (configure.ac): ... to here.
3849
3850 2011-05-07  Bruno Haible  <bruno@clisp.org>
3851
3852         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
3853         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
3854         gl_FUNC_FNMATCH_POSIX.
3855         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
3856         invocations from here...
3857         * modules/fnmatch (configure.ac): ... to here.
3858         * modules/fnmatch-gnu (configure.ac): ... and here.
3859
3860 2011-05-07  Bruno Haible  <bruno@clisp.org>
3861
3862         flock: Move AC_LIBOBJ invocations to module description.
3863         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
3864         invocations from here...
3865         * modules/flock (configure.ac): ... to here.
3866
3867 2011-05-07  Bruno Haible  <bruno@clisp.org>
3868
3869         fileblocks: Move AC_LIBOBJ invocations to module description.
3870         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
3871         gl_PREREQ_FILEBLOCKS invocations from here...
3872         * modules/fileblocks (configure.ac): ... to here.
3873
3874 2011-05-06  Bruno Haible  <bruno@clisp.org>
3875
3876         fflush: Move AC_LIBOBJ invocations to module description.
3877         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
3878         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
3879         invocations from here...
3880         * modules/fflush (configure.ac): ... to here.
3881
3882 2011-05-06  Bruno Haible  <bruno@clisp.org>
3883
3884         fdopendir: Move AC_LIBOBJ invocations to module description.
3885         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
3886         here...
3887         * modules/fdopendir (configure.ac): ... to here.
3888         (Depends-on): Improve conditions.
3889
3890 2011-05-06  Bruno Haible  <bruno@clisp.org>
3891
3892         _Exit: Move AC_LIBOBJ invocations to module description.
3893         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
3894         invocations from here...
3895         * modules/_Exit (configure.ac): ... to here.
3896
3897 2011-05-21  Bruno Haible  <bruno@clisp.org>
3898
3899         euidaccess: Respect rules for use of AC_LIBOBJ.
3900         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
3901         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
3902         from here...
3903         * modules/euidaccess (configure.ac): ... to here.
3904
3905 2011-05-06  Bruno Haible  <bruno@clisp.org>
3906
3907         error: Move AC_LIBOBJ invocations to module description.
3908         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
3909         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
3910         invocations from here...
3911         * modules/error (configure.ac): ... to here.
3912
3913 2011-05-06  Bruno Haible  <bruno@clisp.org>
3914
3915         duplocale: Move AC_LIBOBJ invocations to module description.
3916         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
3917         gl_PREREQ_DUPLOCALE invocations from here...
3918         * modules/duplocale (configure.ac): ... to here.
3919
3920 2011-05-05  Bruno Haible  <bruno@clisp.org>
3921
3922         dirfd: Move AC_LIBOBJ invocations to module description.
3923         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
3924         gl_FUNC_DIRFD.
3925         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
3926         here...
3927         * modules/dirfd (configure.ac): ... to here.
3928         (Depends-on): Fix condition.
3929
3930 2011-05-05  Bruno Haible  <bruno@clisp.org>
3931
3932         chown: Respect rules for use of AC_LIBOBJ.
3933         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
3934         * modules/chown (configure.ac): ... to here.
3935
3936 2011-05-05  Bruno Haible  <bruno@clisp.org>
3937
3938         chdir-long: Move AC_LIBOBJ invocations to module description.
3939         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
3940         gl_PREREQ_CHDIR_LONG invocations from here...
3941         * modules/chdir-long (configure.ac): ... to here.
3942
3943 2011-05-05  Bruno Haible  <bruno@clisp.org>
3944
3945         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
3946         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
3947         from here...
3948         * modules/canonicalize-lgpl (configure.ac): ... to here.
3949
3950 2011-05-05  Bruno Haible  <bruno@clisp.org>
3951
3952         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
3953         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
3954         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
3955         REPLACE_CALLOC.
3956         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
3957         * modules/calloc-gnu (configure.ac): Likewise.
3958
3959 2011-05-05  Bruno Haible  <bruno@clisp.org>
3960
3961         btowc: Move AC_LIBOBJ invocations to module description.
3962         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
3963         invocations from here...
3964         * modules/btowc (configure.ac): ... to here.
3965
3966 2011-05-21  Bruno Haible  <bruno@clisp.org>
3967
3968         atexit: Move AC_LIBOBJ invocations to module description.
3969         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
3970         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
3971         here...
3972         * modules/atexit (configure.ac): ... to here.
3973
3974 2011-05-05  Bruno Haible  <bruno@clisp.org>
3975
3976         atoll: Move AC_LIBOBJ invocations to module description.
3977         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
3978         invocations from here...
3979         * modules/atoll (configure.ac): ... to here.
3980
3981 2011-05-05  Bruno Haible  <bruno@clisp.org>
3982
3983         argz: Move AC_LIBOBJ invocations to module description.
3984         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
3985         * modules/argz (configure.ac): ... to here.
3986
3987 2011-05-05  Bruno Haible  <bruno@clisp.org>
3988
3989         alphasort: Move AC_LIBOBJ invocations to module description.
3990         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
3991         gl_PREREQ_ALPHASORT invocations from here...
3992         * modules/alphasort (configure.ac): ... to here.
3993
3994 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
3995
3996         verify: new macro verify_expr; verify_true deprecated
3997         * NEWS: Mention this.
3998         * doc/verify.texi (Compile-time Assertions): Document this.
3999         * lib/verify.h (verify_true): Deprecate.
4000         (verify_expr): New macro.
4001         * tests/test-verify.c (function): Test verify_expr.
4002
4003 2011-06-14  Jim Meyering  <meyering@redhat.com>
4004
4005         init.sh: give more portable redirection-related advice in a comment
4006         * tests/init.sh (stderr_fileno_): Update the advice in comments.
4007         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
4008         for lots of discussion.  Stefano Lattarini suggested the solution
4009         of putting "9>&2" after the command.  Reported by Bruno Haible.
4010
4011 2011-06-13  Bruno Haible  <bruno@clisp.org>
4012
4013         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
4014         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
4015         'none'.
4016
4017 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
4018
4019         ftoastr: use strtof only if HAVE_STRTOF
4020         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
4021         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
4022         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
4023         * modules/ftoastr (configure.ac): Check for strtof.
4024
4025 2011-06-13  Bruno Haible  <bruno@clisp.org>
4026
4027         gnulib-tool: Addendum to 2011-06-08 commit.
4028         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
4029         and --witness-c-macro have been given, augment AM_CPPFLAGS.
4030
4031 2011-06-13  Bruno Haible  <bruno@clisp.org>
4032
4033         fseeko: Provide a non-inline replacement of fseek().
4034         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
4035         * modules/fseeko (Depends-on): Add fseek.
4036         * modules/fseek (License): Change to LGPLv2+.
4037
4038 2011-06-13  Bruno Haible  <bruno@clisp.org>
4039
4040         ftello: Provide a non-inline replacement of ftell().
4041         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
4042         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
4043         not have ftello() (such as on mingw).
4044         * modules/ftello (Depends-on): Add ftell.
4045         * modules/ftell (License): Change to LGPLv2+.
4046
4047 2011-05-07  Bruno Haible  <bruno@clisp.org>
4048
4049         ftell: Move AC_LIBOBJ invocations to module description.
4050         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
4051         * modules/ftell (configure.ac): ... to here.
4052
4053 2011-05-07  Bruno Haible  <bruno@clisp.org>
4054
4055         ftello: Respect rules for use of AC_LIBOBJ.
4056         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
4057         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
4058         here...
4059         * modules/ftello (configure.ac): ... to here.
4060
4061 2011-05-07  Bruno Haible  <bruno@clisp.org>
4062
4063         fseeko: Simplify.
4064         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
4065         (gl_FUNC_FSEEKO): Inline it here.
4066
4067 2011-05-07  Bruno Haible  <bruno@clisp.org>
4068
4069         fseek: Move AC_LIBOBJ invocations to module description.
4070         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
4071         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
4072         * modules/fseek (configure.ac): ... to here.
4073
4074 2011-05-07  Bruno Haible  <bruno@clisp.org>
4075
4076         fseek: Respect rules for use of AC_LIBOBJ.
4077         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
4078         here...
4079         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
4080
4081 2011-05-07  Bruno Haible  <bruno@clisp.org>
4082
4083         fseeko: Respect rules for use of AC_LIBOBJ.
4084         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
4085         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
4086         here...
4087         * modules/fseeko (configure.ac): ... to here.
4088
4089 2011-06-13  Bruno Haible  <bruno@clisp.org>
4090
4091         gnulib-tool: Allow comments in the 'Depends-on' section.
4092         * doc/gnulib.texi (Module description): Mention comment syntax in the
4093         Depends-on section.
4094         * gnulib-tool (func_get_dependencies): Filter out comment lines.
4095
4096 2011-06-13  Bruno Haible  <bruno@clisp.org>
4097
4098         file-set.h: guard __attibute__ use, now that it's not always defined
4099         * lib/file-set.h (record_file): Use __attribute__ only with compiler
4100         versions that support it.  This fixes a coreutils build failure with
4101         the vendor cc on HP-UX 11.31.
4102
4103 2011-06-12  Bruno Haible  <bruno@clisp.org>
4104
4105         acl: Add support for HP-UX >= 11.11 JFS ACLs.
4106         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
4107         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
4108         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
4109         (acl, aclsort): New declarations.
4110         (aclv_nontrivial): New declaration.
4111         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
4112         (file_has_acl): Read also the second kind of HP-UX ACLs.
4113         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
4114         kind of HP-UX ACLs if the first kind fails.
4115         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
4116         second kind of HP-UX ACLs.
4117         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
4118         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
4119         agree.
4120         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
4121         hpuxjfs.
4122         Handle hpuxjfs.
4123         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
4124         hpuxjfs.
4125         Handle hpuxjfs.
4126         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
4127         (func_test_same_acls): Use both lsacl and getacl.
4128         Handle hpuxjfs.
4129         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
4130         (func_test_same_acls): Use both lsacl and getacl.
4131         Handle hpuxjfs.
4132
4133 2011-06-12  Bruno Haible  <bruno@clisp.org>
4134
4135         acl: Complete the 2010-08-10 fix.
4136         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
4137         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
4138         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
4139         explicitly.
4140         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
4141         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
4142
4143 2011-06-12  Bruno Haible  <bruno@clisp.org>
4144
4145         spawn-pipe tests: Comments.
4146         * tests/test-spawn-pipe-child.c (main): Update comment.
4147         Reported by James Youngman <jay@gnu.org>.
4148
4149 2011-06-11  James Youngman  <jay@gnu.org>
4150
4151         New module 'stat-size'.
4152         * modules/stat-size: New module.  Provides macros for accessing
4153         file size information in instances of struct stat.  Depends on the
4154         fileblocks module because it calls st_blocks.
4155         * lib/stat-size.h: New file, adapted from coreutils' system.h.
4156         * doc/gnulib.texi: Include stat-size.texi.
4157         * doc/stat-size.texi: Documentation for this module.
4158         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
4159         * m4/fileblocks.m4: Mention that stat-size depends on the call to
4160         AC_STRUCT_ST_BLOCKS.
4161
4162 2011-06-09  Bruno Haible  <bruno@clisp.org>
4163
4164         thread: Support pthreads-win32.
4165         * lib/glthread/thread.h (gl_thread_self): Define differently on
4166         pthreads-win32.
4167         (gl_null_thread): New declaration.
4168         (gl_thread_self_pointer): New macro.
4169         * lib/glthread/thread.c (gl_null_thread): New constant.
4170         * tests/test-lock.c: Use gl_thread_self_pointer instead of
4171         gl_thread_self.
4172         * tests/test-tls.c: Likewise.
4173         Suggested by Paul Eggert. Reported by Eric Blake.
4174
4175 2011-06-09  Bruno Haible  <bruno@clisp.org>
4176
4177         thread: Fix confusion between NULL and 0.
4178         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
4179         Reported by Paul Eggert.
4180
4181 2011-06-09  Bruno Haible  <bruno@clisp.org>
4182
4183         spawn-pipe tests: Avoid test failure on HP-UX 11.
4184         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
4185         is closed.
4186
4187 2011-06-09  Bruno Haible  <bruno@clisp.org>
4188
4189         acl tests: Fix compilation error on HP-UX 11.
4190         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
4191
4192 2011-06-09  Bruno Haible  <bruno@clisp.org>
4193
4194         rmdir: Avoid test failure on HP-UX 10.20.
4195         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
4196         EEXIST.
4197
4198 2011-06-08  Eric Blake  <eblake@redhat.com>
4199
4200         perror: fix test on mingw
4201         * modules/perror-tests (Depends-on): Add dup2.
4202
4203         strerror_r-posix: fix on MacOS
4204         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
4205         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
4206         logic bug.
4207         * lib/strerror_r.c (strerror_r): Fix the bug.
4208         * lib/strerror.c (strerror): Likewise.
4209         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
4210         problem.
4211         * doc/posix-functions/strerror.texi (strerror): Likewise.
4212         * doc/posix-functions/perror.texi (perror): Likewise.
4213         * tests/test-strerror.c (main): Enhance test.
4214         * tests/test-strerror_r.c (main): Likewise.
4215
4216 2011-06-08  Bruno Haible  <bruno@clisp.org>
4217
4218         gnulib-tool: Better isolation between different gnulib-tool invocations.
4219         * gnulib-tool: New option --witness-c-macro.
4220         (witness_c_macro): New variable.
4221         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
4222         AM_CPPFLAGS define it as a C macro.
4223         (func_emit_tests_Makefile_am): Likewise.
4224         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
4225         read it from there.
4226         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
4227         m4_define, not AC_DEFUN.
4228         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
4229         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
4230         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
4231         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
4232         s|...|...|, to substitute the values of the GNULIB_* module indicator
4233         variables.
4234         * modules/dirent (Makefile.am): Likewise.
4235         * modules/fcntl-h (Makefile.am): Likewise.
4236         * modules/iconv-h (Makefile.am): Likewise.
4237         * modules/langinfo (Makefile.am): Likewise.
4238         * modules/locale (Makefile.am): Likewise.
4239         * modules/math (Makefile.am): Likewise.
4240         * modules/netdb (Makefile.am): Likewise.
4241         * modules/poll-h (Makefile.am): Likewise.
4242         * modules/pty (Makefile.am): Likewise.
4243         * modules/search (Makefile.am): Likewise.
4244         * modules/signal (Makefile.am): Likewise.
4245         * modules/spawn (Makefile.am): Likewise.
4246         * modules/stdio (Makefile.am): Likewise.
4247         * modules/stdlib (Makefile.am): Likewise.
4248         * modules/string (Makefile.am): Likewise.
4249         * modules/sys_ioctl (Makefile.am): Likewise.
4250         * modules/sys_select (Makefile.am): Likewise.
4251         * modules/sys_socket (Makefile.am): Likewise.
4252         * modules/sys_stat (Makefile.am): Likewise.
4253         * modules/sys_times (Makefile.am): Likewise.
4254         * modules/sys_utsname (Makefile.am): Likewise.
4255         * modules/sys_wait (Makefile.am): Likewise.
4256         * modules/termios (Makefile.am): Likewise.
4257         * modules/time (Makefile.am): Likewise.
4258         * modules/unistd (Makefile.am): Likewise.
4259         * modules/wchar (Makefile.am): Likewise.
4260
4261 2011-06-08  Eric Blake  <eblake@redhat.com>
4262
4263         strerror: simplify replacement
4264         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
4265         * modules/strerror (configure.ac): No prereqs needed here...
4266         * modules/strerror-override (configure.ac): ...but this needs it.
4267         (Files): Add file for needed prereq macro.
4268
4269 2011-06-08  Bruno Haible  <bruno@clisp.org>
4270
4271         strerror_r-posix: Tweaks.
4272         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
4273         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
4274         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
4275         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
4276         (gl_FUNC_STRERROR_R): ... to here.
4277         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
4278
4279 2011-06-07  Eric Blake  <eblake@redhat.com>
4280
4281         perror: document fixed bugs
4282         * doc/posix-functions/perror.texi (perror): Document recent
4283         patches.
4284
4285 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
4286
4287         stat-time: get_stat_birthtime failure is better-defined
4288         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
4289         return a timestamp whose tv_sec and tv_nsec values are both -1.
4290         Previously, the spec said only that the tv_nsec value was negative.
4291         This upward-compatible change simplifies GNU tar a bit.
4292
4293 2011-06-07  Eric Blake  <eblake@redhat.com>
4294
4295         strerror_r-posix: work around cygwin 1.7.9
4296         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
4297         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
4298         bug without replacing strerror_r.
4299         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
4300         strerror_r is buggy, but without requiring strerror_r compilation.
4301         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
4302
4303         test-perror: relax test to ignore cygwin bug
4304         * tests/test-perror2.c (main): Relax test on requiring detection
4305         of stream errors, and use unbuffered stream.
4306         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
4307         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
4308         * doc/posix-functions/fputc.texi (fputc): Likewise.
4309         * doc/posix-functions/fputs.texi (fputs): Likewise.
4310         * doc/posix-functions/fputws.texi (fputws): Likewise.
4311         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
4312         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
4313         * doc/posix-functions/getopt.texi (getopt): Likewise.
4314         * doc/posix-functions/perror.texi (perror): Likewise.
4315         * doc/posix-functions/printf.texi (printf): Likewise.
4316         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
4317         * doc/posix-functions/psignal.texi (psignal): Likewise.
4318         * doc/posix-functions/putc.texi (putc): Likewise.
4319         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
4320         Likewise.
4321         * doc/posix-functions/putchar.texi (putchar): Likewise.
4322         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
4323         Likewise.
4324         * doc/posix-functions/puts.texi (puts): Likewise.
4325         * doc/posix-functions/putwc.texi (putwc): Likewise.
4326         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
4327         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
4328         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
4329         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
4330         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
4331         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
4332         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
4333         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
4334
4335 2011-05-22  Bruno Haible  <bruno@clisp.org>
4336
4337         strerror: Move AC_LIBOBJ invocations to module description.
4338         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
4339         gl_PREREQ_STRERROR invocations from here...
4340         * modules/strerror (configure.ac): ... to here.
4341
4342 2011-05-21  Bruno Haible  <bruno@clisp.org>
4343
4344         perror: Use common idiom.
4345         * modules/perror (configure.ac): Reorder statements.
4346
4347 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
4348
4349         tests: fix usage message in 'mktempd_'
4350         * tests/init.sh (mktempd_): In the usage message, use literal
4351         'mktempd_', not '$ME' (which is even undefined), as the name of
4352         the subroutine.
4353
4354 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
4355
4356         tests init: new function 'fatal_', for hard errors
4357         Before this patch, the only way offered by tests/init.sh to
4358         properly signal a hard error was the `framework_failure_'
4359         function.  But the error message issued by that function,
4360         as its name would suggest, refers to a set-up failure in the
4361         testsuite, while hard errors can obviously also be due to
4362         other reasons.  The best way to fix this inconsistency is to
4363         introduce a new function with a more general error message.
4364         * tests/init.sh (fatal_): New function.
4365
4366 2011-06-06  Eric Blake  <eblake@redhat.com>
4367
4368         canonicalize-lgpl: use common idiom
4369         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
4370         over newer POSIX -Rf.
4371         Reported by Bruno Haible.
4372
4373         canonicalize-lgpl: work around AIX realpath bug
4374         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
4375         * doc/posix-functions/realpath.texi (realpath): Document it.
4376         Reported by Bruno Haible.
4377
4378         strerror: work around FreeBSD bug
4379         * lib/strerror.c (strerror): Special case 0.
4380         Reported by Bruno Haible.
4381
4382         strerror-override: avoid bloating errno module
4383         * modules/errno (Files, configure.ac): Move replacement strings...
4384         * modules/strerror-override: ...to new module.
4385         * modules/strerror (Depends-on): Add strerror-override.
4386         * modules/strerror_r-posix (Depends-on): Likewise.
4387         * MODULES.html.sh: Document new module.
4388         Reported by Bruno Haible.
4389
4390 2011-06-06  Bruno Haible  <bruno@clisp.org>
4391
4392         spawn-pipe tests: Rename program.
4393         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
4394         * tests/test-spawn-pipe-child.c: Update comment.
4395         * tests/test-spawn-pipe.sh: Update.
4396         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
4397
4398         spawn-pipe tests: Link the child program only against libc.
4399         * tests/test-spawn-pipe-child.c: New file, extracted from
4400         tests/test-spawn-pipe.c.
4401         (main): Expect only one argument.
4402         (is_open): New function, copied from tests/test-pipe.c.
4403         * tests/test-spawn-pipe.c: Don't include <errno.h>.
4404         (child_main): Remove function.
4405         (test_pipe): Pass only one argument to the child program.
4406         (main): Remove child process code. Expect the child program's name as
4407         first argument.
4408         * tests/test-spawn-pipe.sh: Pass the child program's name as first
4409         argument.
4410         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
4411         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
4412         test-spawn-pipe-child against no libraries.
4413
4414 2011-06-06  Bruno Haible  <bruno@clisp.org>
4415
4416         careadlinkat: Avoid mismatch between ssize_t and int.
4417         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
4418         * lib/careadlinkat.c (careadlinkatcwd): Define always.
4419
4420 2011-06-06  Jim Meyering  <meyering@redhat.com>
4421
4422         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
4423         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
4424         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
4425
4426 2011-06-05  Bruno Haible  <bruno@clisp.org>
4427
4428         ansi-c++-opt: Interoperability with libtool.
4429         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
4430         set the variable to "no", not to ":".
4431         * NEWS: Mention the change.
4432
4433 2011-06-05  Bruno Haible  <bruno@clisp.org>
4434
4435         acl: Fix test failure on AIX 7.
4436         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
4437         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
4438
4439 2011-06-05  Bruno Haible  <bruno@clisp.org>
4440
4441         pipe-filter-ii: Fix test failure on AIX and IRIX.
4442         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
4443         with EAGAIN, retry with a smaller buffer size.
4444
4445 2011-06-05  Bruno Haible  <bruno@clisp.org>
4446
4447         localename: Fix link dependencies.
4448         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
4449         * modules/localename-tests (Makefile.am): Link test-localename with
4450         $(LIBTHREAD).
4451
4452 2011-06-05  Bruno Haible  <bruno@clisp.org>
4453
4454         error: Avoid gcc warning.
4455         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
4456
4457 2011-06-05  Bruno Haible  <bruno@clisp.org>
4458
4459         unsetenv: Avoid gcc warning.
4460         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
4461
4462 2011-06-05  Bruno Haible  <bruno@clisp.org>
4463
4464         setenv: Avoid gcc warning.
4465         * lib/setenv.c (setenv): Provide declaration if system lacks it.
4466
4467 2011-06-05  Bruno Haible  <bruno@clisp.org>
4468
4469         sys_select: Ensure memset is declared also on AIX 7.
4470         * lib/sys_select.in.h: Include <string.h> also on AIX.
4471         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
4472         self-contained also on AIX 7.1.
4473
4474 2011-06-04  Jim Meyering  <meyering@redhat.com>
4475
4476         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
4477         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
4478         function name, "error".
4479         (_gl_translatable_diag_func_re): New configurable variable.
4480
4481 2011-06-04  Bruno Haible  <bruno@clisp.org>
4482
4483         getopt: Avoid gcc warning.
4484         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
4485
4486 2011-06-04  Bruno Haible  <bruno@clisp.org>
4487
4488         strerror_r: Fix comments.
4489         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
4490         commit.
4491
4492 2011-06-04  Bruno Haible  <bruno@clisp.org>
4493
4494         perror: Fix compilation error.
4495         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
4496         Undefine fprintf, not sprintf.
4497         * modules/perror (Depends-on): Remove intprops, verify.
4498
4499 2011-06-04  Bruno Haible  <bruno@clisp.org>
4500
4501         setlocale: Enable replacement on Cygwin 1.5.
4502         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
4503         Cygwin 1.5.x.
4504         * doc/posix-functions/setlocale.texi: Mention that the problem with the
4505         LC_CTYPE category also exists on Cygwin 1.5.x.
4506
4507 2011-06-04  Bruno Haible  <bruno@clisp.org>
4508
4509         strerror-override: Don't disable symbol renamings.
4510         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
4511         * lib/strerror-override.c: Include config.h.
4512         (strerror_override): Don't undefine.
4513
4514 2011-06-03  Bruno Haible  <bruno@clisp.org>
4515
4516         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
4517         * lib/localename.h: Update copyright header.
4518         * lib/localename.c: Likewise.
4519         * lib/relocatable.h: Likewise.
4520         * lib/relocatable.c: Likewise.
4521
4522 2011-06-02  Bruno Haible  <bruno@clisp.org>
4523
4524         doc: Fix a module name.
4525         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
4526
4527 2011-06-02  Bruno Haible  <bruno@clisp.org>
4528
4529         pipe2: Remove dependency on 'nonblocking' module.
4530         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
4531         O_NONBLOCK is defined by gnulib.
4532         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
4533         is zero.
4534         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
4535         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
4536         defined by gnulib.
4537         (get_nonblocking_flag): New function.
4538         (main): Test O_NONBLOCK flag only if it is nonzero.
4539         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
4540
4541 2011-06-03  Jim Meyering  <meyering@redhat.com>
4542
4543         maint: three new prohibit-header-without-use rules
4544         Prohibit use of cloexec.h, posixver.h, same.h without use.
4545         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
4546         (sc_prohibit_posixver_without_use): Likewise.
4547         (sc_prohibit_same_without_use): Likewise.
4548
4549 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
4550
4551         allocator: 'die' routine is now given requested size
4552         * lib/allocator.h (struct allocator.die): New size arg.
4553         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
4554         If the actual problem is an ssize_t limitation, not a size_t or
4555         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
4556
4557 2011-06-01  Eric Blake  <eblake@redhat.com>
4558
4559         strerror: drop strerror_r dependency
4560         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
4561         * lib/strerror-override.c (strerror_override): ...to new file.
4562         * lib/strerror-override.h: Add prototype.
4563         * lib/strerror-impl.h: Delete.
4564         * lib/strerror.c (strerror): New implementation.
4565         * modules/errno (Files): Add new files.
4566         (configure.ac): Compile new file as appropriate.
4567         * modules/strerror (Files): Drop unused file.
4568         (Depends-on): Drop strerror_r-posix.
4569         * MODULES.html.sh: Document strerror_r-posix.
4570         Requested by Sam Steingold.
4571
4572         perror: call strerror_r directly
4573         * modules/perror (Files): Drop strerror-impl.h.
4574         * lib/perror.c (perror): Use our own stack buffer, rather than
4575         calling a wrapper that uses static storage.
4576         * doc/posix-functions/perror.texi (perror): Document a limitation
4577         of our replacement.
4578
4579         strerror_r: fix includes for FreeBSD
4580         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
4581         since we use abort on some platforms.
4582         Reported by Matthias Bolte.
4583
4584 2011-05-31  Bruno Haible  <bruno@clisp.org>
4585
4586         Fix link errors in tests: openat-die uses gettext-h.
4587         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
4588         against $(LIBINTL).
4589         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
4590         against $(LIBINTL).
4591         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
4592         $(LIBINTL).
4593         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
4594         against $(LIBINTL).
4595         * modules/linkat-tests (Makefile.am): Link test-linkat against
4596         $(LIBINTL).
4597         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
4598         $(LIBINTL).
4599         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
4600         against $(LIBINTL).
4601         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
4602         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
4603         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
4604         $(LIBINTL).
4605         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
4606         $(LIBINTL).
4607         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
4608         $(LIBINTL).
4609         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
4610
4611 2011-05-31  Bruno Haible  <bruno@clisp.org>
4612
4613         Fix link errors in tests: wait-process uses gettext-h.
4614         * modules/nonblocking-pipe-tests (Makefile.am): Set
4615         test_nonblocking_pipe_main_LDADD.
4616         * modules/nonblocking-socket-tests (Makefile.am): Link
4617         test-nonblocking-socket-main against $(LIBINTL).
4618         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
4619
4620 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
4621
4622         assert-h: work around 'verify' incompatibility
4623         * lib/verify.h: Use @...@ directives, not ifdef.
4624         * modules/assert-h (assert.h): Implement the directives.
4625         (assert.h): Substitute the symbol-prefix more consistently.
4626
4627 2011-05-29  Jim Meyering  <meyering@redhat.com>
4628
4629         trim: remove three superfluous assignments
4630         * lib/trim.c (trim2): Remove three superfluous assignments
4631         and correct brace positioning.
4632
4633 2011-05-29  Bruno Haible  <bruno@clisp.org>
4634
4635         wctype-h: Avoid namespace pollution on Solaris 2.6.
4636         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
4637         identifiers.
4638         * doc/posix-headers/wctype.texi: Mention the problem.
4639         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
4640
4641 2011-05-28  Jim Meyering  <meyering@redhat.com>
4642
4643         parse-datetime.y: accommodate -Wstrict-overflow
4644         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
4645         placate -Wstrict-overflow.
4646
4647         trim: avoid a warning from -O2 -Wstrict-overflow
4648         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
4649
4650 2011-05-29  Bruno Haible  <bruno@clisp.org>
4651
4652         gnulib-tool: Fix bug in yesterday's commit.
4653         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
4654         twice.
4655
4656 2011-05-29  Bruno Haible  <bruno@clisp.org>
4657
4658         Allow multiple gnulib generated include files to be combined.
4659         * gnulib-tool (func_compute_include_guard_prefix): New function.
4660         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
4661         ${gl_include_guard_prefix} references.
4662         (func_import, func_create_testdir): Invoke
4663         func_compute_include_guard_prefix.
4664         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
4665         * lib/ctype.in.h: Likewise.
4666         * lib/dirent.in.h: Likewise.
4667         * lib/errno.in.h: Likewise.
4668         * lib/fcntl.in.h: Likewise.
4669         * lib/float.in.h: Likewise.
4670         * lib/getopt.in.h: Likewise.
4671         * lib/iconv.in.h: Likewise.
4672         * lib/langinfo.in.h: Likewise.
4673         * lib/locale.in.h: Likewise.
4674         * lib/math.in.h: Likewise.
4675         * lib/netdb.in.h: Likewise.
4676         * lib/netinet_in.in.h: Likewise.
4677         * lib/poll.in.h: Likewise.
4678         * lib/pthread.in.h: Likewise.
4679         * lib/pty.in.h: Likewise.
4680         * lib/sched.in.h: Likewise.
4681         * lib/se-selinux.in.h: Likewise.
4682         * lib/search.in.h: Likewise.
4683         * lib/signal.in.h: Likewise.
4684         * lib/spawn.in.h: Likewise.
4685         * lib/stdarg.in.h: Likewise.
4686         * lib/stddef.in.h: Likewise.
4687         * lib/stdint.in.h: Likewise.
4688         * lib/stdio.in.h: Likewise.
4689         * lib/stdlib.in.h: Likewise.
4690         * lib/string.in.h: Likewise.
4691         * lib/strings.in.h: Likewise.
4692         * lib/sys_file.in.h: Likewise.
4693         * lib/sys_ioctl.in.h: Likewise.
4694         * lib/sys_select.in.h: Likewise.
4695         * lib/sys_socket.in.h: Likewise.
4696         * lib/sys_stat.in.h: Likewise.
4697         * lib/sys_time.in.h: Likewise.
4698         * lib/sys_times.in.h: Likewise.
4699         * lib/sys_uio.in.h: Likewise.
4700         * lib/sys_utsname.in.h: Likewise.
4701         * lib/sys_wait.in.h: Likewise.
4702         * lib/sysexits.in.h: Likewise.
4703         * lib/termios.in.h: Likewise.
4704         * lib/time.in.h: Likewise.
4705         * lib/unistd.in.h: Likewise.
4706         * lib/wchar.in.h: Likewise.
4707         * lib/wctype.in.h: Likewise.
4708         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
4709         * modules/ctype (Makefile.am): Likewise.
4710         * modules/dirent (Makefile.am): Likewise.
4711         * modules/errno (Makefile.am): Likewise.
4712         * modules/fcntl-h (Makefile.am): Likewise.
4713         * modules/float (Makefile.am): Likewise.
4714         * modules/getopt-posix (Makefile.am): Likewise.
4715         * modules/iconv-h (Makefile.am): Likewise.
4716         * modules/langinfo (Makefile.am): Likewise.
4717         * modules/locale (Makefile.am): Likewise.
4718         * modules/math (Makefile.am): Likewise.
4719         * modules/netdb (Makefile.am): Likewise.
4720         * modules/netinet_in (Makefile.am): Likewise.
4721         * modules/poll-h (Makefile.am): Likewise.
4722         * modules/pthread (Makefile.am): Likewise.
4723         * modules/pty (Makefile.am): Likewise.
4724         * modules/sched (Makefile.am): Likewise.
4725         * modules/search (Makefile.am): Likewise.
4726         * modules/selinux-h (Makefile.am): Likewise.
4727         * modules/signal (Makefile.am): Likewise.
4728         * modules/spawn (Makefile.am): Likewise.
4729         * modules/stdarg (Makefile.am): Likewise.
4730         * modules/stddef (Makefile.am): Likewise.
4731         * modules/stdint (Makefile.am): Likewise.
4732         * modules/stdio (Makefile.am): Likewise.
4733         * modules/stdlib (Makefile.am): Likewise.
4734         * modules/string (Makefile.am): Likewise.
4735         * modules/strings (Makefile.am): Likewise.
4736         * modules/sys_file (Makefile.am): Likewise.
4737         * modules/sys_ioctl (Makefile.am): Likewise.
4738         * modules/sys_select (Makefile.am): Likewise.
4739         * modules/sys_socket (Makefile.am): Likewise.
4740         * modules/sys_stat (Makefile.am): Likewise.
4741         * modules/sys_time (Makefile.am): Likewise.
4742         * modules/sys_times (Makefile.am): Likewise.
4743         * modules/sys_uio (Makefile.am): Likewise.
4744         * modules/sys_utsname (Makefile.am): Likewise.
4745         * modules/sys_wait (Makefile.am): Likewise.
4746         * modules/sysexits (Makefile.am): Likewise.
4747         * modules/termios (Makefile.am): Likewise.
4748         * modules/time (Makefile.am): Likewise.
4749         * modules/unistd (Makefile.am): Likewise.
4750         * modules/wchar (Makefile.am): Likewise.
4751         * modules/wctype-h (Makefile.am): Likewise.
4752         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
4753
4754 2011-05-29  Bruno Haible  <bruno@clisp.org>
4755
4756         assert-h: Allow multiple gnulib generated replacements to coexist.
4757         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
4758
4759 2011-05-29  Bruno Haible  <bruno@clisp.org>
4760
4761         argp: Allow coexistence with strerror_r-posix module.
4762         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
4763         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
4764         by gnulib's <string.h> replacement), assume it has the POSIX signature,
4765         not the glibc signature.
4766
4767 2011-05-28  Bruno Haible  <bruno@clisp.org>
4768
4769         gnulib-tool: Alternative structure of testdirs, similar to --import.
4770         * gnulib-tool: New option --single-configure.
4771         (func_usage): Document it.
4772         (single_configure): New variable.
4773         (func_modules_transitive_closure_separately,
4774         func_modules_transitive_closure_separately,
4775         func_determine_use_libtests, func_modules_add_dummy_separately,
4776         func_modules_to_filelist_separately): New functions, extracted from
4777         func_import.
4778         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
4779         (func_import): Use the new functions.
4780         (func_create_testdir): Set final_modules. Handle $single_configure =
4781         true case.
4782
4783 2011-05-28  Bruno Haible  <bruno@clisp.org>
4784
4785         getloadavg: Remove an unreliable safety check.
4786         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
4787         getloadavg.c is in place.
4788         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
4789         Reported by Sam Steingold <sds@gnu.org>.
4790
4791 2011-05-28  Bruno Haible  <bruno@clisp.org>
4792
4793         doc: Cleanup yet another file produced by texinfo.tex.
4794         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
4795
4796 2011-05-28  Bruno Haible  <bruno@clisp.org>
4797
4798         Finish the conditional dependencies mechanism.
4799         * gnulib-tool: New option --no-conditional-dependencies.
4800         (func_usage): Document it. Don't mark --conditional-dependencies as
4801         experimental.
4802         (cond_dependencies): The possible values can now be true, false, empty.
4803         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
4804         (func_import): Store setting in gnulib-cache.m4 and read it from there.
4805         * doc/gnulib-tool.texi (Conditional dependencies): New section.
4806
4807 2011-05-28  Bruno Haible  <bruno@clisp.org>
4808
4809         doc: Use a recent texinfo.tex.
4810         * doc/Makefile (tex_opts): New variable.
4811         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
4812
4813 2011-05-28  Jim Meyering  <meyering@redhat.com>
4814
4815         intprops.h: adjust comment to match code change
4816         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
4817         only once, it *may* have side effects.  Also fix an unrelated typo.
4818         (_GL_INT_SIGNED): Likewise.
4819
4820 2011-05-26  Simon Josefsson  <simon@josefsson.org>
4821
4822         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
4823
4824 2011-05-26  Bruno Haible  <bruno@clisp.org>
4825
4826         mbsrchr: Avoid collision with system function on Interix.
4827         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
4828         Reported by Markus Duft <mduft@gentoo.org>.
4829
4830 2011-05-15  James Youngman  <jay@gnu.org>
4831
4832         getopt: for ambiguous options, enumerate the possibilities.
4833         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
4834         the ambiguous options when an ambiguous prefix is given. This was
4835         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
4836         glibc change was
4837         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
4838
4839 2011-05-25  Eric Blake  <eblake@redhat.com>
4840
4841         getcwd: work around mingw bug
4842         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
4843         * doc/posix-functions/getcwd.texi (getcwd): Document it.
4844         Reported by Matthias Bolte.
4845
4846 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
4847
4848         test-intprops: disable -Wtype-limits diagnostics
4849         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
4850         diagnostics.  Otherwise, the integer overflow macros generate many
4851         diagnostics.  Reported by Jim Meyering in
4852         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
4853
4854         intprops: shorten, to pacify gcc -Woverlength-strings
4855         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
4856         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
4857         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
4858         likely to run afoul of C compiler limits for string constant lengths.
4859         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
4860
4861 2011-05-24  Eric Blake  <eblake@redhat.com>
4862
4863         docs: document recently fixed glibc printf bug
4864         * doc/posix-functions/fprintf.texi (fprintf): Document it.
4865         * doc/posix-functions/printf.texi (printf): Likewise.
4866         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
4867         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
4868
4869         closein-tests: convert to init.sh
4870         * modules/closein-tests (Files): Add init.sh
4871         * tests/test-closein.sh Use it.
4872
4873         yesno-tests: convert to init.sh
4874         * modules/yesno-tests (Files): Add init.sh.
4875         * tests/test-yesno.sh: Use it.
4876
4877         atexit-tests: ensure reliable exit status
4878         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
4879         Reported by Bruno Haible.
4880
4881 2011-05-24  Bruno Haible  <bruno@clisp.org>
4882
4883         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
4884         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
4885         gl_PREREQ_STRERROR_R invocations from here...
4886         * modules/strerror_r-posix (configure.ac): ... to here.
4887
4888 2011-05-24  Eric Blake  <eblake@redhat.com>
4889
4890         strerror_r: fix missing header
4891         * lib/strerror_r.c: Avoid compiler warning about snprintf.
4892
4893         strerror_r: fix AIX test failures
4894         * lib/strerror_r.c (strerror_r): Convert silent truncation to
4895         ERANGE failure.
4896
4897         strerror_r: fix Solaris test failures
4898         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
4899         failures.
4900         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
4901
4902         strerror_r: enforce POSIX recommendations
4903         * lib/strerror_r.c (safe_copy): New helper method.
4904         (strerror_r): Guarantee a non-empty string.
4905         * tests/test-strerror_r.c (main): Enhance tests to incorporate
4906         recent POSIX rulings and to match our strerror guarantees.
4907         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
4908
4909 2011-05-24  Jim Meyering  <meyering@redhat.com>
4910
4911         test-perror2.c: avoid warning about unused variable
4912         * tests/test-perror2.c (main): Remove declaration of unused "fp".
4913
4914 2011-05-24  Eric Blake  <eblake@redhat.com>
4915
4916         perror: avoid spurious test failure on HP-UX
4917         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
4918
4919         tests: fix logic bug in init.sh
4920         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
4921         shell.
4922
4923 2011-05-24  Jim Meyering  <meyering@redhat.com>
4924
4925         utimensat: do not reference an out-of-scope buffer
4926         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
4927         declared in an inner scope, yet "times" would be dereferenced outside
4928         the scope in which "ts" was valid.
4929         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
4930         of ts[2] "out/up", so that the use of aliased "times" (via
4931         "times = ts;") does not end up referencing an out-of-scope "ts"
4932
4933         opendir-safer.c: don't clobber errno; don't close negative FD
4934         * lib/opendir-safer.c (opendir_safer):
4935         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
4936         file descriptor, and more importantly, don't clobber the
4937         offending errno value with EINVAL.  Before, upon failure
4938         of dup_safer, we would pass the negative file descriptor to
4939         fdopendir, which would clobber errno.
4940
4941 2011-05-23  Bruno Haible  <bruno@clisp.org>
4942
4943         idcache: Fix module description.
4944         * modules/idcache (Include): Set to "idcache.h".
4945
4946 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
4947
4948         gnulib-tool: fix portability problem with MacOS sed
4949         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
4950         before the "}".  Problem reported by Leo in
4951         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
4952         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
4953         sed_extract_condition1, sed_extract_condition2.
4954
4955 2011-05-23  Bruno Haible  <bruno@clisp.org>
4956
4957         hash: Simplify autoconf macro.
4958         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
4959
4960 2011-05-23  Bruno Haible  <bruno@clisp.org>
4961
4962         getugroups: Fix module description.
4963         * modules/getugroups (Include): Set to "getugroups.h".
4964
4965 2011-05-23  Bruno Haible  <bruno@clisp.org>
4966
4967         linkat: Simplify autoconf macro.
4968         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
4969
4970 2011-05-23  Bruno Haible  <bruno@clisp.org>
4971             Eric Blake  <eblake@redhat.com>
4972
4973         linkat, renameat: Update dependencies.
4974         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
4975         * modules/linkat (Depends-on): Likewise. Remove also readlink,
4976         symlinkat.
4977
4978 2011-05-23  Jim Meyering  <meyering@redhat.com>
4979
4980         maint.mk: more tight_scope improvements
4981         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
4982         (_gl_TS_headers): Define only in if-0'd block.
4983         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
4984         sometimes we must *not* use it.  Adjust uses accordingly.
4985         (sc_tight_scope): Use much simpler grep-based test to determine
4986         whether we skip this rule.
4987
4988         maint.mk: generalize/improve the tight-scope rule
4989         * top/maint.mk: Emit a warning when the test is skipped.
4990         (_gl_TS_dir): Add $(srcdir)/ prefix.
4991         (_gl_TS_function_match): Simplify, rather than trying
4992         to enumerate common types.  Otherwise, it would fail to match an
4993         "extern unsigned char const *" declaration in idutils.
4994         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
4995         a way to support use of that type of macro.
4996         (_gl_TS_var_match): Simplify regexp.
4997         (_gl_TS_obj_files): New configurable variable.
4998         (_gl_TS_headers): Likewise.
4999
5000 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
5001
5002         verify: fix bug when gnulib <assert.h> is also included
5003         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
5004         is defined, not if _GL_STATIC_ASSERT_H is not defined.
5005         Perhaps there's a better way, but this fixes the immediate problem.
5006         Problem reported by Bruno Haible in
5007         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
5008
5009 2011-05-22  Bruno Haible  <bruno@clisp.org>
5010
5011         xgetcwd: Simplify autoconf macro.
5012         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
5013
5014 2011-05-22  Bruno Haible  <bruno@clisp.org>
5015
5016         New module 'mktime-internal'.
5017         * modules/mktime-internal: New file.
5018         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
5019         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
5020         mktime_internal as a C macro if libc has __mktime_internal.
5021         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
5022         conditions.
5023         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
5024
5025 2011-05-22  Bruno Haible  <bruno@clisp.org>
5026
5027         timegm: Correct mktime replacement statements.
5028         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
5029         defining mktime as a C macro. This completes a 2009-07-28 commit.
5030
5031 2011-05-22  Bruno Haible  <bruno@clisp.org>
5032
5033         timegm: Simplify autoconf macro.
5034         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
5035
5036 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
5037
5038         clock-time: change to LGPLv2+.
5039         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
5040         BSD-like but we have no mark for that; this is good enough for now.
5041
5042 2011-05-21  Bruno Haible  <bruno@clisp.org>
5043
5044         strerror_r: Fix comments.
5045         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
5046
5047 2011-05-21  Bruno Haible  <bruno@clisp.org>
5048
5049         relocatable-prog-wrapper: Fix possible link error.
5050         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
5051         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
5052         (gl_FUNC_SETENV): ... to here.
5053         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
5054         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
5055
5056 2011-05-21  Bruno Haible  <bruno@clisp.org>
5057
5058         relocatable-prog-wrapper: Assume strerror() exists.
5059         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
5060         m4/strerror.m4.
5061         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
5062         * lib/relocwrapper.c: Remove mention of strerror module.
5063         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
5064         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
5065         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
5066         C macro.
5067
5068 2011-05-21  Bruno Haible  <bruno@clisp.org>
5069
5070         select: Simplify replacement idiom.
5071         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
5072         Win32 platforms.
5073         * lib/sys_select.in.h (select): Simplify accordingly.
5074         * modules/select (Depends-on): Likewise.
5075
5076 2011-05-21  Bruno Haible  <bruno@clisp.org>
5077
5078         mkdir-p: Simplify autoconf macro.
5079         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
5080         gl_FUNC_LCHOWN.
5081
5082 2011-05-21  Eric Blake  <eblake@redhat.com>
5083
5084         strerror_r: avoid clobbering strerror on cygwin
5085         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
5086         fall back instead to sys_errlist.
5087         * modules/strerror (configure.ac): Add witness.
5088         * tests/test-strerror_r.c (main): Enhance test.
5089         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
5090         * tests/test-perror2.c (main): Free memory before exit.
5091
5092 2011-05-21  Bruno Haible  <bruno@clisp.org>
5093
5094         mkdtemp: Use gnulib naming conventions.
5095         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
5096         * modules/mkdtemp (configure.ac): Update.
5097
5098 2011-05-20  Eric Blake  <eblake@redhat.com>
5099
5100         strerror_r: avoid corrupting errno on Solaris
5101         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
5102         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
5103
5104         strerror_r: avoid compiler warning
5105         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
5106
5107         strerror_r: simplify AIX code
5108         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
5109
5110         test-perror: avoid spurious failure on FreeBSD
5111         * modules/perror-tests (Depends-on): Add strerror, now that
5112         strerror_r no longer pulls it in.
5113
5114 2011-05-20  Bruno Haible  <bruno@clisp.org>
5115
5116         strerror_r-posix: Remove unused dependencies.
5117         * modules/strerror_r-posix (Depends-on): Remove strerror.
5118         Reported by Eric Blake.
5119
5120 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
5121
5122         intprops: remove assumption about A|B representation
5123         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
5124         is a valid integer if both A and B are.  Although this is true for
5125         all known practical hosts, the C standard doesn't guarantee it,
5126         and the code need not assume it.  Also, this change may work around
5127         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
5128         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
5129
5130 2011-05-20  Eric Blake  <eblake@redhat.com>
5131
5132         perror: work around FreeBSD bug
5133         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
5134         is broken.  Move AC_LIBOBJ...
5135         * modules/perror (configure.ac): Here.
5136         * doc/posix-functions/perror.texi (perror): Document this.
5137         * tests/test-perror2.c (main): Enhance test.
5138
5139         test-perror: check for strerror interactions
5140         * tests/macros.h (STREQ): Add macro.
5141         * modules/perror-tests (Files): Add second test.
5142         * tests/test-perror2.c (main): New file.
5143         * doc/posix-functions/perror.texi (perror): Document glibc bug.
5144
5145         test-perror: rewrite to use init script
5146         * modules/perror-tests (Files): Add init.sh.
5147         * tests/test-perror.sh: Use temporary directory.
5148
5149 2011-05-20  Jim Meyering  <meyering@redhat.com>
5150
5151         maint: replace misused "a" with "an"
5152         * doc/intprops.texi: "a integer"
5153         * doc/regex.texi: "a explanation"
5154         * lib/alignof.h: "a object"
5155         * lib/argmatch.h: "a explanation"
5156         * lib/argp-help.c: "a option" and "a OPTION_DOC"
5157         * lib/stdint.in.h: "a integer"
5158         * lib/userspec.c: "a owner"
5159         * doc/gnulib.texi: Fix "a idea", and reword.
5160
5161 2011-05-19  Jim Meyering  <meyering@redhat.com>
5162
5163         maint: correct misuse of "a" and "an"
5164         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
5165         * lib/argp-help.c: "an docum...": s/an/a/
5166         * lib/argp-parse.c: "An vector": s/An/A/
5167         * lib/execute.c: "an native": s/an/a/
5168         * lib/spawn-pipe.c: Likewise.
5169         * lib/gc.h: "an Gc_rc": s/an/a/
5170         * lib/unigbrk.in.h: "an grapheme": s/an/a/
5171         * lib/fts.c: "an stat.st_dev": s/an/a/
5172
5173 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
5174
5175         intprops-tests: work around HP-UX 11.23 cc bug with constants
5176         * tests/test-intprops.c (VERIFY): New macro.
5177         (main): Use it, instead of verify, to work around the compiler bug; see
5178         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
5179
5180         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
5181         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
5182         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
5183         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
5184         (_GL_REMAINDER_OVERFLOW): Use it.
5185
5186         intprops-tests: revert unsigned part of previous change
5187         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
5188         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
5189         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
5190         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
5191
5192 2011-05-19  Bruno Haible  <bruno@clisp.org>
5193
5194         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
5195         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
5196         strerror_r() returned without filling the buffer.
5197         Reported by Eric Blake.
5198
5199 2011-05-19  Eric Blake  <eblake@redhat.com>
5200
5201         strerror_r: guarantee unchanged errno
5202         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
5203         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
5204         failure.
5205         * tests/test-strerror_r.c (main): Enhance test.
5206
5207 2011-05-19  Bruno Haible  <bruno@clisp.org>
5208
5209         strerror_r: Reorder #if blocks.
5210         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
5211         for consistency with the previous commit.
5212
5213 2011-05-19  Bruno Haible  <bruno@clisp.org>
5214
5215         perror: Avoid clobbering the strerror buffer when possible.
5216         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
5217         * lib/strerror.c: Include it.
5218         * modules/strerror (Files): Add lib/strerror-impl.h.
5219         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
5220         (my_strerror): New function, defined through lib/strerror-impl.h.
5221         (perror): Use it instead of strerror.
5222         * modules/perror (Files): Add lib/strerror-impl.h.
5223         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
5224
5225 2011-05-19  Eric Blake  <eblake@redhat.com>
5226
5227         strerror_r: fix on newer cygwin
5228         * lib/strerror_r.c (strerror_r): Cygwin now has
5229         __xpg_strerror_r, use it.
5230
5231 2011-05-19  Bruno Haible  <bruno@clisp.org>
5232
5233         strerror_r: Avoid clobbering the strerror buffer when possible.
5234         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
5235         (sys_nerr, sys_errlist): New declarations.
5236         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
5237         HP-UX, native Win32, IRIX, and 32-bit Solaris.
5238         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
5239
5240 2011-05-19  Bruno Haible  <bruno@clisp.org>
5241
5242         strerror_r: Fix test failure on mingw.
5243         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
5244         EXTEND_STRERROR_R.
5245         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
5246         macros from errno.in.h instead.
5247
5248 2011-05-19  Eric Blake  <eblake@redhat.com>
5249
5250         strerror: relax test for Solaris
5251         * tests/test-strerror.c (main): Permit Solaris behavior.
5252         * tests/test-strerror_r.c (main): Likewise.
5253
5254         strerror: enforce POSIX ruling on strerror(0)
5255         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
5256         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
5257         * lib/strerror_r.c (rpl_strerror_r): Work around it.
5258         * doc/posix-functions/strerror.texi (strerror): Document it.
5259         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
5260         * tests/test-strerror.c (main): Strengthen test.
5261         * tests/test-strerror_r.c (main): Likewise.
5262
5263 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
5264
5265         intprop-tests: port to older and more-pedantic compilers
5266         * modules/intprops-tests (Files): Add tests/macros.h.
5267         * tests/test-intprops.c: Include macros.h.
5268         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
5269         it's no longer documented to expand to an integer constant expression.
5270         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
5271         argument is floating point, as it's no longer documented to expand
5272         to an integer constant expression in that case.
5273         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
5274         compiler bugs reported by Bruno Haible.  See
5275         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
5276         (U0, U1): New constants, to work around the same bugs.  Also,
5277         in tests, use e.g., "(unsigned int) 39" rather than "39u".
5278
5279         intprops: work around C compiler bugs
5280         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
5281         bug in Sun C 5.11 2010/08/13 and other compilers; see
5282         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
5283
5284         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
5285         * doc/intprops.texi (Integer Type Determination): Fix
5286         documentation for TYPE_IS_INTEGER: it returns an constant
5287         expression, not an integer constant expression.  Fix doc for
5288         TYPE_SIGNED: it returns an integer constant expression only if its
5289         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
5290         hardly worth documented that way....)
5291
5292 2011-05-18  Bruno Haible  <bruno@clisp.org>
5293
5294         strerror_r: Avoid clobbering the strerror buffer when possible.
5295         * lib/strerror_r.c (strerror_r): Merge the three implementations.
5296         Handle gnulib defined errno values here. When strerror() returns NULL
5297         or an empty string, return EINVAL.
5298         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
5299         gnulib defined errno values here.
5300         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
5301
5302 2011-05-18  Eric Blake  <eblake@redhat.com>
5303
5304         fnmatch: avoid compiler warning
5305         * lib/fnmatch_loop.c (FCT): Use correct type.
5306         Reported by Matthias Bolte.
5307
5308 2011-05-13  Jim Meyering  <meyering@redhat.com>
5309
5310         maint.mk: three new prohibit_<HDR>_without_use rules
5311         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
5312         (sc_prohibit_stdio-safer_without_use): Likewise.
5313         (sc_prohibit_xfreopen_without_use): Likewise.
5314
5315 2011-05-17  Jim Meyering  <meyering@redhat.com>
5316
5317         announce-gen: fail if the NEWS delta is empty
5318         If there's nothing noteworthy in NEWS, then either you forgot
5319         or you shouldn't be releasing.
5320         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
5321
5322 2011-05-17  Pádraig Brady <P@draigBrady.com>
5323
5324         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
5325         reserved symbols starting with double underscore from the check.
5326
5327 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
5328
5329         intprops: add doc
5330         * doc/intprops.texi: New file, documenting intprops.
5331         * doc/gnulib.texi (Particular Modules): Include it.
5332
5333         verify: add doc to gnulib manual and fix example
5334         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
5335         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
5336         (Compile-time Assertions): Fix example so it can't overflow.
5337
5338 2011-05-17  Jim Meyering  <meyering@redhat.com>
5339
5340         warnings.m4: don't usurp save_CPPFLAGS variable name
5341         * m4/warnings.m4: Prefix local temporary variable name with gl_.
5342
5343         doc: fix typo
5344         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
5345
5346 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
5347             Bruno Haible  <bruno@clisp.org>
5348
5349         doc: Tweak recent change.
5350         * README (Portability guidelines): Tweak new text.
5351         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
5352         Interix 6.1.
5353
5354 2011-05-16  Eric Blake  <eblake@redhat.com>
5355
5356         inttypes: avoid autoconf warning
5357         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
5358         * m4/stdint.m4 (gl_STDINT_H): Likewise.
5359
5360 2011-05-16  Sam Steingold <sds@gnu.org>
5361         and Eric Blake  <eblake@redhat.com>
5362
5363         vc-list-files: accept multiple directory operands
5364         * build-aux/vc-list-files: Iterate over all remaining operands.
5365
5366 2011-05-16  Bruno Haible  <bruno@clisp.org>
5367
5368         Fix confusion regarding deprecated modules.
5369         * modules/calloc (Status, Notice): Mark module as deprecated, not
5370         obsolete.
5371         * modules/fnmatch-posix (Status, Notice): Likewise.
5372         * modules/getdate (Status, Notice): Likewise.
5373         * modules/getopt (Status, Notice): Likewise.
5374         * modules/malloc (Status, Notice): Likewise.
5375         * modules/pipe (Status, Notice): Likewise.
5376         * modules/realloc (Status, Notice): Likewise.
5377         * modules/rename-dest-slash (Status, Notice): Likewise.
5378         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
5379         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
5380         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
5381         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
5382         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
5383
5384 2011-05-16  Bruno Haible  <bruno@clisp.org>
5385
5386         doc: List the target platforms.
5387         * doc/gnulib-intro.texi (Target Platforms): New section.
5388         * doc/gnulib.texi (Introduction): Update menu.
5389         * README (Portability guidelines): Refer to the new section. Update
5390         statement about oldest supported environment. Remove rationale why
5391         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
5392         unportable C89 function.
5393         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
5394         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
5395
5396 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
5397
5398         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
5399
5400 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
5401
5402         intprops-tests: new module
5403         * modules/intprops-tests, tests/test-intprops.c: New files.
5404
5405         intprops: add safe, portable integer overflow checking
5406         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
5407         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
5408         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
5409         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
5410         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
5411         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
5412         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
5413         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
5414         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
5415         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
5416         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
5417
5418 2011-05-12  James Youngman  <jay@gnu.org>
5419
5420         Add a test for glibc's Bugzilla bug #12378.
5421         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
5422         doesn't allow the literal matching of a lone "[" (which is
5423         required by POSIX).
5424         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
5425
5426 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
5427
5428         Sync glibc change fixing Bugzilla bug #12378.
5429         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
5430         beginning and fall back to matching as normal character if the
5431         string ends before the matching ']' is found.  This is what POSIX
5432         requires.
5433
5434 2011-05-13  Eric Blake  <eblake@redhat.com>
5435
5436         getcwd-lgpl: relax test for FreeBSD
5437         * doc/posix-functions/getcwd.texi (getcwd): Document portability
5438         issue.
5439         * tests/test-getcwd-lgpl.c (main): Relax test.
5440         Reported by Matthias Bolte.
5441
5442 2011-05-11  Eric Blake  <eblake@redhat.com>
5443
5444         test-fflush: silence compiler warning
5445         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
5446
5447 2011-05-11  Bruno Haible  <bruno@clisp.org>
5448
5449         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
5450         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
5451         * modules/canonicalize (Depends-on): Add 'nocrash'.
5452         * modules/canonicalize-lgpl (Depends-on): Likewise.
5453         * doc/posix-functions/realpath.texi: Update platforms list.
5454         Reported by Ryan Schmidt <ryandesign@macports.org>.
5455
5456 2011-05-11  Bruno Haible  <bruno@clisp.org>
5457
5458         group-member: Declare function in <unistd.h>.
5459         * lib/unistd.in.h (group_member): New declaration.
5460         * lib/group-member.h: Remove file.
5461         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
5462         * tests/test-unistd-c++.cc: Check signature of group_member.
5463         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
5464         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
5465         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
5466         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
5467         HAVE_GROUP_MEMBER.
5468         * modules/group-member (Files): Remove lib/group-member.h.
5469         (Depends-on): Add unistd. Specify conditions.
5470         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
5471         (Include): Change to <unistd.h>.
5472         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
5473         HAVE_GROUP_MEMBER.
5474         * NEWS: Mention the change.
5475         * lib/euidaccess.c: Don't include group-member.h.
5476
5477 2011-05-11  Bruno Haible  <bruno@clisp.org>
5478
5479         group-member: Document module.
5480         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
5481         module.
5482
5483 2011-05-11  Bruno Haible  <bruno@clisp.org>
5484
5485         fclose: Fix mistake earlier today.
5486         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
5487
5488 2011-05-11  Eric Blake  <eblake@redhat.com>
5489
5490         fclose: preserve fflush errors
5491         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
5492         Reported by Jim Meyering.
5493
5494         bootstrap: support a prereq of 'rpcgen -' on RHEL5
5495         * build-aux/bootstrap (check_versions): When no specific version
5496         is required, merely check that the app produces an exit status
5497         that indicates its existence.
5498
5499         maint.mk: drop redundant check
5500         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
5501         the same but better.
5502
5503 2011-05-11  Bruno Haible  <bruno@clisp.org>
5504
5505         fclose: Fix possible link error.
5506         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
5507         unregister_shadow_fd. Improve comments.
5508         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
5509         Eric Blake.
5510
5511 2011-05-11  Jim Meyering  <meyering@redhat.com>
5512
5513         maint.mk: improve "can not" detection and generalize rule name
5514         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
5515         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
5516         Use the same technique as in sc_prohibit_doubled_word, so that
5517         we recognize "can not" also when the words are separated by a newline.
5518         Suggested by Eric Blake.
5519         (perl_filename_lineno_text_): Define.  Factored out of...
5520         (prohibit_doubled_word_): ...here.  Use the new definition.
5521         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
5522         (prohibit_undesirable_word_seq_RE_): New overridable variable.
5523         (ignore_undesirable_word_sequence_RE_): New overridable variable.
5524
5525 2011-05-10  Eric Blake  <eblake@redhat.com>
5526
5527         fclose: avoid double close race when possible
5528         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
5529         all but WINDOWS_SOCKETS.
5530
5531 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
5532
5533         openat: correct new comment
5534         * lib/openat-proc.c (openat_proc_name): Correct the comment.
5535
5536 2011-05-10  Jim Meyering  <meyering@redhat.com>
5537
5538         openat: add comments
5539         * lib/openat-proc.c (openat_proc_name): Add comments,
5540         mostly from Eric Blake.
5541
5542 2011-05-09  Eric Blake  <eblake@redhat.com>
5543
5544         openat: reduce syscalls in first probe of /proc
5545         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
5546         be a directory.  Simplify the probe for .. bugs.
5547         * modules/openat (Depends-on): Drop same-inode.
5548         Reported by Bastien ROUCARIES.
5549
5550 2011-05-09  Jim Meyering  <meyering@redhat.com>
5551
5552         maint.mk: change semantics/name of tight_scope variables
5553         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
5554         Rename variables to align with semantics that make them more useful.
5555
5556         maint.mk: tweak new rule's name not to impinge
5557         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
5558         (sc_tight_scope): Use new rule name rather than $@-0.
5559
5560         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
5561         * top/maint.mk (sc_tight_scope): New rule.
5562         (sc_tight_scope-0): New rule, ifdef'd out.
5563         (_gl_TS_dir): Default.
5564         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
5565         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
5566
5567 2011-05-09  Simon Josefsson  <simon@josefsson.org>
5568
5569         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
5570         Haible <bruno@clisp.org>.
5571
5572 2011-05-08  Bruno Haible  <bruno@clisp.org>
5573
5574         Comments.
5575         * m4/isnanf.m4: Add comment.
5576         * m4/isnanl.m4: Likewise.
5577
5578 2011-05-08  Bruno Haible  <bruno@clisp.org>
5579
5580         glob: Remove obsolete macro.
5581         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
5582
5583 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
5584
5585         intprops: Sun C 5.11 supports __typeof__
5586         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
5587         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
5588         which is new.
5589         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
5590
5591         intprops: switch to usual gnulib indenting and naming
5592         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
5593         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
5594
5595         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
5596
5597 2011-05-08  Jim Meyering  <meyering@redhat.com>
5598
5599         maint.mk: suppress "Entering/Leaving directory" diag in announcement
5600         * top/maint.mk (release-prep): Use make's --no-print-directory
5601         option when generating the announcement.  This eliminates the
5602         pesky "make[2]: Entering/Leaving directory" diagnostics in the
5603         generated announcement template.
5604
5605 2011-05-08  Bruno Haible  <bruno@clisp.org>
5606
5607         tzset: Fix gettimeofday wrapper on Solaris 2.6.
5608         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
5609         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
5610
5611 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
5612
5613         ignore-value, verify: Omit include files from lib_SOURCES.
5614         * modules/ignore-value, modules/verify (Makefile.am):
5615         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
5616         that leads Automake to duplicate use of am__objects_... variables
5617         in Makefile.in.  See
5618         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
5619
5620 2011-05-07  Bruno Haible  <bruno@clisp.org>
5621
5622         fclose: Simplify autoconf macro.
5623         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
5624         defined.
5625
5626 2011-05-07  Bruno Haible  <bruno@clisp.org>
5627
5628         canonicalize-lgpl: Fix autoconf macro ordering bug.
5629         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
5630         gl_STDLIB_H_DEFAULTS.
5631
5632 2011-05-06  Eric Blake  <eblake@redhat.com>
5633
5634         maintainer-makefile: make sc_po_check easier to tune
5635         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
5636         to probe for strings, such as an alternate location for gnulib.
5637
5638         fclose: guarantee behavior on seekable stdin
5639         * modules/fclose (Depends-on): Add fflush.
5640         * doc/posix-functions/fclose.texi (fclose): Document this.
5641         * tests/test-fclose.c (main): Make test for this unconditional.
5642
5643 2011-05-06  Bruno Haible  <bruno@clisp.org>
5644
5645         fflush, fpurge: Relicense under LGPLv2+.
5646         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
5647         * modules/fpurge (License): Likewise.
5648         With permission from Eric Blake and Jim Meyering.
5649         Suggested by Eric Blake.
5650
5651 2011-05-06  Karl Berry  <karl@gnu.org>
5652
5653         * MODULES.html.sh (func_all_modules): remove exit.
5654
5655 2011-05-06  Jim Meyering  <meyering@redhat.com>
5656
5657         maint.mk: use info-gnu@ as the default only for a stable release
5658         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
5659         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
5660         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
5661         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
5662
5663 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
5664
5665         assert-h: new module, which supports C1X-style static_assert
5666         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
5667         * lib/verify.h: Revamp so that this can be copied into assert.h,
5668         while retaining the ability to use it standalone as before.
5669         Rename private identifiers so as not to encroach on the
5670         standard C namespace, since this is now used by assert.h.
5671         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
5672         the old verify_true.
5673         (_GL_VERIFY_TRUE): New macro, with much of the contents of
5674         the old verify_true.  Use _GL_VERIFY_TYPE.
5675         (_GL_VERIFY): New macro, with much of the contents of the old verify.
5676         (static_assert): New macro, if _GL_STATIC_ASSERT_H
5677         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
5678         defined when this file is copied into the replacement assert.h.
5679         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
5680         and _Static_assert is not built in.
5681         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
5682         defined, and use the new macros mentioned above.
5683         * doc/posix-headers/assert.texi: Document this.
5684
5685 2011-05-05  Bruno Haible  <bruno@clisp.org>
5686
5687         fclose, fflush: Respect rules for use of AC_LIBOBJ.
5688         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
5689         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
5690         gl_REPLACE_FCLOSE here.
5691         * modules/fflush (Depends-on): Remove fclose.
5692         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
5693         combination with module 'fclose'.
5694
5695 2011-05-05  Bruno Haible  <bruno@clisp.org>
5696
5697         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
5698         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
5699         gl_FUNC_FFLUSH.
5700         (gl_FUNC_FFLUSH): Use it.
5701         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
5702         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
5703         gl_REPLACE_FSEEKO here.
5704
5705 2011-05-05  Bruno Haible  <bruno@clisp.org>
5706
5707         tzset: Relicense under LGPL.
5708         * modules/tzset (License): Change to LGPL.
5709         No agreement needed; it's a no-op.
5710
5711         strtoimax, strtoumax: Relicense under LGPL.
5712         * modules/strtoimax (License): Change to LGPL.
5713         * modules/strtoumax (License): Likewise.
5714         With permission from Jim Meyering, Paul Eggert:
5715         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
5716         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
5717
5718         getgroups: Relicense under LGPL.
5719         * modules/getgroups (License): Change to LGPL.
5720         With permission from Jim Meyering, Paul Eggert, Eric Blake:
5721         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
5722         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
5723         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
5724
5725         nanosleep: Relicense under LGPL.
5726         * modules/nanosleep (License): Change to LGPL.
5727         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
5728         Haible:
5729         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
5730         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
5731         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
5732         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
5733
5734         futimens: Relicense under LGPL.
5735         * modules/futimens (License): Change to LGPL.
5736         With permission from Eric Blake:
5737         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
5738
5739         fflush: Relicense under LGPL.
5740         * modules/fflush (License): Change to LGPL.
5741         With permission from Eric Blake, Bruno Haible, Jim Meyering:
5742         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
5743         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
5744         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
5745
5746         tmpfile: Relicense under LGPL.
5747         * modules/tmpfile (License): Change to LGPL.
5748         With permission from Ben Pfaff:
5749         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
5750
5751         isfinite: Relicense under LGPL.
5752         * modules/isfinite (License): Change to LGPL.
5753         With permission from Ben Pfaff, Bruno Haible:
5754         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
5755         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
5756
5757         acosl..tanl: Relicense under LGPL.
5758         * modules/acosl (License): Change to LGPL.
5759         * modules/asinl (License): Likewise.
5760         * modules/atanl (License): Likewise.
5761         * modules/cosl (License): Likewise.
5762         * modules/expl (License): Likewise.
5763         * modules/logl (License): Likewise.
5764         * modules/sinl (License): Likewise.
5765         * modules/sqrtl (License): Likewise.
5766         * modules/tanl (License): Likewise.
5767         Source code originally from glibc and Paolo Bonzini. Agreements:
5768         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
5769         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
5770
5771 2011-05-05  Bruno Haible  <bruno@clisp.org>
5772
5773         signal: Define sighandler_t.
5774         * lib/signal.in.h (sighandler_t): New type.
5775         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
5776         whether sighandler_t is defined.
5777         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
5778         * modules/signal (Depends-on): Add extensions.
5779         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
5780         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
5781         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
5782
5783 2011-05-05  Eric Blake  <eblake@redhat.com>
5784
5785         maint: remove useless REPLACE_*_H macros
5786         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
5787         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
5788         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
5789         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
5790         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
5791         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
5792         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
5793         * m4/btowc.m4: Update callers.
5794         * m4/dirfd.m4: Likewise.
5795         * m4/duplocale.m4: Likewise.
5796         * m4/fchdir.m4: Likewise.
5797         * m4/fdopendir.m4: Likewise.
5798         * m4/inet_ntop.m4: Likewise.
5799         * m4/inet_pton.m4: Likewise.
5800         * m4/ioctl.m4: Likewise.
5801         * m4/mbrlen.m4: Likewise.
5802         * m4/mbrtowc.m4: Likewise.
5803         * m4/mbsinit.m4: Likewise.
5804         * m4/mbsnrtowcs.m4: Likewise.
5805         * m4/mbsrtowcs.m4: Likewise.
5806         * m4/poll.m4: Likewise.
5807         * m4/setlocale.m4: Likewise.
5808         * m4/wcrtomb.m4: Likewise.
5809         * m4/wcsnrtombs.m4: Likewise.
5810         * m4/wcsrtombs.m4: Likewise.
5811         * m4/wctob.m4: Likewise.
5812         * m4/wcwidth.m4: Likewise.
5813         * modules/posix_spawn: Likewise.
5814         * modules/posix_spawn_file_actions_addclose: Likewise.
5815         * modules/posix_spawn_file_actions_adddup2: Likewise.
5816         * modules/posix_spawn_file_actions_addopen: Likewise.
5817         * modules/posix_spawn_file_actions_destroy: Likewise.
5818         * modules/posix_spawn_file_actions_init: Likewise.
5819         * modules/posix_spawnattr_destroy: Likewise.
5820         * modules/posix_spawnattr_getflags: Likewise.
5821         * modules/posix_spawnattr_getpgroup: Likewise.
5822         * modules/posix_spawnattr_getschedparam: Likewise.
5823         * modules/posix_spawnattr_getschedpolicy: Likewise.
5824         * modules/posix_spawnattr_getsigdefault: Likewise.
5825         * modules/posix_spawnattr_getsigmask: Likewise.
5826         * modules/posix_spawnattr_init: Likewise.
5827         * modules/posix_spawnattr_setflags: Likewise.
5828         * modules/posix_spawnattr_setpgroup: Likewise.
5829         * modules/posix_spawnattr_setschedparam: Likewise.
5830         * modules/posix_spawnattr_setschedpolicy: Likewise.
5831         * modules/posix_spawnattr_setsigdefault: Likewise.
5832         * modules/posix_spawnattr_setsigmask: Likewise.
5833         * modules/posix_spawnp: Likewise.
5834
5835 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
5836
5837         Add option to do-release-commit-and-tag to specify branch.
5838         * build-aux/do-release-commit-and-tag: Add --branch.
5839
5840 2011-05-03  Bruno Haible  <bruno@clisp.org>
5841
5842         Avoid unnecessary compilation units, through conditional dependencies.
5843         * modules/accept (Depends-on): Add conditions to the dependencies.
5844         * modules/acosl (Depends-on): Likewise.
5845         * modules/argz (Depends-on): Likewise.
5846         * modules/asinl (Depends-on): Likewise.
5847         * modules/atanl (Depends-on): Likewise.
5848         * modules/atoll (Depends-on): Likewise.
5849         * modules/bind (Depends-on): Likewise.
5850         * modules/btowc (Depends-on): Likewise.
5851         * modules/canonicalize-lgpl (Depends-on): Likewise.
5852         * modules/ceil (Depends-on): Likewise.
5853         * modules/ceilf (Depends-on): Likewise.
5854         * modules/ceill (Depends-on): Likewise.
5855         * modules/chdir-long (Depends-on): Likewise.
5856         * modules/chown (Depends-on): Likewise.
5857         * modules/close (Depends-on): Likewise.
5858         * modules/connect (Depends-on): Likewise.
5859         * modules/cosl (Depends-on): Likewise.
5860         * modules/dirfd (Depends-on): Likewise.
5861         * modules/dprintf (Depends-on): Likewise.
5862         * modules/dprintf-posix (Depends-on): Likewise.
5863         * modules/error (Depends-on): Likewise.
5864         * modules/euidaccess (Depends-on): Likewise.
5865         * modules/expl (Depends-on): Likewise.
5866         * modules/faccessat (Depends-on): Likewise.
5867         * modules/fchdir (Depends-on): Likewise.
5868         * modules/fclose (Depends-on): Likewise.
5869         * modules/fcntl (Depends-on): Likewise.
5870         * modules/fdopendir (Depends-on): Likewise.
5871         * modules/fflush (Depends-on): Likewise.
5872         * modules/floor (Depends-on): Likewise.
5873         * modules/floorf (Depends-on): Likewise.
5874         * modules/floorl (Depends-on): Likewise.
5875         * modules/fnmatch (Depends-on): Likewise.
5876         * modules/fopen (Depends-on): Likewise.
5877         * modules/fprintf-posix (Depends-on): Likewise.
5878         * modules/frexp (Depends-on): Likewise.
5879         * modules/frexp-nolibm (Depends-on): Likewise.
5880         * modules/frexpl (Depends-on): Likewise.
5881         * modules/frexpl-nolibm (Depends-on): Likewise.
5882         * modules/fseek (Depends-on): Likewise.
5883         * modules/fsusage (Depends-on): Likewise.
5884         * modules/ftell (Depends-on): Likewise.
5885         * modules/ftello (Depends-on): Likewise.
5886         * modules/futimens (Depends-on): Likewise.
5887         * modules/getcwd (Depends-on): Likewise.
5888         * modules/getcwd-lgpl (Depends-on): Likewise.
5889         * modules/getdelim (Depends-on): Likewise.
5890         * modules/getdomainname (Depends-on): Likewise.
5891         * modules/getgroups (Depends-on): Likewise.
5892         * modules/gethostname (Depends-on): Likewise.
5893         * modules/getline (Depends-on): Likewise.
5894         * modules/getlogin_r (Depends-on): Likewise.
5895         * modules/getopt-posix (Depends-on): Likewise.
5896         * modules/getpeername (Depends-on): Likewise.
5897         * modules/getsockname (Depends-on): Likewise.
5898         * modules/getsockopt (Depends-on): Likewise.
5899         * modules/getsubopt (Depends-on): Likewise.
5900         * modules/getusershell (Depends-on): Likewise.
5901         * modules/glob (Depends-on): Likewise.
5902         * modules/grantpt (Depends-on): Likewise.
5903         * modules/iconv_open (Depends-on): Likewise.
5904         * modules/iconv_open-utf (Depends-on): Likewise.
5905         * modules/inet_ntop (Depends-on): Likewise.
5906         * modules/inet_pton (Depends-on): Likewise.
5907         * modules/ioctl (Depends-on): Likewise.
5908         * modules/isapipe (Depends-on): Likewise.
5909         * modules/isfinite (Depends-on): Likewise.
5910         * modules/isinf (Depends-on): Likewise.
5911         * modules/lchown (Depends-on): Likewise.
5912         * modules/ldexpl (Depends-on): Likewise.
5913         * modules/link (Depends-on): Likewise.
5914         * modules/linkat (Depends-on): Likewise.
5915         * modules/listen (Depends-on): Likewise.
5916         * modules/logl (Depends-on): Likewise.
5917         * modules/lstat (Depends-on): Likewise.
5918         * modules/mbrlen (Depends-on): Likewise.
5919         * modules/mbrtowc (Depends-on): Likewise.
5920         * modules/mbsinit (Depends-on): Likewise.
5921         * modules/mbsnrtowcs (Depends-on): Likewise.
5922         * modules/mbsrtowcs (Depends-on): Likewise.
5923         * modules/mbtowc (Depends-on): Likewise.
5924         * modules/memcmp (Depends-on): Likewise.
5925         * modules/mkdir (Depends-on): Likewise.
5926         * modules/mkdtemp (Depends-on): Likewise.
5927         * modules/mkfifo (Depends-on): Likewise.
5928         * modules/mkfifoat (Depends-on): Likewise.
5929         * modules/mknod (Depends-on): Likewise.
5930         * modules/mkostemp (Depends-on): Likewise.
5931         * modules/mkostemps (Depends-on): Likewise.
5932         * modules/mkstemp (Depends-on): Likewise.
5933         * modules/mkstemps (Depends-on): Likewise.
5934         * modules/mktime (Depends-on): Likewise.
5935         * modules/nanosleep (Depends-on): Likewise.
5936         * modules/open (Depends-on): Likewise.
5937         * modules/openat (Depends-on): Likewise.
5938         * modules/perror (Depends-on): Likewise.
5939         * modules/poll (Depends-on): Likewise.
5940         * modules/popen (Depends-on): Likewise.
5941         * modules/posix_spawn (Depends-on): Likewise.
5942         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
5943         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
5944         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
5945         * modules/posix_spawnp (Depends-on): Likewise.
5946         * modules/pread (Depends-on): Likewise.
5947         * modules/printf-posix (Depends-on): Likewise.
5948         * modules/ptsname (Depends-on): Likewise.
5949         * modules/putenv (Depends-on): Likewise.
5950         * modules/pwrite (Depends-on): Likewise.
5951         * modules/readline (Depends-on): Likewise.
5952         * modules/readlink (Depends-on): Likewise.
5953         * modules/readlinkat (Depends-on): Likewise.
5954         * modules/recv (Depends-on): Likewise.
5955         * modules/recvfrom (Depends-on): Likewise.
5956         * modules/regex (Depends-on): Likewise.
5957         * modules/remove (Depends-on): Likewise.
5958         * modules/rename (Depends-on): Likewise.
5959         * modules/renameat (Depends-on): Likewise.
5960         * modules/rmdir (Depends-on): Likewise.
5961         * modules/round (Depends-on): Likewise.
5962         * modules/roundf (Depends-on): Likewise.
5963         * modules/roundl (Depends-on): Likewise.
5964         * modules/rpmatch (Depends-on): Likewise.
5965         * modules/select (Depends-on): Likewise.
5966         * modules/send (Depends-on): Likewise.
5967         * modules/sendto (Depends-on): Likewise.
5968         * modules/setenv (Depends-on): Likewise.
5969         * modules/setlocale (Depends-on): Likewise.
5970         * modules/setsockopt (Depends-on): Likewise.
5971         * modules/shutdown (Depends-on): Likewise.
5972         * modules/sigaction (Depends-on): Likewise.
5973         * modules/signbit (Depends-on): Likewise.
5974         * modules/sigprocmask (Depends-on): Likewise.
5975         * modules/sinl (Depends-on): Likewise.
5976         * modules/sleep (Depends-on): Likewise.
5977         * modules/snprintf (Depends-on): Likewise.
5978         * modules/snprintf-posix (Depends-on): Likewise.
5979         * modules/socket (Depends-on): Likewise.
5980         * modules/sprintf-posix (Depends-on): Likewise.
5981         * modules/sqrtl (Depends-on): Likewise.
5982         * modules/stat (Depends-on): Likewise.
5983         * modules/strchrnul (Depends-on): Likewise.
5984         * modules/strdup-posix (Depends-on): Likewise.
5985         * modules/strerror (Depends-on): Likewise.
5986         * modules/strerror_r-posix (Depends-on): Likewise.
5987         * modules/strndup (Depends-on): Likewise.
5988         * modules/strnlen (Depends-on): Likewise.
5989         * modules/strptime (Depends-on): Likewise.
5990         * modules/strsep (Depends-on): Likewise.
5991         * modules/strsignal (Depends-on): Likewise.
5992         * modules/strstr-simple (Depends-on): Likewise.
5993         * modules/strtod (Depends-on): Likewise.
5994         * modules/strtoimax (Depends-on): Likewise.
5995         * modules/strtok_r (Depends-on): Likewise.
5996         * modules/strtoumax (Depends-on): Likewise.
5997         * modules/symlink (Depends-on): Likewise.
5998         * modules/symlinkat (Depends-on): Likewise.
5999         * modules/tanl (Depends-on): Likewise.
6000         * modules/tcgetsid (Depends-on): Likewise.
6001         * modules/tmpfile (Depends-on): Likewise.
6002         * modules/trunc (Depends-on): Likewise.
6003         * modules/truncf (Depends-on): Likewise.
6004         * modules/truncl (Depends-on): Likewise.
6005         * modules/uname (Depends-on): Likewise.
6006         * modules/unlink (Depends-on): Likewise.
6007         * modules/unlockpt (Depends-on): Likewise.
6008         * modules/unsetenv (Depends-on): Likewise.
6009         * modules/usleep (Depends-on): Likewise.
6010         * modules/utimensat (Depends-on): Likewise.
6011         * modules/vasprintf (Depends-on): Likewise.
6012         * modules/vdprintf (Depends-on): Likewise.
6013         * modules/vdprintf-posix (Depends-on): Likewise.
6014         * modules/vfprintf-posix (Depends-on): Likewise.
6015         * modules/vprintf-posix (Depends-on): Likewise.
6016         * modules/vsnprintf (Depends-on): Likewise.
6017         * modules/vsnprintf-posix (Depends-on): Likewise.
6018         * modules/vsprintf-posix (Depends-on): Likewise.
6019         * modules/wcrtomb (Depends-on): Likewise.
6020         * modules/wcscasecmp (Depends-on): Likewise.
6021         * modules/wcscspn (Depends-on): Likewise.
6022         * modules/wcsdup (Depends-on): Likewise.
6023         * modules/wcsncasecmp (Depends-on): Likewise.
6024         * modules/wcsnrtombs (Depends-on): Likewise.
6025         * modules/wcspbrk (Depends-on): Likewise.
6026         * modules/wcsrtombs (Depends-on): Likewise.
6027         * modules/wcsspn (Depends-on): Likewise.
6028         * modules/wcsstr (Depends-on): Likewise.
6029         * modules/wcstok (Depends-on): Likewise.
6030         * modules/wcswidth (Depends-on): Likewise.
6031         * modules/wctob (Depends-on): Likewise.
6032         * modules/wctomb (Depends-on): Likewise.
6033         * modules/wctype (Depends-on): Likewise.
6034         * modules/wcwidth (Depends-on): Likewise.
6035         * modules/write (Depends-on): Likewise.
6036
6037 2011-05-03  Bruno Haible  <bruno@clisp.org>
6038
6039         Support for conditional dependencies.
6040         * doc/gnulib.texi (Module description): Document the syntax of
6041         conditional dependencies.
6042         * gnulib-tool: New option --conditional-dependencies.
6043         (func_usage): Document it.
6044         (cond_dependencies): New variable.
6045         (func_get_automake_snippet_conditional,
6046         func_get_automake_snippet_unconditional): New functions, extracted from
6047         func_get_automake_snippet.
6048         (func_get_automake_snippet): Use them.
6049         (sed_first_32_chars): New variable.
6050         (func_module_shellfunc_name): New function.
6051         (func_module_shellvar_name): New function.
6052         (func_module_conditional_name): New function.
6053         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
6054         func_cond_module_condition): New functions.
6055         (func_modules_transitive_closure): Add support for conditional
6056         dependencies.
6057         (func_emit_lib_Makefile_am): For a conditional module, enclose the
6058         conditional automake snippet in an automake conditional.
6059         (func_emit_autoconf_snippets): Emit shell functions that contain the
6060         code for conditional modules.
6061         (func_import, func_create_testdir): Update specification.
6062
6063 2011-05-03  Eric Blake  <eblake@redhat.com>
6064
6065         test-getaddrinfo: report error information
6066         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
6067
6068 2011-05-03  Jim Meyering  <meyering@redhat.com>
6069
6070         bootstrap: avoid build failure when $GZIP is set
6071         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
6072         program name.  If defined at all, it is supposed to list gzip options.
6073         Reported by Alan Curry in http://debbugs.gnu.org/8609
6074
6075 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
6076
6077         readme-release: new module with release instructions
6078         * modules/readme-release: New module.
6079         * top/README-release: New file, from coreutils, grep, diffutils.
6080         * MODULES.html.sh (Support for maintaining and releasing): Add it.
6081
6082 2011-05-02  Eric Blake  <eblake@redhat.com>
6083
6084         fflush: also replace fclose when fixing fflush
6085         * modules/fflush (Depends-on): Add fclose.
6086         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
6087         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
6088         memstreams with no backing fd.
6089         * doc/posix-functions/fclose.texi (fclose): Document the use of
6090         fflush module to fix the bug.
6091         * tests/test-fclose.c (main): Relax test when fclose is used in
6092         isolation.
6093
6094         fclose: add some tests
6095         * modules/fclose-tests: New test module.
6096         * tests/test-fclose.c: New file.
6097         * doc/posix-functions/fclose.texi (fclose): Document the bug.
6098
6099         fclose: reduced dependencies
6100         * modules/fclose (Depends-on): Switch from fflush/fseeko to
6101         simpler lseek.
6102         * lib/fclose.c (rpl_fclose): Likewise.
6103         Reported by Simon Josefsson.
6104
6105         exit: drop remaining clients
6106         * modules/argmatch (Depends-on): Replace exit with stdlib.
6107         * modules/copy-file (Depends-on): Likewise.
6108         * modules/execute (Depends-on): Likewise.
6109         * modules/exitfail (Depends-on): Likewise.
6110         * modules/obstack (Depends-on): Likewise.
6111         * modules/pagealign_alloc (Depends-on): Likewise.
6112         * modules/pipe-filter-gi (Depends-on): Likewise.
6113         * modules/pipe-filter-ii (Depends-on): Likewise.
6114         * modules/savewd (Depends-on): Likewise.
6115         * modules/spawn-pipe (Depends-on): Likewise.
6116         * modules/wait-process (Depends-on): Likewise.
6117         * modules/xsetenv (Depends-on): Likewise.
6118         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
6119         * modules/git-merge-changelog (Depends-on): Likewise.
6120         * modules/long-options (Depends-on): Likewise.
6121         * modules/pt_chown (Depends-on): Likewise.
6122         * modules/sysexits (Depends-on): Likewise.
6123
6124         freading: relax license from LGPLv3+ to LGPLv2+
6125         * modules/freading (License): Relax LGPL version.
6126
6127 2011-05-02  Bruno Haible  <bruno@clisp.org>
6128
6129         fchdir: Remove unused dependencies.
6130         * modules/fchdir (Depends-on): Remove include_next.
6131
6132 2011-05-02  Bruno Haible  <bruno@clisp.org>
6133
6134         gnulib-tool: Refactor.
6135         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
6136         from func_emit_autoconf_snippets.
6137         (func_emit_autoconf_snippets): Use it.
6138
6139 2011-05-02  Simon Josefsson  <simon@josefsson.org>
6140
6141         * NEWS: Document removal of 'exit'.
6142         * modules/exit: Remove file.
6143
6144 2011-05-01  Bruno Haible  <bruno@clisp.org>
6145
6146         Update DEPENDENCIES.
6147         * DEPENDENCIES (gettext): Recommend the newest release.
6148         Reported by Simon Josefsson.
6149
6150 2011-05-01  Bruno Haible  <bruno@clisp.org>
6151
6152         gnulib-tool: Reduce code duplication.
6153         * gnulib-tool (func_emit_autoconf_snippets): New function.
6154         (func_import, func_create_testdir): Use it.
6155
6156 2011-04-30  Eric Blake  <eblake@redhat.com>
6157
6158         fclose: don't fail on non-seekable input stream
6159         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
6160         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
6161         since fflush is allowed to fail in that case.
6162
6163 2011-04-30  Bruno Haible  <bruno@clisp.org>
6164
6165         dup3: cleanup
6166         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
6167
6168 2011-04-30  Bruno Haible  <bruno@clisp.org>
6169
6170         netdb: Make it work in C++ mode.
6171         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
6172         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
6173         module.
6174         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
6175         gl_MODULE_INDICATOR_FOR_TESTS.
6176         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
6177         * modules/netdb-c++-tests: New file.
6178         * tests/test-netdb-c++.cc: New file.
6179
6180 2011-04-30  Bruno Haible  <bruno@clisp.org>
6181
6182         New modules 'vfscanf', 'vscanf'.
6183         * modules/vfscanf: New file.
6184         * modules/vscanf: New file.
6185         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
6186         here.
6187         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
6188         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
6189
6190 2011-04-30  Bruno Haible  <bruno@clisp.org>
6191
6192         passfd: Add comments.
6193         * lib/passfd.c: Add comments about platforms.
6194
6195 2011-04-30  Bruno Haible  <bruno@clisp.org>
6196
6197         sys_uio: Make <sys/uio.h> self-contained.
6198         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
6199         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
6200
6201 2011-04-30  Bruno Haible  <bruno@clisp.org>
6202
6203         sys_socket: Ensure 'struct iovec' definition.
6204         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
6205         <sys/socket.h>.
6206         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
6207
6208 2011-04-30  Bruno Haible  <bruno@clisp.org>
6209
6210         sys_uio: Protect definition of 'struct iovec'.
6211         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
6212         it as a C struct.
6213
6214 2011-04-30  Bruno Haible  <bruno@clisp.org>
6215
6216         manywarnings: fix indentation
6217         * m4/manywarnings.m4: Indent by 2 spaces consistently.
6218
6219 2011-04-30  Pádraig Brady <P@draigBrady.com>
6220
6221         manywarnings: add -Wno-missing-field-initializers if needed.
6222         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
6223         option if it's needed to allow initialization with { 0, }
6224
6225 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
6226
6227         announce-gen: cosmetic improvement
6228         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
6229
6230 2011-04-29  Jim Meyering  <meyering@redhat.com>
6231
6232         vc-list-files: indent with spaces, not TABs
6233         * build-aux/vc-list-files: Convert leading TABs to spaces,
6234         to match the style of most other files in gnulib.
6235
6236         announce-gen: indent with spaces, not TABs
6237         * build-aux/announce-gen: Convert all TABs to spaces, to match
6238         the style of most other files in gnulib.
6239
6240 2011-04-29  Eric Blake  <eblake@redhat.com>
6241
6242         quotearg: avoid uninitialized variable use
6243         * lib/quotearg.c (quoting_options_from_style): Initialize
6244         remaining fields, and ensure that custom styles are only used via
6245         quoting_options rather than quoting_style.
6246
6247 2011-04-29  Jim Meyering  <meyering@redhat.com>
6248
6249         maint.mk: remove unused VC-tag variable
6250         * top/maint.mk (VC-tag): Remove unused variable.
6251
6252 2011-04-29  Bruno Haible  <bruno@clisp.org>
6253
6254         netdb: fix gai_strerror replacements
6255         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
6256         * modules/netdb: Substitute it.
6257
6258 2011-04-29  Jim Meyering  <meyering@redhat.com>
6259
6260         test-getcwd.c: avoid new set-but-not-used warning
6261         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
6262         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
6263         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
6264         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
6265
6266         test-hash.c: avoid a new shadowing warning
6267         * tests/test-hash.c (main): Don't shadow "dup".
6268
6269 2011-04-28  Eric Blake  <eblake@redhat.com>
6270
6271         getaddrinfo: fix gai_strerror signature
6272         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
6273         and work around mingw with UNICODE defined.
6274         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
6275         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
6276         * modules/netdb (Makefile.am): Substitute it.
6277         * lib/netdb.in.h (gai_strerror): Declare replacement.
6278         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
6279         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
6280         the fix.
6281
6282         getsockopt: avoid compiler warning
6283         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
6284         Reported by Matthias Bolte.
6285
6286         tests: drop unused link dependency
6287         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
6288         * modules/dirent-safer-tests (Makefile.am): Likewise.
6289         * modules/fdopendir-tests (Makefile.am): Likewise.
6290         * modules/mkfifoat-tests (Makefile.am): Likewise.
6291         * modules/openat-safer-tests (Makefile.am): Likewise.
6292         * modules/openat-tests (Makefile.am): Likewise.
6293         * modules/readlinkat-tests (Makefile.am): Likewise.
6294         * modules/symlinkat-tests (Makefile.am): Likewise.
6295         * modules/linkat-tests (Makefile.am): Likewise.
6296         (Depends-on): Switch to filenamecat-lgpl.
6297         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
6298         LIBINTL.
6299         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
6300         * tests/test-linkat.c (main): Don't require xalloc.
6301
6302         hash, mgetgroups: drop xalloc dependency
6303         * lib/hash.c (includes): Adjust includes.
6304         * lib/mgetgroups.c (includes): Likewise.
6305         (xgetgroups): Move...
6306         * lib/xgetgroups.c: ...to new file.
6307         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
6308         * modules/xgetgroups: New file, split from...
6309         * modules/mgetgroups: ...here.
6310         (Depends-on): Add xalloc-oversized.
6311         * modules/hash (Depends-on): Likewise.
6312         * modules/hash-tests (Depends-on): Drop xalloc.
6313         (test_hash_LDADD): Drop unused library.
6314         * tests/test-hash.c (main): Break xalloc dependency.
6315         (includes): Drop unused include.
6316
6317         xalloc-oversized: new module
6318         * modules/xalloc-oversized: New module.
6319         * modules/xalloc (Depends-on): Add it.
6320         * lib/xalloc.h (xalloc_oversized): Move...
6321         * lib/xalloc-oversized.h: ...into new file.
6322
6323         utimecmp: drop dependency on xmalloc
6324         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
6325         due to memory pressure.
6326         * modules/utimecmp (Depends-on): Drop xalloc.
6327
6328 2011-04-27  Eric Blake  <eblake@redhat.com>
6329
6330         getcwd: fix mingw bugs
6331         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
6332         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
6333         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
6334
6335 2011-04-27  Bruno Haible  <bruno@clisp.org>
6336
6337         mkstemps: Ensure declaration on MacOS X 10.5.
6338         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
6339         * doc/glibc-functions/mkstemps.texi: Document header file problem on
6340         MacOS X.
6341
6342 2011-04-27  Bruno Haible  <bruno@clisp.org>
6343
6344         mkstemp: More documentation.
6345         * doc/posix-functions/mkstemp.texi: Document header file problem on
6346         MacOS X.
6347
6348 2011-04-27  Bruno Haible  <bruno@clisp.org>
6349
6350         mkstemp: Tweak configure message when cross-compiling.
6351         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
6352         result as a guess.
6353
6354 2011-04-27  Bruno Haible  <bruno@clisp.org>
6355
6356         clean-temp: Clarify what it does.
6357         * lib/clean-temp.h: Add more comments.
6358         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
6359         module.
6360         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
6361         * doc/glibc-functions/mkstemps.texi: Likewise.
6362         * doc/glibc-functions/mkostemps.texi: Likewise.
6363
6364 2011-04-27  Eric Blake  <eblake@redhat.com>
6365
6366         fchdir: avoid extra chdir and fix test
6367         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
6368         getcwd-lgpl.
6369         * lib/fchdir.c (get_name): Any absolute name will do; it does not
6370         have to be canonical.
6371         (canonicalize_file_name): Drop unused macro.
6372         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
6373
6374         filenamecat-lgpl: fix licence
6375         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
6376         when it was first created.
6377
6378         linkat, renameat: add missing dependency
6379         * modules/linkat (Depends-on): Require getcwd-lgpl.
6380         * modules/renameat (Depends-on): Likewise.
6381
6382         tests: reduce dependencies
6383         * tests/test-linkat.c (main): Use lighter-weight getcwd.
6384         * tests/test-renameat.c (main): Likewise.
6385         * modules/linkat-tests (Depends-on): Relax dependency.
6386         * modules/renameat-tests (Depends-on): Likewise.
6387         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
6388         dependency explicit.
6389
6390         save-cwd: reduce default dependency
6391         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
6392         * lib/save-cwd.c: Update comments.
6393         * NEWS: Document the semantic change.
6394
6395         getcwd: enhance tests
6396         * tests/test-getcwd-lgpl.c: New file, taken from...
6397         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
6398         repeat long path stress tests from m4 probe.
6399         * modules/getcwd-lgpl-tests: New module.
6400         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
6401         * m4/getcwd-abort-bug.m4: Update comment.
6402         * m4/getcwd-path-max.m4: Likewise.
6403
6404         getcwd-lgpl: new module
6405         * modules/getcwd-lgpl: New module.
6406         * lib/getcwd-lgpl.c: New file.
6407         * doc/posix-functions/getcwd.texi (getcwd): Document it.
6408         * MODULES.html.sh (lacking POSIX:2008): Likewise.
6409         * modules/getcwd (configure.ac): Set C witness.
6410         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
6411
6412         getcwd: tweak comments
6413         * m4/getcwd-abort-bug.m4: Fix comments.
6414         * m4/getcwd-path-max.m4: Likewise.
6415         * m4/getcwd.m4: Likewise.
6416
6417 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
6418         and Eric Blake  <eblake@redhat.com>
6419
6420         mkstemp: replace if system version uses wrong permissions
6421         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
6422         read/write mode bits set in file created by mkstemp.
6423         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
6424
6425 2011-04-27  Eric Blake  <eblake@redhat.com>
6426
6427         passfd: avoid compiler warning
6428         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
6429         Reported by Laine Stump.
6430
6431 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
6432
6433         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
6434         required by the NetBSD (and perhaps other 4.4BSD derived) join.
6435
6436 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
6437         and Eric Blake  <eblake@redhat.com>
6438
6439         mkstemp: mention clean-temp module
6440         * lib/mkstemp.c: Add comment.
6441         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
6442
6443 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
6444
6445         inttypes: also provide default values for 32-bit tests
6446         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
6447         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
6448
6449 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
6450
6451         strtoumax: remove dependency on strtoimax
6452         This is like the strtoull change of yesterday.
6453         * modules/strtoumax (Files): Add lib/strtoimax.c.
6454         (Depends-on): Remove strtoimax and add verify.
6455
6456         inttypes-incomplete: new module
6457         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
6458         all but the PRI* and SCN* parts of gl_INTTYPES_H.
6459         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
6460         of gl_INTTYPES_H.
6461         (gl_INTTYPES_H): Rewrite in terms of these new macros.
6462         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
6463         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
6464         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
6465         * modules/strtoumax, modules/xstrtol (Depends-on):
6466         Depend on inttypes-incomplete, not inttypes.
6467         * modules/inttypes-incomplete: New module, containing the contents
6468         of the old modules/inttypes module, except that the Files: section
6469         omits m4/inttypes-pri.m4, and the configure.ac section invokes
6470         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
6471         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
6472         (Depends-on): Depend only on inttypes-incomplete.
6473         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
6474
6475         inttypes: omit now-redundant strtoimax and strtoumax work
6476         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
6477         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
6478
6479         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
6480         This supports apps that need pointers to strtoimax and strtoumax,
6481         and ports to HP-UX 11.00 64.bit, which has macros that expand to
6482         nonexistent functions.  See
6483         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
6484         et seq.
6485         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
6486         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
6487         a macro.
6488         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
6489
6490 2011-04-25  Simon Josefsson  <simon@josefsson.org>
6491
6492         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
6493
6494 2011-04-25  Bruno Haible  <bruno@clisp.org>
6495
6496         strtol, strtoul: Mark modules as obsolete.
6497         * modules/strtol (Status, Notice): New sections.
6498         * modules/strtoul (Status, Notice): New sections.
6499
6500 2011-04-25  Bruno Haible  <bruno@clisp.org>
6501
6502         strtod: Remove check for strtod, unless supporting old platforms.
6503         * modules/strtod-obsolete: New file.
6504         * m4/strtod-obsolete.m4: New file.
6505         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
6506         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
6507         * modules/strtod (Depends-on): Add strtod-obsolete.
6508         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
6509
6510 2011-04-25  Bruno Haible  <bruno@clisp.org>
6511
6512         strcase: Make module obsolete.
6513         * modules/strcase (Status, Notice): New sections.
6514
6515 2011-04-25  Bruno Haible  <bruno@clisp.org>
6516
6517         dup2: Remove check for dup2, unless supporting old obsolete platforms.
6518         * modules/dup2-obsolete: New file.
6519         * m4/dup2-obsolete.m4: New file.
6520         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
6521         gl_FUNC_DUP2_OBSOLETE is not also defined.
6522         * modules/dup2 (Depends-on): Add dup2-obsolete.
6523         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
6524
6525 2011-04-25  Bruno Haible  <bruno@clisp.org>
6526
6527         strnlen: Avoid memchr related link error on old obsolete platforms.
6528         * modules/memchr-obsolete: New file.
6529         * m4/memchr-obsolete.m4: New file.
6530         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
6531         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
6532         * modules/memchr (Depends-on): Add memchr-obsolete.
6533         * modules/strnlen (Depends-on): Likewise.
6534         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
6535
6536 2011-04-25  Jim Meyering  <meyering@redhat.com>
6537
6538         maint.mk: makefile_at_at_check extend and clean up
6539         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
6540         in addition to */Makefile.am.
6541         Exempt legitimate uses of @VAR@ notation, e.g.,
6542         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
6543         Remove obsolete coreutils-specific comment.
6544         Prompted by discussion here:
6545         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
6546
6547 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
6548
6549         strtoul: remove dependency on strtol
6550         This is so that 'configure' need not check for strtol merely because
6551         the application needs strtoul.
6552         * modules/strtoul (Files): Add lib/strtol.c.
6553         (Depends-on): Remove strtol.
6554
6555         strtoull: remove dependency on strtoul
6556         This is like the strtoll change.
6557         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
6558         (Depends-on): Remove strtoul.
6559
6560         strtoll: remove dependency on strtol
6561         This is so that 'configure' need not check for strtol merely because
6562         the application needs strtoll.
6563         * modules/strtoll (Files): Add lib/strtol.c.
6564         (Depends-on): Remove strtol.
6565
6566 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
6567
6568         inttypes: Move some configure check to module 'imaxdiv'.
6569         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
6570         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
6571         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
6572
6573 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
6574
6575         inttypes: Move some configure check to module 'imaxabs'.
6576         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
6577         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
6578         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
6579
6580 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
6581
6582         inttypes: Remove configure tests that are not needed since 2009-12-31.
6583         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
6584         gl_cv_header_working_inttypes_h.
6585
6586 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
6587
6588         * modules/strnlen (Depends-on): Remove memchr.
6589         The strnlen implementation doesn't need the memchr module's fixes; see
6590         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
6591
6592         strtol: remove dependency on wchar
6593         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
6594         * modules/strtol (Depends-on): Remove wchar.
6595
6596 2011-04-21  Eric Blake  <eblake@redhat.com>
6597
6598         passfd: fix test regression on Linux
6599         * modules/passfd-tests (configure.ac): Correct socketpair check.
6600
6601         passfd: speed up configure and drop unused code
6602         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
6603         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
6604         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
6605         Instead of probing at configure for unix_scm_rights_bsd44_way,
6606         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
6607         check to a struct member probe.
6608         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
6609         (sendfd, recvfd): Update preprocessor checks.
6610         * modules/passfd (Files): Reflect rename, and drop unused file.
6611         (Depends-on): Drop unused dependency.
6612
6613         passfd: allow compilation on mingw
6614         * modules/sys_socket (Depends-on): Add sys_uio.
6615         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
6616         iovec and a minimal struct msghdr.
6617         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
6618         * tests/test-sys_socket.c (main): Enhance test.
6619         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
6620         guaranteed to provide what we need.
6621         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
6622         * modules/passfd-tests (Depends-on): Add sys_wait.
6623         * tests/test-passfd.c (main): Skip test on mingw, for now.
6624         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
6625         partial 'struct msghdr' implementation.
6626
6627         sys_uio: new module
6628         * modules/sys_uio: New module.
6629         * modules/sys_uio-tests: Likewise.
6630         * lib/sys_uio.in.h: New file.
6631         * m4/sys_uio_h.m4: Likewise.
6632         * tests/test-sys_uio.c: Likewise.
6633         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
6634         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
6635
6636 2011-04-20  Jim Meyering  <meyering@redhat.com>
6637
6638         useless-if-before-free: avoid false-positive
6639         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
6640         disjunct so that it too requires a terminating ";".  Without that,
6641         this script would identify as useless one statement from gcc that
6642         was not:
6643           if (aligned_ptr)
6644             free (((void **) aligned_ptr) [-1]);
6645
6646 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
6647
6648         doc: update users.txt.
6649         * users.txt: Add barcode.
6650
6651 2011-04-19  Bruno Haible  <bruno@clisp.org>
6652
6653         ioctl: Remove link dependency on native Windows.
6654         * lib/fd-hook.h: Renamed from lib/close-hook.h.
6655         (gl_close_fn, gl_ioctl_fn): New types.
6656         (struct fd_hook): Renamed from struct close_hook. Change type of
6657         private_close_fn field. Add private_ioctl_fn field.
6658         (close_hook_fn): Add parameter for primary close method.
6659         (execute_close_hooks, execute_all_close_hooks): Likewise.
6660         (ioctl_hook_fn): New type.
6661         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
6662         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
6663         argument.
6664         (unregister_fd_hook): Renamed from unregister_close_hook.
6665         * lib/fd-hook.c: Renamed from lib/close-hook.c.
6666         Don't include <unistd.h>.
6667         (close): Remove undef.
6668         (anchor): Update.
6669         (execute_close_hooks): Add argument for primary close method.
6670         (execute_all_close_hooks): Likewise.
6671         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
6672         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
6673         argument. Allow each argument to be NULL.
6674         (unregister_fd_hook): Renamed from unregister_close_hook.
6675         * lib/close.c (rpl_close): Pass 'close' function pointer to
6676         execute_all_close_hooks.
6677         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
6678         (primary_ioctl): New function.
6679         (ioctl): Don't call ioctlsocket here. Instead, call
6680         execute_all_ioctl_hooks.
6681         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
6682         close method.
6683         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
6684         (fd_sockets_hook): Renamed from close_sockets_hook.
6685         (gl_sockets_startup, gl_sockets_cleanup): Update.
6686         * modules/fd-hook: Renamed from modules/close-hook. Update.
6687         * modules/close (Depends-on): Add fd-hook, remove close-hook.
6688         * modules/sockets (Depends-on): Likewise.
6689         * modules/ioctl (Depends-on): Add fd-hook.
6690         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
6691         GNULIB_SOCKET.
6692
6693 2011-04-19  Bruno Haible  <bruno@clisp.org>
6694
6695         Move the support of O_NONBLOCK in open() to the 'open' module.
6696         * modules/nonblocking (Depends-on): Remove 'open'.
6697         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
6698         gl_cv_have_open_O_NONBLOCK.
6699         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
6700         O_NONBLOCK support.
6701         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
6702
6703 2011-04-17  Bruno Haible  <bruno@clisp.org>
6704
6705         pipe2: Simplify code.
6706         * lib/pipe2.c (pipe2): Reduce code duplication.
6707
6708 2011-04-17  Bruno Haible  <bruno@clisp.org>
6709
6710         nonblocking: Add comment.
6711         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
6712
6713 2011-04-17  Bruno Haible  <bruno@clisp.org>
6714
6715         nonblocking: Add tests for sockets.
6716         * tests/test-nonblocking-socket.sh: New file.
6717         * tests/test-nonblocking-socket-main.c: New file.
6718         * tests/test-nonblocking-socket-child.c: New file.
6719         * tests/test-nonblocking-socket.h: New file.
6720         * tests/socket-server.h: New file.
6721         * tests/socket-client.h: New file.
6722         * modules/nonblocking-socket-tests: New file.
6723         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
6724
6725 2011-04-17  Bruno Haible  <bruno@clisp.org>
6726
6727         nonblocking: Add tests for pipes.
6728         * tests/test-nonblocking-pipe.sh: New file.
6729         * tests/test-nonblocking-pipe-main.c: New file.
6730         * tests/test-nonblocking-pipe-child.c: New file.
6731         * tests/test-nonblocking-pipe.h: New file.
6732         * tests/test-nonblocking-writer.h: New file.
6733         * tests/test-nonblocking-reader.h: New file.
6734         * tests/test-nonblocking-misc.h: New file.
6735         * modules/nonblocking-pipe-tests: New file.
6736         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
6737
6738 2011-04-16  Bruno Haible  <bruno@clisp.org>
6739
6740         gettext: Clarify the needed programmer actions.
6741         * modules/gettext (Notice): New field.
6742         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
6743
6744 2011-04-16  Bruno Haible  <bruno@clisp.org>
6745
6746         strchrnul: Tweak last commit.
6747         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
6748         bug.
6749         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
6750         as in _GL_FUNCDECL_SYS.
6751         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
6752         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
6753
6754 2011-04-15  Eric Blake  <eblake@redhat.com>
6755
6756         strchrnul: work around cygwin bug
6757         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
6758         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
6759         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
6760         * modules/string (Makefile.am): Substitute it.
6761         * lib/string.in.h (strchrnul): Use it.
6762
6763 2011-04-15  Bruno Haible  <bruno@clisp.org>
6764
6765         Don't require lib/stdio-write.c when only module 'stdio' is used.
6766         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
6767         invocation.
6768         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
6769
6770 2011-04-14  Bruno Haible  <bruno@clisp.org>
6771
6772         Support non-blocking pipe I/O in read() on native Windows.
6773         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
6774         (read): New declaration.
6775         * lib/read.c: New file.
6776         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
6777         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
6778         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
6779         vscanf): New declarations.
6780         * lib/stdio-read.c: New file.
6781         * m4/read.m4: New file.
6782         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
6783         REPLACE_READ.
6784         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
6785         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
6786         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
6787         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
6788         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
6789         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
6790         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
6791         * modules/read: New file.
6792         * modules/nonblocking (Files): Add lib/stdio-read.c.
6793         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
6794         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
6795         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
6796         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
6797         * modules/pread (Depends-on): Add read.
6798         * modules/safe-read (Depends-on): Likewise.
6799         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
6800         gets, scanf, vfscanf, vscanf): Verify signatures.
6801         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
6802         problem with non-blocking pipes.
6803         * doc/posix-functions/fgetc.texi: Likewise.
6804         * doc/posix-functions/fgets.texi: Likewise.
6805         * doc/posix-functions/fread.texi: Likewise.
6806         * doc/posix-functions/fscanf.texi: Likewise.
6807         * doc/posix-functions/getc.texi: Likewise.
6808         * doc/posix-functions/getchar.texi: Likewise.
6809         * doc/posix-functions/gets.texi: Likewise.
6810         * doc/posix-functions/scanf.texi: Likewise.
6811         * doc/posix-functions/vfscanf.texi: Likewise.
6812         * doc/posix-functions/vscanf.texi: Likewise.
6813
6814 2011-04-14  Bruno Haible  <bruno@clisp.org>
6815
6816         Support non-blocking pipe I/O in write() on native Windows.
6817         * lib/write.c (rpl_write): Split a write request that failed merely
6818         because the byte count was larger than the pipe buffer's size.
6819         * doc/posix-functions/write.texi: Mention the problem with large byte
6820         counts.
6821
6822 2011-04-14  Bruno Haible  <bruno@clisp.org>
6823
6824         wchar: Ensure that wchar_t gets defined on uClibc.
6825         * lib/wchar.in.h: On uClibc, include <stddef.h>.
6826         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
6827
6828 2011-04-13  Bruno Haible  <bruno@clisp.org>
6829
6830         safe-write, full-read: Avoid unnecessary compilation units.
6831         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
6832         (Depends-on): Remove safe-read. Add ssize_t.
6833         * modules/full-read (Files): Add lib/full-write.c.
6834         (Depends-on): Add full-write.
6835
6836 2011-04-13  Bruno Haible  <bruno@clisp.org>
6837
6838         Support non-blocking pipe I/O and SIGPIPE in pwrite().
6839         * modules/pwrite (Depends-on): Add 'write'.
6840
6841 2011-04-13  Bruno Haible  <bruno@clisp.org>
6842
6843         Support non-blocking pipe I/O in write() on native Windows.
6844         * lib/unistd.in.h (write): Enable replacement also if
6845         GNULIB_UNISTD_H_NONBLOCKING is 1.
6846         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
6847         (rpl_write): When failing to write on a non-blocking pipe, change
6848         errno from ENOSPC to EAGAIN.
6849         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
6850         putchar, puts, vfprintf, vprintf): Enable replacement also if
6851         GNULIB_STDIO_H_NONBLOCKING is 1.
6852         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
6853         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
6854         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
6855         CALL_WITH_SIGPIPE_EMULATION.
6856         (CALL_WITH_SIGPIPE_EMULATION): Use them.
6857         * m4/nonblocking.m4: New file.
6858         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
6859         for non-blocking I/O support.
6860         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
6861         GNULIB_UNISTD_H_NONBLOCKING.
6862         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
6863         required for non-blocking I/O support.
6864         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
6865         * modules/nonblocking (Files): Add m4/nonblocking.m4,
6866         lib/stdio-write.c, m4/asm-underscore.m4.
6867         (Depends-on): Add stdio, unistd.
6868         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
6869         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
6870         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
6871         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
6872         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
6873         problem with non-blocking pipes.
6874         * doc/posix-functions/fputc.texi: Likewise.
6875         * doc/posix-functions/fputs.texi: Likewise.
6876         * doc/posix-functions/fwrite.texi: Likewise.
6877         * doc/posix-functions/printf.texi: Likewise.
6878         * doc/posix-functions/putc.texi: Likewise.
6879         * doc/posix-functions/putchar.texi: Likewise.
6880         * doc/posix-functions/puts.texi: Likewise.
6881         * doc/posix-functions/vfprintf.texi: Likewise.
6882         * doc/posix-functions/vprintf.texi: Likewise.
6883         * doc/posix-functions/write.texi: Likewise.
6884
6885 2011-04-10  Jim Meyering  <meyering@redhat.com>
6886
6887         maint.mk: prohibit doubled words
6888         Detect them also when they're separated by a newline.
6889         There are 3 ways to customize it:
6890           - disable the test on a per file basis, as usual with rules using
6891             $(VC_LIST_EXCEPT)
6892           - replace the default doubled-word-selecting regexp (affects all files)
6893           - ignore a particular file-vs-doubled-word match
6894         I nearly used that last one to ignore the "is is" match in
6895         coreutils' NEWS file, since the text was "ls -is is ..."
6896         To do that, I would have added this line to cfg.mk:
6897           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
6898         but it would have ignored any "is is" match in NEWS.
6899         Low probability, but still...
6900         Instead, I changed the text, slightly:
6901           -  ls -is is now consistent with ls -lis in ignoring values returned
6902           +  "ls -is" is now consistent with ls -lis in ignoring values returned
6903         * top/maint.mk (prohibit_double_word_RE_): Provide default.
6904         (prohibit_doubled_word_): Define.
6905         (sc_prohibit_doubled_word): New rule.
6906         (sc_prohibit_the_the): Remove.  Subsumed by the above.
6907
6908 2011-04-10  Jim Meyering  <meyering@redhat.com>
6909
6910         maint: fix doubled-word typo in comment
6911         * m4/gethostname.m4: s/is is/it is/
6912         * m4/getdomainname.m4: Likewise.
6913
6914 2011-04-10  Jim Meyering  <meyering@redhat.com>
6915
6916         maint: remove doubled word: s/it it/it/
6917         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
6918
6919 2011-04-10  Jim Meyering  <meyering@redhat.com>
6920
6921         maint.mk: remove useless semicolon and backslash
6922         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
6923         semicolon and backslash.
6924
6925 2011-04-10  Bruno Haible  <bruno@clisp.org>
6926
6927         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
6928         * modules/stdint-tests (Depends-on): Add wchar.
6929
6930 2011-04-10  Jim Meyering  <meyering@redhat.com>
6931
6932         maint: remove doubled words in comments, e.g., s/a a/a/
6933         * lib/strptime.c (day_of_the_week): s/the the/the/
6934         * tests/test-chown.h (test_chown): s/a a/a/
6935
6936         test-chown.h: correct a cast
6937         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
6938         when the destination is a stat.st_gid.
6939
6940 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
6941
6942         getaddrinfo: Fix test for sa_len member.
6943         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
6944         include <sys/types.h> before <sys/socket.h>.
6945
6946 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
6947
6948         maint: change "can not" to "cannot"
6949         * doc/posix-functions/iconv.texi (iconv): This one crossed line
6950         boundaries.
6951
6952 2011-04-09  Jim Meyering  <meyering@redhat.com>
6953
6954         maint: change "a a" to "a"
6955         * tests/test-lchown.h (test_lchown): s/a a/a/
6956
6957         maint.mk: prohibit \<the the\>
6958         * top/maint.mk (sc_prohibit_the_the): New rule.
6959
6960         maint: fix "the the" in comment
6961         * lib/count-one-bits.h: s/the the/the/
6962
6963         maint: change "can not" to "cannot"
6964         But do not change the occurrences in maintain.texi or in
6965         build-aux/po/Makefile.in.in, which I presume comes from gettext.
6966         * doc/gnulib-tool.texi: s/can not/cannot/
6967         * doc/posix-functions/accept.texi (accept): Likewise.
6968         * doc/posix-functions/socket.texi (socket): Likewise.
6969         * lib/mbrtowc.c: Likewise.
6970
6971         maint.mk: prohibit use of "can not"
6972         * top/maint.mk (sc_prohibit_can_not): New rule.
6973         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
6974
6975 2011-04-09  Bruno Haible  <bruno@clisp.org>
6976
6977         careadlinkat: Guard against misuse of careadlinkatcwd.
6978         * lib/careadlinkat.c: Include <stdlib.h>.
6979         (careadlinkatcwd): Check that the fd argument is as expected.
6980
6981 2011-04-09  Bruno Haible  <bruno@clisp.org>
6982
6983         careadlinkat: Use common coding style.
6984         * lib/careadlinkat.c: Move gnulib includes after system includes.
6985
6986 2011-04-09  Bruno Haible  <bruno@clisp.org>
6987
6988         careadlinkat: Clarify specification.
6989         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
6990         (careadlinkatcwd): Add comment.
6991         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
6992
6993 2011-04-09  Bruno Haible  <bruno@clisp.org>
6994
6995         areadlinkat: Avoid link error on many platforms.
6996         * modules/areadlinkat (Depends-on): Add areadlink.
6997
6998 2011-04-09  Bruno Haible  <bruno@clisp.org>
6999
7000         allocator, careadlinkat: Fix double-inclusion guard.
7001         * lib/allocator.h: Fix double-inclusion guard.
7002         * lib/careadlinkat.h: Likewise.
7003
7004 2011-04-09  Bruno Haible  <bruno@clisp.org>
7005
7006         relocatable-prog-wrapper: Update after module 'areadlink' changed.
7007         * lib/relocwrapper.c: Update dependencies hierarchy.
7008         * build-aux/install-reloc: Update list of files to be compiled.
7009         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
7010         lib/allocator.[hc].
7011
7012 2011-04-08  Eric Blake  <eblake@redhat.com>
7013
7014         strftime: silence gnulib-tool warning
7015         * modules/strftime-tests (Depends-on): Drop automatic dependency.
7016
7017 2011-04-08  Bruno Haible  <bruno@clisp.org>
7018
7019         verify: Fix syntax error with GCC 4.6 in C++ mode.
7020         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
7021         (HAVE_STATIC_ASSERT): New macro.
7022         (verify_true, verify): Use 'static_assert' if it is supported and
7023         '_Static_assert' is not supported.
7024
7025 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
7026
7027         allocator: New module.
7028         * modules/allocator, lib/allocator.c: New files.
7029         * lib/allocator.h (stdlib_allocator): New decl.
7030         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
7031         Remove.  Do not include <stdlib.h>.
7032         (careadlinkat): Use stdlib_allocator instead of rolling our own.
7033         * modules/careadlinkat (Files): Remove lib/allocator.h.
7034         (Depends-on): Add allocator.
7035
7036         stdlib: let modules use system malloc, realloc
7037         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
7038         if !_GL_USE_STDLIB_ALLOC.
7039         (malloc, realloc): Limit this change to a smaller scope.
7040
7041         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
7042         (malloc, realloc): Don't #undef; no longer needed.
7043         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
7044         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
7045         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
7046         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
7047         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
7048         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
7049         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
7050         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
7051
7052         careadlinkat: rename members to avoid problem
7053         * lib/allocator.h (struct allocator): Rename members from
7054         malloc/realloc to allocate/reallocate, to avoid problems if malloc
7055         and realloc are #define'd.  Reported by Eric Blake in
7056         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
7057         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
7058
7059 2011-04-08  Eric Blake  <eblake@redhat.com>
7060
7061         nonblocking: reduce dependency
7062         * tests/test-nonblocking.c: Only test sockets when in use.
7063         * modules/nonblocking-tests (Depends-on): Drop socket.
7064         (Makefile.am): Link even if sockets are not present.
7065         * modules/pipe2-tests (Makefile.am): Likewise.
7066         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
7067
7068         pipe2: fix O_NONBLOCK support on mingw
7069         * modules/pipe2 (Depends-on): Add nonblocking.
7070         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
7071         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
7072         * tests/test-nonblocking.c (main): Likewise.
7073         * modules/pipe2-tests (Makefile.am): Avoid link failure.
7074
7075         fcntl-h: fix O_ACCMODE on cygwin
7076         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
7077         * lib/fcntl.in.h (O_ACCMODE): Fix it.
7078
7079         pipe-filter: drop O_NONBLOCK workarounds
7080         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
7081         * modules/pipe-filter-ii (Depends-on): Likewise.
7082         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
7083
7084         nonblocking: provide O_NONBLOCK for mingw
7085         * modules/nonblocking (Depends-on): Add open.
7086         (configure.ac): Set new witness macro.
7087         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
7088         * modules/fcntl-h (Makefile.am): Substitute it.
7089         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
7090         nonblocking module is in use.
7091         * lib/nonblocking.c: Adjust portability test.
7092         * lib/open.c (open): Don't let native open see gnulib flag.
7093         * tests/test-fcntl-h.c (main): Enhance test.
7094         * tests/test-open.h (test_open): Likewise.
7095         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
7096
7097         careadlinkat: fix compilation error on mingw
7098         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
7099         within struct allocator.
7100
7101 2011-04-06  Eric Blake  <eblake@redhat.com>
7102
7103         binary-io: relicense under LGPLv2+
7104         * modules/binary-io (License): Relax to LGPLv2+.
7105         Requested for libvirt, and required by pipe2.
7106
7107 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
7108
7109         verify: use _Static_assert if available
7110         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
7111         (verify_true, verify): Use it if available.  This generates better
7112         diagnostics with GCC 4.6.0 and later.
7113
7114 2011-04-05  Bruno Haible  <bruno@clisp.org>
7115
7116         Remove leftover generated .h files after config.status changed.
7117
7118         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
7119         GL_GENERATE_ALLOCA_H.
7120         * modules/alloca-opt (Makefile.am): Remove alloca.h if
7121         GL_GENERATE_ALLOCA_H evaluates to false.
7122
7123         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
7124         GL_GENERATE_ARGZ_H.
7125         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
7126         evaluates to false.
7127
7128         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
7129         GL_GENERATE_BYTESWAP_H.
7130         * modules/byteswap (Makefile.am): Remove byteswap.h if
7131         GL_GENERATE_BYTESWAP_H evaluates to false.
7132
7133         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
7134         GL_GENERATE_ERRNO_H.
7135         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
7136         evaluates to false.
7137
7138         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
7139         GL_GENERATE_FLOAT_H.
7140         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
7141         evaluates to false.
7142
7143         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
7144         GL_GENERATE_FNMATCH_H.
7145         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
7146         GL_GENERATE_FNMATCH_H evaluates to false.
7147
7148         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
7149         GL_GENERATE_GLOB_H.
7150         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
7151         evaluates to false.
7152
7153         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
7154         automake conditional GL_GENERATE_ICONV_H.
7155         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
7156         evaluates to false.
7157
7158         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
7159         GL_GENERATE_NETINET_IN_H.
7160         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
7161         GL_GENERATE_NETINET_IN_H evaluates to false.
7162
7163         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
7164         conditional GL_GENERATE_PTHREAD_H.
7165         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
7166         * modules/pthread (Makefile.am): Remove pthread.h if
7167         GL_GENERATE_PTHREAD_H evaluates to false.
7168
7169         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
7170         GL_GENERATE_SCHED_H.
7171         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
7172         evaluates to false.
7173
7174         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
7175         conditional GL_GENERATE_SELINUX_CONTEXT_H.
7176         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
7177         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
7178
7179         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
7180         GL_GENERATE_STDARG_H.
7181         * modules/stdarg (Makefile.am): Remove stdarg.h if
7182         GL_GENERATE_STDARG_H evaluates to false.
7183
7184         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
7185         GL_GENERATE_STDBOOL_H.
7186         * modules/stdbool (Makefile.am): Remove stdbool.h if
7187         GL_GENERATE_STDBOOL_H evaluates to false.
7188
7189         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
7190         conditional GL_GENERATE_STDDEF_H.
7191         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
7192         * modules/stddef (Makefile.am): Remove stddef.h if
7193         GL_GENERATE_STDDEF_H evaluates to false.
7194
7195         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
7196         GL_GENERATE_STDINT_H.
7197         * modules/stdint (Makefile.am): Remove stdint.h if
7198         GL_GENERATE_STDINT_H evaluates to false.
7199
7200         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
7201         GL_GENERATE_SYSEXITS_H.
7202         * modules/sysexits (Makefile.am): Remove sysexits.h if
7203         GL_GENERATE_SYSEXITS_H evaluates to false.
7204
7205         Reported by Karl Berry and Ralf Wildenhues.
7206
7207 2011-04-05  Bruno Haible  <bruno@clisp.org>
7208
7209         Ensure to rebuild generated .h files when config.status has changed.
7210         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
7211         config.status.
7212         * modules/ctype (Makefile.am): Likewise.
7213         * modules/dirent (Makefile.am): Likewise.
7214         * modules/errno (Makefile.am): Likewise.
7215         * modules/fcntl-h (Makefile.am): Likewise.
7216         * modules/float (Makefile.am): Likewise.
7217         * modules/getopt-posix (Makefile.am): Likewise.
7218         * modules/glob (Makefile.am): Likewise.
7219         * modules/iconv-h (Makefile.am): Likewise.
7220         * modules/inttypes (Makefile.am): Likewise.
7221         * modules/langinfo (Makefile.am): Likewise.
7222         * modules/locale (Makefile.am): Likewise.
7223         * modules/math (Makefile.am): Likewise.
7224         * modules/netdb (Makefile.am): Likewise.
7225         * modules/netinet_in (Makefile.am): Likewise.
7226         * modules/poll-h (Makefile.am): Likewise.
7227         * modules/pthread (Makefile.am): Likewise.
7228         * modules/pty (Makefile.am): Likewise.
7229         * modules/sched (Makefile.am): Likewise.
7230         * modules/search (Makefile.am): Likewise.
7231         * modules/selinux-h (Makefile.am): Likewise.
7232         * modules/signal (Makefile.am): Likewise.
7233         * modules/spawn (Makefile.am): Likewise.
7234         * modules/stdarg (Makefile.am): Likewise.
7235         * modules/stdbool (Makefile.am): Likewise.
7236         * modules/stddef (Makefile.am): Likewise.
7237         * modules/stdint (Makefile.am): Likewise.
7238         * modules/stdio (Makefile.am): Likewise.
7239         * modules/stdlib (Makefile.am): Likewise.
7240         * modules/string (Makefile.am): Likewise.
7241         * modules/strings (Makefile.am): Likewise.
7242         * modules/sys_file (Makefile.am): Likewise.
7243         * modules/sys_ioctl (Makefile.am): Likewise.
7244         * modules/sys_select (Makefile.am): Likewise.
7245         * modules/sys_socket (Makefile.am): Likewise.
7246         * modules/sys_stat (Makefile.am): Likewise.
7247         * modules/sys_time (Makefile.am): Likewise.
7248         * modules/sys_times (Makefile.am): Likewise.
7249         * modules/sys_utsname (Makefile.am): Likewise.
7250         * modules/sys_wait (Makefile.am): Likewise.
7251         * modules/sysexits (Makefile.am): Likewise.
7252         * modules/termios (Makefile.am): Likewise.
7253         * modules/time (Makefile.am): Likewise.
7254         * modules/unistd (Makefile.am): Likewise.
7255         * modules/wchar (Makefile.am): Likewise.
7256         * modules/wctype-h (Makefile.am): Likewise.
7257         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
7258
7259 2011-04-05  Bruno Haible  <bruno@clisp.org>
7260
7261         pipe2: Relicense under LGPLv2+.
7262         * modules/pipe2 (License): Change to LGPLv2+.
7263         Requested by Eric Blake, for libvirt.
7264
7265 2011-04-05  Bruce Korb  <bkorb@gnu.org>
7266
7267         bootstrap: compute gnulib_extra_files after updating build_aux
7268         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
7269         change build_aux or also supply gnulib_extra_files.  Handle correctly.
7270
7271 2011-04-05  Eric Blake  <eblake@redhat.com>
7272
7273         bootstrap: preserve git whitelist item sorting
7274         * build-aux/bootstrap (sort_patterns): New function.
7275         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
7276
7277 2011-04-05  Simon Josefsson  <simon@josefsson.org>
7278
7279         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
7280         sc_space_tab check.
7281
7282 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
7283
7284         areadlink, areadlinkat: rewrite in terms of careadlinkat
7285         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
7286         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
7287         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
7288         (malloc, realloc): Remove #undefs.
7289         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
7290         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
7291         readlink, ssize_t, stdint, unistd.
7292         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
7293         areadlink, stdint.
7294
7295         careadlinkat: new module
7296         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
7297         * modules/careadlinkat: New files, written by me with
7298         a review and feedback from Ben Pfaff in
7299         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
7300
7301 2011-04-01  Bruno Haible  <bruno@clisp.org>
7302
7303         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
7304         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
7305         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
7306         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
7307         Reported by Bruce Korb <bruce.korb@gmail.com>.
7308
7309 2011-04-01  Bruno Haible  <bruno@clisp.org>
7310
7311         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
7312         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
7313         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
7314         * modules/wcpcpy (Depends-on): Add extensions.
7315         * modules/wcpncpy (Depends-on): Likewise.
7316         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
7317         systems.
7318         * doc/posix-functions/wcpncpy.texi: Likewise.
7319         * doc/posix-functions/wcwidth.texi: Likewise.
7320
7321 2011-03-31  Eric Blake  <eblake@redhat.com>
7322
7323         nonblocking: fix mingw test failures
7324         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
7325         non-blocking flag on regular file.
7326         (get_nonblocking_flag): Set errno on invalid fd.
7327         * tests/test-nonblocking.c (main): Avoid test failure on
7328         directories if fchdir is not active.
7329         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
7330
7331 2011-03-31  Bruno Haible  <bruno@clisp.org>
7332
7333         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
7334         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
7335         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
7336         Reported by Simon Josefsson <simon@josefsson.org>.
7337
7338 2011-03-31  Bruno Haible  <bruno@clisp.org>
7339         and Eric Blake  <eblake@redhat.com>
7340
7341         nonblocking: new module
7342         * modules/nonblocking: New module.
7343         * modules/nonblocking-tests: Likewise.
7344         * lib/nonblocking.h: New file.
7345         * lib/nonblocking.c: Likewise.
7346         * tests/test-nonblocking.c: New test.
7347         * lib/ioctl.c (ioctl) [mingw]: Update comment.
7348
7349 2011-03-30  Bruno Haible  <bruno@clisp.org>
7350
7351         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
7352         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
7353         instead of 'printf' format for GCC >= 4.4.
7354         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
7355         (fprintf, printf, vfprintf, vprintf): Declare with
7356         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
7357         the system's vfprintf() function.
7358         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
7359
7360 2011-03-30  Eric Blake  <eblake@redhat.com>
7361
7362         passfd: fix scoping bug
7363         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
7364         before sendmsg/recvmsg.
7365
7366         passfd: standardize coding conventions
7367         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
7368         can be learned at compile time.
7369         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
7370         ifdefs.
7371         (sendfd, recvfd): Follow gnulib code conventions.
7372
7373         passfd: fix incorrect sendmsg arguments
7374         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
7375         incorrect msg_controllen value.
7376         * modules/passfd-tests (Depends-on): Check for alarm.
7377         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
7378         Reported by Bastien ROUCARIES.
7379
7380 2011-03-30  Bruno Haible  <bruno@clisp.org>
7381
7382         c-strcasestr: Relicense under LGPLv2+.
7383         * modules/c-strcasestr (License): Change to LGPLv2+.
7384         Requested by Eric Blake, for libvirt.
7385
7386 2011-03-30  Simon Josefsson  <simon@josefsson.org>
7387
7388         * users.txt: Add libidn2.  Fix libtasn1 link.
7389
7390 2011-03-30  Jim Meyering  <meyering@redhat.com>
7391
7392         tests: readlink* ("",... fails with EINVAL on newer kernels
7393         readlink and readlinkat have typically failed with ENOENT for
7394         the invalid, empty file name,  "".  However, with the advent
7395         of linux-2.6.39, they fail with EINVAL.
7396         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
7397         when operating on the empty file name.
7398         * tests/test-readlink.h (test_readlink): Likewise.
7399
7400 2011-03-29  Bruno Haible  <bruno@clisp.org>
7401
7402         Relicense some modules under LGPLv2+, for libidn2.
7403         * modules/array-mergesort (License): Change to LGPLv2+.
7404         * modules/c-strcaseeq (License): Likewise.
7405         * modules/striconveh (License): Likewise.
7406         * modules/striconveha (License): Likewise.
7407         * modules/uniconv/base (License): Likewise.
7408         * modules/uniconv/u8-conv-from-enc (License): Likewise.
7409         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
7410         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
7411         * modules/unictype/base (License): Likewise.
7412         * modules/unictype/bidiclass-of (License): Likewise.
7413         * modules/unictype/category-M (License): Likewise.
7414         * modules/unictype/category-none (License): Likewise.
7415         * modules/unictype/category-of (License): Likewise.
7416         * modules/unictype/category-test (License): Likewise.
7417         * modules/unictype/category-test-withtable (License): Likewise.
7418         * modules/unictype/combining-class (License): Likewise.
7419         * modules/unictype/joiningtype-of (License): Likewise.
7420         * modules/unictype/scripts (License): Likewise.
7421         * modules/uninorm/base (License): Likewise.
7422         * modules/uninorm/canonical-decomposition (License): Likewise.
7423         * modules/uninorm/composition (License): Likewise.
7424         * modules/uninorm/decompose-internal (License): Likewise.
7425         * modules/uninorm/decomposition-table (License): Likewise.
7426         * modules/uninorm/nfc (License): Likewise.
7427         * modules/uninorm/nfd (License): Likewise.
7428         * modules/uninorm/u32-normalize (License): Likewise.
7429         * modules/unistr/base (License): Likewise.
7430         * modules/unistr/u32-cpy (License): Likewise.
7431         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
7432         * modules/unistr/u32-to-u8 (License): Likewise.
7433         * modules/unistr/u32-uctomb (License): Likewise.
7434         * modules/unistr/u8-check (License): Likewise.
7435         * modules/unistr/u8-mblen (License): Likewise.
7436         * modules/unistr/u8-mbtouc (License): Likewise.
7437         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
7438         * modules/unistr/u8-mbtoucr (License): Likewise.
7439         * modules/unistr/u8-prev (License): Likewise.
7440         * modules/unistr/u8-strlen (License): Likewise.
7441         * modules/unistr/u8-to-u32 (License): Likewise.
7442         * modules/unistr/u8-uctomb (License): Likewise.
7443         * modules/unitypes (License): Likewise.
7444         Requested by Simon Josefsson.
7445
7446 2011-03-29  Simon Josefsson  <simon@josefsson.org>
7447
7448         lib-symbol-visibility: Add a notice.
7449         * modules/lib-symbol-visibility (Notice): New field.
7450
7451 2011-03-29  Bruno Haible  <bruno@clisp.org>
7452
7453         getaddrinfo: Doc fix.
7454         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
7455         section "fixed in Gnulib".
7456
7457 2011-03-28  Simon Josefsson  <simon@josefsson.org>
7458
7459         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
7460         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
7461
7462 2011-03-26  Bruno Haible  <bruno@clisp.org>
7463
7464         unictype/property-byname: Reduce the number of load-time relocations.
7465         * lib/unictype/pr_byname.c: Include <stdlib.h>.
7466         (UC_PROPERTY_INDEX_*): New enumeration values.
7467         (uc_property_byname): Convert an index from the lookup table to an
7468         uc_property_t.
7469         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
7470         values.
7471
7472 2011-03-26  Bruno Haible  <bruno@clisp.org>
7473
7474         unictype/property-byname: Allow omitted word separators and aliases.
7475         * lib/unictype/pr_byname.gperf: Add property names without word
7476         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
7477         for 'space'.
7478
7479 2011-03-26  Bruno Haible  <bruno@clisp.org>
7480
7481         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
7482         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
7483         also hyphens to space.
7484         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
7485         without spaces.
7486         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
7487
7488 2011-03-26  Bruno Haible  <bruno@clisp.org>
7489
7490         unictype/joiningtype-byname: Recognize long names as well.
7491         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
7492         a long name.
7493         * lib/unictype/joiningtype_byname.c: Include <string.h>,
7494         unictype/joiningtype_byname.h.
7495         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
7496         * lib/unictype/joiningtype_byname.gperf: New file.
7497         * modules/unictype/joiningtype-byname (Files): Add
7498         lib/unictype/joiningtype_byname.gperf.
7499         (Depends-on): Add gperf.
7500         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
7501         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
7502         long names.
7503
7504         Tests for module 'unictype/joiningtype-longname'.
7505         * modules/unictype/joiningtype-longname-tests: New file.
7506         * tests/unictype/test-joiningtype_longname.c: New file.
7507
7508         New module 'unictype/joiningtype-longname'.
7509         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
7510         * lib/unictype/joiningtype_longname.c: New file.
7511         * modules/unictype/joiningtype-longname: New file.
7512         * modules/unictype/joiningtype-all (Depends-on): Add
7513         unictype/joiningtype-longname.
7514
7515 2011-03-26  Bruno Haible  <bruno@clisp.org>
7516
7517         unictype/bidiclass-byname: Recognize long names as well.
7518         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
7519         name.
7520         * lib/unictype/bidi_byname.c: Include <string.h>,
7521         unictype/bidi_byname.h.
7522         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
7523         * lib/unictype/bidi_byname.gperf: New file.
7524         * modules/unictype/bidiclass-byname (Files): Add
7525         lib/unictype/bidi_byname.gperf.
7526         (Depends-on): Add gperf.
7527         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
7528         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
7529         long names.
7530
7531         Tests for module 'unictype/bidiclass-longname'.
7532         * modules/unictype/bidiclass-longname-tests: New file.
7533         * tests/unictype/test-bidi_longname.c: New file.
7534
7535         New module 'unictype/bidiclass-longname'.
7536         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
7537         * lib/unictype/bidi_longname.c: New file.
7538         * modules/unictype/bidiclass-longname: New file.
7539         * modules/unictype/bidiclass-all (Depends-on): Add
7540         unictype/bidiclass-longname.
7541
7542 2011-03-26  Bruno Haible  <bruno@clisp.org>
7543
7544         unictype/bidi*: Rename modules.
7545         * modules/unictype/bidiclass-all: Renamed from
7546         modules/unictype/bidicategory-all.
7547         * modules/unictype/bidiclass-name: Renamed from
7548         modules/unictype/bidiclass-name.
7549         (Description): Update.
7550         * modules/unictype/bidiclass-name-tests: Renamed from
7551         modules/unictype/bidicategory-name-tests.
7552         * modules/unictype/bidiclass-byname: Renamed from
7553         modules/unictype/bidicategory-byname.
7554         (Description): Update.
7555         * modules/unictype/bidiclass-byname-tests: Renamed from
7556         modules/unictype/bidicategory-byname-tests.
7557         * modules/unictype/bidiclass-of: Renamed from
7558         modules/unictype/bidicategory-of.
7559         (Description): Update.
7560         * modules/unictype/bidiclass-of-tests: Renamed from
7561         modules/unictype/bidicategory-of-tests.
7562         * modules/unictype/bidiclass-test: Renamed from
7563         modules/unictype/bidicategory-test.
7564         (Description): Update.
7565         * modules/unictype/bidiclass-test-tests: Renamed from
7566         modules/unictype/bidicategory-test-tests.
7567         * modules/unictype/bidicategory-all: New file, a simple redirection.
7568         * modules/unictype/bidicategory-name: Likewise.
7569         * modules/unictype/bidicategory-byname: Likewise.
7570         * modules/unictype/bidicategory-of: Likewise.
7571         * modules/unictype/bidicategory-test: Likewise.
7572         * modules/unictype/property-bidi-* (Dependencies): Update.
7573         * lib/unictype/bidi_*.c: Update comment.
7574
7575 2011-03-26  Bruno Haible  <bruno@clisp.org>
7576
7577         unictype/bidi*: Rename functions, part 2.
7578         * modules/unictype/bidicategory-name (configure.ac): Update required
7579         libunistring version.
7580         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
7581
7582 2011-03-25  Bruno Haible  <bruno@clisp.org>
7583
7584         New module 'unictype/combining-class-all'.
7585         * modules/unictype/combining-class-all: New file.
7586
7587         Tests for module 'unictype/combining-class-byname'.
7588         * modules/unictype/combining-class-byname-tests: New file.
7589         * tests/unictype/test-combiningclass_byname.c: New file.
7590
7591         New module 'unictype/combining-class-byname'.
7592         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
7593         * lib/unictype/combiningclass_byname.c: New file.
7594         * lib/unictype/combiningclass_byname.gperf: New file.
7595         * modules/unictype/combining-class-byname: New file.
7596
7597         Tests for module 'unictype/combining-class-longname'.
7598         * modules/unictype/combining-class-longname-tests: New file.
7599         * tests/unictype/test-combiningclass_longname.c: New file.
7600
7601         New module 'unictype/combining-class-longname'.
7602         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
7603         * lib/unictype/combiningclass_longname.c: New file.
7604         * modules/unictype/combining-class-longname: New file.
7605
7606         Tests for module 'unictype/combining-class-name'.
7607         * modules/unictype/combining-class-name-tests: New file.
7608         * tests/unictype/test-combiningclass_name.c: New file.
7609
7610         New module 'unictype/combining-class-name'.
7611         * lib/unictype.in.h (uc_combining_class_name): New declaration.
7612         * lib/unictype/combiningclass_name.c: New file.
7613         * modules/unictype/combining-class-name: New file.
7614
7615 2011-03-25  Bruno Haible  <bruno@clisp.org>
7616
7617         unictype/combining-class: Rename source files.
7618         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
7619         of unictype/combining.h.
7620         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
7621         Update.
7622         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
7623         * modules/unictype/combining-class (Description): Fix.
7624         (Files, Makefile.am): Update.
7625         * tests/unictype/test-combiningclass.c: Renamed from
7626         tests/unictype/test-combining.c.
7627         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
7628
7629 2011-03-25  Bruno Haible  <bruno@clisp.org>
7630
7631         unictype: Update list of canonical combining classes.
7632         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
7633
7634 2011-03-25  Bruno Haible  <bruno@clisp.org>
7635
7636         unictype/category-byname: Recognize long names as well.
7637         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
7638         a long name.
7639         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
7640         unictype/categ_byname.h.
7641         (UC_CATEGORY_INDEX_*): New enumeration values.
7642         (uc_general_category_byname): Use uc_general_category_lookup and
7643         convert from index to value.
7644         * lib/unictype/categ_byname.gperf: New file.
7645         * modules/unictype/category-byname (Files): Add
7646         lib/unictype/categ_byname.gperf.
7647         (Depends-on): Add gperf.
7648         (Makefile.am): Add rule for generating unictype/categ_byname.h.
7649         * tests/unictype/test-categ_byname.c (main): Test the recognition of
7650         long names.
7651
7652         Tests for module 'unictype/category-longname'.
7653         * modules/unictype/category-longname-tests: New file.
7654         * tests/unictype/test-categ_longname.c: New file.
7655
7656         New module 'unictype/category-longname'.
7657         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
7658         * lib/unictype/categ_longname.c: New file.
7659         * modules/unictype/category-longname: New file.
7660         * modules/unictype/category-all (Depends-on): Add it.
7661
7662 2011-03-25  Bruno Haible  <bruno@clisp.org>
7663
7664         Tests for module 'unictype/category-LC'.
7665         * modules/unictype/category-LC-tests: New file.
7666         * tests/unictype/test-categ_LC.c: New file, automatically generated.
7667
7668         New module 'unictype/category-LC'.
7669         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
7670         (UC_CATEGORY_LC): New declaration.
7671         (UC_CASED_LETTER): New macro.
7672         * lib/gen-uni-tables.c (is_category_LC): New function.
7673         (output_categories): Also handle category LC.
7674         (UC_CATEGORY_MASK_LC): New enumeration value.
7675         (general_category_byname): Also handle category LC.
7676         * lib/unictype/categ_LC.c: New file.
7677         * lib/unictype/categ_LC.h: New file, automatically generated.
7678         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
7679         category LC.
7680         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
7681         * modules/unictype/category-LC: New file.
7682         * modules/unictype/category-byname (Depends-on): Add
7683         unictype/category-LC.
7684         * modules/unictype/category-all (Depends-on): Likewise.
7685
7686 2011-03-25  Eric Blake  <eblake@redhat.com>
7687
7688         xmalloc: revert yesterday's regression
7689         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
7690         realloc's underlying behavior (allowing allocation of zero-size
7691         objects, especially if malloc-gnu is also in use).
7692
7693 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
7694
7695         maint.mk: add missing version to VC-tag
7696         * top/maint.mk: git tag was missing actual tag name; add it.
7697
7698         valgrind: do leak checking, and exit with code 1 on error (not 0)
7699         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
7700         to VALGRIND.
7701
7702 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
7703
7704         posix-modules: say what it does.
7705         * posix-modules: Add a line to the --help output saying what it does.
7706
7707 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
7708
7709         xmalloc: Do not leak if underlying realloc is C99 compatible.
7710         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
7711         This avoids a leak on C99-based systems.  See
7712         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
7713
7714 2011-03-24  Eric Blake  <eblake@redhat.com>
7715
7716         realloc: document portability problem
7717         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
7718         passing 0 size to realloc.
7719
7720 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
7721
7722         doc: update users.txt
7723         * users.txt: Add cvsps, tmpwatch
7724
7725 2011-03-23  Matt Rice  <ratmice@gmail.com>
7726
7727         doc: update users.txt
7728         * users.txt: Add gdb.
7729
7730 2011-03-23  Jim Meyering  <meyering@redhat.com>
7731
7732         doc: update users.txt
7733         Looking through matches up to the following URL (there are still
7734         several more pages), I found several projects that use gnulib:
7735         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
7736         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
7737         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
7738
7739 2011-03-22  Bruno Haible  <bruno@clisp.org>
7740
7741         unictype/bidi*: Rename functions.
7742         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
7743         uc_bidi_class, uc_is_bidi_class): New declarations.
7744         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
7745         uc_bidi_category_byname.
7746         (uc_bidi_category_byname): New function.
7747         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
7748         u_bidi_category_name.
7749         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
7750         (uc_bidi_category_name): New function.
7751         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
7752         uc_bidi_category.
7753         (uc_bidi_category): New function.
7754         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
7755         uc_is_bidi_category. Invoke uc_bidi_class.
7756         (uc_is_bidi_category): New function.
7757         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
7758         instead of uc_bidi_category_byname.
7759         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
7760         instead of uc_bidi_category_name.
7761         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
7762         uc_bidi_category.
7763         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
7764         instead of uc_is_bidi_category.
7765
7766 2011-03-21  Bruno Haible  <bruno@clisp.org>
7767
7768         New module 'unictype/joininggroup-all'.
7769         * modules/unictype/joininggroup-all: New file.
7770
7771         Tests for module 'unictype/joininggroup-of'.
7772         * modules/unictype/joininggroup-of-tests: New file.
7773         * tests/unictype/test-joininggroup_of.c: New file.
7774         * tests/unictype/test-joininggroup_of.h: New file, automatically
7775         generated by gen-uni-tables.
7776
7777         New module 'unictype/joininggroup-of'.
7778         * modules/unictype/joininggroup-of: New file.
7779         * lib/unictype/joininggroup_of.c: New file.
7780         * lib/unictype/joininggroup_of.h: New file, automatically generated by
7781         gen-uni-tables.
7782
7783         Tests for module 'unictype/joininggroup-byname'.
7784         * modules/unictype/joininggroup-byname-tests: New file.
7785         * tests/unictype/test-joininggroup_byname.c: New file.
7786
7787         New module 'unictype/joininggroup-byname'.
7788         * modules/unictype/joininggroup-byname: New file.
7789         * lib/unictype/joininggroup_byname.c: New file.
7790         * lib/unictype/joininggroup_byname.gperf: New file.
7791
7792         Tests for module 'unictype/joininggroup-name'.
7793         * modules/unictype/joininggroup-name-tests: New file.
7794         * tests/unictype/test-joininggroup_name.c: New file.
7795
7796         New module 'unictype/joininggroup-name'.
7797         * modules/unictype/joininggroup-name: New file.
7798         * lib/unictype/joininggroup_name.c: New file.
7799         * lib/unictype/joininggroup_name.h: New file.
7800
7801         New module 'unictype/joiningtype-all'.
7802         * modules/unictype/joiningtype-all: New file.
7803
7804         Tests for module 'unictype/joiningtype-of'.
7805         * modules/unictype/joiningtype-of-tests: New file.
7806         * tests/unictype/test-joiningtype_of.c: New file.
7807         * tests/unictype/test-joiningtype_of.h: New file, automatically
7808         generated by gen-uni-tables.
7809
7810         New module 'unictype/joiningtype-of'.
7811         * modules/unictype/joiningtype-of: New file.
7812         * lib/unictype/joiningtype_of.c: New file.
7813         * lib/unictype/joiningtype_of.h: New file, automatically generated by
7814         gen-uni-tables.
7815
7816         Tests for module 'unictype/joiningtype-byname'.
7817         * modules/unictype/joiningtype-byname-tests: New file.
7818         * tests/unictype/test-joiningtype_byname.c: New file.
7819
7820         New module 'unictype/joiningtype-byname'.
7821         * modules/unictype/joiningtype-byname: New file.
7822         * lib/unictype/joiningtype_byname.c: New file.
7823
7824         Tests for module 'unictype/joiningtype-name'.
7825         * modules/unictype/joiningtype-name-tests: New file.
7826         * tests/unictype/test-joiningtype_name.c: New file.
7827
7828         New module 'unictype/joiningtype-name'.
7829         * modules/unictype/joiningtype-name: New file.
7830         * lib/unictype/joiningtype_name.c: New file.
7831
7832         unictype: Add support for Arabic shaping properties.
7833         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
7834         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
7835         declarations.
7836         (UC_JOINING_GROUP_*): New enumeration values.
7837         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
7838         declarations.
7839         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
7840         (unicode_joining_type): New variable.
7841         (UC_JOINING_GROUP_*): New enumeration values.
7842         (unicode_joining_group): New variable.
7843         (fill_arabicshaping, joining_type_as_c_identifier,
7844         output_joining_type_test, output_joining_type,
7845         joining_group_as_c_identifier, output_joining_group_test,
7846         output_joining_group): New functions.
7847         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
7848         fill_arabicshaping and output_joining_type_test, output_joining_type,
7849         output_joining_group_test, output_joining_group.
7850         Reported by Simon Josefsson.
7851
7852 2011-03-21  Jim Meyering  <meyering@redhat.com>
7853
7854         strftime: fix a bug in yesterday's change
7855         * lib/strftime.c (add): Accommodate width's initial value of -1.
7856         Otherwise, nstrftime would copy uninitialized data into
7857         the result buffer.
7858
7859 2011-03-21  Jim Meyering  <meyering@redhat.com>
7860
7861         tests: add strftime-tests module
7862         * tests/test-strftime.c: New file.
7863         * modules/strftime-tests: New module.
7864
7865 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
7866
7867         strftime: don't assume a byte count fits in 'int'
7868         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
7869         found this problem by static analysis, using gcc -Wstrict-overflow
7870         (GCC 4.5.2, x86-64).  This reported an optimization that depended
7871         on an integer overflow having undefined behavior, but it turns out
7872         that the argument is a size, which might not fit in 'int' anyway,
7873
7874 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
7875
7876         stdio: don't require ignore_value around fwrite
7877
7878         This patch works around libc bug 11959
7879         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
7880         Without this patch, applications must often write
7881         ignore_value (fwrite (...)) even though the ignore_value is
7882         not helpful here.  It's common to write many objects, using
7883         fwrite/printf/etc., and then use ferror to detect output error.
7884
7885         I considered making this patch optional, but decided against it,
7886         because libc is obviously being inconsistent here: there is no
7887         reason libc should insist that user code must inspect fwrite
7888         return's value without also insisting that it inspect printf's,
7889         putchar's, etc.  If user code wants to have a strict style where
7890         all these functions' values are checked (so that ferror need not
7891         be checked), we could add support for that style in a new gnulib
7892         module, but in the meantime it's better to be consistent and to
7893         support common usage.
7894
7895         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
7896         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
7897         that we are compiling in checking mode, and if not C++, and
7898         if not already wrapping fwrite for some other reason.
7899         (fwrite): #define to rpl_fwrite if the latter is defined.
7900
7901 2011-03-20  Bruno Haible  <bruno@clisp.org>
7902
7903         verror: Fix compilation error introduced on 2011-02-13.
7904         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
7905         instead of __attribute__.
7906         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7907
7908 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
7909             Bruno Haible  <bruno@clisp.org>
7910
7911         socklen: do not depend on sys_socket
7912         While trying to modify Emacs to use gnulib's socklen module,
7913         I discovered a circular dependency: socklen depends on sys_socket
7914         and vice versa.  Emacs can use socklen, but it does not need
7915         sys_socket because it has its own substitute for sys/socket.h.
7916         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
7917         gl_TYPE_SOCKLEN_T.
7918         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
7919         gl_PREREQ_SYS_H_SOCKET.
7920         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
7921         gl_PREREQ_SYS_H_SOCKET.
7922         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
7923         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
7924         * modules/socklen (Depends-on): Do not depend on sys_socket.
7925         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
7926
7927 2011-03-20  Jim Meyering  <meyering@redhat.com>
7928
7929         maint.mk: sort file names *after* new transformation
7930         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
7931         prefix would have led to an unwarranted failure in GNU parted.
7932         Sort after that transformation.
7933
7934 2011-03-19  Jim Meyering  <meyering@redhat.com>
7935
7936         maint.mk: fix po-file syntax-check rule
7937         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
7938         Patch by Bruno Haible.
7939
7940 2011-03-19  Bruno Haible  <bruno@clisp.org>
7941
7942         socklen: Update comment.
7943         * m4/socklen.m4: Update comment about platforms.
7944
7945 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
7946             Bruno Haible  <bruno@clisp.org>
7947
7948         inet_ntop, inet_pton: Simplify.
7949         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
7950         documented to provide socklen_t and we already depend on sys_socket.
7951         * modules/inet_pton (Depends-on): Likewise.
7952         * lib/arpa_inet.in.h: Adjust comment.
7953
7954 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
7955             Bruno Haible  <bruno@clisp.org>
7956
7957         netdb: Simplify.
7958         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
7959         documented to provide socklen_t and we already depend on sys_socket.
7960         * lib/netdb.in.h: Adjust comment.
7961
7962 2011-03-19  Bruno Haible  <bruno@clisp.org>
7963
7964         sys_socket, netdb: Document problem with socklen_t.
7965         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
7966         platforms.
7967         * doc/posix-headers/netdb.texi: Likewise.
7968
7969 2011-03-18  Eric Blake  <eblake@redhat.com>
7970
7971         maint.mk: let po check work in VPATH build
7972         * top/maint.mk (po_file): Allow cfg.mk override.
7973         (sc_po_check): Allow VPATH use.
7974         Reported by Jiri Denemark.
7975
7976 2011-03-16  Jim Meyering  <meyering@redhat.com>
7977
7978         maint.mk: allow fine-grained syntax-check exclusion via Make variables
7979         Before, you would have had to create one .x-sc_ file per rule in order
7980         to exempt offending files.  Now, you may instead use a Make variable --
7981         usually defined in cfg.mk -- whose name identifies the affected rule.
7982         * top/maint.mk (_sc_excl): Define.
7983         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
7984         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
7985
7986 2011-03-13  Bruno Haible  <bruno@clisp.org>
7987
7988         ignore-value tests: Avoid warnings.
7989         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
7990         empty for gcc < 3.4.
7991
7992 2011-03-13  Bruno Haible  <bruno@clisp.org>
7993
7994         passfd: Fix link error on Solaris.
7995         * modules/passfd (Description): Correct.
7996         (Depends-on): Add socketlib.
7997         (Link): New section.
7998         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
7999
8000 2011-03-13  Bruno Haible  <bruno@clisp.org>
8001
8002         passfd: Fix link error on AIX 5.2.
8003         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
8004
8005 2011-03-13  Bruno Haible  <bruno@clisp.org>
8006
8007         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
8008         * lib/sys_socket.in.h: Include <stddef.h>.
8009         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
8010         CMSG_FIRSTHDR. Remove unused variable.
8011
8012 2011-03-13  Bruno Haible  <bruno@clisp.org>
8013
8014         passfd: Fix compilation error on OpenBSD.
8015         * lib/passfd.c: Include <sys/uio.h>.
8016
8017 2011-03-13  Bruno Haible  <bruno@clisp.org>
8018
8019         passfd test: Fix warnings.
8020         * tests/test-passfd.c: Include <sys/wait.h>.
8021         (main): Fix typo.
8022
8023 2011-03-13  Bruno Haible  <bruno@clisp.org>
8024
8025         passfd module, part 4, tweaks.
8026         * tests/test-passfd.c: Reorder includes.
8027         (main): Fix perror and printf calls.
8028
8029 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
8030
8031         passfd module, part 4.
8032         * modules/passfd-tests: New file.
8033         * tests/test-passfd.c: New file.
8034
8035 2011-03-13  Jim Meyering  <meyering@redhat.com>
8036
8037         Makefile: rely on GNU make; derive syntax-check rule names
8038         Rather than requiring that each sc_ rule be listed as a dependent
8039         of "check", use features of GNU make to derive the list.
8040         * Makefile (syntax-check-rules): Define.
8041         (check): Depend on the new variable, not the hard-coded list.
8042
8043 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
8044             Bruno Haible  <bruno@clisp.org>
8045
8046         passfd module, part 3.
8047         * lib/passfd.h (recvfd): Add a flags argument.
8048         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
8049         (recvfd): Add a flags argument.
8050         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
8051         exists.
8052         * modules/passfd (Depends-on): Add cloexec.
8053         Suggested by Eric Blake.
8054
8055 2011-03-13  Bruno Haible  <bruno@clisp.org>
8056
8057         passfd module, part 2, tweaks.
8058         * modules/passfd (Files): Reorder.
8059         (Depends-on): Remove errno.
8060         (Include): Remove <sys/socket.h>, <sys/un.h>.
8061         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
8062         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
8063         specification header. Include <sys/socket.h> always. Don't include
8064         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
8065         (sendfd): Clarify that it sets errno when it fails.
8066         (recvfd): Fix specification.
8067
8068 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
8069
8070         passfd module, part 2.
8071         * modules/passfd: New file.
8072         * lib/passfd.h: New file.
8073         * lib/passfd.c: New file.
8074
8075 2011-03-12  Bruno Haible  <bruno@clisp.org>
8076
8077         wcswidth, mbswidth: Avoid integer overflow.
8078         * lib/wcswidth.c: Include <limits.h>.
8079         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
8080         * lib/mbswidth.c: Include <limits.h>.
8081         (mbsnwidth): Avoid 'int' overflow.
8082         Reported by Jim Meyering.
8083
8084 2011-03-12  Bruno Haible  <bruno@clisp.org>
8085
8086         futimens, utimensat: Avoid endless recursion on Solaris 10.
8087         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
8088         Solaris.
8089         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
8090         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
8091
8092 2011-03-11  Jim Meyering  <meyering@redhat.com>
8093
8094         maint.mk: relax a regexp to accommodate other formatting styles
8095         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
8096         between "ngettext" and the following "(".
8097
8098 2011-03-11  Pádraig Brady <P@draigBrady.com>
8099
8100         maint.mk: suppress a false positive warning
8101         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
8102         diagnostics are marked with ngettext.
8103
8104 2011-03-10  Eric Blake  <eblake@redhat.com>
8105
8106         wchar: add explicit dependencies, for Tru64
8107         * modules/mbmemcasecoll (Depends-on): Add wchar.
8108         * modules/mbtowc (Depends-on): Likewise.
8109         * modules/vasnprintf (Depends-on): Likewise.
8110         * modules/unistdio/u-printf-args (Depends-on): Likewise.
8111         * modules/wctomb (Depends-on): Likewise.
8112         Reported by Peter O'Gorman.
8113
8114 2011-03-08  Bruno Haible  <bruno@clisp.org>
8115
8116         passfd module, part 1, tweaks.
8117         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
8118         Improve indentation. Improve AC_MSG_CHECKING messages.
8119         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
8120         gl_SOCKET_FAMILIES.
8121
8122 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
8123
8124         passfd module, part 1.
8125         * m4/afunix.m4: New file.
8126         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
8127         sockets.
8128
8129 2011-03-08  Bruno Haible  <bruno@clisp.org>
8130
8131         regex-quote: New API.
8132         * lib/regex-quote.h: Include <stdbool.h>.
8133         (struct regex_quote_spec): New type.
8134         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
8135         New declarations.
8136         (regex_quote_length, regex_quote_copy, regex_quote): Take a
8137         'const struct regex_quote_spec *' argument.
8138         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
8139         (pcre_special): New constant.
8140         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
8141         New functions.
8142         (regex_quote_length, regex_quote_copy, regex_quote): Take a
8143         'const struct regex_quote_spec *' argument.
8144         * modules/regex-quote (Depends-on): Add stdbool.
8145         * tests/test-regex-quote.c (check): Update for new API. Add test for
8146         anchored results.
8147         * NEWS: Mention the API change.
8148         Reported by Reuben Thomas and Eric Blake.
8149
8150 2011-03-06  Bruno Haible  <bruno@clisp.org>
8151
8152         regex-quote: Fix creation of POSIX extended regular expressions.
8153         * lib/regex-quote.c (ere_special): Add grouping and alternation
8154         operators.
8155
8156 2011-03-05  Bruno Haible  <bruno@clisp.org>
8157
8158         doc: Improve doc regarding autopoint vs. gnulib.
8159         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
8160         disable autopoint while running autoreconf.
8161         Suggested by Ralf Wildenhues.
8162
8163 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8164
8165         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
8166         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
8167
8168 2011-03-03  Bruce Korb  <bkorb@gnu.org>
8169
8170         parse-duration: remove xalloc.h dependency
8171         * lib/parse-duration.c (parse_period): handle NULL return from
8172         strdup instead of calling xstrdup().
8173         * modules/parse-duration: remove "xalloc" dependency
8174
8175 2011-03-03  Matthew Booth  <mbooth@redhat.com>
8176
8177         bootstrap: honor m4_base when running aclocal
8178         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
8179
8180 2011-03-02  Jim Meyering  <meyering@redhat.com>
8181
8182         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
8183         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
8184         on request from Matt Booth.
8185
8186 2011-03-01  Eric Blake  <eblake@redhat.com>
8187
8188         test-link: work on Hurd
8189         * tests/test-link.h (test_link): Hurd rejects linking directories
8190         with EISDIR instead of the POSIX-mandated EPERM.
8191
8192 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
8193
8194         stdio: simplify by moving files to printf-posix, sigpipe
8195         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
8196         since this symbol is needed only if printf is replaced.
8197         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
8198         Require gl_ASM_SYMBOL_PREFIX.
8199         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
8200         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
8201         (Depends-on): Add 'raise'.
8202         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
8203         * modules/stdio (Files): Remove lib/stdio-write.c,
8204         m4/asm-underscore.m4.
8205         (Depends-on): Remove 'raise'.
8206
8207         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
8208         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
8209         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
8210         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
8211
8212 2011-02-28  Bruno Haible  <bruno@clisp.org>
8213
8214         localcharset: Assume ANSI C behaviour of free().
8215         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
8216         calling free().
8217         Suggested by Simon Josefsson <simon@josefsson.org>.
8218
8219 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
8220             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
8221             Bruno Haible  <bruno@clisp.org>  (tiny change)
8222
8223         On Cygwin, use /proc file system instead of win32 API.
8224         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
8225         Win32 file names.
8226         (DllMain): Simplify by removing Cygwin specific code.
8227         (find_shared_library_fullname): Use Linux specific implementation also
8228         for Cygwin.
8229         (get_shared_library_fullname): Update accordingly.
8230         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
8231         Win32 file names.
8232         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
8233         Cygwin specific code.
8234
8235 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
8236             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
8237
8238         Fix OpenMP flag detection for various Fortran compilers.
8239         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
8240         OpenMP-conditional compilation construct, to force compile
8241         failure with missing OpenMP flag.
8242         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
8243
8244 2011-02-25  Eric Blake  <eblake@redhat.com>
8245
8246         strstr: expand test coverage
8247         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
8248         compilation.
8249         * tests/test-memmem.c (main): Duplicate tests.
8250         * tests/test-strcasestr.c (main): Likewise.
8251         * tests/test-c-strcasestr.c (main): Likewise.
8252
8253 2011-02-25  Jim Meyering  <meyering@redhat.com>
8254
8255         maint.mk: detect missing-NL-at-EOF, too
8256         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
8257         it also detects when a file lacks a newline at EOF.
8258         (require_exactly_one_NL_at_EOF_): Renamed from
8259         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
8260         since people may well have .x-sc_... file names tied to the
8261         existing name.  Suggested by Eric Blake.
8262
8263 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
8264
8265         dirname: move m4/dos.m4 functionality into lib/dosname.h
8266
8267         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
8268         extracts symbols from it, puts them into config.h; but it's much
8269         easier to use the symbols directly.  filename.h already does this,
8270         but it disagrees with dos.m4 in some respects.  This patch
8271         introduces a different include file dosname.h that packages up
8272         dos.m4, and then later we can work on merging filename.h and
8273         dosname.h.  Applications that need only the easy-to-configure
8274         symbols should consider including dosname.h rather than dirname.h.
8275         * NEWS: Mention incompatible changes.
8276         * m4/dos.m4: Remove.
8277         * lib/dosname.h, modules/dosname: New files.
8278         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
8279         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
8280         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
8281         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
8282         Include dosname.h, not dirname.h.
8283         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
8284         Include dosname.h, for definitions of symbols like ISSLASH
8285         that used to be in config.h.
8286         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
8287         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
8288         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
8289         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
8290         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
8291         * modules/rmdir (Files): Likewise.
8292         * modules/stat (Files): Likewise.
8293         * modules/unlink (Files): Likewise.
8294         * modules/dirname-lgpl (Depends-on): Add dosname.
8295         * modules/lstat (Depends-on): Likewise.
8296         * modules/openat (Depends-on): Likewise.
8297         * modules/rmdir (Depends-on): Likewise.
8298         * modules/savewd (Depends-on): Likewise.
8299         * modules/stat (Depends-on): Likewise.
8300         * modules/unlink (Depends-on): Likewise.
8301         * modules/openat (Depends-on): Remove dirname-lgpl.
8302         * modules/savewd (Depends-on): Likewise.
8303         * tests/test-dirname.c: Do not use removed symbols like
8304         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
8305         the remaining symbols, e.g., ISSLASH ('\\').
8306
8307 2011-02-25  Eric Blake  <eblake@redhat.com>
8308
8309         strstr: revert patches that introduced bug and pessimization
8310         * lib/str-two-way.h: Add another reference.
8311         (two_way_short_needle, two_way_long_needle): Revert changes from
8312         2011-02-24; they pessimize search speed.
8313         (critical_factorization): Partially revert changes from
8314         2010-06-22; they violate the requirement that the left half of the
8315         needle be smaller than the period of the needle.
8316
8317 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
8318
8319         filenamecat: remove unnecessary dependency on dirname-lgpl
8320         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
8321         is no direct dependency, just an indirect one via filenamecat-lgpl.
8322
8323         remove: remove unnecessary use of m4/dos.m4
8324         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
8325         * modules/remove (FILES): Remove m4/dos.m4.
8326
8327         * lib/openat-proc.c: Don't include dirname.h; not needed.
8328
8329         backupfile: remove unnecessary use of m4/dos.m4
8330         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
8331         of its symbols are used by the backupfile code.  backupfile.c does
8332         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
8333         for the rare case of programs that want all their backup file
8334         names to live within 8+3 limits, and dos.m4 doesn't address that.
8335         * modules/backupfile (Files): Remove m4/dos.m4.
8336
8337 2011-02-24  Jim Meyering  <meyering@redhat.com>
8338
8339         strstr: fix a bug whereby strstr would mistakenly return NULL
8340         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
8341         in period calculation.
8342         (two_way_long_needle): Likewise.
8343         The original problem was reported by Mike Stump in
8344         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
8345         Ralf Wildenhues provided the short needle and haystack.
8346         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
8347         Add a more involved test to trigger the bug in two_way_long_needle.
8348
8349 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
8350
8351         gnulib-tool: remove use of bold display in help screen
8352         * gnulib-tool (func_usage): Do not use bold display anymore in the
8353         help screen.  That was just meant to be a temporary emphasis for a
8354         backward-incompatible change.
8355
8356 2011-02-23  Bruno Haible  <bruno@clisp.org>
8357
8358         Fix misindentation of preprocessor directives.
8359         * lib/argp-namefrob.h: Reindent preprocessor directives.
8360         * lib/getopt_int.h (struct _getopt_data): Likewise.
8361         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
8362         * lib/vasnprintf.c (decode_long_double): Likewise.
8363         * tests/test-argmatch.c: Insert blank lines, for clarity.
8364         * tests/test-exclude.c: Likewise.
8365
8366 2011-02-22  Bruno Haible  <bruno@clisp.org>
8367
8368         ioctl: Fix for MacOS X in 64-bit mode.
8369         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
8370         value.
8371         Suggested by Eric Blake.
8372         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
8373
8374 2011-02-22  Jim Meyering  <meyering@redhat.com>
8375
8376         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
8377         * Makefile (sc_cpp_indent_check): Don't limit the check to files
8378         in lib/.
8379
8380 2011-02-22  Eric Blake  <eblake@redhat.com>
8381
8382         maint: avoid any CDPATH issue
8383         * Makefile (sc_cpp_indent_check): Anchor cd argument.
8384
8385         maint: adjust cpp indentation for my modules, as well
8386         * Makefile (sc_cpp_indent_check): Add my name.
8387         * lib/fbufmode.c: Filter through cppi.
8388         * lib/fpurge.c: Likewise.
8389         * lib/freadable.c: Likewise.
8390         * lib/freading.c: Likewise.
8391         * lib/fwritable.c: Likewise.
8392         * lib/fwriting.c: Likewise.
8393         * lib/sigaction.c: Likewise.
8394
8395 2011-02-22  Jim Meyering  <meyering@redhat.com>
8396
8397         maint: adjust cpp indentation to reflect nesting depth
8398         I.e., in a block of code that begins with an unnested "#if",
8399         put one space between the "#" in column 1 and following token.
8400         For example,
8401         -#include <sys/vfs.h>
8402         +# include <sys/vfs.h>
8403         Do this only in .c files that are part of a module I maintain.
8404         * lib/linkat.c: Filter through cppi.
8405         * lib/nanosleep.c: Likewise.
8406         * lib/openat.c: Likewise.
8407         * lib/openat-die.c: Likewise.
8408         * lib/dup3.c: Likewise.
8409         * lib/fchownat.c: Likewise.
8410         * lib/flock.c: Likewise.
8411         * lib/fsync.c: Likewise.
8412         * lib/fts.c: Likewise.
8413         * lib/getpass.c: Likewise.
8414         * lib/gettimeofday.c: Likewise.
8415         * lib/userspec.c: Likewise.
8416         * Makefile (sc_cpp_indent_check): New rule, to check this.
8417
8418 2011-02-22  Bruno Haible  <bruno@clisp.org>
8419
8420         New module 'wctomb'.
8421         * lib/stdlib.in.h (wctomb): New declaration.
8422         * lib/wctomb.c: New file.
8423         * lib/wctomb-impl.h: New file.
8424         * m4/wctomb.m4: New file.
8425         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
8426         REPLACE_WCTOMB.
8427         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
8428         REPLACE_WCTOMB.
8429         * modules/wctomb: New file.
8430         * tests/test-stdlib-c++.cc: Test signature of wctomb.
8431         * doc/posix-functions/wctomb.texi: Mention the new module.
8432         * modules/wctob (Depends-on): Add wctomb.
8433
8434 2011-02-22  Bruno Haible  <bruno@clisp.org>
8435
8436         New module 'mbtowc'.
8437         * lib/stdlib.in.h (mbtowc): New declaration.
8438         * lib/mbtowc.c: New file.
8439         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
8440         * m4/mbtowc.m4: New file.
8441         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
8442         REPLACE_MBTOWC.
8443         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
8444         REPLACE_MBTOWC.
8445         * modules/mbtowc: New file.
8446         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
8447         * doc/posix-functions/mbtowc.texi: Mention the new module.
8448         * modules/btowc (Depends-on): Add mbtowc.
8449
8450 2011-02-22  Bruno Haible  <bruno@clisp.org>
8451
8452         wcrtomb: Add more tests for native Windows platforms.
8453         * tests/test-wcrtomb-w32-1.sh: New file.
8454         * tests/test-wcrtomb-w32-2.sh: New file.
8455         * tests/test-wcrtomb-w32-3.sh: New file.
8456         * tests/test-wcrtomb-w32-4.sh: New file.
8457         * tests/test-wcrtomb-w32-5.sh: New file.
8458         * tests/test-wcrtomb-w32.c: New file.
8459         * modules/wcrtomb-tests (Files): Add them.
8460         (Makefile.am): Arrange to run these tests.
8461         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
8462         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
8463
8464 2011-02-20  Bruno Haible  <bruno@clisp.org>
8465
8466         wcrtomb: Enhance test.
8467         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
8468
8469 2011-02-20  Bruno Haible  <bruno@clisp.org>
8470
8471         mbrtowc: Tiny optimization.
8472         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
8473
8474 2011-02-20  Jim Meyering  <meyering@redhat.com>
8475
8476         test-exclude.c: remove unmatched #endif
8477         * tests/test-exclude.c: Remove stray #endif, left over from
8478         the change of a week ago.
8479
8480 2011-02-19  Jim Meyering  <meyering@redhat.com>
8481
8482         git-version-gen: skip "-dirty" check when appropriate
8483         * build-aux/git-version-gen: Don't run any git commands when the
8484         version string comes from .tarball-version.  Prior to this, we
8485         would run git update-index --refresh even from a just-unpacked
8486         tarball directory, and that could affect a .git/ directory in a
8487         parent of the build directory.  Reported by Mike Frysinger.
8488
8489 2011-02-19  Bruno Haible  <bruno@clisp.org>
8490
8491         unictype/property-byname: Reduce the size of the 'data' segment.
8492         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
8493
8494 2011-02-19  Bruno Haible  <bruno@clisp.org>
8495
8496         unictype/scripts: Reduce the size of the 'data' segment.
8497         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
8498         '%pic'.
8499         * lib/unictype/scripts_byname.gperf: Regenerated.
8500
8501 2011-02-19  Bruno Haible  <bruno@clisp.org>
8502
8503         stdint: Update documentation.
8504         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
8505
8506 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
8507
8508         stdint: omit redundant check for wchar.h
8509         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
8510         always tests whether wchar.h exists, so remove the now-redundant test.
8511
8512 2011-02-18  Bruno Haible  <bruno@clisp.org>
8513
8514         stdint: Cut dependency to module 'wchar'.
8515         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
8516         include the necessary prerequisites.
8517         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
8518         * modules/stdint (Depends-on): Remove wchar.
8519         (Makefile.am): Substitute HAVE_WCHAR_H.
8520         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
8521
8522 2011-02-18  Eric Blake  <eblake@redhat.com>
8523
8524         longlong: skip, rather than fail, on cross-compilation
8525         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
8526         when cross-compiling; regression from 2011-02-16.
8527
8528 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
8529
8530         * NEWS: Mention 2011-02-08 change to stdlib.
8531
8532 2011-02-17  Bruno Haible  <bruno@clisp.org>
8533
8534         getloadavg: Add comments about platforms.
8535         * m4/getloadavg.m4: Add comment.
8536         * lib/getloadavg.c: Likewise.
8537
8538 2011-02-17  Bruno Haible  <bruno@clisp.org>
8539
8540         getloadavg: Fix link error on Solaris 2.6.
8541         * modules/getloadavg (Link): New section.
8542         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
8543         linking test-getloadavg.
8544         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
8545         getloadavg.
8546
8547 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
8548
8549         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
8550         It was 'int', but this doesn't match the IRIX 6.5 manual.
8551         Suggested by Bruno Haible in
8552         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
8553
8554 2011-02-17  Bruno Haible  <bruno@clisp.org>
8555
8556         havelib: Fix comments.
8557         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
8558         change.
8559
8560 2011-02-17  Bruno Haible  <bruno@clisp.org>
8561
8562         havelib: Update config.rpath.
8563         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
8564
8565 2011-02-17  Bruno Haible  <bruno@clisp.org>
8566
8567         getloadavg test: Add some plausibility checks.
8568         * tests/test-getloadavg.c (check_avg): Print a warning when the value
8569         is improbable.
8570
8571 2011-02-16  Eric Blake  <eblake@redhat.com>
8572
8573         maintainer-makefile: make syntax-check a no-op from tarballs
8574         * top/maint.mk (no-vc-detected): New rule.
8575         (local-checks-available): Use it to avoid hanging if someone tries
8576         'make syntax-check' from a tarball.  Also append to any non-syntax
8577         checks already defined in cfg.mk.
8578
8579 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
8580
8581         longlong: tune, particularly for common case of c99
8582
8583         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
8584         or running anything if c99, or if unsigned long long int does not
8585         work.  In either case, we know the answer without further tests.
8586         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
8587         it at most once, and use its results for both long long int and
8588         unsigned long long int.  This is more likely to be efficient in
8589         the common case where the program wants to check for both long
8590         long int and unsigned long long int.
8591         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
8592         since the answer is already known.
8593
8594 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
8595
8596         getloadavg: set errno
8597         * lib/getloadavg.c: Set errno when returning -1.  If no other
8598         error number looks appropriate, set it to ENOSYS if the getloadavg
8599         looks like it can't possibly ever work, ENOTSUP otherwise.
8600         Suggested by Bruno Haible in
8601         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
8602
8603         getloadavg: trim unused parts and speed up 'configure'
8604         * NEWS: Document this.
8605         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
8606         always compiled if getloadavg is absent.
8607         Move test code to ...
8608         * tests/test-getloadavg.c: New file, containing previous
8609         contents of test from lib/getloadavg.c.  It also contains
8610         suggestions by Bruno Haible in
8611         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
8612         * modules/getloadavg-tests: New file.
8613         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
8614         Do tests in the same order as they're needed for getloadavg.c.
8615         Omit setgid-related tests that generate symbols KMEM_GROUP,
8616         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
8617         Do only the tests that are needed to see whether the system has
8618         getloadavg, moving the other tests into ...
8619         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
8620         NLIST_NAME_UNION; nobody should be using it.  Do not define
8621         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
8622         relevant, as the user of this module shouldn't care how getloadavg
8623         is implemented.
8624
8625         getloadavg: omit unused var
8626         * lib/getloadavg.c (getloadavg): Omit unused local variable.
8627
8628 2011-02-15  Jim Meyering  <meyering@redhat.com>
8629
8630         doc: update users.txt
8631         * users.txt: Update iwhd's URL.
8632
8633 2011-02-13  Bruno Haible  <bruno@clisp.org>
8634
8635         Consistent macro naming for macros that use GCC __attribute__.
8636         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
8637         _ATTRIBUTE_NONNULL_.
8638         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
8639         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
8640         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
8641         ATTRIBUTE_DEPRECATED.
8642         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
8643         ATTRIBUTE_NORETURN.
8644         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
8645         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
8646         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
8647         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
8648         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
8649         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
8650         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
8651         ATTRIBUTE_SENTINEL.
8652         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
8653         ATTRIBUTE_RETURN_CHECK.
8654         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
8655         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
8656         ATTRIBUTE_NORETURN.
8657         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
8658         Reported by Paul Eggert.
8659
8660 2011-02-13  Bruno Haible  <bruno@clisp.org>
8661
8662         Don't interfere with a program's definition of __attribute__.
8663         * lib/argp.h (__attribute__): Remove definition.
8664         (_GL_ATTRIBUTE_FORMAT): New macro.
8665         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
8666         * lib/argp-fmtstream.h (__attribute__): Remove definition.
8667         (_GL_ATTRIBUTE_FORMAT): New macro.
8668         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
8669         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
8670         GCC 3 or newer.
8671         * lib/error.h (__attribute__): Remove definition.
8672         (_GL_ATTRIBUTE_FORMAT): New macro.
8673         (error, error_at_line): Use it.
8674         * lib/hash.h (__attribute__): Remove definition.
8675         (ATTRIBUTE_WUR): Update definition. Define always.
8676         * lib/openat.h (__attribute__): Remove definition.
8677         (ATTRIBUTE_NORETURN): Update definition. Define always.
8678         * lib/sigpipe-die.h (__attribute__): Remove definition.
8679         (ATTRIBUTE_NORETURN): Update definition. Define always.
8680         * lib/vasnprintf.h (__attribute__): Remove definition.
8681         (_GL_ATTRIBUTE_FORMAT): New macro.
8682         (asnprintf, vasnprintf): Use it.
8683         * lib/xalloc.h (__attribute__): Remove definition.
8684         (ATTRIBUTE_NORETURN): Update definition. Define always.
8685         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
8686         * lib/xmemdup0.h (__attribute__): Remove definition.
8687         (ATTRIBUTE_NORETURN): Update definition. Define always.
8688         * lib/xprintf.h (__attribute__): Remove definition.
8689         (_GL_ATTRIBUTE_FORMAT): New macro.
8690         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
8691         * lib/xstrtol.h (__attribute__): Remove definition.
8692         (ATTRIBUTE_NORETURN): Update definition. Define always.
8693         * lib/xvasprintf.h (__attribute__): Remove definition.
8694         (_GL_ATTRIBUTE_FORMAT): New macro.
8695         (xasprintf, xvasprintf): Use it.
8696         * tests/test-argmatch.c (__attribute__): Remove definition.
8697         (ATTRIBUTE_NORETURN): Update definition. Define always.
8698         * tests/test-exclude.c (__attribute__): Remove definition.
8699         (ATTRIBUTE_NORETURN): Update definition. Define always.
8700         Reported by Paul Eggert.
8701
8702 2011-02-13  Bruno Haible  <bruno@clisp.org>
8703
8704         mbrtowc: Add more tests for native Windows platforms.
8705         * tests/test-mbrtowc-w32-1.sh: New file.
8706         * tests/test-mbrtowc-w32-2.sh: New file.
8707         * tests/test-mbrtowc-w32-3.sh: New file.
8708         * tests/test-mbrtowc-w32-4.sh: New file.
8709         * tests/test-mbrtowc-w32-5.sh: New file.
8710         * tests/test-mbrtowc-w32.c: New file.
8711         * modules/mbrtowc-tests (Files): Add them.
8712         (Makefile.am): Arrange to run these tests.
8713         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
8714         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
8715
8716 2011-02-13  Bruno Haible  <bruno@clisp.org>
8717
8718         mbrtowc: Work around native Windows bug.
8719         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
8720         guess when no suitable locale for testing was found.
8721         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
8722
8723 2011-02-13  Bruno Haible  <bruno@clisp.org>
8724
8725         mbsinit: Work around mingw bug.
8726         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
8727         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
8728         Windows.
8729         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
8730
8731 2011-02-13  Bruno Haible  <bruno@clisp.org>
8732
8733         mbsinit: Don't crash for a NULL argument.
8734         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
8735         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
8736
8737 2011-02-13  Bruno Haible  <bruno@clisp.org>
8738
8739         Don't interfere with a program's definition of __attribute__.
8740         * lib/stdio.in.h (__attribute__): Remove definition.
8741         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
8742         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
8743         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
8744         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
8745         * lib/string.in.h (__attribute__): Remove definition.
8746         Reported by Paul Eggert.
8747
8748 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
8749
8750         stdlib: don't get in the way of non-GCC __attribute__
8751         See thread starting at
8752         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
8753         Revert previous stdlib change, installing the following instead:
8754         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
8755         to get in the way of a non-GCC compiler that supports __attribute__.
8756         (_GL_ATTRIBUTE_RETURN): New macro.
8757         (_Exit): Use it instead of __attribute__.
8758
8759 2011-02-12  Bruno Haible  <bruno@clisp.org>
8760
8761         quotearg test: Avoid test failure on mingw.
8762         * tests/test-quotearg.sh: Convert the locale identifier from native
8763         Windows syntax to Unix syntax.
8764
8765 2011-02-12  Bruno Haible  <bruno@clisp.org>
8766
8767         setlocale: Prefer gnulib's override over libintl's override.
8768         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
8769         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
8770         GNULIB_defined_setlocale is set.
8771
8772 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
8773
8774         stdlib: support non-GCC __attribute__
8775
8776         Fix a serious and tricky problem encountered when attempting to
8777         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
8778         5.5, but it crashed due to memory corruption on Solaris 10 with
8779         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
8780         bits that are otherwise zero.  This tagging is optional inside
8781         Emacs but is preferred and is used when __attribute__ ((__aligned
8782         (8))) works, as it does with both recent-enough GCC and with Sun C
8783         5.11.  However, Sun C 5.11 is not GCC and does not #define
8784         __GNUC__ and __GNUC_MINOR__.
8785
8786         When I added the getloadavg module to Emacs, it brought in
8787         stdlib.in.h, which contained this fragment:
8788
8789            #ifndef __attribute__
8790            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
8791            #  define __attribute__(Spec)   /* empty */
8792            # endif
8793            #endif
8794
8795         When files that include <stdlib.h> were compiled with Sun C 5.11,
8796         the above code disabled __attribute__ ((__aligned (8))), which
8797         caused variables to not be properly aligned, which eventually led
8798         to the pointer corruption mentioned above.  (This was a bit hard
8799         to diagnose, unfortunately.)
8800
8801         Several "#define __attribute__(X) /* empty */" code snippets need
8802         to be eradicated from Gnulib to work with non-GCC compilers that
8803         support __attribute__.  The Autoconf way to do this is to test for
8804         each kind of attribute that we want support for, and selectively
8805         enable that in source code.
8806
8807         Fix this problem just for stdlib.h, by adding a test for the
8808         __noreturn__ attribute, and change stdlib.in.h to use that test
8809         when needed.  This technique can be easily generalized to the
8810         other *.in.h files and attributes, and a similar technique can be
8811         used for *.h and *.c files.  This patch is enough to solve the
8812         problem for Emacs + getloadavg, and I thought I'd publish it for
8813         feedback before undertaking further, similar fixes in other
8814         modules.
8815
8816         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
8817         because it's not needed for stdlib.h.  It merely substitutes the
8818         value directly into stdlib.h.  We may well need to #define it, or
8819         similar symbols, for other modules, but it's nice to also have an
8820         option to not #define it for applications like Emacs that do not
8821         need it.
8822
8823         * lib/stdlib.in.h (__attribute__): Do not #define.
8824         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
8825         be defined only if the _Exit module is also used.
8826         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
8827         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
8828         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
8829         platforms.
8830         * modules/_Exit (Files): Add m4/attribute.m4.
8831         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
8832         * m4/attribute.m4: New file.
8833
8834 2011-02-12  Bruno Haible  <bruno@clisp.org>
8835
8836         wcsrtombs: Work around bug on native Windows.
8837         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
8838         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
8839         instead of len.
8840         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
8841
8842 2011-02-12  Bruno Haible  <bruno@clisp.org>
8843
8844         mbsrtowcs: Work around bug on native Windows.
8845         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
8846         against mingw bug.
8847         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
8848
8849 2011-02-12  Bruno Haible  <bruno@clisp.org>
8850
8851         Avoid setlocale bugs in tests.
8852         * modules/btowc (Dependencies): Add setlocale.
8853         * modules/c-strcase (Dependencies): Likewise.
8854         * modules/mbmemcasecmp (Dependencies): Likewise.
8855         * modules/mbmemcasecoll (Dependencies): Likewise.
8856         * modules/mbrtowc (Dependencies): Likewise.
8857         * modules/mbscasecmp (Dependencies): Likewise.
8858         * modules/mbscasestr (Dependencies): Likewise.
8859         * modules/mbschr (Dependencies): Likewise.
8860         * modules/mbscspn (Dependencies): Likewise.
8861         * modules/mbsinit (Dependencies): Likewise.
8862         * modules/mbsncasecmp (Dependencies): Likewise.
8863         * modules/mbsnrtowcs (Dependencies): Likewise.
8864         * modules/mbspbrk (Dependencies): Likewise.
8865         * modules/mbspcasecmp (Dependencies): Likewise.
8866         * modules/mbsrchr (Dependencies): Likewise.
8867         * modules/mbsrtowcs (Dependencies): Likewise.
8868         * modules/mbsspn (Dependencies): Likewise.
8869         * modules/mbsstr (Dependencies): Likewise.
8870         * modules/nl_langinfo (Dependencies): Likewise.
8871         * modules/quotearg (Dependencies): Likewise.
8872         * modules/unicase/locale-language (Dependencies): Likewise.
8873         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
8874         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
8875         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
8876         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
8877         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
8878         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
8879         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
8880         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
8881         * modules/vasnprintf-posix (Dependencies): Likewise.
8882         * modules/wcrtomb (Dependencies): Likewise.
8883         * modules/wcsnrtombs (Dependencies): Likewise.
8884         * modules/wcsrtombs (Dependencies): Likewise.
8885
8886 2011-02-12  Bruno Haible  <bruno@clisp.org>
8887
8888         setlocale: Workaround native Windows bug.
8889         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
8890         succeeds but sets LC_CTYPE to "C", report a failure.
8891         * tests/test-setlocale2.sh: New file.
8892         * tests/test-setlocale2.c: New file.
8893         * modules/setlocale-tests (Files): Add the new files.
8894         (Makefile.am): Enable test-setlocale2.sh test.
8895         * doc/posix-functions/setlocale.texi: Mention workaround.
8896
8897 2011-02-11  Bruno Haible  <bruno@clisp.org>
8898
8899         Tests for module 'setlocale'.
8900         * modules/setlocale-tests: New file.
8901         * tests/test-setlocale1.sh: New file.
8902         * tests/test-setlocale1.c: New file.
8903
8904         New module 'setlocale'.
8905         * lib/locale.in.h (setlocale): New declaration.
8906         * lib/setlocale.c: New file, based on
8907         gettext/gettext-runtime/intl/setlocale.c.
8908         * m4/setlocale.m4: New file.
8909         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
8910         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
8911         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
8912         REPLACE_SETLOCALE.
8913         * modules/setlocale: New file.
8914         * tests/test-locale-c++.cc: Test the declaration of setlocale.
8915         * doc/posix-functions/setlocale.texi: Mention the new module.
8916
8917 2011-02-11  Bruno Haible  <bruno@clisp.org>
8918
8919         Prepare for locale dependent tests on mingw.
8920         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
8921         because it has the wrong locale encoding.
8922         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
8923         French_France.1252 instead of "fr".
8924         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
8925         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
8926         because it has the wrong locale encoding.
8927         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
8928         native Windows, try Turkish_Turkey.65001.
8929         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
8930         Chinese_China.54936.
8931
8932         Prepare for locale dependent tests on mingw.
8933         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
8934         differently.
8935         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
8936         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
8937         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
8938         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
8939
8940 2011-02-11  Eric Blake  <eblake@redhat.com>
8941
8942         strptime: avoid compiler warnings
8943         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
8944         compiler warnings about dead code.
8945         Reported by Daniel P. Berrange.
8946
8947 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
8948
8949         doc: update users.txt
8950         * users.txt: Add rcs.
8951
8952 2011-02-10  John W. Eaton  <jwe@gnu.org>
8953
8954         doc: update users.txt
8955         * users.txt: Add octave.
8956
8957 2011-02-10  Jim Meyering  <meyering@redhat.com>
8958
8959         doc: update users.txt
8960         * users.txt: Add iwhd.
8961
8962 2011-02-09  Bruno Haible  <bruno@clisp.org>
8963
8964         gnulib-tool: Make copyright notice adjustment more robust.
8965         * gnulib-tool (func_import): In sed_transform_main_lib_file,
8966         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
8967         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
8968         License".
8969         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
8970
8971 2011-02-06  Bruno Haible  <bruno@clisp.org>
8972
8973         New module 'towctrans'.
8974         * modules/towctrans: New file.
8975         * lib/wctype.in.h (towctrans): New declaration.
8976         * lib/towctrans.c: New file.
8977         * lib/towctrans-impl.h: New file.
8978         * m4/towctrans.m4: New file.
8979         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
8980         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
8981         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
8982         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
8983         * doc/posix-functions/towctrans.texi: Mention the new module.
8984
8985 2011-02-06  Bruno Haible  <bruno@clisp.org>
8986
8987         New module 'wctrans'.
8988         * modules/wctrans: New file.
8989         * lib/wctype.in.h (wctrans): New declaration.
8990         * lib/wctrans.c: New file.
8991         * lib/wctrans-impl.h: New file.
8992         * m4/wctrans.m4: New file.
8993         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
8994         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
8995         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
8996         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
8997         * doc/posix-functions/wctrans.texi: Mention the new module.
8998
8999 2011-02-06  Bruno Haible  <bruno@clisp.org>
9000
9001         New module 'iswctype'.
9002         * modules/iswctype: New file.
9003         * lib/wctype.in.h (iswctype): New declaration.
9004         * lib/iswctype.c: New file.
9005         * lib/iswctype-impl.h: New file.
9006         * m4/iswctype.m4: New file.
9007         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
9008         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
9009         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
9010         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
9011         * doc/posix-functions/iswctype.texi: Mention the new module and the
9012         HP-UX 11.00 problem.
9013
9014 2011-02-06  Bruno Haible  <bruno@clisp.org>
9015
9016         New module 'wctype'.
9017         * modules/wctype: Change to represent the wctype() substitute.
9018         * lib/wctype.in.h (wctype): New declaration.
9019         * lib/wctype.c: New file.
9020         * lib/wctype-impl.h: New file.
9021         * m4/wctype.m4: New file.
9022         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
9023         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
9024         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
9025         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
9026         * doc/posix-functions/wctype.texi: Mention the new module and the
9027         HP-UX 11.00 problem.
9028
9029 2011-02-06  Bruno Haible  <bruno@clisp.org>
9030
9031         wctype-h: Ensure wctype_t and wctrans_t are defined.
9032         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
9033         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
9034         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
9035         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
9036         HAVE_WCTRANS_T.
9037         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
9038
9039 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
9040
9041         flock: fix license typo
9042
9043         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
9044         omitted.
9045
9046 2011-02-08  Bruno Haible  <bruno@clisp.org>
9047
9048         Split large sed scripts, for HP-UX sed.
9049         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
9050         to avoid HP-UX limit of 99 commands, in the near future.
9051         * modules/stdlib (Makefile.am): Likewise.
9052         * modules/unistd (Makefile.am): Likewise.
9053         * modules/wchar (Makefile.am): Likewise.
9054         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
9055         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
9056         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
9057
9058 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
9059             Bruno Haible  <bruno@clisp.org>
9060
9061         stdlib: improve random_r modularization
9062         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
9063         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
9064         you also need the random_r module to get this material right.
9065         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
9066         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
9067         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
9068
9069 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
9070
9071         stdlib: don't depend on stdint
9072         * lib/stdlib.in.h: Don't include <stdint.h> merely because
9073         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
9074         be independent of whether stdint.h is needed.
9075         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
9076         here, instead of ...
9077         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
9078         struct random_data should be using the random_r module, not just
9079         the stdlib module (which wouldn't make sense: what package needs
9080         just struct random_data without also needing random_r?).
9081         * modules/stdlib (Depends-on): Remove stdint.
9082
9083         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
9084         See the thread rooted at
9085         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
9086         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
9087         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
9088         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
9089         __VMS)); previously it was always included (via fcntl--.h).
9090         (getloadavg): Do not use c_strtod.  Instead, approximate it by
9091         hand; this is good enough for load averages.  Also, do not use
9092         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
9093         flags directly if available and don't bother otherwise.  (Packages
9094         that need the extra reliability should use the modules that define
9095         these flags on older platforms that lack them.)
9096         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
9097         fcntl-safer.
9098
9099 2011-02-08  Jim Meyering  <meyering@redhat.com>
9100
9101         di-set.h, ino-map.h: add multiple-inclusion guard
9102         Technically, the guard is required only for ino-map.h, due to its
9103         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
9104         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
9105         * lib/ino-map.h: Likewise.
9106
9107 2011-02-06  Bruno Haible  <bruno@clisp.org>
9108
9109         iswblank: Ensure declaration on glibc systems.
9110         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
9111         * modules/iswblank (Dependencies): Add 'extensions'.
9112         * doc/posix-functions/iswblank.texi: Document the glibc problem.
9113
9114 2011-02-06  Bruno Haible  <bruno@clisp.org>
9115
9116         New module 'iswblank'.
9117         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
9118         * modules/iswblank: New file.
9119         * modules/wctype-h (Files): Remove lib/iswblank.c.
9120         (Makefile.am): Substitute GNULIB_ISWBLANK.
9121         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
9122         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
9123         (gl_WCTYPE_H_DEFAULTS): New macro.
9124         (gl_WCTYPE_H): Require it. Remove iswblank related code.
9125         * modules/iswblank-tests: New file.
9126         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
9127         * tests/test-wctype-h.c (main): Remove iswblank tests.
9128         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
9129         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
9130         of 'wctype-h'.
9131         * NEWS: Mention the change.
9132         * modules/mbchar (Depends-on): Add iswblank.
9133
9134 2011-02-08  Bruno Haible  <bruno@clisp.org>
9135
9136         di-set tests: Refactor.
9137         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
9138         unnecessary includes.
9139         (ASSERT): Remove macro.
9140         (main): Make C90 compliant by avoiding variable declaration after
9141         statement.
9142         * modules/di-set-tests (Files): Add tests/macros.h.
9143
9144 2011-02-08  Bruno Haible  <bruno@clisp.org>
9145
9146         ino-map tests: Refactor.
9147         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
9148         unnecessary includes.
9149         (ASSERT): Remove macro.
9150         (main): Make C90 compliant by avoiding variable declaration after
9151         statement.
9152         * modules/ino-map-tests (Files): Add tests/macros.h.
9153
9154 2011-02-08  Jim Meyering  <meyering@redhat.com>
9155
9156         di-set: add "const" to a cast
9157         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
9158         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
9159
9160 2011-02-06  Bruno Haible  <bruno@clisp.org>
9161
9162         Rename module 'wctype' to 'wctype-h'.
9163         * modules/wctype-h: Renamed from modules/wctype.
9164         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
9165         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
9166         (Files, Depends-on, Makefile.am): Update.
9167         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
9168         (Files, Makefile.am): Update.
9169         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
9170         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
9171         * doc/posix-headers/wctype.texi: Update.
9172         * doc/posix-functions/iswalnum.texi: Update.
9173         * doc/posix-functions/iswalpha.texi: Update.
9174         * doc/posix-functions/iswblank.texi: Update.
9175         * doc/posix-functions/iswcntrl.texi: Update.
9176         * doc/posix-functions/iswdigit.texi: Update.
9177         * doc/posix-functions/iswgraph.texi: Update.
9178         * doc/posix-functions/iswlower.texi: Update.
9179         * doc/posix-functions/iswprint.texi: Update.
9180         * doc/posix-functions/iswpunct.texi: Update.
9181         * doc/posix-functions/iswspace.texi: Update.
9182         * doc/posix-functions/iswupper.texi: Update.
9183         * doc/posix-functions/iswxdigit.texi: Update.
9184         * doc/posix-functions/towlower.texi: Update.
9185         * doc/posix-functions/towupper.texi: Update.
9186         * NEWS: Mention the change.
9187         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
9188         * modules/mbchar (Dependencies): Likewise.
9189         * modules/mbswidth (Dependencies): Likewise.
9190         * modules/quotearg (Dependencies): Likewise.
9191         * modules/regex (Dependencies): Likewise.
9192         * modules/wcscasecmp (Dependencies): Likewise.
9193         * modules/wcsncasecmp (Dependencies): Likewise.
9194         * modules/wcwidth (Dependencies): Likewise.
9195
9196 2011-02-06  Bruno Haible  <bruno@clisp.org>
9197
9198         New module 'wcswidth'.
9199         * modules/wcswidth: New file.
9200         * lib/wchar.in.h (wcswidth): New declaration.
9201         * lib/wcswidth.c: New file.
9202         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
9203         * m4/wcswidth.m4: New file.
9204         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
9205         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
9206         REPLACE_WCSWIDTH.
9207         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
9208         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
9209         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
9210         * doc/posix-functions/wcswidth.texi: Mention the new module.
9211
9212 2011-02-06  Bruno Haible  <bruno@clisp.org>
9213
9214         New module 'wcstok'.
9215         * modules/wcstok: New file.
9216         * lib/wchar.in.h (wcstok): New declaration.
9217         * lib/wcstok.c: New file.
9218         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
9219         * m4/wcstok.m4: New file.
9220         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
9221         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
9222         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
9223         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
9224         * doc/posix-functions/wcstok.texi: Mention the new module.
9225
9226 2011-02-06  Bruno Haible  <bruno@clisp.org>
9227
9228         New module 'wcsstr'.
9229         * modules/wcsstr: New file.
9230         * lib/wchar.in.h (wcsstr): New declaration.
9231         * lib/wcsstr.c: New file.
9232         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
9233         * m4/wcsstr.m4: New file.
9234         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
9235         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
9236         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
9237         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
9238         * doc/posix-functions/wcsstr.texi: Mention the new module.
9239
9240 2011-02-06  Bruno Haible  <bruno@clisp.org>
9241
9242         New module 'wcspbrk'.
9243         * modules/wcspbrk: New file.
9244         * lib/wchar.in.h (wcspbrk): New declaration.
9245         * lib/wcspbrk.c: New file.
9246         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
9247         * m4/wcspbrk.m4: New file.
9248         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
9249         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
9250         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
9251         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
9252         * doc/posix-functions/wcspbrk.texi: Mention the new module.
9253
9254 2011-02-06  Bruno Haible  <bruno@clisp.org>
9255
9256         New module 'wcsspn'.
9257         * modules/wcsspn: New file.
9258         * lib/wchar.in.h (wcsspn): New declaration.
9259         * lib/wcsspn.c: New file.
9260         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
9261         * m4/wcsspn.m4: New file.
9262         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
9263         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
9264         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
9265         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
9266         * doc/posix-functions/wcsspn.texi: Mention the new module.
9267
9268 2011-02-06  Bruno Haible  <bruno@clisp.org>
9269
9270         New module 'wcscspn'.
9271         * modules/wcscspn: New file.
9272         * lib/wchar.in.h (wcscspn): New declaration.
9273         * lib/wcscspn.c: New file.
9274         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
9275         * m4/wcscspn.m4: New file.
9276         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
9277         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
9278         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
9279         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
9280         * doc/posix-functions/wcscspn.texi: Mention the new module.
9281
9282 2011-02-06  Bruno Haible  <bruno@clisp.org>
9283
9284         New module 'wcsrchr'.
9285         * modules/wcsrchr: New file.
9286         * lib/wchar.in.h (wcsrchr): New declaration.
9287         * lib/wcsrchr.c: New file.
9288         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
9289         * m4/wcsrchr.m4: New file.
9290         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
9291         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
9292         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
9293         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
9294         * doc/posix-functions/wcsrchr.texi: Mention the new module.
9295
9296 2011-02-06  Bruno Haible  <bruno@clisp.org>
9297
9298         New module 'wcschr'.
9299         * modules/wcschr: New file.
9300         * lib/wchar.in.h (wcschr): New declaration.
9301         * lib/wcschr.c: New file.
9302         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
9303         * m4/wcschr.m4: New file.
9304         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
9305         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
9306         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
9307         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
9308         * doc/posix-functions/wcschr.texi: Mention the new module.
9309
9310 2011-02-06  Bruno Haible  <bruno@clisp.org>
9311
9312         New module 'wcsdup'.
9313         * modules/wcsdup: New file.
9314         * lib/wchar.in.h (wcsdup): New declaration.
9315         * lib/wcsdup.c: New file.
9316         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
9317         * m4/wcsdup.m4: New file.
9318         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
9319         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
9320         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
9321         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
9322         * doc/posix-functions/wcsdup.texi: Mention the new module.
9323
9324 2011-02-06  Bruno Haible  <bruno@clisp.org>
9325
9326         New module 'wcsxfrm'.
9327         * modules/wcsxfrm: New file.
9328         * lib/wchar.in.h (wcsxfrm): New declaration.
9329         * lib/wcsxfrm.c: New file.
9330         * lib/wcsxfrm-impl.h: New file.
9331         * m4/wcsxfrm.m4: New file.
9332         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
9333         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
9334         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
9335         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
9336         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
9337
9338 2011-02-06  Bruno Haible  <bruno@clisp.org>
9339
9340         New module 'wcscoll'.
9341         * modules/wcscoll: New file.
9342         * lib/wchar.in.h (wcscoll): New declaration.
9343         * lib/wcscoll.c: New file.
9344         * lib/wcscoll-impl.h: New file.
9345         * m4/wcscoll.m4: New file.
9346         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
9347         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
9348         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
9349         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
9350         * doc/posix-functions/wcscoll.texi: Mention the new module.
9351
9352 2011-02-06  Bruno Haible  <bruno@clisp.org>
9353
9354         New module 'wcsncasecmp'.
9355         * modules/wcsncasecmp: New file.
9356         * lib/wchar.in.h (wcsncasecmp): New declaration.
9357         * lib/wcsncasecmp.c: New file.
9358         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
9359         * m4/wcsncasecmp.m4: New file.
9360         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
9361         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
9362         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
9363         HAVE_WCSNCASECMP.
9364         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
9365         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
9366
9367 2011-02-06  Bruno Haible  <bruno@clisp.org>
9368
9369         New module 'wcscasecmp'.
9370         * modules/wcscasecmp: New file.
9371         * lib/wchar.in.h (wcscasecmp): New declaration.
9372         * lib/wcscasecmp.c: New file.
9373         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
9374         * m4/wcscasecmp.m4: New file.
9375         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
9376         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
9377         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
9378         HAVE_WCSCASECMP.
9379         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
9380         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
9381
9382 2011-02-05  Bruno Haible  <bruno@clisp.org>
9383
9384         New module 'wcsncmp'.
9385         * modules/wcsncmp: New file.
9386         * lib/wchar.in.h (wcsncmp): New declaration.
9387         * lib/wcsncmp.c: New file.
9388         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
9389         * m4/wcsncmp.m4: New file.
9390         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
9391         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
9392         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
9393         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
9394         * doc/posix-functions/wcsncmp.texi: Mention the new module.
9395
9396 2011-02-05  Bruno Haible  <bruno@clisp.org>
9397
9398         New module 'wcscmp'.
9399         * modules/wcscmp: New file.
9400         * lib/wchar.in.h (wcscmp): New declaration.
9401         * lib/wcscmp.c: New file.
9402         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
9403         * m4/wcscmp.m4: New file.
9404         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
9405         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
9406         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
9407         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
9408         * doc/posix-functions/wcscmp.texi: Mention the new module.
9409
9410 2011-02-05  Bruno Haible  <bruno@clisp.org>
9411
9412         New module 'wcsncat'.
9413         * modules/wcsncat: New file.
9414         * lib/wchar.in.h (wcsncat): New declaration.
9415         * lib/wcsncat.c: New file.
9416         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
9417         * m4/wcsncat.m4: New file.
9418         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
9419         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
9420         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
9421         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
9422         * doc/posix-functions/wcsncat.texi: Mention the new module.
9423
9424 2011-02-05  Bruno Haible  <bruno@clisp.org>
9425
9426         New module 'wcscat'.
9427         * modules/wcscat: New file.
9428         * lib/wchar.in.h (wcscat): New declaration.
9429         * lib/wcscat.c: New file.
9430         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
9431         * m4/wcscat.m4: New file.
9432         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
9433         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
9434         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
9435         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
9436         * doc/posix-functions/wcscat.texi: Mention the new module.
9437
9438 2011-02-05  Bruno Haible  <bruno@clisp.org>
9439
9440         New module 'wcpncpy'.
9441         * modules/wcpncpy: New file.
9442         * lib/wchar.in.h (wcpncpy): New declaration.
9443         * lib/wcpncpy.c: New file.
9444         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
9445         * m4/wcpncpy.m4: New file.
9446         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
9447         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
9448         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
9449         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
9450         * doc/posix-functions/wcpncpy.texi: Mention the new module.
9451
9452 2011-02-05  Bruno Haible  <bruno@clisp.org>
9453
9454         New module 'wcsncpy'.
9455         * modules/wcsncpy: New file.
9456         * lib/wchar.in.h (wcsncpy): New declaration.
9457         * lib/wcsncpy.c: New file.
9458         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
9459         * m4/wcsncpy.m4: New file.
9460         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
9461         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
9462         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
9463         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
9464         * doc/posix-functions/wcsncpy.texi: Mention the new module.
9465
9466 2011-02-05  Bruno Haible  <bruno@clisp.org>
9467
9468         New module 'wcpcpy'.
9469         * modules/wcpcpy: New file.
9470         * lib/wchar.in.h (wcpcpy): New declaration.
9471         * lib/wcpcpy.c: New file.
9472         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
9473         * m4/wcpcpy.m4: New file.
9474         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
9475         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
9476         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
9477         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
9478         * doc/posix-functions/wcpcpy.texi: Mention the new module.
9479
9480 2011-02-05  Bruno Haible  <bruno@clisp.org>
9481
9482         New module 'wcscpy'.
9483         * modules/wcscpy: New file.
9484         * lib/wchar.in.h (wcscpy): New declaration.
9485         * lib/wcscpy.c: New file.
9486         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
9487         * m4/wcscpy.m4: New file.
9488         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
9489         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
9490         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
9491         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
9492         * doc/posix-functions/wcscpy.texi: Mention the new module.
9493
9494 2011-02-05  Bruno Haible  <bruno@clisp.org>
9495
9496         New module 'wcsnlen'.
9497         * modules/wcsnlen: New file.
9498         * lib/wchar.in.h (wcsnlen): New declaration.
9499         * lib/wcsnlen.c: New file.
9500         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
9501         * m4/wcsnlen.m4: New file.
9502         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
9503         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
9504         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
9505         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
9506         * doc/posix-functions/wcsnlen.texi: Mention the new module.
9507
9508 2011-02-05  Bruno Haible  <bruno@clisp.org>
9509
9510         New module 'wcslen'.
9511         * modules/wcslen: New file.
9512         * lib/wchar.in.h (wcslen): New declaration.
9513         * lib/wcslen.c: New file.
9514         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
9515         * m4/wcslen.m4: New file.
9516         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
9517         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
9518         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
9519         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
9520         * doc/posix-functions/wcslen.texi: Mention the new module.
9521
9522 2011-02-05  Bruno Haible  <bruno@clisp.org>
9523
9524         New module 'wmemset'.
9525         * modules/wmemset: New file.
9526         * lib/wchar.in.h (wmemset): New declaration.
9527         * lib/wmemset.c: New file.
9528         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
9529         * m4/wmemset.m4: New file.
9530         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
9531         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
9532         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
9533         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
9534         * doc/posix-functions/wmemset.texi: Mention the new module.
9535
9536 2011-02-05  Bruno Haible  <bruno@clisp.org>
9537
9538         New module 'wmemmove'.
9539         * modules/wmemmove: New file.
9540         * lib/wchar.in.h (wmemmove): New declaration.
9541         * lib/wmemmove.c: New file.
9542         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
9543         * m4/wmemmove.m4: New file.
9544         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
9545         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
9546         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
9547         HAVE_WMEMMOVE.
9548         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
9549         * doc/posix-functions/wmemmove.texi: Mention the new module.
9550
9551 2011-02-05  Bruno Haible  <bruno@clisp.org>
9552
9553         New module 'wmemcpy'.
9554         * modules/wmemcpy: New file.
9555         * lib/wchar.in.h (wmemcpy): New declaration.
9556         * lib/wmemcpy.c: New file.
9557         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
9558         * m4/wmemcpy.m4: New file.
9559         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
9560         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
9561         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
9562         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
9563         * doc/posix-functions/wmemcpy.texi: Mention the new module.
9564
9565 2011-02-05  Bruno Haible  <bruno@clisp.org>
9566
9567         New module 'wmemcmp'.
9568         * modules/wmemcmp: New file.
9569         * lib/wchar.in.h (wmemcmp): New declaration.
9570         * lib/wmemcmp.c: New file.
9571         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
9572         * m4/wmemcmp.m4: New file.
9573         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
9574         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
9575         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
9576         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
9577         * doc/posix-functions/wmemcmp.texi: Mention the new module.
9578
9579 2011-02-07  Jim Meyering  <meyering@redhat.com>
9580
9581         di-set, ino-map: new modules, from coreutils
9582         * lib/di-set.c: New file.
9583         * lib/di-set.h: Likewise.
9584         * lib/ino-map.c: Likewise.
9585         * lib/ino-map.h: Likewise.
9586         * modules/di-set: Likewise.
9587         * modules/di-set-tests: Likewise.
9588         * modules/ino-map: Likewise.
9589         * modules/ino-map-tests: Likewise.
9590         * tests/test-di-set.c: Likewise.
9591         * tests/test-ino-map.c: Likewise.
9592
9593 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
9594
9595         getloadavg: merge minor changes from Emacs
9596
9597         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
9598         (getloadavg): Use memset, not bzero.
9599
9600         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
9601         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
9602         clash (bug#86).
9603
9604 2010-11-14  Bruno Haible  <bruno@clisp.org>
9605
9606         Allow multiple gnulib generated replacements to coexist.
9607         * lib/getopt.in.h (struct option): Avoid identical redefinition.
9608         * lib/inttypes.in.h (imaxdiv_t): Likewise.
9609         * lib/langinfo.in.h (nl_item): Likewise.
9610         * lib/math.in.h (_NaN, NAN): Likewise.
9611         * lib/netdb.in.h (struct addrinfo): Likewise.
9612         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
9613         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
9614         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
9615         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
9616         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
9617         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
9618         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
9619         pthread_mutexattr_init, pthread_mutexattr_settype,
9620         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
9621         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
9622         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
9623         pthread_spin_trylock, pthread_spin_unlock): Likewise.
9624         * lib/sched.in.h (struct sched_param): Likewise.
9625         * lib/se-selinux.in.h (security_class_t, security_context_t,
9626         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
9627         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
9628         lsetfilecon, fsetfilecon, security_check_context,
9629         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
9630         Likewise.
9631         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
9632         Likewise.
9633         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
9634         _gl_function_taking_int_returning_void_t, union sigval,
9635         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
9636         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
9637         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
9638         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
9639         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
9640         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
9641         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
9642         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
9643         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
9644         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
9645         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
9646         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
9647         socklen_t, rpl_fd_isset): Likewise.
9648         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
9649         * lib/sys_time.in.h (struct timeval): Likewise.
9650         * lib/sys_times.in.h (struct tms): Likewise.
9651         * lib/sys_utsname.in.h (struct utsname):
9652         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
9653         * lib/unistd.in.h (getpagesize): Likewise.
9654         * lib/wchar.in.h (mbstate_t): Likewise.
9655         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
9656         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
9657         towlower, towupper): Likewise.
9658         Reported by Sam Steingold <sds@gnu.org>.
9659
9660 2011-02-05  Eric Blake  <eblake@redhat.com>
9661
9662         unsetenv: work around Haiku issues
9663         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
9664         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
9665
9666 2010-12-30  Bruce Korb  <bkorb@gnu.org>
9667
9668         libposix: avoid calling error() within libposix
9669         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
9670         is defined.
9671
9672 2011-02-05  Eric Blake  <eblake@redhat.com>
9673
9674         strerror_r-posix: port to cygwin
9675         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
9676         implementation.
9677         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
9678         * tests/test-strerror_r.c (main): Fix test.
9679         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
9680         issue.
9681
9682 2011-02-05  Bruno Haible  <bruno@clisp.org>
9683
9684         New module 'wmemchr'.
9685         * modules/wmemchr: New file.
9686         * lib/wchar.in.h (wmemchr): New declaration.
9687         * lib/wmemchr.c: New file.
9688         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
9689         * m4/wmemchr.m4: New file.
9690         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
9691         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
9692         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
9693         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
9694         * doc/posix-functions/wmemchr.texi: Mention the new module.
9695
9696 2011-02-04  Eric Blake  <eblake@redhat.com>
9697
9698         fdopendir: detect FreeBSD bug
9699         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
9700         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
9701
9702 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
9703
9704         stdbool: do not define HAVE_STDBOOL_H
9705         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
9706         AC_HEADER_STDBOOL.  All uses changed.  Do not define
9707         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
9708         imported from the latest Autoconf git.  It was motivated by Emacs,
9709         which uses gnulib but does not need HAVE_STDBOOL_H.
9710
9711 2011-02-04  Bruno Haible  <bruno@clisp.org>
9712
9713         wcsnrtombs: Prepare for new module wwcsnrtombs.
9714         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
9715         * lib/wcsnrtombs.c: Include it.
9716         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
9717
9718         wcsrtombs: Prepare for new module wwcsrtombs.
9719         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
9720         * lib/wcsrtombs.c: Include it.
9721         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
9722
9723         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
9724         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
9725         * lib/mbsnrtowcs.c: Include it.
9726         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
9727
9728         mbsrtowcs: Prepare for new module mbsrtowwcs.
9729         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
9730         * lib/mbsrtowcs.c: Include it.
9731         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
9732
9733 2011-02-04  Bruno Haible  <bruno@clisp.org>
9734
9735         vasnprintf: Reduce use of malloc for small format strings.
9736         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
9737         (arguments): Add room for the first 7 arguments.
9738         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
9739         (char_directives, u8_directives, u16_directives, u32_directives): Add
9740         room for the first 7 directives.
9741         * lib/printf-parse.c: Include <string.h>.
9742         (PRINTF_PARSE): Change memory handling code so that it uses the first
9743         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
9744         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
9745         Reported by Pádraig Brady <P@draigbrady.com>.
9746
9747 2011-01-31  Eric Blake  <eblake@redhat.com>
9748
9749         dup2: work around Haiku bug
9750         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
9751         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
9752         * doc/posix-functions/dup2.texi (dup2): Document the bug.
9753         * tests/test-dup2.c (main): Enhance test.
9754
9755 2011-01-31  Simon Josefsson  <simon@josefsson.org>
9756
9757         doc: off_t is not available in eglibc 2.11.2 stdio.h.
9758         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
9759         declared by eglibc 2.11.2.
9760         * lib/stdio.in.h: Likewise.
9761
9762 2011-01-31  Eric Blake  <eblake@redhat.com>
9763
9764         ignore-value: add missing test dependency
9765         * tests/test-ignore-value.c: Revert previous change; stdio.h
9766         provides off_t.
9767         * modules/ignore-value-tests (Depends-on): Add missing dependency.
9768
9769 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
9770
9771         mktime: clarify long_int width checking
9772         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
9773         the top level, to make it clearer that the assumption about
9774         long_int width is being checked.  See
9775         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
9776
9777 2011-01-30  Simon Josefsson  <simon@josefsson.org>
9778
9779         ignore-value: Fix self-test.
9780         * tests/test-ignore-value.c: Include sys/types.h for off_t.
9781
9782 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
9783
9784         TYPE_MAXIMUM: avoid theoretically undefined behavior
9785         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
9786         negative number, which the C Standard says has undefined behavior.
9787         In practice this is not a problem, but might as well do it by the book.
9788         Reported by Rich Felker and Eric Blake; see
9789         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
9790         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
9791         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
9792         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
9793         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
9794         * m4/stdint.m4 (gl_STDINT_H): Likewise.
9795         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
9796
9797         mktime: #undef mktime before #defining it
9798         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
9799
9800         mktime: systematically normalize tm_isdst comparisons
9801         * lib/mktime.c (isdst_differ): New function.
9802         (__mktime_internal): Use it systematically for all isdst comparisons.
9803         This completes the fix for libc BZ #6723, and removes the need for
9804         normalizing tm_isdst.  See
9805         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
9806         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
9807
9808         mktime: fix some integer overflow issues and sidestep the rest
9809
9810         This was prompted by a bug report by Benjamin Lindner for MinGW
9811         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
9812         His bug is due to signed integer overflow (0 - INT_MIN), and I
9813         I scanned through mktime.c looking for other integer overflow
9814         problems, fixing all the bugs I found.
9815
9816         Although the C Standard says the resulting code is still not safe
9817         in the presence of integer overflow, in practice it should be good
9818         enough for all real-world two's-complement implementations, except
9819         for debugging environments that deliberately trap on integer
9820         overflow (e.g., gcc -ftrapv).
9821
9822         * lib/mktime.c (WRAPV): New macro.
9823         (SHR): Also check that long_int and time_t shift right in the
9824         usual way, before using the fast-but-unportable method.
9825         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
9826         used.  The code already assumed two's complement, so there's
9827         no need to test for alternatives.  All uses removed.
9828         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
9829         the C standard.  Problem reported by Rich Felker in
9830         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
9831         (twos_complement_arithmetic): Also check long_int and time_t.
9832         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
9833         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
9834         (__mktime_internal): Avoid integer overflow with unary subtraction
9835         in two instances where -1 - X is an adequate replacement for -X,
9836         since the calculations are approximate.
9837
9838 2011-01-29  Eric Blake  <eblake@redhat.com>
9839
9840         mktime: avoid infinite loop
9841         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
9842         type; behavior is still undefined but portable to all known targets.
9843         Reported by Rich Felker.
9844
9845 2011-01-29  Simon Josefsson  <simon@josefsson.org>
9846
9847         rename, unlink, same-inode: Relicense.
9848         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
9849         * modules/unlink (License): Likewise.
9850         * modules/same-inode (License): Likewise.
9851
9852 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
9853
9854         mktime: avoid problems on NetBSD 5 / i386
9855         * lib/mktime.c (long_int): New type.  This works around a problem
9856         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
9857         but time_t is 64 bits, and where I expect the existing code is
9858         wrong in some cases.
9859         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
9860         (ydhms_diff): Bring back the compile-time check for wide-enough
9861         year and yday.
9862
9863         mktime: fix misspelling in comment
9864         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
9865         This merges all recent glibc changes of importance.
9866
9867 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9868
9869         move-if-change: cope with concurrent mv of identical file.
9870         * build-aux/move-if-change (CMPPROG): Accept environment
9871         variable as an override for `cmp'.
9872         (usage): Document CMPPROG.
9873         Adjust comparison to drop stdout.  Cope with failure of mv if
9874         the target file exists and is identical to the source, for
9875         parallel builds.
9876         Report from H.J. Lu against binutils in PR binutils/12283.
9877
9878 2011-01-28  Bruce Korb  <bkorb@gnu.org>
9879
9880         * users.txt: Mention sharutils.
9881
9882 2011-01-28  Simon Josefsson  <simon@josefsson.org>
9883
9884         * users.txt: Mention OATH Toolkit.
9885
9886 2011-01-27  Bruno Haible  <bruno@clisp.org>
9887
9888         Prepare for supporting FreeBSD 10.
9889         * build-aux/config.libpath: Remove handling of freebsd1*.
9890
9891 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
9892
9893         Prepare for supporting FreeBSD 10.
9894         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
9895         match FreeBSD 10.0.
9896
9897 2011-01-27  Bruno Haible  <bruno@clisp.org>
9898
9899         vma-iter, get-rusage-as: Add OpenBSD support.
9900         * modules/vma-iter (configure.ac): Test for mquery.
9901         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
9902         * lib/vma-iter.c: Include <sys/mman.h>.
9903         (vma_iterate): Add an implementation based on mquery().
9904         * lib/resource-ext.h (get_rusage_as): Update comments.
9905         * lib/get-rusage-as.c: Likewise.
9906         * lib/get-rusage-data.c: Likewise.
9907
9908 2011-01-26  Karl Berry  <karl@gnu.org>
9909
9910         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
9911         variables to make it easier to override the makeinfo program used.
9912
9913 2011-01-26  Eric Blake  <eblake@redhat.com>
9914
9915         fcntl: work around Haiku F_DUPFD bugs
9916         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
9917         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
9918         cloexec bit on duplication.
9919         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
9920
9921 2011-01-26  Bruno Haible  <bruno@clisp.org>
9922
9923         Enable memory leak tests on AIX.
9924         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
9925         * tests/test-fprintf-posix3.c (main): Likewise.
9926
9927 2011-01-26  Bruno Haible  <bruno@clisp.org>
9928
9929         Tests for module 'get-rusage-data'.
9930         * modules/get-rusage-data-tests: New file.
9931         * tests/test-get-rusage-data.c: New file.
9932
9933         New module 'get-rusage-data'.
9934         * lib/resource-ext.h (get_rusage_data): New declaration.
9935         * lib/get-rusage-data.c: New file.
9936         * modules/get-rusage-data: New file.
9937
9938 2011-01-25  Bruno Haible  <bruno@clisp.org>
9939
9940         get-rusage-as: Allow for easier testing.
9941         * lib/resource-ext.h (get_rusage_as): Add comment.
9942         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
9943         (main): New function for interactive testing.
9944
9945 2011-01-25  Bruno Haible  <bruno@clisp.org>
9946
9947         vma-iter: Treat Haiku like BeOS.
9948         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
9949         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
9950
9951 2011-01-25  Eric Blake  <eblake@redhat.com>
9952
9953         c-stack: fix regression on cygwin when libsigsegv is present
9954         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
9955
9956 2011-01-24  Bruno Haible  <bruno@clisp.org>
9957
9958         vma-iter: Avoid empty intervals.
9959         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
9960         on an empty interval.
9961
9962 2011-01-24  Jim Meyering  <meyering@redhat.com>
9963
9964         u64: remove unnecessary #include
9965         * lib/u64.h: Don't include <stddef.h>.  It was not used.
9966
9967 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
9968
9969         Allow the user to avoid the HAVE_RAW_DECL_* macros.
9970         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
9971
9972 2011-01-23  Bruno Haible  <bruno@clisp.org>
9973
9974         New module 'vma-iter'.
9975         * lib/vma-iter.h: New file.
9976         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
9977         * modules/vma-iter: New file.
9978         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
9979         for get_rusage_as_via_iterator.
9980         (vma_iterate_callback): New function.
9981         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
9982         * modules/get-rusage-as (Depends-on): Add vma-iter.
9983
9984 2011-01-23  Bruno Haible  <bruno@clisp.org>
9985
9986         uninorm: Tweak includes.
9987         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
9988         Reported by Jim Meyering.
9989
9990 2011-01-23  Bruno Haible  <bruno@clisp.org>
9991
9992         get-rusage-as: Improve on NetBSD.
9993         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
9994         /proc, like on FreeBSD.
9995
9996 2011-01-23  Jim Meyering  <meyering@redhat.com>
9997
9998         xreadlink.h: remove unnecessary #include
9999         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
10000
10001         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
10002         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
10003
10004 2011-01-23  Bruno Haible  <bruno@clisp.org>
10005
10006         get-rusage-as: Fix bug.
10007         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
10008         original limit when aborting the first loop.
10009
10010 2011-01-23  Bruno Haible  <bruno@clisp.org>
10011
10012         wctype: Ensure valid C syntax.
10013         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
10014         unconditionally, instead of gl_NEXT_HEADERS conditionally.
10015
10016 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
10017
10018         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
10019         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
10020         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
10021         as they are needed only for configure's test case.
10022         This removes two unnecessary symbols from config.h.
10023
10024         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
10025         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
10026         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
10027         AC_CHECK_HEADERS_ONCE on a header that we also invoke
10028         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
10029         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
10030         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
10031         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
10032         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
10033         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
10034         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
10035         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
10036         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
10037         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
10038         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
10039         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
10040         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
10041         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
10042
10043 2011-01-21  Eric Blake  <eblake@redhat.com>
10044
10045         maintainer-makefile: work with older git for submodule check
10046         * top/maint.mk (public-submodule-commit): Rewrite to avoid
10047         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
10048         Reported by Matthias Bolte.
10049
10050         bootstrap: minor portability fixes
10051         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
10052         (usage): Omit leading capital and trailing . on help phrases, per
10053         GNU Coding Standards.
10054         (check_versions, top level): Prefix messages with script name.
10055
10056 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
10057
10058         bootstrap: support --no-git option
10059         * build-aux/bootstrap: Add --no-git option, to be used when
10060         --gnulib-srcdir points to the exact desired checkout.
10061
10062 2011-01-21  Eric Blake  <eblake@redhat.com>
10063
10064         strerror_r-posix: work with glibc 2.13
10065         * lib/strerror_r.c (strerror_r): Fix return type.
10066
10067 2011-01-21  Pádraig Brady  <P@draigBrady.com>
10068             Bruno Haible  <bruno@clisp.org>
10069
10070         uN_strstr: New unit tests.
10071         * modules/unistr/u8-strstr-tests: New file.
10072         * modules/unistr/u16-strstr-tests: New file.
10073         * modules/unistr/u32-strstr-tests: New file.
10074         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
10075         * tests/unistr/test-u8-strstr.c: New file.
10076         * tests/unistr/test-u16-strstr.c: New file.
10077         * tests/unistr/test-u32-strstr.c: New file.
10078
10079 2011-01-21  Pádraig Brady  <P@draigBrady.com>
10080             Bruno Haible  <bruno@clisp.org>
10081
10082         Make uN_strstr functions O(n) worst-case.
10083         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
10084         16-bit and 32-bit unit cases, use the unibyte algorithm from
10085         lib/mbsstr.c.
10086         * lib/unistr/u8-strstr.c: Include <string.h>.
10087         (UNIT_IS_UINT8_T): New macro.
10088         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
10089         (U_STRLEN, U_STRNLEN): New macros.
10090         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
10091         (U_STRLEN, U_STRNLEN): New macros.
10092         * modules/unistr/u8-strstr (Depends-on): Add strstr.
10093         (configure.ac): Update required libunistring version.
10094         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
10095         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
10096         malloca.
10097         (configure.ac): Update required libunistring version.
10098         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
10099         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
10100         malloca.
10101         (configure.ac): Update required libunistring version.
10102
10103 2011-01-21  Pádraig Brady  <P@draigBrady.com>
10104             Bruno Haible  <bruno@clisp.org>
10105
10106         Prepare for faster uN_strstr functions.
10107         * lib/str-kmp.h: Support definable UNITs.
10108         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
10109         needle_len argument.
10110         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
10111         * lib/mbscasestr.c (mbscasestr): Likewise.
10112
10113 2011-01-21  Pádraig Brady <P@draigBrady.com>
10114
10115         malloca-tests: make faster by unsetting MALLOC_PERTURB_
10116         * tests/test-malloca.c (main): Unset the environment variable
10117         to greatly speed up the test.
10118         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
10119         * modules/malloca-tests: Depend on unsetenv.
10120
10121 2011-01-21  Pádraig Brady <P@draigBrady.com>
10122
10123         ignore-value: remove stdint dependency
10124         * lib/ignore-value.h: Remove <stdint.h>
10125         * modules/ignore-value: Remove stdint dependency.
10126
10127 2011-01-21  Jim Meyering  <meyering@redhat.com>
10128
10129         maint.mk: adjust variable name to be consistent with other gl_ vars
10130         * top/maint.mk (gl_public_submodule_commit): Rename the variable
10131         to be lower case.
10132
10133 2011-01-20  Jim Meyering  <meyering@redhat.com>
10134
10135         maint.mk: make "check" depend on public-submodule-commit by default
10136         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
10137
10138 2011-01-20  Bruno Haible  <bruno@clisp.org>
10139
10140         mbfile, mbiter: Complete change from 2008-12-21.
10141         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
10142         * m4/mbiter.m4 (gl_MBITER): Likewise.
10143
10144 2011-01-20  Jim Meyering  <meyering@redhat.com>
10145
10146         init.sh: insert space between each function name and "()"
10147         * tests/init.sh: Make it a little easier to see that a function's
10148         name is "warn_", and not "warn" when looking at the first part of
10149         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
10150
10151 2011-01-20  Jim Meyering  <meyering@redhat.com>
10152
10153         mountlist: clean up code formatting
10154         * lib/mountlist.c (read_file_system_list): Split a long line,
10155         correct bracing style, use NULL in place of "(struct statfs *)0",
10156         don't parenthesize return value, add spaces around "=" and after
10157         ";-in-for-stmt".
10158
10159 2011-01-14  Markus Duft <mduft@gentoo.org>
10160
10161         mountlist: add support for Interix
10162         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
10163         Apply statvfs to all entries of /dev/fs.
10164         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
10165         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
10166
10167 2011-01-20  Jim Meyering  <meyering@redhat.com>
10168
10169         maint.mk: improve the public-submodule-commit rule
10170         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
10171         to suppress printing of its commands... unless V=1.
10172         Add git submodule's --quiet option to suppress printing of e.g.,
10173         "Entering gnulib" output.
10174         "cd" into $(srcdir) before running git submodule.
10175
10176 2011-01-20  Bruno Haible  <bruno@clisp.org>
10177
10178         include_next: Fix bug introduced on 2011-01-18.
10179         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
10180         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
10181         ac_cv_header_... variable if the second argument is not 'check'.
10182         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
10183         gl_NEXT_HEADERS_INTERNAL.
10184
10185 2011-01-20  Bruno Haible  <bruno@clisp.org>
10186
10187         Allow the user to avoid the GNULIB_TEST_* macros.
10188         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
10189         Suggested by Paul Eggert.
10190
10191 2011-01-14  Jim Meyering  <meyering@redhat.com>
10192
10193         bootstrap: avoid failure when there is no .gitmodules file
10194         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
10195         has been assigned to, even when its value is the empty string.
10196         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
10197         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
10198         Reported by John W. Eaton <jwe@gnu.org>.
10199
10200 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
10201
10202         assume <ctype.h>, ..., <time.h> exist
10203         For years gnulib has been assuming the existence of the headers
10204         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
10205         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
10206         them, since they don't appear to be needed.
10207         * README (Portability guidelines): Document this.
10208         * lib/flock.c: Assume <fcntl.h> exists.
10209         * lib/regex_internal.h: Assume <locale.h> exists.
10210         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
10211         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
10212         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
10213         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
10214         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
10215         * m4/regex.m4 (gl_REGEX): Likewise.
10216         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
10217         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
10218         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
10219         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
10220         * tests/test-argp.c: Likewise.
10221         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
10222
10223         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
10224         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
10225         AA_APPLE_UNIVERSAL_BUILD.  See
10226         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
10227         * NEWS: Document this.
10228
10229 2011-01-19  Eric Blake  <eblake@redhat.com>
10230
10231         c-stack: assume stack overflow if SA_SIGINFO unsupported
10232         * lib/c-stack.c (SIGACTION_WORKS): Rename...
10233         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
10234         sigaction will work.
10235         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
10236         behavior match Linux.
10237         * tests/test-c-stack.c (main): Prefer NULL for pointers.
10238
10239         stdbool-tests: accomodate Haiku
10240         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
10241
10242         binary-io: fix O_TEXT on Haiku
10243         * modules/binary-io (Depends-on): Add fcntl-h.
10244         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
10245         than blindly undefining O_TEXT.
10246         Reported by Scott McCreary.
10247
10248 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
10249
10250         include_next: do not check for standard headers like stddef.h
10251
10252         I found this problem when modifying Emacs to use gnulib.
10253         I noticed that it added HAVE_STDDEF_H to config.h, even though
10254         gnulib always assumes <stddef.h> exists as per README and this
10255         symbol is unnecessary.
10256         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
10257         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
10258         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
10259         faster for headers like stddef.h that are known to exist.
10260         (gl_CHECK_NEXT_HEADERS): Use it.
10261         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
10262         rather than gl_CHECK_NEXT_HEADERS.
10263         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
10264         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
10265
10266 2011-01-18  Eric Blake  <eblake@redhat.com>
10267
10268         ansi-c++-opt: skip C++ dependency style if C++ is unused
10269         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
10270         tests when we know C++ compilation is not desired.
10271         Reported by Scott McCreary.
10272
10273 2011-01-18  Bruno Haible  <bruno@clisp.org>
10274
10275         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
10276         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
10277         (main): Perform test also when getrlimit and setrlimit don't exist or
10278         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
10279         limiting the address space size using setrlimit, compare the address
10280         space size before and after the the test.
10281         * tests/test-dprintf-posix2.c: Likewise.
10282         * tests/test-fprintf-posix3.sh: Update skip messages.
10283         * tests/test-dprintf-posix2.sh: Likewise.
10284         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
10285         * modules/dprintf-posix-tests (Depends-on): Likewise.
10286         Reported by Bruce Korb <bkorb@gnu.org> and
10287         Gary V. Vaughan <gary@gnu.org>.
10288
10289 2011-01-18  Bruno Haible  <bruno@clisp.org>
10290
10291         get-rusage-as: Improvement for Cygwin.
10292         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
10293         areas that are merely reserved.
10294
10295 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
10296
10297         strftime: remove dependencies on multibyte modules
10298
10299         strftime depended on mbrlen, mbsinit, and wchar, but these modules
10300         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
10301         only if __osf__ is defined, and I suspect OSF doesn't need these
10302         other modules.  If my guess is wrong, we'll need to come up with a
10303         variant of strftime that doesn't need the multibyte modules.
10304
10305         I discovered this problem when attempting modify Emacs to use the
10306         strftime module.  With the previous gnulib, this caused Emacs to
10307         need 31 new files, ranging from lib/config.charset to
10308         m4/wint_t.m4.  This was overkill and I expect would be offputting
10309         to the Emacs maintainers.  After this change, only 6 new files are
10310         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
10311         stdbool.m4, and tm_gmtoff.m4.
10312
10313         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
10314         Suggested by Bruno Haible in
10315         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
10316         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
10317         and do not check for wchar.h.
10318         * modules/strftime (Files): Remove m4/mbstate_t.m4.
10319         (Depends-on): Remove mbrlen, mbsinit, wchar.
10320
10321 2011-01-18  Bruno Haible  <bruno@clisp.org>
10322
10323         Tests for module 'get-rusage-as'.
10324         * modules/get-rusage-as-tests: New file.
10325         * tests/test-get-rusage-as.c: New file.
10326
10327         New module 'get-rusage-as'.
10328         * modules/get-rusage-as: New file.
10329         * lib/resource-ext.h: New file.
10330         * lib/get-rusage-as.c: New file.
10331
10332 2011-01-17  Eric Blake  <eblake@redhat.com>
10333
10334         sigaction: relax license from LGPLv3+ to LGPLv2+
10335         * modules/sigaction (License): Relax to LGPLv2+.
10336
10337 2011-01-14  Bruno Haible  <bruno@clisp.org>
10338
10339         filemode: Make function declarations usable in C++ mode.
10340         * lib/filemode.h: Enclose function declarations in extern "C" block.
10341         Reported by John W. Eaton <jwe@gnu.org>.
10342
10343 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
10344
10345         save-cwd: no longer include "xgetcwd.h"
10346         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
10347         This avoids a compilation failure in projects that use save-cwd
10348         without also using the xgetcwd module.
10349
10350 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
10351
10352         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
10353         This is so that a program like Emacs, which needs only dtoastr,
10354         does not have to bother with distributing and compiling ftoastr
10355         and ldtoastr.
10356         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
10357         * modules/dtoastr, modules/ldtoastr: New files.
10358         * modules/ftoastr: Now works just for 'float'.
10359         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
10360         (Makefile.am): Remove ftoastr.h (not needed and no effect),
10361         dtoastr.c, ldtoastr.c.
10362
10363 2011-01-11  Jim Meyering  <meyering@redhat.com>
10364
10365         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
10366         There is no need to work around the lack of the fchdir function,
10367         since gnulib can now provide a replacement when required.
10368         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
10369         * modules/save-cwd (Depends-on): Add fchdir.
10370
10371 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
10372
10373         openat, save-cwd: avoid xmalloc
10374
10375         This removes a direct (but undocumented) dependency of openat on
10376         xalloc, along with an indirect dependency via save-cwd.  It also
10377         removes a dependency of save-cwd on xgetcwd, and thereby
10378         indirectly on xalloc.  This change causes the openat substitute
10379         to fall back on save_cwd when memory is tight, and for save_cwd to
10380         fail instead of dying when memory is tight, but that's good enough.
10381         Problem and initial idea for fix reported by Bastien Roucaries in
10382         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
10383
10384         * lib/openat-proc.c: Include stdlib.h (for malloc), not
10385         xalloc.h (for xmalloc).
10386         (openat_proc_name): Use malloc, not xmalloc.
10387         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
10388         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
10389
10390         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
10391         This avoids heap allocation for file names whose lengths are in
10392         the range 512..1023, with the upper bound increasing to at most
10393         4031 depending on the platform's PATH_MAX.  (We do not want
10394         pathmax.h here as it might supply a non-constant PATH_MAX.)
10395         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
10396         Perhaps they should be moved to malloca.h?
10397         (OPENAT_BUFFER_SIZE): Use them.
10398
10399 2011-01-10  Bruno Haible  <bruno@clisp.org>
10400
10401         doc: Update users.txt.
10402         * users.txt: Add recutils.
10403
10404 2011-01-09  Karl Berry  <karl@gnu.org>
10405
10406         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
10407
10408         * doc/configmake.texi: New file.
10409         * doc/gnulib.texi: Include it.
10410         * modules/configmake: Move documentation from here.
10411
10412 2011-01-09  Bruno Haible  <bruno@clisp.org>
10413
10414         Update to Unicode 6.0.0.
10415         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
10416         (get_lbp): Update for Unicode 6.0.0.
10417         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
10418         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
10419         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
10420         U+11001, U+11038..U+11046. Remove U+06DE.
10421         (uc_width): Fix bounds of planes.
10422         * tests/uniwidth/test-uc_width2.sh: Same updates as in
10423         lib/uniwidth/width.c.
10424         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
10425         trailing whitespace removed.
10426         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
10427         without comments, but with the original copyright notice.
10428         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
10429         * lib/unicase/ignorable.h: Likewise.
10430         * lib/unicase/tocasefold.h: Likewise.
10431         * lib/unicase/tolower.h: Likewise.
10432         * lib/unicase/totitle.h: Likewise.
10433         * lib/unicase/toupper.h: Likewise.
10434         * lib/unictype/bidi_of.h: Likewise.
10435         * lib/unictype/blocks.h: Likewise.
10436         * lib/unictype/categ_C.h: Likewise.
10437         * lib/unictype/categ_Cn.h: Likewise.
10438         * lib/unictype/categ_L.h: Likewise.
10439         * lib/unictype/categ_Ll.h: Likewise.
10440         * lib/unictype/categ_Lm.h: Likewise.
10441         * lib/unictype/categ_Lo.h: Likewise.
10442         * lib/unictype/categ_Lu.h: Likewise.
10443         * lib/unictype/categ_M.h: Likewise.
10444         * lib/unictype/categ_Mc.h: Likewise.
10445         * lib/unictype/categ_Me.h: Likewise.
10446         * lib/unictype/categ_Mn.h: Likewise.
10447         * lib/unictype/categ_N.h: Likewise.
10448         * lib/unictype/categ_Nd.h: Likewise.
10449         * lib/unictype/categ_No.h: Likewise.
10450         * lib/unictype/categ_P.h: Likewise.
10451         * lib/unictype/categ_Po.h: Likewise.
10452         * lib/unictype/categ_S.h: Likewise.
10453         * lib/unictype/categ_Sc.h: Likewise.
10454         * lib/unictype/categ_Sk.h: Likewise.
10455         * lib/unictype/categ_Sm.h: Likewise.
10456         * lib/unictype/categ_So.h: Likewise.
10457         * lib/unictype/categ_of.h: Likewise.
10458         * lib/unictype/combining.h: Likewise.
10459         * lib/unictype/ctype_alnum.h: Likewise.
10460         * lib/unictype/ctype_alpha.h: Likewise.
10461         * lib/unictype/ctype_graph.h: Likewise.
10462         * lib/unictype/ctype_lower.h: Likewise.
10463         * lib/unictype/ctype_print.h: Likewise.
10464         * lib/unictype/ctype_punct.h: Likewise.
10465         * lib/unictype/ctype_upper.h: Likewise.
10466         * lib/unictype/decdigit.h: Likewise.
10467         * lib/unictype/digit.h: Likewise.
10468         * lib/unictype/numeric.h: Likewise.
10469         * lib/unictype/pr_alphabetic.h: Likewise.
10470         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
10471         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
10472         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
10473         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
10474         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
10475         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
10476         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
10477         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
10478         * lib/unictype/pr_case_ignorable.h: Likewise.
10479         * lib/unictype/pr_cased.h: Likewise.
10480         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
10481         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
10482         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
10483         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
10484         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
10485         * lib/unictype/pr_combining.h: Likewise.
10486         * lib/unictype/pr_composite.h: Likewise.
10487         * lib/unictype/pr_currency_symbol.h: Likewise.
10488         * lib/unictype/pr_decimal_digit.h: Likewise.
10489         * lib/unictype/pr_deprecated.h: Likewise.
10490         * lib/unictype/pr_format_control.h: Likewise.
10491         * lib/unictype/pr_grapheme_base.h: Likewise.
10492         * lib/unictype/pr_grapheme_extend.h: Likewise.
10493         * lib/unictype/pr_grapheme_link.h: Likewise.
10494         * lib/unictype/pr_id_continue.h: Likewise.
10495         * lib/unictype/pr_id_start.h: Likewise.
10496         * lib/unictype/pr_ideographic.h: Likewise.
10497         * lib/unictype/pr_lowercase.h: Likewise.
10498         * lib/unictype/pr_math.h: Likewise.
10499         * lib/unictype/pr_numeric.h: Likewise.
10500         * lib/unictype/pr_other_alphabetic.h: Likewise.
10501         * lib/unictype/pr_other_id_continue.h: Likewise.
10502         * lib/unictype/pr_other_math.h: Likewise.
10503         * lib/unictype/pr_punctuation.h: Likewise.
10504         * lib/unictype/pr_sentence_terminal.h: Likewise.
10505         * lib/unictype/pr_terminal_punctuation.h: Likewise.
10506         * lib/unictype/pr_unassigned_code_value.h: Likewise.
10507         * lib/unictype/pr_unified_ideograph.h: Likewise.
10508         * lib/unictype/pr_uppercase.h: Likewise.
10509         * lib/unictype/pr_xid_continue.h: Likewise.
10510         * lib/unictype/pr_xid_start.h: Likewise.
10511         * lib/unictype/scripts.h: Likewise.
10512         * lib/unictype/scripts_byname.gperf: Likewise.
10513         * lib/unictype/sy_java_ident.h: Likewise.
10514         * lib/unigbrk/gbrkprop.h: Likewise.
10515         * lib/unilbrk/lbrkprop1.h: Likewise.
10516         * lib/unilbrk/lbrkprop2.h: Likewise.
10517         * lib/uninorm/decomposition-table2.h: Likewise.
10518         * lib/uniwbrk/wbrkprop.h: Likewise.
10519         * tests/unicase/test-cased.c: Likewise.
10520         * tests/unicase/test-ignorable.c: Likewise.
10521         * tests/unicase/test-uc_tolower.c: Likewise.
10522         * tests/unicase/test-uc_totitle.c: Likewise.
10523         * tests/unicase/test-uc_toupper.c: Likewise.
10524         * tests/unictype/test-categ_C.c: Likewise.
10525         * tests/unictype/test-categ_Cn.c: Likewise.
10526         * tests/unictype/test-categ_L.c: Likewise.
10527         * tests/unictype/test-categ_Ll.c: Likewise.
10528         * tests/unictype/test-categ_Lm.c: Likewise.
10529         * tests/unictype/test-categ_Lo.c: Likewise.
10530         * tests/unictype/test-categ_Lu.c: Likewise.
10531         * tests/unictype/test-categ_M.c: Likewise.
10532         * tests/unictype/test-categ_Mc.c: Likewise.
10533         * tests/unictype/test-categ_Me.c: Likewise.
10534         * tests/unictype/test-categ_Mn.c: Likewise.
10535         * tests/unictype/test-categ_N.c: Likewise.
10536         * tests/unictype/test-categ_Nd.c: Likewise.
10537         * tests/unictype/test-categ_No.c: Likewise.
10538         * tests/unictype/test-categ_P.c: Likewise.
10539         * tests/unictype/test-categ_Po.c: Likewise.
10540         * tests/unictype/test-categ_S.c: Likewise.
10541         * tests/unictype/test-categ_Sc.c: Likewise.
10542         * tests/unictype/test-categ_Sk.c: Likewise.
10543         * tests/unictype/test-categ_Sm.c: Likewise.
10544         * tests/unictype/test-categ_So.c: Likewise.
10545         * tests/unictype/test-ctype_alnum.c: Likewise.
10546         * tests/unictype/test-ctype_alpha.c: Likewise.
10547         * tests/unictype/test-ctype_graph.c: Likewise.
10548         * tests/unictype/test-ctype_lower.c: Likewise.
10549         * tests/unictype/test-ctype_print.c: Likewise.
10550         * tests/unictype/test-ctype_punct.c: Likewise.
10551         * tests/unictype/test-ctype_upper.c: Likewise.
10552         * tests/unictype/test-decdigit.h: Likewise.
10553         * tests/unictype/test-digit.h: Likewise.
10554         * tests/unictype/test-numeric.h: Likewise.
10555         * tests/unictype/test-pr_alphabetic.c: Likewise.
10556         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
10557         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
10558         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
10559         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
10560         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
10561         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
10562         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
10563         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
10564         * tests/unictype/test-pr_case_ignorable.c: Likewise.
10565         * tests/unictype/test-pr_cased.c: Likewise.
10566         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
10567         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
10568         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
10569         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
10570         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
10571         * tests/unictype/test-pr_combining.c: Likewise.
10572         * tests/unictype/test-pr_composite.c: Likewise.
10573         * tests/unictype/test-pr_currency_symbol.c: Likewise.
10574         * tests/unictype/test-pr_decimal_digit.c: Likewise.
10575         * tests/unictype/test-pr_deprecated.c: Likewise.
10576         * tests/unictype/test-pr_format_control.c: Likewise.
10577         * tests/unictype/test-pr_grapheme_base.c: Likewise.
10578         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
10579         * tests/unictype/test-pr_grapheme_link.c: Likewise.
10580         * tests/unictype/test-pr_id_continue.c: Likewise.
10581         * tests/unictype/test-pr_id_start.c: Likewise.
10582         * tests/unictype/test-pr_ideographic.c: Likewise.
10583         * tests/unictype/test-pr_lowercase.c: Likewise.
10584         * tests/unictype/test-pr_math.c: Likewise.
10585         * tests/unictype/test-pr_numeric.c: Likewise.
10586         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
10587         * tests/unictype/test-pr_other_id_continue.c: Likewise.
10588         * tests/unictype/test-pr_other_math.c: Likewise.
10589         * tests/unictype/test-pr_punctuation.c: Likewise.
10590         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
10591         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
10592         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
10593         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
10594         * tests/unictype/test-pr_uppercase.c: Likewise.
10595         * tests/unictype/test-pr_xid_continue.c: Likewise.
10596         * tests/unictype/test-pr_xid_start.c: Likewise.
10597         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
10598         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
10599         changes.
10600         * lib/unictype/categ_Cc.h: Likewise.
10601         * lib/unictype/categ_Cf.h: Likewise.
10602         * lib/unictype/categ_Co.h: Likewise.
10603         * lib/unictype/categ_Cs.h: Likewise.
10604         * lib/unictype/categ_Lt.h: Likewise.
10605         * lib/unictype/categ_Nl.h: Likewise.
10606         * lib/unictype/categ_Pc.h: Likewise.
10607         * lib/unictype/categ_Pd.h: Likewise.
10608         * lib/unictype/categ_Pe.h: Likewise.
10609         * lib/unictype/categ_Pf.h: Likewise.
10610         * lib/unictype/categ_Pi.h: Likewise.
10611         * lib/unictype/categ_Ps.h: Likewise.
10612         * lib/unictype/categ_Z.h: Likewise.
10613         * lib/unictype/categ_Zl.h: Likewise.
10614         * lib/unictype/categ_Zp.h: Likewise.
10615         * lib/unictype/categ_Zs.h: Likewise.
10616         * lib/unictype/ctype_blank.h: Likewise.
10617         * lib/unictype/ctype_cntrl.h: Likewise.
10618         * lib/unictype/ctype_digit.h: Likewise.
10619         * lib/unictype/ctype_space.h: Likewise.
10620         * lib/unictype/ctype_xdigit.h: Likewise.
10621         * lib/unictype/mirror.h: Likewise.
10622         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
10623         * lib/unictype/pr_bidi_block_separator.h: Likewise.
10624         * lib/unictype/pr_bidi_common_separator.h: Likewise.
10625         * lib/unictype/pr_bidi_control.h: Likewise.
10626         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
10627         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
10628         * lib/unictype/pr_bidi_european_digit.h: Likewise.
10629         * lib/unictype/pr_bidi_pdf.h: Likewise.
10630         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
10631         * lib/unictype/pr_bidi_whitespace.h: Likewise.
10632         * lib/unictype/pr_dash.h: Likewise.
10633         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
10634         * lib/unictype/pr_diacritic.h: Likewise.
10635         * lib/unictype/pr_extender.h: Likewise.
10636         * lib/unictype/pr_hex_digit.h: Likewise.
10637         * lib/unictype/pr_hyphen.h: Likewise.
10638         * lib/unictype/pr_ids_binary_operator.h: Likewise.
10639         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
10640         * lib/unictype/pr_ignorable_control.h: Likewise.
10641         * lib/unictype/pr_iso_control.h: Likewise.
10642         * lib/unictype/pr_join_control.h: Likewise.
10643         * lib/unictype/pr_left_of_pair.h: Likewise.
10644         * lib/unictype/pr_line_separator.h: Likewise.
10645         * lib/unictype/pr_logical_order_exception.h: Likewise.
10646         * lib/unictype/pr_non_break.h: Likewise.
10647         * lib/unictype/pr_not_a_character.h: Likewise.
10648         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
10649         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
10650         * lib/unictype/pr_other_id_start.h: Likewise.
10651         * lib/unictype/pr_other_lowercase.h: Likewise.
10652         * lib/unictype/pr_other_uppercase.h: Likewise.
10653         * lib/unictype/pr_paired_punctuation.h: Likewise.
10654         * lib/unictype/pr_paragraph_separator.h: Likewise.
10655         * lib/unictype/pr_pattern_syntax.h: Likewise.
10656         * lib/unictype/pr_pattern_white_space.h: Likewise.
10657         * lib/unictype/pr_private_use.h: Likewise.
10658         * lib/unictype/pr_quotation_mark.h: Likewise.
10659         * lib/unictype/pr_radical.h: Likewise.
10660         * lib/unictype/pr_soft_dotted.h: Likewise.
10661         * lib/unictype/pr_space.h: Likewise.
10662         * lib/unictype/pr_titlecase.h: Likewise.
10663         * lib/unictype/pr_variation_selector.h: Likewise.
10664         * lib/unictype/pr_white_space.h: Likewise.
10665         * lib/unictype/pr_zero_width.h: Likewise.
10666         * lib/unictype/sy_c_ident.h: Likewise.
10667         * lib/unictype/sy_c_whitespace.h: Likewise.
10668         * lib/unictype/sy_java_whitespace.h: Likewise.
10669         * lib/uninorm/composition-table.gperf: Likewise.
10670         * lib/uninorm/decomposition-table1.h: Likewise.
10671         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
10672         LB8.
10673         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
10674         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
10675         * modules/unictype/*: Bump version number of expected libunistring
10676         version.
10677
10678 2011-01-09  Bruno Haible  <bruno@clisp.org>
10679
10680         Update to Unicode 5.2.0.
10681         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
10682         trailing whitespace removed.
10683
10684 2011-01-09  Bruno Haible  <bruno@clisp.org>
10685
10686         New Unicode character properties, from Unicode 5.2.0.
10687         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
10688         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
10689         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
10690         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
10691         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
10692         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
10693         uc_is_property_cased, uc_is_property_case_ignorable,
10694         uc_is_property_changes_when_lowercased,
10695         uc_is_property_changes_when_uppercased,
10696         uc_is_property_changes_when_titlecased,
10697         uc_is_property_changes_when_casefolded,
10698         uc_is_property_changes_when_casemapped): New declarations.
10699         * lib/unictype/pr_byname.gperf: Add the new properties.
10700         * modules/unictype/property-byname (Depends-on): Depend on the new
10701         properties modules.
10702         * modules/unictype/property-all (Depends-on): Likewise.
10703         * MODULES.html.sh (Unicode string functions): Add
10704         unictype/property-case-ignorable, unictype/property-cased,
10705         unictype/property-changes-when-casefolded,
10706         unictype/property-changes-when-casemapped,
10707         unictype/property-changes-when-lowercased,
10708         unictype/property-changes-when-titlecased,
10709         unictype/property-changes-when-uppercased.
10710
10711         New module 'unictype/property-changes-when-casemapped'.
10712         * modules/unictype/property-changes-when-casemapped: New file.
10713         * lib/unictype/pr_changes_when_casemapped.c: New file.
10714         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
10715         generated by gen-uni-tables.
10716         * modules/unictype/property-changes-when-casemapped-tests: New file.
10717         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
10718         automatically generated by gen-uni-tables.
10719
10720         New module 'unictype/property-changes-when-casefolded'.
10721         * modules/unictype/property-changes-when-casefolded: New file.
10722         * lib/unictype/pr_changes_when_casefolded.c: New file.
10723         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
10724         generated by gen-uni-tables.
10725         * modules/unictype/property-changes-when-casefolded-tests: New file.
10726         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
10727         automatically generated by gen-uni-tables.
10728
10729         New module 'unictype/property-changes-when-titlecased'.
10730         * modules/unictype/property-changes-when-titlecased: New file.
10731         * lib/unictype/pr_changes_when_titlecased.c: New file.
10732         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
10733         generated by gen-uni-tables.
10734         * modules/unictype/property-changes-when-titlecased-tests: New file.
10735         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
10736         automatically generated by gen-uni-tables.
10737
10738         New module 'unictype/property-changes-when-uppercased'.
10739         * modules/unictype/property-changes-when-uppercased: New file.
10740         * lib/unictype/pr_changes_when_uppercased.c: New file.
10741         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
10742         generated by gen-uni-tables.
10743         * modules/unictype/property-changes-when-uppercased-tests: New file.
10744         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
10745         automatically generated by gen-uni-tables.
10746
10747         New module 'unictype/property-changes-when-lowercased'.
10748         * modules/unictype/property-changes-when-lowercased: New file.
10749         * lib/unictype/pr_changes_when_lowercased.c: New file.
10750         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
10751         generated by gen-uni-tables.
10752         * modules/unictype/property-changes-when-lowercased-tests: New file.
10753         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
10754         automatically generated by gen-uni-tables.
10755
10756         New module 'unictype/property-case-ignorable'.
10757         * modules/unictype/property-case-ignorable: New file.
10758         * lib/unictype/pr_case_ignorable.c: New file.
10759         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
10760         by gen-uni-tables.
10761         * modules/unictype/property-case-ignorable-tests: New file.
10762         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
10763         generated by gen-uni-tables.
10764
10765         New module 'unictype/property-cased'.
10766         * modules/unictype/property-cased: New file.
10767         * lib/unictype/pr_cased.c: New file.
10768         * lib/unictype/pr_cased.h: New file, automatically generated by
10769         gen-uni-tables.
10770         * modules/unictype/property-cased-tests: New file.
10771         * tests/unictype/test-pr_cased.c: New file, automatically generated by
10772         gen-uni-tables.
10773
10774 2011-01-09  Bruno Haible  <bruno@clisp.org>
10775
10776         Update to Unicode 5.2.0.
10777         * lib/gen-uni-tables.c (output_predicate, output_category,
10778         output_combclass, output_bidi_category, output_decimal_digit_test,
10779         output_decimal_digit, output_digit_test, output_digit,
10780         output_numeric_test, output_numeric, output_mirror, output_scripts,
10781         output_scripts_byname, output_blocks, output_ident_category): Fix
10782         comment header.
10783         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
10784         get_wbp.
10785         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
10786         items.
10787         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
10788         Changes_When_Lowercased, Changes_When_Uppercased,
10789         Changes_When_Titlecased, Changes_When_Casefolded,
10790         Changes_When_Casemapped.
10791         (is_property_alphabetic, is_property_default_ignorable_code_point):
10792         Update for Unicode 5.2.0.
10793         (is_property_cased, is_property_case_ignorable,
10794         is_property_changes_when_lowercased,
10795         is_property_changes_when_uppercased,
10796         is_property_changes_when_titlecased,
10797         is_property_changes_when_casefolded,
10798         is_property_changes_when_casemapped): New functions.
10799         (output_properties): Output also the properties cased, case_ignorable,
10800         changes_when_lowercased, changes_when_uppercased,
10801         changes_when_titlecased, changes_when_casefolded,
10802         changes_when_casemapped.
10803         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
10804         Unicode TR#11 revision 17 -> 19.
10805         (LBP_CP): New enumeration value.
10806         (LBP_*): Adjust values accordingly.
10807         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
10808         TR#14 revision 22 -> 24.
10809         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
10810         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
10811         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
10812         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
10813         is_WBP_MIDLETTER.
10814         (output_composition_tables): Allow for 24 bits instead of 16 bits in
10815         the code1 and code2 of each composition rule.
10816         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
10817         * lib/unicase/ignorable.h: Likewise.
10818         * lib/unicase/tocasefold.h: Likewise.
10819         * lib/unicase/tolower.h: Likewise.
10820         * lib/unicase/totitle.h: Likewise.
10821         * lib/unicase/toupper.h: Likewise.
10822         * lib/unictype/bidi_of.h: Likewise.
10823         * lib/unictype/blocks.h: Likewise.
10824         * lib/unictype/categ_C.h: Likewise.
10825         * lib/unictype/categ_Cf.h: Likewise.
10826         * lib/unictype/categ_Cn.h: Likewise.
10827         * lib/unictype/categ_L.h: Likewise.
10828         * lib/unictype/categ_Ll.h: Likewise.
10829         * lib/unictype/categ_Lm.h: Likewise.
10830         * lib/unictype/categ_Lo.h: Likewise.
10831         * lib/unictype/categ_Lu.h: Likewise.
10832         * lib/unictype/categ_M.h: Likewise.
10833         * lib/unictype/categ_Mc.h: Likewise.
10834         * lib/unictype/categ_Mn.h: Likewise.
10835         * lib/unictype/categ_N.h: Likewise.
10836         * lib/unictype/categ_Nd.h: Likewise.
10837         * lib/unictype/categ_Nl.h: Likewise.
10838         * lib/unictype/categ_No.h: Likewise.
10839         * lib/unictype/categ_P.h: Likewise.
10840         * lib/unictype/categ_Pd.h: Likewise.
10841         * lib/unictype/categ_Po.h: Likewise.
10842         * lib/unictype/categ_S.h: Likewise.
10843         * lib/unictype/categ_Sc.h: Likewise.
10844         * lib/unictype/categ_So.h: Likewise.
10845         * lib/unictype/categ_of.h: Likewise.
10846         * lib/unictype/combining.h: Likewise.
10847         * lib/unictype/ctype_alnum.h: Likewise.
10848         * lib/unictype/ctype_alpha.h: Likewise.
10849         * lib/unictype/ctype_graph.h: Likewise.
10850         * lib/unictype/ctype_lower.h: Likewise.
10851         * lib/unictype/ctype_print.h: Likewise.
10852         * lib/unictype/ctype_punct.h: Likewise.
10853         * lib/unictype/ctype_upper.h: Likewise.
10854         * lib/unictype/decdigit.h: Likewise.
10855         * lib/unictype/digit.h: Likewise.
10856         * lib/unictype/numeric.h: Likewise.
10857         * lib/unictype/pr_alphabetic.h: Likewise.
10858         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
10859         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
10860         * lib/unictype/pr_bidi_european_digit.h: Likewise.
10861         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
10862         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
10863         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
10864         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
10865         * lib/unictype/pr_combining.h: Likewise.
10866         * lib/unictype/pr_composite.h: Likewise.
10867         * lib/unictype/pr_currency_symbol.h: Likewise.
10868         * lib/unictype/pr_dash.h: Likewise.
10869         * lib/unictype/pr_decimal_digit.h: Likewise.
10870         * lib/unictype/pr_deprecated.h: Likewise.
10871         * lib/unictype/pr_diacritic.h: Likewise.
10872         * lib/unictype/pr_extender.h: Likewise.
10873         * lib/unictype/pr_grapheme_base.h: Likewise.
10874         * lib/unictype/pr_grapheme_extend.h: Likewise.
10875         * lib/unictype/pr_grapheme_link.h: Likewise.
10876         * lib/unictype/pr_id_continue.h: Likewise.
10877         * lib/unictype/pr_id_start.h: Likewise.
10878         * lib/unictype/pr_ideographic.h: Likewise.
10879         * lib/unictype/pr_ignorable_control.h: Likewise.
10880         * lib/unictype/pr_logical_order_exception.h: Likewise.
10881         * lib/unictype/pr_lowercase.h: Likewise.
10882         * lib/unictype/pr_numeric.h: Likewise.
10883         * lib/unictype/pr_other_alphabetic.h: Likewise.
10884         * lib/unictype/pr_punctuation.h: Likewise.
10885         * lib/unictype/pr_sentence_terminal.h: Likewise.
10886         * lib/unictype/pr_terminal_punctuation.h: Likewise.
10887         * lib/unictype/pr_unassigned_code_value.h: Likewise.
10888         * lib/unictype/pr_unified_ideograph.h: Likewise.
10889         * lib/unictype/pr_uppercase.h: Likewise.
10890         * lib/unictype/pr_xid_continue.h: Likewise.
10891         * lib/unictype/pr_xid_start.h: Likewise.
10892         * lib/unictype/pr_zero_width.h: Likewise.
10893         * lib/unictype/scripts.h: Likewise.
10894         * lib/unictype/scripts_byname.gperf: Likewise.
10895         * lib/unictype/sy_java_ident.h: Likewise.
10896         * lib/unigbrk/gbrkprop.h: Likewise.
10897         * lib/unilbrk/lbrkprop1.h: Likewise.
10898         * lib/unilbrk/lbrkprop2.h: Likewise.
10899         * lib/unilbrk/lbrktables.h: Likewise.
10900         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
10901         LBP_CP. Implement rule LB30.
10902         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
10903         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
10904         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
10905         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
10906         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
10907         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
10908         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
10909         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
10910         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
10911         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
10912         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
10913         bits instead of 16 bits in the code1 and code2 of each composition
10914         rule.
10915         (uc_composition): Update for Unicode 5.2.0.
10916         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
10917         * lib/uninorm/decomposition-table2.h: Likewise.
10918         * lib/uniwbrk/wbrkprop.h: Likewise.
10919         * tests/unicase/test-cased.c: Likewise.
10920         * tests/unicase/test-ignorable.c: Likewise.
10921         * tests/unicase/test-uc_tolower.c: Likewise.
10922         * tests/unicase/test-uc_totitle.c: Likewise.
10923         * tests/unicase/test-uc_toupper.c: Likewise.
10924         * tests/unictype/test-categ_C.c: Likewise.
10925         * tests/unictype/test-categ_Cf.c: Likewise.
10926         * tests/unictype/test-categ_Cn.c: Likewise.
10927         * tests/unictype/test-categ_L.c: Likewise.
10928         * tests/unictype/test-categ_Ll.c: Likewise.
10929         * tests/unictype/test-categ_Lm.c: Likewise.
10930         * tests/unictype/test-categ_Lo.c: Likewise.
10931         * tests/unictype/test-categ_Lu.c: Likewise.
10932         * tests/unictype/test-categ_M.c: Likewise.
10933         * tests/unictype/test-categ_Mc.c: Likewise.
10934         * tests/unictype/test-categ_Mn.c: Likewise.
10935         * tests/unictype/test-categ_N.c: Likewise.
10936         * tests/unictype/test-categ_Nd.c: Likewise.
10937         * tests/unictype/test-categ_Nl.c: Likewise.
10938         * tests/unictype/test-categ_No.c: Likewise.
10939         * tests/unictype/test-categ_P.c: Likewise.
10940         * tests/unictype/test-categ_Pd.c: Likewise.
10941         * tests/unictype/test-categ_Po.c: Likewise.
10942         * tests/unictype/test-categ_S.c: Likewise.
10943         * tests/unictype/test-categ_Sc.c: Likewise.
10944         * tests/unictype/test-categ_So.c: Likewise.
10945         * tests/unictype/test-ctype_alnum.c: Likewise.
10946         * tests/unictype/test-ctype_alpha.c: Likewise.
10947         * tests/unictype/test-ctype_graph.c: Likewise.
10948         * tests/unictype/test-ctype_lower.c: Likewise.
10949         * tests/unictype/test-ctype_print.c: Likewise.
10950         * tests/unictype/test-ctype_punct.c: Likewise.
10951         * tests/unictype/test-ctype_upper.c: Likewise.
10952         * tests/unictype/test-decdigit.h: Likewise.
10953         * tests/unictype/test-digit.h: Likewise.
10954         * tests/unictype/test-numeric.h: Likewise.
10955         * tests/unictype/test-pr_alphabetic.c: Likewise.
10956         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
10957         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
10958         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
10959         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
10960         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
10961         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
10962         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
10963         * tests/unictype/test-pr_combining.c: Likewise.
10964         * tests/unictype/test-pr_composite.c: Likewise.
10965         * tests/unictype/test-pr_currency_symbol.c: Likewise.
10966         * tests/unictype/test-pr_dash.c: Likewise.
10967         * tests/unictype/test-pr_decimal_digit.c: Likewise.
10968         * tests/unictype/test-pr_deprecated.c: Likewise.
10969         * tests/unictype/test-pr_diacritic.c: Likewise.
10970         * tests/unictype/test-pr_extender.c: Likewise.
10971         * tests/unictype/test-pr_grapheme_base.c: Likewise.
10972         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
10973         * tests/unictype/test-pr_grapheme_link.c: Likewise.
10974         * tests/unictype/test-pr_id_continue.c: Likewise.
10975         * tests/unictype/test-pr_id_start.c: Likewise.
10976         * tests/unictype/test-pr_ideographic.c: Likewise.
10977         * tests/unictype/test-pr_ignorable_control.c: Likewise.
10978         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
10979         * tests/unictype/test-pr_lowercase.c: Likewise.
10980         * tests/unictype/test-pr_numeric.c: Likewise.
10981         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
10982         * tests/unictype/test-pr_punctuation.c: Likewise.
10983         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
10984         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
10985         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
10986         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
10987         * tests/unictype/test-pr_uppercase.c: Likewise.
10988         * tests/unictype/test-pr_xid_continue.c: Likewise.
10989         * tests/unictype/test-pr_xid_start.c: Likewise.
10990         * tests/unictype/test-pr_zero_width.c: Likewise.
10991         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
10992         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
10993         changed behaviour: line breaking is now disallowed between a letter
10994         or '=' and '('.
10995         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
10996         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
10997         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
10998         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
10999         * tests/uniwidth/test-uc_width2.sh: Same updates as in
11000         lib/uniwidth/width.c.
11001         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
11002         without comments, but with the original copyright notice.
11003         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
11004         changes.
11005         * lib/unictype/categ_Cc.h: Likewise.
11006         * lib/unictype/categ_Co.h: Likewise.
11007         * lib/unictype/categ_Cs.h: Likewise.
11008         * lib/unictype/categ_Lt.h: Likewise.
11009         * lib/unictype/categ_Me.h: Likewise.
11010         * lib/unictype/categ_Pc.h: Likewise.
11011         * lib/unictype/categ_Pe.h: Likewise.
11012         * lib/unictype/categ_Pf.h: Likewise.
11013         * lib/unictype/categ_Pi.h: Likewise.
11014         * lib/unictype/categ_Ps.h: Likewise.
11015         * lib/unictype/categ_Sk.h: Likewise.
11016         * lib/unictype/categ_Sm.h: Likewise.
11017         * lib/unictype/categ_Z.h: Likewise.
11018         * lib/unictype/categ_Zl.h: Likewise.
11019         * lib/unictype/categ_Zp.h: Likewise.
11020         * lib/unictype/categ_Zs.h: Likewise.
11021         * lib/unictype/ctype_blank.h: Likewise.
11022         * lib/unictype/ctype_cntrl.h: Likewise.
11023         * lib/unictype/ctype_digit.h: Likewise.
11024         * lib/unictype/ctype_space.h: Likewise.
11025         * lib/unictype/ctype_xdigit.h: Likewise.
11026         * lib/unictype/mirror.h: Likewise.
11027         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
11028         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
11029         * lib/unictype/pr_bidi_block_separator.h: Likewise.
11030         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
11031         * lib/unictype/pr_bidi_common_separator.h: Likewise.
11032         * lib/unictype/pr_bidi_control.h: Likewise.
11033         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
11034         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
11035         * lib/unictype/pr_bidi_pdf.h: Likewise.
11036         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
11037         * lib/unictype/pr_bidi_whitespace.h: Likewise.
11038         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
11039         * lib/unictype/pr_format_control.h: Likewise.
11040         * lib/unictype/pr_hex_digit.h: Likewise.
11041         * lib/unictype/pr_hyphen.h: Likewise.
11042         * lib/unictype/pr_ids_binary_operator.h: Likewise.
11043         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
11044         * lib/unictype/pr_iso_control.h: Likewise.
11045         * lib/unictype/pr_join_control.h: Likewise.
11046         * lib/unictype/pr_left_of_pair.h: Likewise.
11047         * lib/unictype/pr_line_separator.h: Likewise.
11048         * lib/unictype/pr_math.h: Likewise.
11049         * lib/unictype/pr_non_break.h: Likewise.
11050         * lib/unictype/pr_not_a_character.h: Likewise.
11051         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
11052         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
11053         * lib/unictype/pr_other_id_continue.h: Likewise.
11054         * lib/unictype/pr_other_id_start.h: Likewise.
11055         * lib/unictype/pr_other_lowercase.h: Likewise.
11056         * lib/unictype/pr_other_math.h: Likewise.
11057         * lib/unictype/pr_other_uppercase.h: Likewise.
11058         * lib/unictype/pr_paired_punctuation.h: Likewise.
11059         * lib/unictype/pr_paragraph_separator.h: Likewise.
11060         * lib/unictype/pr_pattern_syntax.h: Likewise.
11061         * lib/unictype/pr_pattern_white_space.h: Likewise.
11062         * lib/unictype/pr_private_use.h: Likewise.
11063         * lib/unictype/pr_quotation_mark.h: Likewise.
11064         * lib/unictype/pr_radical.h: Likewise.
11065         * lib/unictype/pr_soft_dotted.h: Likewise.
11066         * lib/unictype/pr_space.h: Likewise.
11067         * lib/unictype/pr_titlecase.h: Likewise.
11068         * lib/unictype/pr_variation_selector.h: Likewise.
11069         * lib/unictype/pr_white_space.h: Likewise.
11070         * lib/unictype/sy_c_ident.h: Likewise.
11071         * lib/unictype/sy_c_whitespace.h: Likewise.
11072         * lib/unictype/sy_java_whitespace.h: Likewise.
11073         * modules/uni*/*: Bump version number of expected libunistring version.
11074         Reported by Simon Josefsson.
11075
11076 2011-01-09  Karl Heuer  <kwzh@gnu.org>
11077
11078         useless-if-before-free: fix typo in --help and make the internal,
11079         automatic version date update process work once again.
11080         --help output contained a NUL character instead of the
11081         backslash-zero that was intended.  Also, the "must lie within
11082         the first 8 lines" line is on line 9, and hence not getting
11083         automatically updated.
11084         * build-aux/useless-if-before-free: Fix the former by adding a
11085         backslash, and the latter by condensing the three lines of what-it-does
11086         to a single line, leaving one line of slack for the future.
11087
11088 2011-01-09  Bruno Haible  <bruno@clisp.org>
11089
11090         uniwidth/width: Fix width of U+1D173..U+1D17A.
11091         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
11092         symbolic_width, output_width_property_test): New functions.
11093         (main): Invoke output_nonspacing_property, output_width_property_test.
11094         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
11095         U+1D173..U+1D17A.
11096         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
11097         1.
11098         * modules/uniwidth/*: Bump version number of expected libunistring
11099         version.
11100         * modules/unilbrk/*: Likewise.
11101
11102 2011-01-08  Bruno Haible  <bruno@clisp.org>
11103
11104         uninorm tests: Preserve copyright of Unicode data file.
11105         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
11106         Mention modifications.
11107
11108 2011-01-08  Bruno Haible  <bruno@clisp.org>
11109
11110         gen-uni-tables: Prepare for Unicode 5.2.0.
11111         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
11112         (debug_output_lbp, output_lbp): Update.
11113
11114 2011-01-08  Bruno Haible  <bruno@clisp.org>
11115
11116         unilbrk: Clarify gen-uni-tables.c code.
11117         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
11118         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
11119         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
11120
11121 2011-01-07  Bruno Haible  <bruno@clisp.org>
11122
11123         strtod: Restore errno when successfully parsing Infinity or NaN.
11124         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
11125         restore the original errno.
11126
11127 2011-01-07  Bruno Haible  <bruno@clisp.org>
11128
11129         remove test: Avoid failure on HP-UX 11.
11130         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
11131
11132 2011-01-07  Bruno Haible  <bruno@clisp.org>
11133
11134         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
11135         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
11136         error code.
11137
11138 2011-01-07  Pádraig Brady <P@draigBrady.com>
11139
11140         ignore-value: fixup comments, and add Eric Blake
11141         as an author since he rewrote the macros.
11142         * lib/ignore-value.h (ignore_value):  State that
11143         we now support aggregates.  Also specify exactly
11144         when the GCC warn_unused_result feature was added.
11145
11146 2011-01-06  Eric Blake  <eblake@redhat.com>
11147
11148         ignore-value: support aggregate types
11149         * lib/ignore-value.h (ignore_value): Provide separate gcc
11150         definition.
11151         * modules/ignore-value-tests: New test module.
11152         * tests/test-ignore-value.c: New test.
11153
11154         maint.mk: improve sc_prohibit_strcmp regex
11155         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
11156         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
11157         definition of STRNEQ.
11158
11159         signal: work around Haiku issue with SIGBUS
11160         * lib/siglist.h: Add comment.
11161         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
11162         strsignal's favoring of SIGSEGV.
11163         * tests/test-signal.c (main): Avoid test failure.
11164         * doc/posix-headers/signal.texi (signal.h): Document the issue.
11165         Reported by Scott McCreary.
11166
11167         maint.mk: add pre-release check to ensure submodule commits are public
11168         * top/maint.mk (public-submodule-commit): New rule.
11169         (submodule-checks): New variable.
11170         (alpha beta stable): Depend on the variable.
11171
11172 2011-01-05  Pádraig Brady <P@draigBrady.com>
11173         and Jim Meyering  <meyering@redhat.com>
11174
11175         ignore-value: make ignore_value more generic; deprecate ignore_ptr
11176         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
11177         (ATTRIBUTE_DEPRECATED): Define.
11178         (_ignore_case): New function.
11179         (ignore_value): New macro, to replace the old function.
11180         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
11181         * modules/ignore-value (Depends-on): Add stdint.
11182
11183 2011-01-04  Eric Blake  <eblake@redhat.com>
11184
11185         doc: regenerate INSTALL
11186         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
11187         @firstparagraphindent support, now that autoconf dropped it.
11188         (INSTALL_PRELUDE): Reinstate old macro.
11189         * doc/install.texi: Resync from autoconf.
11190         * doc/INSTALL: Reflect recent autoconf update.
11191         * doc/INSTALL.ISO: Likewise.
11192         * doc/INSTALL.UTF-8: Likewise.
11193         Reported by Karl Berry.
11194
11195 2011-01-04  Bruce Korb  <address@hidden>
11196
11197         git-version-gen: avoid a sub-shell
11198         * build-aux/git-version-gen: Redirect stderr in `...` via
11199         "exec 2>...", rather than via an added sub-shell.
11200
11201 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
11202
11203         git-version-gen: use (...) rather than sh -c '...'
11204         * build-aux/git-version-gen: Rather than hard-coding a shell's name
11205         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
11206
11207 2011-01-03  Jim Meyering  <meyering@redhat.com>
11208
11209         git-version-gen: convert leading TABs to spaces
11210         * build-aux/git-version-gen: Expand leading TABs.
11211
11212         git-version-gen: handle failed "git rev-list"
11213         * build-aux/git-version-gen: Rather than leaking a "fatal" error
11214         from git and proceeding as if it had succeeded but printed no SHA1
11215         checksums, suppress the diagnostic and handle the failure.
11216         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
11217
11218         git-version-gen: include command name in one more diagnostic
11219         * build-aux/git-version-gen: When the required .tarball-version file
11220         was missing or unreadable, you might see the diagnostic from "cat",
11221         but no trace of the name of the invoking script.  Now, you still see
11222         the diagnostic from cat, but also get one from "git-version-gen: ".
11223         Inspired by a patch from Bruce Korb.
11224
11225         update-copyright: adjust test to match changed code
11226         * tests/test-update-copyright.sh: Change test's expected output
11227         to match new actual output.
11228
11229 2011-01-02  Bruno Haible  <bruno@clisp.org>
11230
11231         getlogin_r: Avoid test failure on HP-UX 11.
11232         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
11233         ERANGE when the second argument is zero.
11234         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
11235         portability problem.
11236
11237 2011-01-02  Bruce Korb  <bkorb@gnu.org>
11238
11239         * build-aux/update-copyright: doc Simon's changes
11240
11241 2011-01-02  Simon Josefsson  <simon@josefsson.org>
11242
11243         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
11244         environment variable.
11245
11246 2011-01-02  Bruno Haible  <bruno@clisp.org>
11247
11248         unigbrk: Avoid gcc warnings.
11249         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
11250         unused variable.
11251         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
11252         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
11253         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
11254         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
11255         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
11256         Change type of first argument to 'const char *'.
11257         (main): Remove unused variable.
11258         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
11259         type of first argument to 'const char *'.
11260         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
11261         Likewise.
11262         (main): Change type of variable 's'.
11263         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
11264         to 'int'.
11265
11266 2011-01-02  Bruno Haible  <bruno@clisp.org>
11267
11268         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
11269         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
11270         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
11271         bug.
11272         * lib/pwrite.c: Undo 2010-12-31 patch.
11273         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
11274
11275 2011-01-02  Bruno Haible  <bruno@clisp.org>
11276
11277         pread: Fix test whether it works.
11278         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
11279
11280 2011-01-02  Bruno Haible  <bruno@clisp.org>
11281
11282         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
11283         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
11284         ends in "6". Don't require a specific month name. Try also the locale
11285         names found on HP-UX 11 and Solaris 7.
11286
11287 2011-01-02  Bruno Haible  <bruno@clisp.org>
11288
11289         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
11290         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
11291         C linkage.
11292         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
11293
11294 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
11295
11296         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
11297         for consistency, since the "cluster" term is not used elsewhere.
11298         * lib/unigbrk.in.h: Update name.
11299         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
11300         * lib/unigbrk/u16-grapheme-next.c: Update name.
11301         * lib/unigbrk/u16-grapheme-prev.c: Update name.
11302         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
11303         * lib/unigbrk/u32-grapheme-next.c: Update name.
11304         * lib/unigbrk/u32-grapheme-prev.c: Update name.
11305         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
11306         * lib/unigbrk/u8-grapheme-next.c: Update name.
11307         * lib/unigbrk/u8-grapheme-prev.c: Update name.
11308         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
11309         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
11310         Suggested by Bruno Haible.
11311
11312 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
11313
11314         Remove module 'u8-grapheme-len' as too redundant with
11315         'u8-grapheme-next'.
11316         * modules/unigbrk/u8-grapheme-len: Delete file.
11317         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
11318         * lib/unigbrk.in.h: Remove prototype for deleted function.
11319         * lib/unigbrk/u8-grapheme-len.c: Delete file.
11320         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
11321
11322         Remove module 'u16-grapheme-len' as too redundant with
11323         'u16-grapheme-next'.
11324         * modules/unigbrk/u16-grapheme-len: Delete file.
11325         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
11326         * lib/unigbrk.in.h: Remove prototype for deleted function.
11327         * lib/unigbrk/u16-grapheme-len.c: Delete file.
11328         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
11329
11330         Remove module 'u32-grapheme-len' as too redundant with
11331         'u32-grapheme-next'.
11332         * modules/unigbrk/u32-grapheme-len: Delete file.
11333         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
11334         * lib/unigbrk.in.h: Remove prototype for deleted function.
11335         * lib/unigbrk/u32-grapheme-len.c: Delete file.
11336         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
11337
11338         Suggested by Bruno Haible.
11339
11340 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
11341
11342         * unigbrk.in.h: Fix typo: "ben" => "been".
11343         Reported by Bruno Haible.
11344
11345 2011-01-01  Jim Meyering  <meyering@redhat.com>
11346
11347         maint: update almost all copyright ranges to include 2011
11348         Run the new "make update-copyright" rule.
11349
11350 2011-01-01  Jim Meyering  <meyering@redhat.com>
11351
11352         maint: update-copyright: exempt doc/INSTALL*
11353         * Makefile (update-copyright): Also exclude doc/INSTALL*,
11354         since they are generated.  Suggested by Bruno Haible.
11355
11356 2011-01-01  Jim Meyering  <meyering@redhat.com>
11357
11358         maint: refine the update-copyright rule
11359         * Makefile (update-copyright): Also exclude any file that includes
11360         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
11361         code that merely generates the comment.
11362
11363 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
11364
11365         New module 'u8-grapheme-len'.
11366         * modules/unigbrk/u8-grapheme-len: New file.
11367         * modules/unigbrk/u8-grapheme-len-tests: New file.
11368         * lib/unigbrk.in.h: Add prototype for new function.
11369         * lib/unigbrk/u8-grapheme-len.c: New file.
11370         * tests/unigbrk/test-u8-grapheme-len.c: New file.
11371
11372         New module 'u16-grapheme-len'.
11373         * modules/unigbrk/u16-grapheme-len: New file.
11374         * modules/unigbrk/u16-grapheme-len-tests: New file.
11375         * lib/unigbrk.in.h: Add prototype for new function.
11376         * lib/unigbrk/u16-grapheme-len.c: New file.
11377         * tests/unigbrk/test-u16-grapheme-len.c: New file.
11378
11379         New module 'u32-grapheme-len'.
11380         * modules/unigbrk/u32-grapheme-len: New file.
11381         * modules/unigbrk/u32-grapheme-len-tests: New file.
11382         * lib/unigbrk.in.h: Add prototype for new function.
11383         * lib/unigbrk/u32-grapheme-len.c: New file.
11384         * tests/unigbrk/test-u32-grapheme-len.c: New file.
11385
11386         New module 'u8-grapheme-next'.
11387         * modules/unigbrk/u8-grapheme-next: New file.
11388         * modules/unigbrk/u8-grapheme-next-tests: New file.
11389         * lib/unigbrk.in.h: Add prototype for new function.
11390         * lib/unigbrk/u8-grapheme-next.c: New file.
11391         * tests/unigbrk/test-u8-grapheme-next.c: New file.
11392
11393         New module 'u16-grapheme-next'.
11394         * modules/unigbrk/u16-grapheme-next: New file.
11395         * modules/unigbrk/u16-grapheme-next-tests: New file.
11396         * lib/unigbrk.in.h: Add prototype for new function.
11397         * lib/unigbrk/u16-grapheme-next.c: New file.
11398         * tests/unigbrk/test-u16-grapheme-next.c: New file.
11399
11400         New module 'u32-grapheme-next'.
11401         * modules/unigbrk/u32-grapheme-next: New file.
11402         * modules/unigbrk/u32-grapheme-next-tests: New file.
11403         * lib/unigbrk.in.h: Add prototype for new function.
11404         * lib/unigbrk/u32-grapheme-next.c: New file.
11405         * tests/unigbrk/test-u32-grapheme-next.c: New file.
11406
11407         New module 'u8-grapheme-prev'.
11408         * modules/unigbrk/u8-grapheme-prev: New file.
11409         * modules/unigbrk/u8-grapheme-prev-tests: New file.
11410         * lib/unigbrk.in.h: Add prototype for new function.
11411         * lib/unigbrk/u8-grapheme-prev.c: New file.
11412         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
11413
11414         New module 'u16-grapheme-prev'.
11415         * modules/unigbrk/u16-grapheme-prev: New file.
11416         * modules/unigbrk/u16-grapheme-prev-tests: New file.
11417         * lib/unigbrk.in.h: Add prototype for new function.
11418         * lib/unigbrk/u16-grapheme-prev.c: New file.
11419         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
11420
11421         New module 'u32-grapheme-prev'.
11422         * modules/unigbrk/u32-grapheme-prev: New file.
11423         * modules/unigbrk/u32-grapheme-prev-tests: New file.
11424         * lib/unigbrk.in.h: Add prototype for new function.
11425         * lib/unigbrk/u32-grapheme-prev.c: New file.
11426         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
11427
11428         New module 'u8-grapheme-breaks'.
11429         * modules/unigbrk/u8-grapheme-breaks: New file.
11430         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
11431         * lib/unigbrk.in.h: Add prototype for new function.
11432         * lib/unigbrk/u8-grapheme-breaks.c: New file.
11433         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
11434
11435         New module 'u16-grapheme-breaks'.
11436         * modules/unigbrk/u16-grapheme-breaks: New file.
11437         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
11438         * lib/unigbrk.in.h: Add prototype for new function.
11439         * lib/unigbrk/u16-grapheme-breaks.c: New file.
11440         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
11441
11442         New module 'u32-grapheme-breaks'.
11443         * modules/unigbrk/u32-grapheme-breaks: New file.
11444         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
11445         * lib/unigbrk.in.h: Add prototype for new function.
11446         * lib/unigbrk/u32-grapheme-breaks.c: New file.
11447         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
11448
11449         New module 'ulc-grapheme-breaks'.
11450         * modules/unigbrk/ulc-grapheme-breaks: New file.
11451         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
11452         * m4/locale-ar.m4: New file.
11453         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
11454         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
11455         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
11456
11457 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
11458
11459         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
11460         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
11461         modified how this file was generated before I initially submitted
11462         the module, but failed to regenerate it.  This meant that several
11463         of the level2 entries were wrong.
11464         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
11465         Remove the division-by-2 that is folded into the table now that
11466         gbrkprop.h has been regenerated properly.  Now -1 entries are
11467         handled correctly.
11468
11469         New module 'unigbrk/uc-gbrk-prop-tests'.
11470         * modules/unigbrk/uc-gbrk-prop-tests: New file.
11471         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
11472         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
11473         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
11474
11475 2011-01-01  Bruno Haible  <bruno@clisp.org>
11476
11477         Avoid use of hexadecimal escapes.
11478         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
11479         instead of hexadecimal escapes.
11480
11481 2011-01-01  Jim Meyering  <meyering@redhat.com>
11482
11483         maint: new rule to update copyright year ranges
11484         * Makefile (update-copyright): New rule.
11485
11486         maint: indent with TABs in Makefile
11487         * Makefile: Expand leading sequences of spaces to TABs
11488
11489         version-etc: update the copyright year it reports
11490         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
11491
11492 2010-12-31  Bruno Haible  <bruno@clisp.org>
11493
11494         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
11495         * lib/isfinite.c (zerof, zerod, zerol): New variables.
11496         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
11497         zero.
11498
11499 2010-12-31  Bruno Haible  <bruno@clisp.org>
11500
11501         pwrite: Work around HP-UX 11.11 bug.
11502         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
11503         works and set REPLACE_PWRITE if not.
11504         * lib/pwrite.c (pwrite): Add an implementation that uses the system
11505         function.
11506         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
11507
11508 2010-12-31  Bruno Haible  <bruno@clisp.org>
11509
11510         pread: Work around HP-UX 11 bugs.
11511         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
11512         and set REPLACE_PREAD if not.
11513         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
11514
11515 2010-12-31  Eric Blake  <eblake@redhat.com>
11516
11517         nl_langinfo: fix YESEXPR on Irix 6.5
11518         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
11519         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
11520         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
11521         it.
11522
11523 2010-12-31  Bruno Haible  <bruno@clisp.org>
11524
11525         iconv: Document HP-UX 11 bug.
11526         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
11527
11528 2010-12-31  Bruno Haible  <bruno@clisp.org>
11529
11530         ldexpl: Fix link error on HP-UX 11.
11531         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
11532         LDEXPL_LIBM, using $ISNANL_LIBM.
11533
11534 2010-12-31  Eric Blake  <eblake@redhat.com>
11535
11536         ftello: avoid compilation failure with SunStudio c89
11537         * lib/ftello.c (ftello): Use lseek, not llseek.
11538
11539         tests: avoid failing coreutils tests on cygwin
11540         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
11541         (create_exe_shims_): Return 0 when skipping.
11542
11543 2010-12-31  Bruno Haible  <bruno@clisp.org>
11544
11545         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
11546         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
11547
11548 2010-12-31  Bruno Haible  <bruno@clisp.org>
11549
11550         waitpid: Fix link error in C++ mode.
11551         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
11552
11553 2010-12-31  Bruno Haible  <bruno@clisp.org>
11554
11555         isnan: Use GCC built-ins when possible.
11556         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
11557         __builtin_isnan.
11558         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
11559         (isnan): Define using GCC built-ins for GCC >= 4.0.
11560
11561 2010-12-31  Bruno Haible  <bruno@clisp.org>
11562
11563         isnand: Fix mistake.
11564         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
11565         __builtin_isnand.
11566
11567 2010-12-31  Bruno Haible  <bruno@clisp.org>
11568
11569         open: Avoid C++ error on HP-UX 11.
11570         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
11571
11572 2010-12-31  Bruno Haible  <bruno@clisp.org>
11573
11574         time_r: Add missing declarations on HP-UX 11.
11575         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
11576         instead of HAVE_LOCALTIME_R.
11577         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
11578         HAVE_LOCALTIME_R always.
11579         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
11580         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
11581         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
11582         HAVE_LOCALTIME_R.
11583         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
11584         * doc/posix-functions/localtime_r.texi: Likewise.
11585
11586 2010-12-29  Eric Blake  <eblake@redhat.com>
11587
11588         mountlist: tweak previous commit
11589         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
11590         Reported by Paul Eggert.
11591
11592         mountlist: fix local drive detection on cygwin
11593         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
11594         that works for cygwin.
11595
11596 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
11597
11598         ftoastr, snprintf: ftoastr + snprintf module
11599         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
11600         since the snprintf module now should be good enough here.
11601         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
11602         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
11603         and gl_MODULE_INDICATOR([snprintf]), but the former enables
11604         GNULIB_SNPRINTF only for the test directory, and the latter
11605         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
11606         seems to suffice by itself.
11607
11608 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
11609
11610         alloca: one step towards thread-safety
11611         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
11612         need for a static variable.  All callers changed.  This does not
11613         make the alloca replacement thread-safe, but it's one step.
11614
11615         tests: minor indenting change
11616         * tests/init.sh: Sync from coreutils housekeeping patch
11617         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
11618         to keep lines within 80 columns.
11619
11620 2010-12-28  Jim Meyering  <meyering@redhat.com>
11621
11622         regex: don't infloop on persistent failing calloc
11623         * lib/regexec.c (build_trtable): Return failure indication upon
11624         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
11625         In glibc, this was fixed for version 2.13:
11626         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
11627
11628 2010-12-28  Bruno Haible  <bruno@clisp.org>
11629             Paul Eggert <eggert@cs.ucla.edu>
11630
11631         linkat: Make implementation robust against system behaviour variations.
11632         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
11633         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
11634         way, and to -2 if it needs a generic runtime test.
11635         * lib/linkat.c (solaris_optimized_link_immediate,
11636         solaris_optimized_link_follow): New functions.
11637         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
11638         (check_same_link): Use it.
11639
11640 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
11641
11642         New module 'unigbrk/base'.
11643         * modules/unigbrk/base: New file.
11644         * lib/unigbrk.in.h: New file.
11645
11646         New module 'unigbrk/uc-gbrk-prop'.
11647         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
11648         * modules/unigbrk/uc-gbrk-prop: New file.
11649         * lib/unigbrk/gbrkprop.h: New file.
11650         * lib/unigbrk/uc-gbrk-prop.c: New file.
11651
11652         New module 'unigbrk/uc-is-grapheme-break'.
11653         * modules/unigbrk/uc-is-grapheme-break: New file.
11654         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
11655         * lib/unigbrk/uc-is-grapheme-break.c: New file.
11656         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
11657         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
11658         * tests/unigbrk/GraphemeBreakTest.txt: New file.
11659
11660         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
11661
11662 2010-12-27  Bruno Haible  <bruno@clisp.org>
11663
11664         linkat test: Avoid failure on Solaris 11 2010-11.
11665         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
11666
11667 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
11668
11669         utimens: work around glibc rounding bug on more platforms
11670         * lib/utimens.c (fdutimens): Work around rounding bug even if
11671         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
11672         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
11673
11674 2010-12-27  Bruno Haible  <bruno@clisp.org>
11675
11676         select tests: Improve comments.
11677         * tests/test-select.c (do_select): Add comments.
11678
11679 2010-12-27  Bruno Haible  <bruno@clisp.org>
11680
11681         select tests: Safer way of handling timeout.
11682         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
11683         at every invocation.
11684
11685 2010-12-27  Bruno Haible  <bruno@clisp.org>
11686
11687         select tests: Use 'bool' where appropriate.
11688         * tests/test-select.c (connect_to_socket): Change argument type to
11689         'bool'.
11690
11691 2010-12-27  Bruno Haible  <bruno@clisp.org>
11692
11693         select tests: Use existing modules.
11694         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
11695         (configure.ac): Don't test for unistd.h.
11696         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
11697         declared in <unistd.h>.
11698
11699 2010-12-27  Bruno Haible  <bruno@clisp.org>
11700
11701         mbrtowc: Work around a Solaris 7 bug.
11702         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
11703         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
11704         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
11705         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
11706         MBRTOWC_NULL_ARG1_BUG.
11707         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
11708         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
11709         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
11710         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
11711
11712 2010-12-27  Jim Meyering  <meyering@redhat.com>
11713
11714         read-file.c: tweak syntax
11715         * lib/read-file.c (fread_file): Remove space after "*" in function
11716         definitions.
11717
11718 2010-12-27  Bruno Haible  <bruno@clisp.org>
11719
11720         times test: Avoid gcc warnings on OSF/1.
11721         * tests/test-times.c (main): Cast printf arguments from clock_t to
11722         'long int'.
11723
11724 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
11725
11726         utimens: work around glibc rounding bug on older Linux kernels
11727         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
11728         on Linux with a glibc whose utimes might not work, then work
11729         around a longstanding glibc bug involving rounding rather than
11730         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
11731         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
11732
11733 2010-12-26  Bruno Haible  <bruno@clisp.org>
11734
11735         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
11736         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
11737         _GL_CXXALIAS_SYS.
11738         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
11739
11740 2010-12-26  Bruno Haible  <bruno@clisp.org>
11741
11742         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
11743         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
11744         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
11745         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
11746         looking for the declaration.
11747         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
11748         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
11749         problem.
11750         * doc/posix-functions/inet_pton.texi: Likewise.
11751
11752 2010-12-26  Bruno Haible  <bruno@clisp.org>
11753
11754         arpa_inet: Use the common idioms with C++ support.
11755         * lib/arpa_inet.in.h: Include c++defs.h.
11756         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
11757         support.
11758         * modules/arpa_inet (Depends-on): Add c++defs.
11759         (Makefile.am): Substitute the contents of c++defs.h.
11760         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
11761         * modules/arpa_inet-c++-tests: New file.
11762         * tests/test-arpa_inet-c++.cc: New file.
11763
11764 2010-12-25  Bruno Haible  <bruno@clisp.org>
11765
11766         Fix more C++ link errors on Solaris 8.
11767         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
11768         $(LIB_EACCESS).
11769         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
11770         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
11771         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
11772         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
11773         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
11774
11775 2010-12-25  Bruno Haible  <bruno@clisp.org>
11776
11777         printf-posix: Fix link error when a non-GCC compiler is used.
11778         * lib/stdio.in.h (printf): When not using GCC, override printf
11779         correctly.
11780         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
11781
11782 2010-12-25  Bruno Haible  <bruno@clisp.org>
11783
11784         strerror_r-posix: Update doc.
11785         * doc/posix-functions/strerror_r.texi: Update doc about the return
11786         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
11787
11788 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
11789
11790         utimens: simplify the logic of the previous change
11791         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
11792         This should not affect whether the test succeeds or fails.
11793
11794         utimens: configure better on hosts with NFS clock skew
11795         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
11796         uses the clock of the local host.  It might use the clock of the
11797         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
11798         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
11799
11800 2010-12-25  Bruno Haible  <bruno@clisp.org>
11801
11802         ptsname test: Avoid failure on Solaris.
11803         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
11804         open a pseudo-terminal; don't use BSD-style ptys.
11805         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
11806
11807 2010-12-25  Bruno Haible  <bruno@clisp.org>
11808
11809         ptsname: Avoid ERANGE failure on some systems.
11810         * lib/ptsname.c (buffer): Increase size.
11811
11812 2010-12-25  Bruno Haible  <bruno@clisp.org>
11813
11814         rename, renameat: Avoid test failures at NFS mounted locations.
11815         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
11816         so that subsequent mkdir calls succeed.
11817
11818 2010-12-25  Bruno Haible  <bruno@clisp.org>
11819
11820         iswblank: Fix C++ link error on Solaris 8.
11821         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
11822         _GL_FUNCDECL_SYS.
11823
11824 2010-12-25  Bruno Haible  <bruno@clisp.org>
11825
11826         unistd: Fix C++ link error on Solaris 8.
11827         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
11828
11829 2010-12-25  Bruno Haible  <bruno@clisp.org>
11830
11831         readlink doc: Mention an old glibc bug.
11832         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
11833
11834 2010-12-25  Bruno Haible  <bruno@clisp.org>
11835
11836         fcntl-h: Fix for use of C++ on glibc systems.
11837         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
11838         also on glibc systems in C++ mode.
11839         Reported by Gary V. Vaughan <gary@gnu.org>.
11840
11841 2010-12-25  Bruno Haible  <bruno@clisp.org>
11842
11843         roundl-ieee: Make it work on OSF/1 5.1 with cc.
11844         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
11845
11846 2010-12-25  Bruno Haible  <bruno@clisp.org>
11847
11848         truncl-ieee: Make it work on OSF/1 5.1 with cc.
11849         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
11850         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
11851         test whether truncl works according to ISO C 99 with IEC 60559.
11852         * m4/truncl-ieee.m4: New file.
11853         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
11854         m4/signbit.m4.
11855         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
11856
11857 2010-12-25  Bruno Haible  <bruno@clisp.org>
11858
11859         ceill-ieee: Make it work on OSF/1 5.1 with cc.
11860         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
11861         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
11862         test whether ceill works according to ISO C 99 with IEC 60559.
11863         * m4/ceill-ieee.m4: New file.
11864         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
11865         m4/signbit.m4.
11866         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
11867
11868 2010-12-25  Bruno Haible  <bruno@clisp.org>
11869
11870         Ensure all prerequisites of <wchar.h> are included.
11871         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
11872         before <wchar.h>.
11873         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
11874         gl_MBRLEN_NUL_RETVAL): Likewise.
11875         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
11876         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
11877         AC_FUNC_MBRTOWC): Likewise.
11878         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
11879         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
11880         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
11881         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
11882         Likewise.
11883         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
11884         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
11885         (gl_WCHAR_H): Improve comments.
11886         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
11887
11888 2010-12-25  Bruno Haible  <bruno@clisp.org>
11889
11890         strtok_r: Fix C syntax error in autoconf macro.
11891         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
11892         characters in test program.
11893
11894 2010-12-24  Bruno Haible  <bruno@clisp.org>
11895
11896         ceil, trunc, round: Fix gcc warnings.
11897         * lib/ceil.c (MIN): Undefine before redefining.
11898         * lib/trunc.c (MIN): Likewise.
11899         * lib/round.c (MIN): Likewise.
11900         Include <math.h> first.
11901
11902 2010-12-24  Bruno Haible  <bruno@clisp.org>
11903
11904         select tests: Avoid failures on OSF/1 5.1.
11905         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
11906         failure of closing the last socket; it may fail with ECONNRESET.
11907
11908 2010-12-24  Eric Blake  <eblake@redhat.com>
11909
11910         stdint: avoid HP-UX 10.20 preprocessor bug
11911         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
11912         than #if.
11913         * tests/test-floor2.c (main): Likewise.
11914         Reported by Peter O'Gorman.
11915
11916         pipe: make obsoletion transition easier
11917         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
11918         * modules/pipe (Files): Include revived file.
11919         (Include): Drop reference, to mirror getdate's behavior.
11920
11921 2010-12-24  Bruno Haible  <bruno@clisp.org>
11922
11923         sys_socket: Hide mismatch of declarations on NonStop Kernel.
11924         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
11925         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
11926         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
11927
11928 2010-12-24  Bruno Haible  <bruno@clisp.org>
11929
11930         gethostname: Ensure declaration on NonStop Kernel.
11931         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
11932         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
11933
11934 2010-12-24  Bruno Haible  <bruno@clisp.org>
11935
11936         sys_select: Ensure all necessary types on NonStop Kernel.
11937         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
11938         include <sys/time.h>.
11939         * doc/posix-headers/sys_select.texi: Mention that it's missing on
11940         NonStop Kernel.
11941         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
11942
11943 2010-12-24  Bruno Haible  <bruno@clisp.org>
11944
11945         sys_select: Remove unneeded include.
11946         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
11947         have <sys/select.h>.
11948
11949 2010-12-24  Bruno Haible  <bruno@clisp.org>
11950
11951         gethostname: Provide a fallback for HOST_NAME_MAX.
11952         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
11953         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
11954         instead.
11955         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
11956
11957 2010-12-24  Bruno Haible  <bruno@clisp.org>
11958
11959         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
11960         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
11961         (SA_RESTART): Likewise.
11962         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
11963
11964 2010-12-24  Bruno Haible  <bruno@clisp.org>
11965
11966         signal: Define NSIG.
11967         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
11968         * tests/test-signal.c (nsig): New variable.
11969         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
11970
11971 2010-12-24  Bruno Haible  <bruno@clisp.org>
11972
11973         rename, renameat: Avoid test failures on OSF/1 5.1.
11974         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
11975         alternative error codes.
11976         * tests/test-renameat.c (main): Likewise.
11977
11978 2010-12-24  Bruno Haible  <bruno@clisp.org>
11979
11980         *printf: Detect large precisions bug on Solaris 10/SPARC.
11981         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
11982         by Paul Eggert.
11983         * tests/test-snprintf-posix.h (test_function): Add this test code here
11984         too.
11985         * tests/test-sprintf-posix.h (test_function): Likewise.
11986         * tests/test-vasnprintf-posix.c (test_function): Likewise.
11987         * tests/test-vasprintf-posix.c (test_function): Likewise.
11988         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
11989         around by gnulib.
11990         * doc/posix-functions/printf.texi: Likewise.
11991         * doc/posix-functions/snprintf.texi: Likewise.
11992         * doc/posix-functions/sprintf.texi: Likewise.
11993         * doc/posix-functions/vfprintf.texi: Likewise.
11994         * doc/posix-functions/vprintf.texi: Likewise.
11995         * doc/posix-functions/vsnprintf.texi: Likewise.
11996         * doc/posix-functions/vsprintf.texi: Likewise.
11997         * doc/posix-functions/dprintf.texi: Undo last commit.
11998         * doc/posix-functions/vdprintf.texi: Likewise.
11999
12000 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
12001
12002         tests: port test-fdutimensat.c to Solaris 8
12003         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
12004         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
12005         On Solaris 8, it fails with errno == ENOSYS, because there is no
12006         futimens (so it can't use the fd), and there is no lutimens (so it
12007         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
12008
12009         vsnprintf: make more consistent with snprintf; doc fixes
12010
12011         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
12012         the byte count return problem was promoted from the snprintf-posix
12013         to the snprintf module.
12014         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
12015         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
12016         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
12017         * tests/test-snprintf.c (main): Check the byte count returned.
12018         * tests/test-vsnprintf.c (main): Likewise.
12019
12020 2010-12-23  Eric Blake  <eblake@redhat.com>
12021
12022         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
12023         * modules/sigpipe (License): Relax license.
12024
12025 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
12026
12027         doc: document Solaris printf bug with large float precisions
12028         * doc/posix-functions/dprintf.texi (dprintf):
12029         * doc/posix-functions/fprintf.texi (fprintf):
12030         * doc/posix-functions/printf.texi (printf):
12031         * doc/posix-functions/snprintf.texi (snprintf):
12032         * doc/posix-functions/sprintf.texi (sprintf):
12033         * doc/posix-functions/vdprintf.texi (vdprintf):
12034         * doc/posix-functions/vfprintf.texi (vfprintf):
12035         * doc/posix-functions/vprintf.texi (vprintf):
12036         * doc/posix-functions/vsnprintf.texi (vsnprintf):
12037         * doc/posix-functions/vsprintf.texi (vsprintf):
12038         Mention that these functions mishandle large floating point
12039         precisions on Solaris 10.  The same bug is also present in Solaris
12040         8, and I assume earlier.  This causes "cd gnulib-tests; make
12041         check" to fail on Solaris 8 (and I assume, later) when building
12042         the latest coreutils, in test-vasprintf-posix's call to
12043         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
12044         the wide flavors (e.g., wprintf) so this patch just updates the
12045         documentation for the narrow ones.
12046
12047         test-posixtm.c: add two tests
12048         * tests/test-posixtm.c: Add two tests, to highlight the
12049         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
12050         around this bug; this is merely to document it.
12051
12052 2010-12-22  Bruno Haible  <bruno@clisp.org>
12053
12054         getlogin_r: Work around portability problem on OSF/1.
12055         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
12056         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
12057         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
12058         test for a truncated result.
12059         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
12060         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
12061         * modules/getlogin_r (Depends-on): Add memchr.
12062         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
12063
12064 2010-12-22  Bruno Haible  <bruno@clisp.org>
12065
12066         ptsname: Avoid test failure on OSF/1 5.1.
12067         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
12068         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
12069         (same_slave): New function.
12070         (main): Use it to compare ptsname's result with the expected file name.
12071
12072 2010-12-22  Bruno Haible  <bruno@clisp.org>
12073
12074         Port extended stdio modules to HP NonStop Kernel.
12075         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
12076         macros.
12077         * lib/fbufmode.c: Update comments.
12078         * lib/fflush.c: Likewise.
12079         * lib/fpurge.c: Likewise.
12080         * lib/freadable.c: Likewise.
12081         * lib/freadahead.c: Likewise.
12082         * lib/freading.c: Likewise.
12083         * lib/freadptr.c: Likewise.
12084         * lib/freadseek.c: Likewise.
12085         * lib/fseeko.c: Likewise.
12086         * lib/fseterr.c: Likewise.
12087         * lib/fwritable.c: Likewise.
12088         * lib/fwriting.c: Likewise.
12089         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
12090
12091 2010-12-22  Bruno Haible  <bruno@clisp.org>
12092
12093         ttyname_r: Work around bug on OSF/1 5.1.
12094         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
12095         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
12096         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
12097         present.
12098         * lib/ttyname_r.c (ttyname_r): Update comments.
12099
12100 2010-12-22  Bruno Haible  <bruno@clisp.org>
12101
12102         round: Implement result sign according to IEEE 754.
12103         * lib/round.c (MIN, MINUS_ZERO): New macros.
12104         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
12105         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
12106         * tests/test-round-ieee.c (main): Likewise.
12107         * tests/test-roundl-ieee.c (main): Likewise.
12108
12109         trunc: Implement result sign according to IEEE 754.
12110         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
12111         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
12112         * tests/test-trunc2.c: Include minus-zero.h.
12113         (MINUS_ZERO): New macro.
12114         (trunc_reference): Keep in sync with lib/trunc.c.
12115         * tests/test-truncf2.c: Include minus-zero.h.
12116         (MINUS_ZERO): New macro.
12117         (truncf_reference): Keep in sync with lib/trunc.c.
12118         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
12119         * tests/test-trunc-ieee.c (main): Likewise.
12120         * tests/test-truncl-ieee.c (main): Likewise.
12121
12122         ceil: Implement result sign according to IEEE 754.
12123         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
12124         (FUNC): Return -0.0 for -1 < x < 0.
12125         * tests/test-ceil2.c: Include minus-zero.h.
12126         (MINUS_ZERO): New macro.
12127         (ceil_reference): Keep in sync with lib/ceil.c.
12128         * tests/test-ceilf2.c: Include minus-zero.h.
12129         (MINUS_ZERO): New macro.
12130         (ceilf_reference): Keep in sync with lib/ceil.c.
12131         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
12132         * tests/test-ceil-ieee.c (main): Likewise.
12133         * tests/test-ceill-ieee.c (main): Likewise.
12134
12135         floor: Implement result sign according to IEEE 754.
12136         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
12137         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
12138         * tests/test-floorf2.c (floorf_reference): Likewise.
12139         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
12140         * tests/test-floor-ieee.c (main): Likewise.
12141         * tests/test-floorl-ieee.c (main): Likewise.
12142
12143 2010-12-22  Bruno Haible  <bruno@clisp.org>
12144
12145         getaddrinfo: Update doc.
12146         * doc/posix-functions/gai_strerror.texi: Return type is also different
12147         on AIX and HP-UX.
12148
12149 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
12150
12151         getaddrinfo, inet_ntop: Update doc for Solaris.
12152         * doc/posix-functions/gai_strerror.texi: Return type is also an
12153         issue on Solaris 9 and earlier.
12154         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
12155         on Solaris 10 and earlier.
12156
12157 2010-12-21  Bruno Haible  <bruno@clisp.org>
12158
12159         New module 'roundl-ieee'.
12160         * modules/roundl-ieee: New file.
12161         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
12162         test whether roundl works according to ISO C 99 with IEC 60559.
12163         * m4/roundl-ieee.m4: New file.
12164         * modules/roundl-ieee-tests: New file.
12165         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
12166         * tests/test-roundl.c (main): Remove signbit tests.
12167         * modules/roundl-tests (Depends-on): Remove signbit.
12168         * doc/posix-functions/roundl.texi: Mention the new module.
12169
12170 2010-12-21  Bruno Haible  <bruno@clisp.org>
12171
12172         New module 'truncl-ieee'.
12173         * modules/truncl-ieee: New file.
12174         * modules/truncl-ieee-tests: New file.
12175         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
12176         * tests/test-truncl.c (main): Remove signbit tests.
12177         * modules/truncl-tests (Depends-on): Remove signbit.
12178         * doc/posix-functions/truncl.texi: Mention the new module.
12179
12180 2010-12-21  Bruno Haible  <bruno@clisp.org>
12181
12182         New module 'ceill-ieee'.
12183         * modules/ceill-ieee: New file.
12184         * modules/ceill-ieee-tests: New file.
12185         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
12186         * tests/test-ceill.c (main): Remove signbit tests.
12187         * modules/ceill-tests (Depends-on): Remove signbit.
12188         * doc/posix-functions/ceill.texi: Mention the new module.
12189
12190 2010-12-21  Bruno Haible  <bruno@clisp.org>
12191
12192         New module 'floorl-ieee'.
12193         * modules/floorl-ieee: New file.
12194         * modules/floorl-ieee-tests: New file.
12195         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
12196         * tests/test-floorl.c (main): Remove signbit tests.
12197         * modules/floorl-tests (Depends-on): Remove signbit.
12198         * doc/posix-functions/floorl.texi: Mention the new module.
12199
12200 2010-12-21  Bruno Haible  <bruno@clisp.org>
12201
12202         New module 'round-ieee'.
12203         * modules/round-ieee: New file.
12204         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
12205         whether round works according to ISO C 99 with IEC 60559.
12206         * m4/round-ieee.m4: New file.
12207         * modules/round-ieee-tests: New file.
12208         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
12209         * tests/test-round1.c (main): Remove signbit tests.
12210         * modules/round-tests (Depends-on): Remove 'signbit'.
12211         * doc/posix-functions/round.texi: Mention the new module.
12212
12213 2010-12-21  Bruno Haible  <bruno@clisp.org>
12214
12215         New module 'trunc-ieee'.
12216         * modules/trunc-ieee: New file.
12217         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
12218         whether trunc works according to ISO C 99 with IEC 60559.
12219         * m4/trunc-ieee.m4: New file.
12220         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
12221         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
12222         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
12223         * modules/trunc-ieee-tests: New file.
12224         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
12225         * tests/test-trunc1.c (main): Remove signbit tests.
12226         * modules/trunc-tests (Depends-on): Remove 'signbit'.
12227         * doc/posix-functions/trunc.texi: Mention the new module.
12228
12229 2010-12-21  Bruno Haible  <bruno@clisp.org>
12230
12231         New module 'ceil-ieee'.
12232         * modules/ceil-ieee: New file.
12233         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
12234         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
12235         ISO C 99 with IEC 60559.
12236         * m4/ceil-ieee.m4: New file.
12237         * modules/ceil (Files): Add lib/ceil.c.
12238         (Depends-on): Add 'float'.
12239         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
12240         * lib/math.in.h (ceil): New declaration.
12241         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
12242         REPLACE_CEIL.
12243         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
12244         * modules/ceil-ieee-tests: New file.
12245         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
12246         * tests/test-math-c++.cc: Check the signature of 'ceil'.
12247         * doc/posix-functions/ceil.texi: Mention the new module.
12248
12249 2010-12-21  Bruno Haible  <bruno@clisp.org>
12250
12251         New module 'floor-ieee'.
12252         * modules/floor-ieee: New file.
12253         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
12254         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
12255         ISO C 99 with IEC 60559.
12256         * m4/floor-ieee.m4: New file.
12257         * modules/floor (Files): Add lib/floor.c.
12258         (Depends-on): Add 'float'.
12259         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
12260         * lib/math.in.h (floor): New declaration.
12261         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
12262         REPLACE_FLOOR.
12263         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
12264         * modules/floor-ieee-tests: New file.
12265         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
12266         * tests/test-math-c++.cc: Check the signature of 'floor'.
12267         * doc/posix-functions/floor.texi: Mention the new module.
12268
12269 2010-12-21  Bruno Haible  <bruno@clisp.org>
12270
12271         New module 'roundf-ieee'.
12272         * modules/roundf-ieee: New file.
12273         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
12274         test whether roundf works according to ISO C 99 with IEC 60559.
12275         * m4/roundf-ieee.m4: New file.
12276         * modules/roundf-ieee-tests: New file.
12277         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
12278         * tests/test-roundf1.c (main): Remove signbit tests.
12279         * modules/roundf-tests (Depends-on): Remove 'signbit'.
12280         * doc/posix-functions/roundf.texi: Mention the new module.
12281
12282 2010-12-21  Bruno Haible  <bruno@clisp.org>
12283
12284         New module 'truncf-ieee'.
12285         * modules/truncf-ieee: New file.
12286         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
12287         test whether truncf works according to ISO C 99 with IEC 60559.
12288         * m4/truncf-ieee.m4: New file.
12289         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
12290         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
12291         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
12292         * modules/truncf-ieee-tests: New file.
12293         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
12294         * tests/test-truncf1.c (main): Remove signbit tests.
12295         * modules/truncf-tests (Depends-on): Remove 'signbit'.
12296         * doc/posix-functions/truncf.texi: Mention the new module.
12297
12298 2010-12-21  Bruno Haible  <bruno@clisp.org>
12299
12300         New module 'ceilf-ieee'.
12301         * modules/ceilf-ieee: New file.
12302         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
12303         test whether ceilf works according to ISO C 99 with IEC 60559.
12304         * m4/ceilf-ieee.m4: New file.
12305         * modules/ceilf-ieee-tests: New file.
12306         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
12307         * tests/test-ceilf1.c (main): Remove signbit tests.
12308         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
12309         * doc/posix-functions/ceilf.texi: Mention the new module.
12310
12311 2010-12-21  Bruno Haible  <bruno@clisp.org>
12312
12313         New module 'floorf-ieee'.
12314         * modules/floorf-ieee: New file.
12315         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
12316         test whether floorf works according to ISO C 99 with IEC 60559.
12317         * m4/floorf-ieee.m4: New file.
12318         * modules/floorf-ieee-tests: New file.
12319         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
12320         * tests/test-floorf1.c (main): Remove signbit tests.
12321         * modules/floorf-tests (Depends-on): Remove 'signbit'.
12322         * doc/posix-functions/floorf.texi: Mention the new module.
12323
12324 2010-12-21  Bruno Haible  <bruno@clisp.org>
12325
12326         Support for minus zero in autoconf macros.
12327         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
12328         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
12329         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
12330         * tests/minus-zero.h: Update comments.
12331
12332 2010-12-21  Bruno Haible  <bruno@clisp.org>
12333
12334         Tests for module 'ceil'.
12335         * modules/ceil-tests: New file.
12336         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
12337         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
12338
12339 2010-12-21  Bruno Haible  <bruno@clisp.org>
12340
12341         Tests for module 'floor'.
12342         * modules/floor-tests: New file.
12343         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
12344         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
12345
12346 2010-12-21  Bruno Haible  <bruno@clisp.org>
12347
12348         math: Fix indentation.
12349         * lib/math.in.h (floorf): Fix indentation.
12350
12351 2010-12-21  Bruno Haible  <bruno@clisp.org>
12352
12353         Fix cross-compilation guesses on Solaris.
12354         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
12355         not match "solaris2.10".
12356         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
12357         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
12358         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
12359
12360 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
12361
12362         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
12363         This fixes a problem observed with the latest coreutils snapshot
12364         that caused a test to fail on Solaris 8.  src/csplit.c's call
12365         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
12366         earlier, instead of returning the number of bytes that would have
12367         been generated; this causes csplit to incorrectly report memory
12368         exhaustion.
12369         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
12370         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
12371         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
12372         comments to match.
12373         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
12374         Fix typo in matching older versions of Solaris: "solaris2.10"
12375         is matched by the shell pattern "solaris2.[0-9]*".  This matters
12376         only for guessing while cross-compiling.
12377         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
12378
12379 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
12380
12381         ftoastr: fix comment again
12382         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
12383         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
12384         Also, simplify example a bit by using flags = 0.
12385
12386 2010-12-20  Bruno Haible  <bruno@clisp.org>
12387
12388         round*, trunc*: Update documentation regarding glibc.
12389         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
12390         * doc/posix-functions/round.texi: Likewise.
12391         * doc/posix-functions/roundl.texi: Likewise.
12392         * doc/posix-functions/truncf.texi: Likewise.
12393         * doc/posix-functions/trunc.texi: Likewise.
12394         * doc/posix-functions/truncl.texi: Likewise.
12395
12396 2010-12-20  Bruno Haible  <bruno@clisp.org>
12397
12398         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
12399         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
12400         * doc/posix-functions/round.texi: Likewise.
12401         * doc/posix-functions/roundl.texi: Likewise.
12402
12403 2010-12-20  Bruno Haible  <bruno@clisp.org>
12404
12405         ttyname_r: Add missing declaration on HP-UX 11.
12406         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
12407         HAVE_TTYNAME_R.
12408         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
12409         declared. Set HAVE_TTYNAME_R always.
12410         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
12411         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
12412         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
12413         HAVE_TTYNAME_R.
12414         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
12415
12416 2010-12-20  Bruno Haible  <bruno@clisp.org>
12417
12418         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
12419         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
12420         * doc/posix-functions/getlogin_r.texi: Likewise.
12421         * tests/test-getlogin.c: Include <errno.h>.
12422         (main): Avoid test failure on HP-UX 11.11.
12423         * tests/test-getlogin_r.c (main): Likewise.
12424
12425 2010-12-20  Bruno Haible  <bruno@clisp.org>
12426
12427         getlogin_r: Add missing declaration on HP-UX 11.
12428         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
12429         declared also when it exists as a function.
12430         * doc/posix-functions/getlogin_r.texi: Document this workaround.
12431
12432 2010-12-20  Bruno Haible  <bruno@clisp.org>
12433
12434         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
12435         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
12436         through wcrtomb.
12437
12438 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
12439
12440         ftoastr: fix comment
12441         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
12442         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
12443
12444 2010-12-19  Bruno Haible  <bruno@clisp.org>
12445
12446         isnan: Ensure it is a macro.
12447         * lib/math.in.h (isnan): Define as a macro if not already a macro.
12448         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
12449         Solaris.
12450
12451 2010-12-19  Bruno Haible  <bruno@clisp.org>
12452
12453         ldexpl test: Fix link error on OSF/1 5.1.
12454         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
12455
12456 2010-12-19  Bruno Haible  <bruno@clisp.org>
12457
12458         wctype: Make it work in C++ mode on OSF/1 5.1.
12459         * lib/wctype.in.h (iswblank): Declare but not define here.
12460         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
12461         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
12462         * modules/wctype (Files): Add lib/iswblank.c.
12463
12464 2010-12-19  Bruno Haible  <bruno@clisp.org>
12465
12466         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
12467         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
12468         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
12469
12470 2010-12-19  Bruno Haible  <bruno@clisp.org>
12471
12472         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
12473         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
12474         _POSIX_PII_SOCKET.
12475         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
12476         * doc/posix-functions/recvfrom.texi: Likewise.
12477         * doc/posix-functions/send.texi: Likewise.
12478         * doc/posix-functions/sendto.texi: Likewise.
12479
12480 2010-12-19  Bruno Haible  <bruno@clisp.org>
12481
12482         tcgetsid: Add missing declaration on OSF/1 5.1.
12483         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
12484         HAVE_TCGETSID.
12485         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
12486         Don't set HAVE_TCGETSID.
12487         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
12488         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
12489         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
12490         HAVE_TCGETSID.
12491         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
12492
12493 2010-12-19  Bruno Haible  <bruno@clisp.org>
12494
12495         stdio: Fix problem with popen() declaration on OSF/1 5.1.
12496         * lib/stdio.in.h: During the include_next statement, let recursive
12497         includes of this file include only the system header file.
12498
12499 2010-12-19  Bruno Haible  <bruno@clisp.org>
12500
12501         iconv_open: Fix regression from 2010-12-04.
12502         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
12503         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
12504
12505 2010-12-19  Bruno Haible  <bruno@clisp.org>
12506
12507         stdbool test: Avoid a gcc warning.
12508         * tests/test-stdbool.c (main): Fail if e1 is false.
12509         Reported by Jim Meyering.
12510
12511 2010-12-19  Jim Meyering  <meyering@redhat.com>
12512
12513         setenv: restore to working order
12514         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
12515         mistakenly removed.
12516         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
12517         HAVE_SETENV.
12518         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
12519         HAVE_SETENV.
12520
12521 2010-12-19  Bruno Haible  <bruno@clisp.org>
12522
12523         Document some different function declarations on OSF/1 5.1.
12524         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
12525         * doc/posix-functions/inet_ntop.texi: Likewise.
12526         * doc/posix-functions/gethostname.texi: Likewise.
12527         * lib/unistd.in.h (gethostname): Update comment.
12528
12529 2010-12-19  Bruno Haible  <bruno@clisp.org>
12530
12531         doc: Mention vasprintf-posix module.
12532         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
12533         the 'vasprintf-posix' module.
12534         * doc/glibc-functions/vasprintf.texi: Likewise.
12535
12536 2010-12-19  Bruno Haible  <bruno@clisp.org>
12537
12538         unsetenv: Add missing declaration on OSF/1 5.1.
12539         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
12540         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
12541         Don't set HAVE_UNSETENV. In the test program, set _BSD.
12542         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
12543         not HAVE_UNSETENV.
12544         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
12545         HAVE_UNSETENV.
12546         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
12547
12548 2010-12-19  Bruno Haible  <bruno@clisp.org>
12549
12550         setenv: Add missing declaration on OSF/1 5.1.
12551         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
12552         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
12553         declared. Don't set HAVE_SETENV.
12554         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
12555         not HAVE_SETENV.
12556         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
12557         HAVE_SETENV.
12558         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
12559
12560 2010-12-19  Bruno Haible  <bruno@clisp.org>
12561
12562         nl_langinfo tests: Avoid gcc warning.
12563         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
12564
12565 2010-12-19  Bruno Haible  <bruno@clisp.org>
12566
12567         mknod: Avoid error in C++ mode on OSF/1 with GCC.
12568         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
12569         _GL_CXXALIAS_SYS.
12570
12571 2010-12-19  Bruno Haible  <bruno@clisp.org>
12572
12573         stdbool: Relax test.
12574         * tests/test-stdbool.c (e): Don't require that casts from a variable's
12575         address to 'bool' work in static initializer, for compilers other than
12576         GCC.
12577
12578 2010-12-19  Bruno Haible  <bruno@clisp.org>
12579
12580         ftello: Add missing declaration on OSF/1 5.1.
12581         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
12582         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
12583         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
12584         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
12585         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
12586
12587 2010-12-19  Bruno Haible  <bruno@clisp.org>
12588
12589         fseeko: Add missing declaration on OSF/1 5.1.
12590         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
12591         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
12592         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
12593         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
12594         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
12595
12596 2010-12-19  Bruno Haible  <bruno@clisp.org>
12597
12598         fchdir: Add missing declaration on OSF/1 5.1.
12599         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
12600         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
12601         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
12602         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
12603         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
12604
12605 2010-12-19  Bruno Haible  <bruno@clisp.org>
12606
12607         relocatable-prog-wrapper: Separate from relocatable-prog.
12608         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
12609         uninstall-relocwrapper rule here.
12610         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
12611         Reported by Ian Beckwith <ianb@erislabs.net>.
12612
12613 2010-12-19  Bruno Haible  <bruno@clisp.org>
12614
12615         unistr/u8-mbsnlen: Add missing dependency.
12616         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
12617         Reported by Ian Beckwith <ianb@erislabs.net>.
12618
12619 2010-12-19  Bruno Haible  <bruno@clisp.org>
12620
12621         iconv: Make it possible again to use this module without 'iconv-h'.
12622         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
12623         if it is not defined.
12624         Reported by Ian Beckwith <ianb@erislabs.net>.
12625
12626 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
12627
12628         acl: port to Solaris 8 when copying from tmpfs to ufs
12629         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
12630         error number.  Problem observed on Solaris 8 with latest
12631         coreutils, with "mv A B", where A is on a tmpfs file system and B
12632         is on a ufs file system.  This caused coreutils' mv/part-symlink
12633         test to fail.
12634
12635         tests: set fail=0 at start
12636         * tests/init.sh (setup_): Move fail=0 initialization here ...
12637         (mktempd_): ... from here, so that tests can rely on fail being
12638         set to 0 initially.  This fixes a problem in coreutils; see:
12639         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
12640
12641 2010-12-18  Bruno Haible  <bruno@clisp.org>
12642
12643         memmem-simple: Stylistic changes.
12644         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
12645         Fix preprocessor directive indentation.
12646
12647 2010-12-15  Pádraig Brady <P@draigBrady.com>
12648
12649         memmem, memmem-simple: reorganize and expand empty needle check
12650         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
12651         functional checks to memmem-simple so that one has a fully functional
12652         memmem by using just this module.
12653         Restrict the performance only check to the memmem module.
12654         Also expand the empty needle check to ensure the correct
12655         pointer is returned, not just a non NULL pointer.
12656         * doc/glibc-functions/memmem.texi: Rearrange the portability
12657         documentation to correlate with the rearranged checks.
12658         Clarify exactly how the memmem and memmem-simple modules
12659         relate to each other.
12660
12661 2010-12-15  Pádraig Brady <P@draigBrady.com>
12662             Bruno Haible  <bruno@clisp.org>
12663
12664         Improve cross-compilation guesses for uClibc.
12665         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
12666         that uClibc does not have the glibc bug.
12667         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
12668         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
12669
12670 2010-12-14  Eric Blake  <eblake@redhat.com>
12671
12672         configmake: provide fallbacks for oldest supported autotools
12673         * m4/configmake.m4: New file.
12674         * modules/configmake (Files): Ship it.
12675         (configure.ac): Use it to guarantee fallbacks.
12676
12677 2010-12-13  Pádraig Brady <P@draigBrady.com>
12678
12679         read-file: Improve handling of large files
12680         * lib/read-file.c (fread_file): Minimize realloc()s
12681         for regular files, and better manage sizes around SIZE_MAX.
12682
12683 2010-12-13  Eric Blake  <eblake@redhat.com>
12684
12685         cloexec, fcntl: relax license
12686         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
12687         consent from all contributors.
12688         * modules/fcntl (License): Likewise.
12689
12690 2010-12-10  Bruno Haible  <bruno@clisp.org>
12691
12692         Tests for module 'pipe-posix'.
12693         * modules/pipe-posix-tests: New file.
12694         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
12695
12696 2010-12-10  Bruno Haible  <bruno@clisp.org>
12697
12698         pipe-posix: Make it work in C++ mode.
12699         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
12700         (pipe): Use common idiom, not a macro definition.
12701         * lib/pipe.c: New file.
12702         * m4/pipe.m4: New file.
12703         * modules/pipe-posix (Description): Enhance.
12704         (Files): Add lib/pipe.c, m4/pipe.m4.
12705         (configure.ac): Invoke gl_FUNC_PIPE.
12706         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
12707         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
12708         * tests/test-unistd-c++.cc: Check the signature of pipe.
12709
12710 2010-12-10  Bruno Haible  <bruno@clisp.org>
12711
12712         Rename module 'pipe' to 'spawn-pipe'.
12713         * modules/spawn-pipe: New file, renamed from modules/pipe.
12714         (Files, configure.ac, Makefile.am): Update.
12715         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
12716         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
12717         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
12718         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
12719         "spawn-pipe.h" instead of "pipe.h".
12720         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
12721         to gl_SPAWN_PIPE.
12722         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
12723         (Files, Makefile.am): Update.
12724         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
12725         Update.
12726         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
12727         Include "spawn-pipe.h" instead of "pipe.h".
12728         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
12729         * lib/javacomp.c: Likewise.
12730         * lib/javaversion.c: Likewise.
12731         * lib/pipe-filter-gi.c: Likewise.
12732         * lib/pipe-filter-ii.c: Likewise.
12733         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
12734         * modules/javacomp (Depends-on): Likewise.
12735         * modules/javaversion (Depends-on): Likewise.
12736         * modules/pipe-filter-gi (Depends-on): Likewise.
12737         * modules/pipe-filter-ii (Depends-on): Likewise.
12738         * MODULES.html.sh (Executing programs): Update.
12739         * NEWS: Mention the change.
12740
12741 2010-12-10  Eric Blake  <eblake@redhat.com>
12742
12743         pipe-posix: new module
12744         * modules/pipe-posix: New file.
12745         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
12746         (gl_UNISTD_H): Check for declaration.
12747         * modules/unistd (Makefile.am): Substitute it.
12748         * lib/unistd.in.h (pipe): Provide it for mingw.
12749         * doc/posix-functions/pipe.texi (pipe): Update documentation.
12750         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
12751
12752 2010-12-07  Bruno Haible  <bruno@clisp.org>
12753
12754         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
12755         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
12756         u8_strcmp_gnu.
12757         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
12758
12759 2010-12-06  Bruno Haible  <bruno@clisp.org>
12760
12761         Update internal documentation.
12762         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
12763
12764 2010-12-04  Bruno Haible  <bruno@clisp.org>
12765
12766         Put more information about failed tests into the test return codes.
12767         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
12768         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
12769         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
12770         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
12771         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
12772         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
12773         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
12774         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
12775         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
12776         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
12777         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
12778         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
12779         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
12780         * m4/stdint.m4 (gl_STDINT_H): Likewise.
12781         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
12782         returns a bit mask.
12783         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
12784         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
12785         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
12786         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
12787         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
12788         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
12789         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
12790         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
12791         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
12792         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
12793         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
12794         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
12795         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
12796         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
12797         * m4/link.m4 (gl_FUNC_LINK): Likewise.
12798         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
12799         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
12800         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
12801         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
12802         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
12803         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
12804         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
12805         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
12806         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
12807         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
12808         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
12809         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
12810         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
12811         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
12812         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
12813         gl_PRINTF_PRECISION): Likewise.
12814         * m4/regex.m4 (gl_REGEX): Likewise.
12815         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
12816         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
12817         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
12818         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
12819         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
12820         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
12821         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
12822         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
12823         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
12824         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
12825         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
12826         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
12827         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
12828         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
12829         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
12830         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
12831         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
12832         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
12833         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
12834         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
12835         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
12836         enumerated value.
12837         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
12838
12839 2010-12-04  Bruno Haible  <bruno@clisp.org>
12840
12841         Update for Solaris 11 2010-11.
12842         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
12843         Express, released in November 2010.
12844
12845 2010-12-04  Bruno Haible  <bruno@clisp.org>
12846
12847         nproc: Relax license.
12848         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
12849         and Paul Eggert.
12850         Requested by Ludovic Courtès <ludo@gnu.org>.
12851
12852 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
12853
12854         utimecmp: fine-grained src to nearby coarse-grained dest
12855
12856         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
12857         and the source is on a file system with higher-resolution time
12858         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
12859         not work, and the time stamps are close together, the algorithm to
12860         determine the exact resolution from the read-back mtime was buggy:
12861         it had a "!=" where it should have had an "==".  This bug has been
12862         in the code ever since it was introduced to gnulib.
12863         Problem reported by Dan Jacobson in
12864         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
12865
12866 2010-11-30  Bruno Haible  <bruno@clisp.org>
12867
12868         strerror_r-posix: Fix autoconf test.
12869         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
12870
12871 2010-11-28  Bruno Haible  <bruno@clisp.org>
12872             Paul Eggert  <eggert@cs.ucla.edu>
12873
12874         Tests for module 'getdomainname'.
12875         * modules/getdomainname-tests: New file.
12876         * tests/test-getdomainname.c: New file, based on
12877         tests/test-gethostname.c.
12878
12879 2010-11-28  Bruno Haible  <bruno@clisp.org>
12880             Paul Eggert  <eggert@cs.ucla.edu>
12881
12882         getdomainname: Use the system function when possible.
12883         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
12884         (getdomainname): Replace if needed. Provide the declaration if it is
12885         missing. Don't use _GL_CXXALIAS_SYS_CAST.
12886         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
12887         (getdomainname): When the system has getdomainname, call the system
12888         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
12889         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
12890         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
12891         found in libnsl. Look for the declaration also in <netdb.h>. Replace
12892         the function if its second argument is of type 'int' or if it is found
12893         in libnsl.
12894         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
12895         <sys/systeminfo.h> and sysinfo().
12896         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
12897         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
12898         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
12899         HAVE_GETDOMAINNAME.
12900         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
12901         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
12902         * doc/glibc-functions/getdomainname.texi: Document the problems with
12903         the getdomainname declaration.
12904
12905 2010-11-28  Bruno Haible  <bruno@clisp.org>
12906
12907         sys_socket: Ensure ss_family field on AIX.
12908         * lib/sys_socket.in.h (ss_family): New macro definition.
12909         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
12910         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
12911         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
12912         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
12913         * modules/sys_socket (Makefile.am): Substitute
12914         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
12915         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
12916
12917 2010-11-27  Bruno Haible  <bruno@clisp.org>
12918
12919         readline: Improve configure output.
12920         * m4/readline.m4 (gl_FUNC_READLINE): Make the
12921         "checking for readline..." result understandable.
12922
12923 2010-11-27  Bruno Haible  <bruno@clisp.org>
12924
12925         *printf-posix: Detect a bug on Solaris 10/x86.
12926         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
12927         for floating-point output.
12928         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
12929         directive.
12930         * tests/test-snprintf-posix.h (test_function): Likewise.
12931         * tests/test-sprintf-posix.h (test_function): Likewise.
12932         * tests/test-vasprintf-posix.c (test_function): Likewise.
12933         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
12934         * doc/posix-functions/printf.texi: Likewise.
12935         * doc/posix-functions/snprintf.texi: Likewise.
12936         * doc/posix-functions/sprintf.texi: Likewise.
12937         * doc/posix-functions/vfprintf.texi: Likewise.
12938         * doc/posix-functions/vprintf.texi: Likewise.
12939         * doc/posix-functions/vsnprintf.texi: Likewise.
12940         * doc/posix-functions/vsprintf.texi: Likewise.
12941         * doc/glibc-functions/obstack_printf.texi: Likewise.
12942         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
12943
12944 2010-11-27  Bruno Haible  <bruno@clisp.org>
12945
12946         Fix link error when module libunistring-optional is in use.
12947         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
12948         * modules/striconveha-tests (Makefile.am): Likewise.
12949
12950 2010-11-27  Bruno Haible  <bruno@clisp.org>
12951
12952         regex: Mention link dependencies.
12953         * modules/regex (Link): New section.
12954         * modules/rpmatch (Link): Likewise.
12955         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
12956
12957 2010-11-27  Bruno Haible  <bruno@clisp.org>
12958
12959         ftoastr: Fix compilation error on Solaris.
12960         * lib/ftoastr.c: Include <config.h>.
12961
12962 2010-11-27  Bruno Haible  <bruno@clisp.org>
12963
12964         getloadavg: Update documentation.
12965         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
12966
12967 2010-11-27  Bruno Haible  <bruno@clisp.org>
12968
12969         sys_socket: Fix test whether the functions are declared.
12970         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
12971         not <sys/select.h>.
12972
12973 2010-11-27  Bruno Haible  <bruno@clisp.org>
12974
12975         getpass: Make sure to get system declaration on some platforms.
12976         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
12977         gl_USE_SYSTEM_EXTENSIONS.
12978         * modules/getpass (Depends-on): Add extensions.
12979
12980 2010-11-26  Bruno Haible  <bruno@clisp.org>
12981
12982         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
12983         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
12984         'iconv' module is present.
12985         (ICONV_CONST): New macro.
12986         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
12987         ICONV_CONST.
12988         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
12989         set ICONV_CONST.
12990         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
12991         here.
12992         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
12993         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
12994         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
12995         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
12996         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
12997         present.
12998
12999 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
13000
13001         ftoastr: comment fix
13002         * lib/ftoastr.c: "little" -> "little or no" in comment
13003
13004 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
13005
13006         stdint: port to GCC 4.3 + OSX + Octave
13007         On this platform, stdint.h is buggy and defines int64_t to long
13008         long int.  The replacement defined it to long int, causing
13009         problems with C++ style name mangling.  Instead, trust the system
13010         definition if INT64_MAX is defined, and likewise for the unsigned
13011         variant.   Problem reported by Jarno Rajahalme in
13012         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
13013         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
13014         and don't mess with int64_t and INT64_MAX in this case.
13015         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
13016
13017 2010-11-24  Bruno Haible  <bruno@clisp.org>
13018
13019         doc: Corrections regarding MacOS X 10.4 and 10.5.
13020         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
13021         MacOS X.
13022         Reported by Simon Josefsson.
13023
13024 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
13025
13026         Uninstall ".bin" files installed by relocwrapper.
13027         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
13028         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
13029         unless it is already there.
13030
13031 2010-11-21  Bruno Haible  <bruno@clisp.org>
13032
13033         Update for NetBSD 5.0.
13034         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
13035         NetBSD; the test fails on NetBSD 5.0.
13036         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
13037         about NetBSD.
13038
13039 2010-11-21  Bruno Haible  <bruno@clisp.org>
13040
13041         Update for HP-UX 11.23 and HP-UX 11.31.
13042         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
13043         HP-UX.
13044
13045 2010-11-21  Bruno Haible  <bruno@clisp.org>
13046
13047         Update for MacOS X 10.5.
13048         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
13049         MacOS X; the test fails on MacOS X 10.5.8.
13050         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
13051         about MacOS X.
13052
13053 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
13054
13055         bootstrap: add bootstrap_sync option.
13056         See discussion at
13057         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
13058         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
13059         * build-aux/bootstrap: Accept --bootstrap-sync to update
13060         bootstrap if it is not identical to the local gnulib's
13061         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
13062         enable this by default.  Accept --no-bootstrap-sync to disable
13063         it.
13064
13065 2010-11-20  Bruno Haible  <bruno@clisp.org>
13066
13067         Ensure that <features.h> is included before __GLIBC__ is tested.
13068         * lib/printf-parse.h: Include <features.h>.
13069         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
13070         Reported by Mike Frysinger <vapier@gentoo.org>.
13071
13072         Ensure that <features.h> is included before __GLIBC__ is tested.
13073         * lib/wchar.in.h: Include <features.h>.
13074         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
13075         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
13076         Reported by Mike Frysinger <vapier@gentoo.org>.
13077
13078         Ensure that <features.h> is included before __GLIBC__ is tested.
13079         * lib/arpa_inet.in.h: Include <features.h>.
13080         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
13081         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
13082         Reported by Mike Frysinger <vapier@gentoo.org>.
13083
13084         Ensure that <features.h> is included before __GLIBC__ is tested.
13085         * build-aux/link-warning.h: Include <features.h>.
13086         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
13087         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
13088         Reported by Mike Frysinger <vapier@gentoo.org>.
13089
13090         Ensure that <features.h> is included before __GLIBC__ is tested.
13091         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
13092         Reported by Mike Frysinger <vapier@gentoo.org>.
13093
13094 2010-11-20  Bruno Haible  <bruno@clisp.org>
13095
13096         memmem: Fix autoconf test.
13097         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
13098
13099 2010-11-20  Bruno Haible  <bruno@clisp.org>
13100
13101         Port to uClibc.
13102         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
13103         * lib/fcntl.in.h: Likewise.
13104         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
13105         * lib/mbrtowc.c (mbrtowc): Likewise.
13106         * lib/relocatable.c (find_shared_library_fullname): Likewise.
13107         * lib/strerror_r.c: Likewise.
13108         * lib/unistr/u8-strnlen.c: Likewise.
13109         * lib/vasnprintf.c (decimal_point_char): Likewise.
13110         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
13111         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
13112         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
13113         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
13114         * tests/test-sigaction.c (handler, main): Likewise.
13115         * lib/freading.h: Treat uClibc like a non-glibc platform.
13116         * lib/freading.c: Likewise.
13117         * lib/gettext.h: Likewise.
13118         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
13119         Likewise.
13120         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
13121         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
13122         * lib/propername.c (proper_name_utf8): Likewise.
13123         * lib/spawn.in.h: Likewise.
13124         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
13125         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
13126         mem_cd_iconveh_internal): Likewise.
13127         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
13128         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
13129         strstr, strcasestr): Likewise.
13130         * lib/unicodeio.c (unicode_to_mb): Likewise.
13131         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
13132         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
13133         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
13134         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
13135         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
13136         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
13137         * lib/unistr/u8-stpncpy.c: Likewise.
13138         * lib/vasnprintf.c (VASNPRINTF): Likewise.
13139         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
13140         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
13141         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
13142         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
13143         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
13144         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
13145         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
13146         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
13147         Likewise.
13148         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
13149         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
13150         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
13151         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
13152         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
13153         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
13154         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
13155         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
13156         * tests/test-getopt.h (OPTIND_MIN): Likewise.
13157         * tests/test-striconveha.c (main): Likewise.
13158         * tests/test-vasnprintf-posix.c (test_function): Likewise.
13159         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
13160         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
13161         * doc/posix-functions/getline.texi: Likewise.
13162         Reported by Mike Frysinger <vapier@gentoo.org>.
13163
13164 2010-11-20  Bruno Haible  <bruno@clisp.org>
13165
13166         nproc: Fix condition.
13167         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
13168         HAVE_PTHREAD_AFFINITY_NP.
13169
13170 2010-11-20  Bruno Haible  <bruno@clisp.org>
13171
13172         Fix a comment.
13173         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
13174
13175 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
13176
13177         ftoastr: don't assume snprintf
13178         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
13179         Implement a subset of snprintf here, by using sprintf safely.
13180         * modules/ftoastr (Depends-on): Remove snprintf.
13181
13182 2010-11-19  Jim Meyering  <meyering@redhat.com>
13183
13184         test-rename.h: fix compilation failure
13185         * tests/test-rename.h (test_rename): Add omitted "}".
13186
13187 2010-11-17  Jim Meyering  <meyering@redhat.com>
13188
13189         maint.mk: add a URL discussing the no-@acronym policy
13190         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
13191
13192 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
13193
13194         ftoastr: depend on snprintf, improve comments
13195         * lib/ftoastr.c: Also mention Loitsch's draft.
13196         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
13197         needed in the current implementation, but it might simplify
13198         speeding up the code later.
13199         * modules/ftoastr: Depend on snprintf; this improves portability.
13200         Suggested by Bruno Haible in the same email.
13201
13202         ftoastr: port to hosts lacking strtof and strtold
13203         Problem reported by Bruno Haible in
13204         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
13205         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
13206         environment and strtold (and presumably strtof) are not available.
13207         * modules/ftoastr (Files): Add m4/c-strtod.m4.
13208         (configure.ac): Require gl_C99_STRTOLD.
13209
13210 2010-11-18  Bruno Haible  <bruno@clisp.org>
13211
13212         c-strtold: Avoid link error on AIX 7.
13213         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
13214         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
13215         (gl_C_STRTOLD): Test whether strtold_l exists.
13216         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
13217
13218 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
13219
13220         intprops: new macro INT_BITS_STRLEN_BOUND
13221         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
13222         ftoastr.h.  This exposes an internal of intprops.h that was formerly
13223         not exposed.  Also, it uses a slightly tighter bound than before;
13224         though this makes no practical difference, we might as well be as
13225         tight as we easily can.
13226
13227         ftoastr: new module, for lossless conversion of floats to short strings
13228         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
13229         * modules/ftoastr: New files.
13230
13231 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
13232
13233         bootstrap: port to Solaris sed
13234         * build-aux/bootstrap (get_version): Port to Solaris sed.
13235         See Ralf Wildenhues's note in
13236         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
13237
13238 2010-11-14  Jim Meyering  <meyering@redhat.com>
13239
13240         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
13241         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
13242         and move definition closer to sole use.
13243
13244 2010-11-13  Jim Meyering  <meyering@redhat.com>
13245
13246         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
13247         Now we require at least autoconf-2.59, which means the work-around
13248         is no longer needed.
13249         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
13250         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
13251         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
13252         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
13253         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
13254
13255 2010-11-13  Bruno Haible  <bruno@clisp.org>
13256
13257         rename, renameat: Avoid test failures at NFS mounted locations.
13258         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
13259         functions.
13260         (test_rename): Use assert_nonexistent.
13261         * tests/test-rename.c: Include <dirent.h>.
13262         * tests/test-renameat.c: Likewise.
13263         Reported by Gary V. Vaughan <gary@gnu.org>.
13264
13265         rename, renameat: Document Linux bug with NFS
13266         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
13267         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
13268         * doc/posix-functions/renameat.texi: Likewise.
13269         Suggested by Eric Blake.
13270
13271 2010-11-13  Bruno Haible  <bruno@clisp.org>
13272
13273         rename test: Add comments.
13274         * tests/test-rename.h (test_rename): Add structure and comments.
13275
13276 2010-11-13  Eric Blake  <eblake@redhat.com>
13277
13278         maintainer-makefile: cover a few more files
13279         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
13280         scripts generated within C files, for libvirt.
13281
13282 2010-11-13  Bruno Haible  <bruno@clisp.org>
13283
13284         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
13285         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
13286         character, return the number of bytes that belong together, not always
13287         1.
13288         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
13289         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
13290         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
13291         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
13292         number of bytes of an invalid character.
13293         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
13294         (main): Invoke it.
13295         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
13296         results.
13297         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
13298         malformed byte sequences.
13299         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
13300         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
13301         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
13302         Reported by Ben Pfaff and Paolo Bonzini.
13303
13304 2010-11-13  Bruno Haible  <bruno@clisp.org>
13305
13306         openat: Work around glibc bug with fchownat() and empty file names.
13307         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
13308         (gl_FUNC_FCHOWNAT): Invoke it.
13309         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
13310         * doc/posix-functions/fchownat.texi: Document the glibc bug.
13311         Reported by Gary V. Vaughan <gary@gnu.org>.
13312
13313 2010-11-13  Bruno Haible  <bruno@clisp.org>
13314
13315         openat: Ensure autoconf macro ordering.
13316         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
13317         gl_USE_SYSTEM_EXTENSIONS.
13318         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
13319
13320 2010-11-13  Bruno Haible  <bruno@clisp.org>
13321
13322         Update comments.
13323         * lib/unistr/u8-check.c: Update file name in comments.
13324         * lib/unistr/u8-mblen.c: Likewise.
13325         * lib/unistr/u8-prev.c: Likewise.
13326         * lib/unistr/u8-strmblen.c: Likewise.
13327         * lib/unistr/u8-strmbtouc.c: Likewise.
13328
13329 2010-11-13  Jim Meyering  <meyering@redhat.com>
13330
13331         tests: avoid test failure on Solaris 10 due to lack of PATH export
13332         * tests/test-update-copyright.sh: Don't forget to export PATH.
13333
13334         init.sh: ensure that IFS is defined, just in case...
13335         * tests/init.sh (setup_): Ensure that IFS is defined,
13336         so that saving and restoring it works as expected.  This
13337         appears to be useful at least for an old version of dash
13338         from a long time ago (RH 6).  See here for details:
13339         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
13340
13341         maint.mk: tighten "test a == b" check
13342         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
13343         test to files that contain something like #!/bin/sh.
13344         Without this, coreutils would get two false positives in
13345         the comments of C source files.
13346
13347 2010-11-12  Eric Blake  <eblake@redhat.com>
13348
13349         bootstrap: fix typo in previous attempt
13350         * build-aux/bootstrap (buildreq): Correct the grouping.
13351         Reported by Paul Eggert.
13352
13353         maintainer-makefile: prohibit test x == x
13354         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
13355         Based on a report by Matthias Bolte.
13356
13357         bootstrap: allow FreeBSD gzip
13358         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
13359         which has no '.' and goes to stderr.
13360         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
13361         Reported by Matthias Bolte.
13362
13363         maintainer-makefile: check for i18n setup
13364         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
13365         will likely work.
13366
13367 2010-11-12  Bruno Haible  <bruno@clisp.org>
13368
13369         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
13370         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
13371         * lib/nanosleep.c (nanosleep): Likewise.
13372
13373 2010-11-11  Bruno Haible  <bruno@clisp.org>
13374
13375         fcntl-h: Fix for use of C++ on glibc systems.
13376         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
13377         also on glibc systems in C++ mode.
13378         Reported by Gary V. Vaughan <gary@gnu.org>.
13379
13380 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
13381
13382         mknod: avoid false failure with dash
13383         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
13384
13385 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
13386
13387         unlink: Fix "is it should" typo in diagnostic.
13388         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
13389         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
13390
13391 2010-11-11  Bruno Haible  <bruno@clisp.org>
13392
13393         Tests for module 'strerror_r-posix'.
13394         * modules/strerror_r-posix-tests: New file.
13395         * tests/test-strerror_r.c: New file.
13396         * tests/test-string-c++.cc: Check the signature of strerror_r.
13397
13398         New module 'strerror_r-posix'.
13399         * lib/string.in.h (strerror_r): New declaration.
13400         * lib/strerror_r.c: New file.
13401         * m4/strerror_r.m4: New file.
13402         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
13403         of strerror_r.
13404         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
13405         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
13406         * modules/strerror_r-posix: New file.
13407         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
13408         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
13409         * doc/posix-functions/strerror_r.texi: Mention the new module and the
13410         portability problems.
13411
13412 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
13413
13414         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
13415         line is also considered for output. Quoted function name in shell
13416         command, so temporary files for functions like MyClass::operator()
13417         are removed correctly without errors.
13418
13419 2010-11-09  Bruno Haible  <bruno@clisp.org>
13420
13421         * doc/posix-functions/strerror.texi: List more failing platforms.
13422
13423         * doc/posix-functions/strerror.texi: Add a comment.
13424
13425 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
13426
13427         fdopendir: fix bug on MacOS X when low on file descriptors
13428
13429         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
13430         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
13431         All callers changed.
13432         (fdopendir): Invoke save_cwd at the top level, not after using
13433         multiple dup() calls to use up file descriptors.  Then retry
13434         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
13435         less than the maximum number of open file descriptors, because
13436         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
13437         on Mac OS X 10.6.4 for tar 1.24
13438         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
13439         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
13440         and for tar 1.25
13441         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
13442
13443 2010-11-07  Bruno Haible  <bruno@clisp.org>
13444
13445         vasnprintf: Support I flag on glibc systems.
13446         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
13447         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
13448         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
13449         snprintf function.
13450         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
13451         glibc systems.
13452         * tests/test-vasnprintf-posix3.c: New file.
13453         * modules/vasnprintf-posix-tests (Files): Add it.
13454         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
13455
13456 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
13457
13458         [html] Fix copy/paste bug: Use unique name for compiler warnings.
13459         * MODULES.html.sh: For compiler warnings, use name
13460         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
13461
13462 2010-11-05  Eric Blake  <eblake@redhat.com>
13463
13464         ceil, floor: avoid spurious failure with icc
13465         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
13466         [denormals-as-zero] when optimizing without -mieee-fp option.
13467         * tests/test-floorf2.c (floorf_reference): Likewise.
13468         * tests/test-ceilf1.c (dummy): New function.
13469         (main): Use it to outsmart icc's optimization.
13470         * tests/test-floorf1.c (dummy, main): Likewise.
13471
13472         tests: require working signbit
13473         * modules/ceilf-tests (Depends-on): Add signbit.
13474         * modules/ceill-tests (Depends-on): Likewise.
13475         * modules/floorf-tests (Depends-on): Likewise.
13476         * modules/floorl-tests (Depends-on): Likewise.
13477         * modules/round-tests (Depends-on): Likewise.
13478         * modules/roundf-tests (Depends-on): Likewise.
13479         * modules/roundl-tests (Depends-on): Likewise.
13480         * modules/trunc-tests (Depends-on): Likewise.
13481         * modules/truncf-tests (Depends-on): Likewise.
13482         * modules/truncl-tests (Depends-on): Likewise.
13483
13484         strtod: work around icc bug
13485         * lib/strtod.c (minus_zero): Define to working value.
13486         (strtod): Use it to avoid icc bug.
13487
13488         copysign: enhance tests
13489         * modules/copysign-tests (Files): Add minus-zero.h.
13490         * tests/test-copysign.c (main): Also test zeros.
13491
13492 2010-11-04  Eric Blake  <eblake@redhat.com>
13493
13494         ceil, floor, round, trunc: enhance tests of -0
13495         * tests/test-ceilf1.c (main): Ensure correct sign of result.
13496         * tests/test-ceill.c (main): Likewise.
13497         * tests/test-floorf1.c (main): Likewise.
13498         * tests/test-floorl.c (main): Likewise.
13499         * tests/test-round1.c (main): Likewise.
13500         * tests/test-roundf1.c (main): Likewise.
13501         * tests/test-roundl.c (main): Likewise.
13502         * tests/test-trunc1.c (main): Likewise.
13503         * tests/test-truncf1.c (main): Likewise.
13504         * tests/test-truncl.c (main): Likewise.
13505
13506 2010-11-04  Eric Blake  <eblake@redhat.com>
13507
13508         frexp, tests: work around ICC bug with -zero
13509         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
13510         works with more compilers.
13511         * tests/minus-zero.h: New file.
13512         * modules/ceilf-tests (Files): Include it.
13513         * modules/ceill-tests (Files): Likewise.
13514         * modules/floorf-tests (Files): Likewise.
13515         * modules/floorl-tests (Files): Likewise.
13516         * modules/frexp-nolibm-tests (Files): Likewise.
13517         * modules/frexp-tests (Files): Likewise.
13518         * modules/frexpl-nolibm-tests (Files): Likewise.
13519         * modules/frexpl-tests (Files): Likewise.
13520         * modules/isnan-tests (Files): Likewise.
13521         * modules/isnand-nolibm-tests (Files): Likewise.
13522         * modules/isnand-tests (Files): Likewise.
13523         * modules/isnanf-nolibm-tests (Files): Likewise.
13524         * modules/isnanf-tests (Files): Likewise.
13525         * modules/isnanl-nolibm-tests (Files): Likewise.
13526         * modules/isnanl-tests (Files): Likewise.
13527         * modules/round-tests (Files): Likewise.
13528         * modules/roundf-tests (Files): Likewise.
13529         * modules/roundl-tests (Files): Likewise.
13530         * modules/ldexpl-tests (Files): Likewise.
13531         * modules/signbit-tests (Files): Likewise.
13532         * modules/snprintf-posix-tests (Files): Likewise.
13533         * modules/sprintf-posix-tests (Files): Likewise.
13534         * modules/strtod-tests (Files): Likewise.
13535         * modules/trunc-tests (Files): Likewise.
13536         * modules/truncf-tests (Files): Likewise.
13537         * modules/truncl-tests (Files): Likewise.
13538         * modules/vsnprintf-posix-tests (Files): Likewise.
13539         * modules/vsprintf-posix-tests (Files): Likewise.
13540         * modules/vasnprintf-posix-tests (Files): Likewise.
13541         * modules/vasprintf-posix-tests (Files): Likewise.
13542         * tests/test-ceilf1.c (main): Use it.
13543         * tests/test-ceill.c (main): Likewise.
13544         * tests/test-floorf1.c (main): Likewise.
13545         * tests/test-floorl.c (main): Likewise.
13546         * tests/test-frexp.c (main): Likewise.
13547         * tests/test-frexpl.c (main): Likewise.
13548         * tests/test-isnan.c (main): Likewise.
13549         * tests/test-isnand.h (main): Likewise.
13550         * tests/test-isnanf.h (main): Likewise.
13551         * tests/test-isnanl.h (main): Likewise.
13552         * tests/test-ldexpl.c (main): Likewise.
13553         * tests/test-round.c (main): Likewise.
13554         * tests/test-roundf.c (main): Likewise.
13555         * tests/test-roundl.c (main): Likewise.
13556         * tests/test-signbit.c (test_signbitf, test_signbitd)
13557         (test_signbitl): Likewise.
13558         * tests/test-snprintf-posix.h (test_function): Likewise.
13559         * tests/test-sprintf-posix.h (test_function): Likewise.
13560         * tests/test-strtod.c (main): Likewise.
13561         * tests/test-trunc1.c (main): Likewise.
13562         * tests/test-truncf1.c (main): Likewise.
13563         * tests/test-truncl.c (main): Likewise.
13564
13565         isnanl: work around icc bug
13566         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
13567
13568 2010-11-03  Eric Blake  <eblake@redhat.com>
13569
13570         tests: fix compiler warnings
13571         * tests/test-getopt.h (test_getopt): Fix condition.
13572         * tests/test-getopt_long.h (test_getopt_long): Likewise.
13573         * tests/test-pipe2.c (main): Likewise.
13574         * tests/test-quotearg-simple.c (main): Avoid icc warning.
13575
13576         utimens: fix broken m4 test
13577         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
13578
13579 2010-10-28  Bruno Haible  <bruno@clisp.org>
13580
13581         posix_spawn*, getdtablesize: Relax license.
13582         * modules/posix_spawn (License): Change to LGPLv2+.
13583         * modules/posix_spawnp (License): Likewise.
13584         * modules/posix_spawn-internal (License): Likewise.
13585         * modules/posix_spawnattr_init (License): Likewise.
13586         * modules/posix_spawnattr_getflags (License): Likewise.
13587         * modules/posix_spawnattr_setflags (License): Likewise.
13588         * modules/posix_spawnattr_getpgroup (License): Likewise.
13589         * modules/posix_spawnattr_setpgroup (License): Likewise.
13590         * modules/posix_spawnattr_getschedparam (License): Likewise.
13591         * modules/posix_spawnattr_setschedparam (License): Likewise.
13592         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
13593         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
13594         * modules/posix_spawnattr_getsigdefault (License): Likewise.
13595         * modules/posix_spawnattr_setsigdefault (License): Likewise.
13596         * modules/posix_spawnattr_getsigmask (License): Likewise.
13597         * modules/posix_spawnattr_setsigmask (License): Likewise.
13598         * modules/posix_spawnattr_destroy (License): Likewise.
13599         * modules/posix_spawn_file_actions_init (License): Likewise.
13600         * modules/posix_spawn_file_actions_addclose (License): Likewise.
13601         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
13602         * modules/posix_spawn_file_actions_addopen (License): Likewise.
13603         * modules/posix_spawn_file_actions_destroy (License): Likewise.
13604         * modules/getdtablesize (License): Likewise.
13605         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
13606
13607 2010-10-26  Bruno Haible  <bruno@clisp.org>
13608
13609         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
13610         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
13611         Cygwin and mingw.
13612         Suggested by Eric Blake.
13613
13614 2010-10-26  Bruno Haible  <bruno@clisp.org>
13615
13616         stdio: Work around compilation error due to renameat() on Solaris 10.
13617         * lib/stdio.in.h: Include <unistd.h> on Solaris.
13618         * lib/renameat.c: Don't include <unistd.h> here.
13619         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
13620         Reported by Paul Eggert and Eric Blake.
13621
13622 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
13623
13624         renameat: port to Solaris 10, which declares renameat in unistd.h
13625
13626         * lib/renameat.c: Include unistd.h before stdio.h, because
13627         Solaris 10 declares renameat in unistd.h.  Problem encountered
13628         when building GNU tar 1.24 on Solaris 10.
13629
13630 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
13631
13632         fdopendir: fix C89 compilation
13633         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
13634         compilers.
13635
13636 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
13637
13638         inttostr: simplify by removing unnecessary redundancy
13639         * lib/anytostr.c: Don't include verify.h.
13640         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
13641         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
13642         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
13643         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
13644         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
13645         Likewise.
13646         * modules/inttostr (Depends-on): Remove 'verify'.
13647
13648 2010-10-23  Bruno Haible  <bruno@clisp.org>
13649
13650         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
13651         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
13652         Reported by Eric Blake.
13653
13654 2010-10-23  Bruno Haible  <bruno@clisp.org>
13655
13656         Tests: Fix LOCALE_JA on MirBSD 10.
13657         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
13658         to an UTF-8 locale.
13659         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
13660         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
13661         Reported by Eric Blake.
13662
13663 2010-10-21  Bruno Haible  <bruno@clisp.org>
13664
13665         nl_langinfo test: Avoid test failure on NetBSD 5.
13666         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
13667         Reported by Eric Blake.
13668
13669 2010-10-21  Eric Blake  <eblake@redhat.com>
13670
13671         c-stack: work around libsigsegv 2.8 bug
13672         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
13673         overflow on at least PowerPC64.
13674
13675 2010-10-17  Bruno Haible  <bruno@clisp.org>
13676
13677         userspec: Drop redundant file.
13678         * modules/userspec (Files): Remove lib/inttostr.h.
13679
13680 2010-10-17  Bruno Haible  <bruno@clisp.org>
13681
13682         nl_langinfo tests: Silence some warnings.
13683         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
13684         Reported by Jim Meyering.
13685
13686 2010-10-17  Bruno Haible  <bruno@clisp.org>
13687
13688         Make use of GCC's attribute __alloc_size__.
13689         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
13690         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
13691         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
13692         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
13693         __alloc_size__.
13694         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
13695         Suggested by Jim Meyering.
13696
13697 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
13698
13699         bootstrap: anchor .gitignore entries.
13700         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
13701         with...
13702         (insert_vc_ignore): ... this new function, which prepends `/' to
13703         all .gitignore entries before passing them to
13704         insert_sorted_if_absent.
13705
13706 2010-10-16  Bruno Haible  <bruno@clisp.org>
13707
13708         nextafter: Fix configure check.
13709         * modules/nextafter (configure.ac): Correct expected prototype.
13710
13711 2010-10-16  Bruno Haible  <bruno@clisp.org>
13712
13713         termios: Update documentation.
13714         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
13715
13716 2010-10-16  Bruno Haible  <bruno@clisp.org>
13717
13718         tests: Make them compile with TinyCC.
13719         * tests/test-strstr.c (main): Remove parentheses around array
13720         initializer.
13721
13722 2010-10-15  Eric Blake  <eblake@redhat.com>
13723
13724         ignore-value: make header idempotent
13725         * lib/ignore-value.h: Add double-inclusion guards.
13726         Reported by Stefan Berger.
13727
13728 2010-10-15  Jim Meyering  <meyering@redhat.com>
13729
13730         GNUmakefile: handle "stable" target, not "major"
13731         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
13732         lists in maint.mk and announce-gen.  Without this, "make stable"
13733         would fail to ensure that $(VERSION) is up to date.
13734
13735 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
13736
13737         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
13738         & co.
13739
13740 2010-10-14  Bruno Haible  <bruno@clisp.org>
13741
13742         vasnprintf: Don't set errno to 0.
13743         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
13744         block that sets it to 0.
13745         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
13746
13747 2010-10-14  Bruno Haible  <bruno@clisp.org>
13748
13749         socketlib: Fix.
13750         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
13751         gl_PREREQ_SYS_H_WINSOCK2.
13752         Reported by Ian Beckwith <ianb@erislabs.net>.
13753
13754 2010-10-13  Jim Meyering  <meyering@redhat.com>
13755
13756         test-select-stdin.c: avoid warn_unused_result warnings
13757         * tests/test-select-stdin.c: Include "macros.h".
13758         ASSERT that read and fflush succeed.
13759
13760 2010-10-13  Jim Meyering  <meyering@redhat.com>
13761
13762         git-version-gen: do require git-VC'd files in cwd
13763         * build-aux/git-version-gen: Reject a git version string
13764         if there are no commits associated with the current directory.
13765         This avoids an unlikely false-positive (unrelated dir whose parent
13766         repository also contains a tag matching v*), as pointed out
13767         by Giuseppe Scrivano in
13768         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
13769
13770 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
13771
13772         argv-iter: omit nonconforming declaration
13773         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
13774         enum arg_iter_err declaration, which doesn't conform to C99.
13775         Solaris 10 cc warns about this.
13776
13777 2010-10-13  Eric Blake  <eblake@redhat.com>
13778
13779         termios: fix compilation on mingw
13780         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
13781         (gl_TERMIOS_H): Adjust it on mingw.
13782         * modules/termios (Makefile.am): Substitute new key.
13783         * lib/termios.in.h (includes): Make include_next conditional.
13784         * doc/posix-headers/termios.texi (termios.h): Update
13785         documentation.
13786         Reported by Daniel P. Berrange.
13787
13788 2010-10-13  Jim Meyering  <meyering@redhat.com>
13789
13790         git-version-gen: don't require that .git/ be in the current dir
13791         * build-aux/git-version-gen: Adjust this script so that it works
13792         when run from any working directory beneath the top-level .git/-
13793         containing directory.  Inspired by a patch from Giuseppe Scrivano,
13794         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
13795
13796         test-select: avoid warn_unused_result warnings
13797         * tests/test-select.c: Include "macros.h".
13798         ASSERT that each call to read, write, and pipe succeeds.
13799         While not technically required, also check each "close".
13800         * modules/select-tests (Files): Add tests/macros.h.
13801
13802         test-symlinkat: remove declaration of unused local
13803         * tests/test-symlinkat.c (main): Remove unused local, "buf".
13804
13805         test-inttostr: avoid shadowing warnings
13806         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
13807         and use malloc rather than the stack for the same reason as
13808         mentioned in the comment justifying the other allocation.
13809
13810 2010-10-11  Bruno Haible  <bruno@clisp.org>
13811
13812         stdlib: Allow multiple gnulib generated replacements to coexist.
13813         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
13814         Reported by Sam Steingold <sds@gnu.org>.
13815
13816 2010-10-11  Jim Meyering  <meyering@redhat.com>
13817
13818         fix a documentation typo
13819         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
13820
13821 2010-10-11  Eric Blake  <eblake@redhat.com>
13822
13823         futimens: work around Solaris 11 bug
13824         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
13825         * tests/test-futimens.h (test_futimens): Enhance, rather than
13826         weaken test.
13827         * doc/posix-functions/futimens.texi (futimens): Document the bug.
13828
13829 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
13830
13831         Indentation.
13832         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
13833         higher-level operators more to the left.
13834
13835 2010-10-11  Jim Meyering  <meyering@redhat.com>
13836
13837         test-futimens: avoid unwarranted test failure on Solaris 5.11
13838         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
13839         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
13840         because it tries to dereference the NULL name argument.
13841
13842 2010-10-11  Bruno Haible  <bruno@clisp.org>
13843
13844         Indentation.
13845         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
13846         indentation.
13847
13848 2010-10-11  Jim Meyering  <meyering@redhat.com>
13849
13850         spawn.in.h: make indentation consistent with parentheses
13851         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
13852         Make indentation consistent with parentheses.
13853
13854 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
13855
13856         Fix mismatched parens in previous commit
13857         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
13858         parens.
13859
13860 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
13861
13862         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
13863
13864         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
13865         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
13866         * lib/malloca.c: Include "verify.h".
13867         (verify1): Remove, replacing with a verify call.
13868         * lib/relocwrapper.c (verify1): Likewise.
13869         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
13870         Likewise.
13871         * modules/malloca (Depends-on): Add 'verify'.
13872         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
13873         * modules/vasnprintf (Depends-on): Add 'verify'.
13874         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
13875         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
13876         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
13877         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
13878         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
13879         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
13880         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
13881
13882         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
13883
13884         Formerly the style was sometimes 2*X - 1, because the C standard
13885         was wrongly thought to disallow ?: in integral constant expressions.
13886         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
13887         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
13888         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
13889         * lib/stdint.in.h (_verify_intmax_size): Likewise.
13890         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
13891         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
13892         verify that time_t cannot be floating.
13893
13894 2010-10-08  Eric Blake  <eblake@redhat.com>
13895
13896         time: enforce recent POSIX ruling that time_t is integral
13897         * lib/time.in.h (__time_t_must_be_integral): Detect any
13898         problematic systems, allowing the rest of gnulib to assume POSIX.
13899
13900 2010-10-08  Jim Meyering  <meyering@redhat.com>
13901
13902         fdopendir: fix a bug on systems lacking openat and /proc support
13903         OpenBSD 4.7 is one such system.  The most noticeable effect was
13904         failure of any application making nontrivial use of fts: rm, du,
13905         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
13906           ./rm: traversal failed: `a': Bad file descriptor
13907         Debugging that, you see that even though FD 6 was closed just
13908         prior to the opendir call in fd_clone_opendir, its resulting
13909         dir->dd_fd was 8, rather than the expected value of 6:
13910
13911         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
13912         93                close (fd);
13913         (gdb) n
13914         94                dir = fd_clone_opendir (dupfd);
13915         (gdb) n
13916         95                saved_errno = errno;
13917         (gdb) p dir->dd_fd
13918         $11 = 8
13919
13920         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
13921         The problem is that on OpenBSD, fd_clone_opendir has to resort
13922         to using the old-style save/restore CWD mechanism, due to its
13923         lack of openat/proc support, and *that* would steal the FD (6)
13924         that opendir was supposed to use.
13925
13926         The fix is to squirrel away the desired FD so that save_cwd uses a
13927         different one, and then free the dest FD right before calling opendir.
13928         That guarantees opendir will use the required file descriptor.
13929
13930         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
13931
13932 2010-10-08  Bruno Haible  <bruno@clisp.org>
13933
13934         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
13935         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
13936
13937 2010-10-08  Bruno Haible  <bruno@clisp.org>
13938
13939         nanosleep: Make replacement POSIX compliant.
13940         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
13941         is out of range.
13942         Reported by Jim Meyering.
13943
13944 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
13945
13946         bootstrap: add hook for altering gnulib.mk, for Bison
13947         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
13948         the Bison bootstrapping process can rewrite file names and variables
13949         in this file before later parts of 'bootstrap' use the file.
13950         Bison wants to include lib/gnulib.mk from the top-level makefile,
13951         so it needs the file names in this file to be relative to the top
13952         level, not relative to lib; plus it needs variable names to be
13953         rewritten.
13954         (slurp): Use the new function.
13955
13956         bootstrap: reformat for readability
13957         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
13958
13959 2010-10-08  Eric Blake  <eblake@redhat.com>
13960
13961         docs: update cygwin progress
13962         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
13963         1.7.7.
13964         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
13965         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
13966         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
13967         * doc/posix-functions/carg.texi (carg): Likewise.
13968         * doc/posix-functions/cargf.texi (cargf): Likewise.
13969         * doc/posix-functions/casin.texi (casin): Likewise.
13970         * doc/posix-functions/casinf.texi (casinf): Likewise.
13971         * doc/posix-functions/casinh.texi (casinh): Likewise.
13972         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
13973         * doc/posix-functions/catan.texi (catan): Likewise.
13974         * doc/posix-functions/catanf.texi (catanf): Likewise.
13975         * doc/posix-functions/catanh.texi (catanh): Likewise.
13976         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
13977         * doc/posix-functions/ccos.texi (ccos): Likewise.
13978         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
13979         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
13980         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
13981         * doc/posix-functions/cexp.texi (cexp): Likewise.
13982         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
13983         * doc/posix-functions/cimag.texi (cimag): Likewise.
13984         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
13985         * doc/posix-functions/clog.texi (clog): Likewise.
13986         * doc/posix-functions/clogf.texi (clogf): Likewise.
13987         * doc/posix-functions/conj.texi (conj): Likewise.
13988         * doc/posix-functions/conjf.texi (conjf): Likewise.
13989         * doc/posix-functions/cpow.texi (cpow): Likewise.
13990         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
13991         * doc/posix-functions/cproj.texi (cproj): Likewise.
13992         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
13993         * doc/posix-functions/creal.texi (creal): Likewise.
13994         * doc/posix-functions/crealf.texi (crealf): Likewise.
13995         * doc/posix-functions/csin.texi (csin): Likewise.
13996         * doc/posix-functions/csinf.texi (csinf): Likewise.
13997         * doc/posix-functions/csinh.texi (csinh): Likewise.
13998         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
13999         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
14000         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
14001         * doc/posix-functions/ctan.texi (ctan): Likewise.
14002         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
14003         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
14004         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
14005         * doc/posix-headers/complex.texi (complex.h): Likewise.
14006
14007 2010-10-07  Jim Meyering  <meyering@redhat.com>
14008
14009         parse-datetime: avoid compilation failure on OpenBSD 4.7
14010         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
14011         This works around a compilation failure on OpenBSD 4.7:
14012         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
14013
14014 2010-10-07  Eric Blake  <eblake@redhat.com>
14015
14016         docs: update cygwin progress
14017         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
14018         1.7.6.
14019         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
14020         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
14021         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
14022         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
14023         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
14024         Likewise.
14025         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
14026         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
14027         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
14028         Likewise.
14029         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
14030         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
14031         Likewise.
14032         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
14033         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
14034         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
14035         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
14036         Likewise.
14037         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
14038         Likewise.
14039         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
14040
14041         docs: update parse-datetime history
14042         * doc/parse-datetime.texi (Authors of parse_datetime): Better
14043         documentation of this function's history and alternatives.
14044
14045         cygwin: use more robust version check
14046         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
14047         exclude an eventual cygwin 1.9.1.
14048         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
14049         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
14050         (gl_FUNC_STRCASESTR): Likewise.
14051         Reported by Bruno Haible.
14052
14053 2010-10-06  Bruno Haible  <bruno@clisp.org>
14054
14055         string, sys_select: Avoid #including large headers unless necessary.
14056         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
14057         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
14058         OSF/1, BeOS, Haiku.
14059         Reported by Jim Meyering.
14060
14061 2010-10-05  Eric Blake  <eblake@redhat.com>
14062
14063         memmem, strstr, strcasestr: fix bug with long periodic needle
14064         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
14065         periodic needle having false positive.
14066         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
14067         and cygwin 1.7.7.
14068         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
14069         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
14070         (gl_FUNC_STRCASESTR): Likewise.
14071         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
14072         * tests/test-memmem.c (main): Expose the bug.
14073         * tests/test-strcasestr.c (main): Likewise.
14074         * tests/test-strstr.c (main): Likewise.
14075         * tests/test-c-strcasestr.c (main): Likewise.
14076         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
14077         * doc/posix-functions/strstr.texi (strstr): Likewise.
14078         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
14079         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
14080
14081 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
14082
14083         parse-datetime: do some more renaming
14084         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
14085         parse_datetime, not get_date.  Mention the renaming.
14086         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
14087         in comments.
14088         * m4/bison.m4: Likewise.
14089
14090 2010-10-05  Eric Blake  <eblake@redhat.com>
14091
14092         parse-datetime: better name than get_date
14093         * NEWS: Reword the deprecation notice.
14094         * modules/get_date: Rename to modules/parse-datetime.
14095         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
14096         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
14097         * lib/get_date.y: Rename to lib/parse-datetime.y.
14098         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
14099         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
14100         * doc/getdate.texi: Provide fallback wrapper.
14101         * lib/getdate.h: Move guts, and wrap...
14102         * lib/parse-datetime.h: ...new file.
14103         * lib/parse-datetime.y (get_date): Rename...
14104         (parse_datetime): ...to this.
14105         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
14106         (gl_PARSE_DATETIME): ...to this.
14107         * doc/posix-functions/getdate.texi (get_date): Provide fallback
14108         documentation.
14109         * modules/getdate (Files): Provide fallback docs and header.
14110         (Notice, Depends-on): Update references.
14111         * tests/test-parse-datetime.c: Likewise.
14112         * DEPENDENCIES: Likewise.
14113         * MODULES.html.sh (Date and time <time.h>): Likewise.
14114         * doc/parse-datetime.texi (Date input formats)
14115         (Authors of parse_datetime): Likewise.
14116         * modules/parse-datetime (Files, configure.ac, Makefile.am)
14117         (Include): Likewise.
14118         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
14119         * gnulib-tool: Likewise.
14120         * m4/bison.m4 (gl_BISON): Likewise.
14121         Suggested by Bruno Haible.
14122
14123 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
14124
14125         more ports to Solaris tr, which needs [] around ranges
14126         * gnulib-tool: Solaris tr needs [] around ranges.
14127         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
14128         * tests/test-pipe-filter-gi1.c (main): Likewise.
14129         * tests/test-pipe-filter-ii1.c (main): Likewise.
14130
14131 2010-10-05  Eric Blake  <eblake@redhat.com>
14132
14133         bootstrap: fix Solaris regression
14134         * build-aux/bootstrap (check_versions): Solaris tr still needs []
14135         around ranges.
14136         Reported by Pádraig Brady.
14137
14138         bootstrap: work with pkg-config
14139         * build-aux/bootstrap (check_versions): Also transliterate - in
14140         prerequisite name.
14141         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
14142         prerequisites that were already found, to avoid confusion.
14143         Reported by Justin Clift.
14144
14145         faccessat: remove unused wrappers
14146         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
14147         presence of these wrappers dragged in -lgen on Solaris.
14148         Reported by Clemens Brogi; fix suggested by Paul Eggert.
14149
14150 2010-10-05  Jim Meyering  <meyering@redhat.com>
14151
14152         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
14153         * Makefile (sc_pragma_columns): New syntax-check rule.
14154
14155 2010-10-04  Bruno Haible  <bruno@clisp.org>
14156
14157         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
14158         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
14159         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
14160         Reported by Bruce Korb and Eric Blake.
14161
14162 2010-10-04  Bruno Haible  <bruno@clisp.org>
14163
14164         threadlib: Make option --with-libpth-prefix work.
14165         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
14166         use $LIBPTH, not just -lpth.
14167
14168 2010-10-04  Bruno Haible  <bruno@clisp.org>
14169
14170         Avoid line length limitation from HP NonStop system header files.
14171         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
14172         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
14173         * lib/ctype.in.h: Likewise.
14174         * lib/dirent.in.h: Likewise.
14175         * lib/errno.in.h: Likewise.
14176         * lib/fcntl.in.h: Likewise.
14177         * lib/float.in.h: Likewise.
14178         * lib/getopt.in.h: Likewise.
14179         * lib/iconv.in.h: Likewise.
14180         * lib/inttypes.in.h: Likewise.
14181         * lib/langinfo.in.h: Likewise.
14182         * lib/locale.in.h: Likewise.
14183         * lib/math.in.h: Likewise.
14184         * lib/netdb.in.h: Likewise.
14185         * lib/netinet_in.in.h: Likewise.
14186         * lib/poll.in.h: Likewise.
14187         * lib/pthread.in.h: Likewise.
14188         * lib/pty.in.h: Likewise.
14189         * lib/sched.in.h: Likewise.
14190         * lib/se-selinux.in.h: Likewise.
14191         * lib/search.in.h: Likewise.
14192         * lib/signal.in.h: Likewise.
14193         * lib/spawn.in.h: Likewise.
14194         * lib/stdarg.in.h: Likewise.
14195         * lib/stddef.in.h: Likewise.
14196         * lib/stdint.in.h: Likewise.
14197         * lib/stdio.in.h: Likewise.
14198         * lib/stdlib.in.h: Likewise.
14199         * lib/string.in.h: Likewise.
14200         * lib/strings.in.h: Likewise.
14201         * lib/sys_file.in.h: Likewise.
14202         * lib/sys_ioctl.in.h: Likewise.
14203         * lib/sys_select.in.h: Likewise.
14204         * lib/sys_socket.in.h: Likewise.
14205         * lib/sys_stat.in.h: Likewise.
14206         * lib/sys_time.in.h: Likewise.
14207         * lib/sys_times.in.h: Likewise.
14208         * lib/sys_utsname.in.h: Likewise.
14209         * lib/sys_wait.in.h: Likewise.
14210         * lib/sysexits.in.h: Likewise.
14211         * lib/termios.in.h: Likewise.
14212         * lib/time.in.h: Likewise.
14213         * lib/unistd.in.h: Likewise.
14214         * lib/wchar.in.h: Likewise.
14215         * lib/wctype.in.h: Likewise.
14216         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
14217         * modules/ctype (Makefile.am): Likewise.
14218         * modules/dirent (Makefile.am): Likewise.
14219         * modules/errno (Makefile.am): Likewise.
14220         * modules/fcntl-h (Makefile.am): Likewise.
14221         * modules/float (Makefile.am): Likewise.
14222         * modules/getopt-posix (Makefile.am): Likewise.
14223         * modules/iconv-h (Makefile.am): Likewise.
14224         * modules/inttypes (Makefile.am): Likewise.
14225         * modules/langinfo (Makefile.am): Likewise.
14226         * modules/locale (Makefile.am): Likewise.
14227         * modules/math (Makefile.am): Likewise.
14228         * modules/netdb (Makefile.am): Likewise.
14229         * modules/netinet_in (Makefile.am): Likewise.
14230         * modules/poll-h (Makefile.am): Likewise.
14231         * modules/pthread (Makefile.am): Likewise.
14232         * modules/pty (Makefile.am): Likewise.
14233         * modules/sched (Makefile.am): Likewise.
14234         * modules/search (Makefile.am): Likewise.
14235         * modules/selinux-h (Makefile.am): Likewise.
14236         * modules/signal (Makefile.am): Likewise.
14237         * modules/spawn (Makefile.am): Likewise.
14238         * modules/stdarg (Makefile.am): Likewise.
14239         * modules/stddef (Makefile.am): Likewise.
14240         * modules/stdint (Makefile.am): Likewise.
14241         * modules/stdio (Makefile.am): Likewise.
14242         * modules/stdlib (Makefile.am): Likewise.
14243         * modules/string (Makefile.am): Likewise.
14244         * modules/strings (Makefile.am): Likewise.
14245         * modules/sys_file (Makefile.am): Likewise.
14246         * modules/sys_ioctl (Makefile.am): Likewise.
14247         * modules/sys_select (Makefile.am): Likewise.
14248         * modules/sys_socket (Makefile.am): Likewise.
14249         * modules/sys_stat (Makefile.am): Likewise.
14250         * modules/sys_time (Makefile.am): Likewise.
14251         * modules/sys_times (Makefile.am): Likewise.
14252         * modules/sys_utsname (Makefile.am): Likewise.
14253         * modules/sys_wait (Makefile.am): Likewise.
14254         * modules/sysexits (Makefile.am): Likewise.
14255         * modules/termios (Makefile.am): Likewise.
14256         * modules/time (Makefile.am): Likewise.
14257         * modules/unistd (Makefile.am): Likewise.
14258         * modules/wchar (Makefile.am): Likewise.
14259         * modules/wctype (Makefile.am): Likewise.
14260
14261 2010-10-04  Bruno Haible  <bruno@clisp.org>
14262
14263         read-file tests: Avoid a test failure on NonStop Kernel.
14264         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
14265         a regular file.
14266         Reported by Joachim Schmitz <schmitz@hp.com>.
14267
14268 2010-10-03  Bruno Haible  <bruno@clisp.org>
14269
14270         gnulib-tool: Fixes for --create-testdir with --libtool.
14271         * gnulib-tool (func_get_automake_snippet): Don't augment
14272         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
14273         an executable.
14274         (func_create_testdir): Handle module 'alloca' like func_import.
14275         Reported by Bruce Korb <bruce.korb@gmail.com>.
14276
14277 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
14278
14279         Avoid some lines longer than 80 characters.
14280         * lib/stdint.in.h: Break long comment lines.
14281         * lib/math.in.h: Likewise.
14282         (_GL_NUM_UINT_WORDS): New macro, for readability.
14283         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
14284         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
14285         * lib/stdlib.in.h: Likewise.
14286         * lib/spawn.in.h: Likewise.
14287         * lib/sys_socket.in.h: Update an URL.
14288         * lib/sys_stat.in.h: Break long line.
14289
14290 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
14291
14292         Improve pmccabe2html.
14293         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
14294         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
14295         when the sources change. Remove the line in the HTML about "Used
14296         ranges" (which implied that there might be other unused ranges),
14297         rename "Resume" to "Summary" (easier to understand for more users).
14298         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
14299         styles, and some unnecessary blank lines.
14300
14301 2010-10-03  Bruno Haible  <bruno@clisp.org>
14302             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
14303
14304         acl: Add support for ACLs on NonStop Kernel.
14305         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
14306         Check whether the function aclsort() exists.
14307         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
14308         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
14309         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
14310         (acl_nontrivial [HAVE_ACLSORT]: New function.
14311         (file_has_acl): Implement for NonStop Kernel.
14312         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
14313         (qset_acl): Implement for NonStop Kernel.
14314         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
14315         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
14316         (main): Implement for NonStop Kernel.
14317         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
14318         Kernel. Handle this flavor.
14319         * tests/test-set-mode-acl.sh: Likewise.
14320         * tests/test-copy-acl.sh: Likewise.
14321         * tests/test-copy-file.sh: Likewise.
14322
14323 2010-10-03  Bruno Haible  <bruno@clisp.org>
14324
14325         Info about ACLs on NonStop Kernel.
14326         * doc/acl-resources.txt: Add info about NonStop Kernel.
14327         References by Joachim Schmitz <schmitz@hp.com>.
14328
14329 2010-10-02  Bruno Haible  <bruno@clisp.org>
14330
14331         Define missing EDQUOT on NonStop Kernel.
14332         * lib/errno.in.h (EDQUOT): Assign a value if missing.
14333         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
14334         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
14335         missing.
14336         * doc/posix-headers/errno.texi: Mention the NSK bug.
14337         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
14338         Reported by Joachim Schmitz <schmitz@hp.com>.
14339
14340 2010-10-02  Bruno Haible  <bruno@clisp.org>
14341
14342         Update doc for POSIX:2008.
14343         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
14344         Update URL of POSIX specification.
14345
14346 2010-10-02  Bruno Haible  <bruno@clisp.org>
14347
14348         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
14349         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
14350         from gnulib, not from Automake.
14351
14352 2010-10-02  Bruno Haible  <bruno@clisp.org>
14353
14354         New module 'system-posix'.
14355         * modules/system-posix: New file.
14356         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
14357         module is present.
14358         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
14359         GNULIB_SYSTEM_POSIX.
14360         * modules/stdlib (Depends-on): Remove sys_wait.
14361         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
14362         * doc/posix-functions/system.texi: Mention the new module.
14363         * doc/posix-headers/stdlib.texi: Likewise.
14364         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
14365         define test_sys_wait_macros to a no-op.
14366         Reported by Sam Steingold <sds@gnu.org>.
14367
14368 2010-09-30  Bruno Haible  <bruno@clisp.org>
14369
14370         More renaming from 'getdate' to 'get_date'.
14371         * doc/get_date.texi: Renamed from doc/getdate.texi.
14372         * modules/get_date (Files): Update.
14373         * MODULES.html.sh (Date and time <time.h>): Update.
14374         * DEPENDENCIES: Update.
14375         * gnulib-tool: Update comment.
14376         * m4/bison.m4 (gl_BISON): Likewise.
14377         * m4/get_date.m4 (gl_GET_DATE): Likewise.
14378
14379 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
14380
14381         bootstrap: support ACLOCAL_FLAGS during aclocal
14382         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
14383         can add additional -I dir for third-party .m4 files.
14384
14385 2010-09-30  Eric Blake  <eblake@redhat.com>
14386
14387         bootstrap: use glibtoolize on MacOS
14388         * build-aux/bootstrap (check_versions): Convert libtool into
14389         libtoolize.
14390         (tool search): Move libtool check earlier, and look for
14391         glibtoolize for MacOS.
14392         (gnulib_tool_options): Auto-add --libtool when appropriate.
14393         Reported by Justin Clift.
14394
14395         poll: fix typo that broke test on MacOS
14396         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
14397         Reported by Justin Clift.
14398
14399         getdate: rename to get_date
14400         Note: getdate.h is not renamed, to minimize client impact.
14401         * modules/getdate: Mark obsolete.  Move old contents...
14402         * modules/get_date: ...to new module name.
14403         * modules/getdate-tests: Move...
14404         * modules/get_date-tests: ...here.
14405         * m4/getdate.m4: Move...
14406         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
14407         * lib/getdate.y: Move...
14408         * lib/get_date.y: ...here.
14409         * tests/test-getdate.c: Move...
14410         * tests/test-get_date.c: ...here.
14411         * doc/posix-functions/getdate.texi (getdate): Update name.
14412         * NEWS: Mention the change.
14413
14414 2010-09-29  Bruno Haible  <bruno@clisp.org>
14415
14416         Separate the module 'waitpid' from the module 'sys_wait'.
14417         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
14418         present.
14419         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
14420         gl_MODULE_INDICATOR_FOR_TESTS.
14421         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
14422         * modules/sys_wait (Depends-on): Remove waitpid.
14423         (Makefile.am): Substitute GNULIB_WAITPID.
14424         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
14425         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
14426         signature only if the 'waitpid' module is present.
14427         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
14428         * NEWS: Mention the change.
14429         * modules/grantpt (Depends-on): Add waitpid.
14430         * modules/wait-process (Depends-on): Likewise.
14431
14432 2010-09-29  Bruno Haible  <bruno@clisp.org>
14433
14434         More tests for module 'sys_wait'.
14435         * modules/sys_wait-c++-tests: New file.
14436         * tests/test-sys_wait-c++.cc: New file.
14437         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
14438         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
14439
14440 2010-09-29  Bruno Haible  <bruno@clisp.org>
14441
14442         New module 'waitpid'.
14443         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
14444         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
14445         Don't include <process.h>.
14446         (waitpid): Declare only, using modern idiom.
14447         * m4/waitpid.m4: New file.
14448         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
14449         * modules/waitpid: New file.
14450         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
14451         (Makefile.am): Update.
14452         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
14453
14454 2010-09-28  Bruno Haible  <bruno@clisp.org>
14455
14456         poll: Assume ANSI C.
14457         * lib/poll.c (poll): Use an ANSI C declaration.
14458
14459 2010-09-28  Bruno Haible  <bruno@clisp.org>
14460
14461         poll-h: Create poll.h on all platforms.
14462         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
14463         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
14464         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
14465         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
14466         (gl_REPLACE_POLL_H): Don't set POLL_H.
14467         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
14468         * modules/poll-h (Depends-on): Add include_next.
14469         (Makefile.am): Create poll.h unconditionally. Substitute also
14470         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
14471
14472 2010-09-28  Bruno Haible  <bruno@clisp.org>
14473
14474         Tests for module 'poll-h'.
14475         * modules/poll-h-c++-tests: New file.
14476         * tests/test-poll-h-c++.cc: New file.
14477
14478         Tests for module 'poll-h'.
14479         * modules/poll-h-tests: New file.
14480         * tests/test-poll-h.c: New file.
14481
14482 2010-09-28  Bruno Haible  <bruno@clisp.org>
14483
14484         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
14485         * modules/poll-h (Depends-on): Add 'extensions'.
14486
14487 2010-09-28  Bruno Haible  <bruno@clisp.org>
14488
14489         New module 'poll-h'.
14490         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
14491         (poll): Use modern idiom.
14492         * modules/poll-h: New file.
14493         * modules/poll (Files): Remove lib/poll.in.h.
14494         (Depends-on): Add poll-h.
14495         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
14496         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
14497         * m4/poll_h.m4: New file.
14498         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
14499         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
14500         and invoke gl_REPLACE_POLL_H.
14501         * lib/poll.c: Use common idiom.
14502         * tests/test-poll.c: Likewise.
14503         * doc/posix-headers/poll.texi: Mention the poll-h module.
14504         Suggested by Eric Blake.
14505
14506 2010-09-26  Bruno Haible  <bruno@clisp.org>
14507
14508         sys_wait: Implement WSTOPSIG.
14509         * lib/sys_wait.in.h (WSTOPSIG): New macro.
14510         Reported by Simon Josefsson.
14511
14512 2010-09-26  Simon Josefsson  <simon@josefsson.org>
14513
14514         stdlib, sys_wait: Avoid compilation error on mingw.
14515         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
14516
14517 2010-09-26  Bruno Haible  <bruno@clisp.org>
14518
14519         stdlib tests: Avoid code duplication.
14520         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
14521         * modules/sys_wait-tests (Files): Likewise.
14522         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
14523         * tests/test-stdlib.c: Include test-sys_wait.h.
14524         (main): Invoke test_sys_wait_macros.
14525         * tests/test-sys_wait.c: Include test-sys_wait.h.
14526         (main): Invoke test_sys_wait_macros.
14527
14528 2010-09-25  Simon Josefsson  <simon@josefsson.org>
14529
14530         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
14531         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
14532         sure Windows sockets are working before calling getaddrinfo.
14533         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
14534         * doc/gnulib.texi (Windows sockets): Fix typo.
14535
14536 2010-09-25  Bruno Haible  <bruno@clisp.org>
14537
14538         Tests for module 'regex-quote'.
14539         * modules/regex-quote-tests: New file.
14540         * tests/test-regex-quote.c: New file.
14541
14542         New module 'regex-quote'.
14543         * lib/regex-quote.h: New file.
14544         * lib/regex-quote.c: New file.
14545         * modules/regex-quote: New file.
14546         Suggested by Reuben Thomas <rrt@sc3d.org>.
14547
14548 2010-09-24  Bruno Haible  <bruno@clisp.org>
14549
14550         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
14551         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
14552
14553 2010-09-23  Bruno Haible  <bruno@clisp.org>
14554
14555         setenv: Relax license.
14556         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
14557         Blake.
14558         Requested by Eric Blake.
14559
14560 2010-09-22  Bruno Haible  <bruno@clisp.org>
14561
14562         termios: Relax license.
14563         * modules/termios (License): Change to LGPLv2+.
14564         Requested by Eric Blake.
14565
14566 2010-09-22  Bruno Haible  <bruno@clisp.org>
14567
14568         threadlib: Allow the package to change the default to 'no'.
14569         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
14570         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
14571         Reported by Paul Eggert.
14572
14573 2010-09-22  Pádraig Brady  <P@draigbrady.com>
14574             Bruno Haible  <bruno@clisp.org>
14575
14576         Fix endless loop in mbmemcasecoll.
14577         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
14578         byte.
14579         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
14580
14581 2010-09-22  Bruno Haible  <bruno@clisp.org>
14582
14583         Tests for module 'memcoll'.
14584         * modules/memcoll-tests: New file.
14585         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
14586
14587         memcoll, xmemcoll: Clarify size vs. length.
14588         * modules/memcoll.c (memcoll0): Clarify specification.
14589         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
14590         passed to collate_error.
14591
14592 2010-09-22  Bruno Haible  <bruno@clisp.org>
14593
14594         Tests for module 'memcasecmp'.
14595         * modules/memcasecmp-tests: New file.
14596         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
14597
14598 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
14599
14600         * lib/pthread.in.h: Add split double-inclusion guard, and include
14601         system <pthread.h> if there is one.  Use @@-style as in other
14602         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
14603         pthread.h doesn't.
14604         (pthread_mutexattr_destroy, pthread_mutexattr_init):
14605         (pthread_mutexattr_settype, pthread_mutex_trylock):
14606         New static inline functions, if there's no system <pthread.h>.
14607         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
14608         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
14609         Approximate with mutexes if the system lacks spinlocks, as in
14610         MacOS.
14611         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
14612         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
14613         @@-style.  Check for spinlocks separately.
14614         (gl_PTHREAD_DEFAULTS): New macro.
14615         * modules/pthread: Redo to use a more typical style for in.h files.
14616
14617 2010-09-21  Eric Blake  <eblake@redhat.com>
14618
14619         net_if: enhance tests
14620         * tests/test-net_if.c (main): Move signature checks earlier.
14621         Print failures to stderr.
14622         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
14623         Document the bug that we do not yet fix.
14624
14625 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
14626
14627         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
14628         about gnulib, not GSS.
14629
14630 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
14631
14632         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
14633         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
14634         for Emacs.
14635         * build-aux/pmccabe2html: Make Makefile.am example code more
14636         cut-and-paste friendly.
14637
14638 2010-09-21  Simon Josefsson  <simon@josefsson.org>
14639
14640         * tests/test-net_if.c: New file.
14641         * modules/net_if-tests: New file.
14642
14643 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
14644
14645         pthread: add pthread_spin_destroy
14646         * lib/pthread.in.h (pthread_spin_destroy): New function.
14647
14648 2010-09-19  Bruno Haible  <bruno@clisp.org>
14649
14650         gnulib-tool: Fix --help output.
14651         * gnulib-tool (func_usage): Fix help message.
14652         Reported by Reuben Thomas <rrt@sc3d.org>.
14653
14654 2010-09-18  Jim Meyering  <meyering@redhat.com>
14655
14656         maint.mk: avoid unexpanded \n in two diagnostics
14657         * top/maint.mk (sc_prohibit_always_true_header_tests):
14658         Don't use a literal \n in a halt=... assignment.  It would not be
14659         expanded, and the two \n bytes would appear in the diagnostic output
14660         rather than the desired newline.  Use halt=$$(printf ... instead.
14661         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
14662
14663 2010-09-18  Bruno Haible  <bruno@clisp.org>
14664
14665         netinet_in: Doc tweak.
14666         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
14667         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
14668
14669 2010-09-18  Jim Meyering  <meyering@redhat.com>
14670
14671         init.sh: correct an outdated comment
14672         * tests/init.sh (create_exe_shims_):  s/function/alias/
14673
14674         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
14675         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
14676         a file named "*.exe" is removed between the glob expansion and the
14677         processing of that oddly named file.
14678
14679 2010-09-17  Eric Blake  <eblake@redhat.com>
14680
14681         mirbsd: add some more support
14682         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
14683         in BSD family.
14684         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
14685         devices as OpenBSD.
14686         * m4/host-os.m4 (mirbsd): Add MirBSD.
14687
14688         tests: fix unportable assumption on sys/wait.h
14689         * tests/test-sys_wait.c (main): Relax test.
14690         * tests/test-stdlib.c (main): Likewise.
14691
14692         init.sh: accomodate directory with no .exes
14693         * tests/init.sh: Accomodate directory containing only scripts.
14694
14695         tests: avoid compiler warning
14696         * tests/test-stdlib.c (main): Use the variable.
14697
14698         fdutimens, fdutimensat: update signature, again
14699         * lib/utimens.h (gl_futimens): Delete, and move signature...
14700         (fdutimens): ...here.
14701         (fdutimensat): Rearrange signature.
14702         (lutimensat): Rename variable for clarity.
14703         * lib/fdutimensat.c (fdutimensat): Update signature.
14704         * lib/utimens.c (fdutimens): Likewise.
14705         (gl_futimens): Delete.
14706         (utimens, lutimens): Update callers.
14707         * lib/futimens.c (futimens): Likewise.
14708         * tests/test-fdutimensat.c: Likewise.
14709         * tests/test-utimens.c: Likewise.
14710         * tests/test-futimens.h: Update comment.
14711         * NEWS: Mention this.
14712         Suggested by Paul Eggert.
14713
14714 2010-09-17  Bruno Haible  <bruno@clisp.org>
14715
14716         Take over the maintenance of some older macros from Autoconf.
14717         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
14718         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
14719         GNU Autoconf.
14720         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
14721         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
14722
14723 2010-09-17  Eric Blake  <eblake@redhat.com>
14724
14725         fdutimensat: drop atflag validation
14726         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
14727         with valid fd, to close a race scenario where futimens is
14728         unsupported and FILE was replaced by a symlink.
14729         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
14730         accordingly.
14731         Suggested by Paul Eggert.
14732
14733 2010-09-16  Bruno Haible  <bruno@clisp.org>
14734
14735         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
14736         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
14737
14738 2010-09-16  Bruno Haible  <bruno@clisp.org>
14739
14740         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
14741         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
14742         login_tty exists.
14743         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
14744
14745 2010-09-16  Bruno Haible  <bruno@clisp.org>
14746
14747         login_tty: Make the replacement code work on BSD systems.
14748         * lib/login_tty.c: Include <sys/ioctl.h>.
14749         (login_tty): Use ioctl TIOCSCTTY when available.
14750         * modules/login_tty (Depends-on): Add sys_ioctl.
14751         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
14752
14753 2010-09-16  Bruno Haible  <bruno@clisp.org>
14754
14755         login_tty: Stricter unit test.
14756         * modules/login_tty-tests (Depends-on): Add tcgetsid.
14757         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
14758         and tcgetsid() after login_tty.
14759         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
14760
14761 2010-09-16  Bruno Haible  <bruno@clisp.org>
14762
14763         New module 'tcgetsid'.
14764         * lib/tcgetsid.c: New file.
14765         * m4/tcgetsid.m4: New file.
14766         * modules/tcgetsid: New file.
14767         * modules/termios (Depends-on): Add c++defs, warn-on-use.
14768         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
14769         GNULIB_TCGETSID, HAVE_TCGETSID.
14770         * lib/termios.in.h: Include <sys/types.h>.
14771         (tcgetsid): New declaration.
14772         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
14773         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
14774         * doc/posix-functions/tcgetsid.texi: Mention the new module.
14775         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
14776
14777 2010-09-16  Bruno Haible  <bruno@clisp.org>
14778
14779         Tests for module 'termios'.
14780         * modules/termios-c++-tests: New file.
14781         * modules/termios-tests: New file.
14782         * tests/test-termios-c++.cc: New file.
14783         * tests/test-termios.c: New file.
14784
14785         New module 'termios'.
14786         * modules/termios: New file.
14787         * lib/termios.in.h: New file.
14788         * m4/termios_h.m4: New file.
14789         * doc/posix-headers/termios.texi: Mention the new module.
14790
14791 2010-09-16  Eric Blake  <eblake@redhat.com>
14792
14793         fdutimensat: add an atflag parameter
14794         * lib/fdutimensat.c (fdutimensat): Add new parameter.
14795         * lib/utimens.h (fdutimensat): Update prototype.
14796         * tests/test-fdutimensat.c: Adjust test to match.
14797         * NEWS: Document the change.
14798         Suggested by Paul Eggert.
14799
14800 2010-09-16  Bruno Haible  <bruno@clisp.org>
14801
14802         Fix typos in comments.
14803         * lib/striconveh.h: Fix typo in comment.
14804         * lib/login_tty.c (login_tty): Likewise.
14805
14806 2010-09-15  Bruno Haible  <bruno@clisp.org>
14807
14808         stdlib: clarify MirBSD WEXITSTATUS bug
14809         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
14810         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
14811
14812 2010-09-15  Eric Blake  <eblake@redhat.com>
14813
14814         stdlib: work around MirBSD WEXITSTATUS bug
14815         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
14816         * modules/stdlib (Depends-on): Add sys_wait.
14817         * tests/test-sys_wait.c (main): Enhance test.
14818         * tests/test-stdlib.c (main): Likewise.
14819         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
14820
14821         docs: mention MacOS issue with WEXITSTATUS(constant)
14822         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
14823         issue.
14824         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
14825
14826         strnlen: add tests
14827         * modules/strnlen-tests: New file.
14828         * tests/test-strnlen.c: Likewise.
14829
14830 2010-09-14  Bruno Haible  <bruno@clisp.org>
14831
14832         unistr/base: Avoid link errors when module 'libunistring' is also used.
14833         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
14834         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
14835         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
14836         Declare also when HAVE_LIBUNISTRING is set.
14837         Reported by Pádraig Brady <P@draigbrady.com>.
14838
14839 2010-09-14  Eric Blake  <eblake@redhat.com>
14840
14841         test-rawmemchr: make more robust
14842         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
14843         (Depends-on, configure.ac): Add needed prerequisites to use it.
14844         * modules/memchr-tests (Files, Depends-on, configure.ac):
14845         Likewise, to avoid implicit reliance on memchr module prereqs.
14846         * tests/test-memchr.c (main): Ensure proper masking.
14847         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
14848         reads.
14849
14850         memchr: detect glibc Alpha bug
14851         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
14852         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
14853         Alpha.
14854         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
14855         * tests/test-memchr.c (main): Enhance test.
14856         Reported by Nelson H. F. Beebe.
14857
14858 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
14859
14860         fts, getcwd, glob: audit for dirfd returning -1
14861         * lib/fts.c (opendir): Remove #define; no longer used.
14862         (opendirat): New arg PDIR_FD.  All callers changed.
14863         (fts_build, _opendir2): Use new opendirat to avoid the need for
14864         dirfd, or for checking whether dirfd returns a negative value.
14865         Don't use opendir; always use openat followed by fdopendir.
14866         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
14867         it.
14868         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
14869         returns -1 here.
14870         * modules/fts (Depends-on): Remove dirfd.
14871         * modules/getcwd (Depends-on): Likewise.
14872
14873 2010-09-13  Eric Blake  <eblake@redhat.com>
14874
14875         float: fix broken MirBSD header
14876         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
14877         * doc/posix-headers/float.texi (float.h): Document it.
14878
14879 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
14880
14881         fts: use O_NOFOLLOW to avoid race condition when opening a directory
14882         * lib/fts.c (opendirat): New arg extra_flags.
14883         (__opendir2): Use it to avoid following symlinks when opening
14884         a directory, if symlinks are not supposed to be followed.  See
14885         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
14886
14887         fdopendir: preserve argument fd before returning
14888         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
14889         (fdopendir_with_dup, fd_clone_opendir): New static functions.
14890         (fdopendir): Use them, arranging for FD to be open to the same
14891         directory that it was when it started.  (It might be temporarily
14892         closed while fdopendir is running, so this not thread- or
14893         signal-safe.)  Be careful to do the right thing even when file
14894         descriptors are scarce and dup fails with errno == EMFILE.  See
14895         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
14896
14897 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
14898
14899         regex: Pass the system regex if its only problem is 32-bit regoff_t.
14900         * NEWS: Document change.
14901         * m4/regex.m4: Disable test for regoff_t size.
14902
14903 2010-09-13  Jim Meyering  <meyering@redhat.com>
14904
14905         fts: don't operate on an invalid file descriptor after failed dup
14906         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
14907         negative file descriptor.
14908
14909 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
14910
14911         savedir: add streamsavedir, deprecate fdsavedir
14912         * NEWS: Mention deprecation of fdsavedir.
14913         * lib/savedir.c (streamsavedir): New extern function, whose name
14914         ends in "savedir" to be consistent with the others.  This differs
14915         from savedirstream in that it doesn't close its argument.  The
14916         next version of GNU tar will use this instead of fdsavedir, to
14917         avoid some race conditions and conserve file descriptors.
14918         (savedirstream): Reimplement as a wrapper around streamsavedir.
14919         (fdsavedir): Add a comment deprecating this function.  As far as
14920         I know, only GNU tar used it, and GNU tar doesn't need it any more.
14921         * lib/savedir.h (streamsavedir): New decl.
14922         (fdsavedir): Add a comment deprecating this.
14923
14924 2010-09-10  Bruno Haible  <bruno@clisp.org>
14925
14926         langinfo: Fix last commit.
14927         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
14928         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
14929         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14930
14931 2010-09-10  Bruno Haible  <bruno@clisp.org>
14932
14933         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
14934         * lib/progreloc.c (O_EXEC): Define fallback.
14935
14936 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
14937
14938         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
14939         * NEWS: Document recent changes to fcntl-h.
14940         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
14941         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
14942         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
14943         Similarly for O_SEARCH; this last was already true, but not documented.
14944         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
14945         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
14946         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
14947         Likewise.
14948         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
14949         is zero, not whether it is defined.
14950         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
14951         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
14952         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
14953
14954 2010-09-10  Bruno Haible  <bruno@clisp.org>
14955
14956         langinfo, nl_langinfo: Fix for IRIX 5.3.
14957         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
14958         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
14959         HAVE_LANGINFO_YESEXPR.
14960         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
14961         HAVE_LANGINFO_YESEXPR.
14962         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
14963         HAVE_LANGINFO_T_FMT_AMPM is 0.
14964         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
14965         HAVE_LANGINFO_YESEXPR is 0.
14966         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
14967         NOEXPR.
14968         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
14969         * doc/posix-functions/nl_langinfo.texi: Likewise.
14970         Reported by Eric Blake.
14971
14972 2010-09-10  Bruno Haible  <bruno@clisp.org>
14973
14974         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
14975         * doc/glibc-functions/login_tty.texi: Mention the include file problem
14976         on FreeBSD 8.0 and OpenBSD 4.6.
14977         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
14978         * m4/pty_h.m4 (gl_PTY_H): Likewise.
14979         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
14980         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
14981         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
14982         ac_includes_default.
14983         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
14984
14985 2010-09-09  Eric Blake  <eblake@redhat.com>
14986
14987         strsignal: work around NetBSD bug
14988         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
14989         * lib/string.in.h (includes): Likewise.
14990         * doc/posix-functions/strsignal.texi (strsignal): Document the
14991         bug.
14992         Reported by Nelson H. F. Beebe.
14993
14994         gnulib-tool: work with NetBSD /bin/sh
14995         * gnulib-tool (func_cache_var, func_cache_lookup_module)
14996         (func_get_description, func_get_comment, func_get_status)
14997         (func_get_notice, func_get_applicability, func_get_filelist)
14998         (func_get_dependencies, func_get_autoconf_early_snippet)
14999         (func_get_autoconf_snippet, func_get_automake_snippet)
15000         (func_get_include_directive, func_get_link_directive)
15001         (func_get_license, func_get_maintainer, func_import): Avoid
15002         shell syntax errors from parsing syntax extensions.
15003
15004 2010-09-09  Bruno Haible  <bruno@clisp.org>
15005
15006         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
15007         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
15008         a reliable way to determine whether the 'alias' command works.
15009
15010 2010-09-08  Jim Meyering  <meyering@redhat.com>
15011
15012         init.sh: penalize a set-x-impaired shell; don't disqualify it
15013         * tests/init.sh: Too many shells corrupt application stderr when
15014         you set -x, so we can't afford to disqualify them, since at least
15015         on Irix-6.5, that would disqualify all bourne shells.
15016         Instead, use a two-pass approach.
15017         On the first pass, try to find a shell that meets the stricter
15018         condition that set -x does not corrupt stderr.
15019         If no shell meets the stricter condition, retest each candidate
15020         shell, but without that extra condition.  Finally, when
15021         VERBOSE=yes is requested and set -x might cause trouble, simply
15022         issue a warning and refrain from enabling debug output.
15023
15024 2010-09-08  Eric Blake  <eblake@redhat.com>
15025
15026         unsetenv: fix OpenBSD bug
15027         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
15028         * doc/posix-functions/unsetenv.texi (unsetenv): Update
15029         documentation.
15030         Reported by Jim Meyering.
15031
15032         strtod: work around IRIX 6.5 bug
15033         * lib/strtod.c (strtod): Reparse number on shorter string if
15034         exponent parse was invalid.
15035         * tests/test-strtod.c (main): Add check for "0x1p 2".
15036         Reported by Tom G. Christensen.
15037
15038         getopt: optimize previous patch
15039         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
15040         empty variable.  Speed up awk script.
15041         Reported by Paolo Bonzini.
15042
15043 2010-09-08  Jim Meyering  <meyering@redhat.com>
15044
15045         test.sh: disqualify shells for which set -x corrupts stderr
15046         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
15047         and OpenBSD 4.7.  They make it so with "set -x", environment settings
15048         appear in stderr output.  For example, this command:
15049             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
15050         prints "P=1" on those two systems:
15051
15052 2010-09-08  Bruno Haible  <bruno@clisp.org>
15053
15054         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
15055         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
15056         commands, because some shells ignore redirections when there is an
15057         error in the command lookup.
15058         Reported by Eric Blake.
15059
15060 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
15061
15062         * lib/regex.h: Fix a mention of `regex_compile' (should be
15063         `re_compile_pattern').
15064         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
15065         (re_set_registers): Correct name of parameter in comment.
15066
15067         * doc/regex.texi: Add documentation for missing syntax flags.
15068         Remove commented-out documentation of defunct syntax option
15069         RE_NO_EMPTY_ALTS.
15070         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
15071         Add documentation of re_set_registers.
15072         Document trick to re-use a pattern buffer by setting fastmap manually.
15073         Update documentation of struct re_pattern_buffer per public members.
15074         Uncomment documentation of equivalence class operators and
15075         collating symbol operators, since they are now implemented,
15076         Explain leftmost-longest matching in relation to alternatives.
15077         Tidy documentation of substring matching.
15078         Remove POSIX documentation, which is done better in
15079         glibc, and refer the reader there. Keep BSD API documentation, as
15080         that is not readily available elsewhere.
15081
15082 2010-09-07  Eric Blake  <eblake@redhat.com>
15083
15084         getopt: handle POSIXLY_CORRECT set but not exported
15085         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
15086         export state of POSIXLY_CORRECT, due to bash set -o posix.
15087         Reported by Dustin J. Mitchell.
15088
15089 2010-09-05  Bruno Haible  <bruno@clisp.org>
15090
15091         gnulib-tool: Highlight the changed options.
15092         * gnulib-tool (func_usage): Display the --import, --add-import,
15093         --remove-import explanations in bold font.
15094
15095 2010-09-06  Karl Berry  <karl@gnu.org>
15096
15097         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
15098
15099 2010-09-05  Bruno Haible  <bruno@clisp.org>
15100
15101         uniwidth/width: Update comment.
15102         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
15103         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
15104
15105 2010-09-05  Bruno Haible  <bruno@clisp.org>
15106
15107         isinf, isnan: Relax license.
15108         * modules/isinf (License): Change from GPL to LGPL, with consent from
15109         Ben Pfaff.
15110         * modules/isnan (License): Likewise.
15111         Requested by Ludovic Courtès.
15112
15113 2010-09-04  Bruno Haible  <bruno@clisp.org>
15114
15115         gnulib-tool: Help migration from --import to --add-import or --update.
15116         * gnulib-tool: Emit a verbose error message when --import is used
15117         without any module name.
15118
15119 2010-09-04  Bruno Haible  <bruno@clisp.org>
15120
15121         Update doc about gnulib-tool.
15122         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
15123         'gnulib-tool --update' in more detail.
15124         Reported by Eric Blake.
15125
15126 2010-09-04  Bruno Haible  <bruno@clisp.org>
15127
15128         gnulib-tool: Change --import. New options --add/remove-import.
15129         * gnulib-tool: New options --add-import, --remove-import.
15130         (func_usage): Document them.
15131         (have_associative): Define always.
15132         (func_import): In import mode, don't merge the specified settings with
15133         the cached settings. Implement remove-import mode.
15134         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
15135         Explain when to use them versus --import.
15136         (Simple update): Use --add-import instead of --import.
15137         * NEWS: Mention the change.
15138
15139 2010-09-04  Bruno Haible  <bruno@clisp.org>
15140
15141         * doc/gnulib-tool.texi (Initial import): Update paragraph about
15142         separate gnulib.mk.
15143
15144 2010-09-04  Bruno Haible  <bruno@clisp.org>
15145
15146         gnulib-tool: Don't talk about CVS any more.
15147         * gnulib-tool (func_usage, func_import): Write "version control"
15148         instead of CVS.
15149
15150 2010-09-04  Jim Meyering  <meyering@redhat.com>
15151
15152         maint.mk: avoid obscure sc_copyright_check failure in coreutils
15153         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
15154         false positives (whose names may be ill-chosen) when searching
15155         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
15156         would cause a false-positive.
15157
15158         avoid coreutils "make distcheck" failure
15159         Coreutils tests with an absolute build directory name that contains
15160         a space.  Not quoting this directory name caused a failure.
15161         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
15162         * tests/test-vc-list-files-cvs.sh: Likewise.
15163
15164 2010-09-04  Bruno Haible  <bruno@clisp.org>
15165
15166         gnulib-tool: Avoid error when run in a package without Makefile.am.
15167         * gnulib-tool: When collecting the m4dirs in a package that does not
15168         have a Makefile.am, eliminate those directories that contain no
15169         gnulib-cache.m4. Fix expression that counts these directories.
15170
15171 2010-09-04  Bruno Haible  <bruno@clisp.org>
15172
15173         update-copyright test: Improve output when perl is missing or too old.
15174         * tests/test-update-copyright.sh: Move test of Perl version down after
15175         the test whether Perl exists. Provide an explanation relating Perl's
15176         error message to Automake's SKIP: message.
15177
15178 2010-09-04  Bruno Haible  <bruno@clisp.org>
15179
15180         Don't augment PATH in TESTS_ENVIRONMENT.
15181         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
15182         set abs_aux_dir instead of augmenting PATH.
15183         * modules/vc-list-files-tests (Makefile.am): Likewise.
15184         * tests/test-update-copyright.sh: Augment PATH here.
15185         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
15186         path_prepend_.
15187         * tests/test-vc-list-files-git.sh: Likewise.
15188
15189 2010-09-04  Jim Meyering  <meyering@redhat.com>
15190
15191         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
15192         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
15193
15194 2010-09-04  Bruno Haible  <bruno@clisp.org>
15195
15196         strdup: Fix compilation error in C++ mode.
15197         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
15198         the macro.
15199
15200 2010-09-04  Bruno Haible  <bruno@clisp.org>
15201
15202         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
15203         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
15204         macro into a function.
15205         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
15206
15207 2010-09-04  Bruno Haible  <bruno@clisp.org>
15208
15209         Set PATH_SEPARATOR the same way autoconf does.
15210         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
15211         the value of PATH_SEPARATOR the same way autoconf-generated configure
15212         scripts do.
15213         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
15214         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
15215
15216 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
15217
15218         Set PATH_SEPARATOR the same way autoconf does.
15219         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
15220         the same way autoconf-generated configure scripts do.
15221         * posix-modules: Likewise.
15222
15223 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
15224
15225         hash: fix safe_hasher const typo
15226         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
15227         const; otherwise, there is a type error later.
15228
15229 2010-09-02  Jim Meyering  <meyering@redhat.com>
15230
15231         test-update-copyright.sh: require perl 5.8.0
15232         * tests/test-update-copyright.sh: Require 5.8.0,
15233         which Tom G. Christensen has confirmed is adequate,
15234         while 5.6.1 is not.
15235
15236 2010-09-02  Eric Blake  <eblake@redhat.com>
15237
15238         tests: init.sh improvements for re-exec'ing with zsh
15239         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
15240         -vx through shell re-exec.
15241         Reported by Tom G. Christensen.
15242
15243         wctype: fix typo in previous commit
15244         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
15245         Reported by Ludovic Courtès.
15246
15247 2010-09-02  Jim Meyering  <meyering@redhat.com>
15248
15249         test-update-copyright.sh: skip test if Perl is too old
15250         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
15251         Reported by Tom G. Christensen.
15252
15253 2010-09-02  Bruno Haible  <bruno@clisp.org>
15254
15255         wctype: Avoid compilation error on IRIX 6.5.30.
15256         * lib/wctype.in.h (iswblank): Declare with a replacement if
15257         REPLACE_ISWBLANK is set.
15258         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
15259         declared. Set REPLACE_ISWBLANK.
15260         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
15261         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
15262         * doc/posix-headers/wctype.texi: Likewise.
15263         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15264
15265 2010-09-01  Bruno Haible  <bruno@clisp.org>
15266
15267         New module 'socketlib'.
15268         * modules/socketlib: New file.
15269         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
15270         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
15271         * modules/sockets (Depends-on): Add socketlib.
15272         Suggested by Sam Steingold <sds@gnu.org>.
15273
15274 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
15275
15276         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
15277
15278         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
15279         when one needs search access to a directory but not read access.
15280         On systems where it is available, it works in some cases where
15281         O_RDONLY does not, namely on directories that are searchable but
15282         not readable, and which need only to be searchable.  If O_SEARCH
15283         is not available, fall back to the traditional method of using
15284         O_RDONLY.
15285
15286         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
15287         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
15288         when opening a directory that needs only to be searchable.
15289         * lib/chdir-safer.c (chdir_no_follow): Likewise.
15290         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
15291         * lib/openat-proc.c (openat_proc_name): Likewise.
15292         * lib/openat.c (openat_needs_fchdir): Likewise.
15293         * lib/save-cwd.c (save_cwd): Likewise.
15294         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
15295
15296 2010-08-28  Bruno Haible  <bruno@clisp.org>
15297
15298         New module 'host-cpu-c-abi'.
15299         * modules/host-cpu-c-abi: New file.
15300         * m4/host-cpu-c-abi.m4: New file, based on part of
15301         clisp/src/m4/general.m4.
15302         Requested by Sam Steingold <sds@gnu.org>.
15303
15304 2010-08-31  Eric Blake  <eblake@redhat.com>
15305         and Jim Meyering  <meyering@redhat.com>
15306
15307         hash: factor, and guard against misbehaving hasher function
15308         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
15309         of table->hasher's return value.  Also protect against a hash value
15310         so large that adding it to table->bucket results in a NULL pointer.
15311         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
15312         Use it in place of open-coded check-and-abort.
15313
15314 2010-08-30  Bruno Haible  <bruno@clisp.org>
15315
15316         hash: silence spurious clang warning
15317         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
15318         Reported by Eric Blake.
15319
15320 2010-08-30  Eric Blake  <eblake@redhat.com>
15321
15322         strstr, memmem, strcasestr: avoid leaked shell message
15323         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
15324         FreeBSD.
15325         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
15326         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
15327
15328         tests: silence clang warning
15329         * tests/test-malloca.c (do_allocation): Avoid dead store.
15330
15331 2010-08-29  Bruno Haible  <bruno@clisp.org>
15332
15333         gettext: Fix recent mistake.
15334         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
15335
15336 2010-08-29  Bruno Haible  <bruno@clisp.org>
15337
15338         selinux-h: Offer a --without-selinux option.
15339         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
15340         --without-selinux was specified, skip all tests and define
15341         HAVE_SELINUX_SELINUX_H to 0.
15342         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
15343         set LIB_SELINUX to empty.
15344         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
15345         gl_LIBSELINUX. If --without-selinux was specified, replace
15346         selinux/context.h.
15347         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
15348
15349 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15350             Bruno Haible  <bruno@clisp.org>
15351
15352         Make the module 'realloc-gnu' work again on AIX and OSF/1.
15353         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
15354         of HAVE_REALLOC.
15355         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
15356         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
15357         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
15358         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
15359
15360 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15361             Bruno Haible  <bruno@clisp.org>
15362
15363         Make the module 'calloc-gnu' work again on AIX and OSF/1.
15364         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
15365         HAVE_CALLOC.
15366         * lib/xmalloc.c: Update accordingly.
15367         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
15368         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
15369         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
15370
15371 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15372             Bruno Haible  <bruno@clisp.org>
15373
15374         Make the module 'malloc-gnu' work again on AIX and OSF/1.
15375         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
15376         HAVE_MALLOC.
15377         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
15378         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
15379         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
15380
15381 2010-08-29  Bruno Haible  <bruno@clisp.org>
15382
15383         Update modules list.
15384         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
15385         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
15386         (String handling <string.h>): Add astrxfrm.
15387         (File system functions): Add readlinkat.
15388
15389 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15390
15391         Tests for module 'realloc-gnu'.
15392         * modules/realloc-gnu-tests: New file.
15393         * tests/test-realloc-gnu.c: New file.
15394
15395         Tests for module 'calloc-gnu'.
15396         * modules/calloc-gnu-tests: New file.
15397         * tests/test-calloc-gnu.c: New file.
15398
15399         Tests for module 'malloc-gnu'.
15400         * modules/malloc-gnu-tests: New file.
15401         * tests/test-malloc-gnu.c: New file.
15402
15403 2010-08-28  Bruno Haible  <bruno@clisp.org>
15404
15405         Rename module 'realloc' -> 'realloc-gnu'.
15406         * modules/realloc-gnu: New file, copied from modules/realloc.
15407         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
15408         obsolete.
15409         * modules/mgetgroups (Depends-on): Update.
15410         * doc/posix-functions/realloc.texi: Update.
15411         * NEWS: Mention the change.
15412
15413         Rename module 'calloc' -> 'calloc-gnu'.
15414         * modules/calloc-gnu: New file, copied from modules/calloc.
15415         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
15416         obsolete.
15417         * doc/posix-functions/calloc.texi: Update.
15418         * NEWS: Mention the change.
15419
15420         Rename module 'malloc' -> 'malloc-gnu'.
15421         * modules/malloc-gnu: New file, copied from modules/malloc.
15422         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
15423         obsolete.
15424         * modules/argp (Depends-on): Update.
15425         * modules/regex (Depends-on): Update.
15426         * doc/posix-functions/malloc.texi: Update.
15427         * NEWS: Mention the change.
15428
15429 2010-08-28  Eric Blake  <eblake@redhat.com>
15430
15431         pread, pwrite: add missing dependency
15432         * modules/pread (Depends-on): Add extensions.
15433         * modules/pwrite (Depends-on): Likewise.
15434
15435 2010-08-28  Bruno Haible  <bruno@clisp.org>
15436
15437         unistr/u*-strchr: Fix tests dependencies.
15438         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
15439         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
15440         Reported by Ian Beckwith <ianb@erislabs.net>.
15441
15442 2010-08-28  Bruno Haible  <bruno@clisp.org>
15443
15444         read-file: Don't occupy too much unused memory.
15445         * lib/read-file.c (fread_file): Shrink the buffer at the end.
15446
15447 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
15448             Eric Blake  <eblake@redhat.com>
15449             Bruno Haible  <bruno@clisp.org>
15450
15451         read-file: Avoid memory reallocations with regular files.
15452         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
15453         (fread_file): With regular files, use the remaining length as the
15454         initial buffer size.  Check against overflow.
15455         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
15456         sys_stat.
15457
15458 2010-08-28  Bruno Haible  <bruno@clisp.org>
15459
15460         ftello: Relax license.
15461         * modules/ftello (License): Relax to LGPLv2+.
15462         Reported by Eric Blake.
15463
15464 2010-08-28  Bruno Haible  <bruno@clisp.org>
15465
15466         Avoid relocwrapper link errors due to gnulib replacement functions.
15467         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
15468         function.
15469         Reported by Ben Pfaff <blp@cs.stanford.edu>.
15470
15471 2010-08-28  Bruno Haible  <bruno@clisp.org>
15472
15473         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
15474         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
15475         defined.
15476         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
15477         Suggested by Eric Blake.
15478
15479 2010-08-28  Bruno Haible  <bruno@clisp.org>
15480
15481         sys_socket, netdb: Ensure socklen_t gets defined.
15482         * modules/sys_socket (Depends-on): Add socklen.
15483         * modules/netdb (Depends-on): Likewise.
15484         * modules/getaddrinfo (Depends-on): Remove socklen.
15485         * modules/getsockopt (Depends-on): Likewise.
15486         * modules/setsockopt (Depends-on): Likewise.
15487         * tests/test-sys_socket.c: Check that socklen_t is defined.
15488         * tests/test-netdb.c: Likewise.
15489         * m4/socklen.m4: Update comments.
15490         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
15491
15492 2010-08-27  Eric Blake  <eblake@redhat.com>
15493
15494         login_tty: add missing dependency
15495         * modules/login_tty (Depends-on): Add pty.
15496
15497 2010-08-26  Eric Blake  <eblake@redhat.com>
15498
15499         lib-symbol-versions: fix m4 quoting
15500         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
15501         format for AC_LINK_IFELSE.
15502
15503         glob: fix compile test
15504         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
15505
15506         btowc: fix missing file
15507         * modules/btowc (Files): Also ship locale-fr.m4.
15508
15509         lseek: fix link test
15510         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
15511         AC_LINK_IFELSE.
15512
15513         include_next: silence autoconf 2.68 warning
15514         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
15515         AC_COMPILE_IFELSE as special.
15516         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
15517         autoconf < 2.68.
15518
15519         acl: fix compilation test
15520         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
15521         AC_COMPILE_IFELSE.
15522
15523 2010-08-26  Bruno Haible  <bruno@clisp.org>
15524
15525         Modernize AC_TRY_RUN invocations.
15526         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
15527         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
15528         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
15529         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
15530         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
15531         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
15532         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
15533         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
15534         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
15535         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
15536         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
15537         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
15538         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
15539         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
15540         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
15541         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
15542         gl_MBRLEN_NUL_RETVAL): Likewise.
15543         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
15544         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
15545         Likewise.
15546         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
15547         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
15548         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
15549         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
15550         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
15551         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
15552         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
15553         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
15554         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
15555         Likewise.
15556         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
15557         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
15558         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
15559         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
15560         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
15561         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
15562         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
15563         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
15564         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
15565         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
15566
15567 2010-08-26  Bruno Haible  <bruno@clisp.org>
15568
15569         Modernize AC_TRY_LINK invocations.
15570         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
15571         AC_TRY_LINK.
15572         * m4/argp.m4 (gl_ARGP): Likewise.
15573         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
15574         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
15575         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
15576         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
15577         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
15578         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
15579         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
15580         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
15581         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
15582         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
15583         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
15584         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
15585         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
15586         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
15587         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
15588         * m4/hostent.m4 (gl_HOSTENT): Likewise.
15589         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
15590         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
15591         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
15592         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
15593         Likewise.
15594         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
15595         Likewise.
15596         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
15597         Likewise.
15598         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
15599         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
15600         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
15601         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
15602         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
15603         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
15604         * m4/servent.m4 (gl_SERVENT): Likewise.
15605         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
15606         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
15607         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
15608         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
15609         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
15610         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
15611         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
15612         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
15613         * modules/tsearch-tests (configure.ac): Likewise.
15614
15615 2010-08-26  Bruno Haible  <bruno@clisp.org>
15616
15617         Modernize AC_TRY_COMPILE invocations.
15618         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
15619         AC_TRY_COMPILE.
15620         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
15621         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
15622         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
15623         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
15624         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
15625         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
15626         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
15627         * m4/lock.m4 (gl_LOCK): Likewise.
15628         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
15629         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
15630         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
15631         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
15632         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
15633         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
15634         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
15635         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
15636         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
15637         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
15638         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
15639         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
15640         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
15641         extraneous semicolon.
15642
15643 2010-08-26  Jim Meyering  <meyering@redhat.com>
15644
15645         stat-time: relax license LGPL
15646         * modules/stat-time (License): Change from GPL to LGPL,
15647         with consent from all contributors, for use in libguile.
15648         Requested by Ludovic Courtès.
15649
15650 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
15651
15652         poll: return immediately on POLLHUP.
15653         * lib/poll.c (poll): Always set timeout before wait_timeout is
15654         computed.
15655
15656 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15657
15658         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
15659         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
15660         rmdir ("dir/.//"), unlinkat.
15661
15662 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
15663
15664         stdbool: avoid spurious failure with modern xlc
15665         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
15666
15667 2010-08-24  Bruno Haible  <bruno@clisp.org>
15668
15669         getloadavg: simplify code
15670         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
15671         gl_have_func. Update comments.
15672
15673 2010-08-24  Eric Blake  <eblake@redhat.com>
15674
15675         getloadavg: don't define SVR4 on cygwin
15676         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
15677         only define SVR4 when -lkvm is required.
15678         Reported by Yaakov Selkowitz.
15679
15680 2010-08-24  Bruno Haible  <bruno@clisp.org>
15681
15682         priv-set: fix comment
15683         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
15684
15685 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
15686
15687         priv-set: fix comments
15688         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
15689         to match code, as suggested by David Bartley in:
15690         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
15691
15692 2010-08-23  Eric Blake  <eblake@redhat.com>
15693
15694         stdbool: avoid rejecting clang
15695         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
15696         * tests/test-stdbool.c: Enable more tests if using the system
15697         <stdbool.h> instead of the gnulib replacement.
15698         (main): Move xlc bug test to a runtime test for all compilers.
15699         Reported by Anders Kaseorg.
15700
15701         argz: fix shell quoting issue
15702         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
15703         Reported by Charles Wilson.
15704
15705 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
15706             Erik Faye-Lund <kusmabite@gmail.com>
15707
15708         poll, select: handle ERROR_BROKEN_PIPE.
15709         * lib/poll.c (win32_compute_revents): Return POLLHUP when
15710         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
15711         * lib/select.c (win32_compute_revents): Do not mark a pipe
15712         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
15713
15714 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
15715
15716         fts: allow compilation with C++
15717         * lib/fts_.h: Specify extern "C" linkage with C++.
15718
15719 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15720
15721         Fix gnulib-tool sed script de-commentation for AIX sed.
15722         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
15723         sed.
15724
15725 2010-08-17  Eric Blake  <eblake@redhat.com>
15726
15727         test-stddef: test for (some) offsetof bugs
15728         * tests/test-stddef.c: Enhance test to ensure correct type of
15729         offsetof.
15730         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
15731         that we are not fixing at this time.
15732
15733 2010-08-15  Bruno Haible  <bruno@clisp.org>
15734
15735         stpncpy: Allow stpncpy to be defined as a macro.
15736         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
15737         if it's already correctly declared.
15738         * lib/string.in.h (stpncpy): Undefine before redefining.
15739         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
15740
15741 2010-08-14  Bruno Haible  <bruno@clisp.org>
15742
15743         Rename module 'memxfrm' to 'amemxfrm'.
15744         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
15745         (amemxfrm): Renamed from memxfrm.
15746         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
15747         (amemxfrm): Renamed from memxfrm.
15748         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
15749         * NEWS: Mention the change.
15750         * MODULES.html.sh (String handling <string.h>): Update.
15751         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
15752         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
15753         * lib/unicase/u16-casexfrm.c: Likewise.
15754         * lib/unicase/u32-casexfrm.c: Likewise.
15755         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
15756         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
15757         * lib/uninorm/u16-normxfrm.c: Likewise.
15758         * lib/uninorm/u32-normxfrm.c: Likewise.
15759         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
15760         memxfrm.
15761         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
15762         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
15763         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
15764         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
15765         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
15766         Suggested by Paul Eggert.
15767
15768 2010-08-14  Bruno Haible  <bruno@clisp.org>
15769
15770         Tests for module 'astrxfrm'.
15771         * modules/astrxfrm-tests: New file.
15772         * tests/test-astrxfrm.c: New file.
15773
15774         New module 'astrxfrm'.
15775         * lib/astrxfrm.h: New file.
15776         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
15777         * modules/astrxfrm: New file.
15778
15779 2010-08-14  Reuben Thomas <rrt@sc3d.org>
15780
15781         regex: Tweak doc.
15782         * doc/regex.texi (Overview): Don't mention regex.c.
15783         (GNU Regular Expression Compiling): Likewise.
15784         (Match-end-of-line Operator): Mention 'not_eol'.
15785
15786 2010-08-14  Brian Gough  <bjg@gnu.org>
15787             Bruno Haible  <bruno@clisp.org>
15788
15789         git-merge-changelog: add doc relating to use with bzr and hg.
15790         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
15791
15792 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
15793
15794         pthread: fix pthread.h creation for srcdir != builddir
15795         * modules/pthread (Makefile.am): Fix the rule to work also in a
15796         non-srcdir build.
15797
15798 2010-08-13  Karl Berry  <karl@gnu.org>
15799
15800         * doc/regex.texi (Predefined Syntaxes): @smallexample.
15801         * doc/posix-*/*: force line break before @url of POSIX
15802         specifications.
15803         Suggested by Werner Lemberg.
15804
15805 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
15806
15807         strtod: fix const diagnostic
15808         * lib/strtod.c (strtod): Don't assign const char * to char *,
15809         as this elicits a warning from GCC when warnings are enabled.
15810
15811 2010-08-10  Pádraig Brady <P@draigbrady.com>
15812         and Eric Blake  <eblake@redhat.com>
15813
15814         copy-acl: ignore ENOTSUP on HP-UX
15815         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
15816         so that it is available for HP-UX.
15817         * lib/copy-acl.c (qcopy_acl): Use it.
15818         Reported by Patrick M. Callahan.
15819
15820 2010-08-10  Eric Blake  <eblake@redhat.com>
15821
15822         open, chown: relax license
15823         * modules/open (License): Change to LGPLv2+, with consent by all
15824         authors, for use in augeas.
15825         * modules/chown (License): Likewise.
15826         * modules/lchown (Likewise): Likewise.
15827         Requested by Adam Stokes.
15828
15829 2010-08-09  Karl Berry  <karl@gnu.org>
15830
15831         * build-aux/ar-lib: new file, import from Automake.
15832         * config/srclist.txt: autocheck for updates.
15833
15834 2010-08-09  Eric Blake  <eblake@redhat.com>
15835
15836         readlinkat: adjust client modules
15837         * modules/areadlinkat (Depends-on): Use readlinkat, not
15838         symlinkat.
15839         * modules/areadlinkat-with-size (Depends-on): Likewise.
15840
15841         mknod: be more vocal about danger of running tests as root
15842         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
15843         root, since that is just asking for problems.
15844         Suggested by Bruno Haible, based on a report by Rainer Tammer.
15845
15846         readlinkat: split into its own module
15847         * modules/symlinkat: Split readlinkat...
15848         * modules/readlinkat: ...into separate module.
15849         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
15850         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
15851         * lib/symlinkat.c (readlinkat): Move...
15852         * lib/readlinkat.c: ...into new file.
15853         * modules/symlinkat-tests: Split readlinkat test...
15854         * modules/readlinkat-tests: ...into separate module.
15855         * tests/test-symlinkat.c: Split...
15856         * tests/test-readlinkat.c: ...into new file.
15857         * NEWS: Document the split.
15858         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
15859         * lib/unistd.in.h (readlinkat): Likewise.
15860         Suggested by Bruno Haible.
15861
15862 2010-08-08  Bruno Haible  <bruno@clisp.org>
15863
15864         memxfrm: Speed up.
15865         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
15866         that usually only one call to strxfrm is necessary for each string
15867         part.
15868         Reported by Paul Eggert <eggert@cs.ucla.edu>.
15869
15870 2010-08-07  Karl Berry  <karl@gnu.org>
15871
15872         * doc/posix-headers/limits.texi,
15873         * doc/posix-functions/malloc.texi,
15874         * doc/posix-functions/strsignal.texi: missing @item.
15875         * doc/ld-version-script.texi: spurious leading i.
15876         * doc/regex.texi (Interval Operators): no commas inside @var.
15877
15878 2010-08-01  Bruno Haible  <bruno@clisp.org>
15879
15880         Integrate the regex documentation.
15881         * doc/gnulib.texi: Define 'cn' index.
15882         (Regular expressions): New a chapter that includes regex.texi and
15883         regexprops-generic.texi.
15884         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
15885         syntax.
15886
15887         Whitespace cleanup.
15888         * doc/regex.texi: Remove trailing spaces.
15889
15890         Add regex documentation.
15891         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
15892         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
15893         Written by Kathy A. Hargreaves and Karl Berry.
15894
15895 2010-08-01  Bruno Haible  <bruno@clisp.org>
15896
15897         link: Update documentation.
15898         * doc/posix-functions/link.texi: Update regarding Solaris.
15899
15900 2010-07-31  Bruno Haible  <bruno@clisp.org>
15901
15902         Update modules list.
15903         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
15904         (String handling <string.h>): Add memcmp2, memxfrm.
15905         (Container data structures): Add xlist, xsublist, xoset.
15906         (Core language properties): Add alignof, unused-parameter.
15907         (Process control, Numeric conversion functions <stdlib.h>): Renamed
15908         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
15909         (Unibyte characters <ctype.h>): New section.
15910         (String handling <string.h>): New section.
15911         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
15912         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
15913         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
15914         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
15915         tan, tanh, tanl, y0, y1, yn.
15916         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
15917         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
15918         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
15919         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
15920         unlockpt, vdprintf, vdprintf-posix.
15921         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
15922         (File system functions): Add concat-filename, sys_file, sys_ioctl,
15923         xconcat-filename.
15924         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
15925         getdtablesize, pipe2, pipe2-safer.
15926         (Security): New section.
15927         (Networking functions): Add accept4.
15928         (Signal handling): Add sigpipe.
15929         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
15930         mbmemcasecoll.
15931         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
15932         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
15933         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
15934         pipe-filter-ii.
15935         (Misc): Add argp-version-etc, login_tty, parse-duration.
15936
15937 2010-07-31  Bruno Haible  <bruno@clisp.org>
15938
15939         Improve doc in MODULES.html.
15940         * modules/linkat (Description): Add the word "function".
15941         * modules/mkfifo (Description): Likewise.
15942         * modules/mknod (Description): Likewise.
15943         * modules/remove (Description): Likewise.
15944         * modules/renameat (Description): Likewise.
15945         * modules/stat (Description): Likewise.
15946         * modules/symlink (Description): Likewise.
15947         * modules/unlink (Description): Likewise.
15948
15949 2010-07-31  Bruno Haible  <bruno@clisp.org>
15950
15951         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
15952         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
15953         option --enable/disable-c++ instead of --enable/disable-cxx.
15954         * NEWS: Mention the change.
15955
15956 2010-07-31  Bruno Haible  <bruno@clisp.org>
15957
15958         readlink, areadlink: Relax test a bit.
15959         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
15960         alternative to ENOTDIR.
15961         * tests/test-areadlink.h (test_areadlink): Likewise.
15962         Reported by Rainer Tammer.
15963
15964 2010-07-31  Bruno Haible  <bruno@clisp.org>
15965
15966         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
15967         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
15968         character, perform the search using U_STRCHR.
15969         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
15970         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
15971         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
15972         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
15973         Suggested by Paolo Bonzini.
15974
15975 2010-07-31  Bruno Haible  <bruno@clisp.org>
15976
15977         unistr/u*-strstr: Fix dependencies.
15978         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
15979         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
15980         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
15981
15982 2010-07-31  Bruno Haible  <bruno@clisp.org>
15983
15984         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
15985         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
15986         the beginning of the loop.
15987         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
15988         cases in 'switch' statement.
15989
15990         unistr/u8-strchr: Fix several bugs.
15991         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
15992         the string. When not found, return NULL, not a pointer near the end.
15993
15994         More tests for unistr/u8-strchr.
15995         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
15996         that the function does not read past the first occurrence of the byte
15997         being searched.
15998         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
15999         * tests/unistr/test-u16-strchr.c (main): New function.
16000         * tests/unistr/test-u32-strchr.c (main): New function.
16001
16002 2010-07-31  Bruno Haible  <bruno@clisp.org>
16003
16004         posix-modules: Ignore backup files of documentation files.
16005         * posix-modules: grep only through files named *.texi.
16006
16007 2010-07-31  Bruno Haible  <bruno@clisp.org>
16008
16009         symlinkat: Fix documentation.
16010         * doc/posix-functions/readlinkat.texi: Fix module name.
16011
16012 2010-07-31  Bruno Haible  <bruno@clisp.org>
16013
16014         fchownat: Replace also when chown has the trailing slash bug.
16015         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
16016         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
16017         introduced on 2010-04-10.
16018         Reported by Rainer Tammer.
16019
16020 2010-07-31  Bruno Haible  <bruno@clisp.org>
16021
16022         linkat: Work around AIX 7.1 bug.
16023         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
16024         whether linkat handles trailing slash correctly. If not, replace linkat
16025         and define LINKAT_TRAILING_SLASH_BUG.
16026         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
16027         check whether (fd1,file1) points to a directory if file1 or file2 ends
16028         in a slash. Code taken from lib/link.c.
16029         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
16030         Reported by Rainer Tammer.
16031
16032 2010-07-31  Bruno Haible  <bruno@clisp.org>
16033
16034         Correctly determine whether pow is available in libc on AIX 7 with xlc.
16035         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
16036         This disables an xlc optimization that was causing wrong test results.
16037         Reported by Rainer Tammer.
16038
16039 2010-07-31  Bruno Haible  <bruno@clisp.org>
16040
16041         iconv: Work around AIX 6.1..7.1 bug.
16042         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
16043         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
16044         cross-compiling, guess no on all versions of AIX.
16045         Reported by Rainer Tammer.
16046
16047 2010-07-31  Bruno Haible  <bruno@clisp.org>
16048
16049         readlink: Relax test a bit.
16050         * tests/test-readlink.h (test_readlink): Allow different errno value
16051         when readlink is called with a file name that ends in / and refers to
16052         a file.
16053         Suggested by Eric Blake.
16054         Reported by Rainer Tammer.
16055
16056 2010-07-31  Bruno Haible  <bruno@clisp.org>
16057
16058         copysign: Does not require -lm on glibc systems.
16059         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
16060         gl_COMMON_DOUBLE_MATHFUNC.
16061         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
16062
16063 2010-07-31  Bruno Haible  <bruno@clisp.org>
16064
16065         duplocale: Work around AIX 7.1 bug.
16066         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
16067         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
16068         * lib/duplocale.c (rpl_duplocale): Update comment.
16069         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
16070         Reported by Rainer Tammer.
16071
16072 2010-07-30  Bruno Haible  <bruno@clisp.org>
16073
16074         dirfd: Avoid link error on AIX 7.1.
16075         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
16076         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
16077         exist, set REPLACE_DIRFD.
16078         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
16079         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
16080         * doc/posix-functions/dirfd.texi: Update.
16081         Reported by Rainer Tammer.
16082
16083 2010-07-30  Eric Blake  <eblake@redhat.com>
16084
16085         strtod: next round of AIX fixes
16086         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
16087         exponent.
16088         * tests/test-strtod.c (main): Enhance tests.
16089         * doc/posix-functions/strtod.texi (strtod): Document next bug.
16090         Reported by Rainer Tammer.
16091
16092         futimens: fix configure check
16093         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
16094         Reported by Bruno Haible.
16095
16096 2010-07-30  Bruno Haible  <bruno@clisp.org>
16097
16098         getline: Update regarding AIX.
16099         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
16100         Reported by Rainer Tammer.
16101
16102 2010-07-30  Bruno Haible  <bruno@clisp.org>
16103
16104         wcwidth: Drop replacement on AIX 7.
16105         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
16106         AIX 7.
16107         Reported by Rainer Tammer.
16108
16109 2010-07-30  Bruno Haible  <bruno@clisp.org>
16110
16111         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
16112         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
16113         a 'char *'.
16114         Reported by Rainer Tammer.
16115
16116 2010-07-30  Bruno Haible  <bruno@clisp.org>
16117
16118         unlink: Update regarding AIX.
16119         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
16120         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
16121         Reported by Rainer Tammer.
16122
16123 2010-07-30  Bruno Haible  <bruno@clisp.org>
16124
16125         symlink: Update regarding AIX.
16126         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
16127         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
16128         Reported by Rainer Tammer.
16129
16130 2010-07-30  Bruno Haible  <bruno@clisp.org>
16131
16132         strndup: Update regarding AIX.
16133         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
16134         AIX 7.
16135         Reported by Rainer Tammer.
16136
16137 2010-07-30  Bruno Haible  <bruno@clisp.org>
16138
16139         stat: Update regarding AIX.
16140         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
16141         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
16142         Reported by Rainer Tammer.
16143
16144 2010-07-30  Bruno Haible  <bruno@clisp.org>
16145
16146         truncl: Fix autoconf test.
16147         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
16148         whether truncl works.
16149         Reported by Rainer Tammer.
16150
16151 2010-07-30  Bruno Haible  <bruno@clisp.org>
16152
16153         round: Update regarding AIX.
16154         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
16155         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
16156         Reported by Rainer Tammer.
16157
16158 2010-07-30  Bruno Haible  <bruno@clisp.org>
16159
16160         rename: Update regarding AIX.
16161         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
16162         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
16163         Reported by Rainer Tammer.
16164
16165 2010-07-30  Bruno Haible  <bruno@clisp.org>
16166
16167         printf.m4: Update regarding AIX.
16168         * m4/printf.m4: Update comments regarding AIX.
16169         Reported by Rainer Tammer.
16170
16171 2010-07-30  Bruno Haible  <bruno@clisp.org>
16172
16173         iconv: Update regarding AIX.
16174         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
16175         AIX 7.
16176         Reported by Rainer Tammer.
16177
16178 2010-07-30  Bruno Haible  <bruno@clisp.org>
16179
16180         getopt: Update regarding AIX.
16181         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
16182         no on AIX.
16183         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
16184         Reported by Rainer Tammer.
16185
16186 2010-07-30  Bruno Haible  <bruno@clisp.org>
16187
16188         ldexpl; Update regarding AIX.
16189         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
16190         on AIX 7.
16191         Reported by Rainer Tammer.
16192
16193 2010-07-30  Bruno Haible  <bruno@clisp.org>
16194
16195         frexpl: Update regarding AIX.
16196         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
16197         on AIX 7.
16198         Reported by Rainer Tammer.
16199
16200 2010-07-30  Bruno Haible  <bruno@clisp.org>
16201
16202         open, fopen: Update regarding AIX.
16203         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
16204         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
16205         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
16206         * doc/posix-functions/fopen.texi: Likewise.
16207         Reported by Rainer Tammer.
16208
16209 2010-07-30  Bruno Haible  <bruno@clisp.org>
16210
16211         chown: Update doc regarding AIX.
16212         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
16213         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
16214         Reported by Rainer Tammer.
16215
16216 2010-07-30  Eric Blake  <eblake@redhat.com>
16217
16218         strtod: fix bug in replacement function on AIX
16219         * lib/strtod.c (strtod): Special case broken "0x" parse in
16220         underlying strtod.
16221         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
16222         * doc/posix-functions/strtod.texi (strtod): Likewise.
16223         Reported by Rainer Tammer.
16224
16225 2010-07-30  Bruno Haible  <bruno@clisp.org>
16226
16227         mbrlen: Fix cross-compilation guess for AIX.
16228         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
16229         guess. Leftover from 2008-12-22.
16230
16231 2010-07-30  Bruno Haible  <bruno@clisp.org>
16232
16233         mbrtowc: Fix cross-compilation guess for AIX.
16234         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
16235         guess. Leftover from 2008-12-21.
16236
16237 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
16238
16239         init.sh: work around trap limitation of some shells
16240         * tests/init.sh (setup_): Move exit trap outside of shell function.
16241
16242 2010-07-29  Eric Blake  <eblake@redhat.com>
16243
16244         strtod: aid debugging
16245         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
16246         understanding why strtod is rejected.
16247
16248 2010-07-28  Bruno Haible  <bruno@clisp.org>
16249
16250         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
16251         * lib/unistr/u8-chr.c: Include <string.h>.
16252         * tests/unistr/test-u8-chr.c: Likewise.
16253         * tests/unistr/test-u16-chr.c: Likewise.
16254         * tests/unistr/test-u32-chr.c: Likewise.
16255         * tests/unistr/test-u8-strchr.c: Likewise.
16256         * tests/unistr/test-u16-strchr.c: Likewise.
16257         * tests/unistr/test-u32-strchr.c: Likewise.
16258         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
16259         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
16260         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
16261         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
16262
16263 2010-07-28  Bruno Haible  <bruno@clisp.org>
16264
16265         Use spaces for indentation, not tabs.
16266         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
16267
16268 2010-07-27  Bruno Haible  <bruno@clisp.org>
16269
16270         mbspcasecmp: Fix function specification.
16271         * lib/string.in.h (mbspcasecmp): Fix specification comment.
16272         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
16273         Reported by Eric Blake <eblake@redhat.com>.
16274
16275 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
16276
16277         timespec: use cast and not conditional, as truncation isn't possible
16278         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
16279         instead of a conditional.  Comment about the situation in more detail.
16280         This undoes most of the 2009-10-29 patch.
16281
16282 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
16283
16284         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
16285         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
16286         * lib/unistr/u8-strchr.c: Likewise.
16287         * modules/unistr/u8-chr: Depend on memchr.
16288
16289         unistr/u*-strchr: add tests
16290         * modules/unistr/u8-strchr-tests: New file.
16291         * modules/unistr/u16-strchr-tests: New file.
16292         * modules/unistr/u32-strchr-tests: New file.
16293         * tests/unistr/test-strchr.h: New file.
16294         * tests/unistr/test-u8-strchr.c: New file.
16295         * tests/unistr/test-u16-strchr.c: New file.
16296         * tests/unistr/test-u32-strchr.c: New file.
16297
16298         unistr/u*-chr: test multibyte sequences more
16299         * tests/unistr/test-chr.h: Do complete testing of the characters in the
16300         test vector.
16301         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
16302         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
16303         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
16304
16305         unistr/u*-chr: test multibyte sequences
16306         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
16307
16308         unistr/u*-chr: prepare for multibyte tests
16309         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
16310         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
16311         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
16312         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
16313         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
16314         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
16315
16316 2010-07-18  Bruno Haible  <bruno@clisp.org>
16317
16318         unistr/u8-strchr: Optimize non-ASCII argument case.
16319         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
16320         because the first byte often matches anyway.
16321         Reported by Pádraig Brady <P@draigbrady.com>.
16322
16323 2010-07-15  Karl Berry  <karl@gnu.org>
16324
16325         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
16326
16327 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
16328
16329         getcwd: on Solaris, work better if ancestors are inaccessible
16330         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
16331         buffer and size, try again with a large buffer.  This works better
16332         on Solaris, since its getcwd succeeds even if the path to the root
16333         is inaccessible, and this is helpful in common cases such as .zfs
16334         hidden directories.  Problem reported by J Chapman Flack in
16335         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
16336         Use system getcwd if it's declared, not merely if it's partly
16337         working; use the partly-working test only to avoid needless effort
16338         if the system getcwd fails.
16339         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
16340         comment that was already obsolete and is now even more obsolete.
16341         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
16342         now might call strdup.
16343
16344 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
16345
16346         pthread: Add enough so that coreutils/src/sort.c compiles.
16347         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
16348         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
16349         gnulib. Include <sched.h> and <time.h>, as per POSIX.
16350         Include <sys/types.h>, in case it defines pthread_t.
16351         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
16352         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
16353         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
16354         (pthread_rwlockattr_t, pthread_spinlock_t):
16355         New typedefs, if HAVE_PTHREAD_T is not defined.
16356         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
16357         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
16358         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
16359         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
16360         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
16361         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
16362         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
16363         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
16364         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
16365         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
16366         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
16367         New macros.
16368         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
16369         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
16370         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
16371         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
16372         (pthread_spin_unlock): New dummy functions.
16373         (pthread_create): Return EAGAIN; don't set errno.
16374         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
16375         require AC_C_INLINE.
16376         * modules/pthread (Depends-on): Add sched, time.
16377         (pthread.h): Use AM_V_GEN.
16378
16379 2010-07-13  Bruno Haible  <bruno@clisp.org>
16380
16381         striconveh: Don't malloc memory if the result buffer is sufficient.
16382         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
16383         buffer if its size is sufficient.
16384         Reported by Ludovic Courtès <ludo@gnu.org>.
16385
16386 2010-07-13  Bruno Haible  <bruno@clisp.org>
16387
16388         strtod: Add safety check.
16389         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
16390
16391 2010-07-12  Bruno Haible  <bruno@clisp.org>
16392
16393         Unify tests that set gl_cv_func_ldexpl_no_libm.
16394         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
16395         gl_FUNC_LDEXPL.
16396         (gl_FUNC_LDEXPL): Invoke it.
16397         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
16398
16399 2010-07-12  Bruno Haible  <bruno@clisp.org>
16400
16401         Unify tests that set gl_cv_func_ldexp_no_libm.
16402         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
16403         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
16404         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
16405         (configure.ac): Simply invoke gl_FUNC_LDEXP.
16406         * modules/strtod (Files): Add m4/ldexp.m4.
16407
16408 2010-07-12  Bruno Haible  <bruno@clisp.org>
16409
16410         Unify tests that set gl_cv_func_frexpl_no_libm.
16411         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
16412         gl_FUNC_FREXPL_NO_LIBM.
16413         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
16414         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
16415
16416 2010-07-12  Bruno Haible  <bruno@clisp.org>
16417
16418         Unify tests that set gl_cv_func_frexp_no_libm.
16419         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
16420         gl_FUNC_FREXP_NO_LIBM.
16421         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
16422         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
16423
16424 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
16425
16426         memcoll: clarify sizes versus lengths, document better, and tweak perf
16427         * lib/memcoll.c (strcoll_loop, memcoll0):
16428         Improve quality of descriptive comments.  Name variables
16429         consistently as to whether they are lengths (which do not include
16430         terminating null) versus sizes (which do).
16431         * lib/xmemcoll.c (xmemcoll0): Likewise.
16432         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
16433         returned when s1size == 0; this is easier to compile and saves
16434         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
16435
16436 2010-07-12  Bruno Haible  <bruno@clisp.org>
16437
16438         Tests for module '_Exit'.
16439         * modules/_Exit-tests: New file.
16440         * tests/test-_Exit.sh: New file.
16441         * tests/test-_Exit.c: New file.
16442
16443         New module '_Exit'.
16444         * lib/stdlib.in.h (__attribute__): New macro.
16445         (_Exit): New declaration.
16446         * lib/_Exit.c: New file.
16447         * m4/_Exit.m4: New file.
16448         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
16449         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
16450         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
16451         * modules/_Exit: New file.
16452         * tests/test-stdlib-c++.cc (_Exit): Check signature.
16453         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
16454
16455 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
16456
16457         strtod: make it more-accurate typically, and don't require libm
16458         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
16459         Include limits.h.  Don't include string.h.
16460         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
16461         (locale_isspace): New function, so that no casts are needed to
16462         check whether *s is a space.
16463         (ldexp): Provide an unused dummy if not available.
16464         (scale_radix_exp, parse_number, underlying_strtod): New functions.
16465         (strtod): Use them.  This implementation prefers to use the
16466         underlying strtod if available, falling back on our own code
16467         only to fix known bugs.  This is more likely to produce an
16468         accurate result.  Also, it avoids the use of libm functions.
16469         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
16470         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
16471         was absent, but it caused a test failure with coreutils.
16472         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
16473         with libm.
16474         * modules/strtod (Makefile.am, Link): libm is no longer needed.
16475         * modules/strtod-tests (Makefile.am): Likewise.
16476
16477 2010-07-11  Pádraig Brady  <P@draigBrady.com>
16478             Bruno Haible  <bruno@clisp.org>
16479
16480         unistr/u8-strchr: Optimize ASCII argument case.
16481         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
16482
16483 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
16484
16485         (x)memcoll: minor tweaks
16486         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
16487         is after the type that it qualifies.
16488         (memcoll0): Likewise.
16489         * lib/memcoll.h (memcoll0): Likewise.
16490         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
16491         * lib/xmemcoll.h (xmemcoll0): Likewise.
16492         * lib/memcoll.c (memcoll0): Correct the comment.  This function
16493         differs from memcoll in that the NUL byte is part of the argument.
16494         Omit the abort-checks, as performance is a real issue here.  Plus,
16495         the checks were wrong anyway (an off-by-one error).  Omit local
16496         variable 'diff', as it's a bit clearer that way.
16497         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
16498         no longer needed.
16499
16500 2010-07-08  Chen Guo <chenguo4@yahoo.com>
16501
16502         (x)memcoll: speedup when input is known to be NUL delimited
16503         * lib/memcoll.c: Include stdlib.
16504         (memcoll0): New function.
16505         (strcoll_loop): New function, refactored for use in both memcoll
16506         and memcoll0.
16507         * lib/memcoll.h (memcoll0): Add prototype.
16508         * lib/xmemcoll.c (xmemcoll0): New function.
16509         (collate_error): New function, refactored for use in both xmemcoll
16510         and xmemcoll0.
16511         * lib/xmemcoll.h (xmemcoll0): Add prototype.
16512         * m4/memcoll.m4: add inline invocation.
16513
16514 2010-07-06  Pádraig Brady  <P@draigBrady.com>
16515
16516         * build-aux/bootstrap: Remove any local translations
16517         from the translation project synchronization directory,
16518         so that local only translations are not distributed.
16519
16520 2010-07-04  Bruno Haible  <bruno@clisp.org>
16521
16522         fsusage: Clarify which code applies to which platforms.
16523         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
16524         platform.
16525         * lib/fsusage.c (get_fs_usage): Likewise.
16526
16527 2010-07-04  Bruno Haible  <bruno@clisp.org>
16528
16529         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
16530         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
16531         Reported by Martin Lambers <marlam@marlam.de>.
16532
16533 2010-07-04  Jim Meyering  <meyering@redhat.com>
16534
16535         hash: once again explicitly disallow insertion of NULL
16536         * lib/hash.c (hash_insert0): Reinstate just-removed test:
16537         inserting a NULL pointer cannot work with these functions.
16538         Add a comment with details.
16539         This reverts part of the 2010-07-01 commit, 5bef1a35
16540         "hash: extend module to deal with non-pointer keys".
16541
16542 2010-07-01  Bruno Haible  <bruno@clisp.org>
16543
16544         stdbool: Update doc.
16545         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
16546         Info from Christian Weisgerber <naddy@mips.inka.de>.
16547
16548 2010-07-01  Jim Meyering  <meyering@redhat.com>
16549
16550         hash: extend module to deal with non-pointer keys
16551         * lib/hash.c (hash_insert0): New interface, much like hash_insert
16552         but that allows insertion of non-pointer entries.
16553         Do not disallow an ENTRY value of NULL.
16554         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
16555         * lib/hash.h (hash_insert0): Declare.
16556
16557 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
16558
16559         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
16560         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
16561         not present (i.e. with autoconf 2.59 and when using gettextize, not
16562         gnulib), require AC_GNU_SOURCE instead.
16563
16564 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
16565
16566         idpriv-drop: Fix tests.
16567         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
16568         not to the test-idpriv-droptemp program.
16569
16570 2010-06-29  Bruno Haible  <bruno@clisp.org>
16571
16572         string: Fix syntax error with g++ 2.96.
16573         * lib/string.in.h (__pure__): Remove definition.
16574         (_GL_ATTRIBUTE_PURE): New macro.
16575         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
16576         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
16577         Reported by Christian Weisgerber <naddy@mips.inka.de>.
16578
16579 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
16580
16581         unitypes: Fix bug introduced on 2010-05-18.
16582         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
16583
16584 2010-06-22  Eric Blake  <eblake@redhat.com>
16585
16586         memmem: slight optimization
16587         * lib/str-two-way.h (critical_factorization): Update comments.
16588         Reduce work during factorization phase.
16589         Reported by Carlos Bueno <carlos@bueno.org>.
16590
16591 2010-06-21  Bruno Haible  <bruno@clisp.org>
16592
16593         Fix HAVE_CALLOC_POSIX misnomer.
16594         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
16595         !HAVE_CALLOC_POSIX.
16596         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
16597         HAVE_CALLOC_POSIX.
16598         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
16599         instead of HAVE_CALLOC_POSIX.
16600         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
16601         HAVE_CALLOC_POSIX.
16602
16603         Use modern idiom for calloc() replacement.
16604         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
16605         AC_FUNC_CALLOC.
16606         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
16607         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
16608         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
16609         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
16610         (gl_REPLACE_CALLOC): New macro.
16611
16612 2010-06-21  Bruno Haible  <bruno@clisp.org>
16613
16614         Fix HAVE_REALLOC_POSIX misnomer.
16615         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
16616         !HAVE_REALLOC_POSIX.
16617         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
16618         HAVE_REALLOC_POSIX.
16619         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
16620         instead of HAVE_REALLOC_POSIX.
16621         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
16622         HAVE_REALLOC_POSIX.
16623
16624         Use modern idiom for realloc() replacement.
16625         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
16626         AC_FUNC_REALLOC.
16627         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
16628         Autoconf's AC_FUNC_REALLOC.
16629         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
16630         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
16631         (gl_REPLACE_REALLOC): New macro.
16632         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
16633
16634 2010-06-21  Bruno Haible  <bruno@clisp.org>
16635
16636         Fix HAVE_MALLOC_POSIX misnomer.
16637         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
16638         !HAVE_MALLOC_POSIX.
16639         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
16640         HAVE_MALLOC_POSIX.
16641         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
16642         instead of HAVE_MALLOC_POSIX.
16643         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
16644         HAVE_MALLOC_POSIX.
16645
16646         Use modern idiom for malloc() replacement.
16647         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
16648         AC_FUNC_MALLOC.
16649         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
16650         Autoconf's AC_FUNC_MALLOC.
16651         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
16652         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
16653         (gl_REPLACE_MALLOC): New macro.
16654         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
16655
16656 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
16657
16658         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
16659         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
16660         This macro takes 3 arguments, not 4.
16661
16662 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
16663
16664         ipv6: fix detection under mingw
16665         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
16666         in6_addr.
16667
16668 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
16669
16670         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
16671         that strtod() works when cross-compiling to a glibc version known
16672         to work.
16673
16674 2010-06-15  Bruno Haible  <bruno@clisp.org>
16675
16676         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
16677
16678 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
16679
16680         select: Correct timeout.
16681         * lib/select.c (rpl_select): Compute wait_timeout correctly.
16682
16683 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
16684
16685         git-version-gen: init shell var to avoid env var influence
16686         * build-aux/git-version-gen (v): Init shell var to empty.
16687
16688 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
16689
16690         priv-set: Don't assume that priv.h exists merely because getppriv does.
16691         See Jan Andersen's bug report about AIX 5L in
16692         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
16693         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
16694         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
16695         * lib/priv-set.h: Likewise.
16696         * tests/test-priv-set.c: Likewise.
16697
16698 2010-06-13  Bruno Haible  <bruno@clisp.org>
16699
16700         relocatable: Make it easier to test whether to install wrappers.
16701         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
16702         RELOCATABLE_VIA_WRAPPER.
16703
16704 2010-06-13  Bruno Haible  <bruno@clisp.org>
16705
16706         gnulib-tool: Display specified modules and dependencies differently.
16707         * gnulib-tool (func_show_module_list): New function.
16708         (func_import, func_create_testdir): Invoke it.
16709         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
16710
16711 2010-06-13  Bruno Haible  <bruno@clisp.org>
16712
16713         gnulib-tool: Align code of func_import and func_create_testdir.
16714         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
16715         specified_modules.
16716
16717 2010-06-12  Jim Meyering  <meyering@redhat.com>
16718
16719         test-inttostr: avoid spurious failure on Solaris 9
16720         * tests/test-inttostr.c (main): Skip the test when snprintf fails
16721         to accept "%ju".  Reported by Bruno Haible.
16722
16723 2010-06-11  Jim Meyering  <meyering@redhat.com>
16724
16725         test-sys_socket: mark variables as used more readably
16726         * tests/test-sys_socket.c (main): Mark otherwise unused variables
16727         as "used" explicitly via (void) statement casts.  This is more
16728         readable than using them in an artificial return expression.
16729         Suggestion from Bruno Haible.
16730
16731 2010-06-11  Bruno Haible  <bruno@clisp.org>
16732
16733         Avoid some more warnings from "gcc -Wwrite-strings".
16734         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
16735         to 'const char *'.
16736         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
16737         * tests/test-c-strcasestr.c (main): Likewise.
16738         * tests/test-mbscasestr1.c (main): Likewise.
16739         * tests/test-mbscasestr2.c (main): Likewise.
16740         * tests/test-memmem.c (main): Likewise.
16741         * tests/test-strstr.c (main): Likewise.
16742         * tests/test-strcasestr.c (main): Likewise.
16743
16744 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16745
16746         init.sh: change framework_failure_ to fail with status 99, not 1
16747         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
16748         automake's parallel-tests rule that this is an unexpected failure,
16749         even if the test is listed in XFAIL_TESTS.
16750
16751 2010-06-11  Jim Meyering  <meyering@redhat.com>
16752
16753         test-inttostr: avoid warnings about 4-6KB literal strings
16754         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
16755         Include "macros.h", for its definition of ASSERT.
16756         (CK): s/assert/ASSERT/
16757         * modules/inttostr-tests (Files): Add macros.h.
16758
16759         init.sh: don't use $ME_ or skip_ before they are defined
16760         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
16761         their first uses.  Also hoist their companions: warn_, fail_,
16762         framework_failure_, $stderr_fileno.  Prompted by a patch from
16763         Stefano Lattarini.
16764
16765         test-sys_socket: avoid set-but-not-used warnings from gcc
16766         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
16767         avoid warning about set-but-not-used variables.
16768
16769         test-xvasprintf: avoid 'const' discard warnings
16770         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
16771         "const" when assigning from literal strings.
16772         (test_xasprintf): Add "void" in function argument list to placate
16773         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
16774
16775         tests: avoid compilation warnings in argmatch and exclude tests...
16776         in packages that define ARGMATCH_DIE_DECL, like coreutils.
16777         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
16778         Since it always exits, declare with the "noreturn" attribute.
16779         * tests/test-argmatch.c: Likewise.
16780
16781         tests: avoid 'const' discard warnings in mbsstr tests
16782         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
16783         * tests/test-mbsstr2.c (main): Likewise.
16784
16785         test-verify: avoid warning from gcc's -Wmissing-declarations
16786         * tests/test-verify.c (function): Declare to be static.
16787
16788         test-inttostr.c: include <string.h> for use of strcmp
16789         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
16790
16791         test-linkat: avoid failed assertion on "other" architectures
16792         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
16793         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
16794         sparc: https://bugs.launchpad.net/bugs/591968
16795
16796 2010-06-11  Jim Meyering  <meyering@redhat.com>
16797
16798         printf.m4: avoid autoconf's "Expanded Before Required" warning
16799         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
16800         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
16801         autoconf warning.
16802
16803 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
16804
16805         Replacement header templates are now named with ".in", not "_".
16806         * doc/gnulib-intro.texi: Correct.
16807
16808 2010-06-10  Jim Meyering  <meyering@redhat.com>
16809
16810         inttostr-tests: depend on snprintf, not snprintf-posix
16811         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
16812         snprintf-posix, to avoid this aclocal failure:
16813           missing file gnulib-tests/vasnprintf.c
16814           configure.ac:45: error: expected source file, required through \
16815           AC_LIBSOURCES, not found
16816
16817 2010-06-10  Jim Meyering  <meyering@redhat.com>
16818
16819         inttostr: add a new function, inttostr, and tests
16820         The namesake function was not available.  The existence of the
16821         template file, inttostr.c makes its addition nontrivial.
16822         * lib/anytostr.c: Rename from inttostr.c.
16823         (anytostr): Rename from inttostr.
16824         * lib/inttostr.c: New file.
16825         * modules/inttostr (Files): Add anytostr.c.
16826         (Makefile.am): Set lib_SOURCES instead of ...
16827         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
16828         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
16829         * lib/offtostr.c: Likewise.
16830         * lib/uinttostr.c: Likewise.
16831         * lib/umaxtostr.c: Likewise.
16832         * modules/inttostr-tests: New file.
16833         * tests/test-inttostr.c: New file.  Test these functions.
16834
16835 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
16836             Bruno Haible  <bruno@clisp.org>
16837
16838         Add "Extending Gnulib" chapter to manual.
16839         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
16840         chapter.
16841         (Extending Gnulib): New chapter.
16842         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
16843         chapter.
16844
16845 2010-06-09  Bruno Haible  <bruno@clisp.org>
16846
16847         Avoid relocwrapper link errors due to gnulib replacement functions.
16848         * lib/areadlink.c: Use the system's malloc, realloc functions.
16849         (areadlink): Set errno to ENOMEM explicitly.
16850         * modules/areadlink (Depends-on): Remove malloc-posix.
16851         Reported by Ben Pfaff <blp@cs.stanford.edu>.
16852
16853 2010-06-09  Bruno Haible  <bruno@clisp.org>
16854
16855         Avoid relocwrapper link errors due to gnulib replacement functions.
16856         * lib/canonicalize-lgpl.c: Use the system's malloc function.
16857         * lib/malloca.c: Likewise.
16858         * lib/relocatable.c: Likewise.
16859         * lib/progreloc.c: Use the system's malloc, sprintf functions.
16860         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
16861         * lib/setenv.c: Use the system's malloc, realloc functions.
16862         * lib/strerror.c: Use the system's sprintf function.
16863         Reported by Ben Pfaff <blp@cs.stanford.edu>.
16864
16865 2010-06-04  Bruno Haible  <bruno@clisp.org>
16866
16867         Prefer documented low-level autoconf macro names.
16868         * m4/lib-link.m4: Use m4_translit instead of translit.
16869         * m4/environ.m4: Likewise.
16870         * m4/mathfunc.m4: Likewise.
16871         * m4/onceonly.m4: Likewise.
16872         * m4/stdint.m4: Likewise.
16873         Suggested by Eric Blake.
16874
16875 2010-06-04  Martin Lambers  <marlam@marlam.de>
16876             Bruno Haible  <bruno@clisp.org>
16877
16878         havelib: Allow library names with '+' characters.
16879         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
16880         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
16881
16882 2010-06-09  Bruno Haible  <bruno@clisp.org>
16883
16884         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
16885         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
16886         realloc failed.
16887
16888 2010-06-08  Peter Simons  <simons@cryp.to>
16889
16890         maint.mk: make the news-check rule more configurable
16891         * top/maint.mk (news-check-lines-spec): New variable.
16892         (news-check): Use "sed -n 1,10p" in place of "head".
16893
16894 2010-06-07  Jim Meyering  <meyering@redhat.com>
16895
16896         do-release-commit-and-tag: fix typo in --help
16897         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
16898
16899         regex: avoid new dead-code warning with gcc-4.6.0
16900         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
16901         if-block containing a while-loop.  It's been unused for at least
16902         5 years.
16903
16904 2010-06-05  Bruno Haible  <bruno@clisp.org>
16905
16906         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
16907         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
16908
16909 2010-06-04  Bruno Haible  <bruno@clisp.org>
16910
16911         Update to GNU gettext 0.18.1.
16912         * modules/gettext (configure.ac): Require gettext infrastructure from
16913         version 0.18.1.
16914
16915 2010-06-03  Bruno Haible  <bruno@clisp.org>
16916
16917         Don't use AC_LIBOBJ with file names in subdirectories.
16918         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
16919         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
16920         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
16921         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
16922         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
16923         gl_LIBUNISTRING_LIBSOURCE.
16924         (Makefile.am): Augment lib_SOURCES here, conditionally.
16925         * NEWS: Drop requirement for Automake option 'subdir-objects'.
16926
16927 2010-06-03  Bruno Haible  <bruno@clisp.org>
16928
16929         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
16930         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
16931         expansion does not end with a newline.
16932         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
16933         unnecessary newline.
16934
16935 2010-06-03  Bruno Haible  <bruno@clisp.org>
16936
16937         Reduce dependencies.
16938         * tests/test-quotearg.h: New file, extracted from
16939         tests/test-quotearg.c.
16940         * tests/test-quotearg-simple.c: New file, extracted from
16941         tests/test-quotearg.c.
16942         * tests/test-quotearg.c: Don't include <ctype.h>.
16943         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
16944         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
16945         use_quote_double_quotes, use_quotearg_colon): Moved to
16946         tests/test-quotearg.h.
16947         (results_g, flag_results, custom_quotes, custom_results): Moved
16948         to tests/test-quotearg-simple.c.
16949         (main): Moved the part that does not depend on gettext to
16950         tests/test-quotearg-simple.c. Return 77 if the test cannot be
16951         performed.
16952         * modules/quotearg-simple: New file.
16953         * modules/quotearg-simple-tests: New file.
16954         * modules/quotearg (Depends-on): Add quotearg-simple.
16955         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
16956         (Files): Add tests/test-quotearg.h.
16957         Reported by Paolo Bonzini.
16958
16959 2010-06-03  Bruno Haible  <bruno@clisp.org>
16960
16961         Reduce dependencies.
16962         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
16963
16964 2010-06-03  Bruno Haible  <bruno@clisp.org>
16965
16966         time: Undefine more broken macros.
16967         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
16968         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
16969         Reported by Eric Blake.
16970
16971 2010-06-03  Bruno Haible  <bruno@clisp.org>
16972
16973         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
16974         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
16975         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
16976         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
16977         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
16978         Reported by Ludovic Courtès <ludo@gnu.org>.
16979
16980 2010-06-02  Eric Blake  <eblake@redhat.com>
16981
16982         time: work with mingw + pthreads-win32 library
16983         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
16984         if timespec is defined only in pthread.h.
16985         * modules/time (Makefile.am): Substitute it.
16986         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
16987         <pthread.h>, when needed.
16988         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
16989         from the library.
16990
16991 2010-05-31  Bruno Haible  <bruno@clisp.org>
16992
16993         Avoid expanding two macros in the wrong order.
16994         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
16995         gl_LIBUNISTRING if it is defined.
16996         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
16997         autoconf >= 2.64.
16998         Reported by Ludovic Courtès <ludo@gnu.org>.
16999
17000 2010-05-27  Jim Meyering  <meyering@redhat.com>
17001
17002         maint.mk: also prohibit "#undef" of always-defined symbols
17003         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
17004         Allow more than one space before the symbol name.
17005         (sc_prohibit_always-defined_macros): Use grep's -E, now that
17006         the regexp uses alternation.
17007
17008 2010-05-26  Eric Blake  <eblake@redhat.com>
17009
17010         maint.mk: avoid echo -e
17011         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
17012         Convert all uses of echo -* to printf.
17013         Reported by Matthias Bolte.
17014
17015 2010-05-25  Bruno Haible  <bruno@clisp.org>
17016
17017         Update to GNU gettext 0.18, part 2.
17018         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
17019         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
17020
17021 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17022
17023         Add missing include in test-pwrite.c.
17024         * tests/test-pwrite.c: Include string.h, for strcmp.
17025
17026 2010-05-24  Bruno Haible  <bruno@clisp.org>
17027
17028         * NEWS: Mention requirement for Automake option 'subdir-objects'.
17029
17030 2010-05-24  Bruno Haible  <bruno@clisp.org>
17031
17032         Don't use conversion with transliteration in u{8,16,32}_strcoll.
17033         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
17034         iconveh_error argument.
17035         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
17036         U_STRCONV_TO_LOCALE.
17037         * lib/unistr/u16-strcoll.c: Likewise.
17038         * lib/unistr/u32-strcoll.c: Likewise.
17039         * modules/unistr/u8-strcoll (Depends-on): Add
17040         uniconv/u8-strconv-to-enc, localcharset. Remove
17041         uniconv/u8-strconv-to-locale.
17042         (configure.ac): Bump version number.
17043         * modules/unistr/u16-strcoll (Depends-on): Add
17044         uniconv/u16-strconv-to-enc, localcharset. Remove
17045         uniconv/u16-strconv-to-locale.
17046         (configure.ac): Bump version number.
17047         * modules/unistr/u32-strcoll (Depends-on): Add
17048         uniconv/u32-strconv-to-enc, localcharset. Remove
17049         uniconv/u32-strconv-to-locale.
17050         (configure.ac): Bump version number.
17051
17052 2010-05-24  Bruno Haible  <bruno@clisp.org>
17053
17054         Avoid a test failure on NetBSD 5.0.
17055         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
17056         an iconv() bug.
17057
17058 2010-05-24  Bruno Haible  <bruno@clisp.org>
17059
17060         Adjust #include directive style.
17061         * modules/regex (Includes): Recommend to write <regex.h>.
17062
17063 2010-05-24  Bruno Haible  <bruno@clisp.org>
17064
17065         regex: Don't require alloca.
17066         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
17067         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
17068         only inside if (0).
17069
17070 2010-05-23  Jim Meyering  <meyering@redhat.com>
17071
17072         test-renameat.c: include <sys/stat.h>
17073         * tests/test-renameat.c: Include <sys/stat.h>; required for
17074         definition of S_IS* macros.
17075
17076 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
17077
17078         Update maintainer documentation for 'relocatable-prog' module.
17079         * doc/relocatable-maint.texi: Update.
17080         Comments by Bruno Haible.
17081
17082 2010-05-23  Bruno Haible  <bruno@clisp.org>
17083
17084         git-merge-changelog: Enable --split-merged-entry by default.
17085         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
17086         (usage): Don't mention this option any more.
17087         Reported by Ralf Wildenhues.
17088
17089 2010-05-23  Jim Meyering  <meyering@redhat.com>
17090
17091         test-pwrite: do not leave behind a test file named "out"
17092         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
17093         The trivial-looking use of init.sh is really necessary.
17094         It ensures that the temporary file, "out", is created in
17095         a temporary directory, and removed upon termination.
17096         * tests/test-pwrite.sh: Re-add file.
17097         * modules/pwrite-tests: Reference it.
17098
17099 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17100
17101         Fix output redirection buglet in init.sh.
17102         * tests/init.sh: Fix redirection of stderr.
17103
17104 2010-05-20  Simon Josefsson  <simon@josefsson.org>
17105
17106         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
17107
17108 2010-05-17  Simon Josefsson  <simon@josefsson.org>
17109
17110         * modules/valgrind-tests: New file.
17111         * m4/valgrind-tests.m4: New file.
17112         * doc/valgrind-tests.texi: New file.
17113         * doc/gnulib.texi (Running self-tests under valgrind): New
17114         section.
17115
17116 2010-05-19  Bruno Haible  <bruno@clisp.org>
17117
17118         Clean up dead code in recent commit.
17119         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
17120         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
17121         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
17122         Suggested by Paolo Bonzini.
17123
17124 2010-05-19  Bruno Haible  <bruno@clisp.org>
17125
17126         Avoid valgrind error reports from libunistring.
17127         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
17128         * modules/libunistring (Files): Add it.
17129         * modules/libunistring-optional (Files): Likewise.
17130
17131 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
17132             Bruno Haible  <bruno@clisp.org>
17133
17134         New module 'libunistring-optional'.
17135         * modules/libunistring-optional: New file.
17136         * m4/libunistring-base.m4: New file.
17137         * m4/libunistring-optional.m4: New file.
17138         * lib/unicase.in.h: Renamed from lib/unicase.h.
17139         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
17140         * lib/unictype.in.h: Renamed from lib/unictype.h.
17141         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
17142         * lib/uniname.in.h: Renamed from lib/uniname.h.
17143         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
17144         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
17145         * lib/unistr.in.h: Renamed from lib/unistr.h.
17146         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
17147         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
17148         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
17149         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
17150         gl_LIBUNISTRING. If the library was found, determine the installed
17151         version and set LIBUNISTRING_VERSION.
17152         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
17153         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
17154         handle a configuration option --with-included-libunistring.
17155         * modules/libunistring (Files): Add m4/absolute-header.m4.
17156         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
17157         Add m4/libunistring-base.m4.
17158         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
17159         (Makefile.am): Build unicase.h from unicase.in.h.
17160         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
17161         Add m4/libunistring-base.m4.
17162         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
17163         (Makefile.am): Build uniconv.h from uniconv.in.h.
17164         * modules/unictype/base (Files): Use unictype.in.h instead of
17165         unictype.h. Add m4/libunistring-base.m4.
17166         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
17167         (Makefile.am): Build unictype.h from unictype.in.h.
17168         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
17169         Add m4/libunistring-base.m4.
17170         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
17171         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
17172         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
17173         Add m4/libunistring-base.m4.
17174         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
17175         (Makefile.am): Build uniname.h from uniname.in.h.
17176         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
17177         Add m4/libunistring-base.m4.
17178         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
17179         (Makefile.am): Build uninorm.h from uninorm.in.h.
17180         * modules/unistdio/base (Files): Use unistdio.in.h instead of
17181         unistdio.h. Add m4/libunistring-base.m4.
17182         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
17183         (Makefile.am): Build unistdio.h from unistdio.in.h.
17184         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
17185         Add m4/libunistring-base.m4.
17186         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
17187         (Makefile.am): Build unistr.h from unistr.in.h.
17188         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
17189         Add m4/libunistring-base.m4.
17190         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
17191         (Makefile.am): Build unitypes.h from unitypes.in.h.
17192         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
17193         Add m4/libunistring-base.m4.
17194         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
17195         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
17196         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
17197         uniwidth.h. Add m4/libunistring-base.m4.
17198         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
17199         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
17200         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
17201         instead of augmenting lib_SOURCES.
17202         * modules/unicase/empty-suffix-context: Likewise.
17203         * modules/unicase/locale-language: Likewise.
17204         * modules/unicase/tolower: Likewise.
17205         * modules/unicase/totitle: Likewise.
17206         * modules/unicase/toupper: Likewise.
17207         * modules/unicase/u8-casecmp: Likewise.
17208         * modules/unicase/u8-casecoll: Likewise.
17209         * modules/unicase/u8-casefold: Likewise.
17210         * modules/unicase/u8-casexfrm: Likewise.
17211         * modules/unicase/u8-ct-casefold: Likewise.
17212         * modules/unicase/u8-ct-tolower: Likewise.
17213         * modules/unicase/u8-ct-totitle: Likewise.
17214         * modules/unicase/u8-ct-toupper: Likewise.
17215         * modules/unicase/u8-is-cased: Likewise.
17216         * modules/unicase/u8-is-casefolded: Likewise.
17217         * modules/unicase/u8-is-lowercase: Likewise.
17218         * modules/unicase/u8-is-titlecase: Likewise.
17219         * modules/unicase/u8-is-uppercase: Likewise.
17220         * modules/unicase/u8-prefix-context: Likewise.
17221         * modules/unicase/u8-suffix-context: Likewise.
17222         * modules/unicase/u8-tolower: Likewise.
17223         * modules/unicase/u8-totitle: Likewise.
17224         * modules/unicase/u8-toupper: Likewise.
17225         * modules/unicase/u16-casecmp: Likewise.
17226         * modules/unicase/u16-casecoll: Likewise.
17227         * modules/unicase/u16-casefold: Likewise.
17228         * modules/unicase/u16-casexfrm: Likewise.
17229         * modules/unicase/u16-ct-casefold: Likewise.
17230         * modules/unicase/u16-ct-tolower: Likewise.
17231         * modules/unicase/u16-ct-totitle: Likewise.
17232         * modules/unicase/u16-ct-toupper: Likewise.
17233         * modules/unicase/u16-is-cased: Likewise.
17234         * modules/unicase/u16-is-casefolded: Likewise.
17235         * modules/unicase/u16-is-lowercase: Likewise.
17236         * modules/unicase/u16-is-titlecase: Likewise.
17237         * modules/unicase/u16-is-uppercase: Likewise.
17238         * modules/unicase/u16-prefix-context: Likewise.
17239         * modules/unicase/u16-suffix-context: Likewise.
17240         * modules/unicase/u16-tolower: Likewise.
17241         * modules/unicase/u16-totitle: Likewise.
17242         * modules/unicase/u16-toupper: Likewise.
17243         * modules/unicase/u32-casecmp: Likewise.
17244         * modules/unicase/u32-casecoll: Likewise.
17245         * modules/unicase/u32-casefold: Likewise.
17246         * modules/unicase/u32-casexfrm: Likewise.
17247         * modules/unicase/u32-ct-casefold: Likewise.
17248         * modules/unicase/u32-ct-tolower: Likewise.
17249         * modules/unicase/u32-ct-totitle: Likewise.
17250         * modules/unicase/u32-ct-toupper: Likewise.
17251         * modules/unicase/u32-is-cased: Likewise.
17252         * modules/unicase/u32-is-casefolded: Likewise.
17253         * modules/unicase/u32-is-lowercase: Likewise.
17254         * modules/unicase/u32-is-titlecase: Likewise.
17255         * modules/unicase/u32-is-uppercase: Likewise.
17256         * modules/unicase/u32-prefix-context: Likewise.
17257         * modules/unicase/u32-suffix-context: Likewise.
17258         * modules/unicase/u32-tolower: Likewise.
17259         * modules/unicase/u32-totitle: Likewise.
17260         * modules/unicase/u32-toupper: Likewise.
17261         * modules/unicase/ulc-casecmp: Likewise.
17262         * modules/unicase/ulc-casecoll: Likewise.
17263         * modules/unicase/ulc-casexfrm: Likewise.
17264         * modules/uniconv/u8-conv-from-enc: Likewise.
17265         * modules/uniconv/u8-conv-to-enc: Likewise.
17266         * modules/uniconv/u8-strconv-from-enc: Likewise.
17267         * modules/uniconv/u8-strconv-from-locale: Likewise.
17268         * modules/uniconv/u8-strconv-to-enc: Likewise.
17269         * modules/uniconv/u8-strconv-to-locale: Likewise.
17270         * modules/uniconv/u16-conv-from-enc: Likewise.
17271         * modules/uniconv/u16-conv-to-enc: Likewise.
17272         * modules/uniconv/u16-strconv-from-enc: Likewise.
17273         * modules/uniconv/u16-strconv-from-locale: Likewise.
17274         * modules/uniconv/u16-strconv-to-enc: Likewise.
17275         * modules/uniconv/u16-strconv-to-locale: Likewise.
17276         * modules/uniconv/u32-conv-from-enc: Likewise.
17277         * modules/uniconv/u32-conv-to-enc: Likewise.
17278         * modules/uniconv/u32-strconv-from-enc: Likewise.
17279         * modules/uniconv/u32-strconv-from-locale: Likewise.
17280         * modules/uniconv/u32-strconv-to-enc: Likewise.
17281         * modules/uniconv/u32-strconv-to-locale: Likewise.
17282         * modules/unictype/bidicategory-byname: Likewise.
17283         * modules/unictype/bidicategory-name: Likewise.
17284         * modules/unictype/bidicategory-of: Likewise.
17285         * modules/unictype/bidicategory-test: Likewise.
17286         * modules/unictype/block-list: Likewise.
17287         * modules/unictype/block-test: Likewise.
17288         * modules/unictype/category-C: Likewise.
17289         * modules/unictype/category-Cc: Likewise.
17290         * modules/unictype/category-Cf: Likewise.
17291         * modules/unictype/category-Cn: Likewise.
17292         * modules/unictype/category-Co: Likewise.
17293         * modules/unictype/category-Cs: Likewise.
17294         * modules/unictype/category-L: Likewise.
17295         * modules/unictype/category-Ll: Likewise.
17296         * modules/unictype/category-Lm: Likewise.
17297         * modules/unictype/category-Lo: Likewise.
17298         * modules/unictype/category-Lt: Likewise.
17299         * modules/unictype/category-Lu: Likewise.
17300         * modules/unictype/category-M: Likewise.
17301         * modules/unictype/category-Mc: Likewise.
17302         * modules/unictype/category-Me: Likewise.
17303         * modules/unictype/category-Mn: Likewise.
17304         * modules/unictype/category-N: Likewise.
17305         * modules/unictype/category-Nd: Likewise.
17306         * modules/unictype/category-Nl: Likewise.
17307         * modules/unictype/category-No: Likewise.
17308         * modules/unictype/category-P: Likewise.
17309         * modules/unictype/category-Pc: Likewise.
17310         * modules/unictype/category-Pd: Likewise.
17311         * modules/unictype/category-Pe: Likewise.
17312         * modules/unictype/category-Pf: Likewise.
17313         * modules/unictype/category-Pi: Likewise.
17314         * modules/unictype/category-Po: Likewise.
17315         * modules/unictype/category-Ps: Likewise.
17316         * modules/unictype/category-S: Likewise.
17317         * modules/unictype/category-Sc: Likewise.
17318         * modules/unictype/category-Sk: Likewise.
17319         * modules/unictype/category-Sm: Likewise.
17320         * modules/unictype/category-So: Likewise.
17321         * modules/unictype/category-Z: Likewise.
17322         * modules/unictype/category-Zl: Likewise.
17323         * modules/unictype/category-Zp: Likewise.
17324         * modules/unictype/category-Zs: Likewise.
17325         * modules/unictype/category-and: Likewise.
17326         * modules/unictype/category-and-not: Likewise.
17327         * modules/unictype/category-byname: Likewise.
17328         * modules/unictype/category-name: Likewise.
17329         * modules/unictype/category-none: Likewise.
17330         * modules/unictype/category-of: Likewise.
17331         * modules/unictype/category-or: Likewise.
17332         * modules/unictype/category-test: Likewise.
17333         * modules/unictype/combining-class: Likewise.
17334         * modules/unictype/ctype-alnum: Likewise.
17335         * modules/unictype/ctype-alpha: Likewise.
17336         * modules/unictype/ctype-blank: Likewise.
17337         * modules/unictype/ctype-cntrl: Likewise.
17338         * modules/unictype/ctype-digit: Likewise.
17339         * modules/unictype/ctype-graph: Likewise.
17340         * modules/unictype/ctype-lower: Likewise.
17341         * modules/unictype/ctype-print: Likewise.
17342         * modules/unictype/ctype-punct: Likewise.
17343         * modules/unictype/ctype-space: Likewise.
17344         * modules/unictype/ctype-upper: Likewise.
17345         * modules/unictype/ctype-xdigit: Likewise.
17346         * modules/unictype/decimal-digit: Likewise.
17347         * modules/unictype/digit: Likewise.
17348         * modules/unictype/mirror: Likewise.
17349         * modules/unictype/numeric: Likewise.
17350         * modules/unictype/property-alphabetic: Likewise.
17351         * modules/unictype/property-ascii-hex-digit: Likewise.
17352         * modules/unictype/property-bidi-arabic-digit: Likewise.
17353         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
17354         * modules/unictype/property-bidi-block-separator: Likewise.
17355         * modules/unictype/property-bidi-boundary-neutral: Likewise.
17356         * modules/unictype/property-bidi-common-separator: Likewise.
17357         * modules/unictype/property-bidi-control: Likewise.
17358         * modules/unictype/property-bidi-embedding-or-override: Likewise.
17359         * modules/unictype/property-bidi-eur-num-separator: Likewise.
17360         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
17361         * modules/unictype/property-bidi-european-digit: Likewise.
17362         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
17363         * modules/unictype/property-bidi-left-to-right: Likewise.
17364         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
17365         * modules/unictype/property-bidi-other-neutral: Likewise.
17366         * modules/unictype/property-bidi-pdf: Likewise.
17367         * modules/unictype/property-bidi-segment-separator: Likewise.
17368         * modules/unictype/property-bidi-whitespace: Likewise.
17369         * modules/unictype/property-byname: Likewise.
17370         * modules/unictype/property-combining: Likewise.
17371         * modules/unictype/property-composite: Likewise.
17372         * modules/unictype/property-currency-symbol: Likewise.
17373         * modules/unictype/property-dash: Likewise.
17374         * modules/unictype/property-decimal-digit: Likewise.
17375         * modules/unictype/property-default-ignorable-code-point: Likewise.
17376         * modules/unictype/property-deprecated: Likewise.
17377         * modules/unictype/property-diacritic: Likewise.
17378         * modules/unictype/property-extender: Likewise.
17379         * modules/unictype/property-format-control: Likewise.
17380         * modules/unictype/property-grapheme-base: Likewise.
17381         * modules/unictype/property-grapheme-extend: Likewise.
17382         * modules/unictype/property-grapheme-link: Likewise.
17383         * modules/unictype/property-hex-digit: Likewise.
17384         * modules/unictype/property-hyphen: Likewise.
17385         * modules/unictype/property-id-continue: Likewise.
17386         * modules/unictype/property-id-start: Likewise.
17387         * modules/unictype/property-ideographic: Likewise.
17388         * modules/unictype/property-ids-binary-operator: Likewise.
17389         * modules/unictype/property-ids-trinary-operator: Likewise.
17390         * modules/unictype/property-ignorable-control: Likewise.
17391         * modules/unictype/property-iso-control: Likewise.
17392         * modules/unictype/property-join-control: Likewise.
17393         * modules/unictype/property-left-of-pair: Likewise.
17394         * modules/unictype/property-line-separator: Likewise.
17395         * modules/unictype/property-logical-order-exception: Likewise.
17396         * modules/unictype/property-lowercase: Likewise.
17397         * modules/unictype/property-math: Likewise.
17398         * modules/unictype/property-non-break: Likewise.
17399         * modules/unictype/property-not-a-character: Likewise.
17400         * modules/unictype/property-numeric: Likewise.
17401         * modules/unictype/property-other-alphabetic: Likewise.
17402         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
17403         * modules/unictype/property-other-grapheme-extend: Likewise.
17404         * modules/unictype/property-other-id-continue: Likewise.
17405         * modules/unictype/property-other-id-start: Likewise.
17406         * modules/unictype/property-other-lowercase: Likewise.
17407         * modules/unictype/property-other-math: Likewise.
17408         * modules/unictype/property-other-uppercase: Likewise.
17409         * modules/unictype/property-paired-punctuation: Likewise.
17410         * modules/unictype/property-paragraph-separator: Likewise.
17411         * modules/unictype/property-pattern-syntax: Likewise.
17412         * modules/unictype/property-pattern-white-space: Likewise.
17413         * modules/unictype/property-private-use: Likewise.
17414         * modules/unictype/property-punctuation: Likewise.
17415         * modules/unictype/property-quotation-mark: Likewise.
17416         * modules/unictype/property-radical: Likewise.
17417         * modules/unictype/property-sentence-terminal: Likewise.
17418         * modules/unictype/property-soft-dotted: Likewise.
17419         * modules/unictype/property-space: Likewise.
17420         * modules/unictype/property-terminal-punctuation: Likewise.
17421         * modules/unictype/property-test: Likewise.
17422         * modules/unictype/property-titlecase: Likewise.
17423         * modules/unictype/property-unassigned-code-value: Likewise.
17424         * modules/unictype/property-unified-ideograph: Likewise.
17425         * modules/unictype/property-uppercase: Likewise.
17426         * modules/unictype/property-variation-selector: Likewise.
17427         * modules/unictype/property-white-space: Likewise.
17428         * modules/unictype/property-xid-continue: Likewise.
17429         * modules/unictype/property-xid-start: Likewise.
17430         * modules/unictype/property-zero-width: Likewise.
17431         * modules/unictype/scripts: Likewise.
17432         * modules/unictype/syntax-c-ident: Likewise.
17433         * modules/unictype/syntax-c-whitespace: Likewise.
17434         * modules/unictype/syntax-java-ident: Likewise.
17435         * modules/unictype/syntax-java-whitespace: Likewise.
17436         * modules/unilbrk/u8-possible-linebreaks: Likewise.
17437         * modules/unilbrk/u8-width-linebreaks: Likewise.
17438         * modules/unilbrk/u16-possible-linebreaks: Likewise.
17439         * modules/unilbrk/u16-width-linebreaks: Likewise.
17440         * modules/unilbrk/u32-possible-linebreaks: Likewise.
17441         * modules/unilbrk/u32-width-linebreaks: Likewise.
17442         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
17443         * modules/unilbrk/ulc-width-linebreaks: Likewise.
17444         * modules/uniname/uniname: Likewise.
17445         * modules/uninorm/canonical-decomposition: Likewise.
17446         * modules/uninorm/composition: Likewise.
17447         * modules/uninorm/decomposing-form: Likewise.
17448         * modules/uninorm/decomposition: Likewise.
17449         * modules/uninorm/filter: Likewise.
17450         * modules/uninorm/nfc: Likewise.
17451         * modules/uninorm/nfd: Likewise.
17452         * modules/uninorm/nfkc: Likewise.
17453         * modules/uninorm/nfkd: Likewise.
17454         * modules/uninorm/u8-normalize: Likewise.
17455         * modules/uninorm/u8-normcmp: Likewise.
17456         * modules/uninorm/u8-normcoll: Likewise.
17457         * modules/uninorm/u8-normxfrm: Likewise.
17458         * modules/uninorm/u16-normalize: Likewise.
17459         * modules/uninorm/u16-normcmp: Likewise.
17460         * modules/uninorm/u16-normcoll: Likewise.
17461         * modules/uninorm/u16-normxfrm: Likewise.
17462         * modules/uninorm/u32-normalize: Likewise.
17463         * modules/uninorm/u32-normcmp: Likewise.
17464         * modules/uninorm/u32-normcoll: Likewise.
17465         * modules/uninorm/u32-normxfrm: Likewise.
17466         * modules/unistdio/u8-asnprintf: Likewise.
17467         * modules/unistdio/u8-asprintf: Likewise.
17468         * modules/unistdio/u8-snprintf: Likewise.
17469         * modules/unistdio/u8-sprintf: Likewise.
17470         * modules/unistdio/u8-u8-asnprintf: Likewise.
17471         * modules/unistdio/u8-u8-asprintf: Likewise.
17472         * modules/unistdio/u8-u8-snprintf: Likewise.
17473         * modules/unistdio/u8-u8-sprintf: Likewise.
17474         * modules/unistdio/u8-u8-vasnprintf: Likewise.
17475         * modules/unistdio/u8-u8-vasprintf: Likewise.
17476         * modules/unistdio/u8-u8-vsnprintf: Likewise.
17477         * modules/unistdio/u8-u8-vsprintf: Likewise.
17478         * modules/unistdio/u8-vasnprintf: Likewise.
17479         * modules/unistdio/u8-vasprintf: Likewise.
17480         * modules/unistdio/u8-vsnprintf: Likewise.
17481         * modules/unistdio/u8-vsprintf: Likewise.
17482         * modules/unistdio/u16-asnprintf: Likewise.
17483         * modules/unistdio/u16-asprintf: Likewise.
17484         * modules/unistdio/u16-snprintf: Likewise.
17485         * modules/unistdio/u16-sprintf: Likewise.
17486         * modules/unistdio/u16-u16-asnprintf: Likewise.
17487         * modules/unistdio/u16-u16-asprintf: Likewise.
17488         * modules/unistdio/u16-u16-snprintf: Likewise.
17489         * modules/unistdio/u16-u16-sprintf: Likewise.
17490         * modules/unistdio/u16-u16-vasnprintf: Likewise.
17491         * modules/unistdio/u16-u16-vasprintf: Likewise.
17492         * modules/unistdio/u16-u16-vsnprintf: Likewise.
17493         * modules/unistdio/u16-u16-vsprintf: Likewise.
17494         * modules/unistdio/u16-vasnprintf: Likewise.
17495         * modules/unistdio/u16-vasprintf: Likewise.
17496         * modules/unistdio/u16-vsnprintf: Likewise.
17497         * modules/unistdio/u16-vsprintf: Likewise.
17498         * modules/unistdio/u32-asnprintf: Likewise.
17499         * modules/unistdio/u32-asprintf: Likewise.
17500         * modules/unistdio/u32-snprintf: Likewise.
17501         * modules/unistdio/u32-sprintf: Likewise.
17502         * modules/unistdio/u32-u32-asnprintf: Likewise.
17503         * modules/unistdio/u32-u32-asprintf: Likewise.
17504         * modules/unistdio/u32-u32-snprintf: Likewise.
17505         * modules/unistdio/u32-u32-sprintf: Likewise.
17506         * modules/unistdio/u32-u32-vasnprintf: Likewise.
17507         * modules/unistdio/u32-u32-vasprintf: Likewise.
17508         * modules/unistdio/u32-u32-vsnprintf: Likewise.
17509         * modules/unistdio/u32-u32-vsprintf: Likewise.
17510         * modules/unistdio/u32-vasnprintf: Likewise.
17511         * modules/unistdio/u32-vasprintf: Likewise.
17512         * modules/unistdio/u32-vsnprintf: Likewise.
17513         * modules/unistdio/u32-vsprintf: Likewise.
17514         * modules/unistdio/ulc-asnprintf: Likewise.
17515         * modules/unistdio/ulc-asprintf: Likewise.
17516         * modules/unistdio/ulc-fprintf: Likewise.
17517         * modules/unistdio/ulc-snprintf: Likewise.
17518         * modules/unistdio/ulc-sprintf: Likewise.
17519         * modules/unistdio/ulc-vasnprintf: Likewise.
17520         * modules/unistdio/ulc-vasprintf: Likewise.
17521         * modules/unistdio/ulc-vfprintf: Likewise.
17522         * modules/unistdio/ulc-vsnprintf: Likewise.
17523         * modules/unistdio/ulc-vsprintf: Likewise.
17524         * modules/unistr/u8-check: Likewise.
17525         * modules/unistr/u8-chr: Likewise.
17526         * modules/unistr/u8-cmp: Likewise.
17527         * modules/unistr/u8-cmp2: Likewise.
17528         * modules/unistr/u8-cpy: Likewise.
17529         * modules/unistr/u8-cpy-alloc: Likewise.
17530         * modules/unistr/u8-endswith: Likewise.
17531         * modules/unistr/u8-mblen: Likewise.
17532         * modules/unistr/u8-mbsnlen: Likewise.
17533         * modules/unistr/u8-mbtouc: Likewise.
17534         * modules/unistr/u8-mbtouc-unsafe: Likewise.
17535         * modules/unistr/u8-mbtoucr: Likewise.
17536         * modules/unistr/u8-move: Likewise.
17537         * modules/unistr/u8-next: Likewise.
17538         * modules/unistr/u8-prev: Likewise.
17539         * modules/unistr/u8-set: Likewise.
17540         * modules/unistr/u8-startswith: Likewise.
17541         * modules/unistr/u8-stpcpy: Likewise.
17542         * modules/unistr/u8-stpncpy: Likewise.
17543         * modules/unistr/u8-strcat: Likewise.
17544         * modules/unistr/u8-strchr: Likewise.
17545         * modules/unistr/u8-strcmp: Likewise.
17546         * modules/unistr/u8-strcoll: Likewise.
17547         * modules/unistr/u8-strcpy: Likewise.
17548         * modules/unistr/u8-strcspn: Likewise.
17549         * modules/unistr/u8-strdup: Likewise.
17550         * modules/unistr/u8-strlen: Likewise.
17551         * modules/unistr/u8-strmblen: Likewise.
17552         * modules/unistr/u8-strmbtouc: Likewise.
17553         * modules/unistr/u8-strncat: Likewise.
17554         * modules/unistr/u8-strncmp: Likewise.
17555         * modules/unistr/u8-strncpy: Likewise.
17556         * modules/unistr/u8-strnlen: Likewise.
17557         * modules/unistr/u8-strpbrk: Likewise.
17558         * modules/unistr/u8-strrchr: Likewise.
17559         * modules/unistr/u8-strspn: Likewise.
17560         * modules/unistr/u8-strstr: Likewise.
17561         * modules/unistr/u8-strtok: Likewise.
17562         * modules/unistr/u8-to-u16: Likewise.
17563         * modules/unistr/u8-to-u32: Likewise.
17564         * modules/unistr/u8-uctomb: Likewise.
17565         * modules/unistr/u16-check: Likewise.
17566         * modules/unistr/u16-chr: Likewise.
17567         * modules/unistr/u16-cmp: Likewise.
17568         * modules/unistr/u16-cmp2: Likewise.
17569         * modules/unistr/u16-cpy: Likewise.
17570         * modules/unistr/u16-cpy-alloc: Likewise.
17571         * modules/unistr/u16-endswith: Likewise.
17572         * modules/unistr/u16-mblen: Likewise.
17573         * modules/unistr/u16-mbsnlen: Likewise.
17574         * modules/unistr/u16-mbtouc: Likewise.
17575         * modules/unistr/u16-mbtouc-unsafe: Likewise.
17576         * modules/unistr/u16-mbtoucr: Likewise.
17577         * modules/unistr/u16-move: Likewise.
17578         * modules/unistr/u16-next: Likewise.
17579         * modules/unistr/u16-prev: Likewise.
17580         * modules/unistr/u16-set: Likewise.
17581         * modules/unistr/u16-startswith: Likewise.
17582         * modules/unistr/u16-stpcpy: Likewise.
17583         * modules/unistr/u16-stpncpy: Likewise.
17584         * modules/unistr/u16-strcat: Likewise.
17585         * modules/unistr/u16-strchr: Likewise.
17586         * modules/unistr/u16-strcmp: Likewise.
17587         * modules/unistr/u16-strcoll: Likewise.
17588         * modules/unistr/u16-strcpy: Likewise.
17589         * modules/unistr/u16-strcspn: Likewise.
17590         * modules/unistr/u16-strdup: Likewise.
17591         * modules/unistr/u16-strlen: Likewise.
17592         * modules/unistr/u16-strmblen: Likewise.
17593         * modules/unistr/u16-strmbtouc: Likewise.
17594         * modules/unistr/u16-strncat: Likewise.
17595         * modules/unistr/u16-strncmp: Likewise.
17596         * modules/unistr/u16-strncpy: Likewise.
17597         * modules/unistr/u16-strnlen: Likewise.
17598         * modules/unistr/u16-strpbrk: Likewise.
17599         * modules/unistr/u16-strrchr: Likewise.
17600         * modules/unistr/u16-strspn: Likewise.
17601         * modules/unistr/u16-strstr: Likewise.
17602         * modules/unistr/u16-strtok: Likewise.
17603         * modules/unistr/u16-to-u32: Likewise.
17604         * modules/unistr/u16-to-u8: Likewise.
17605         * modules/unistr/u16-uctomb: Likewise.
17606         * modules/unistr/u32-check: Likewise.
17607         * modules/unistr/u32-chr: Likewise.
17608         * modules/unistr/u32-cmp: Likewise.
17609         * modules/unistr/u32-cmp2: Likewise.
17610         * modules/unistr/u32-cpy: Likewise.
17611         * modules/unistr/u32-cpy-alloc: Likewise.
17612         * modules/unistr/u32-endswith: Likewise.
17613         * modules/unistr/u32-mblen: Likewise.
17614         * modules/unistr/u32-mbsnlen: Likewise.
17615         * modules/unistr/u32-mbtouc: Likewise.
17616         * modules/unistr/u32-mbtouc-unsafe: Likewise.
17617         * modules/unistr/u32-mbtoucr: Likewise.
17618         * modules/unistr/u32-move: Likewise.
17619         * modules/unistr/u32-next: Likewise.
17620         * modules/unistr/u32-prev: Likewise.
17621         * modules/unistr/u32-set: Likewise.
17622         * modules/unistr/u32-startswith: Likewise.
17623         * modules/unistr/u32-stpcpy: Likewise.
17624         * modules/unistr/u32-stpncpy: Likewise.
17625         * modules/unistr/u32-strcat: Likewise.
17626         * modules/unistr/u32-strchr: Likewise.
17627         * modules/unistr/u32-strcmp: Likewise.
17628         * modules/unistr/u32-strcoll: Likewise.
17629         * modules/unistr/u32-strcpy: Likewise.
17630         * modules/unistr/u32-strcspn: Likewise.
17631         * modules/unistr/u32-strdup: Likewise.
17632         * modules/unistr/u32-strlen: Likewise.
17633         * modules/unistr/u32-strmblen: Likewise.
17634         * modules/unistr/u32-strmbtouc: Likewise.
17635         * modules/unistr/u32-strncat: Likewise.
17636         * modules/unistr/u32-strncmp: Likewise.
17637         * modules/unistr/u32-strncpy: Likewise.
17638         * modules/unistr/u32-strnlen: Likewise.
17639         * modules/unistr/u32-strpbrk: Likewise.
17640         * modules/unistr/u32-strrchr: Likewise.
17641         * modules/unistr/u32-strspn: Likewise.
17642         * modules/unistr/u32-strstr: Likewise.
17643         * modules/unistr/u32-strtok: Likewise.
17644         * modules/unistr/u32-to-u16: Likewise.
17645         * modules/unistr/u32-to-u8: Likewise.
17646         * modules/unistr/u32-uctomb: Likewise.
17647         * modules/uniwbrk/u8-wordbreaks: Likewise.
17648         * modules/uniwbrk/u16-wordbreaks: Likewise.
17649         * modules/uniwbrk/u32-wordbreaks: Likewise.
17650         * modules/uniwbrk/ulc-wordbreaks: Likewise.
17651         * modules/uniwbrk/wordbreak-property: Likewise.
17652         * modules/uniwidth/u8-strwidth: Likewise.
17653         * modules/uniwidth/u8-width: Likewise.
17654         * modules/uniwidth/u16-strwidth: Likewise.
17655         * modules/uniwidth/u16-width: Likewise.
17656         * modules/uniwidth/u32-strwidth: Likewise.
17657         * modules/uniwidth/u32-width: Likewise.
17658         * modules/uniwidth/width: Likewise.
17659         * modules/unicase/cased-tests (Makefile.am): Link all test programs
17660         with $(LIBUNISTRING).
17661         * modules/unicase/ignorable-tests: Likewise.
17662         * modules/unicase/locale-language-tests: Likewise.
17663         * modules/unicase/tolower-tests: Likewise.
17664         * modules/unicase/totitle-tests: Likewise.
17665         * modules/unicase/toupper-tests: Likewise.
17666         * modules/unicase/u8-casecmp-tests: Likewise.
17667         * modules/unicase/u8-casecoll-tests: Likewise.
17668         * modules/unicase/u8-casefold-tests: Likewise.
17669         * modules/unicase/u8-is-cased-tests: Likewise.
17670         * modules/unicase/u8-is-casefolded-tests: Likewise.
17671         * modules/unicase/u8-is-lowercase-tests: Likewise.
17672         * modules/unicase/u8-is-titlecase-tests: Likewise.
17673         * modules/unicase/u8-is-uppercase-tests: Likewise.
17674         * modules/unicase/u8-tolower-tests: Likewise.
17675         * modules/unicase/u8-totitle-tests: Likewise.
17676         * modules/unicase/u8-toupper-tests: Likewise.
17677         * modules/unicase/u16-casecmp-tests: Likewise.
17678         * modules/unicase/u16-casecoll-tests: Likewise.
17679         * modules/unicase/u16-casefold-tests: Likewise.
17680         * modules/unicase/u16-is-cased-tests: Likewise.
17681         * modules/unicase/u16-is-casefolded-tests: Likewise.
17682         * modules/unicase/u16-is-lowercase-tests: Likewise.
17683         * modules/unicase/u16-is-titlecase-tests: Likewise.
17684         * modules/unicase/u16-is-uppercase-tests: Likewise.
17685         * modules/unicase/u16-tolower-tests: Likewise.
17686         * modules/unicase/u16-totitle-tests: Likewise.
17687         * modules/unicase/u16-toupper-tests: Likewise.
17688         * modules/unicase/u32-casecmp-tests: Likewise.
17689         * modules/unicase/u32-casecoll-tests: Likewise.
17690         * modules/unicase/u32-casefold-tests: Likewise.
17691         * modules/unicase/u32-is-cased-tests: Likewise.
17692         * modules/unicase/u32-is-casefolded-tests: Likewise.
17693         * modules/unicase/u32-is-lowercase-tests: Likewise.
17694         * modules/unicase/u32-is-titlecase-tests: Likewise.
17695         * modules/unicase/u32-is-uppercase-tests: Likewise.
17696         * modules/unicase/u32-tolower-tests: Likewise.
17697         * modules/unicase/u32-totitle-tests: Likewise.
17698         * modules/unicase/u32-toupper-tests: Likewise.
17699         * modules/unicase/ulc-casecmp-tests: Likewise.
17700         * modules/unicase/ulc-casecoll-tests: Likewise.
17701         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
17702         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
17703         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
17704         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
17705         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
17706         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
17707         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
17708         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
17709         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
17710         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
17711         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
17712         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
17713         * modules/unictype/bidicategory-byname-tests: Likewise.
17714         * modules/unictype/bidicategory-name-tests: Likewise.
17715         * modules/unictype/bidicategory-of-tests: Likewise.
17716         * modules/unictype/bidicategory-test-tests: Likewise.
17717         * modules/unictype/block-list-tests: Likewise.
17718         * modules/unictype/block-of-tests: Likewise.
17719         * modules/unictype/block-test-tests: Likewise.
17720         * modules/unictype/category-C-tests: Likewise.
17721         * modules/unictype/category-Cc-tests: Likewise.
17722         * modules/unictype/category-Cf-tests: Likewise.
17723         * modules/unictype/category-Cn-tests: Likewise.
17724         * modules/unictype/category-Co-tests: Likewise.
17725         * modules/unictype/category-Cs-tests: Likewise.
17726         * modules/unictype/category-L-tests: Likewise.
17727         * modules/unictype/category-Ll-tests: Likewise.
17728         * modules/unictype/category-Lm-tests: Likewise.
17729         * modules/unictype/category-Lo-tests: Likewise.
17730         * modules/unictype/category-Lt-tests: Likewise.
17731         * modules/unictype/category-Lu-tests: Likewise.
17732         * modules/unictype/category-M-tests: Likewise.
17733         * modules/unictype/category-Mc-tests: Likewise.
17734         * modules/unictype/category-Me-tests: Likewise.
17735         * modules/unictype/category-Mn-tests: Likewise.
17736         * modules/unictype/category-N-tests: Likewise.
17737         * modules/unictype/category-Nd-tests: Likewise.
17738         * modules/unictype/category-Nl-tests: Likewise.
17739         * modules/unictype/category-No-tests: Likewise.
17740         * modules/unictype/category-P-tests: Likewise.
17741         * modules/unictype/category-Pc-tests: Likewise.
17742         * modules/unictype/category-Pd-tests: Likewise.
17743         * modules/unictype/category-Pe-tests: Likewise.
17744         * modules/unictype/category-Pf-tests: Likewise.
17745         * modules/unictype/category-Pi-tests: Likewise.
17746         * modules/unictype/category-Po-tests: Likewise.
17747         * modules/unictype/category-Ps-tests: Likewise.
17748         * modules/unictype/category-S-tests: Likewise.
17749         * modules/unictype/category-Sc-tests: Likewise.
17750         * modules/unictype/category-Sk-tests: Likewise.
17751         * modules/unictype/category-Sm-tests: Likewise.
17752         * modules/unictype/category-So-tests: Likewise.
17753         * modules/unictype/category-Z-tests: Likewise.
17754         * modules/unictype/category-Zl-tests: Likewise.
17755         * modules/unictype/category-Zp-tests: Likewise.
17756         * modules/unictype/category-Zs-tests: Likewise.
17757         * modules/unictype/category-and-not-tests: Likewise.
17758         * modules/unictype/category-and-tests: Likewise.
17759         * modules/unictype/category-byname-tests: Likewise.
17760         * modules/unictype/category-name-tests: Likewise.
17761         * modules/unictype/category-none-tests: Likewise.
17762         * modules/unictype/category-of-tests: Likewise.
17763         * modules/unictype/category-or-tests: Likewise.
17764         * modules/unictype/category-test-withtable-tests: Likewise.
17765         * modules/unictype/combining-class-tests: Likewise.
17766         * modules/unictype/ctype-alnum-tests: Likewise.
17767         * modules/unictype/ctype-alpha-tests: Likewise.
17768         * modules/unictype/ctype-blank-tests: Likewise.
17769         * modules/unictype/ctype-cntrl-tests: Likewise.
17770         * modules/unictype/ctype-digit-tests: Likewise.
17771         * modules/unictype/ctype-graph-tests: Likewise.
17772         * modules/unictype/ctype-lower-tests: Likewise.
17773         * modules/unictype/ctype-print-tests: Likewise.
17774         * modules/unictype/ctype-punct-tests: Likewise.
17775         * modules/unictype/ctype-space-tests: Likewise.
17776         * modules/unictype/ctype-upper-tests: Likewise.
17777         * modules/unictype/ctype-xdigit-tests: Likewise.
17778         * modules/unictype/decimal-digit-tests: Likewise.
17779         * modules/unictype/digit-tests: Likewise.
17780         * modules/unictype/mirror-tests: Likewise.
17781         * modules/unictype/numeric-tests: Likewise.
17782         * modules/unictype/property-alphabetic-tests: Likewise.
17783         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
17784         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
17785         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
17786         * modules/unictype/property-bidi-block-separator-tests: Likewise.
17787         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
17788         * modules/unictype/property-bidi-common-separator-tests: Likewise.
17789         * modules/unictype/property-bidi-control-tests: Likewise.
17790         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
17791         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
17792         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
17793         * modules/unictype/property-bidi-european-digit-tests: Likewise.
17794         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
17795         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
17796         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
17797         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
17798         * modules/unictype/property-bidi-pdf-tests: Likewise.
17799         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
17800         * modules/unictype/property-bidi-whitespace-tests: Likewise.
17801         * modules/unictype/property-byname-tests: Likewise.
17802         * modules/unictype/property-combining-tests: Likewise.
17803         * modules/unictype/property-composite-tests: Likewise.
17804         * modules/unictype/property-currency-symbol-tests: Likewise.
17805         * modules/unictype/property-dash-tests: Likewise.
17806         * modules/unictype/property-decimal-digit-tests: Likewise.
17807         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
17808         * modules/unictype/property-deprecated-tests: Likewise.
17809         * modules/unictype/property-diacritic-tests: Likewise.
17810         * modules/unictype/property-extender-tests: Likewise.
17811         * modules/unictype/property-format-control-tests: Likewise.
17812         * modules/unictype/property-grapheme-base-tests: Likewise.
17813         * modules/unictype/property-grapheme-extend-tests: Likewise.
17814         * modules/unictype/property-grapheme-link-tests: Likewise.
17815         * modules/unictype/property-hex-digit-tests: Likewise.
17816         * modules/unictype/property-hyphen-tests: Likewise.
17817         * modules/unictype/property-id-continue-tests: Likewise.
17818         * modules/unictype/property-id-start-tests: Likewise.
17819         * modules/unictype/property-ideographic-tests: Likewise.
17820         * modules/unictype/property-ids-binary-operator-tests: Likewise.
17821         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
17822         * modules/unictype/property-ignorable-control-tests: Likewise.
17823         * modules/unictype/property-iso-control-tests: Likewise.
17824         * modules/unictype/property-join-control-tests: Likewise.
17825         * modules/unictype/property-left-of-pair-tests: Likewise.
17826         * modules/unictype/property-line-separator-tests: Likewise.
17827         * modules/unictype/property-logical-order-exception-tests: Likewise.
17828         * modules/unictype/property-lowercase-tests: Likewise.
17829         * modules/unictype/property-math-tests: Likewise.
17830         * modules/unictype/property-non-break-tests: Likewise.
17831         * modules/unictype/property-not-a-character-tests: Likewise.
17832         * modules/unictype/property-numeric-tests: Likewise.
17833         * modules/unictype/property-other-alphabetic-tests: Likewise.
17834         * modules/unictype/property-other-default-ignorable-code-point-tests:
17835         Likewise.
17836         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
17837         * modules/unictype/property-other-id-continue-tests: Likewise.
17838         * modules/unictype/property-other-id-start-tests: Likewise.
17839         * modules/unictype/property-other-lowercase-tests: Likewise.
17840         * modules/unictype/property-other-math-tests: Likewise.
17841         * modules/unictype/property-other-uppercase-tests: Likewise.
17842         * modules/unictype/property-paired-punctuation-tests: Likewise.
17843         * modules/unictype/property-paragraph-separator-tests: Likewise.
17844         * modules/unictype/property-pattern-syntax-tests: Likewise.
17845         * modules/unictype/property-pattern-white-space-tests: Likewise.
17846         * modules/unictype/property-private-use-tests: Likewise.
17847         * modules/unictype/property-punctuation-tests: Likewise.
17848         * modules/unictype/property-quotation-mark-tests: Likewise.
17849         * modules/unictype/property-radical-tests: Likewise.
17850         * modules/unictype/property-sentence-terminal-tests: Likewise.
17851         * modules/unictype/property-soft-dotted-tests: Likewise.
17852         * modules/unictype/property-space-tests: Likewise.
17853         * modules/unictype/property-terminal-punctuation-tests: Likewise.
17854         * modules/unictype/property-test-tests: Likewise.
17855         * modules/unictype/property-titlecase-tests: Likewise.
17856         * modules/unictype/property-unassigned-code-value-tests: Likewise.
17857         * modules/unictype/property-unified-ideograph-tests: Likewise.
17858         * modules/unictype/property-uppercase-tests: Likewise.
17859         * modules/unictype/property-variation-selector-tests: Likewise.
17860         * modules/unictype/property-white-space-tests: Likewise.
17861         * modules/unictype/property-xid-continue-tests: Likewise.
17862         * modules/unictype/property-xid-start-tests: Likewise.
17863         * modules/unictype/property-zero-width-tests: Likewise.
17864         * modules/unictype/scripts-tests: Likewise.
17865         * modules/unictype/syntax-c-ident-tests: Likewise.
17866         * modules/unictype/syntax-c-whitespace-tests: Likewise.
17867         * modules/unictype/syntax-java-ident-tests: Likewise.
17868         * modules/unictype/syntax-java-whitespace-tests: Likewise.
17869         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
17870         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
17871         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
17872         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
17873         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
17874         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
17875         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
17876         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
17877         * modules/uniname/uniname-tests: Likewise.
17878         * modules/uninorm/canonical-decomposition-tests: Likewise.
17879         * modules/uninorm/compat-decomposition-tests: Likewise.
17880         * modules/uninorm/composition-tests: Likewise.
17881         * modules/uninorm/decomposing-form-tests: Likewise.
17882         * modules/uninorm/decomposition-tests: Likewise.
17883         * modules/uninorm/filter-tests: Likewise.
17884         * modules/uninorm/nfc-tests: Likewise.
17885         * modules/uninorm/nfd-tests: Likewise.
17886         * modules/uninorm/nfkc-tests: Likewise.
17887         * modules/uninorm/nfkd-tests: Likewise.
17888         * modules/uninorm/u8-normcmp-tests: Likewise.
17889         * modules/uninorm/u8-normcoll-tests: Likewise.
17890         * modules/uninorm/u16-normcmp-tests: Likewise.
17891         * modules/uninorm/u16-normcoll-tests: Likewise.
17892         * modules/uninorm/u32-normcmp-tests: Likewise.
17893         * modules/uninorm/u32-normcoll-tests: Likewise.
17894         * modules/unistdio/u8-asnprintf-tests: Likewise.
17895         * modules/unistdio/u8-vasnprintf-tests: Likewise.
17896         * modules/unistdio/u8-vasprintf-tests: Likewise.
17897         * modules/unistdio/u8-vsnprintf-tests: Likewise.
17898         * modules/unistdio/u8-vsprintf-tests: Likewise.
17899         * modules/unistdio/u16-asnprintf-tests: Likewise.
17900         * modules/unistdio/u16-vasnprintf-tests: Likewise.
17901         * modules/unistdio/u16-vasprintf-tests: Likewise.
17902         * modules/unistdio/u16-vsnprintf-tests: Likewise.
17903         * modules/unistdio/u16-vsprintf-tests: Likewise.
17904         * modules/unistdio/u32-asnprintf-tests: Likewise.
17905         * modules/unistdio/u32-vasnprintf-tests: Likewise.
17906         * modules/unistdio/u32-vasprintf-tests: Likewise.
17907         * modules/unistdio/u32-vsnprintf-tests: Likewise.
17908         * modules/unistdio/u32-vsprintf-tests: Likewise.
17909         * modules/unistdio/ulc-asnprintf-tests: Likewise.
17910         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
17911         * modules/unistdio/ulc-vasprintf-tests: Likewise.
17912         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
17913         * modules/unistdio/ulc-vsprintf-tests: Likewise.
17914         * modules/unistr/u8-check-tests: Likewise.
17915         * modules/unistr/u8-chr-tests: Likewise.
17916         * modules/unistr/u8-cmp-tests: Likewise.
17917         * modules/unistr/u8-cmp2-tests: Likewise.
17918         * modules/unistr/u8-cpy-alloc-tests: Likewise.
17919         * modules/unistr/u8-cpy-tests: Likewise.
17920         * modules/unistr/u8-mblen-tests: Likewise.
17921         * modules/unistr/u8-mbsnlen-tests: Likewise.
17922         * modules/unistr/u8-mbtouc-tests: Likewise.
17923         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
17924         * modules/unistr/u8-mbtoucr-tests: Likewise.
17925         * modules/unistr/u8-move-tests: Likewise.
17926         * modules/unistr/u8-next-tests: Likewise.
17927         * modules/unistr/u8-prev-tests: Likewise.
17928         * modules/unistr/u8-set-tests: Likewise.
17929         * modules/unistr/u8-stpcpy-tests: Likewise.
17930         * modules/unistr/u8-stpncpy-tests: Likewise.
17931         * modules/unistr/u8-strcat-tests: Likewise.
17932         * modules/unistr/u8-strcmp-tests: Likewise.
17933         * modules/unistr/u8-strcoll-tests: Likewise.
17934         * modules/unistr/u8-strcpy-tests: Likewise.
17935         * modules/unistr/u8-strdup-tests: Likewise.
17936         * modules/unistr/u8-strlen-tests: Likewise.
17937         * modules/unistr/u8-strmblen-tests: Likewise.
17938         * modules/unistr/u8-strmbtouc-tests: Likewise.
17939         * modules/unistr/u8-strncat-tests: Likewise.
17940         * modules/unistr/u8-strncmp-tests: Likewise.
17941         * modules/unistr/u8-strncpy-tests: Likewise.
17942         * modules/unistr/u8-strnlen-tests: Likewise.
17943         * modules/unistr/u8-to-u16-tests: Likewise.
17944         * modules/unistr/u8-to-u32-tests: Likewise.
17945         * modules/unistr/u8-uctomb-tests: Likewise.
17946         * modules/unistr/u16-check-tests: Likewise.
17947         * modules/unistr/u16-chr-tests: Likewise.
17948         * modules/unistr/u16-cmp-tests: Likewise.
17949         * modules/unistr/u16-cmp2-tests: Likewise.
17950         * modules/unistr/u16-cpy-alloc-tests: Likewise.
17951         * modules/unistr/u16-cpy-tests: Likewise.
17952         * modules/unistr/u16-mblen-tests: Likewise.
17953         * modules/unistr/u16-mbsnlen-tests: Likewise.
17954         * modules/unistr/u16-mbtouc-tests: Likewise.
17955         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
17956         * modules/unistr/u16-mbtoucr-tests: Likewise.
17957         * modules/unistr/u16-move-tests: Likewise.
17958         * modules/unistr/u16-next-tests: Likewise.
17959         * modules/unistr/u16-prev-tests: Likewise.
17960         * modules/unistr/u16-set-tests: Likewise.
17961         * modules/unistr/u16-stpcpy-tests: Likewise.
17962         * modules/unistr/u16-stpncpy-tests: Likewise.
17963         * modules/unistr/u16-strcat-tests: Likewise.
17964         * modules/unistr/u16-strcmp-tests: Likewise.
17965         * modules/unistr/u16-strcoll-tests: Likewise.
17966         * modules/unistr/u16-strcpy-tests: Likewise.
17967         * modules/unistr/u16-strdup-tests: Likewise.
17968         * modules/unistr/u16-strlen-tests: Likewise.
17969         * modules/unistr/u16-strmblen-tests: Likewise.
17970         * modules/unistr/u16-strmbtouc-tests: Likewise.
17971         * modules/unistr/u16-strncat-tests: Likewise.
17972         * modules/unistr/u16-strncmp-tests: Likewise.
17973         * modules/unistr/u16-strncpy-tests: Likewise.
17974         * modules/unistr/u16-strnlen-tests: Likewise.
17975         * modules/unistr/u16-to-u32-tests: Likewise.
17976         * modules/unistr/u16-to-u8-tests: Likewise.
17977         * modules/unistr/u16-uctomb-tests: Likewise.
17978         * modules/unistr/u32-check-tests: Likewise.
17979         * modules/unistr/u32-chr-tests: Likewise.
17980         * modules/unistr/u32-cmp-tests: Likewise.
17981         * modules/unistr/u32-cmp2-tests: Likewise.
17982         * modules/unistr/u32-cpy-alloc-tests: Likewise.
17983         * modules/unistr/u32-cpy-tests: Likewise.
17984         * modules/unistr/u32-mblen-tests: Likewise.
17985         * modules/unistr/u32-mbsnlen-tests: Likewise.
17986         * modules/unistr/u32-mbtouc-tests: Likewise.
17987         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
17988         * modules/unistr/u32-mbtoucr-tests: Likewise.
17989         * modules/unistr/u32-move-tests: Likewise.
17990         * modules/unistr/u32-next-tests: Likewise.
17991         * modules/unistr/u32-prev-tests: Likewise.
17992         * modules/unistr/u32-set-tests: Likewise.
17993         * modules/unistr/u32-stpcpy-tests: Likewise.
17994         * modules/unistr/u32-stpncpy-tests: Likewise.
17995         * modules/unistr/u32-strcat-tests: Likewise.
17996         * modules/unistr/u32-strcmp-tests: Likewise.
17997         * modules/unistr/u32-strcoll-tests: Likewise.
17998         * modules/unistr/u32-strcpy-tests: Likewise.
17999         * modules/unistr/u32-strdup-tests: Likewise.
18000         * modules/unistr/u32-strlen-tests: Likewise.
18001         * modules/unistr/u32-strmblen-tests: Likewise.
18002         * modules/unistr/u32-strmbtouc-tests: Likewise.
18003         * modules/unistr/u32-strncat-tests: Likewise.
18004         * modules/unistr/u32-strncmp-tests: Likewise.
18005         * modules/unistr/u32-strncpy-tests: Likewise.
18006         * modules/unistr/u32-strnlen-tests: Likewise.
18007         * modules/unistr/u32-to-u16-tests: Likewise.
18008         * modules/unistr/u32-to-u8-tests: Likewise.
18009         * modules/unistr/u32-uctomb-tests: Likewise.
18010         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
18011         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
18012         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
18013         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
18014         * modules/uniwidth/u8-strwidth-tests: Likewise.
18015         * modules/uniwidth/u8-width-tests: Likewise.
18016         * modules/uniwidth/u16-strwidth-tests: Likewise.
18017         * modules/uniwidth/u16-width-tests: Likewise.
18018         * modules/uniwidth/u32-strwidth-tests: Likewise.
18019         * modules/uniwidth/u32-width-tests: Likewise.
18020         * modules/uniwidth/width-tests: Likewise.
18021
18022 2010-05-18  Richard Jones  <rjones@redhat.com>
18023
18024         doc: users.txt: list hivex
18025         * users.txt: Add hivex.
18026
18027 2010-05-18  Richard Jones  <rjones@redhat.com>
18028
18029         doc: users.txt: list febootstrap
18030         * users.txt: Add febootstrap.
18031
18032 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
18033
18034         bootstrap: fix an error when gnulib is not used as a git submodule
18035         * build-aux/bootstrap (gnulib_path): If its length is zero then
18036         assign "gnulib" to it.
18037         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
18038
18039 2010-05-16  Bruno Haible  <bruno@clisp.org>
18040
18041         Avoid autoconf warnings about AM_ICONV.
18042         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
18043         2.64.
18044
18045 2010-05-16  Bruno Haible  <bruno@clisp.org>
18046
18047         absolute-header: Make the macro usable in more situations.
18048         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
18049         from gl_ABSOLUTE_HEADER.
18050         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
18051
18052 2010-05-16  James Youngman  <jay@gnu.org>
18053
18054         doc: update users.txt
18055         * users.txt: Add CSSC.
18056
18057 2010-05-16  Jim Meyering  <meyering@redhat.com>
18058
18059         init.sh: fix an error in the previous change; add more comments
18060         * tests/init.sh: Compare exit code in loop against 9, not 2.
18061         Patch by Bruno Haible.
18062         Make the two tests more similar by adding an empty "then" clause.
18063         Add comments.
18064
18065         init.sh: avoid unnecessary shell re-exec
18066         * tests/init.sh: Improve the re-exec-required check to first test the
18067         current shell.  If it passes the test, do not search for a shell that
18068         does pass, and do not re-exec.  This test is particularly contorted to
18069         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
18070         of $(...) evokes a syntax error and causes immediate shell exit with
18071         status 2.  Bruno Haible reported that the re-exec made it impossible
18072         to single-step through any init.sh-using script.
18073
18074 2010-05-16  Bruno Haible  <bruno@clisp.org>
18075
18076         Fix collision between gnulib's and libintl's printf replacements.
18077         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
18078         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
18079         (printf): When using GNU C, map the __printf__ function to rpl_printf
18080         via __asm__. When not using GNU C, define rpl_printf instead of
18081         __printf__.
18082         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
18083         commit.
18084         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
18085         commit.
18086         * m4/asm-underscore.m4: New file.
18087         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
18088         * modules/stdio (Files): Add m4/asm-underscore.m4.
18089         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
18090         Reported by Ben Pfaff.
18091
18092 2010-05-16  Bruno Haible  <bruno@clisp.org>
18093
18094         verify: Avoid skipping the test on openSUSE 11.0.
18095         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
18096
18097 2010-05-13  Bruno Haible  <bruno@clisp.org>
18098
18099         Avoid useless warnings from G++.
18100         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
18101         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
18102         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
18103
18104 2010-05-11  Jim Meyering  <meyering@redhat.com>
18105
18106         maint.mk: tweak preceding change
18107         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
18108         regexps tighter by anchoring at EOL, and make the new group "shy"
18109         for slightly decreased overhead.
18110
18111 2010-05-11  Eric Blake  <eblake@redhat.com>
18112
18113         maint.mk: gnulib doesn't guarantee NSIG
18114         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
18115
18116 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
18117
18118         test-pwrite.c: Remove unused variable declaration.
18119         * tests/test-pwrite.c (main): Remove read_buf declaration.
18120
18121         Remove useless test-pwrite.sh file.
18122         * tests/test-pwrite.sh: Delete file.
18123         * modules/pwrite-tests: Remove references.
18124         Reported by Bruno Haible.
18125
18126 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
18127
18128         init.sh: fix a typo
18129         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
18130
18131 2010-05-10  Jim Meyering  <meyering@redhat.com>
18132
18133         maint.mk: avoid using a temporary file in the always-defined-macros check
18134         * top/maint.mk (.re-defmac): Remove rule.
18135         (gl_trap_): Remove definition.
18136         (sc_prohibit_always-defined_macros): Rewrite not to create and
18137         depend on a temporary file.  Instead, depend on GNU grep's ability
18138         to read a list of regular expressions from stdin when given "-f -".
18139
18140 2010-05-09  Bruno Haible  <bruno@clisp.org>
18141
18142         Update to GNU gettext 0.18, part 1.
18143         * m4/gettext.m4: Update to GNU gettext 0.18.
18144         * m4/intl.m4: Likewise.
18145         * m4/po.m4: Likewise.
18146         * modules/gettext (Files): Add m4/fcntl-o.m4.
18147         (configure.ac): Require gettext infrastructure from version 0.18.
18148
18149 2010-05-09  Jim Meyering  <meyering@redhat.com>
18150
18151         init.sh: enable MALLOC_PERTURB_
18152         * tests/init.sh: Enable glibc's malloc-perturbing option.
18153
18154         maint.mk: improve sc_cross_check_PATH_usage_in_tests
18155         With my recent change in init.sh from the two-line form:
18156             -#   : ${srcdir=.}
18157             -#   . "$srcdir/init.sh"; path_prepend_ .
18158             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
18159         I noticed that using the one-line form would cause this test
18160         to fail with a false-positive, or to stop working altogether,
18161         depending on whether help-version changed or all the tests did.
18162         * top/maint.mk (_hv_regex): Remove this definition.
18163         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
18164         (_hv_regex_strong): Use a stronger regex to check for conformance.
18165         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
18166         Give a separate diagnostic for lack of conforming use.
18167
18168         maint.mk: prohibit definition of symbols defined by gnulib
18169         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
18170         definition of symbols defined by gnulib.
18171
18172 2010-05-09  Bruno Haible  <bruno@clisp.org>
18173
18174         acl: Avoid test failure on Cygwin-hosted mingw.
18175         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
18176
18177 2010-05-09  Bruno Haible  <bruno@clisp.org>
18178
18179         error: Use system's fcntl function.
18180         * lib/error.c (fcntl): Undefine.
18181
18182 2010-05-09  Jim Meyering  <meyering@redhat.com>
18183
18184         verify: adjust formatting to be more consistent
18185         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
18186         argument-list '('s, and after one comma.
18187
18188 2010-05-09  Bruno Haible  <bruno@clisp.org>
18189
18190         error: More reliable output on mingw.
18191         * lib/error.c: Include <windows.h>.
18192         (is_open): New function.
18193         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
18194         defined.
18195
18196 2010-05-09  Bruno Haible  <bruno@clisp.org>
18197
18198         vasnprintf: Fix syntax errors in libintl build on mingw.
18199         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
18200         pad_ourselves and prec_ourselves after use.
18201
18202 2010-05-08  Bruno Haible  <bruno@clisp.org>
18203
18204         * lib/config.charset: Update comments for Cygwin 1.7.
18205         * lib/localcharset.c: Likewise.
18206
18207 2010-05-07  Jim Meyering  <meyering@redhat.com>
18208
18209         init.sh: improve comments
18210         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
18211         . "${srcdir=.}/init.sh"; path_prepend_ .
18212         Add a note about path_prepend_ and the alternative of using
18213         TESTS_ENVIRONMENT.
18214
18215 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
18216
18217         exclude: Unescape hashed patterns in wildcard mode.
18218         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
18219         to the hash list.
18220         * tests/test-exclude8.sh: New test case.
18221         * modules/exclude-tests: Add new test.
18222
18223 2010-05-05  Eric Blake  <eblake@redhat.com>
18224
18225         verify: automate tests
18226         * modules/verify-tests: New module.
18227         * tests/test-verify.sh: New file.
18228         * tests/test-verify.c: Guard each negative test with a unique id.
18229         Also avoid warning about unused left hand of comma expressions.
18230
18231 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
18232
18233         Further improvements to verify.h, suggested by Eric Blake.
18234         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
18235         the GL_* versions, to avoid collision with OpenGL.
18236         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
18237         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
18238         than testing merely whether it's defined.
18239
18240         Modify verify.h to pacify gcc -Wredundant_decls.
18241         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
18242         These use the prefix "GL_" since they're likely to be useful elsewhere.
18243         We may need to break them out into a different .h file.
18244         (__COUNTER__): Define to 0 if the compiler doesn't support it.
18245         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
18246         of verify_function__.
18247
18248 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
18249
18250         Tests for module pwrite.
18251         * modules/pwrite-tests: New file.
18252         * tests/test-pwrite.sh: New file.
18253         * tests/test-pwrite.c: New file.
18254
18255         New module pwrite.
18256         * lib/unistd.in.h (pwrite): New declaration.
18257         * lib/pwrite.c: New file, from glibc with modifications.
18258         * m4/pwrite.m4: New file.
18259         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
18260         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
18261         REPLACE_PWRITE.
18262         * modules/pwrite: New file.
18263         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
18264         REPLACE_PWRITE.
18265         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
18266         * doc/posix-functions/pwrite.texi: Mention the new module.
18267
18268 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
18269
18270         pread: Update documentation.
18271         * doc/posix-functions/pread.texi: Mention the 'pread' module.
18272
18273 2010-05-04  Eric Blake  <eblake@redhat.com>
18274
18275         docs: update cygwin progress
18276         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
18277         this bug.
18278         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
18279         Added in cygwin 1.7.2.
18280         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
18281         Likewise.
18282         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
18283         Likewise.
18284         * doc/glibc-functions/dup3.texi (dup3): Likewise.
18285         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
18286         * doc/glibc-functions/accept4.texi (accept4): Likewise.
18287         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
18288         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
18289         Mention nproc module.
18290         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
18291         bug in cygwin 1.7.5 addition.
18292         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
18293         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
18294         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
18295         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
18296         1.7.5.
18297         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
18298         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
18299         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
18300         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
18301         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
18302         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
18303         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
18304         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
18305         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
18306         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
18307         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
18308         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
18309         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
18310         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
18311         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
18312         Likewise.
18313         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
18314         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
18315         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
18316         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
18317         Likewise.
18318         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
18319         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
18320         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
18321         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
18322         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
18323         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
18324         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
18325         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
18326         Likewise.
18327         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
18328         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
18329         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
18330         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
18331         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
18332         Likewise.
18333         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
18334         Likewise.
18335         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
18336         Likewise.
18337         * doc/glibc-functions/xdrrec_endofrecord.texi
18338         (xdrrec_endofrecord): Likewise.
18339         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
18340         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
18341         Likewise.
18342         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
18343         Likewise.
18344
18345 2010-05-04  Jim Meyering  <meyering@redhat.com>
18346
18347         gendocs.sh: make its "-s FILE" option more useful
18348         * build-aux/gendocs.sh: When honoring the -s FILE option, update
18349         $PACKAGE to reflect the probably-different basename of "FILE".
18350
18351 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
18352
18353         bootstrap: don't ignore download_po_files failure
18354         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
18355         failure.
18356
18357 2010-05-03  Jim Meyering  <meyering@redhat.com>
18358
18359         maint.mk: allow to pass options to gendocs.sh
18360         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
18361         (gendocs_options_): New overridable variable.
18362
18363         gnu-web-doc-update: don't ignore configure or build failure
18364         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
18365
18366         announce-gen: backslash-escape '@'s in --help output
18367         * build-aux/announce-gen: Fix syntax errors.
18368
18369         maint.mk, announce-gen: allow project-specific announcement mail headers
18370         * top/maint.mk (translation_project_): Define default.
18371         (announcement_Cc_, announcement_mail_headers_): Likewise.
18372         (announcement): Invoke announce-gen with new --mail-headers option.
18373         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
18374
18375         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
18376         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
18377         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
18378         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
18379         line in the "err2" output file when running "make check" in verbose
18380         mode (i.e., with set -x enabled).
18381
18382 2010-05-03  Bruno Haible  <bruno@clisp.org>
18383
18384         wctob: Fix for weird platforms.
18385         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
18386         argument value.
18387
18388 2010-05-03  Jim Meyering  <meyering@redhat.com>
18389
18390         maint.mk: prohibit unwarranted use of <strings.h>
18391         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
18392         strings.h in a file that does not also use strcasecmp, strncasecmp,
18393         ffs or ffsll.
18394
18395         maint.mk: remove obsolete comments
18396         * top/maint.mk: Remove stale, commented-out rules.
18397
18398 2010-05-02  Bruno Haible  <bruno@clisp.org>
18399
18400         wcwidth: Declare also when it's aliased.
18401         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
18402         macro.
18403
18404 2010-05-02  Bruno Haible  <bruno@clisp.org>
18405
18406         Fix regression from 2010-04-25.
18407         * gnulib-tool (func_modules_transitive_closure): Check the status of
18408         all modules, not only of the tests that are of the form foo-tests where
18409         foo is a module.
18410
18411 2010-05-02  Bruno Haible  <bruno@clisp.org>
18412
18413         wctob: Work around nasty Cygwin 1.7.2 bug.
18414         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
18415         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
18416
18417 2010-05-01  Bruno Haible  <bruno@clisp.org>
18418
18419         fpurge: Sharper test.
18420         * tests/test-fpurge.c (main): Add one more ftell check.
18421         * modules/fpurge-tests (Depends-on): Add ftell.
18422         Suggested by Eric Blake.
18423
18424 2010-05-01  Bruno Haible  <bruno@clisp.org>
18425
18426         ftello: Another test.
18427         * tests/test-ftello3.c: New file.
18428         * modules/ftello-tests (Files): Add it.
18429         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
18430         MOSTLYCLEANFILES.
18431
18432         ftell: Another test.
18433         * tests/test-ftell3.c: New file.
18434         * modules/ftell-tests (Files): Add it.
18435         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
18436         MOSTLYCLEANFILES.
18437
18438 2010-05-01  Bruno Haible  <bruno@clisp.org>
18439
18440         ftell, ftello: Work around Solaris bug.
18441         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
18442         * lib/ftello.c: Include stdio-impl.h.
18443         (ftello): On Solaris, when _IOWRT is set, compute the result without
18444         looking at _IOREAD.
18445         * modules/ftello (Files): Add lib/stdio-impl.h.
18446         * doc/posix-functions/ftell.texi: Mention Solaris bug.
18447         * doc/posix-functions/ftello.texi: Likewise.
18448         Reported by Eric Blake.
18449
18450 2010-05-01  Bruno Haible  <bruno@clisp.org>
18451
18452         freading: Adapt to special meaning of _IOREAD flag on Solaris.
18453         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
18454         the _IOWRT flag is also set.
18455
18456 2010-05-01  Bruno Haible  <bruno@clisp.org>
18457
18458         Fix doc about a HP-UX stdio bug.
18459         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
18460         * doc/posix-functions/ftello.texi: Likewise.
18461
18462 2010-05-01  Bruno Haible  <bruno@clisp.org>
18463
18464         lseek test: Fix failure on Solaris.
18465         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
18466         output.
18467
18468 2010-04-30  Jim Meyering  <meyering@redhat.com>
18469
18470         bootstrap: don't ignore failure to generate po*/Makevars
18471         * build-aux/bootstrap (with_gettext): Don't ignore failure
18472         to create po/Makevars or runtime-po/Makevars.
18473
18474 2010-04-29  Eric Blake  <eblake@redhat.com>
18475
18476         headers: relax license to LGPLv2+
18477         * modules/fcntl-h (License): Relax license.
18478         * modules/getopt-posix (License): Likewise.
18479         * modules/locale (License): Likewise.
18480         * modules/math (License): Likewise.
18481         * modules/pty (License): Likewise.
18482         * modules/sched (License): Likewise.
18483         * modules/search (License): Likewise.
18484         * modules/spawn (License): Likewise.
18485         * modules/stdarg (License): Likewise.
18486         * modules/sysexits (License): Likewise.
18487
18488 2010-04-29  Jim Meyering  <meyering@redhat.com>
18489
18490         inttypes: relax license to LGPLv2+
18491         * modules/inttypes (License): Relax license.
18492
18493 2010-04-29  Simon Josefsson  <simon@josefsson.org>
18494
18495         * top/maint.mk (indent): Run twice to produce idempotent results.
18496
18497 2010-04-28  Bruno Haible  <bruno@clisp.org>
18498
18499         getdate: Generate getdate.c in the source directory.
18500         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
18501         MOSTLYCLEANFILES.
18502         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
18503
18504 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
18505
18506         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
18507         is not declared as a const *; avoid warnings in that case.
18508
18509 2010-04-28  Eric Blake  <eblake@redhat.com>
18510
18511         canonicalize-lgpl: avoid compiler warning
18512         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
18513         declaration' / 'extraneous semicolon' warning with some compilers.
18514         Reported by Andreas Gruenbacher.
18515
18516 2010-04-28  Jim Meyering  <meyering@redhat.com>
18517
18518         init.sh: ensure a more reliable exit status when exiting via trap
18519         * tests/init.sh (setup_): Don't rely on $? in signal handler.
18520         Inspired by patches from Dmitry V. Levin.
18521         Also trap on signal 3 (SIGQUIT).
18522
18523 2010-04-27  Bruno Haible  <bruno@clisp.org>
18524
18525         Update doc about utimes().
18526         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
18527         'utimens' module.
18528         Reported by Andreas Gruenbacher <agruen@suse.de>.
18529
18530 2010-04-27  Eric Blake  <eblake@redhat.com>
18531
18532         full-read, full-write: relax license
18533         * modules/full-read (License): Drop to LGPLv2+.
18534         * modules/full-write (License): Likewise.
18535         * modules/safe-read (License): Likewise.
18536         * modules/safe-write (License): Likewise.
18537
18538         pthread: mention library for linking
18539         * modules/pthread (Link): Mention $(LIB_PTHREAD).
18540
18541 2010-04-27  Jim Meyering  <meyering@redhat.com>
18542
18543         maint.mk: fix a bug introduced in last change
18544         * top/maint.mk (gl_assured_headers_): Now that all names are on
18545         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
18546         is not anchored to end of word, it should be adequate.
18547
18548         maint.mk: avoid side-effect in latest syntax-check
18549         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
18550         to run commands via $(shell...), and hence to incur cost only when
18551         the new rule is actually run.
18552
18553         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
18554         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
18555         and use that to create a regexp used to detect all #if HAVE_..._H uses.
18556         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
18557         (gl_assured_headers_, az_, AZ_): Define.
18558         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
18559
18560 2010-04-26  Jim Meyering  <jim@meyering.net>
18561             Bruno Haible  <bruno@clisp.org>
18562
18563         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
18564         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
18565         Prompted by an exchange with Gilles Espinasse.
18566
18567 2010-04-26  Jim Meyering  <meyering@redhat.com>
18568
18569         git-version-gen: aesthetic tweak
18570         * build-aux/git-version-gen: Use "$nl" rather than a literal,
18571         so that the command remains on a single line.
18572
18573 2010-04-26  Eric Blake  <eblake@redhat.com>
18574
18575         git-version-gen: allow use on EBCDIC hosts
18576         * build-aux/git-version-gen (dirty): Use literal rather than tying
18577         ourselves to ascii.
18578         Reported by Steve Goetze.
18579
18580 2010-04-25  Bruno Haible  <bruno@clisp.org>
18581
18582         netdb: Add support for GNULIB_POSIXCHECK.
18583         * lib/netdb.in.h: Include warn-on-use.h.
18584         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
18585         functions are used when GNULIB_POSIXCHECK is defined and the
18586         getaddrinfo module is not in use.
18587         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
18588         freeaddrinfo, gai_strerror, getnameinfo are declared.
18589         * modules/netdb (Depends-on): Add warn-on-use.
18590         (Makefile.am): Include warn-on-use.h in netdb.h.
18591
18592 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
18593
18594         build: avoid "make check" failure without .git/ directory
18595         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
18596         there is no .git/ directory.
18597
18598 2010-04-25  Bruno Haible  <bruno@clisp.org>
18599
18600         ptsname: Fix misuse of ttyname_r.
18601         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
18602         of errno.
18603
18604 2010-04-25  Bruno Haible  <bruno@clisp.org>
18605
18606         ttyname_r: Make it work on Solaris 10.
18607         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
18608         if the system function has the POSIX declaration. Test whether the
18609         function fails if the buffer is less than 128 bytes large.
18610         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
18611         system's ttyname_r function. Provide a reasonably large buffer.
18612         * modules/ttyname_r (Depends-on): Add extensions.
18613         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
18614
18615 2010-04-25  Bruno Haible  <bruno@clisp.org>
18616
18617         Use the 'extensions' module for some more functions on Solaris.
18618         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
18619         module.
18620         * doc/posix-functions/ctime_r.texi: Likewise.
18621         * doc/posix-functions/getgrgid_r.texi: Likewise.
18622         * doc/posix-functions/getgrnam_r.texi: Likewise.
18623         * doc/posix-functions/getpwnam_r.texi: Likewise.
18624         * doc/posix-functions/getpwuid_r.texi: Likewise.
18625         * doc/posix-functions/readdir_r.texi: Likewise.
18626         * doc/posix-functions/sigwait.texi: Likewise.
18627         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
18628         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
18629
18630 2010-04-25  Bruno Haible  <bruno@clisp.org>
18631
18632         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
18633         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
18634         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
18635         * lib/ttyname_r.c: Include <limits.h>.
18636         (ttyname_r): Define using the system's ttyname_r function, if it exists
18637         and not on Solaris.
18638         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
18639         set.
18640         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
18641         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
18642         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
18643         Reported by Simon Josefsson.
18644
18645 2010-04-25  Bruno Haible  <bruno@clisp.org>
18646
18647         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
18648         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
18649         * doc/posix-functions/ctime_r.texi: Likewise.
18650         * doc/posix-functions/getgrgid_r.texi: Likewise.
18651         * doc/posix-functions/getgrnam_r.texi: Likewise.
18652         * doc/posix-functions/getlogin_r.texi: Likewise.
18653         * doc/posix-functions/getpwnam_r.texi: Likewise.
18654         * doc/posix-functions/getpwuid_r.texi: Likewise.
18655         * doc/posix-functions/readdir_r.texi: Likewise.
18656         * doc/posix-functions/sigwait.texi: Likewise.
18657         * doc/posix-functions/ttyname_r.texi: Likewise.
18658         Reported by Simon Josefsson.
18659
18660 2010-04-25  Bruno Haible  <bruno@clisp.org>
18661
18662         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
18663         * gnulib-tool (func_usage): Document that --with-*-tests options apply
18664         also to --create-testdir.
18665         (func_acceptable): Don't consider the status of *-tests modules here.
18666         (func_modules_transitive_closure): Consider it here, before including a
18667         test module.
18668         (func_import, func_create_testdir): Set inc_all_direct_tests,
18669         inc_all_indirect_tests.
18670         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
18671         --create-testdir and --create-megatestdir.
18672
18673 2010-04-25  Bruno Haible  <bruno@clisp.org>
18674
18675         gnulib-tool: Add --without-*-tests options.
18676         * gnulib-tool (func_usage): Document the --without-*-tests options.
18677         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
18678         excl_unportable_tests): New variables.
18679         Fail if they are specified with --import or --update.
18680         (func_acceptable): Respect the excl_*_tests variables.
18681         (func_import): Set the excl_*_tests variables to empty.
18682
18683 2010-04-25  Simon Josefsson  <simon@josefsson.org>
18684             Bruno Haible  <bruno@clisp.org>
18685
18686         Work around a MacOS X 10.4 bug with openpty.
18687         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
18688         * tests/test-openpty.c (main): Close the master side explicitly.
18689
18690 2010-04-25  Bruno Haible  <bruno@clisp.org>
18691
18692         strnlen: Fix a C++ test error on MacOS X and Solaris.
18693         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
18694         the function is not declared.
18695         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
18696         Simon Josefsson.
18697
18698 2010-04-24  Bruno Haible  <bruno@clisp.org>
18699
18700         Avoid a gcc warning.
18701         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
18702         of correct type for %08lx directive.
18703         Reported by Eric Blake.
18704
18705 2010-04-24  Bruno Haible  <bruno@clisp.org>
18706
18707         vasnprintf: Correct errno value in case of out-of-memory.
18708         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
18709         or sprintf. Use the errno value from SNPRINTF or sprintf.
18710         Reported by Ian Beckwith <ianb@erislabs.net>.
18711
18712 2010-04-24  Bruno Haible  <bruno@clisp.org>
18713
18714         ansi-c++-opt: Find correct compiler when cross-compiling.
18715         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
18716         AC_CHECK_PROGS.
18717         Reported by Simon Josefsson.
18718
18719 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
18720
18721         vc-list-files: Add support for subversion
18722         * build-aux/vc-list-files: Use "svn list" to generate the list of
18723         files controlled by subversion.
18724
18725 2010-04-23  Jim Meyering  <meyering@redhat.com>
18726
18727         vc-list-files tests: convert to use init.sh
18728         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
18729         path_prepend_.
18730         Use Exit, not exit.
18731         Use skip_ rather than open coding it.
18732         Remove trap set-up and compare definitions.
18733         * tests/test-vc-list-files-git.sh: Likewise.
18734         * modules/vc-list-files-tests (Files): Add tests/init.sh.
18735
18736 2010-04-22  Simon Josefsson  <simon@josefsson.org>
18737
18738         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
18739         backup files.
18740
18741 2010-04-21  Simon Josefsson  <simon@josefsson.org>
18742
18743         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
18744
18745 2010-04-20  Eric Blake  <eblake@redhat.com>
18746
18747         tests: be robust to ignored SIGPIPE
18748         * tests/test-select-in.sh: Consume all output.
18749         * tests/test-lseek.sh: Check correct exit status, while avoiding
18750         EPIPE.
18751
18752 2010-04-20  Simon Josefsson  <simon@josefsson.org>
18753             Bruno Haible  <bruno@clisp.org>
18754
18755         visibility: Don't use -fvisibility if it leads to a warning.
18756         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
18757         yes, don't pretend that visibility works if it leads to a warning.
18758         Reported by Mike Gran <spk121@yahoo.com>.
18759
18760 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
18761
18762         * build-aux/bootstrap: Use "git -h" for testing for supported options
18763         instead of "git --help".  The short-form option only shows a summary,
18764         and doesn't layout the full man page.  Grep for the full option name
18765         in the summary, too.
18766
18767 2010-04-19  Bruno Haible  <bruno@clisp.org>
18768
18769         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
18770         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
18771         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
18772         mention of RELOCATABLE_STRIP.
18773         Reported by Sylvain Beucler <beuc@beuc.net>.
18774
18775 2010-04-19  Bruno Haible  <bruno@clisp.org>
18776
18777         * lib/diffseq.h: Fix typo in comment.
18778         Reported by Eric Blake.
18779
18780 2010-04-19  Bruno Haible  <bruno@clisp.org>
18781
18782         ioctl: Move autoconf macro to a .m4 file.
18783         * m4/ioctl.m4: New file, extracted from modules/ioctl.
18784         * modules/ioctl (Files): Add it.
18785         (configure.ac): Simply invoke gl_FUNC_IOCTL.
18786         Reported by Ian Beckwith <ianb@erislabs.net>.
18787
18788 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
18789             Bruno Haible  <bruno@clisp.org>
18790
18791         diffseq: Accommodate use-case with abstract arrays.
18792         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
18793         is not defined.
18794         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
18795         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
18796
18797 2010-04-18  Bruno Haible  <bruno@clisp.org>
18798
18799         * doc/posix-headers/stdbool.texi: More precise wording.
18800
18801 2010-04-17  Jim Meyering  <meyering@redhat.com>
18802
18803         maint.mk: use gnu-style indentation in an embedded perl script
18804         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
18805         Rename variable: s/two/last_two_bytes/
18806
18807 2010-04-16  Eric Blake  <eblake@redhat.com>
18808
18809         test-stdbool: skip test that fails with Solaris CC
18810         * tests/test-stdbool.c (f): Skip test that causes compilation
18811         error under buggy C++ compiler.
18812         * lib/stdbool.in.h: Document the limitation.
18813         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
18814
18815         setenv: allow compilation with C++
18816         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
18817         register keyword.
18818
18819         stdint: allow test to pass with C++
18820         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
18821
18822         getopt: allow compilation with C++
18823         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
18824         struct.
18825         * lib/getopt.c (_getopt_internal_r): Use correct type.
18826         Reported by Dagobert Michelson, via Joel E. Denny.
18827
18828 2010-04-16  Bruno Haible  <bruno@clisp.org>
18829
18830         Override netdb.h always.
18831         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
18832         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
18833         Reported by Ludovic Courtès <ludo@gnu.org>.
18834
18835 2010-04-15  Bruno Haible  <bruno@clisp.org>
18836
18837         openpty: Fix mistake from 2010-03-21.
18838         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
18839         Reported by Simon Josefsson.
18840
18841 2010-04-15  Eric Blake  <eblake@redhat.com>
18842
18843         test-forkpty: fix expected signature
18844         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
18845         Reported by Simon Josefsson.
18846
18847 2010-04-15  Jim Meyering  <meyering@redhat.com>
18848
18849         maint.mk: texinfo_suffix_re_: correct the default regexp
18850         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
18851
18852         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
18853         make it configurable via texinfo_suffix_re_.
18854
18855 2010-04-14  Eric Blake  <eblake@redhat.com>
18856
18857         strtok_r: relax license to LGPLv2+
18858         * modules/strtok_r (License): Relax license.
18859         Reported by Matthias Bolte.
18860
18861 2010-04-14  Simon Josefsson  <simon@josefsson.org>
18862
18863         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
18864         version 1.4.4 by default instead of requiring the libgcrypt
18865         version used during build.  This makes it possible to use the
18866         application with older but still binary compatible libgcrypt
18867         versions.
18868
18869 2010-04-13  Eric Blake  <eblake@redhat.com>
18870
18871         getopt-gnu: match recent glibc fixes and posix ruling
18872         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
18873         '+' handling, when requesting extensions.
18874         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
18875         'W;' handling.
18876         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
18877         * doc/posix-functions/getopt.texi (getopt): Document this.
18878         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
18879         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
18880         Likewise.
18881
18882         getopt: merge bug fixes from glibc
18883         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
18884         diagnostics.  Honor '+:' correctly.  Reject ';'.
18885
18886         getopt-posix: detect MacOS bug
18887         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
18888         optind when missing a required argument.
18889         * doc/posix-functions/getopt.texi (getopt): Document the bug.
18890         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
18891         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
18892         Likewise.
18893
18894         getopt-posix: avoid spurious failure on Solaris
18895         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
18896         an indicator that setting optind=1 is sufficient for reset.
18897
18898         getopt-posix: avoid spurious failure on FreeBSD
18899         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
18900         in POSIX mode, since the m4 test uses it.
18901
18902         gnulib-tool: silence warning on BSD sh
18903         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
18904
18905 2010-04-13  Jim Meyering  <meyering@redhat.com>
18906
18907         doc: users.txt: GNU patch now uses gnulib
18908         * users.txt: Add patch.
18909
18910 2010-04-12  Jim Meyering  <meyering@redhat.com>
18911
18912         maint.mk: generate more concise timing data for syntax-check rules
18913         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
18914         " done" from each line that reports a syntax-check test duration.
18915
18916 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
18917
18918         git-version-gen: use "git update-index..." rather than "git status"
18919         * build-aux/git-version-gen: Use git update-index --refresh, not
18920         "git status".  With some versions of git, "git status" would fail
18921         to update the index and result in an unwarranted "-dirty" suffix.
18922
18923 2010-04-11  Jim Meyering  <meyering@redhat.com>
18924
18925         openat: correct formatting (no semantic change)
18926         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
18927         Suggested by Bruno Haible.
18928
18929 2010-04-11  Bruno Haible  <bruno@clisp.org>
18930
18931         Stricter declaration checking in testdirs.
18932         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
18933         If for_tests is true, augment AM_CPPFLAGS to define
18934         GNULIB_STRICT_CHECKING.
18935         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
18936         GNULIB_STRICT_CHECKING is defined, verify that the function is
18937         declared.
18938
18939 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
18940             Bruno Haible  <bruno@clisp.org>
18941
18942         libunistring: Improve configure output.
18943         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
18944         Don't say "consider installing GNU libunistring" when checking again
18945         with libiconv.
18946
18947 2010-04-11  Bruno Haible  <bruno@clisp.org>
18948
18949         libunistring: Correct value of $LTLIBUNISTRING.
18950         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
18951         correct the value of $LTLIBUNISTRING.
18952
18953 2010-04-11  Bruno Haible  <bruno@clisp.org>
18954
18955         havelib: Add static libraries to LIBS in the right order.
18956         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
18957         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
18958
18959 2010-04-11  Bruno Haible  <bruno@clisp.org>
18960
18961         libunistring: Detect libunistring also when it depends on libiconv.
18962         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
18963         the second AC_LIB_HAVE_LINKFLAGS invocation.
18964
18965 2010-04-11  James Youngman  <jay@gnu.org>
18966
18967         close-stream: declare local scalars to be "const"
18968         * lib/close-stream.c (close_stream): Make boolean variables const
18969         to document the fact that we set but do not change them.
18970
18971 2010-04-11  Bruno Haible  <bruno@clisp.org>
18972
18973         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
18974
18975 2010-04-11  Jim Meyering  <meyering@redhat.com>
18976
18977         maint.mk: don't include dist-check.mk
18978         * top/maint.mk: Remove bogus include directive.
18979
18980         maint.mk: improve empty-line-at-EOF check
18981         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
18982         solution, rather than tail+Perl-based one.  The latter would read
18983         a few kilobytes from the end of each file, and did not handle empty
18984         files properly.
18985
18986         maint.mk: print the elapsed time for each syntax-check rule
18987         * top/maint.mk (sc_m_rules_): Save start time in a file.
18988         (sc_z_rules_): New rules: remove temp file and print elapsed time.
18989         (local-check): Interpose the .z rules
18990
18991 2010-04-11  Jim Meyering  <meyering@redhat.com>
18992
18993         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
18994         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
18995         empty file with one that ends in an empty line.
18996
18997 2010-04-10  Bruno Haible  <bruno@clisp.org>
18998
18999         mkdir: Make it work on mingw64.
19000         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
19001         * lib/mkdir.c: Update comment.
19002         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
19003
19004 2010-04-10  Bruno Haible  <bruno@clisp.org>
19005
19006         Don't override improved macro from newer autoconf.
19007         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
19008         autoconf >= 2.62.
19009         Reported by Joel E. Denny <jdenny@clemson.edu>.
19010
19011 2010-04-10  Jim Meyering  <meyering@redhat.com>
19012
19013         maint.mk: new syntax-check rule: prohibit empty lines at end of file
19014         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
19015
19016         maint.mk: correct a diagnostic
19017         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
19018         in diagnostic; now use $prohibit.
19019
19020 2010-04-10  Bruno Haible  <address@hidden>
19021
19022         fchownat: Fix a C++ test error on Solaris 8.
19023         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
19024         the function does not exist.
19025
19026 2010-04-10  Bruno Haible  <bruno@clisp.org>
19027
19028         vasnprintf: Add more tests.
19029         * tests/test-vasnprintf-posix.c: Include <errno.h>.
19030         (test_function): Test converting an invalid wide string.
19031
19032         vasnprintf: Correct handling of unconvertible wide string arguments.
19033         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
19034         VASNPRINTF.
19035         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
19036         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
19037         smaller than the expected maximum need for the directive. Set errno to
19038         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
19039         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
19040         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
19041         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
19042         * modules/vasnprintf (Files): Add m4/printf.m4.
19043         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
19044
19045 2010-04-10  Bruno Haible  <bruno@clisp.org>
19046
19047         vasnprintf: Fix crash in %ls directive.
19048         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
19049         string is passed as argument to %ls, with no precision and no width.
19050         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
19051
19052 2010-04-10  Bruno Haible  <bruno@clisp.org>
19053
19054         vasnprintf: Fix multiple test failures on mingw.
19055         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
19056         _snprintf, or snwprintf, not _snwprintf.
19057
19058 2010-04-10  Bruno Haible  <bruno@clisp.org>
19059
19060         write: Fix a C++ test error on mingw.
19061         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
19062
19063 2010-04-10  Bruno Haible  <bruno@clisp.org>
19064
19065         vasnprintf test: Reduce code duplication.
19066         * tests/test-vasnprintf.c (test_function): New function, extracted from
19067         test_vasnprintf.
19068         (test_vasnprintf, test_asnprintf): Invoke it.
19069
19070 2010-04-10  Bruno Haible  <bruno@clisp.org>
19071
19072         strnlen: Fix warning in C++ mode on MacOS X.
19073         * lib/string.in.h (strnlen): Use the modern idiom.
19074         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
19075         defining strnlen as a macro already in <config.h>.
19076         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
19077         REPLACE_STRNLEN.
19078         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
19079         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
19080
19081 2010-04-08  James Youngman  <jay@gnu.org>
19082
19083         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
19084         the example.
19085
19086 2010-04-09  Jim Meyering  <meyering@redhat.com>
19087
19088         maint.mk: print better diagnostic when there is no $(_hv_file)
19089         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
19090         announce that when $(_hv_file) (aka help-version) does not exist.
19091
19092         init.sh: run tr in the "C" locale to avoid multibyte interpretation
19093         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
19094         not try to interpret its random input bytes.  Jarno Rajahalme reported
19095         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
19096         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
19097         (mktempd_): Likewise, just in case.
19098
19099         ftruncate: add two years to projected module removal date: 2012
19100         * m4/ftruncate.m4: Adjust comments.
19101
19102         ftruncate: mark module as obsolete; even MinGW provides it, now
19103         * modules/ftruncate (Status): Obsolete.
19104         (Notice): Say that.
19105         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
19106         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
19107
19108 2010-04-08  Bruno Haible  <bruno@clisp.org>
19109
19110         Fix side effects from tests-related modules.
19111         * modules/dprintf-posix (Comment): New section.
19112         * modules/fprintf-posix (Comment): Likewise.
19113         * modules/obstack-printf-posix (Comment): Likewise.
19114         * modules/printf-posix (Comment): Likewise.
19115         * modules/snprintf-posix (Comment): Likewise.
19116         * modules/sprintf-posix (Comment): Likewise.
19117         * modules/vasnprintf-posix (Comment): Likewise.
19118         * modules/vasprintf-posix (Comment): Likewise.
19119         * modules/vdprintf-posix (Comment): Likewise.
19120         * modules/vfprintf-posix (Comment): Likewise.
19121         * modules/vprintf-posix (Comment): Likewise.
19122         * modules/vsnprintf-posix (Comment): Likewise.
19123         * modules/vsprintf-posix (Comment): Likewise.
19124         * modules/xprintf-posix (Comment): Likewise.
19125         * modules/xvasprintf-posix (Comment): Likewise.
19126         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
19127         * modules/floorf-tests (Depends-on): Likewise.
19128         * modules/round-tests (Depends-on): Likewise.
19129         * modules/roundf-tests (Depends-on): Likewise.
19130         * modules/trunc-tests (Depends-on): Likewise.
19131         * modules/truncf-tests (Depends-on): Likewise.
19132         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
19133         'fprintf-posix' module is not present.
19134         * tests/test-floorf2.c (check): Likewise.
19135         * tests/test-trunc2.c (check): Likewise.
19136         * tests/test-truncf2.c (check): Likewise.
19137         * tests/test-round2.c (equal): Likewise.
19138         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
19139
19140 2010-04-07  Karl Berry  <karl@gnu.org>
19141
19142         * config/srclist.txt,
19143         * config/srclistvars.sh,
19144         * config/srclist-update: doc fixes.
19145
19146 2010-04-07  Jim Meyering  <meyering@redhat.com>
19147
19148         maint.mk: add a PATH crosschecking syntax-check rule
19149         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
19150         Useful if you use a test like the one in help-version (coreutils,
19151         diffutils, grep, gzip) that ensures $(VERSION) matches what is
19152         printed by prog --version.
19153
19154 2010-04-06  Bruno Haible  <bruno@clisp.org>
19155
19156         Fix link error on mingw.
19157         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
19158         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
19159
19160 2010-04-06  Bruno Haible  <bruno@clisp.org>
19161
19162         Assume rmdir exists.
19163         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
19164
19165 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
19166
19167         doc: update users.txt
19168         * users.txt: Add gcal.
19169
19170 2010-04-06  Jim Meyering  <meyering@redhat.com>
19171
19172         init.sh: simply unset TMPDIR rather than risking env -i
19173         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
19174         although it probably works fine on all Unix-based systems, some
19175         systems (Cygwin?) cannot tolerate a totally cleared environment.
19176         Suggestion from Eric Blake.
19177
19178 2010-04-06  Jim Meyering  <meyering@redhat.com>
19179
19180         init.sh: portability fix: use env's POSIX-specified -i option not -u
19181         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
19182         than unportable env -u.  Solaris 5.11's env lacks support for -u.
19183
19184 2010-04-05  Bruno Haible  <bruno@clisp.org>
19185
19186         btowc: Work around Cygwin 1.7.2 bug.
19187         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
19188         does not map NUL to 0.
19189         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
19190
19191 2010-04-05  Bruno Haible  <bruno@clisp.org>
19192
19193         Make the multithread modules work on Cygwin 1.7.2.
19194         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
19195         imported symbols can be declared weak, so that it returns "no" on
19196         Cygwin 1.7.2.
19197
19198 2010-04-05  Bruno Haible  <bruno@clisp.org>
19199
19200         Use the module 'strncat'.
19201         * modules/unistr/u8-strncat (Depends-on): Add strncat.
19202
19203         Tests for module 'strncat'.
19204         * modules/strncat-tests: New file.
19205         * tests/test-strncat.c: New file.
19206
19207         New module 'strncat'.
19208         * lib/string.in.h (strncat): New declaration.
19209         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
19210         * m4/strncat.m4: New file, based on m4/memchr.m4.
19211         * modules/strncat: New file.
19212         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
19213         is declared.
19214         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
19215         REPLACE_STRNCAT.
19216         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
19217         REPLACE_STRNCAT.
19218         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
19219         module.
19220         * tests/test-string-c++.cc: Check signature of strncat.
19221
19222 2010-04-05  Jim Meyering  <meyering@redhat.com>
19223
19224         xstrtoumax-tests: convert to use init.sh
19225         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
19226         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
19227         Use Exit, not exit.
19228         Remove uses of $EXEEXT and "./" to run a program in the current dir.
19229
19230         xstrtoimax-tests: convert to use init.sh
19231         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
19232         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
19233         Use Exit, not exit.
19234         Remove uses of $EXEEXT and "./" to run a program in the current dir.
19235
19236 2010-04-05  Bruno Haible  <bruno@clisp.org>
19237
19238         sys_socket: Avoid #define replacements in C++ mode.
19239         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
19240         warning to the function if possible, rather than #defining the symbol
19241         to a dysfunctional alias.
19242
19243 2010-04-05  Bruno Haible  <bruno@clisp.org>
19244
19245         fseeko: Fix C++ test error on mingw.
19246         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
19247         gl_FUNC_FSEEKO.
19248         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
19249         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
19250         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
19251         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
19252
19253 2010-04-05  Bruno Haible  <bruno@clisp.org>
19254
19255         duplocale: Improve test output.
19256         * tests/test-duplocale.c (main): Print reason for skipped test.
19257
19258 2010-04-05  Bruno Haible  <bruno@clisp.org>
19259
19260         Assume rmdir exists.
19261         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
19262         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
19263
19264 2010-04-05  Bruno Haible  <bruno@clisp.org>
19265
19266         Fix link error on Solaris 8 with cc.
19267         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
19268
19269 2010-04-05  Bruno Haible  <bruno@clisp.org>
19270
19271         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
19272         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
19273
19274 2010-04-05  Bruno Haible  <bruno@clisp.org>
19275
19276         vasprintf: Update documentation.
19277         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
19278
19279 2010-04-05  Bruno Haible  <bruno@clisp.org>
19280
19281         ptsname: Improve test.
19282         * tests/test-ptsname.c (main): Also try the various master names of BSD
19283         systems.
19284
19285 2010-04-05  Bruno Haible  <bruno@clisp.org>
19286
19287         memchr: Avoid a possible C++ test error.
19288         * lib/string.in.h (memchr): Provide declaration if function is missing.
19289         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
19290         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
19291         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
19292         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
19293
19294 2010-04-05  Bruno Haible  <bruno@clisp.org>
19295
19296         strtok_r: Improve idiom.
19297         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
19298         AC_LIBOBJ is used.
19299
19300 2010-04-05  Bruno Haible  <bruno@clisp.org>
19301
19302         strdup: Improve idiom.
19303         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
19304         AC_LIBOBJ is used.
19305         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
19306         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
19307         when AC_LIBOBJ is used.
19308
19309 2010-04-05  Bruno Haible  <bruno@clisp.org>
19310
19311         mbsinit, mbrtowc, wcrtomb: Improve idioms.
19312         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
19313         don't set REPLACE_MBSINIT to 1.
19314         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
19315         don't set REPLACE_MBRTOWC to 1.
19316         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
19317         exist, don't set REPLACE_MBSRTOWCS to 1.
19318         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
19319         exist, don't set REPLACE_MBSNRTOWCS to 1.
19320         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
19321         don't set REPLACE_WCRTOMB to 1.
19322         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
19323         exist, don't set REPLACE_WCSRTOMBS to 1.
19324         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
19325         exist, don't set REPLACE_WCSNRTOMBS to 1.
19326
19327 2010-04-05  Bruno Haible  <bruno@clisp.org>
19328
19329         ldexpl: Improve idiom.
19330         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
19331         make sure to set HAVE_DECL_LDEXPL to 0.
19332
19333 2010-04-05  Jim Meyering  <meyering@redhat.com>
19334
19335         xstrtol-tests: convert to use init.sh
19336         * modules/xstrtol-tests (Files): Add tests/init.sh.
19337         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
19338         Use Exit, not exit.
19339         Remove uses of $EXEEXT and "./" to run a program in the current dir.
19340
19341         atexit-tests: convert to use init.sh
19342         * modules/atexit-tests (Files): Add tests/init.sh.
19343         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
19344         Use Exit, not exit.
19345         Remove uses of $EXEEXT and "./" to run a program in the current dir.
19346
19347         init.sh: fix typo
19348         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
19349
19350         init.sh: make it easier for a test script to write to the tty, ...
19351         when using automake's parallel-tests mode.
19352         * tests/init.sh (stderr_fileno_): Define overridable variable.
19353         (warn_): New function, to use it.
19354         (fail_, skip_, framework_failure_): Use warn_.
19355
19356 2010-04-04  Bruno Haible  <bruno@clisp.org>
19357
19358         btowc: Avoid warning.
19359         * lib/btowc.c: Include <stdlib.h>.
19360         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
19361
19362 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
19363             Bruno Haible  <bruno@clisp.org>
19364
19365         wchar: Port to NetBSD 1.5.
19366         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
19367         * lib/wctype.in.h (WEOF): Likewise.
19368
19369 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
19370             Bruno Haible  <bruno@clisp.org>
19371
19372         Port extended stdio to NetBSD 1.5.
19373         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
19374         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
19375         older.
19376
19377 2010-04-04  Bruno Haible  <bruno@clisp.org>
19378
19379         string: Remove unused substitution.
19380         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
19381         HAVE_DECL_STRERROR.
19382         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
19383
19384 2010-04-04  Bruno Haible  <bruno@clisp.org>
19385
19386         strtod: Avoid a possible C++ test error.
19387         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
19388         set REPLACE_STRTOD.
19389
19390 2010-04-04  Bruno Haible  <bruno@clisp.org>
19391
19392         strerror: Update documentation.
19393         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
19394
19395 2010-04-04  Bruno Haible  <bruno@clisp.org>
19396
19397         stdio: Fix some C++ test errors on Solaris 8 with GCC.
19398         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
19399         _GL_CXXALIAS_SYS_CAST.
19400
19401 2010-04-04  Bruno Haible  <bruno@clisp.org>
19402
19403         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
19404         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
19405         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
19406         REPLACE_FREXPL to 1.
19407         * doc/posix-functions/frexpl.texi: Update documentation.
19408
19409 2010-04-04  Bruno Haible  <bruno@clisp.org>
19410
19411         math: Fix some C++ test errors on Solaris 8 and Cygwin.
19412         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
19413
19414 2010-04-04  Bruno Haible  <bruno@clisp.org>
19415
19416         Implement nanosleep for native Windows.
19417         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
19418
19419 2010-04-04  Bruno Haible  <bruno@clisp.org>
19420
19421         math: Fix some C++ test errors on Solaris 8.
19422         * lib/math.in.h (truncf, trunc): Use simpler idiom.
19423
19424 2010-04-04  Bruno Haible  <bruno@clisp.org>
19425
19426         math: Fix some C++ test errors on Cygwin.
19427         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
19428         truncl): Provide declaration if the system does not have it.
19429         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
19430         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
19431         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
19432         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
19433         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
19434         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
19435         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
19436         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
19437         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
19438         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
19439         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
19440         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
19441         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
19442         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
19443         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
19444         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
19445         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
19446         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
19447         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
19448         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
19449         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
19450         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
19451
19452 2010-04-04  Bruno Haible  <bruno@clisp.org>
19453
19454         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
19455         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
19456         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
19457         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
19458         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
19459         * m4/isinf.m4 (gl_ISINF): Likewise.
19460         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
19461
19462 2010-04-04  Bruno Haible  <bruno@clisp.org>
19463
19464         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
19465         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
19466
19467 2010-04-04  Bruno Haible  <bruno@clisp.org>
19468
19469         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
19470         * modules/tmpfile (configure.ac): Update.
19471
19472         tmpfile: Fix C++ test error on mingw.
19473         * lib/stdio.in.h (tmpfile): New declaration.
19474         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
19475         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
19476         * modules/tmpfile (Depends-on): Add stdio.
19477         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
19478         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
19479         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
19480         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
19481         REPLACE_TMPFILE.
19482         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
19483
19484 2010-04-04  Bruno Haible  <bruno@clisp.org>
19485
19486         ioctl: Fix C++ test error on mingw.
19487         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
19488         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
19489         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
19490
19491 2010-04-03  Bruno Haible  <bruno@clisp.org>
19492
19493         wcwidth: Fix C++ test error on mingw.
19494         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
19495         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
19496         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
19497
19498 2010-04-03  Bruno Haible  <bruno@clisp.org>
19499
19500         nanosleep: Fix C++ test error on mingw.
19501         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
19502         * lib/time.in.h (nanosleep): Use modern idiom.
19503         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
19504         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
19505         REPLACE_NANOSLEEP to 1.
19506         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
19507         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
19508
19509 2010-04-03  Bruno Haible  <bruno@clisp.org>
19510
19511         strptime: Fix C++ test error on mingw.
19512         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
19513         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
19514         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
19515         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
19516         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
19517         not REPLACE_STRPTIME.
19518         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
19519         REPLACE_STRPTIME.
19520
19521 2010-04-03  Bruno Haible  <bruno@clisp.org>
19522
19523         timegm: Fix C++ test error on mingw.
19524         * lib/time.in.h (timegm): Use modern idiom.
19525         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
19526         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
19527         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
19528         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
19529
19530 2010-04-03  Bruno Haible  <bruno@clisp.org>
19531
19532         timegm: Assume declaration if function exists.
19533         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
19534         if it exists. Don't clobber ac_cv_func_timegm.
19535
19536 2010-04-03  Bruno Haible  <bruno@clisp.org>
19537
19538         time_r: Fix C++ test error on mingw.
19539         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
19540         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
19541         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
19542         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
19543         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
19544
19545 2010-04-03  Bruno Haible  <bruno@clisp.org>
19546
19547         time_r: Minor updates.
19548         * modules/time_r (Description): Mention the provided functions.
19549         * lib/time_r.c: Don't include <string.h>.
19550         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
19551         * doc/posix-functions/localtime_r.texi: Likewise.
19552
19553 2010-04-03  Bruno Haible  <bruno@clisp.org>
19554
19555         time: Fix regression introduced on 2010-03-08.
19556         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
19557         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
19558
19559 2010-04-03  Jim Meyering  <meyering@redhat.com>
19560
19561         maint.mk: don't silently disable project-specific syntax-check rules
19562         * top/maint.mk (_prohibit_regexp): Define, to help people realize
19563         that they need to convert their project-specific syntax-check rules
19564         to use the new _sc_search_regexp.
19565
19566 2010-04-03  Bruno Haible  <bruno@clisp.org>
19567
19568         fchdir: Fix regression introduced on 2010-03-08.
19569         * lib/unistd.in.h (fchdir): Fix declaration.
19570         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
19571         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
19572         REPLACE_FCHDIR.
19573         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
19574         REPLACE_FCHDIR.
19575
19576 2010-04-03  Bruno Haible  <bruno@clisp.org>
19577
19578         getpagesize: Fix C++ test error on mingw.
19579         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
19580         system does not declare the function.
19581         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
19582         declared.
19583         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
19584         HAVE_DECL_GETPAGESIZE.
19585         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
19586
19587 2010-04-03  Bruno Haible  <bruno@clisp.org>
19588
19589         stdio: Make C++ tests work on mingw.
19590         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
19591         does not declare the function.
19592
19593 2010-04-03  Bruno Haible  <bruno@clisp.org>
19594
19595         ftello: Fix C++ test error on mingw.
19596         * lib/stdio.in.h (ftello): Use modern idiom.
19597         * lib/ftello.c (ftello): Renamed from rpl_ftello.
19598         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
19599         is missing and that it needs to be replaced.
19600         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
19601         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
19602         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
19603
19604 2010-04-03  Bruno Haible  <bruno@clisp.org>
19605
19606         fseeko: Fix C++ test error on mingw.
19607         * lib/stdio.in.h (fseeko): Use modern idiom.
19608         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
19609         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
19610         is missing and that it needs to be replaced.
19611         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
19612         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
19613         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
19614
19615 2010-04-03  Bruno Haible  <bruno@clisp.org>
19616
19617         mkstemp: Fix C++ test error on mingw.
19618         * lib/stdlib.in.h (mkstemp): Use modern idiom.
19619         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
19620         function is missing and that it needs to be replaced.
19621         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
19622         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
19623
19624 2010-04-03  Bruno Haible  <bruno@clisp.org>
19625
19626         stpncpy: Fix C++ test error on mingw.
19627         * lib/string.in.h (stpncpy): Use modern idiom.
19628         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
19629         function is missing and that it needs to be replaced.
19630         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
19631         REPLACE_STPNCPY.
19632         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
19633
19634 2010-04-03  Bruno Haible  <bruno@clisp.org>
19635
19636         sys_stat: Fix C++ test error on mingw.
19637         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
19638         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
19639
19640 2010-04-03  Bruno Haible  <bruno@clisp.org>
19641
19642         pty: Update doc.
19643         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
19644
19645 2010-04-03  Bruno Haible  <bruno@clisp.org>
19646
19647         unistd: Fix C++ test error on mingw.
19648         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
19649
19650 2010-04-03  Bruno Haible  <bruno@clisp.org>
19651
19652         Update doc regarding mingw.
19653         * doc/glibc-functions/openpty.texi: Update regarding mingw.
19654         * doc/glibc-functions/login_tty.texi: Likewise.
19655         * doc/glibc-functions/forkpty.texi: Likewise.
19656
19657 2010-04-03  Bruno Haible  <bruno@clisp.org>
19658
19659         stdlib: Avoid compilation failure of c-strtold on mingw.
19660         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
19661
19662 2010-04-03  Bruno Haible  <bruno@clisp.org>
19663
19664         locale: Make C++ tests work on Cygwin and mingw.
19665         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
19666         cannot provide the function.
19667         Reported by Simon Josefsson.
19668
19669 2010-04-03  Bruno Haible  <bruno@clisp.org>
19670
19671         localename: Port to MacOS X 10.6.
19672         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
19673         memory layout of the locales in MacOS X 10.6 as well.
19674         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
19675
19676 2010-04-02  Bruno Haible  <bruno@clisp.org>
19677
19678         gnulib-tool: Ensure that long-running tests are executed last.
19679         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
19680         running tests after the one for the other tests.
19681
19682 2010-04-02  Bruno Haible  <bruno@clisp.org>
19683
19684         gnulib-tool: Ensure the tests in the main directory are executed first.
19685         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
19686         start with the current directory.
19687
19688 2010-04-02  Bruno Haible  <bruno@clisp.org>
19689
19690         Tests for module 'havelib', moved here from GNU gettext.
19691         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
19692         modifications.
19693         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
19694         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
19695         with modifications.
19696         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
19697         modifications.
19698         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
19699         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
19700         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
19701         with modifications.
19702         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
19703         with modifications.
19704         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
19705         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
19706         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
19707         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
19708         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
19709         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
19710         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
19711         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
19712         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
19713         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
19714         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
19715         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
19716         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
19717         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
19718         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
19719         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
19720         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
19721         with modifications.
19722         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
19723         with modifications.
19724         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
19725         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
19726         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
19727         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
19728         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
19729         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
19730         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
19731         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
19732         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
19733         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
19734         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
19735         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
19736         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
19737         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
19738         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
19739         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
19740         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
19741         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
19742         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
19743         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
19744         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
19745         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
19746         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
19747         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
19748         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
19749         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
19750         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
19751         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
19752         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
19753         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
19754         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
19755         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
19756         * tests/havelib/rpathx/rpathx.c: New file, from
19757         gettext/autoconf-lib-link.
19758         * tests/havelib/rpathx/Makefile.am: New file, from
19759         gettext/autoconf-lib-link.
19760         * tests/havelib/rpathx/configure.ac: New file, from
19761         gettext/autoconf-lib-link with modifications.
19762         * tests/havelib/rpathy/rpathy.c: New file, from
19763         gettext/autoconf-lib-link.
19764         * tests/havelib/rpathy/Makefile.am: New file, from
19765         gettext/autoconf-lib-link.
19766         * tests/havelib/rpathy/configure.ac: New file, from
19767         gettext/autoconf-lib-link with modifications.
19768         * tests/havelib/rpathz/rpathz.c: New file, from
19769         gettext/autoconf-lib-link.
19770         * tests/havelib/rpathz/Makefile.am: New file, from
19771         gettext/autoconf-lib-link.
19772         * tests/havelib/rpathz/configure.ac: New file, from
19773         gettext/autoconf-lib-link with modifications.
19774         * tests/havelib/rpathlx/usex.c: New file, from
19775         gettext/autoconf-lib-link.
19776         * tests/havelib/rpathlx/Makefile.am: New file, from
19777         gettext/autoconf-lib-link.
19778         * tests/havelib/rpathlx/configure.ac: New file, from
19779         gettext/autoconf-lib-link with modifications.
19780         * tests/havelib/rpathly/usey.c: New file, from
19781         gettext/autoconf-lib-link.
19782         * tests/havelib/rpathly/Makefile.am: New file, from
19783         gettext/autoconf-lib-link.
19784         * tests/havelib/rpathly/configure.ac: New file, from
19785         gettext/autoconf-lib-link with modifications.
19786         * tests/havelib/rpathlz/usez.c: New file, from
19787         gettext/autoconf-lib-link.
19788         * tests/havelib/rpathlz/Makefile.am: New file, from
19789         gettext/autoconf-lib-link.
19790         * tests/havelib/rpathlz/configure.ac: New file, from
19791         gettext/autoconf-lib-link with modifications.
19792         * tests/havelib/rpathlyx/usey.c: New file, from
19793         gettext/autoconf-lib-link.
19794         * tests/havelib/rpathlyx/Makefile.am: New file, from
19795         gettext/autoconf-lib-link.
19796         * tests/havelib/rpathlyx/configure.ac: New file, from
19797         gettext/autoconf-lib-link with modifications.
19798         * tests/havelib/rpathlzyx/usez.c: New file, from
19799         gettext/autoconf-lib-link.
19800         * tests/havelib/rpathlzyx/Makefile.am: New file, from
19801         gettext/autoconf-lib-link.
19802         * tests/havelib/rpathlzyx/configure.ac: New file, from
19803         gettext/autoconf-lib-link with modifications.
19804         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
19805         with modifications.
19806
19807 2010-04-02  Bruno Haible  <bruno@clisp.org>
19808
19809         gnulib-tool: Create distributed built sources also for the tests.
19810         * gnulib-tool (func_create_testdir): Also generate distributed built
19811         sources in the tests directory.
19812
19813 2010-04-02  Bruno Haible  <bruno@clisp.org>
19814
19815         gnulib-tool: Obey user's environment variables.
19816         * gnulib-tool (func_create_testdir): When creating built sources,
19817         respect the environment variables for autoconf, automake, etc. given by
19818         the user.
19819
19820 2010-04-02  Bruno Haible  <bruno@clisp.org>
19821
19822         gnulib-tool: Provide the value of --m4-base to modules.
19823         * gnulib-tool (func_import, func_create_testdir): Emit a definition
19824         of gl_m4_base.
19825
19826 2010-04-02  Eric Blake  <eblake@redhat.com>
19827
19828         maint.mk: fix some fallout
19829         * NEWS: Document the incompatible change, and its effect on cfg.mk.
19830         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
19831
19832 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
19833
19834         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
19835         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
19836         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
19837         (sc_cast_of_x_alloc_return_value): Likewise.
19838         (sc_cast_of_alloca_return_value): Likewise.
19839         (sc_space_tab): Likewise.
19840         (sc_prohibit_atoi_atof): Likewise.
19841         (sc_prohibit_magic_number_exit): Likewise.
19842         (sc_error_exit_success): Likewise.
19843         (sc_file_system): Likewise.
19844         (sc_prohibit_have_config_h): Likewise.
19845         (sc_require_config_h): Likewise.
19846         (sc_prohibit_HAVE_MBRTOWC): Likewise.
19847         (sc_obsolete_symbols): Likewise.
19848         (sc_changelog): Likewise.
19849         (sc_program_name): Likewise.
19850         (sc_the_the): Likewise.
19851         (sc_trailing_blank): Likewise.
19852         (sc_two_space_separator_in_usage): Likewise.
19853         (sc_useless_cpp_parens): Likewise.
19854         (sc_GPL_version): Likewise.
19855         (sc_GFDL_version): Likewise.
19856         (sc_texinfo_acronym): Likewise.
19857         (sc_prohibit_cvs_keyword): Likewise.
19858         (sc_prohibit_stat_st_blocks): Likewise.
19859         (sc_prohibit_S_IS_definition): Likewise.
19860         (sc_redundant_const): Likewise.
19861         (sc_makefile_TAB_only_indentation): Likewise.
19862         (sc_m4_quote_check): Likewise.
19863         (sc_makefile_path_separator_check): Likewise.
19864         (sc_copyright_check): Likewise.
19865         (sc_Wundef_boolean): Likewise.
19866         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
19867
19868         maint.mk: match 0 or more whitespace-before-function-call '('
19869         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
19870         that have zero or two-and-more spaces between the function name
19871         and the open parenthesis.
19872         (sc_error_message_warn_fatal): Likewise.
19873         (sc_error_message_uppercase): Likewise.
19874         (sc_error_message_period): Likewise.
19875
19876 2010-03-31  Eric Blake  <eblake@redhat.com>
19877
19878         maint.mk: check for [ as well as test
19879         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
19880         Based on a libvirt report by Matthias Bolte.
19881
19882         gnumakefile: don't squelch _version output
19883         * top/GNUmakefile (_version): Create one-shot dependency rather
19884         than using $(shell) when version must be regenerated.
19885         (_autoreconf): Run verbosely, by default.
19886
19887         sys_time: avoid compiler warnings
19888         * lib/sys_time.in.h (includes): Ensure gcc pragma is
19889         unconditional, fixing regression from 2010-03-29.
19890         Reported by Simon Josefsson.
19891
19892 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
19893
19894         maint.mk: s/_header_without_use/_sc_header_without_use/
19895         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
19896         (sc_prohibit_assert_without_use): Use the new name.
19897         (sc_prohibit_close_stream_without_use): Likewise.
19898         (sc_prohibit_getopt_without_use): Likewise.
19899         (sc_prohibit_quotearg_without_use): Likewise.
19900         (sc_prohibit_quote_without_use): Likewise.
19901         (sc_prohibit_long_options_without_use): Likewise.
19902         (sc_prohibit_inttostr_without_use): Likewise.
19903         (sc_prohibit_ignore_value_without_use): Likewise.
19904         (sc_prohibit_error_without_use): Likewise.
19905         (sc_prohibit_xalloc_without_use): Likewise.
19906         (sc_prohibit_hash_without_use): Likewise.
19907         (sc_prohibit_hash_pjw_without_use): Likewise.
19908         (sc_prohibit_safe_read_without_use): Likewise.
19909         (sc_prohibit_argmatch_without_use): Likewise.
19910         (sc_prohibit_canonicalize_without_use): Likewise.
19911         (sc_prohibit_root_dev_ino_without_use): Likewise.
19912         (sc_prohibit_openat_without_use): Likewise.
19913         (sc_prohibit_c_ctype_without_use): Likewise.
19914         (sc_prohibit_signal_without_use): Likewise.
19915         (sc_prohibit_intprops_without_use): Likewise.
19916
19917 2010-03-30  Eric Blake  <eblake@redhat.com>
19918
19919         maint: improve module indicators
19920         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
19921         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
19922         columns, and avoid extra macro expansion.
19923
19924         fdopendir: work around FreeBSD bug
19925         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
19926         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
19927         * modules/dirent (Makefile.am): Substitute it.
19928         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
19929         declaration.
19930         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
19931         fix.
19932         Reported by Christian Weisgerber <naddy@mips.inka.de>.
19933
19934 2010-03-29  Bruno Haible  <bruno@clisp.org>
19935
19936         Emit #pragma system_header after the inclusion guard, not before.
19937         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
19938         guard that spans the entire file, not before. This enables an
19939         optimization in GCC's preprocessor.
19940         * lib/ctype.in.h: Likewise.
19941         * lib/dirent.in.h: Likewise.
19942         * lib/errno.in.h: Likewise.
19943         * lib/float.in.h: Likewise.
19944         * lib/getopt.in.h: Likewise.
19945         * lib/iconv.in.h: Likewise.
19946         * lib/langinfo.in.h: Likewise.
19947         * lib/locale.in.h: Likewise.
19948         * lib/math.in.h: Likewise.
19949         * lib/netdb.in.h: Likewise.
19950         * lib/netinet_in.in.h: Likewise.
19951         * lib/pty.in.h: Likewise.
19952         * lib/sched.in.h: Likewise.
19953         * lib/se-selinux.in.h: Likewise.
19954         * lib/search.in.h: Likewise.
19955         * lib/spawn.in.h: Likewise.
19956         * lib/stdarg.in.h: Likewise.
19957         * lib/stdint.in.h: Likewise.
19958         * lib/string.in.h: Likewise.
19959         * lib/strings.in.h: Likewise.
19960         * lib/sys_file.in.h: Likewise.
19961         * lib/sys_ioctl.in.h: Likewise.
19962         * lib/sys_time.in.h: Likewise.
19963         * lib/sys_times.in.h: Likewise.
19964         * lib/sys_utsname.in.h: Likewise.
19965         * lib/sys_wait.in.h: Likewise.
19966         * lib/sysexits.in.h: Likewise.
19967         * lib/wctype.in.h: Likewise.
19968
19969 2010-03-28  James Youngman  <jay@gnu.org>
19970
19971         save-cwd: don't leak a file descriptor when the caller execs.
19972         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
19973         saved file descriptor.
19974         * modules/save-cwd (Depends-on): Depend on cloexec.
19975
19976 2010-03-29  Bruno Haible  <bruno@clisp.org>
19977
19978         Remove vestiges of fts-lgpl module.
19979         * lib/fts_.h: Assume GNULIB_FTS is 1.
19980         * lib/fts.c: Likewise.
19981         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
19982
19983 2010-03-28  Bruno Haible  <bruno@clisp.org>
19984
19985         Fix definition of tests witness macro.
19986         * gnulib-tool (func_import): Fix definition of witness macro.
19987
19988 2010-03-28  Bruno Haible  <bruno@clisp.org>
19989
19990         Fix ioctl's protoype on glibc systems.
19991         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
19992         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
19993         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
19994         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
19995         signature. If not, arrange to replace the ioctl function.
19996         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
19997         REPLACE_IOCTL.
19998         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
19999         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
20000         Reported by Ludovic Courtès <ludo@gnu.org>.
20001
20002 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
20003
20004         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
20005         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
20006         made it so grep -r --include=GLOB* ... did not work.
20007
20008 2010-03-26  Jim Meyering  <meyering@redhat.com>
20009             Eric Blake  <eblake@redhat.com>
20010
20011         maint.mk: prohibit use of test's -o and -a operators
20012         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
20013
20014 2010-03-28  Bruno Haible  <bruno@clisp.org>
20015
20016         Remove unused GNULIB_XYZ macro definitions.
20017         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
20018         invocation.
20019
20020 2010-03-28  Bruno Haible  <bruno@clisp.org>
20021
20022         Mark privileged tests modules.
20023         * modules/idpriv-drop-tests (Status): New section.
20024         * modules/idpriv-droptemp-tests (Status): New section.
20025
20026 2010-03-28  Bruno Haible  <bruno@clisp.org>
20027
20028         Split C++ tests into separate tests modules.
20029         * modules/dirent-c++-tests: New file, extracted from
20030         modules/dirent-tests.
20031         * modules/dirent-tests: Depend on it.
20032         * modules/fcntl-h-c++-tests: New file, extracted from
20033         modules/fcntl-h-tests.
20034         * modules/fcntl-h-tests: Depend on it.
20035         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
20036         * modules/glob-tests: Depend on it.
20037         * modules/iconv-h-c++-tests: New file, extracted from
20038         modules/iconv-h-tests.
20039         * modules/iconv-h-tests: Depend on it.
20040         * modules/langinfo-c++-tests: New file, extracted from
20041         modules/langinfo-tests.
20042         * modules/langinfo-tests: Depend on it.
20043         * modules/locale-c++-tests: New file, extracted from
20044         modules/locale-tests.
20045         * modules/locale-tests: Depend on it.
20046         * modules/math-c++-tests: New file, extracted from modules/math-tests.
20047         * modules/math-tests: Depend on it.
20048         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
20049         * modules/pty-tests: Depend on it.
20050         * modules/search-c++-tests: New file, extracted from
20051         modules/search-tests.
20052         * modules/search-tests: Depend on it.
20053         * modules/signal-c++-tests: New file, extracted from
20054         modules/signal-tests.
20055         * modules/signal-tests: Depend on it.
20056         * modules/spawn-c++-tests: New file, extracted from
20057         modules/spawn-tests.
20058         * modules/spawn-tests: Depend on it.
20059         * modules/stdio-c++-tests: New file, extracted from
20060         modules/stdio-tests.
20061         * modules/stdio-tests: Depend on it.
20062         * modules/stdlib-c++-tests: New file, extracted from
20063         modules/stdlib-tests.
20064         * modules/stdlib-tests: Depend on it.
20065         * modules/string-c++-tests: New file, extracted from
20066         modules/string-tests.
20067         * modules/string-tests: Depend on it.
20068         * modules/sys_ioctl-c++-tests: New file, extracted from
20069         modules/sys_ioctl-tests.
20070         * modules/sys_ioctl-tests: Depend on it.
20071         * modules/sys_select-c++-tests: New file, extracted from
20072         modules/sys_select-tests.
20073         * modules/sys_select-tests: Depend on it.
20074         * modules/sys_socket-c++-tests: New file, extracted from
20075         modules/sys_socket-tests.
20076         * modules/sys_socket-tests: Depend on it.
20077         * modules/sys_stat-c++-tests: New file, extracted from
20078         modules/sys_stat-tests.
20079         * modules/sys_stat-tests: Depend on it.
20080         * modules/sys_time-c++-tests: New file, extracted from
20081         modules/sys_time-tests.
20082         * modules/sys_time-tests: Depend on it.
20083         * modules/time-c++-tests: New file, extracted from modules/time-tests.
20084         * modules/time-tests: Depend on it.
20085         * modules/unistd-c++-tests: New file, extracted from
20086         modules/unistd-tests.
20087         * modules/unistd-tests: Depend on it.
20088         * modules/wchar-c++-tests: New file, extracted from
20089         modules/wchar-tests.
20090         * modules/wchar-tests: Depend on it.
20091         * modules/wctype-c++-tests: New file, extracted from
20092         modules/wctype-tests.
20093         * modules/wctype-tests: Depend on it.
20094         Reported by Simon Josefsson.
20095
20096 2010-03-28  Bruno Haible  <bruno@clisp.org>
20097
20098         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
20099         * gnulib-tool (func_exists_module): New function, extracted from
20100         func_verify_module.
20101         (func_verify_module): Use it.
20102         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
20103         'foo' only if 'foo' exists.
20104         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
20105         module.
20106
20107 2010-03-28  Bruno Haible  <bruno@clisp.org>
20108
20109         gnulib-tool: Add support for special categories of tests.
20110         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
20111         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
20112         (func_usage): Document them.
20113         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
20114         inc_unportable_tests, inc_all_tests): New variables.
20115         (func_acceptable): Consider these variables.
20116         (func_modules_transitive_closure): Make it work when the 'Status' field
20117         consists of multiple words.
20118         (func_import): Store and restore the values of inc_cxx_tests,
20119         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
20120         inc_all_tests in gnulib-comp.m4.
20121         (func_create_testdir): Set inc_all_tests to true.
20122         * doc/gnulib.texi (Extra tests modules): New section.
20123         Suggested by Jim Meyering.
20124
20125 2010-03-28  Bruno Haible  <bruno@clisp.org>
20126
20127         ansi-c++-opt: Allow turning off the C++ build by default.
20128         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
20129         gl_CXX_CHOICE_DEFAULT_NO is defined.
20130         Requested by Eric Blake.
20131
20132 2010-03-28  Bruno Haible  <bruno@clisp.org>
20133
20134         unistd: Avoid #define replacements in C++ mode.
20135         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
20136         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
20137         setsockopt, shutdown, select): In C++, attach a warning to the function
20138         if possible, rather than #defining the symbol to a dysfunctional alias.
20139         Reported by John W. Eaton <jwe@gnu.org>.
20140
20141 2010-03-28  Bruno Haible  <bruno@clisp.org>
20142
20143         Fix link errors on mingw.
20144         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
20145         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
20146         $(LIBSOCKET).
20147         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
20148         $(LIBSOCKET).
20149
20150 2010-03-28  Bruno Haible  <bruno@clisp.org>
20151             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20152
20153         lib-ignore: Determine different options for different compilers.
20154         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
20155         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
20156         Add comments.
20157         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
20158         * NEWS: Mention the change.
20159
20160 2010-03-27  Bruno Haible  <bruno@clisp.org>
20161
20162         Remove unused GNULIB_XYZ macro definitions.
20163         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
20164         * modules/fseek (configure.ac): Likewise.
20165         * modules/ioctl (configure.ac): Likewise.
20166         * modules/open (configure.ac): Likewise.
20167         * modules/stdlib-safer (configure.ac): Likewise.
20168
20169 2010-03-27  Bruno Haible  <bruno@clisp.org>
20170
20171         Add a remark about certain modules.
20172         * modules/malloc (Comment): New section.
20173         * modules/realloc (Comment): Likewise.
20174         * modules/sigpipe (Comment): Likewise.
20175
20176 2010-03-27  Bruno Haible  <bruno@clisp.org>
20177
20178         Resolve conflict between the two kinds of module indicators.
20179         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
20180         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
20181         * modules/canonicalize (configure.ac): Invoke
20182         gl_MODULE_INDICATOR_FOR_TESTS.
20183         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
20184         GNULIB_XYZ.
20185         * tests/test-dirent-c++.cc: Likewise.
20186         * tests/test-dirent-safer.c: Likewise.
20187         * tests/test-dup2.c: Likewise.
20188         * tests/test-fchdir.c: Likewise.
20189         * tests/test-fcntl-h-c++.cc: Likewise.
20190         * tests/test-getopt.c: Likewise.
20191         * tests/test-getopt.h: Likewise.
20192         * tests/test-langinfo-c++.cc: Likewise.
20193         * tests/test-locale-c++.cc: Likewise.
20194         * tests/test-math-c++.cc: Likewise.
20195         * tests/test-pty-c++.cc: Likewise.
20196         * tests/test-search-c++.cc: Likewise.
20197         * tests/test-signal-c++.cc: Likewise.
20198         * tests/test-spawn-c++.cc: Likewise.
20199         * tests/test-stdio-c++.cc: Likewise.
20200         * tests/test-stdlib-c++.cc: Likewise.
20201         * tests/test-string-c++.cc: Likewise.
20202         * tests/test-sys_ioctl-c++.cc: Likewise.
20203         * tests/test-sys_select-c++.cc: Likewise.
20204         * tests/test-sys_socket-c++.cc: Likewise.
20205         * tests/test-sys_stat-c++.cc: Likewise.
20206         * tests/test-sys_time-c++.cc: Likewise.
20207         * tests/test-time-c++.cc: Likewise.
20208         * tests/test-unistd-c++.cc: Likewise.
20209         * tests/test-wchar-c++.cc: Likewise.
20210         * tests/uninorm/test-u8-nfc.c: Likewise.
20211         * tests/uninorm/test-u8-nfd.c: Likewise.
20212         * tests/uninorm/test-u8-nfkc.c: Likewise.
20213         * tests/uninorm/test-u8-nfkd.c: Likewise.
20214         * tests/uninorm/test-u16-nfc.c: Likewise.
20215         * tests/uninorm/test-u16-nfd.c: Likewise.
20216         * tests/uninorm/test-u16-nfkc.c: Likewise.
20217         * tests/uninorm/test-u16-nfkd.c: Likewise.
20218         * tests/uninorm/test-u32-nfc.c: Likewise.
20219         * tests/uninorm/test-u32-nfc-big.c: Likewise.
20220         * tests/uninorm/test-u32-nfd.c: Likewise.
20221         * tests/uninorm/test-u32-nfd-big.c: Likewise.
20222         * tests/uninorm/test-u32-nfkc.c: Likewise.
20223         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
20224         * tests/uninorm/test-u32-nfkd.c: Likewise.
20225         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
20226         * tests/uninorm/test-u32-normalize-big.c: Likewise.
20227
20228 2010-03-27  Bruno Haible  <bruno@clisp.org>
20229
20230         Distinguish two kinds of module indicators.
20231         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
20232         gl_MODULE_INDICATOR.
20233         (gl_MODULE_INDICATOR): New macro.
20234         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
20235         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
20236         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
20237         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
20238         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
20239         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
20240         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
20241         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
20242         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
20243         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
20244         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
20245         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
20246         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
20247         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
20248         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
20249         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
20250         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
20251         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
20252         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
20253         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
20254         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
20255         * modules/cloexec (configure.ac): Likewise.
20256         * modules/getopt-gnu (configure.ac): Likewise.
20257         * modules/uninorm/u8-normalize (configure.ac): Likewise.
20258         * modules/uninorm/u16-normalize (configure.ac): Likewise.
20259         * modules/uninorm/u32-normalize (configure.ac): Likewise.
20260         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
20261
20262 2010-03-27  Bruno Haible  <bruno@clisp.org>
20263
20264         New module description field 'Comment'.
20265         * gnulib-tool: New option --extract-comment.
20266         (func_usage): Document it.
20267         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
20268         (func_get_comment): New function.
20269         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
20270
20271 2010-03-27  Bruno Haible  <bruno@clisp.org>
20272
20273         Addendum to 2010-02-07 commit.
20274         * gnulib-tool (func_usage): Document --extract-applicability option.
20275
20276 2010-03-27  Bruno Haible  <bruno@clisp.org>
20277
20278         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
20279         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
20280         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
20281         rather than link errors.
20282
20283 2010-03-27  Bruno Haible  <bruno@clisp.org>
20284
20285         Avoid side effects from tests-related modules on the compilation of lib.
20286         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
20287         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
20288         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
20289         parameter. Emit into AM_CPPFLAGS a definition of the designated C
20290         macro.
20291         (func_import): Define a witness macro. Assign it a value that depends
20292         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
20293         tests-related modules.
20294         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
20295         Reported by Jim Meyering.
20296
20297 2010-03-27  Bruno Haible  <bruno@clisp.org>
20298
20299         Factorize common .m4 code.
20300         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
20301         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
20302         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
20303         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
20304         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
20305         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
20306         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
20307         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
20308         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
20309         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
20310         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
20311         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
20312         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
20313         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
20314         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
20315         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
20316         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
20317         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
20318         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
20319         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
20320         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
20321         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
20322         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
20323         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
20324         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
20325         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
20326         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
20327         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
20328         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
20329         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
20330         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
20331         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
20332
20333 2010-03-27  Bruno Haible  <bruno@clisp.org>
20334
20335         Fix a compilation error on Cygwin with g++ >= 4.3.
20336         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
20337         if it is undefined or if we alias it to chmod.
20338         (lstat): Don't warn about the use of this function if it is undefined
20339         or if we alias it to stat.
20340         Reported by Simon Josefsson.
20341
20342 2010-03-27  Bruno Haible  <bruno@clisp.org>
20343
20344         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
20345         * modules/getlogin (configure.ac): Update.
20346
20347         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
20348         * modules/getlogin_r (configure.ac): Update.
20349
20350         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
20351         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
20352         * modules/inet_ntop (configure.ac): Update.
20353
20354         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
20355         * modules/inet_pton (configure.ac): Update.
20356
20357         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
20358         * modules/mbslen (configure.ac): Update.
20359
20360         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
20361         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
20362         * modules/forkpty (configure.ac): Update.
20363         * modules/openpty (configure.ac): Update.
20364
20365 2010-03-26  Simon Josefsson  <simon@josefsson.org>
20366
20367         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
20368         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
20369
20370 2010-03-25  Eric Blake  <eblake@redhat.com>
20371
20372         maint: use pragma consistently across replacement headers
20373         * lib/ctype.in.h (system_header): Hoist for consistent placement.
20374         * lib/dirent.in.h (system_header): Likewise.
20375         * lib/errno.in.h (system_header): Likewise.
20376         * lib/float.in.h (system_header): Likewise.
20377         * lib/getopt.in.h (system_header): Likewise.
20378         * lib/iconv.in.h (system_header): Likewise.
20379         * lib/inttypes.in.h (system_header): Likewise.
20380         * lib/langinfo.in.h (system_header): Likewise.
20381         * lib/locale.in.h (system_header): Likewise.
20382         * lib/math.in.h (system_header): Likewise.
20383         * lib/netdb.in.h (system_header): Likewise.
20384         * lib/netinet_in.in.h (system_header): Likewise.
20385         * lib/pty.in.h (system_header): Likewise.
20386         * lib/sched.in.h (system_header): Likewise.
20387         * lib/se-selinux.in.h (system_header): Likewise.
20388         * lib/search.in.h (system_header): Likewise.
20389         * lib/spawn.in.h (system_header): Likewise.
20390         * lib/stdarg.in.h (system_header): Likewise.
20391         * lib/stdint.in.h (system_header): Likewise.
20392         * lib/string.in.h (system_header): Likewise.
20393         * lib/strings.in.h (system_header): Likewise.
20394         * lib/sys_file.in.h (system_header): Likewise.
20395         * lib/sys_ioctl.in.h (system_header): Likewise.
20396         * lib/sys_socket.in.h (system_header): Likewise.
20397         * lib/sys_times.in.h (system_header): Likewise.
20398         * lib/sys_utsname.in.h (system_header): Likewise.
20399         * lib/sys_wait.in.h (system_header): Likewise.
20400         * lib/sysexits.in.h (system_header): Likewise.
20401         * lib/unistd.in.h (system_header): Likewise.
20402         * lib/wctype.in.h (system_header): Likewise.
20403
20404         arpa/inet: fix mingw compilation warning
20405         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
20406         Reported by Matthew Bolte.
20407
20408 2010-03-25  Bruno Haible  <bruno@clisp.org>
20409
20410         Avoid collision between gnulib wrapper and libintl wrapper.
20411         * lib/printf.c (printf): Don't define if a printf wrapper is already
20412         defined in intl/printf.c.
20413         Reported by Michel Boaventura <michel@michelboaventura.com>.
20414
20415 2010-03-25  Bruno Haible  <bruno@clisp.org>
20416
20417         Use ANSI C.
20418         * lib/readutmp.h (getutent): Provide ANSI C prototype.
20419
20420 2010-03-25  Bruno Haible  <bruno@clisp.org>
20421
20422         Minor formatting changes.
20423         * lib/acosl.c: Insert space before function argument list.
20424         * lib/argz.c: Likewise.
20425         * lib/asinl.c: Likewise.
20426         * lib/expl.c: Likewise.
20427         * lib/gen-uni-tables.c: Likewise.
20428         * lib/gettext.h: Likewise.
20429         * lib/glthread/lock.h: Likewise.
20430         * lib/tanl.c: Likewise.
20431         * lib/uniname/uniname.c: Likewise.
20432         * tests/test-idpriv-drop.c: Likewise.
20433         * tests/test-idpriv-droptemp.c: Likewise.
20434         * tests/test-lock.c: Likewise.
20435         * tests/test-tls.c: Likewise.
20436         * lib/argp-help.c: Insert space before function-like macro argument
20437         list.
20438         * lib/memcmp.c: Likewise.
20439         * tests/test-base64.c: Likewise.
20440         * lib/localename.c: Insert space before sizeof's argument list.
20441         * lib/safe-alloc.h: Likewise.
20442         * lib/file-set.h: Insert space before macro argument list.
20443         * tests/test-argp.c: Likewise.
20444         * lib/argp-namefrob.h: Insert space before function parameter list.
20445         * lib/getaddrinfo.c: Likewise.
20446         * lib/netdb.in.h: Likewise.
20447         * lib/parse-duration.h: Likewise.
20448         * lib/parse-duration.c: Likewise.
20449         * lib/poll.c: Likewise.
20450         * lib/select.c: Likewise.
20451         * lib/trim.h: Likewise.
20452         * tests/test-usleep.c: Likewise.
20453         * lib/ldexpl.c: Insert space before function parameter list and before
20454         function argument list.
20455         * lib/logl.c: Likewise.
20456         * lib/sqrtl.c: Likewise.
20457         * lib/trim.c: Likewise.
20458         * lib/cosl.c: Use GNU style indentation. Insert space before function
20459         argument list.
20460         * lib/sinl.c: Likewise.
20461         * lib/tsearch.c: Insert space after 'for'.
20462         Reported by Jim Meyering.
20463
20464 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
20465
20466         * maint.mk (sc_Wundef_boolean): Check for the presence of the
20467         config header before grepping, as it's not present before
20468         autoreconf/configure are run.  Reported by Simon Josefsson.
20469
20470 2010-03-23  Bruno Haible  <bruno@clisp.org>
20471
20472         pt_chown: Make it work with automake < 1.11.
20473         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
20474         Reported by Simon Josefsson.
20475
20476 2010-03-23  Bruno Haible  <bruno@clisp.org>
20477
20478         pt_chown: Don't depend on GPLed modules.
20479         * lib/pt_chown.c: Don't include idpriv.h.
20480         (main): Don't drop privileges.
20481         * modules/pt_chown (Depends-on): Remove idpriv-drop.
20482         Reported by Simon Josefsson.
20483
20484 2010-03-24  Simon Josefsson  <simon@josefsson.org>
20485
20486         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
20487         suggestions from karl@freefriends.org (Karl Berry).
20488
20489 2010-03-22  Eric Blake  <eblake@redhat.com>
20490
20491         gethostname: further tweaks
20492         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
20493         are overriding gethostname.
20494         Suggested by Bruno Haible.
20495
20496 2010-03-21  Bruno Haible  <bruno@clisp.org>
20497
20498         Fix comments.
20499         * lib/forkpty.c (rpl_forkpty): Fix comment.
20500         * lib/openpty.c (rpl_openpty): Likewise.
20501         Reported by Eric Blake.
20502
20503 2010-03-22  Eric Blake  <eblake@redhat.com>
20504
20505         gethostname: fix build on mingw
20506         * lib/unistd.in.h (includes): Work around fact that mingw
20507         <winsock2.h> re-includes <unistd.h>, by avoiding any
20508         redeclarations if we are being included by <winsock2.h>.
20509         Reported by Matthias Bolte.
20510
20511 2010-03-21  Bruno Haible  <bruno@clisp.org>
20512
20513         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
20514         * lib/forkpty.c (forkpty): New replacement function, from glibc with
20515         modifications.
20516         * lib/pty.in.h (forkpty): Update declaration. Add comments.
20517         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
20518         provide the replacement.
20519         * modules/forkpty (Depends-on): Add openpty, login_tty.
20520         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
20521         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
20522         * doc/glibc-functions/forkpty.texi: More supported platforms.
20523         * config/srclist.txt: Add forkpty.c (commented).
20524
20525 2010-03-21  Bruno Haible  <bruno@clisp.org>
20526
20527         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
20528         (Makefile.am): Verify that PTY_LIB is defined.
20529
20530         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
20531
20532 2010-03-21  Bruno Haible  <bruno@clisp.org>
20533
20534         Tests for module 'login_tty'.
20535         * modules/login_tty-tests: New file.
20536         * tests/test-login_tty.c: New file.
20537
20538         New module 'login_tty'.
20539         * lib/login_tty.c: New file.
20540         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
20541         * modules/login_tty: New file.
20542         * doc/glibc-functions/login_tty.texi: Mention the new module.
20543
20544 2010-03-21  Bruno Haible  <bruno@clisp.org>
20545
20546         login_tty: Documentation.
20547         * doc/glibc-functions/login_tty.texi: New file.
20548         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
20549
20550 2010-03-21  Bruno Haible  <bruno@clisp.org>
20551
20552         pty: Consistent macro naming.
20553         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
20554         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
20555         * modules/pty (configure.ac): Update.
20556
20557 2010-03-21  Bruno Haible  <bruno@clisp.org>
20558
20559         Tests for openpty: Make stricter.
20560         * tests/test-openpty.c (main): Add test of canonical processing and
20561         erase.
20562         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
20563
20564         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
20565         * lib/openpty.c (openpty): New replacement function.
20566         * lib/pty.in.h: Include <termios.h>.
20567         (openpty): Update declaration. Add comments.
20568         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
20569         is not declared, arrange to provide the replacement. Check for _getpty
20570         and posix_openpt.
20571         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
20572         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
20573         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
20574         * modules/pty-tests (test_pty_c___LDADD): New variable.
20575         * doc/glibc-functions/openpty.texi: More supported platforms.
20576
20577 2010-03-21  Bruno Haible  <bruno@clisp.org>
20578
20579         setenv: Tweaks.
20580         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
20581         the test program.
20582         * doc/posix-functions/setenv.texi: Update platforms list.
20583
20584 2010-03-21  Bruno Haible  <bruno@clisp.org>
20585
20586         New module 'unlockpt'.
20587         * lib/unlockpt.c: New file, from glibc with modifications.
20588         * m4/unlockpt.m4: New file.
20589         * modules/unlockpt: New file.
20590         * lib/stdlib.in.h (unlockpt): New declaration.
20591         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
20592         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
20593         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
20594         HAVE_UNLOCKPT.
20595         * doc/posix-functions/unlockpt.texi: Mention the new module.
20596         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
20597         * config/srclist.txt: Add unlockpt.c (commented).
20598
20599 2010-03-21  Jim Meyering  <meyering@redhat.com>
20600
20601         maint.mk: prohibit inclusion of "intprops.h" without use
20602         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
20603
20604 2010-03-21  Bruno Haible  <bruno@clisp.org>
20605
20606         New module 'grantpt'.
20607         * lib/grantpt.c: New file, from glibc with modifications.
20608         * m4/grantpt.m4: New file.
20609         * modules/grantpt: New file.
20610         * lib/stdlib.in.h (grantpt): New declaration.
20611         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
20612         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
20613         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
20614         HAVE_GRANTPT.
20615         * doc/posix-functions/grantpt.texi: Mention the new module.
20616         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
20617         * config/srclist.txt: Add grantpt.c (commented).
20618
20619 2010-03-21  Bruno Haible  <bruno@clisp.org>
20620
20621         New module 'pt_chown'.
20622         * lib/pt_chown.c: New file, from glibc with modifications.
20623         * lib/pty-private.h: New file, from glibc with modifications.
20624         * modules/pt_chown: New file.
20625         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
20626
20627 2010-03-21  Bruno Haible  <bruno@clisp.org>
20628
20629         Tests for module 'ptsname'.
20630         * modules/ptsname-tests: New file.
20631         * tests/test-ptsname.c: New file.
20632
20633         New module 'ptsname'.
20634         * lib/ptsname.c: New file, from glibc with modifications.
20635         * m4/ptsname.m4: New file.
20636         * modules/ptsname: New file.
20637         * lib/stdlib.in.h (ptsname): New declaration.
20638         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
20639         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
20640         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
20641         HAVE_PTSNAME.
20642         * doc/posix-functions/ptsname.texi: Mention the new module.
20643         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
20644         * config/srclist.txt: Add ptsname.c (commented).
20645
20646 2010-03-21  Bruno Haible  <bruno@clisp.org>
20647
20648         Tests for module 'ttyname_r'.
20649         * modules/ttyname_r-tests: New file.
20650         * tests/test-ttyname_r.c: New file.
20651
20652         New module 'ttyname_r'.
20653         * lib/ttyname_r.c: New file.
20654         * m4/ttyname_r.m4: New file.
20655         * modules/ttyname_r: New file.
20656         * lib/unistd.in.h (ttyname_r): New declaration.
20657         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
20658         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
20659         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
20660         HAVE_TTYNAME_R.
20661         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
20662         * doc/posix-functions/ttyname_r.texi: Mention the new module.
20663
20664 2010-03-20  Bruno Haible  <bruno@clisp.org>
20665
20666         signal: Undefine macro definitions in C++ mode.
20667         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
20668         sigfillset): Undefine macro definitions from the system header in C++
20669         mode.
20670         Reported by John W. Eaton <jwe@gnu.org>.
20671
20672 2010-03-20  Bruno Haible  <bruno@clisp.org>
20673
20674         Ensure no #include statements inside extern "C" { ... }.
20675         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
20676         contain #include statements.
20677         * lib/time.in.h: Likewise.
20678
20679 2010-03-20  Bruno Haible  <bruno@clisp.org>
20680
20681         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
20682         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
20683         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
20684         Reported by John W. Eaton <jwe@gnu.org>.
20685
20686 2010-03-20  Bruno Haible  <bruno@clisp.org>
20687
20688         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
20689         Reported by Jim Meyering.
20690
20691 2010-03-20  Bruno Haible  <bruno@clisp.org>
20692
20693         pipe: Set errno upon failure.
20694         * lib/pipe.h: Specify that when -1 is returned, errno is set.
20695         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
20696         errno value in error message.
20697
20698 2010-03-20  Bruno Haible  <bruno@clisp.org>
20699             Jim Meyering  <meyering@redhat.com>
20700
20701         lchown: Avoid "unused variable" warning.
20702         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
20703
20704 2010-03-20  Bruno Haible  <bruno@clisp.org>
20705
20706         Work around unlink() bug on MacOS X 10.5.6.
20707         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
20708         attempting to unlink a parent directory.
20709         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
20710         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
20711         activate for the replacement function.
20712         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
20713
20714 2010-03-20  Bruno Haible  <bruno@clisp.org>
20715
20716         Fix link errors on Solaris 8.
20717         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
20718         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
20719
20720 2010-03-19  Jim Meyering  <meyering@redhat.com>
20721
20722         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
20723         The _LIBC implementation of build_range_exp correctly honors the
20724         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
20725         However, the non-_LIBC implementation would ignore that syntax-bit
20726         flag and return REG_ERANGE unconditionally.
20727         This change makes it honor that flag.
20728         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
20729         Make two pointer parameters "const".
20730         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
20731         (parse_bracket_exp): Update caller.
20732
20733         regex.m4: correct the reversed range endpoint ([b-a]) test
20734         * m4/regex.m4: When requiring that [b-a] evoke failure,
20735         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
20736         test pass once again for x86-based systems.
20737
20738 2010-03-19  Bruno Haible  <bruno@clisp.org>
20739
20740         scandir: Fix link error on Solaris 8.
20741         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
20742         macros.
20743
20744 2010-03-19  Bruno Haible  <bruno@clisp.org>
20745
20746         getusershell: Fix documentation.
20747         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
20748         module.
20749         * doc/glibc-functions/setusershell.texi: Likewise.
20750
20751         getusershell: Provide declaration, missing on Solaris 9.
20752         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
20753         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
20754         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
20755         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
20756         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
20757         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
20758         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
20759         HAVE_GETUSERSHELL.
20760         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
20761
20762 2010-03-19  Bruno Haible  <bruno@clisp.org>
20763
20764         wctype: Provide iswblank function.
20765         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
20766         exists and is fine.
20767         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
20768         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
20769         * tests/test-wctype.c (main): Re-enable the iswblank tests.
20770         * doc/posix-functions/iswblank.texi: Update.
20771
20772 2010-03-19  Bruno Haible  <bruno@clisp.org>
20773
20774         Tests of module 'pty' in C++ mode.
20775         * modules/pty-tests: New file.
20776         * tests/test-pty-c++.cc: New file.
20777         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
20778
20779 2010-03-19  Eric Blake  <eblake@redhat.com>
20780
20781         logb: fix documentation
20782         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
20783         1.5 declaration bug.
20784
20785         forkpty, openpty: prefer glibc's const-safe prototype
20786         * lib/forkpty.c (rpl_forkpty): New file.
20787         * lib/openpty.c (rpl_openpty): Likewise.
20788         * modules/forkpty (Files): Distribute it.
20789         * modules/openpty (Files): Likewise.
20790         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
20791         check...
20792         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
20793         replacement for for non-const BSD signature.
20794         * modules/pty (Makefile.am): Substitute witnesses.
20795         * lib/pty.in.h (forkpty, openpty): Declare replacements.
20796         * tests/test-forkpty.c: Update signature check.
20797         * tests/test-openpty.c: Likewise.
20798         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
20799         * doc/glibc-functions/openpty.texi (openpty): Likewise.
20800
20801         forkpty, openpty: split functions into new modules
20802         * modules/pty (Makefile.am): Substitute new witnesses.
20803         (Libraries): Move library detection...
20804         * modules/forkpty: ...into new module.
20805         * modules/openpty: Another new module.
20806         * modules/pty-tests: Rename and split...
20807         * modules/forkpty-tests: ...to this...
20808         * modules/openpty-tests: ...and this.
20809         * tests/test-pty.c: Rename and split...
20810         * tests/test-forkpty.c: ...to this...
20811         * tests/test-openpty.c: ...and this.
20812         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
20813         (gl_PTY): Split library searching...
20814         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
20815         (gl_FORKPTY, gl_OPENPTY): New macros.
20816         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
20817         * NEWS: Mention the split.
20818         * MODULES.html.sh (Misc): Document the modules.
20819         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
20820         * doc/glibc-functions/openpty.texi (openpty): Likewise.
20821
20822         pty: improve replacement header
20823         * lib/pty.in.h: New file.
20824         * modules/pty (Files): Ship it.
20825         (Makefile.am): Always build replacement.
20826         * m4/pty.m4: Rename...
20827         * m4/pty_h.m4: ...to this.
20828         (gl_PTY): Modernize setting of witness macros; update check of
20829         forkpty to take proper advantage of cache.
20830         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
20831
20832         getopt: avoid compiler warning
20833         * lib/getopt.c (attribute_hidden): Remove unused macro.
20834
20835 2010-03-18  Bruno Haible  <bruno@clisp.org>
20836
20837         Fix link errors on Solaris 8.
20838         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
20839         * modules/search-tests (test_search_c___LDADD): Likewise.
20840         * modules/signal-tests (test_signal_c___LDADD): Likewise.
20841         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
20842         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
20843         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
20844         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
20845         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
20846         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
20847
20848 2010-03-18  Bruno Haible  <bruno@clisp.org>
20849
20850         Fix bug introduced on 2010-03-14.
20851         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
20852         (gl_SPAWN_H): Require it.
20853         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
20854         Reported by Simon Josefsson.
20855
20856 2010-03-18  Bruno Haible  <bruno@clisp.org>
20857
20858         Fix typo introduced on 2009-12-31.
20859         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
20860         posix_spawn_file_actions_adddup2.
20861
20862 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
20863         and Eric Blake  <eblake@redhat.com>
20864
20865         test-vc-list-files-git: make more robust
20866         * tests/test-vc-list-files-git.sh: Unset problematic environment
20867         variables.  Chain commands together.
20868
20869 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
20870
20871         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
20872         `AC_CHECK_DECL' invocation.
20873
20874 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
20875
20876         * lib/inttostr.c (inttostr): Make sure the invocation of verify
20877         appears before executable statements. Suggested by Petr Sumbera
20878         <Petr.Sumbera@Sun.COM>.
20879
20880 2010-03-14  Bruno Haible  <bruno@clisp.org>
20881
20882         * tests/test-flock.c (test_exclusive): Comment out a test that causes
20883         portability problems. Instead use a simpler test.
20884         (main): Check that invalid arguments are rejected only on Linux.
20885
20886 2010-03-14  Bruno Haible  <bruno@clisp.org>
20887
20888         Fix bug introduced on 2009-12-31.
20889         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
20890         gl_PREREQ_SYS_H_WINSOCK2 always.
20891         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
20892         SYS_SOCKET_H variable.
20893         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
20894         Update comments.
20895         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
20896         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
20897         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
20898         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
20899         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
20900
20901 2010-03-14  Bruno Haible  <bruno@clisp.org>
20902
20903         Fix values returned by sinl, cosl.
20904         * lib/trigl.h: Add specification comments.
20905         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
20906         that combines the values from the precomputed table with the values of
20907         the Chebyshev polynomials.
20908
20909 2010-03-14  Bruno Haible  <bruno@clisp.org>
20910
20911         Fix compilation error when modules 'posix_spawn[p]' are not used.
20912         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
20913         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
20914
20915 2010-03-14  Bruno Haible  <bruno@clisp.org>
20916
20917         Fix compilation error on mingw when module 'time_r' is not used.
20918         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
20919         is 1.
20920         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
20921         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
20922         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
20923         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
20924
20925 2010-03-14  Bruno Haible  <bruno@clisp.org>
20926
20927         Fix compilation error with Sun C.
20928         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
20929         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
20930         instead of GCC specific ULONG_LONG_MAX.
20931         * lib/xstrtoll.c: Likewise.
20932         * lib/xstrtoull.c: Likewise.
20933
20934 2010-03-13  Bruno Haible  <bruno@clisp.org>
20935
20936         Allow the user to disable C++ code and tests.
20937         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
20938         (gl_PROG_ANSI_CXX): Require it.
20939
20940 2010-03-13  Bruno Haible  <bruno@clisp.org>
20941
20942         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
20943         cases.
20944
20945 2010-03-13  Bruno Haible  <bruno@clisp.org>
20946
20947         Test that gnulib does not break the standard C++ headers.
20948         * tests/test-locale-c++2.cc: New file.
20949         * modules/locale-tests (Files): Add it.
20950         (Makefile.am): Compile it for test-locale-c++.
20951         * tests/test-math-c++2.cc: New file.
20952         * modules/math-tests (Files): Add it.
20953         (Makefile.am): Compile it for test-math-c++.
20954         * tests/test-signal-c++2.cc: New file.
20955         * modules/signal-tests (Files): Add it.
20956         (Makefile.am): Compile it for test-signal-c++.
20957         * tests/test-stdio-c++2.cc: New file.
20958         * modules/stdio-tests (Files): Add it.
20959         (Makefile.am): Compile it for test-stdio-c++.
20960         * tests/test-stdlib-c++2.cc: New file.
20961         * modules/stdlib-tests (Files): Add it.
20962         (Makefile.am): Compile it for test-stdlib-c++.
20963         * tests/test-string-c++2.cc: New file.
20964         * modules/string-tests (Files): Add it.
20965         (Makefile.am): Compile it for test-string-c++.
20966         * tests/test-time-c++2.cc: New file.
20967         * modules/time-tests (Files): Add it.
20968         (Makefile.am): Compile it for test-time-c++.
20969         Reported by John W. Eaton <jwe@gnu.org>.
20970
20971 2010-03-13  Bruno Haible  <bruno@clisp.org>
20972
20973         * gnulib-tool (func_usage): Clarify which options are available for
20974         --create-testdir and --create-megatestdir.
20975
20976 2010-03-13  Bruno Haible  <bruno@clisp.org>
20977
20978         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
20979         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
20980         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
20981         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
20982         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
20983         when appropriate.
20984         Reported by Jim Meyering.
20985
20986 2010-03-12  Simon Josefsson  <simon@josefsson.org>
20987
20988         * gnulib-tool (func_import): Explain origin of code.
20989
20990 2010-03-12  Bruno Haible  <bruno@clisp.org>
20991
20992         Fix problem with automake's definition of CXXLINK.
20993         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
20994         Reported by Simon Josefsson and Ludovic Courtès.
20995
20996 2010-03-12  Bruno Haible  <bruno@clisp.org>
20997
20998         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
20999         stable releases.
21000
21001 2010-03-11  Bruno Haible  <bruno@clisp.org>
21002
21003         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
21004         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
21005         whether the system provides one variant or multiple variants of the
21006         function.
21007         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
21008         C++ compilers.
21009         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
21010         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
21011         Reported by Jim Meyering.
21012
21013 2010-03-09  Simon Josefsson  <simon@josefsson.org>
21014
21015         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
21016
21017 2010-03-08  Bruno Haible  <bruno@clisp.org>
21018
21019         gnulib-tool: Add support for --libtool in --create-testdir.
21020         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
21021         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
21022
21023 2010-03-08  Eric Blake  <eblake@redhat.com>
21024
21025         gnulib-tool.texi: mention possibility of git submodule
21026         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
21027         submodules.
21028         * doc/.gitignore: Ignore another generated file.
21029
21030 2010-03-08  Karl Berry  <karl@gnu.org>
21031
21032         * doc/gnulib-tool.texi (VCS Issues): Mention third option
21033         of committing gnulib files while skipping others.
21034
21035 2010-03-07  Bruno Haible  <bruno@clisp.org>
21036
21037         Tests of module 'wctype' in C++ mode.
21038         * tests/test-wctype-c++.cc: New file.
21039         * modules/wctype-tests (Files): Add it and tests/signature.h.
21040         (Depends-on): Add ansi-c++-opt.
21041         (Makefile.am): Arrange to compile and run test-wctype-c++.
21042
21043         Tests of module 'wchar' in C++ mode.
21044         * tests/test-wchar-c++.cc: New file.
21045         * modules/wchar-tests (Files): Add it and tests/signature.h.
21046         (Depends-on): Add ansi-c++-opt.
21047         (Makefile.am): Arrange to compile and run test-wchar-c++.
21048         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
21049         gl_MODULE_INDICATOR.
21050
21051         Tests of module 'unistd' in C++ mode.
21052         * tests/test-unistd-c++.cc: New file.
21053         * modules/unistd-tests (Files): Add it and tests/signature.h.
21054         (Depends-on): Add ansi-c++-opt.
21055         (Makefile.am): Arrange to compile and run test-unistd-c++.
21056         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
21057         gl_MODULE_INDICATOR.
21058
21059         Tests of module 'time' in C++ mode.
21060         * tests/test-time-c++.cc: New file.
21061         * modules/time-tests (Files): Add it and tests/signature.h.
21062         (Depends-on): Add ansi-c++-opt.
21063         (Makefile.am): Arrange to compile and run test-time-c++.
21064         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
21065
21066         Tests of module 'sys_time' in C++ mode.
21067         * tests/test-sys_time-c++.cc: New file.
21068         * modules/sys_time-tests (Files): Add it and tests/signature.h.
21069         (Depends-on): Add ansi-c++-opt.
21070         (Makefile.am): Arrange to compile and run test-sys_time-c++.
21071         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
21072         gl_MODULE_INDICATOR.
21073
21074         Tests of module 'sys_stat' in C++ mode.
21075         * tests/test-sys_stat-c++.cc: New file.
21076         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
21077         (Depends-on): Add ansi-c++-opt.
21078         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
21079         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
21080         gl_MODULE_INDICATOR.
21081
21082         Tests of module 'sys_socket' in C++ mode.
21083         * tests/test-sys_socket-c++.cc: New file.
21084         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
21085         (Depends-on): Add ansi-c++-opt.
21086         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
21087         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
21088         gl_MODULE_INDICATOR.
21089
21090         Tests of module 'sys_select' in C++ mode.
21091         * tests/test-sys_select-c++.cc: New file.
21092         * modules/sys_select-tests (Files): Add it and tests/signature.h.
21093         (Depends-on): Add ansi-c++-opt.
21094         (Makefile.am): Arrange to compile and run test-sys_select-c++.
21095         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
21096         gl_MODULE_INDICATOR.
21097
21098         Tests of module 'sys_ioctl' in C++ mode.
21099         * tests/test-sys_ioctl-c++.cc: New file.
21100         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
21101         (Depends-on): Add ansi-c++-opt.
21102         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
21103         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
21104         gl_MODULE_INDICATOR.
21105
21106         Tests of module 'string' in C++ mode.
21107         * tests/test-string-c++.cc: New file.
21108         * modules/string-tests (Files): Add it and tests/signature.h.
21109         (Depends-on): Add ansi-c++-opt.
21110         (Makefile.am): Arrange to compile and run test-string-c++.
21111         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
21112         gl_MODULE_INDICATOR.
21113
21114         Tests of module 'stdlib' in C++ mode.
21115         * tests/test-stdlib-c++.cc: New file.
21116         * modules/stdlib-tests (Files): Add it and tests/signature.h.
21117         (Depends-on): Add ansi-c++-opt.
21118         (Makefile.am): Arrange to compile and run test-stdlib-c++.
21119         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
21120         gl_MODULE_INDICATOR.
21121
21122         Tests of module 'stdio' in C++ mode.
21123         * tests/test-stdio-c++.cc: New file.
21124         * modules/stdio-tests (Files): Add it and tests/signature.h.
21125         (Depends-on): Add ansi-c++-opt.
21126         (Makefile.am): Arrange to compile and run test-stdio-c++.
21127         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
21128         gl_MODULE_INDICATOR.
21129
21130         Tests of module 'spawn' in C++ mode.
21131         * tests/test-spawn-c++.cc: New file.
21132         * modules/spawn-tests (Files): Add it and tests/signature.h.
21133         (Depends-on): Add ansi-c++-opt.
21134         (Makefile.am): Arrange to compile and run test-spawn-c++.
21135         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
21136         gl_MODULE_INDICATOR.
21137
21138         Tests of module 'signal' in C++ mode.
21139         * tests/test-signal-c++.cc: New file.
21140         * modules/signal-tests (Files): Add it and tests/signature.h.
21141         (Depends-on): Add ansi-c++-opt.
21142         (Makefile.am): Arrange to compile and run test-signal-c++.
21143         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
21144         gl_MODULE_INDICATOR.
21145
21146         Tests of module 'search' in C++ mode.
21147         * tests/test-search-c++.cc: New file.
21148         * modules/search-tests (Files): Add it and tests/signature.h.
21149         (Depends-on): Add ansi-c++-opt.
21150         (Makefile.am): Arrange to compile and run test-search-c++.
21151         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
21152         gl_MODULE_INDICATOR.
21153
21154         Tests of module 'math' in C++ mode.
21155         * tests/test-math-c++.cc: New file.
21156         * modules/math-tests (Files): Add it and tests/signature.h.
21157         (Depends-on): Add ansi-c++-opt.
21158         (Makefile.am): Arrange to compile and run test-math-c++.
21159         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
21160
21161         Tests of module 'locale' in C++ mode.
21162         * tests/test-locale-c++.cc: New file.
21163         * modules/locale-tests (Files): Add it and tests/signature.h.
21164         (Depends-on): Add ansi-c++-opt.
21165         (Makefile.am): Arrange to compile and run test-locale-c++.
21166         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
21167         gl_MODULE_INDICATOR.
21168
21169         Tests of module 'langinfo' in C++ mode.
21170         * tests/test-langinfo-c++.cc: New file.
21171         * modules/langinfo-tests (Files): Add it and tests/signature.h.
21172         (Depends-on): Add ansi-c++-opt.
21173         (Makefile.am): Arrange to compile and run test-langinfo-c++.
21174         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
21175         gl_MODULE_INDICATOR.
21176
21177         Tests of module 'iconv-h' in C++ mode.
21178         * tests/test-iconv-h-c++.cc: New file.
21179         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
21180         (Depends-on): Add ansi-c++-opt.
21181         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
21182
21183         Tests of module 'glob' in C++ mode.
21184         * tests/test-glob-c++.cc: New file.
21185         * modules/glob-tests (Files): Add it.
21186         (Depends-on): Add ansi-c++-opt.
21187         (Makefile.am): Arrange to compile and run test-glob-c++.
21188
21189         Tests of module 'fcntl-h' in C++ mode.
21190         * tests/test-fcntl-h-c++.cc: New file.
21191         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
21192         (Depends-on): Add ansi-c++-opt.
21193         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
21194         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
21195         gl_MODULE_INDICATOR.
21196
21197         Tests of module 'dirent' in C++ mode.
21198         * tests/test-dirent-c++.cc: New file.
21199         * modules/dirent-tests (Files): Add it and tests/signature.h.
21200         (Depends-on): Add ansi-c++-opt.
21201         (Makefile.am): Arrange to compile and run test-dirent-c++.
21202         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
21203         gl_MODULE_INDICATOR.
21204
21205         New module 'ansi-c++-opt'.
21206         * modules/ansi-c++-opt: New file.
21207         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
21208
21209         Document C++ namespace mode.
21210         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
21211
21212         wctype: Avoid #define replacements in C++ mode.
21213         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
21214         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
21215         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
21216         In C++, define a namespaced alias symbol.
21217         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
21218         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
21219         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
21220         rule.
21221
21222         wchar: Avoid #define replacements in C++ mode.
21223         * lib/wchar.in.h: Include c++defs.h.
21224         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
21225         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
21226         symbol.
21227         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
21228         * modules/wchar (Depends-on): Add c++defs.
21229         (Makefile.am): Update wchar.h rule.
21230
21231         unistd: Avoid #define replacements in C++ mode.
21232         * lib/unistd.in.h: Include c++defs.h.
21233         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
21234         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
21235         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
21236         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
21237         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
21238         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
21239         symbol.
21240         (environ): Update.
21241         * modules/unistd (Depends-on): Add c++defs.
21242         (Makefile.am): Update unistd.h rule.
21243
21244         time: Avoid #define replacements in C++ mode.
21245         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
21246         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
21247         define a namespaced alias symbol.
21248         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
21249         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
21250         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
21251         * modules/time (Depends-on): Add c++defs, warn-on-use.
21252         (Makefile.am): Update time.h rule.
21253         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
21254         * modules/nanosleep (configure.ac): Likewise.
21255         * modules/strptime (configure.ac): Likewise.
21256         * modules/timegm (configure.ac): Likewise.
21257
21258         sys_time: Avoid #define replacements in C++ mode.
21259         * lib/sys_time.in.h: Include c++defs.h.
21260         (gettimeofday): In C++, define a namespaced alias symbol.
21261         * modules/sys_time (Depends-on): Add c++defs.
21262         (Makefile.am): Update sys/time.h rule.
21263
21264         sys_stat: Avoid #define replacements in C++ mode.
21265         * lib/sys_stat.in.h: Include c++defs.h.
21266         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
21267         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
21268         namespaced alias symbol.
21269         In C++, define a namespaced alias symbol.
21270         * modules/sys_stat (Depends-on): Add c++defs.
21271         (Makefile.am): Update sys/stat.h rule.
21272
21273         sys_socket: Avoid #define replacements in C++ mode.
21274         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
21275         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
21276         definitions also when the system has a <sys/socket.h>.
21277         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
21278         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
21279         In C++, define a namespaced alias symbol.
21280         * modules/sys_socket (Depends-on): Add c++defs.
21281         (Makefile.am): Update sys/socket.h rule.
21282
21283         sys_select: Avoid #define replacements in C++ mode.
21284         * lib/sys_select.in.h: Include c++defs.h. Enable the function
21285         definitions also when the system has a <sys/select.h>.
21286         (select): In C++, define a namespaced alias symbol.
21287         * modules/sys_select (Depends-on): Add c++defs.
21288         (Makefile.am): Update sys/select.h rule.
21289
21290         sys_ioctl: Avoid #define replacements in C++ mode.
21291         * lib/sys_ioctl.in.h: Include c++defs.h.
21292         (ioctl): In C++, define a namespaced alias symbol.
21293         * modules/sys_ioctl (Depends-on): Add c++defs.
21294         (Makefile.am): Update sys/ioctl.h rule.
21295
21296         string: Avoid #define replacements in C++ mode.
21297         * lib/string.in.h: Include c++defs.h.
21298         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
21299         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
21300         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
21301         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
21302         strsignal, strverscmp): In C++, define a namespaced alias symbol.
21303         * modules/string (Depends-on): Add c++defs.
21304         (Makefile.am): Update string.h rule.
21305
21306         stdlib: Avoid #define replacements in C++ mode.
21307         * lib/stdlib.in.h: Include c++defs.h.
21308         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
21309         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
21310         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
21311         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
21312         symbol.
21313         * modules/stdlib (Depends-on): Add c++defs.
21314         (Makefile.am): Update stdlib.h rule.
21315
21316         stdio: Avoid #define replacements in C++ mode.
21317         * lib/stdio.in.h: Include c++defs.h.
21318         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
21319         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
21320         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
21321         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
21322         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
21323         namespaced alias symbol.
21324         * modules/stdio (Depends-on): Add c++defs.
21325         (Makefile.am): Update stdio.h rule.
21326
21327         spawn: Avoid #define replacements in C++ mode.
21328         * lib/spawn.in.h: Include c++defs.h.
21329         (posix_spawn, posix_spawnp, posix_spawnattr_init,
21330         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
21331         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
21332         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
21333         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
21334         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
21335         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
21336         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
21337         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
21338         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
21339         In C++, define a namespaced alias symbol.
21340         * modules/spawn (Depends-on): Add c++defs.
21341         (Makefile.am): Update spawn.h rule.
21342
21343         signal: Avoid #define replacements in C++ mode.
21344         * lib/signal.in.h: Include c++defs.h.
21345         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
21346         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
21347         namespaced alias symbol.
21348         * modules/signal (Depends-on): Add c++defs.
21349         (Makefile.am): Update signal.h rule.
21350
21351         search: Avoid #define replacements in C++ mode.
21352         * lib/search.in.h: Include c++defs.h.
21353         (_gl_search_compar_fn, _gl_search_action_fn): New types.
21354         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
21355         symbol.
21356         * modules/search (Depends-on): Add c++defs.
21357         (Makefile.am): Update search.h rule.
21358
21359         math: Avoid #define replacements in C++ mode.
21360         * lib/math.in.h: Include c++defs.h.
21361         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
21362         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
21363         trunc, truncl): In C++, define a namespaced alias symbol.
21364         * modules/math (Depends-on): Add c++defs.
21365         (Makefile.am): Update math.h rule.
21366
21367         locale: Avoid #define replacements in C++ mode.
21368         * lib/locale.in.h: Include c++defs.h.
21369         (duplocale): In C++, define a namespaced alias symbol.
21370         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
21371         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
21372         * modules/locale (Depends-on): Add c++defs.
21373         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
21374
21375         langinfo: Avoid #define replacements in C++ mode.
21376         * lib/langinfo.in.h: Include c++defs.h.
21377         (nl_langinfo): In C++, define a namespaced alias symbol.
21378         * modules/langinfo (Depends-on): Add c++defs.
21379         (Makefile.am): Update langinfo.h rule.
21380
21381         iconv-h: Avoid #define replacements in C++ mode.
21382         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
21383         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
21384         symbol.
21385         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
21386         whenever iconv is present.
21387         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
21388         (Makefile.am): Update iconv.h rule.
21389
21390         glob: Avoid #define replacements in C++ mode.
21391         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
21392         (_gl_glob_errfunc_fn): New type.
21393         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
21394         symbol.
21395         * modules/glob (Depends-on): Add c++defs, warn-on-use.
21396         (Makefile.am): Update glob.h rule.
21397
21398         fcntl-h: Avoid #define replacements in C++ mode.
21399         * lib/fcntl.in.h: Include c++defs.h.
21400         (fcntl, open, openat): In C++, define a namespaced alias symbol.
21401         * modules/fcntl-h (Depends-on): Add c++defs.
21402         (Makefile.am): Update fcntl.h rule.
21403
21404         dirent: Avoid #define replacements in C++ mode.
21405         * lib/dirent.in.h: Include c++defs.h.
21406         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
21407         namespaced alias symbol.
21408         (dirfd): Update declaration.
21409         * modules/dirent (Depends-on): Add c++defs.
21410         (Makefile.am): Update dirent.h rule.
21411
21412         ctype: Make it usable in C++ code.
21413         * lib/ctype.in.h: Include c++defs.h.
21414         (isblank): Declare as extern "C".
21415         * modules/ctype (Depends-on): Add c++defs.
21416         (Makefile.am): Update ctype.h rule.
21417
21418         New module 'c++defs'.
21419         * modules/c++defs: New file.
21420         * build-aux/c++defs.h: New file.
21421         Reported by John W. Eaton <jwe@gnu.org>.
21422
21423 2010-03-07  Bruno Haible  <bruno@clisp.org>
21424
21425         logb: Provide missing declaration for Cygwin.
21426         * lib/math.in.h (logb): New declaration.
21427         * m4/logb.m4: New file.
21428         * modules/logb (Files): Add m4/logb.m4.
21429         (Depends-on): Add math.
21430         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
21431         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
21432         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
21433         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
21434         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
21435
21436 2010-03-07  Bruno Haible  <bruno@clisp.org>
21437
21438         Fix test-cond link error.
21439         * tests/test-cond.c: Include <stdio.h>.
21440
21441 2010-03-07  Bruno Haible  <bruno@clisp.org>
21442
21443         Fix test-dirent-safer link error.
21444         * modules/dirent-safer-tests (Makefile.am): Define
21445         test_dirent_safer_LDADD.
21446
21447 2010-03-07  Bruno Haible  <bruno@clisp.org>
21448
21449         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
21450         among default module list.
21451
21452 2010-03-07  Bruno Haible  <bruno@clisp.org>
21453
21454         Fix link error on platforms with GNU libiconv.
21455         * modules/unistr/u8-strcoll-tests (Makefile): Define
21456         test_u8_strcoll_LDADD.
21457         * modules/unistr/u16-strcoll-tests (Makefile): Define
21458         test_u16_strcoll_LDADD.
21459         * modules/unistr/u32-strcoll-tests (Makefile): Define
21460         test_u32_strcoll_LDADD.
21461
21462 2010-03-07  Bruno Haible  <bruno@clisp.org>
21463
21464         Use POSIX declarations for socket functions.
21465         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
21466         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
21467         rpl_sendto): Change declaration to match POSIX.
21468         * lib/connect.c (rpl_connect): Likewise.
21469         * lib/accept.c (rpl_accept): Likewise.
21470         * lib/bind.c (rpl_bind): Likewise.
21471         * lib/getpeername.c (rpl_getpeername): Likewise.
21472         * lib/getsockname.c (rpl_getsockname): Likewise.
21473         * lib/recv.c (rpl_recv): Likewise.
21474         * lib/send.c (rpl_send): Likewise.
21475         * lib/recvfrom.c (rpl_recvfrom): Likewise.
21476         * lib/sendto.c (rpl_sendto): Likewise.
21477
21478 2010-03-06  Bruno Haible  <bruno@clisp.org>
21479
21480         Clarify access, euidaccess, faccessat.
21481         * doc/posix-functions/faccessat.texi: Mention security problem under
21482         "Other problems", not "Portability problems".
21483         * doc/posix-functions/access.texi: Likewise. Mention a related security
21484         problem.
21485         * doc/glibc-functions/euidaccess.texi: Mention security problems.
21486         * lib/euidaccess.c: Add comments about platforms.
21487         * lib/unistd.in.h (access, euidaccess): Add warnings.
21488
21489 2010-03-07  Bruno Haible  <bruno@clisp.org>
21490
21491         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
21492         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
21493         (POSIX_SPAWN_SETSCHEDULER): Likewise.
21494         (POSIX_SPAWN_USEVFORK): Define in a way that works when
21495         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
21496         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
21497         declare when POSIX_SPAWN_SETSCHEDULER is zero.
21498         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
21499         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
21500         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
21501         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
21502         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
21503         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
21504         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
21505         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
21506         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
21507         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
21508         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
21509         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
21510         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
21511         Likewise.
21512         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
21513         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
21514         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
21515         Likewise.
21516         * tests/test-spawn.c (main): Make it work when
21517         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
21518
21519 2010-03-07  Bruno Haible  <bruno@clisp.org>
21520
21521         Fix incorrect Makefile.am generation in German locale.
21522         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
21523         Execute sed command with character range in C locale.
21524
21525 2010-03-06  Bruno Haible  <bruno@clisp.org>
21526
21527         Tests for module 'iconv-h'.
21528         * modules/iconv-h-tests: New file.
21529         * tests/test-iconv-h.c: New file.
21530
21531         New module 'iconv-h'.
21532         * modules/iconv-h: New file.
21533         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
21534         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
21535         (configure.ac): Remove gl_ICONV_H.
21536         (Makefile.am): Remove rule for iconv.h.
21537
21538 2010-03-06  Bruno Haible  <bruno@clisp.org>
21539
21540         More consistent naming of *.m4 files.
21541         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
21542         * modules/wctype (Files): Update.
21543
21544         More consistent naming of *.m4 files.
21545         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
21546         * modules/wchar (Files): Update.
21547
21548 2010-03-06  Jim Meyering  <meyering@redhat.com>
21549
21550         euidaccess: relax license to LGPLv2+
21551         * modules/euidaccess (License): Relax to LGPLv2+.
21552
21553 2010-03-06  Bruno Haible  <bruno@clisp.org>
21554
21555         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
21556         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
21557         (Makefile.am): Augment lib_SOURCES instead.
21558
21559 2010-03-04  Jim Meyering  <meyering@redhat.com>
21560
21561         utime: remove obsolete module
21562         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
21563         unnecessary for years, and has been marked as obsolete for 10 months.
21564         * modules/utime: Remove file.
21565         * lib/utime.c: Remove file.
21566         * m4/utime.m4: Remove file.
21567         * m4/utimes-null.m4: Remove file.
21568         * doc/posix-functions/utime.texi (utime): Remove reference to
21569         the module.  Move the sole "fixed by gnulib" item into the
21570         "problems not fixed by Gnulib" list.
21571         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
21572
21573 2010-03-05  Simon Josefsson  <simon@josefsson.org>
21574
21575         * modules/exit (License): Relax license to LGPLv2+.
21576         (Status): Mark as obsolete.
21577         * NEWS: Mention deprecated 'exit' module.
21578         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
21579         of now obsolete 'exit'.
21580
21581 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21582
21583         fts-lgpl: remove unused module
21584         * modules/fts-lgpl: Remove.
21585         * MODULES.html.sh (func_all_modules): Adjust.
21586         * check-module (find_included_lib_files): Adjust.
21587         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
21588
21589 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
21590
21591         copy-acl: enhance Solaris ACL error handling
21592         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
21593         * lib/set-mode-acl.c (qset_acl): Likewise.
21594
21595 2010-03-02  Bruno Haible  <bruno@clisp.org>
21596
21597         spawn: Don't override the system defined values on FreeBSD 8.
21598         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
21599         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
21600         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
21601         if HAVE_POSIX_SPAWN is 1.
21602         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
21603
21604 2010-03-01  Bruno Haible  <bruno@clisp.org>
21605
21606         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
21607         regarding Automake.
21608
21609 2010-02-25  Bruno Haible  <bruno@clisp.org>
21610
21611         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
21612         * gnulib-tool: Define 'echo' as a function only before the ksh alias
21613         setting, not afterwards.
21614         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
21615
21616 2010-02-24  Eric Blake  <eblake@redhat.com>
21617
21618         bootstrap, git-version-gen: use timestamp
21619         * build-aux/git-version-gen (scriptversion): Force UTC.
21620         * build-aux/bootstrap (scriptversion): New variable.
21621
21622         bootstrap: allow older git
21623         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
21624         older than 1.6.4.  Requested by the libvirt project.
21625
21626 2010-02-23  Eric Blake  <eblake@redhat.com>
21627
21628         warn-on-use: work with old autoconf
21629         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
21630         AS_VAR semantics of autoconf 2.60.
21631         Reported by Bruno Haible.
21632
21633         bootstrap: improve some comments
21634         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
21635         clarification comments.
21636
21637         gettimeofday: provide correct function
21638         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
21639         when replacement is declared, otherwise provide gettimeofday.
21640         Reported by Michael Goffioul.
21641
21642 2010-02-23  Jim Meyering  <meyering@redhat.com>
21643
21644         lib-ignore: relax license to "unlimited", not LGPLv2+
21645         * modules/lib-ignore (License): Relax to "unlimited".
21646
21647 2010-02-23  Jim Meyering  <meyering@redhat.com>
21648
21649         lib-ignore: relax license to LGPLv2+
21650         * modules/lib-ignore (License): Relax to LGPLv2+.
21651
21652 2010-02-22  Eric Blake  <eblake@redhat.com>
21653
21654         lseek: avoid bash 3.2 broken pipe bug
21655         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
21656         warning from bash 3.2.
21657         Reported by Ben Pfaff, with analysis from Bruno Haible.
21658
21659         bootstrap: support non-FSF copyright holder
21660         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
21661         bootstrap.conf override of COPYRIGHT_HOLDER.
21662         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
21663
21664         bootstrap: interoperate with gettext 0.14.1
21665         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
21666
21667         bootstrap: allow for alternate submodule location
21668         * build-aux/bootstrap (gnulib_path): New variable; use instead of
21669         hardcoding submodule location.
21670         (gnulib_mk): Allow direct use of Makefile.am.
21671
21672         bootstrap: use GNULIB_SRCDIR to reduce disk usage
21673         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
21674         rather than reconfiguring where the submodule points.
21675
21676         gettimeofday: restore support for platforms that lack function
21677         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
21678         replacement if function is missing.
21679         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
21680         * modules/sys_time (Makefile.am): Substitute it.
21681         * lib/sys_time.in.h (gettimeofday): Check it.
21682         Reported by Michael Goffioul.
21683
21684 2010-02-21  Bruno Haible  <bruno@clisp.org>
21685
21686         * lib/stdio.in.h (obstack_printf): Fix typo.
21687
21688 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
21689
21690         vc-list-files: use bzr ls's -R option
21691         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
21692         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
21693
21694 2010-02-21  Jim Meyering  <meyering@redhat.com>
21695
21696         init.sh: fix EXEEXT shims to work also for names like test-prog
21697         * tests/init.sh: Re-exec a better shell, when needed.
21698         If the current shell lacks support for posix $(...), an init.sh-using
21699         test will now try to find a shell that supports that.  If EXEEXT is
21700         nonempty, we also require support for hyphen-in-alias-name and shell
21701         substitutions like ${var#glob}.  Failure to find such a shell results
21702         in a skipped test.
21703
21704 2010-02-21  Bruno Haible  <bruno@clisp.org>
21705
21706         Really work around around "broken pipe" error message from bash 3.2.
21707         * gnulib-tool (func_reset_sigpipe): Remove function.
21708         (echo): In bash 3.2, define to a function that uses printf.
21709         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
21710
21711 2010-02-20  Bruno Haible  <bruno@clisp.org>
21712
21713         Restore support for automake 1.9.6 with autoconf 2.61.
21714         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
21715         Reported by James Youngman <jay@gnu.org>.
21716
21717 2010-02-20  Bruno Haible  <bruno@clisp.org>
21718
21719         Improve *printf warning condition.
21720         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
21721         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
21722         and the function is overridden due to SIGPIPE emulation.
21723
21724 2010-02-20  Bruno Haible  <bruno@clisp.org>
21725
21726         * lib/stdio.in.h: Tweak comments.
21727
21728 2010-02-19  Bruno Haible  <bruno@clisp.org>
21729
21730         Make it easier to find modules. New gnulib-tool option '--find'.
21731         * gnulib-tool: New option --find.
21732         (func_usage): Document it.
21733         (func_sanitize_modulelist): New function, extracted from
21734         func_all_modules.
21735         (func_all_modules): Invoke it.
21736         * doc/gnulib-tool.texi (Which modules?): New node.
21737
21738 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
21739
21740         * lib/sys_select.in.h: Provide select replacement even if
21741         sys/select.h exists on a system, for Interix.
21742
21743 2010-02-18  Jim Meyering  <meyering@redhat.com>
21744
21745         init.sh: don't use $(...) just yet
21746         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
21747         to accommodate e.g., Solaris' /bin/sh.
21748
21749 2010-02-17  Bruno Haible  <bruno@clisp.org>
21750
21751         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
21752         Reported by Ludovic Courtès <ludo@gnu.org>.
21753
21754 2010-02-16  Simon Josefsson  <simon@josefsson.org>
21755
21756         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
21757         linking with -lintl.
21758
21759 2010-02-17  Simon Josefsson  <simon@josefsson.org>
21760
21761         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
21762         if not provided by the system's netdb.h.  Reported by
21763         ludo@gnu.org (Ludovic Courtès).
21764
21765 2010-02-15  Jim Meyering  <meyering@redhat.com>
21766
21767         init.sh: improve portability and efficiency
21768         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
21769         "dummy" in a for loop.
21770         Use '!', not '^' to select the complement of a character set used
21771         in a "case" statement.
21772         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
21773         Suggestions from Eric Blake.
21774
21775         init.sh: automatically accommodate programs with the .exe suffix
21776         Automatically arrange for an invocation of "prog" to execute the
21777         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
21778         may use the simpler "prog", yet still work when built on a system
21779         that requires specifying the added suffix.
21780         Do this by constructing a function named "prog" that invokes
21781         "prog.exe" for each .exe file in selected directories.
21782         * tests/init.sh (find_exe_basenames_): New function.
21783         (create_exe_shim_functions_): New function.
21784         (path_prepend_): Use it.
21785
21786         maint.mk: mark syntax-check sc_*.m rules as .PHONY
21787         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
21788         "make -t syntax-check" doesn't create a ton of sc_*.m files.
21789
21790 2010-02-14  Jim Meyering  <meyering@redhat.com>
21791
21792         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
21793         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
21794         (sc_prohibit_hash_pjw_without_use): New rule.
21795
21796         maint.mk: allow the default upload destination dir to be overridden
21797         * top/maint.mk (upload_dest_dir_): Define with a default that
21798         preserves the status quo.
21799         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
21800         Reported by Peter Simons.
21801
21802         maint.mk: prohibit inclusion of "hash.h" without_use
21803         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
21804
21805 2010-02-10  Jim Meyering  <meyering@redhat.com>
21806
21807         maint.mk: prohibit inclusion of "ignore-value.h" without_use
21808         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
21809
21810 2010-02-09  Eric Blake  <ebb9@byu.net>
21811         and Bruno Haible  <bruno@clisp.org>
21812
21813         obstack-printf-posix: ensure declaration
21814         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
21815         extracted from gl_FUNC_OBSTACK_PRINTF.
21816         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
21817         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
21818         Likewise.
21819         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
21820         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
21821         0.
21822
21823 2010-02-08  Bruno Haible  <bruno@clisp.org>
21824
21825         gnulib-tool: Fix typo in 2010-02-07 commit.
21826         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
21827         Reported by Eric Blake.
21828
21829 2010-02-07  Bruno Haible  <bruno@clisp.org>
21830
21831         gnulib-tool: Fix up caching patches.
21832         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
21833         option --no-cache. Use associative arrays when supported by the shell.
21834         (sed_comments): New variable.
21835         (modcache): Renamed from do_cache.
21836         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
21837         abbreviate unnecessarily.
21838         (have_associative): New variable.
21839         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
21840         way also for ksh and zsh.
21841         (func_init_sed_convert_to_cache_statements): New function, extracted
21842         from func_cache_lookup_module. Add support for associative arrays.
21843         Don't set the c_MODULE_cached variable here. Ignore all lines before
21844         the first field header. Remove only the final newline, not all trailing
21845         newlines. Support empty fields correctly. Limit the use of 'eval' to
21846         assignments.
21847         (func_get_description, func_get_status, func_get_notice,
21848         func_get_applicability, func_get_filelist, func_get_dependencies,
21849         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
21850         func_get_automake_snippet, func_get_include_directive,
21851         func_get_link_directive, func_get_license, func_get_maintainer):
21852         Update documentation. List the unoptimized code first. Add support for
21853         associative arrays. Limit the use of 'eval' to assignments.
21854         (func_get_applicability): Undo stylistic pessimisations.
21855         (func_get_automake_snippet, func_get_include_directive): Reduce code
21856         duplication.
21857         (func_modules_transitive_closure, func_modules_add_dummy,
21858         func_modules_notice, func_modules_to_filelist, func_add_file,
21859         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
21860         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
21861         func_create_testdir, func_create_megatestdir): Update documentation.
21862
21863 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21864
21865         * gnulib-tool (func_cache_lookup_module): Store the module name
21866         belonging to the cache variable; error out if two different
21867         module names map to the same cache variable name.
21868
21869 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21870
21871         gnulib-tool: Make caching optional.
21872         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
21873         Update matching short versions of --no-changelog.
21874         (func_usage): Update.
21875         (sed_extract_cache_prog): Renamed from ...
21876         (sed_extract_prog): ... this; revert to old extraction script.
21877         (func_get_description, func_get_status)
21878         (func_get_notice, func_get_applicability, func_get_filelist)
21879         (func_get_dependencies, func_get_autoconf_early_snippet)
21880         (func_get_autoconf_snippet, func_get_automake_snippet)
21881         (func_get_include_directive, func_get_link_directive)
21882         (func_get_license, func_get_maintainer): If $do_cache is false,
21883         use old, non-caching extraction scripts.
21884         Suggestion by Bruno Haible.
21885
21886 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21887
21888         gnulib-tool: cache module metainformation.
21889         * gnulib-tool (sed_extract_prog): Match newline before each
21890         header, and rewrite header to a shell variable suffix.
21891         (func_cache_var, func_cache_lookup_module): New functions,
21892         to turn a module name into a cache variable prefix, and to
21893         look up and cache module metainformation.
21894         (func_get_description, func_get_status)
21895         (func_get_notice, func_get_applicability, func_get_filelist)
21896         (func_get_dependencies, func_get_autoconf_early_snippet)
21897         (func_get_autoconf_snippet, func_get_automake_snippet)
21898         (func_get_include_directive, func_get_link_directive)
21899         (func_get_license, func_get_maintainer): Use
21900         func_cache_lookup_module.
21901
21902 2010-02-07  Bruno Haible  <bruno@clisp.org>
21903
21904         fnctl: Fix missing dependency.
21905         * modules/fcntl (Depends-on): Add getdtablesize.
21906         Reported by John W. Eaton <jwe@gnu.org>.
21907
21908 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
21909
21910         Argp: fix recognition of short alias options.
21911
21912         * lib/argp-parse.c (convert_options): Fix improper use of
21913         `|' between character values.
21914         * tests/test-argp.c (group1_option): New alias option
21915         --read (-r).
21916         (group1_parser): Special handling for 'r'.
21917         (test15): New test case.
21918         (test_fun): Add test15.
21919         * tests/test-argp-2.sh: Update expected --help and --usage
21920         outputs.
21921
21922 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
21923
21924         * tests/test-argp.c: Fix indentation.
21925
21926 2010-02-04  Eric Blake  <ebb9@byu.net>
21927
21928         gettimeofday: expose type of second argument
21929         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
21930         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
21931         * tests/test-gettimeofday.c: Use it to silence warning.
21932         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
21933         the issue.
21934
21935 2010-02-03  Jim Meyering  <meyering@redhat.com>
21936
21937         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
21938         * lib/regcomp.c (TYPE_SIGNED): Define.
21939         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
21940
21941         regcomp.c: avoid a new -Wshadow warning
21942         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
21943
21944 2010-02-01  Jim Meyering  <meyering@redhat.com>
21945
21946         removing useless parentheses in cpp #define directives
21947         For motivation, see commit c0221df4, "define STREQ(a,b)
21948         consistently, removing useless parentheses"
21949         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
21950         * lib/mountlist.c (MNT_IGNORE): Likewise.
21951         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
21952
21953 2010-02-01  Eric Blake  <ebb9@byu.net>
21954
21955         sys_time: use link-warning
21956         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
21957         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
21958         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
21959         * modules/sys_time (Depends-on): Add warn-on-use.
21960         (Makefile.am): Always build replacement.
21961         (configure.ac): Update substitutions.
21962         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
21963         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
21964         bother with SYS_TIME_H.
21965         * modules/gettimeofday (configure.ac): Declare indicator.
21966         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
21967         in use.
21968
21969         closein-tests: silence compiler warning
21970         * tests/test-closein.c (main): Ignore fread result.
21971         * modules/closein-tests (Depends-on): Add ignore-value.
21972
21973         tests: silence warning about system return
21974         * tests/test-areadlink-with-size.c (main): Ignore system result.
21975         * tests/test-areadlink.c (main): Likewise.
21976         * tests/test-areadlinkat-with-size.c (main): Likewise.
21977         * tests/test-areadlinkat.c (main): Likewise.
21978         * tests/test-canonicalize-lgpl.c (main): Likewise.
21979         * tests/test-canonicalize.c (main): Likewise.
21980         * tests/test-chown.c (main): Likewise.
21981         * tests/test-fchownat.c (main): Likewise.
21982         * tests/test-fdutimensat.c (main): Likewise.
21983         * tests/test-fstatat.c (main): Likewise.
21984         * tests/test-futimens.c (main): Likewise.
21985         * tests/test-lchown.c (main): Likewise.
21986         * tests/test-link.c (main): Likewise.
21987         * tests/test-linkat.c (main): Likewise.
21988         * tests/test-lstat.c (main): Likewise.
21989         * tests/test-mkdir.c (main): Likewise.
21990         * tests/test-mkdirat.c (main): Likewise.
21991         * tests/test-mkfifo.c (main): Likewise.
21992         * tests/test-mkfifoat.c (main): Likewise.
21993         * tests/test-mknod.c (main): Likewise.
21994         * tests/test-readlink.c (main): Likewise.
21995         * tests/test-remove.c (main): Likewise.
21996         * tests/test-rename.c (main): Likewise.
21997         * tests/test-renameat.c (main): Likewise.
21998         * tests/test-rmdir.c (main): Likewise.
21999         * tests/test-symlink.c (main): Likewise.
22000         * tests/test-symlinkat.c (main): Likewise.
22001         * tests/test-unlink.c (main): Likewise.
22002         * tests/test-unlinkat.c (main): Likewise.
22003         * tests/test-utimens.c (main): Likewise.
22004         * tests/test-utimensat.c (main): Likewise.
22005         * modules/areadlink-tests (Depends-on): Add ignore-value.
22006         * modules/areadlink-with-size-tests (Depends-on): Likewise.
22007         * modules/areadlinkat-tests (Depends-on): Likewise.
22008         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
22009         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
22010         * modules/canonicalize-tests (Depends-on): Likewise.
22011         * modules/chown-tests (Depends-on): Likewise.
22012         * modules/fdutimensat-tests (Depends-on): Likewise.
22013         * modules/futimens-tests (Depends-on): Likewise.
22014         * modules/lchown-tests (Depends-on): Likewise.
22015         * modules/link-tests (Depends-on): Likewise.
22016         * modules/linkat-tests (Depends-on): Likewise.
22017         * modules/lstat-tests (Depends-on): Likewise.
22018         * modules/mkdir-tests (Depends-on): Likewise.
22019         * modules/mkfifo-tests (Depends-on): Likewise.
22020         * modules/mkfifoat-tests (Depends-on): Likewise.
22021         * modules/mknod-tests (Depends-on): Likewise.
22022         * modules/openat-tests (Depends-on): Likewise.
22023         * modules/readlink-tests (Depends-on): Likewise.
22024         * modules/remove-tests (Depends-on): Likewise.
22025         * modules/rename-tests (Depends-on): Likewise.
22026         * modules/renameat-tests (Depends-on): Likewise.
22027         * modules/rmdir-tests (Depends-on): Likewise.
22028         * modules/symlink-tests (Depends-on): Likewise.
22029         * modules/symlinkat-tests (Depends-on): Likewise.
22030         * modules/unlink-tests (Depends-on): Likewise.
22031         * modules/utimens-tests (Depends-on): Likewise.
22032         * modules/utimensat-tests (Depends-on): Likewise.
22033
22034 2010-01-31  Bruno Haible  <bruno@clisp.org>
22035
22036         Perform the same test for many <math.h> functions.
22037         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
22038         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
22039         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
22040         of gl_MATHFUNC.
22041         * modules/acos (configure.ac): Likewise.
22042         * modules/asin (configure.ac): Likewise.
22043         * modules/atan (configure.ac): Likewise.
22044         * modules/atan2 (configure.ac): Likewise.
22045         * modules/cbrt (configure.ac): Likewise.
22046         * modules/copysign (configure.ac): Likewise.
22047         * modules/cos (configure.ac): Likewise.
22048         * modules/cosh (configure.ac): Likewise.
22049         * modules/erf (configure.ac): Likewise.
22050         * modules/erfc (configure.ac): Likewise.
22051         * modules/exp (configure.ac): Likewise.
22052         * modules/fmod (configure.ac): Likewise.
22053         * modules/hypot (configure.ac): Likewise.
22054         * modules/j0 (configure.ac): Likewise.
22055         * modules/j1 (configure.ac): Likewise.
22056         * modules/jn (configure.ac): Likewise.
22057         * modules/lgamma (configure.ac): Likewise.
22058         * modules/log (configure.ac): Likewise.
22059         * modules/log10 (configure.ac): Likewise.
22060         * modules/log1p (configure.ac): Likewise.
22061         * modules/pow (configure.ac): Likewise.
22062         * modules/remainder (configure.ac): Likewise.
22063         * modules/sin (configure.ac): Likewise.
22064         * modules/sinh (configure.ac): Likewise.
22065         * modules/tan (configure.ac): Likewise.
22066         * modules/tanh (configure.ac): Likewise.
22067         * modules/y0 (configure.ac): Likewise.
22068         * modules/y1 (configure.ac): Likewise.
22069         * modules/yn (configure.ac): Likewise.
22070         Suggested by Paolo Bonzini.
22071
22072 2010-01-31  Bruno Haible  <bruno@clisp.org>
22073
22074         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
22075
22076 2010-01-31  Bruno Haible  <bruno@clisp.org>
22077
22078         Work around getdelim() bug on FreeBSD 8.0.
22079         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
22080         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
22081         not work.
22082         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
22083         is 1.
22084         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
22085         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
22086         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
22087         a non-zero size.
22088         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
22089
22090 2010-01-31  Bruno Haible  <bruno@clisp.org>
22091
22092         Work around getline() bug on FreeBSD 8.0.
22093         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
22094         and a non-zero size.
22095         * tests/test-getline.c (main): Likewise.
22096         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
22097         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
22098
22099 2010-01-28  Eric Blake  <ebb9@byu.net>
22100
22101         regex: fix build failure
22102         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
22103         platforms.
22104
22105 2010-01-28  Jim Meyering  <meyering@redhat.com>
22106
22107         regex: do not ignore memory allocation failure
22108         * lib/regex_internal.c (create_cd_newstate): Detect
22109         re_node_set_init_copy failure.   Extracted from glibc commit
22110         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
22111
22112         regex: sync more white-space changes from libc
22113         * lib/regex_internal.c: White-space only changes.
22114         * lib/regexec.c: Likewise.
22115
22116         regex: add many uses of __attribute_warn_unused_result__
22117         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
22118         * lib/regexec.c: Likewise.
22119         Extracted from a messy glibc commit.
22120
22121         regcomp.c: spelling and merge-artifact from glibc
22122         * lib/regcomp.c: Merge remainder of glibc's
22123         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
22124
22125         regcomp.c: sync white-space changes from glibc
22126         * lib/regcomp.c: Merge to accommodate white space
22127         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
22128
22129         regcomp.c: do not ignore internal return values
22130         * lib/regcomp.c: Do not ignore internal return values.
22131         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
22132         but without its white-space changes and spelling fixes.
22133
22134         regex_internal.h: define __attribute_warn_unused_result__
22135         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
22136
22137         maint: add a syntax-check rule to check for vulnerable Makefile.in
22138         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
22139
22140 2010-01-27  Jim Meyering  <meyering@redhat.com>
22141
22142         ncftpput-ftp: clean up spaces
22143         * build-aux/ncftpput-ftp: Make Copyright line consistent.
22144         Remove trailing blanks.
22145
22146 2010-01-27  Simon Josefsson  <simon@josefsson.org>
22147
22148         * build-aux/git-version-gen: Fix copyright statement.
22149         * build-aux/gnupload: Likewise.
22150         * tests/test-arcfour.c: Likewise.
22151         * tests/test-arctwo.c: Likewise.
22152         * tests/test-count-one-bits.c: Likewise.
22153         * tests/test-crc.c: Likewise.
22154         * tests/test-des.c: Likewise.
22155         * tests/test-gc-arcfour.c: Likewise.
22156         * tests/test-gc-arctwo.c: Likewise.
22157         * tests/test-gc-des.c: Likewise.
22158         * tests/test-gc-hmac-md5.c: Likewise.
22159         * tests/test-gc-hmac-sha1.c: Likewise.
22160         * tests/test-gc-md2.c: Likewise.
22161         * tests/test-gc-md4.c: Likewise.
22162         * tests/test-gc-md5.c: Likewise.
22163         * tests/test-gc-pbkdf2-sha1.c: Likewise.
22164         * tests/test-gc-rijndael.c: Likewise.
22165         * tests/test-gc-sha1.c: Likewise.
22166         * tests/test-gc.c: Likewise.
22167         * tests/test-gethostname.c: Likewise.
22168         * tests/test-gettimeofday.c: Likewise.
22169         * tests/test-hash.c: Likewise.
22170         * tests/test-hmac-md5.c: Likewise.
22171         * tests/test-hmac-sha1.c: Likewise.
22172         * tests/test-md2.c: Likewise.
22173         * tests/test-md4.c: Likewise.
22174         * tests/test-md5.c: Likewise.
22175         * tests/test-memchr.c: Likewise.
22176         * tests/test-memchr2.c: Likewise.
22177         * tests/test-memcmp.c: Likewise.
22178         * tests/test-memmem.c: Likewise.
22179         * tests/test-memrchr.c: Likewise.
22180         * tests/test-rawmemchr.c: Likewise.
22181         * tests/test-read-file.c: Likewise.
22182         * tests/test-rijndael.c: Likewise.
22183         * tests/test-sockets.c: Likewise.
22184         * tests/test-strchrnul.c: Likewise.
22185         * tests/test-strstr.c: Likewise.
22186         * tests/test-strtod.c: Likewise.
22187         * build-aux/ncftpput-ftp: Likewise.
22188
22189 2010-01-26  Eric Blake  <ebb9@byu.net>
22190
22191         ignore-value: update recommended header name
22192         * modules/ignore-value (Include): Only use <> for headers that
22193         exist in glibc.
22194
22195 2010-01-26  Jim Meyering  <meyering@redhat.com>
22196
22197         test-userspec.c: avoid compiler warnings
22198         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
22199         and "initialization discards qualifiers..." warnings.
22200         Put the first "uid" in its own scope, and make char* members "const".
22201
22202 2010-01-25  Bruno Haible  <bruno@clisp.org>
22203
22204         gnulib-tool: Make warning diagnostics consistent.
22205         * gnulib-tool (func_warning): New function.
22206         Use it everywhere where gnulib-tool produces output to stderr and it is
22207         not a fatal error.
22208
22209 2010-01-25  Bruno Haible  <bruno@clisp.org>
22210
22211         Fix test dependencies.
22212         * modules/xstrtol-tests (Depends-on): Add inttypes.
22213         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
22214
22215 2010-01-25 Pádraig Brady <P@draigBrady.com>
22216
22217         syntax-check: detect incorrect boolean macro values in config.h
22218         * modules/maintainer-makefile (configure.ac): Parameterize the location
22219         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
22220         The logic is from Eric Blake and the location indicated by Jim Meyering.
22221         Note the more natural CONFIG_HEADER name is prohibited by automake
22222         for backwards compatibility reasons.
22223         * top/maint.mk (sc_Wundef_boolean): New rule.
22224
22225 2010-01-25  Jim Meyering  <meyering@redhat.com>
22226
22227         bootstrap: detect MacOS 10.6's shasum, too
22228         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
22229         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
22230
22231 2010-01-23  Jim Meyering  <meyering@redhat.com>
22232
22233         xstrtoll: new module
22234         * modules/xstrtoll: New file.
22235         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
22236         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
22237         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
22238         ./configure fails if you use this module and lack "long long".
22239         * modules/xstrtoll-tests: New module.
22240         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
22241         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
22242         new init.sh-based test framework.
22243
22244 2010-01-24  Bruno Haible  <bruno@clisp.org>
22245
22246         Tests for module 'yn'.
22247         * modules/yn-tests: New file.
22248         * tests/test-yn.c: New file.
22249
22250         Tests for module 'y1'.
22251         * modules/y1-tests: New file.
22252         * tests/test-y1.c: New file.
22253
22254         Tests for module 'y0'.
22255         * modules/y0-tests: New file.
22256         * tests/test-y0.c: New file.
22257
22258         Tests for module 'tanh'.
22259         * modules/tanh-tests: New file.
22260         * tests/test-tanh.c: New file.
22261
22262         Tests for module 'tan'.
22263         * modules/tan-tests: New file.
22264         * tests/test-tan.c: New file.
22265
22266         Tests for module 'sqrt'.
22267         * modules/sqrt-tests: New file.
22268         * tests/test-sqrt.c: New file.
22269
22270         Tests for module 'sinh'.
22271         * modules/sinh-tests: New file.
22272         * tests/test-sinh.c: New file.
22273
22274         Tests for module 'sin'.
22275         * modules/sin-tests: New file.
22276         * tests/test-sin.c: New file.
22277
22278         Tests for module 'rint'.
22279         * modules/rint-tests: New file.
22280         * tests/test-rint.c: New file.
22281
22282         Tests for module 'remainder'.
22283         * modules/remainder-tests: New file.
22284         * tests/test-remainder.c: New file.
22285
22286         Tests for module 'pow'.
22287         * modules/pow-tests: New file.
22288         * tests/test-pow.c: New file.
22289
22290         Tests for module 'nextafter'.
22291         * modules/nextafter-tests: New file.
22292         * tests/test-nextafter.c: New file.
22293
22294         Tests for module 'modf'.
22295         * modules/modf-tests: New file.
22296         * tests/test-modf.c: New file.
22297
22298         Tests for module 'logb'.
22299         * modules/logb-tests: New file.
22300         * tests/test-logb.c: New file.
22301
22302         Tests for module 'log1p'.
22303         * modules/log1p-tests: New file.
22304         * tests/test-log1p.c: New file.
22305
22306         Tests for module 'log10'.
22307         * modules/log10-tests: New file.
22308         * tests/test-log10.c: New file.
22309
22310         Tests for module 'log'.
22311         * modules/log-tests: New file.
22312         * tests/test-log.c: New file.
22313
22314         Tests for module 'lgamma'.
22315         * modules/lgamma-tests: New file.
22316         * tests/test-lgamma.c: New file.
22317
22318         Tests for module 'ldexp'.
22319         * modules/ldexp-tests: New file.
22320         * tests/test-ldexp.c: New file.
22321
22322         Tests for module 'jn'.
22323         * modules/jn-tests: New file.
22324         * tests/test-jn.c: New file.
22325
22326         Tests for module 'j1'.
22327         * modules/j1-tests: New file.
22328         * tests/test-j1.c: New file.
22329
22330         Tests for module 'j0'.
22331         * modules/j0-tests: New file.
22332         * tests/test-j0.c: New file.
22333
22334         Tests for module 'hypot'.
22335         * modules/hypot-tests: New file.
22336         * tests/test-hypot.c: New file.
22337
22338         Tests for module 'fmod'.
22339         * modules/fmod-tests: New file.
22340         * tests/test-fmod.c: New file.
22341
22342         Tests for module 'fabs'.
22343         * modules/fabs-tests: New file.
22344         * tests/test-fabs.c: New file.
22345
22346         Tests for module 'exp'.
22347         * modules/exp-tests: New file.
22348         * tests/test-exp.c: New file.
22349
22350         Tests for module 'erfc'.
22351         * modules/erfc-tests: New file.
22352         * tests/test-erfc.c: New file.
22353
22354         Tests for module 'erf'.
22355         * modules/erf-tests: New file.
22356         * tests/test-erf.c: New file.
22357
22358         Tests for module 'cosh'.
22359         * modules/cosh-tests: New file.
22360         * tests/test-cosh.c: New file.
22361
22362         Tests for module 'cos'.
22363         * modules/cos-tests: New file.
22364         * tests/test-cos.c: New file.
22365
22366         Tests for module 'copysign'.
22367         * modules/copysign-tests: New file.
22368         * tests/test-copysign.c: New file.
22369
22370         Tests for module 'cbrt'.
22371         * modules/cbrt-tests: New file.
22372         * tests/test-cbrt.c: New file.
22373
22374         Tests for module 'atan2'.
22375         * modules/atan2-tests: New file.
22376         * tests/test-atan2.c: New file.
22377
22378         Tests for module 'atan'.
22379         * modules/atan-tests: New file.
22380         * tests/test-atan.c: New file.
22381
22382         Tests for module 'asin'.
22383         * modules/asin-tests: New file.
22384         * tests/test-asin.c: New file.
22385
22386         Tests for module 'acos'.
22387         * modules/acos-tests: New file.
22388         * tests/test-acos.c: New file.
22389
22390 2010-01-24  Bruno Haible  <bruno@clisp.org>
22391
22392         Fix tests for common <math.h> functions.
22393         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
22394         code snippet that references the function pointer, rather than merely
22395         calling the function. Substitute the FUNC_LIBM variable.
22396         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
22397         * modules/acos (configure.ac): Likewise.
22398         * modules/asin (configure.ac): Likewise.
22399         * modules/atan (configure.ac): Likewise.
22400         * modules/atan2 (configure.ac): Likewise.
22401         * modules/cbrt (configure.ac): Likewise.
22402         * modules/copysign (configure.ac): Likewise.
22403         * modules/cos (configure.ac): Likewise.
22404         * modules/cosh (configure.ac): Likewise.
22405         * modules/erf (configure.ac): Likewise.
22406         * modules/erfc (configure.ac): Likewise.
22407         * modules/exp (configure.ac): Likewise.
22408         * modules/fabs (configure.ac): Likewise.
22409         * modules/fmod (configure.ac): Likewise.
22410         * modules/hypot (configure.ac): Likewise.
22411         * modules/j0 (configure.ac): Likewise.
22412         * modules/j1 (configure.ac): Likewise.
22413         * modules/jn (configure.ac): Likewise.
22414         * modules/ldexp (configure.ac): Likewise.
22415         * modules/lgamma (configure.ac): Likewise.
22416         * modules/log (configure.ac): Likewise.
22417         * modules/log10 (configure.ac): Likewise.
22418         * modules/log1p (configure.ac): Likewise.
22419         * modules/logb (configure.ac): Likewise.
22420         * modules/modf (configure.ac): Likewise.
22421         * modules/nextafter (configure.ac): Likewise.
22422         * modules/pow (configure.ac): Likewise.
22423         * modules/remainder (configure.ac): Likewise.
22424         * modules/rint (configure.ac): Likewise.
22425         * modules/sin (configure.ac): Likewise.
22426         * modules/sinh (configure.ac): Likewise.
22427         * modules/tan (configure.ac): Likewise.
22428         * modules/tanh (configure.ac): Likewise.
22429         * modules/y0 (configure.ac): Likewise.
22430         * modules/y1 (configure.ac): Likewise.
22431         * modules/yn (configure.ac): Likewise.
22432
22433 2010-01-24  Bruno Haible  <bruno@clisp.org>
22434
22435         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
22436         * tests/test-acosl.c (x): New variable.
22437         (main): Store argument in x and fetch it from x.
22438         * tests/test-asinl.c (x): New variable.
22439         (main): Store argument in x and fetch it from x.
22440         * tests/test-atanl.c (x): New variable.
22441         (main): Store argument in x and fetch it from x.
22442         * tests/test-cosl.c (x): New variable.
22443         (main): Store argument in x and fetch it from x.
22444         * tests/test-expl.c (x): New variable.
22445         (main): Store argument in x and fetch it from x.
22446         * tests/test-logl.c (x): New variable.
22447         (main): Store argument in x and fetch it from x.
22448         * tests/test-sinl.c (x): New variable.
22449         (main): Store argument in x and fetch it from x.
22450         * tests/test-sqrtl.c (x): New variable.
22451         (main): Store argument in x and fetch it from x.
22452         * tests/test-tanl.c (x): New variable.
22453         (main): Store argument in x and fetch it from x.
22454
22455 2010-01-24  Bruno Haible  <bruno@clisp.org>
22456
22457         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
22458         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
22459         assignments to the initial TESTS_ENVIRONMENT.
22460         * doc/gnulib.texi (Unit test modules): Document it.
22461         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
22462         TESTS_ENVIRONMENT.
22463         * modules/btowc-tests (Makefile.am): Likewise.
22464         * modules/c-stack-tests (Makefile.am): Likewise.
22465         * modules/c-strcase-tests (Makefile.am): Likewise.
22466         * modules/copy-file-tests (Makefile.am): Likewise.
22467         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
22468         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
22469         * modules/mbrtowc-tests (Makefile.am): Likewise.
22470         * modules/mbscasecmp-tests (Makefile.am): Likewise.
22471         * modules/mbscasestr-tests (Makefile.am): Likewise.
22472         * modules/mbschr-tests (Makefile.am): Likewise.
22473         * modules/mbscspn-tests (Makefile.am): Likewise.
22474         * modules/mbsinit-tests (Makefile.am): Likewise.
22475         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
22476         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
22477         * modules/mbspbrk-tests (Makefile.am): Likewise.
22478         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
22479         * modules/mbsrchr-tests (Makefile.am): Likewise.
22480         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
22481         * modules/mbsspn-tests (Makefile.am): Likewise.
22482         * modules/mbsstr-tests (Makefile.am): Likewise.
22483         * modules/nl_langinfo-tests (Makefile.am): Likewise.
22484         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
22485         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
22486         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
22487         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
22488         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
22489         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
22490         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
22491         * modules/wcrtomb-tests (Makefile.am): Likewise.
22492         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
22493         * modules/wcsrtombs-tests (Makefile.am): Likewise.
22494         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
22495         assignments from TESTS_ENVIRONMENT.
22496         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
22497         augmentation.
22498         * modules/argp-version-etc-tests (Makefile.am): Likewise.
22499         * modules/atexit-tests (Makefile.am): Likewise.
22500         * modules/binary-io-tests (Makefile.am): Likewise.
22501         * modules/closein-tests (Makefile.am): Likewise.
22502         * modules/dprintf-posix-tests (Makefile.am): Likewise.
22503         * modules/exclude-tests (Makefile.am): Likewise.
22504         * modules/fflush-tests (Makefile.am): Likewise.
22505         * modules/fpending-tests (Makefile.am): Likewise.
22506         * modules/fprintf-posix-tests (Makefile.am): Likewise.
22507         * modules/freadahead-tests (Makefile.am): Likewise.
22508         * modules/freadptr-tests (Makefile.am): Likewise.
22509         * modules/freadseek-tests (Makefile.am): Likewise.
22510         * modules/fseek-tests (Makefile.am): Likewise.
22511         * modules/fseeko-tests (Makefile.am): Likewise.
22512         * modules/ftell-tests (Makefile.am): Likewise.
22513         * modules/ftello-tests (Makefile.am): Likewise.
22514         * modules/idpriv-drop-tests (Makefile.am): Likewise.
22515         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
22516         * modules/lseek-tests (Makefile.am): Likewise.
22517         * modules/parse-duration-tests (Makefile.am): Likewise.
22518         * modules/perror-tests (Makefile.am): Likewise.
22519         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
22520         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
22521         * modules/pipe-tests (Makefile.am): Likewise.
22522         * modules/pread-tests (Makefile.am): Likewise.
22523         * modules/printf-posix-tests (Makefile.am): Likewise.
22524         * modules/select-tests (Makefile.am): Likewise.
22525         * modules/sigpipe-tests (Makefile.am): Likewise.
22526         * modules/tsearch-tests (Makefile.am): Likewise.
22527         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
22528         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
22529         * modules/uniname/uniname-tests (Makefile.am): Likewise.
22530         * modules/uniwidth/width-tests (Makefile.am): Likewise.
22531         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
22532         * modules/version-etc-tests (Makefile.am): Likewise.
22533         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
22534         * modules/vprintf-posix-tests (Makefile.am): Likewise.
22535         * modules/xalloc-die-tests (Makefile.am): Likewise.
22536         * modules/xprintf-posix-tests (Makefile.am): Likewise.
22537         * modules/xstrtoimax-tests (Makefile.am): Likewise.
22538         * modules/xstrtol-tests (Makefile.am): Likewise.
22539         * modules/xstrtoumax-tests (Makefile.am): Likewise.
22540         * modules/yesno-tests (Makefile.am): Likewise.
22541         Suggested by Jim Meyering.
22542
22543 2010-01-24  Bruno Haible  <bruno@clisp.org>
22544
22545         More documentation.
22546         * doc/gnulib.texi (Writing modules): New chapter.
22547         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
22548         the new chapter.
22549
22550 2010-01-24  Jim Meyering  <meyering@redhat.com>
22551
22552         maint.mk: do not prepend "./" after filtering
22553         * top/maint.mk (_prepend_srcdir_prefix): New variable
22554         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
22555         "./" when $(srcdir) is ".".
22556
22557         define STREQ(a,b) consistently, removing useless parentheses
22558         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
22559         since the only risk is that "a" or "b" contains an unparenthesized
22560         comma, but if either did that, STREQ would have 3 or more arguments.
22561         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
22562         * lib/fts.c (STREQ): Remove unnecessary parentheses.
22563         * lib/hash-triple.c (STREQ): Likewise.
22564         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
22565         * lib/getugroups.c (STREQ): Likewise.
22566
22567 2010-01-23  Jim Meyering  <meyering@redhat.com>
22568
22569         maint.mk: fix syntax-check in a non-srcdir build directory
22570         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
22571         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
22572
22573 2010-01-22  Jim Meyering  <meyering@redhat.com>
22574
22575         userspec: add unit tests
22576         * tests/test-userspec.c: New file.
22577         * modules/userspec-tests: Likewise.
22578
22579 2010-01-21  Jim Meyering  <meyering@redhat.com>
22580
22581         maint.mk: handle source file names containing "." robustly
22582         * top/maint.mk (_dot_escaped_srcdir): Define.
22583         (VC_LIST): Use it in LHS of sed substitution.
22584
22585 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
22586
22587         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
22588         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
22589         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
22590         from a non-srcdir build.
22591
22592 2010-01-20  Eric Blake  <ebb9@byu.net>
22593
22594         warn-on-use: use instead of link-warning
22595         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
22596         * modules/unistd (Depends-on, Makefile.am): Likewise.
22597         * modules/arpa_inet (Depends-on): Replace link-warning with
22598         warn-on-use.
22599         (Makefile.am): Update rules accordingly.
22600         * modules/ctype (Depends-on, Makefile.am): Likewise.
22601         * modules/dirent (Depends-on, Makefile.am): Likewise.
22602         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
22603         * modules/inttypes (Depends-on, Makefile.am): Likewise.
22604         * modules/langinfo (Depends-on, Makefile.am): Likewise.
22605         * modules/locale (Depends-on, Makefile.am): Likewise.
22606         * modules/math (Depends-on, Makefile.am): Likewise.
22607         * modules/search (Depends-on, Makefile.am): Likewise.
22608         * modules/signal (Depends-on, Makefile.am): Likewise.
22609         * modules/spawn (Depends-on, Makefile.am): Likewise.
22610         * modules/stdlib (Depends-on, Makefile.am): Likewise.
22611         * modules/string (Depends-on, Makefile.am): Likewise.
22612         * modules/strings (Depends-on, Makefile.am): Likewise.
22613         * modules/sys_file (Depends-on, Makefile.am): Likewise.
22614         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
22615         * modules/sys_select (Depends-on, Makefile.am): Likewise.
22616         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
22617         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
22618         * modules/sys_times (Depends-on, Makefile.am): Likewise.
22619         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
22620         * modules/wchar (Depends-on, Makefile.am): Likewise.
22621         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
22622         should be poisoned.
22623         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
22624         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
22625         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
22626         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
22627         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
22628         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
22629         * m4/math_h.m4 (gl_MATH_H): Likewise.
22630         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
22631         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
22632         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
22633         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
22634         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
22635         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
22636         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
22637         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
22638         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
22639         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
22640         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
22641         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
22642         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
22643         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
22644         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
22645         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
22646         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
22647         GL_LINK_WARNING.
22648         * lib/ctype.in.h: Likewise.
22649         * lib/dirent.in.h: Likewise.
22650         * lib/fcntl.in.h: Likewise.
22651         * lib/inttypes.in.h: Likewise.
22652         * lib/langinfo.in.h: Likewise.
22653         * lib/locale.in.h: Likewise.
22654         * lib/math.in.h: Likewise.
22655         * lib/search.in.h: Likewise.
22656         * lib/signal.in.h: Likewise.
22657         * lib/spawn.in.h: Likewise.
22658         * lib/stdio.in.h: Likewise.
22659         * lib/stdlib.in.h: Likewise.
22660         * lib/string.in.h: Likewise.
22661         * lib/strings.in.h: Likewise.
22662         * lib/sys_file.in.h: Likewise.
22663         * lib/sys_ioctl.in.h: Likewise.
22664         * lib/sys_select.in.h: Likewise.
22665         * lib/sys_socket.in.h: Likewise.
22666         * lib/sys_stat.in.h: Likewise.
22667         * lib/sys_times.in.h: Likewise.
22668         * lib/sys_utsname.in.h: Likewise.
22669         * lib/unistd.in.h: Likewise.
22670         * lib/wchar.in.h: Likewise.
22671
22672 2010-01-20  Bruno Haible  <bruno@clisp.org>
22673
22674         Avoid duplicate -lm.
22675         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
22676         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
22677         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
22678         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
22679         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
22680         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
22681         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
22682         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
22683         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
22684         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
22685         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
22686         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
22687         Reported by Paolo Bonzini.
22688
22689 2010-01-19  Bruno Haible  <bruno@clisp.org>
22690
22691         langinfo, nl_langinfo: Relicense under LGPLv2+.
22692         * modules/langinfo (License): Change to LGPLv2+.
22693         * modules/nl_langinfo (License): Likewise.
22694         Patch by David Lutterkort <lutter@redhat.com>.
22695
22696 2010-01-19  Bruno Haible  <bruno@clisp.org>
22697
22698         Avoid compilation error with cc on OSF/1 5.1.
22699         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
22700         statement, not before.
22701         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
22702
22703 2010-01-18  Bruno Haible  <bruno@clisp.org>
22704
22705         Avoid a link error due to the __printf__ symbol.
22706         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
22707         and 2.6.x.
22708         (__format__, __printf__): Remove definitions.
22709         * lib/argp-fmtstream.h: Likewise.
22710         * lib/argp.h: Likewise.
22711         * lib/error.h: Likewise.
22712         * lib/vasnprintf.h: Likewise.
22713         * lib/xprintf.h: Likewise.
22714         * lib/xvasprintf.h: Likewise.
22715         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
22716
22717 2010-01-18  Bruno Haible  <bruno@clisp.org>
22718
22719         Tests for module 'tanl'.
22720         * modules/tanl-tests: New file.
22721         * tests/test-tanl.c: New file.
22722
22723         Tests for module 'sqrtl'.
22724         * modules/sqrtl-tests: New file.
22725         * tests/test-sqrtl.c: New file.
22726
22727         Tests for module 'sinl'.
22728         * modules/sinl-tests: New file.
22729         * tests/test-sinl.c: New file.
22730
22731         Tests for module 'logl'.
22732         * modules/logl-tests: New file.
22733         * tests/test-logl.c: New file.
22734
22735         Tests for module 'expl'.
22736         * modules/expl-tests: New file.
22737         * tests/test-expl.c: New file.
22738
22739         Tests for module 'cosl'.
22740         * modules/cosl-tests: New file.
22741         * tests/test-cosl.c: New file.
22742
22743         Tests for module 'atanl'.
22744         * modules/atanl-tests: New file.
22745         * tests/test-atanl.c: New file.
22746
22747         Tests for module 'asinl'.
22748         * modules/asinl-tests: New file.
22749         * tests/test-asinl.c: New file.
22750
22751         Tests for module 'acosl'.
22752         * modules/acosl-tests: New file.
22753         * tests/test-acosl.c: New file.
22754
22755         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
22756         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
22757         tanl): Use the standard gnulib idiom.
22758         * lib/cosl.c: Don't include trigl.c and sincosl.c.
22759         * lib/sinl.c: Likewise.
22760         * lib/tanl.c: Don't include trigl.c.
22761         (kernel_tanl): Make static.
22762         * lib/sincosl.c: Include trigl.h first.
22763         * lib/trigl.c: Likewise.
22764         * m4/acosl.m4: New file.
22765         * m4/asinl.m4: New file.
22766         * m4/atanl.m4: New file.
22767         * m4/cosl.m4: New file.
22768         * m4/expl.m4: New file.
22769         * m4/logl.m4: New file.
22770         * m4/sinl.m4: New file.
22771         * m4/sqrtl.m4: New file.
22772         * m4/tanl.m4: New file.
22773         * m4/mathl.m4: Remove file.
22774         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
22775         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
22776         Don't initialize GNULIB_MATHL.
22777         * modules/acosl: New file.
22778         * modules/asinl: New file.
22779         * modules/atanl: New file.
22780         * modules/cosl: New file.
22781         * modules/expl: New file.
22782         * modules/logl: New file.
22783         * modules/sinl: New file.
22784         * modules/sqrtl: New file.
22785         * modules/tanl: New file.
22786         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
22787         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
22788         substitute GNULIB_MATHL.
22789         * modules/mathl: Rewritten.
22790         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
22791         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
22792         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
22793         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
22794         * doc/posix-functions/expl.texi: Mention the 'expl' module.
22795         * doc/posix-functions/logl.texi: Mention the 'logl' module.
22796         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
22797         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
22798         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
22799
22800 2010-01-18  Bruno Haible  <bruno@clisp.org>
22801
22802         sqrt: Make gl_FUNC_SQRT requirable.
22803         * m4/sqrt.m4: New file.
22804         * modules/sqrt (Files): Add it.
22805         (configure.ac): Invoke gl_FUNC_SQRT.
22806
22807 2010-01-18  Bruno Haible  <bruno@clisp.org>
22808
22809         New modules for common <math.h> functions.
22810         * m4/mathfunc.m4: New file.
22811         * modules/acos: New file.
22812         * modules/asin: New file.
22813         * modules/atan: New file.
22814         * modules/atan2: New file.
22815         * modules/cbrt: New file.
22816         * modules/copysign: New file.
22817         * modules/cos: New file.
22818         * modules/cosh: New file.
22819         * modules/erf: New file.
22820         * modules/erfc: New file.
22821         * modules/exp: New file.
22822         * modules/fabs: New file.
22823         * modules/fmod: New file.
22824         * modules/hypot: New file.
22825         * modules/j0: New file.
22826         * modules/j1: New file.
22827         * modules/jn: New file.
22828         * modules/ldexp: New file.
22829         * modules/lgamma: New file.
22830         * modules/log: New file.
22831         * modules/log10: New file.
22832         * modules/log1p: New file.
22833         * modules/logb: New file.
22834         * modules/modf: New file.
22835         * modules/nextafter: New file.
22836         * modules/pow: New file.
22837         * modules/remainder: New file.
22838         * modules/rint: New file.
22839         * modules/sin: New file.
22840         * modules/sinh: New file.
22841         * modules/sqrt: New file.
22842         * modules/tan: New file.
22843         * modules/tanh: New file.
22844         * modules/y0: New file.
22845         * modules/y1: New file.
22846         * modules/yn: New file.
22847         * doc/posix-functions/acos.texi: Mention the 'acos' module.
22848         * doc/posix-functions/asin.texi: Mention the 'asin' module.
22849         * doc/posix-functions/atan.texi: Mention the 'atan' module.
22850         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
22851         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
22852         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
22853         * doc/posix-functions/cos.texi: Mention the 'cos' module.
22854         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
22855         * doc/posix-functions/erf.texi: Mention the 'erf' module.
22856         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
22857         * doc/posix-functions/exp.texi: Mention the 'exp' module.
22858         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
22859         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
22860         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
22861         * doc/posix-functions/j0.texi: Mention the 'j0' module.
22862         * doc/posix-functions/j1.texi: Mention the 'j1' module.
22863         * doc/posix-functions/jn.texi: Mention the 'jn' module.
22864         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
22865         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
22866         * doc/posix-functions/log.texi: Mention the 'log' module.
22867         * doc/posix-functions/log10.texi: Mention the 'log10' module.
22868         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
22869         * doc/posix-functions/logb.texi: Mention the 'logb' module.
22870         * doc/posix-functions/modf.texi: Mention the 'modf' module.
22871         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
22872         * doc/posix-functions/pow.texi: Mention the 'pow' module.
22873         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
22874         * doc/posix-functions/rint.texi: Mention the 'rint' module.
22875         * doc/posix-functions/sin.texi: Mention the 'sin' module.
22876         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
22877         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
22878         * doc/posix-functions/tan.texi: Mention the 'tan' module.
22879         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
22880         * doc/posix-functions/y0.texi: Mention the 'y0' module.
22881         * doc/posix-functions/y1.texi: Mention the 'y1' module.
22882         * doc/posix-functions/yn.texi: Mention the 'yn' module.
22883
22884 2010-01-18  Jim Meyering  <meyering@redhat.com>
22885
22886         ignore-value: relax license to LGPLv2+
22887         * modules/ignore-value (License): Relax to LGPLv2+.
22888
22889         getdate: don't leak when TZ contains two or more '"'s
22890         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
22891         double quote in TZ after the first one.
22892
22893         readtokens: do not leak internal token_lengths buffer
22894         * lib/readtokens.c (readtokens): Free the local, lengths,
22895         when the supplied "token_lengths" parameter is NULL.
22896
22897 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22898
22899         Fix a couple of missing LIBTHREAD link failures on AIX.
22900         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
22901         $(LIBTHREAD).
22902         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
22903
22904         Link test-poll against INET_PTON_LIB.
22905         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
22906         for inet_pton on Solaris 10.
22907
22908 2010-01-17  Bruno Haible  <bruno@clisp.org>
22909
22910         unistdio/*-sprintf: Fix typo in module description.
22911         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
22912         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
22913         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
22914         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
22915         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
22916         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
22917         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
22918         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
22919
22920 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22921
22922         gnulib-tool: fix filelist for AIX, HP-UX ksh.
22923         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
22924         variables in shell case patterns, for AIX and HP-UX ksh.
22925
22926         Split large sed scripts, for HP-UX sed.
22927         * modules/stdio: Split sed scripts around 50 sed commands,
22928         to avoid HP-UX limit of 99 commands, in the near future.
22929         * modules/string: Likewise.
22930         * modules/unistd: Likewise.
22931
22932         gnulib-tool: avoid writing in the current directory.
22933         * gnulib-tool (func_emit_lib_Makefile_am)
22934         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
22935         not in the current directory, so concurrent gnulib-tool
22936         instances do not interfere.
22937
22938 2010-01-16  Jim Meyering  <meyering@redhat.com>
22939
22940         doc: update users.txt
22941         * users.txt: Add grep.
22942         (diffutils, gzip): Update URLs.
22943
22944 2010-01-12  Bruno Haible  <bruno@clisp.org>
22945
22946         posix_spawn: Avoid test failure on Cygwin.
22947         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
22948         characters.
22949         Reported by Simon Josefsson.
22950
22951 2010-01-12  Bruno Haible  <bruno@clisp.org>
22952
22953         * tests/test-cond.c (main): When skipping the test, show the reason.
22954
22955 2010-01-12  Simon Josefsson  <simon@josefsson.org>
22956
22957         * lib/striconv.c (str_cd_iconv): Avoid if before free.
22958
22959 2010-01-12  Simon Josefsson  <simon@josefsson.org>
22960
22961         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
22962         VC_LIST_ALWAYS_EXCLUDE_REGEX.
22963
22964 2010-01-12  Eric Blake  <ebb9@byu.net>
22965
22966         build: guarantee AS_VAR_IF
22967         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
22968         (gl_AS_VAR_IF): Move...
22969         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
22970         Reported by Simon Josefsson.
22971
22972 2010-01-12  Simon Josefsson  <simon@josefsson.org>
22973
22974         * lib/stdio.in.h: Fix typo.
22975
22976 2010-01-12  Simon Josefsson  <simon@josefsson.org>
22977
22978         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
22979         libgpg-error.
22980
22981 2010-01-12  Simon Josefsson  <simon@josefsson.org>
22982
22983         * tests/test-xalloc-die.sh: Use $EXEEXT.
22984
22985 2010-01-12  Simon Josefsson  <simon@josefsson.org>
22986             Bruno Haible  <bruno@clisp.org>
22987
22988         getlogin, getlogin_r: Avoid test failure.
22989         * tests/test-getlogin.c: Include <stdio.h>.
22990         (main): Skip the test when the function fails because stdin is not a
22991         tty.
22992         * tests/test-getlogin_r.c: Include <stdio.h>.
22993         (main): Skip the test when the function fails because stdin is not a
22994         tty.
22995
22996 2010-01-11  Eric Blake  <ebb9@byu.net>
22997
22998         tests: avoid more large file warnings
22999         * tests/test-fflush.c: Avoid warning about ftell use.
23000         * tests/test-fseek.c: Avoid warning about fseek use.
23001
23002 2010-01-10  Bruno Haible  <bruno@clisp.org>
23003
23004         nproc: Work better on Linux when /proc and /sys are not mounted.
23005         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
23006         as lower bound when, on glibc/Linux systems,
23007         sysconf (_SC_NPROCESSORS_CONF) returns 1.
23008         Suggested by Pádraig Brady <P@draigbrady.com>.
23009         Reported by Dmitry V. Levin <ldv@altlinux.org>.
23010
23011         nproc: Refactor.
23012         * lib/nproc.c (num_processors_via_affinity_mask): New function,
23013         extracted from num_processors.
23014         (num_processors): Call it.
23015
23016 2010-01-11  Jim Meyering  <meyering@redhat.com>
23017
23018         utimecmp: avoid new warning from upcoming gcc-4.5.0
23019         * lib/utimecmp.c (BILLION): Define using #define rather than an
23020         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
23021
23022 2010-01-11  Eric Blake  <ebb9@byu.net>
23023
23024         math: add portability warnings for classification macros
23025         * modules/math (Depends-on): Add warn-on-use.
23026         (Makefile.am): Provide new substitutions.
23027         * m4/math_h.m4 (gl_MATH_H): Require inline.
23028         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
23029         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
23030         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
23031         implement warnings.
23032
23033         unistd: warn on use of environ without module
23034         * modules/unistd (Depends-on): Add warn-on-use.
23035         (Makefile.am): Provide new substitutions.
23036         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
23037         * lib/unistd.in.h (environ): Wrap with a warning helper function.
23038
23039         stdio: warn on suspicious uses
23040         * modules/stdio (Depends-on): Add warn-on-use.
23041         (Makefile.am): Provide new substitutions.
23042         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
23043         fseeko.
23044         * lib/stdio.in.h (gets): Always warn on use.
23045         (fseek, ftell): Adjust when warnings are issued, and honor
23046         _GL_NO_LARGE_FILES as a way to silence the warning.
23047         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
23048         any warning about large file offsets.
23049         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
23050         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
23051         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
23052         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
23053         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
23054         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
23055         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
23056         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
23057
23058         warn-on-use: new module
23059         * modules/warn-on-use: New file.
23060         * build-aux/warn-on-use.h: Likewise.
23061         * m4/warn-on-use.m4: Likewise.
23062         * MODULES.html.sh (Support for building): Mention it.
23063
23064 2010-01-10  Bruno Haible  <bruno@clisp.org>
23065
23066         Tests for module 'unistr/u32-strdup'.
23067         * modules/unistr/u32-strdup-tests: New file.
23068         * tests/unistr/test-u32-strdup.c: New file.
23069
23070         Tests for module 'unistr/u16-strdup'.
23071         * modules/unistr/u16-strdup-tests: New file.
23072         * tests/unistr/test-u16-strdup.c: New file.
23073
23074         Tests for module 'unistr/u8-strdup'.
23075         * modules/unistr/u8-strdup-tests: New file.
23076         * tests/unistr/test-u8-strdup.c: New file.
23077         * tests/unistr/test-strdup.h: New file.
23078
23079         Tests for module 'unistr/u32-strncmp'.
23080         * modules/unistr/u32-strncmp-tests: New file.
23081         * tests/unistr/test-u32-strncmp.c: New file.
23082
23083         Tests for module 'unistr/u16-strncmp'.
23084         * modules/unistr/u16-strncmp-tests: New file.
23085         * tests/unistr/test-u16-strncmp.c: New file.
23086
23087         Tests for module 'unistr/u8-strncmp'.
23088         * modules/unistr/u8-strncmp-tests: New file.
23089         * tests/unistr/test-u8-strncmp.c: New file.
23090         * tests/unistr/test-strncmp.h: New file.
23091
23092         Tests for module 'unistr/u32-strcoll'.
23093         * modules/unistr/u32-strcoll-tests: New file.
23094         * tests/unistr/test-u32-strcoll.c: New file.
23095
23096         Tests for module 'unistr/u16-strcoll'.
23097         * modules/unistr/u16-strcoll-tests: New file.
23098         * tests/unistr/test-u16-strcoll.c: New file.
23099
23100         Tests for module 'unistr/u8-strcoll'.
23101         * modules/unistr/u8-strcoll-tests: New file.
23102         * tests/unistr/test-u8-strcoll.c: New file.
23103
23104         Tests for module 'unistr/u32-strcmp'.
23105         * modules/unistr/u32-strcmp-tests: New file.
23106         * tests/unistr/test-u32-strcmp.c: New file.
23107         * tests/unistr/test-u32-strcmp.h: New file.
23108
23109         Tests for module 'unistr/u16-strcmp'.
23110         * modules/unistr/u16-strcmp-tests: New file.
23111         * tests/unistr/test-u16-strcmp.c: New file.
23112         * tests/unistr/test-u16-strcmp.h: New file.
23113
23114         Tests for module 'unistr/u8-strcmp'.
23115         * modules/unistr/u8-strcmp-tests: New file.
23116         * tests/unistr/test-u8-strcmp.c: New file.
23117         * tests/unistr/test-u8-strcmp.h: New file.
23118         * tests/unistr/test-strcmp.h: New file.
23119
23120         Tests for module 'unistr/u32-strncat'.
23121         * modules/unistr/u32-strncat-tests: New file.
23122         * tests/unistr/test-u32-strncat.c: New file.
23123
23124         Tests for module 'unistr/u16-strncat'.
23125         * modules/unistr/u16-strncat-tests: New file.
23126         * tests/unistr/test-u16-strncat.c: New file.
23127
23128         Tests for module 'unistr/u8-strncat'.
23129         * modules/unistr/u8-strncat-tests: New file.
23130         * tests/unistr/test-u8-strncat.c: New file.
23131         * tests/unistr/test-strncat.h: New file.
23132
23133         Tests for module 'unistr/u32-strcat'.
23134         * modules/unistr/u32-strcat-tests: New file.
23135         * tests/unistr/test-u32-strcat.c: New file.
23136
23137         Tests for module 'unistr/u16-strcat'.
23138         * modules/unistr/u16-strcat-tests: New file.
23139         * tests/unistr/test-u16-strcat.c: New file.
23140
23141         Tests for module 'unistr/u8-strcat'.
23142         * modules/unistr/u8-strcat-tests: New file.
23143         * tests/unistr/test-u8-strcat.c: New file.
23144         * tests/unistr/test-strcat.h: New file.
23145
23146         Tests for module 'unistr/u32-stpncpy'.
23147         * modules/unistr/u32-stpncpy-tests: New file.
23148         * tests/unistr/test-u32-stpncpy.c: New file.
23149
23150         Tests for module 'unistr/u16-stpncpy'.
23151         * modules/unistr/u16-stpncpy-tests: New file.
23152         * tests/unistr/test-u16-stpncpy.c: New file.
23153
23154         Tests for module 'unistr/u8-stpncpy'.
23155         * modules/unistr/u8-stpncpy-tests: New file.
23156         * tests/unistr/test-u8-stpncpy.c: New file.
23157         * tests/unistr/test-stpncpy.h: New file.
23158
23159         Tests for module 'unistr/u32-strncpy'.
23160         * modules/unistr/u32-strncpy-tests: New file.
23161         * tests/unistr/test-u32-strncpy.c: New file.
23162
23163         Tests for module 'unistr/u16-strncpy'.
23164         * modules/unistr/u16-strncpy-tests: New file.
23165         * tests/unistr/test-u16-strncpy.c: New file.
23166
23167         Tests for module 'unistr/u8-strncpy'.
23168         * modules/unistr/u8-strncpy-tests: New file.
23169         * tests/unistr/test-u8-strncpy.c: New file.
23170         * tests/unistr/test-strncpy.h: New file.
23171
23172         Tests for module 'unistr/u32-stpcpy'.
23173         * modules/unistr/u32-stpcpy-tests: New file.
23174         * tests/unistr/test-u32-stpcpy.c: New file.
23175
23176         Tests for module 'unistr/u16-stpcpy'.
23177         * modules/unistr/u16-stpcpy-tests: New file.
23178         * tests/unistr/test-u16-stpcpy.c: New file.
23179
23180         Tests for module 'unistr/u8-stpcpy'.
23181         * modules/unistr/u8-stpcpy-tests: New file.
23182         * tests/unistr/test-u8-stpcpy.c: New file.
23183         * tests/unistr/test-stpcpy.h: New file.
23184
23185         Tests for module 'unistr/u32-strcpy'.
23186         * modules/unistr/u32-strcpy-tests: New file.
23187         * tests/unistr/test-u32-strcpy.c: New file.
23188
23189         Tests for module 'unistr/u16-strcpy'.
23190         * modules/unistr/u16-strcpy-tests: New file.
23191         * tests/unistr/test-u16-strcpy.c: New file.
23192
23193         Tests for module 'unistr/u8-strcpy'.
23194         * modules/unistr/u8-strcpy-tests: New file.
23195         * tests/unistr/test-u8-strcpy.c: New file.
23196         * tests/unistr/test-strcpy.h: New file.
23197
23198         Tests for module 'unistr/u32-strnlen'.
23199         * modules/unistr/u32-strnlen-tests: New file.
23200         * tests/unistr/test-u32-strnlen.c: New file.
23201
23202         Tests for module 'unistr/u16-strnlen'.
23203         * modules/unistr/u16-strnlen-tests: New file.
23204         * tests/unistr/test-u16-strnlen.c: New file.
23205
23206         Tests for module 'unistr/u8-strnlen'.
23207         * modules/unistr/u8-strnlen-tests: New file.
23208         * tests/unistr/test-u8-strnlen.c: New file.
23209         * tests/unistr/test-strnlen.h: New file.
23210
23211         Tests for module 'unistr/u32-strlen'.
23212         * modules/unistr/u32-strlen-tests: New file.
23213         * tests/unistr/test-u32-strlen.c: New file.
23214
23215         Tests for module 'unistr/u16-strlen'.
23216         * modules/unistr/u16-strlen-tests: New file.
23217         * tests/unistr/test-u16-strlen.c: New file.
23218
23219         Tests for module 'unistr/u8-strlen'.
23220         * modules/unistr/u8-strlen-tests: New file.
23221         * tests/unistr/test-u8-strlen.c: New file.
23222
23223         Tests for module 'unistr/u32-prev'.
23224         * modules/unistr/u32-prev-tests: New file.
23225         * tests/unistr/test-u32-prev.c: New file.
23226
23227         Tests for module 'unistr/u16-prev'.
23228         * modules/unistr/u16-prev-tests: New file.
23229         * tests/unistr/test-u16-prev.c: New file.
23230
23231         Tests for module 'unistr/u8-prev'.
23232         * modules/unistr/u8-prev-tests: New file.
23233         * tests/unistr/test-u8-prev.c: New file.
23234
23235         Tests for module 'unistr/u32-next'.
23236         * modules/unistr/u32-next-tests: New file.
23237         * tests/unistr/test-u32-next.c: New file.
23238
23239         Tests for module 'unistr/u16-next'.
23240         * modules/unistr/u16-next-tests: New file.
23241         * tests/unistr/test-u16-next.c: New file.
23242
23243         Tests for module 'unistr/u8-next'.
23244         * modules/unistr/u8-next-tests: New file.
23245         * tests/unistr/test-u8-next.c: New file.
23246
23247         Tests for module 'unistr/u32-strmbtouc'.
23248         * modules/unistr/u32-strmbtouc-tests: New file.
23249         * tests/unistr/test-u32-strmbtouc.c: New file.
23250
23251         Tests for module 'unistr/u16-strmbtouc'.
23252         * modules/unistr/u16-strmbtouc-tests: New file.
23253         * tests/unistr/test-u16-strmbtouc.c: New file.
23254
23255         Tests for module 'unistr/u8-strmbtouc'.
23256         * modules/unistr/u8-strmbtouc-tests: New file.
23257         * tests/unistr/test-u8-strmbtouc.c: New file.
23258
23259         Tests for module 'unistr/u32-strmblen'.
23260         * modules/unistr/u32-strmblen-tests: New file.
23261         * tests/unistr/test-u32-strmblen.c: New file.
23262
23263         Tests for module 'unistr/u16-strmblen'.
23264         * modules/unistr/u16-strmblen-tests: New file.
23265         * tests/unistr/test-u16-strmblen.c: New file.
23266
23267         Tests for module 'unistr/u8-strmblen'.
23268         * modules/unistr/u8-strmblen-tests: New file.
23269         * tests/unistr/test-u8-strmblen.c: New file.
23270
23271         Tests for module 'unistr/u32-cpy-alloc'.
23272         * modules/unistr/u32-cpy-alloc-tests: New file.
23273         * tests/unistr/test-u32-cpy-alloc.c: New file.
23274
23275         Tests for module 'unistr/u16-cpy-alloc'.
23276         * modules/unistr/u16-cpy-alloc-tests: New file.
23277         * tests/unistr/test-u16-cpy-alloc.c: New file.
23278
23279         Tests for module 'unistr/u8-cpy-alloc'.
23280         * modules/unistr/u8-cpy-alloc-tests: New file.
23281         * tests/unistr/test-u8-cpy-alloc.c: New file.
23282         * tests/unistr/test-cpy-alloc.h: New file.
23283
23284         Tests for module 'unistr/u32-mbsnlen'.
23285         * modules/unistr/u32-mbsnlen-tests: New file.
23286         * tests/unistr/test-u32-mbsnlen.c: New file.
23287
23288         Tests for module 'unistr/u16-mbsnlen'.
23289         * modules/unistr/u16-mbsnlen-tests: New file.
23290         * tests/unistr/test-u16-mbsnlen.c: New file.
23291
23292         Tests for module 'unistr/u8-mbsnlen'.
23293         * modules/unistr/u8-mbsnlen-tests: New file.
23294         * tests/unistr/test-u8-mbsnlen.c: New file.
23295
23296         Tests for module 'unistr/u32-chr'.
23297         * modules/unistr/u32-chr-tests: New file.
23298         * tests/unistr/test-u32-chr.c: New file.
23299
23300         Tests for module 'unistr/u16-chr'.
23301         * modules/unistr/u16-chr-tests: New file.
23302         * tests/unistr/test-u16-chr.c: New file.
23303
23304         Tests for module 'unistr/u8-chr'.
23305         * modules/unistr/u8-chr-tests: New file.
23306         * tests/unistr/test-u8-chr.c: New file.
23307         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
23308
23309         Tests for module 'unistr/u32-cmp2'.
23310         * modules/unistr/u32-cmp2-tests: New file.
23311         * tests/unistr/test-u32-cmp2.c: New file.
23312
23313         Tests for module 'unistr/u16-cmp2'.
23314         * modules/unistr/u16-cmp2-tests: New file.
23315         * tests/unistr/test-u16-cmp2.c: New file.
23316
23317         Tests for module 'unistr/u8-cmp2'.
23318         * modules/unistr/u8-cmp2-tests: New file.
23319         * tests/unistr/test-u8-cmp2.c: New file.
23320         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
23321
23322         Tests for module 'unistr/u32-cmp'.
23323         * modules/unistr/u32-cmp-tests: New file.
23324         * tests/unistr/test-u32-cmp.c: New file.
23325
23326         Tests for module 'unistr/u16-cmp'.
23327         * modules/unistr/u16-cmp-tests: New file.
23328         * tests/unistr/test-u16-cmp.c: New file.
23329
23330         Tests for module 'unistr/u8-cmp'.
23331         * modules/unistr/u8-cmp-tests: New file.
23332         * tests/unistr/test-u8-cmp.c: New file.
23333         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
23334
23335         Tests for module 'unistr/u32-set'.
23336         * modules/unistr/u32-set-tests: New file.
23337         * tests/unistr/test-u32-set.c: New file.
23338
23339         Tests for module 'unistr/u16-set'.
23340         * modules/unistr/u16-set-tests: New file.
23341         * tests/unistr/test-u16-set.c: New file.
23342
23343         Tests for module 'unistr/u8-set'.
23344         * modules/unistr/u8-set-tests: New file.
23345         * tests/unistr/test-u8-set.c: New file.
23346         * tests/unistr/test-set.h: New file.
23347
23348         Tests for module 'unistr/u32-move'.
23349         * modules/unistr/u32-move-tests: New file.
23350         * tests/unistr/test-u32-move.c: New file.
23351
23352         Tests for module 'unistr/u16-move'.
23353         * modules/unistr/u16-move-tests: New file.
23354         * tests/unistr/test-u16-move.c: New file.
23355
23356         Tests for module 'unistr/u8-move'.
23357         * modules/unistr/u8-move-tests: New file.
23358         * tests/unistr/test-u8-move.c: New file.
23359         * tests/unistr/test-move.h: New file.
23360
23361         Tests for module 'unistr/u32-cpy'.
23362         * modules/unistr/u32-cpy-tests: New file.
23363         * tests/unistr/test-u32-cpy.c: New file.
23364
23365         Tests for module 'unistr/u16-cpy'.
23366         * modules/unistr/u16-cpy-tests: New file.
23367         * tests/unistr/test-u16-cpy.c: New file.
23368
23369         Tests for module 'unistr/u8-cpy'.
23370         * modules/unistr/u8-cpy-tests: New file.
23371         * tests/unistr/test-u8-cpy.c: New file.
23372         * tests/unistr/test-cpy.h: New file.
23373
23374 2010-01-09  Bruno Haible  <bruno@clisp.org>
23375
23376         Tests for module 'unistr/u32-uctomb'.
23377         * modules/unistr/u32-uctomb-tests: New file.
23378         * tests/unistr/test-u32-uctomb.c: New file.
23379
23380         Tests for module 'unistr/u16-uctomb'.
23381         * modules/unistr/u16-uctomb-tests: New file.
23382         * tests/unistr/test-u16-uctomb.c: New file.
23383
23384         Tests for module 'unistr/u8-uctomb'.
23385         * modules/unistr/u8-uctomb-tests: New file.
23386         * tests/unistr/test-u8-uctomb.c: New file.
23387
23388         Tests for module 'unistr/u32-mbtoucr'.
23389         * modules/unistr/u32-mbtoucr-tests: New file.
23390         * tests/unistr/test-u32-mbtoucr.c: New file.
23391
23392         Tests for module 'unistr/u16-mbtoucr'.
23393         * modules/unistr/u16-mbtoucr-tests: New file.
23394         * tests/unistr/test-u16-mbtoucr.c: New file.
23395
23396         Tests for module 'unistr/u8-mbtoucr'.
23397         * modules/unistr/u8-mbtoucr-tests: New file.
23398         * tests/unistr/test-u8-mbtoucr.c: New file.
23399
23400         Tests for module 'unistr/u32-mbtouc'.
23401         * modules/unistr/u32-mbtouc-tests: New file.
23402         * tests/unistr/test-u32-mbtouc.c: New file.
23403
23404         Tests for module 'unistr/u16-mbtouc'.
23405         * modules/unistr/u16-mbtouc-tests: New file.
23406         * tests/unistr/test-u16-mbtouc.c: New file.
23407
23408         Tests for module 'unistr/u8-mbtouc'.
23409         * modules/unistr/u8-mbtouc-tests: New file.
23410         * tests/unistr/test-u8-mbtouc.c: New file.
23411
23412         Tests for module 'unistr/u32-mbtouc-unsafe'.
23413         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
23414         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
23415         * tests/unistr/test-u32-mbtouc.h: New file.
23416
23417         Tests for module 'unistr/u16-mbtouc-unsafe'.
23418         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
23419         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
23420         * tests/unistr/test-u16-mbtouc.h: New file.
23421
23422         Tests for module 'unistr/u8-mbtouc-unsafe'.
23423         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
23424         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
23425         * tests/unistr/test-u8-mbtouc.h: New file.
23426
23427         Tests for module 'unistr/u32-mblen'.
23428         * modules/unistr/u32-mblen-tests: New file.
23429         * tests/unistr/test-u32-mblen.c: New file.
23430
23431         Tests for module 'unistr/u16-mblen'.
23432         * modules/unistr/u16-mblen-tests: New file.
23433         * tests/unistr/test-u16-mblen.c: New file.
23434
23435         Tests for module 'unistr/u8-mblen'.
23436         * modules/unistr/u8-mblen-tests: New file.
23437         * tests/unistr/test-u8-mblen.c: New file.
23438
23439         Tests for module 'unistr/u32-to-u16'.
23440         * modules/unistr/u32-to-u16-tests: New file.
23441         * tests/unistr/test-u32-to-u16.c: New file.
23442
23443         Tests for module 'unistr/u32-to-u8'.
23444         * modules/unistr/u32-to-u8-tests: New file.
23445         * tests/unistr/test-u32-to-u8.c: New file.
23446
23447         Tests for module 'unistr/u16-to-u32'.
23448         * modules/unistr/u16-to-u32-tests: New file.
23449         * tests/unistr/test-u16-to-u32.c: New file.
23450
23451         Tests for module 'unistr/u16-to-u8'.
23452         * modules/unistr/u16-to-u8-tests: New file.
23453         * tests/unistr/test-u16-to-u8.c: New file.
23454
23455         Tests for module 'unistr/u8-to-u32'.
23456         * modules/unistr/u8-to-u32-tests: New file.
23457         * tests/unistr/test-u8-to-u32.c: New file.
23458
23459         Tests for module 'unistr/u8-to-u16'.
23460         * modules/unistr/u8-to-u16-tests: New file.
23461         * tests/unistr/test-u8-to-u16.c: New file.
23462
23463         Tests for module 'unistr/u32-check'.
23464         * modules/unistr/u32-check-tests: New file.
23465         * tests/unistr/test-u32-check.c: New file.
23466
23467         Tests for module 'unistr/u16-check'.
23468         * modules/unistr/u16-check-tests: New file.
23469         * tests/unistr/test-u16-check.c: New file.
23470
23471         Tests for module 'unistr/u8-check'.
23472         * modules/unistr/u8-check-tests: New file.
23473         * tests/unistr/test-u8-check.c: New file.
23474
23475         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
23476         (category_equals): New function.
23477         (main): Add more tests.
23478         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
23479
23480         * tests/unictype/test-bidi_byname.c (main): Add more tests.
23481
23482 2010-01-10  Bruno Haible  <bruno@clisp.org>
23483
23484         unistr/u*-strcoll: Try harder to distinguish different strings.
23485         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
23486         compare s1 and s2 to see if they are different.
23487
23488 2010-01-10  Bruno Haible  <bruno@clisp.org>
23489
23490         unistr/u*-stpncpy: Fix the return value.
23491         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
23492         description of the return value consistent with stpncpy in glibc.
23493         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
23494         written non-NUL unit.
23495
23496 2010-01-10  Bruno Haible  <bruno@clisp.org>
23497
23498         unistr/u*-next: Add missing dependencies.
23499         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
23500         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
23501         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
23502
23503 2010-01-10  Bruno Haible  <bruno@clisp.org>
23504
23505         unistr/u8-mbsnlen: Fix return value for incomplete character.
23506         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
23507         u8_mblen.
23508         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
23509         Remove unistr/u8-mblen.
23510         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
23511         u16_mblen.
23512         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
23513         Remove unistr/u16-mblen.
23514
23515 2010-01-10  Bruno Haible  <bruno@clisp.org>
23516
23517         wchar: Fix compilation error when <wchar.h> is used from coreutils.
23518         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
23519         Reported by Brian Gough <bjg@gnu.org> and
23520         Chris Clayton <chris2553@googlemail.com> via
23521         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
23522
23523 2010-01-09  Bruno Haible  <bruno@clisp.org>
23524
23525         unistr/u16-to-u32: Reject invalid input.
23526         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
23527         u16_mbtouc.
23528         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
23529         Remove unistr/u16-mbtouc.
23530
23531         unistr/u16-to-u8: Reject invalid input.
23532         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
23533         u16_mbtouc.
23534         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
23535         Remove unistr/u16-mbtouc.
23536
23537         unistr/u8-to-u32: Reject invalid input.
23538         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
23539         u8_mbtouc.
23540         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
23541         Remove unistr/u8-mbtouc.
23542
23543         unistr/u8-to-u16: Reject invalid input.
23544         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
23545         u8_mbtouc.
23546         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
23547         Remove unistr/u8-mbtouc.
23548
23549 2010-01-09  Bruno Haible  <bruno@clisp.org>
23550
23551         Tests for module 'getlogin'.
23552         * modules/getlogin-tests: New file.
23553         * tests/test-getlogin.c: New file.
23554
23555         New module 'getlogin'.
23556         * lib/unistd.in.h (getlogin): New declaration.
23557         * lib/getlogin.c: New file.
23558         * m4/getlogin.m4: New file.
23559         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
23560         HAVE_GETLOGIN.
23561         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
23562         HAVE_GETLOGIN.
23563         * modules/getlogin: New file.
23564         * doc/posix-functions/getlogin.texi: Mention the new module.
23565         Reported by John W. Eaton <jwe@gnu.org>.
23566
23567 2010-01-09  Bruno Haible  <bruno@clisp.org>
23568
23569         getlogin_r: Support for native Windows.
23570         * lib/getlogin_r.c: Include <windows.h>
23571         (getlogin_r): Implement for native Windows.
23572         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
23573         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
23574         via John W. Eaton <jwe@gnu.org>.
23575
23576 2010-01-09  Bruno Haible  <bruno@clisp.org>
23577
23578         getlogin_r: Small fixes.
23579         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
23580         succeeds.
23581         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
23582         before testing whether getlogin_r is declared. No need to set
23583         HAVE_DECL_GETLOGIN_R to 1.
23584         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
23585
23586 2010-01-09  Bruno Haible  <bruno@clisp.org>
23587
23588         * lib/unistd.in.h (getlogin_r): Add comment.
23589
23590 2010-01-09  Bruno Haible  <bruno@clisp.org>
23591
23592         Tests for module 'getlogin_r'.
23593         * modules/getlogin_r-tests: New file.
23594         * tests/test-getlogin_r.c: New file.
23595
23596 2010-01-09  Jim Meyering  <meyering@redhat.com>
23597
23598         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
23599         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
23600         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
23601
23602 2010-01-08  Simon Josefsson  <simon@josefsson.org>
23603
23604         * lib/dup2.c (rpl_dup2): Improve comment.
23605
23606 2010-01-08  Eric Blake  <ebb9@byu.net>
23607
23608         maint.mk: allow packages to add makefile @@ exceptions
23609         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
23610         (sc_makefile_check): Rename...
23611         (sc_makefile_at_at_check): ...to this, and use hook.
23612
23613         dup2: work around mingw bug
23614         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
23615         Reported by Simon Josefsson.
23616
23617 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
23618
23619         glob: Fix C++ compilation.
23620         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
23621         C++.
23622
23623 2010-01-07  Bruno Haible  <bruno@clisp.org>
23624
23625         Fix indentation of wctype.in.h, broken since 2007-01-06.
23626         * lib/wctype.in.h: Fix indentation of preprocessor directives.
23627
23628 2010-01-07  Bruno Haible  <bruno@clisp.org>
23629
23630         mbslen: Avoid collision with system function.
23631         * lib/string.in.h [MirBSD]: Include <wchar.h>.
23632         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
23633         * m4/mbslen.m4: New file.
23634         * modules/mbslen (Files): Add it.
23635         (configure.ac): Invoke gl_MBSLEN.
23636         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
23637         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
23638         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
23639         via Ian Beckwith <ianb@erislabs.net>.
23640
23641 2010-01-07  Bruno Haible  <bruno@clisp.org>
23642
23643         dirent: Document the last fix.
23644         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
23645
23646 2010-01-07  Bruno Haible  <bruno@clisp.org>
23647
23648         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
23649         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
23650         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
23651         va_list are defined.
23652         * doc/posix-headers/stdio.texi: Document the bug of missing types.
23653         Reported by Eric Blake.
23654
23655 2010-01-07  Bruno Haible  <bruno@clisp.org>
23656
23657         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
23658         * modules/xlist (Depends-on): Add 'list',
23659         * modules/xoset (Depends-on): Add 'oset'.
23660         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
23661
23662 2010-01-07  Bruno Haible  <bruno@clisp.org>
23663
23664         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
23665         * doc/posix-functions/strncasecmp.texi: Likewise.
23666
23667 2010-01-07  Bruno Haible  <bruno@clisp.org>
23668
23669         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
23670
23671 2010-01-07  John W. Eaton  <jwe@octave.org>
23672
23673         wctype: allow C++ use
23674         * lib/wctype.in.h: Add extern "C" block for C++.
23675
23676 2010-01-06  Eric Blake  <ebb9@byu.net>
23677
23678         maint.mk: detect incorrect GFDL usage
23679         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
23680
23681 2010-01-06  Jim Meyering  <meyering@redhat.com>
23682         and Eric Blake  <ebb9@byu.net>
23683
23684         maint.mk: ignore multi-line copyright in NEWS
23685         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
23686
23687 2010-01-06  Eric Blake  <ebb9@byu.net>
23688
23689         select: add missing dependency
23690         * modules/select-tests (Depends-on): Move sockets dependency...
23691         * modules/select (Depends-on): ...here.
23692         Reported by Ian Beckwith.
23693
23694         doc: regenerate INSTALL
23695         * doc/INSTALL: Reflect recent autoconf update.
23696         * doc/INSTALL.ISO: Likewise.
23697         * doc/INSTALL.UTF-8: Likewise.
23698
23699         pread: fix compilation on glibc
23700         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
23701         Reported by Ralf Wildenhues.
23702
23703         dirent: fix test failure
23704         * lib/dirent.in.h (includes): Guarantee ino_t.
23705         Reported by Ralf Wildenhues.
23706
23707 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
23708
23709         linkat, renameat: avoid bad free
23710         * lib/at-func2.c (at_func2): Fix typo.
23711         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
23712
23713 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23714
23715         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
23716         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
23717         to avoid failure of symlink test later.
23718
23719 2010-01-06  Eric Blake  <ebb9@byu.net>
23720
23721         stdio, unistd: guarantee ssize_t
23722         * lib/unistd.in.h (includes): Ensure that types required by POSIX
23723         2008 are exposed when needed.
23724         * lib/stdio.in.h (includes): Likewise.
23725         Reported by Ralf Wildenhues.
23726
23727 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
23728
23729         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
23730         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
23731         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
23732
23733 2010-01-06  Jim Meyering  <meyering@redhat.com>
23734
23735         readtokens: this module *does* require xalloc.h
23736         It uses only functions that were omitted by the old syntax-check rule.
23737         * lib/readtokens.c: Include "xalloc.h" once again.
23738         * modules/readtokens (Depends-on): Add xalloc.
23739         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
23740
23741 2010-01-05  Eric Blake  <ebb9@byu.net>
23742
23743         maint: support 'make announcement' from a VPATH build
23744         * top/maint.mk (announcement): Look for correct NEWS file.
23745
23746 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
23747
23748         utimens (fdutimens): ignore a negative FD, per contract
23749         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
23750         when we have a valid file descriptor.  Otherwise, using a brand
23751         new glibc (with just-patched futimens that now fails with EBADF)
23752         would cause this function to fail with ENOSYS.
23753         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
23754         See also http://bugzilla.redhat.com/552320.
23755
23756 2010-01-05  Eric Blake  <ebb9@byu.net>
23757
23758         strcase: document what it provides
23759         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
23760         gnulib module.
23761         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
23762         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
23763
23764 2010-01-05  Jim Meyering  <meyering@redhat.com>
23765
23766         maint: remove useless inclusions of "xalloc.h"
23767         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
23768         * lib/readtokens.c: Likewise.
23769         * lib/same.c: Likewise.
23770         * modules/getloadavg (Depends-on): Remove xalloc.
23771         * modules/readtokens: Likewise.
23772         * modules/same: Likewise.
23773
23774         maint.mk: include 4 more function names in alloca.h-checking regexp
23775         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
23776         regexp.  Before, we would give a false-positive (saying alloca.h
23777         is included unnecessarily) when the only uses involved omitted symbols.
23778
23779         xalloc.h: use consistent formatting
23780         * lib/xalloc.h: Move declarations to start in the first column.
23781
23782 2010-01-05  Eric Blake  <ebb9@byu.net>
23783
23784         mkdir: avoid xalloc
23785         * lib/mkdir.c (includes): Drop unused header.
23786         Reported by John W. Eaton.
23787
23788 2010-01-04  Jim Meyering  <meyering@redhat.com>
23789
23790         nl_langinfo: avoid configure-time syntax error
23791         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
23792         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
23793         the empty string.  Don't let that provoke a shell syntax error.
23794
23795         regcomp, regexec, fnmatch: avoid array bounds read error
23796         * lib/regcomp.c (build_equiv_class): From glibc:
23797         Use only the low 24 bits of a findidx return value as an index
23798         into the weights array.  Patch by Ulrich Drepper:
23799         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
23800         * lib/regexec.c (check_node_accept_bytes): Likewise.
23801         * lib/fnmatch_loop.c (FCT): Likewise.
23802
23803         regcomp: skip collseq lookup when there are no rules
23804         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
23805         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
23806
23807         regcomp: recognize ill-formed { } expressions
23808         * lib/regcomp.c (parse_dup_op): From glibc:
23809         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
23810
23811         regcomp: fix typo in comment
23812         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
23813         s/satisfy/satisfies/.
23814
23815         regcomp: sync from glibc: remove dead store
23816         * lib/regcomp.c (duplicate_node_closure): Remove useless
23817         search_duplicated_node call and dead store.
23818
23819         regcomp: sync from glibc; always use nl_langinfo
23820         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
23821         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
23822         * modules/regex (Depends-on): Add nl_langinfo.
23823
23824 2010-01-04  Eric Blake  <ebb9@byu.net>
23825
23826         fdopendir: fix configure test
23827         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
23828
23829 2010-01-01  Bruno Haible  <bruno@clisp.org>
23830
23831         wchar: Remove unused configure check.
23832         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
23833
23834 2010-01-01  Eric Blake  <ebb9@byu.net>
23835
23836         headers: make check of system header explicit
23837         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
23838         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
23839         ourselves.
23840         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
23841         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
23842         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
23843         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
23844         internals.
23845         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
23846         missing.
23847         Suggested by Bruno Haible.
23848
23849 2010-01-01  Jim Meyering  <meyering@redhat.com>
23850
23851         ChangeLog: tweak to eliminate unnecessary copyright line
23852         * ChangeLog: Remove a copyright line that was mistakenly updated
23853         by today's update-copyright run.  Reported by Eric Blake.
23854
23855         test-update-copyright: don't let envvar setting cause test failure
23856         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
23857
23858 2010-01-01  Bruno Haible  <bruno@clisp.org>
23859
23860         localename: Avoid gcc warning.
23861         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
23862         function if it is not used.
23863
23864 2010-01-01  Jim Meyering  <meyering@redhat.com>
23865
23866         update nearly all FSF copyright year lists to include 2010
23867         Use the same procedure as for 2009, outlined in
23868         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
23869
23870         version-etc: set COPYRIGHT_YEAR to 2010
23871         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
23872
23873 2009-12-31  Eric Blake  <ebb9@byu.net>
23874
23875         doc: correct availability of cygwin 1.5.x getopt
23876         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
23877         variables.
23878         * doc/posix-functions/opterr.texi (opterr): Likewise.
23879         * doc/posix-functions/optind.texi (optind): Likewise.
23880         * doc/posix-functions/optopt.texi (optopt): Likewise.
23881         * doc/posix-functions/tzname.texi (tzname): Likewise.
23882
23883         openat: update maintainer
23884         * modules/openat (Maintainer): Add myself.
23885
23886         utimens: avoid shadowing warning
23887         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
23888         buffers into one, to avoid shadowing, as well as avoiding a
23889         redundant stat.
23890         Reported by Jim Meyering.
23891
23892         test-dup2: avoid compiler warning
23893         * tests/test-dup2.c (is_inheritable): Only define if used.
23894
23895 2010-01-01  Bruno Haible  <bruno@clisp.org>
23896
23897         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
23898         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
23899         defined, use wctomb instead of wcrtomb.
23900
23901 2010-01-01  Bruno Haible  <bruno@clisp.org>
23902
23903         iconv: Reject native Solaris iconv.
23904         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
23905         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
23906
23907 2009-12-31  Bruno Haible  <bruno@clisp.org>
23908
23909         * tests/test-signal.c (main): Remove test of 'SIG'.
23910
23911 2009-12-31  Bruno Haible  <bruno@clisp.org>
23912
23913         spawn: Fix incomplete fix.
23914         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
23915         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
23916         warnings for GNULIB_POSIXCHECK again.
23917         Reported by Eric Blake.
23918
23919 2009-12-31  Bruno Haible  <bruno@clisp.org>
23920
23921         Avoid namespace pollution on glibc systems.
23922         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
23923         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
23924         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
23925         glibc systems.
23926
23927 2009-12-31  Bruno Haible  <bruno@clisp.org>
23928
23929         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
23930         (gl_REPLACE_WCHAR_H): Turn into a no-op.
23931         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
23932         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
23933         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
23934         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
23935         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
23936
23937 2009-12-31  Bruno Haible  <bruno@clisp.org>
23938
23939         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
23940         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
23941         afterwards.
23942
23943 2009-12-31  Bruno Haible  <bruno@clisp.org>
23944
23945         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
23946         SYS_UTSNAME_H.
23947
23948 2009-12-31  Bruno Haible  <bruno@clisp.org>
23949
23950         spawn: Fix misapplied patch.
23951         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
23952         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
23953         warnings for GNULIB_POSIXCHECK.
23954
23955 2009-12-31  Bruno Haible  <bruno@clisp.org>
23956
23957         times: Update after sys_times changed.
23958         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
23959         * modules/times (Files): Add it.
23960         (configure.ac): Invoke gl_FUNC_TIMES.
23961
23962 2009-12-31  Bruno Haible  <bruno@clisp.org>
23963
23964         Use AC_C_INLINE where necessary.
23965         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
23966         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
23967         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
23968         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
23969         * m4/mbfile.m4 (gl_MBFILE): Likewise.
23970         * m4/mbiter.m4 (gl_MBITER): Likewise.
23971         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
23972         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
23973         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
23974         * modules/u64 (configure.ac): Likewise.
23975
23976 2009-12-31  Bruno Haible  <bruno@clisp.org>
23977
23978         Use AC_C_INLINE instead of module 'inline' where possible.
23979         * modules/inline (Description): Clarify purpose.
23980         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
23981         * modules/count-one-bits (Depends-on): Remove inline.
23982         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
23983         * modules/openat (Depends-on): Remove inline.
23984         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
23985         instead of depending on module 'inline'.
23986         * modules/filevercmp (Depends-on, configure.ac): Likewise.
23987         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
23988         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
23989         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
23990         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
23991         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
23992         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
23993         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
23994         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
23995         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
23996         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
23997         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
23998         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
23999         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
24000         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
24001         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
24002         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
24003         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
24004         Likewise.
24005         * modules/unictype/property-ascii-hex-digit (Depends-on,
24006         configure.ac): Likewise.
24007         * modules/unictype/property-bidi-arabic-digit (Depends-on,
24008         configure.ac): Likewise.
24009         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
24010         configure.ac): Likewise.
24011         * modules/unictype/property-bidi-block-separator (Depends-on,
24012         configure.ac): Likewise.
24013         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
24014         configure.ac): Likewise.
24015         * modules/unictype/property-bidi-common-separator (Depends-on,
24016         configure.ac): Likewise.
24017         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
24018         Likewise.
24019         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
24020         configure.ac): Likewise.
24021         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
24022         configure.ac): Likewise.
24023         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
24024         configure.ac): Likewise.
24025         * modules/unictype/property-bidi-european-digit (Depends-on,
24026         configure.ac): Likewise.
24027         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
24028         configure.ac): Likewise.
24029         * modules/unictype/property-bidi-left-to-right (Depends-on,
24030         configure.ac): Likewise.
24031         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
24032         configure.ac): Likewise.
24033         * modules/unictype/property-bidi-other-neutral (Depends-on,
24034         configure.ac): Likewise.
24035         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
24036         Likewise.
24037         * modules/unictype/property-bidi-segment-separator (Depends-on,
24038         configure.ac): Likewise.
24039         * modules/unictype/property-bidi-whitespace (Depends-on,
24040         configure.ac): Likewise.
24041         * modules/unictype/property-combining (Depends-on, configure.ac):
24042         Likewise.
24043         * modules/unictype/property-composite (Depends-on, configure.ac):
24044         Likewise.
24045         * modules/unictype/property-currency-symbol (Depends-on,
24046         configure.ac): Likewise.
24047         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
24048         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
24049         Likewise.
24050         * modules/unictype/property-default-ignorable-code-point (Depends-on,
24051         configure.ac): Likewise.
24052         * modules/unictype/property-deprecated (Depends-on, configure.ac):
24053         Likewise.
24054         * modules/unictype/property-diacritic (Depends-on, configure.ac):
24055         Likewise.
24056         * modules/unictype/property-extender (Depends-on, configure.ac):
24057         Likewise.
24058         * modules/unictype/property-format-control (Depends-on, configure.ac):
24059         Likewise.
24060         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
24061         Likewise.
24062         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
24063         Likewise.
24064         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
24065         Likewise.
24066         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
24067         Likewise.
24068         * modules/unictype/property-hyphen (Depends-on, configure.ac):
24069         Likewise.
24070         * modules/unictype/property-id-continue (Depends-on, configure.ac):
24071         Likewise.
24072         * modules/unictype/property-id-start (Depends-on, configure.ac):
24073         Likewise.
24074         * modules/unictype/property-ideographic (Depends-on, configure.ac):
24075         Likewise.
24076         * modules/unictype/property-ids-binary-operator (Depends-on,
24077         configure.ac): Likewise.
24078         * modules/unictype/property-ids-trinary-operator (Depends-on,
24079         configure.ac): Likewise.
24080         * modules/unictype/property-ignorable-control (Depends-on,
24081         configure.ac): Likewise.
24082         * modules/unictype/property-iso-control (Depends-on, configure.ac):
24083         Likewise.
24084         * modules/unictype/property-join-control (Depends-on, configure.ac):
24085         Likewise.
24086         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
24087         Likewise.
24088         * modules/unictype/property-line-separator (Depends-on, configure.ac):
24089         Likewise.
24090         * modules/unictype/property-logical-order-exception (Depends-on,
24091         configure.ac): Likewise.
24092         * modules/unictype/property-lowercase (Depends-on, configure.ac):
24093         Likewise.
24094         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
24095         * modules/unictype/property-non-break (Depends-on, configure.ac):
24096         Likewise.
24097         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
24098         Likewise.
24099         * modules/unictype/property-numeric (Depends-on, configure.ac):
24100         Likewise.
24101         * modules/unictype/property-other-alphabetic (Depends-on,
24102         configure.ac): Likewise.
24103         * modules/unictype/property-other-default-ignorable-code-point
24104         (Depends-on, configure.ac): Likewise.
24105         * modules/unictype/property-other-grapheme-extend (Depends-on,
24106         configure.ac): Likewise.
24107         * modules/unictype/property-other-id-continue (Depends-on,
24108         configure.ac): Likewise.
24109         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
24110         Likewise.
24111         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
24112         Likewise.
24113         * modules/unictype/property-other-math (Depends-on, configure.ac):
24114         Likewise.
24115         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
24116         Likewise.
24117         * modules/unictype/property-paired-punctuation (Depends-on,
24118         configure.ac): Likewise.
24119         * modules/unictype/property-paragraph-separator (Depends-on,
24120         configure.ac): Likewise.
24121         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
24122         Likewise.
24123         * modules/unictype/property-pattern-white-space (Depends-on,
24124         configure.ac): Likewise.
24125         * modules/unictype/property-private-use (Depends-on, configure.ac):
24126         Likewise.
24127         * modules/unictype/property-punctuation (Depends-on, configure.ac):
24128         Likewise.
24129         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
24130         Likewise.
24131         * modules/unictype/property-radical (Depends-on, configure.ac):
24132         Likewise.
24133         * modules/unictype/property-sentence-terminal (Depends-on,
24134         configure.ac): Likewise.
24135         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
24136         Likewise.
24137         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
24138         * modules/unictype/property-terminal-punctuation (Depends-on,
24139         configure.ac): Likewise.
24140         * modules/unictype/property-titlecase (Depends-on, configure.ac):
24141         Likewise.
24142         * modules/unictype/property-unassigned-code-value (Depends-on,
24143         configure.ac): Likewise.
24144         * modules/unictype/property-unified-ideograph (Depends-on,
24145         configure.ac): Likewise.
24146         * modules/unictype/property-uppercase (Depends-on, configure.ac):
24147         Likewise.
24148         * modules/unictype/property-variation-selector (Depends-on,
24149         configure.ac): Likewise.
24150         * modules/unictype/property-white-space (Depends-on, configure.ac):
24151         Likewise.
24152         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
24153         Likewise.
24154         * modules/unictype/property-xid-start (Depends-on, configure.ac):
24155         Likewise.
24156         * modules/unictype/property-zero-width (Depends-on, configure.ac):
24157         Likewise.
24158         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
24159         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
24160         Likewise.
24161
24162 2009-12-31  Bruno Haible  <bruno@clisp.org>
24163
24164         Remove unnecessary AC_C_INLINE invocation.
24165         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
24166         since 2009-08-21.
24167
24168 2009-12-31  Jim Meyering  <meyering@redhat.com>
24169
24170         maint.mk: don't require explicit gpg_key_ID in cfg.mk
24171         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
24172         With this change, we can all remove the gpg_key_ID = ... definition
24173         from our respective cfg.mk files.
24174
24175         maint.mk: create announcement template in ~/, not in /tmp
24176         * top/maint.mk (emit_upload_commands): Adjust.
24177         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
24178         Remove temporary file, .ci-msg.
24179
24180 2009-12-31  Eric Blake  <ebb9@byu.net>
24181
24182         link-warning: always build headers with link warnings
24183         * modules/arpa_inet (Makefile.am): Always build replacement
24184         header.
24185         * modules/ctype (Makefile.am): Likewise.
24186         * modules/dirent (Makefile.am): Likewise.
24187         * modules/inttypes (Makefile.am): Likewise.
24188         * modules/langinfo (Makefile.am): Likewise.
24189         * modules/locale (Makefile.am): Likewise.
24190         * modules/spawn (Makefile.am): Likewise.
24191         * modules/sys_file (Makefile.am): Likewise.
24192         * modules/sys_ioctl (Makefile.am): Likewise.
24193         * modules/sys_select (Makefile.am): Likewise.
24194         * modules/sys_socket (Makefile.am): Likewise.
24195         * modules/sys_times (Makefile.am): Likewise.
24196         * modules/sys_utsname (Makefile.am): Likewise.
24197         * modules/sys_wait (Makefile.am): Likewise.
24198         * modules/wchar (Makefile.am): Likewise.
24199         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
24200         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
24201         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
24202         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
24203         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
24204         Likewise.
24205         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
24206         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
24207         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
24208         Likewise.
24209         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
24210         Likewise.
24211         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
24212         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
24213         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
24214         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
24215         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
24216         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
24217         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
24218         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
24219         (gl_WCHAR_H_DEFAULTS): Likewise.
24220
24221 2009-12-31  Eric Blake  <ebb9@byu.net>
24222
24223         signal, spawn: use link warnings
24224         * lib/signal.in.h (sigset_t): Make unconditional.
24225         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
24226         (sigpending, sigprocmask, sigaction): Add link warnings.
24227         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
24228         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
24229         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
24230         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
24231         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
24232         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
24233         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
24234         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
24235         (posix_spawn_file_actions_destroy)
24236         (posix_spawn_file_actions_addopen)
24237         (posix_spawn_file_actions_addclose)
24238         (posix_spawn_file_actions_adddup2): Likewise.
24239         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
24240         * tests/test-signal.c (main): Enhance test.
24241
24242         spawn: improve wrapper support
24243         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
24244         (gl_SPAWN_H_DEFAULTS): New defaults.
24245         * modules/spawn (Makefile.am): Substitute them.
24246         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
24247         Only declare if missing or broken.
24248
24249         sys_times, sys_utsname: use include_next
24250         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
24251         header.
24252         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
24253         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
24254         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
24255         * modules/sys_times (Depends-on): Add include_next.
24256         (Makefile.am): Substitute additional values.
24257         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
24258         * lib/sys_times.in.h (includes): Include native header, if
24259         available.
24260         * lib/sys_utsname.in.h (includes): Likewise.
24261         * tests/test-sys_times.c (main): Enhance test.
24262
24263         fdutimensat: revert prior patch
24264         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
24265         utimens.h.
24266         Reported by Bruno Haible.
24267
24268 2009-12-30  Eric Blake  <ebb9@byu.net>
24269
24270         sys_wait: drop link-warning dependency
24271         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
24272         link-warning efforts.
24273         * lib/sys_wait.in.h: Likewise.
24274
24275         fdutimensat: remove bogus dependency
24276         * modules/fdutimensat (Depends-on): Drop inline.
24277
24278         unistd: fix typo
24279         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
24280
24281 2009-12-30  Bruno Haible  <bruno@clisp.org>
24282
24283         Fix compilation error with Solaris cc.
24284         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
24285         * lib/unicase/u16-is-invariant.c: Likewise.
24286         * lib/unicase/u32-is-invariant.c: Likewise.
24287         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
24288
24289 2009-12-30  Bruno Haible  <bruno@clisp.org>
24290
24291         Fix test crash.
24292         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
24293         locales.
24294         Reported by Simon Josefsson <simon@josefsson.org>.
24295
24296 2009-12-30  Bruno Haible  <bruno@clisp.org>
24297
24298         Fix compilation error on most platforms.
24299         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
24300         Reported by Simon Josefsson <simon@josefsson.org>
24301         and Nelson H. F. Beebe <beebe@math.utah.edu>.
24302
24303 2009-12-30  Eric Blake  <ebb9@byu.net>
24304
24305         futimens, utimensat: work around ntfs-3g bug
24306         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
24307         a ctime bug is present, and expand workaround to cover ntfs-3g.
24308         * lib/utimens.c (fdutimens, lutimens): Likewise.
24309         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
24310         (validate_timespec): Adjust return value.
24311         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
24312         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
24313         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
24314
24315 2009-12-29  Eric Blake  <ebb9@byu.net>
24316
24317         link-warning: make usage consistent
24318         * modules/ctype (Depends-on): Add link-warning.
24319         (Makefile.am): Update rules accordingly.
24320         * modules/langinfo (Depends-on, Makefile.am): Likewise.
24321         * modules/locale (Depends-on, Makefile.am): Likewise.
24322         * modules/sys_file (Makefile.am): Likewise.
24323         * modules/getopt-posix (Makefile.am): Delete unused link warning
24324         efforts.
24325         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
24326         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
24327         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
24328         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
24329
24330         stdio: remove unused variables
24331         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
24332         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
24333         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
24334
24335         tests: test more substitute headers
24336         * modules/ctype-tests: New file.
24337         * modules/dirent-tests: Likewise.
24338         * modules/spawn-tests: Likewise.
24339         * modules/sys_file-tests: Likewise.
24340         * modules/sys_ioctl-tests: Likewise.
24341         * modules/sys_wait-tests: Likewise.
24342         * tests/test-ctype.c: Likewise.
24343         * tests/test-dirent.c: Likewise.
24344         * tests/test-spawn.c: Likewise.
24345         * tests/test-sys_file.c: Likewise.
24346         * tests/test-sys_ioctl.c: Likewise.
24347         * tests/test-sys_wait.c: Likewise.
24348         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
24349         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
24350         whether or not flock is in use.
24351
24352         tests: remove License section from module
24353         * modules/arpa_inet-tests: Remove unneeded section.
24354         * modules/byteswap-tests: Likewise.
24355         * modules/ceilf-tests: Likewise.
24356         * modules/ceill-tests: Likewise.
24357         * modules/crypto/des-tests: Likewise.
24358         * modules/crypto/gc-arcfour-tests: Likewise.
24359         * modules/crypto/gc-arctwo-tests: Likewise.
24360         * modules/crypto/gc-des-tests: Likewise.
24361         * modules/crypto/gc-hmac-md5-tests: Likewise.
24362         * modules/crypto/gc-hmac-sha1-tests: Likewise.
24363         * modules/crypto/gc-md2-tests: Likewise.
24364         * modules/crypto/gc-md4-tests: Likewise.
24365         * modules/crypto/gc-md5-tests: Likewise.
24366         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
24367         * modules/crypto/gc-rijndael-tests: Likewise.
24368         * modules/crypto/gc-sha1-tests: Likewise.
24369         * modules/crypto/gc-tests: Likewise.
24370         * modules/crypto/md2-tests: Likewise.
24371         * modules/crypto/md4-tests: Likewise.
24372         * modules/fcntl-h-tests: Likewise.
24373         * modules/floorf-tests: Likewise.
24374         * modules/floorl-tests: Likewise.
24375         * modules/frexp-nolibm-tests: Likewise.
24376         * modules/frexp-tests: Likewise.
24377         * modules/frexpl-nolibm-tests: Likewise.
24378         * modules/frexpl-tests: Likewise.
24379         * modules/getaddrinfo-tests: Likewise.
24380         * modules/inttypes-tests: Likewise.
24381         * modules/isfinite-tests: Likewise.
24382         * modules/isinf-tests: Likewise.
24383         * modules/ldexpl-tests: Likewise.
24384         * modules/locale-tests: Likewise.
24385         * modules/math-tests: Likewise.
24386         * modules/netdb-tests: Likewise.
24387         * modules/netinet_in-tests: Likewise.
24388         * modules/printf-frexp-tests: Likewise.
24389         * modules/printf-frexpl-tests: Likewise.
24390         * modules/priv-set-tests: Likewise.
24391         * modules/random_r-tests: Likewise.
24392         * modules/round-tests: Likewise.
24393         * modules/roundf-tests: Likewise.
24394         * modules/roundl-tests: Likewise.
24395         * modules/search-tests: Likewise.
24396         * modules/select-tests: Likewise.
24397         * modules/signal-tests: Likewise.
24398         * modules/stdbool-tests: Likewise.
24399         * modules/stddef-tests: Likewise.
24400         * modules/stdint-tests: Likewise.
24401         * modules/stdio-tests: Likewise.
24402         * modules/stdlib-tests: Likewise.
24403         * modules/string-tests: Likewise.
24404         * modules/strings-tests: Likewise.
24405         * modules/sys_select-tests: Likewise.
24406         * modules/sys_socket-tests: Likewise.
24407         * modules/sys_stat-tests: Likewise.
24408         * modules/sys_time-tests: Likewise.
24409         * modules/sys_utsname-tests: Likewise.
24410         * modules/sysexits-tests: Likewise.
24411         * modules/time-tests: Likewise.
24412         * modules/trunc-tests: Likewise.
24413         * modules/truncf-tests: Likewise.
24414         * modules/truncl-tests: Likewise.
24415         * modules/tsearch-tests: Likewise.
24416         * modules/unistd-tests: Likewise.
24417         * modules/wchar-tests: Likewise.
24418         * modules/wctype-tests: Likewise.
24419
24420         tests: fix license on several tests
24421         * tests/test-des.c: Update to GPLv3+.
24422         * tests/test-flock.c: Likewise.
24423         * tests/test-fsync.c: Likewise.
24424         * tests/test-futimens.h: Likewise.
24425         * tests/test-gc-arcfour.c: Likewise.
24426         * tests/test-gc-arctwo.c: Likewise.
24427         * tests/test-gc-des.c: Likewise.
24428         * tests/test-gc-hmac-md5.c: Likewise.
24429         * tests/test-gc-hmac-sha1.c: Likewise.
24430         * tests/test-gc-md2.c: Likewise.
24431         * tests/test-gc-md4.c: Likewise.
24432         * tests/test-gc-md5.c: Likewise.
24433         * tests/test-gc-pbkdf2-sha1.c: Likewise.
24434         * tests/test-gc-rijndael.c: Likewise.
24435         * tests/test-gc-sha1.c: Likewise.
24436         * tests/test-gc.c: Likewise.
24437         * tests/test-getcwd.c: Likewise.
24438         * tests/test-link.c: Likewise.
24439         * tests/test-link.h: Likewise.
24440         * tests/test-lutimens.h: Likewise.
24441         * tests/test-md2.c: Likewise.
24442         * tests/test-md4.c: Likewise.
24443         * tests/test-mkdir.h: Likewise.
24444         * tests/test-rename.c: Likewise.
24445         * tests/test-rename.h: Likewise.
24446         * tests/test-safe-alloc.c: Likewise.
24447         * tests/test-utimens-common.h: Likewise.
24448         * tests/test-utimens.h: Likewise.
24449
24450         maint: sync license texts
24451         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
24452         * doc/gpl-3.0.texi: Revert copyright year update.
24453         * doc/lgpl-3.0.texi: Likewise.
24454
24455 2009-12-29  Jim Meyering  <meyering@redhat.com>
24456
24457         update nearly all FSF copyright year lists to include 2009
24458         The files named by the following are exempted:
24459             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
24460               test -f "$dst" && { echo "$dst"; continue; }
24461               test -d "$dst" || continue
24462               echo "$dst"/$(basename "$src")
24463             done > exempt
24464             git ls-files tests/unictype >> exempt
24465         In the remaining files, convert to all-interval notation if
24466         - there is already at least one year interval like 2000-2003
24467         - the file is maintained by me
24468         - the file is in lib/uni*/, where that style already prevails
24469         Otherwise, use update-copyright's default.
24470
24471 2009-12-29  Simon Josefsson  <simon@josefsson.org>
24472         and Eric Blake  <ebb9@byu.net>
24473
24474         tests: don't require debug system() to pass
24475         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
24476         * tests/test-rmdir.h (test_rmdir_func): Likewise.
24477         * tests/test-unlink.h (test_unlink_func): Likewise.
24478         * tests/test-fstatat.c (main): ...into callers.
24479         * tests/test-lstat.c (main): Likewise.
24480         * tests/test-rmdir.c (main): Likewise.
24481         * tests/test-unlink.c (main): Likewise.
24482         * tests/test-unlinkat.c (main): Likewise.
24483         * tests/test-areadlink-with-size.c (main): Don't require a
24484         debug-only system call to pass, aiding cross-testing to mingw.
24485         * tests/test-areadlink.c (main): Likewise.
24486         * tests/test-areadlinkat-with-size.c (main): Likewise.
24487         * tests/test-areadlinkat.c (main): Likewise.
24488         * tests/test-canonicalize-lgpl.c (main): Likewise.
24489         * tests/test-canonicalize.c (main): Likewise.
24490         * tests/test-chown.c (main): Likewise.
24491         * tests/test-fchownat.c (main): Likewise.
24492         * tests/test-lchown.c (main): Likewise.
24493         * tests/test-fdutimensat.c (main): Likewise.
24494         * tests/test-futimens.c (main): Likewise.
24495         * tests/test-link.c (main): Likewise.
24496         * tests/test-linkat.c (main): Likewise.
24497         * tests/test-mkdir.c (main): Likewise.
24498         * tests/test-mkdirat.c (main): Likewise.
24499         * tests/test-mkfifo.c (main): Likewise.
24500         * tests/test-mkfifoat.c (main): Likewise.
24501         * tests/test-mknod.c (main): Likewise.
24502         * tests/test-readlink.c (main): Likewise.
24503         * tests/test-remove.c (main): Likewise.
24504         * tests/test-rename.c (main): Likewise.
24505         * tests/test-renameat.c (main): Likewise.
24506         * tests/test-symlink.c (main): Likewise.
24507         * tests/test-symlinkat.c (main): Likewise.
24508         * tests/test-utimens.c (main): Likewise.
24509         * tests/test-utimensat.c (main): Likewise.
24510
24511 2009-12-29  Simon Josefsson  <simon@josefsson.org>
24512
24513         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
24514         on $(UNUSED_PARAMETER_H) to avoid build failure.
24515
24516 2009-12-28  Jim Meyering  <meyering@redhat.com>
24517
24518         update-copyright: you may specify a max. line length other than 72
24519         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
24520
24521         maint: use consistent FSF copyright line syntax
24522         * lib/posixtm.c: Add missing comma in FSF copyright line.
24523         * lib/posixtm.h: Likewise.
24524         * lib/getugroups.c: Add missing ", Inc.".
24525
24526         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
24527         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
24528         FSF copyright line.  Remove trailing blanks.
24529
24530 2009-12-28  Eric Blake  <ebb9@byu.net>
24531
24532         test-dup2: reduce dependencies
24533         * modules/cloexec (Configure.ac): Set witness.
24534         * modules/dup2-tests (Depends-on): Drop cloexec.
24535         * tests/test-dup2.c (main): Skip portion of test if cloexec module
24536         not present.
24537         Suggested by Bruno Haible.
24538
24539 2009-12-26  Bruno Haible  <bruno@clisp.org>
24540
24541         Remove an unneeded dependency.
24542         * modules/fseterr (Depends-on): Remove dup2.
24543
24544 2009-12-26  Eric Blake  <ebb9@byu.net>
24545
24546         tests: use macros.h in more places
24547         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
24548         (ASSERT_STREAM): Provide default of stderr.
24549         * tests/test-dirent-safer.c: Include macros.h, using alternate
24550         stream for assertions.
24551         * tests/test-dup-safer.c: Likewise.
24552         * tests/test-freopen-safer.c: Likewise.
24553         * tests/test-getopt.c: Likewise.
24554         * tests/test-openat-safer.c: Likewise.
24555         * tests/test-pipe.c: Likewise.
24556         * tests/test-popen-safer.c: Likewise.
24557         * modules/dirent-safer-tests (Files): Include macros.h.
24558         * modules/unistd-safer-tests (Files): Likewise.
24559         * modules/freopen-safer-tests (Files): Likewise.
24560         * modules/getopt-posix-tests (Files): Likewise.
24561         * modules/openat-safer-tests (Files): Likewise.
24562         * modules/pipe-tests (Files): Likewise.
24563
24564 2009-12-26  Bruno Haible  <bruno@clisp.org>
24565
24566         javacomp: Portability fix.
24567         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
24568         that it also works on Solaris.
24569
24570 2009-12-26  Bruno Haible  <bruno@clisp.org>
24571
24572         localename: Fix storage allocation of gl_locale_name_thread's result.
24573         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
24574         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
24575         all platforms that have 'uselocale'.
24576         (gl_locale_name_thread_unsafe): New function, extracted from
24577         gl_locale_name_thread.
24578         (gl_locale_name_thread): Call struniq on all platforms that have
24579         'uselocale'.
24580         * tests/test-localename.c (test_locale_name_thread): Check that the
24581         resulting strings are permanently allocated.
24582         * modules/localename-tests (Depends-on): Add strdup.
24583
24584 2009-12-26  Bruno Haible  <bruno@clisp.org>
24585
24586         * tests/test-localename.c (categories): Fill in the strings.
24587
24588 2009-12-26  Jim Meyering  <meyering@redhat.com>
24589
24590         isdir: complete the removal of m4/isdir.m4
24591         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
24592
24593         isdir: clean up, since at least grep still uses it
24594         * lib/isdir.c: Include "isdir.h".
24595         (S_ISDIR): Remove now-unneeded definition.
24596         * modules/isdir (Files): Add lib/isdir.h.
24597         * lib/isdir.h: New file, with declaration.
24598         * m4/isdir.m4: Remove file -- unneeded.
24599
24600 2009-12-25  Bruno Haible  <bruno@clisp.org>
24601
24602         selinux-h: Make generated .h files standalone.
24603         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
24604         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
24605         * lib/se-selinux.in.h: Likewise.
24606         * modules/selinux-h (Depends-on): Add unused-parameter.
24607         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
24608         selinux/selinux.h and selinux/context.h.
24609         Suggested by Eric Blake.
24610
24611 2009-12-25  Bruno Haible  <bruno@clisp.org>
24612
24613         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
24614         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
24615         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
24616         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
24617         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
24618
24619 2009-12-24  Bruno Haible  <bruno@clisp.org>
24620
24621         openat: Fix warning.
24622         * lib/openat-proc.c: Include <unistd.h>.
24623
24624 2009-12-24  Bruno Haible  <bruno@clisp.org>
24625
24626         New module 'unused-parameter'.
24627         * build-aux/unused-parameter.h: New file, extracted from earlier
24628         gnulib-common.m4.
24629         * modules/unused-parameter: New file.
24630         * lib/unistr.h: Include unused-parameter.h.
24631         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
24632         _GL_UNUSED.
24633         * modules/unistr/base (Depends-on): Add unused-parameter.
24634
24635 2009-12-24  Bruno Haible  <bruno@clisp.org>
24636
24637         Add missing dependencies to 'extensions' module.
24638         * m4/extensions.m4: Add comment.
24639         * modules/accept4 (Depends-on): Add extensions.
24640         * modules/dup3 (Depends-on): Likewise.
24641         * modules/fcntl (Depends-on): Likewise.
24642         * modules/futimens (Depends-on): Likewise.
24643         * modules/mknod (Depends-on): Likewise.
24644         * modules/pipe2 (Depends-on): Likewise.
24645         * modules/stat-time (Depends-on): Likewise.
24646         * modules/strcasestr-simple (Depends-on): Likewise.
24647         * modules/strsignal (Depends-on): Likewise.
24648         * modules/utimensat (Depends-on): Likewise.
24649         * modules/localcharset (Depends-on): Likewise. Needed because of
24650         gl_FCNTL_O_FLAGS.
24651         * modules/wcrtomb (Depends-on): Likewise. Needed because of
24652         AC_TYPE_MBSTATE_T.
24653         * modules/wcsnrtombs (Depends-on): Likewise.
24654         * modules/wcsrtombs (Depends-on): Likewise.
24655
24656 2009-12-24  Bruno Haible  <bruno@clisp.org>
24657
24658         binary-io: Avoid gcc warning due to SET_BINARY.
24659         * lib/binary-io.h (SET_BINARY): Cast the result to void.
24660         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
24661
24662 2009-12-24  Bruno Haible  <bruno@clisp.org>
24663
24664         Avoid future namespace pollution on glibc systems.
24665         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
24666         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
24667         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
24668         glibc systems.
24669
24670 2009-12-24  Bruno Haible  <bruno@clisp.org>
24671
24672         Refactor common macros used in tests.
24673         * tests/macros.h: New file.
24674         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
24675         and/or <stdlib.h>, if appropriate.
24676         (ASSERT, SIZEOF): Remove macros.
24677         * tests/test-areadlink-with-size.c: Likewise.
24678         * tests/test-areadlinkat.c: Likewise.
24679         * tests/test-areadlinkat-with-size.c: Likewise.
24680         * tests/test-argmatch.c: Likewise.
24681         * tests/test-argv-iter.c: Likewise.
24682         * tests/test-array-mergesort.c: Likewise.
24683         * tests/test-array_list.c: Likewise.
24684         * tests/test-array_oset.c: Likewise.
24685         * tests/test-avltree_list.c: Likewise.
24686         * tests/test-avltree_oset.c: Likewise.
24687         * tests/test-avltreehash_list.c: Likewise.
24688         * tests/test-base64.c: Likewise.
24689         * tests/test-binary-io.c: Likewise.
24690         * tests/test-bitrotate.c: Likewise.
24691         * tests/test-btowc.c: Likewise.
24692         * tests/test-byteswap.c: Likewise.
24693         * tests/test-c-ctype.c: Likewise.
24694         * tests/test-c-stack.c: Likewise.
24695         * tests/test-c-strcasecmp.c: Likewise.
24696         * tests/test-c-strcasestr.c: Likewise.
24697         * tests/test-c-strncasecmp.c: Likewise.
24698         * tests/test-c-strstr.c: Likewise.
24699         * tests/test-canonicalize-lgpl.c: Likewise.
24700         * tests/test-canonicalize.c: Likewise.
24701         * tests/test-carray_list.c: Likewise.
24702         * tests/test-ceilf1.c: Likewise.
24703         * tests/test-ceilf2.c: Likewise.
24704         * tests/test-ceill.c: Likewise.
24705         * tests/test-chown.c: Likewise.
24706         * tests/test-cloexec.c: Likewise.
24707         * tests/test-copy-acl.c: Likewise.
24708         * tests/test-copy-file.c: Likewise.
24709         * tests/test-count-one-bits.c: Likewise.
24710         * tests/test-dprintf-posix.c: Likewise.
24711         * tests/test-dup2.c: Likewise.
24712         * tests/test-dup3.c: Likewise.
24713         * tests/test-duplocale.c: Likewise.
24714         * tests/test-fbufmode.c: Likewise.
24715         * tests/test-fchdir.c: Likewise.
24716         * tests/test-fchownat.c: Likewise.
24717         * tests/test-fcntl-safer.c: Likewise.
24718         * tests/test-fcntl.c: Likewise.
24719         * tests/test-fdopendir.c: Likewise.
24720         * tests/test-fdutimensat.c: Likewise.
24721         * tests/test-fflush2.c: Likewise.
24722         * tests/test-file-has-acl.c: Likewise.
24723         * tests/test-filevercmp.c: Likewise.
24724         * tests/test-flock.c: Likewise.
24725         * tests/test-floorf1.c: Likewise.
24726         * tests/test-floorf2.c: Likewise.
24727         * tests/test-floorl.c: Likewise.
24728         * tests/test-fnmatch.c: Likewise.
24729         * tests/test-fopen.h: Likewise.
24730         * tests/test-fpending.c: Likewise.
24731         * tests/test-fprintf-posix.c: Likewise.
24732         * tests/test-fpurge.c: Likewise.
24733         * tests/test-freadable.c: Likewise.
24734         * tests/test-freadahead.c: Likewise.
24735         * tests/test-freading.c: Likewise.
24736         * tests/test-freadptr.c: Likewise.
24737         * tests/test-freadptr2.c: Likewise.
24738         * tests/test-freadseek.c: Likewise.
24739         * tests/test-freopen.c: Likewise.
24740         * tests/test-frexp.c: Likewise.
24741         * tests/test-frexpl.c: Likewise.
24742         * tests/test-fseek.c: Likewise.
24743         * tests/test-fseeko.c: Likewise.
24744         * tests/test-fstatat.c: Likewise.
24745         * tests/test-fstrcmp.c: Likewise.
24746         * tests/test-fsync.c: Likewise.
24747         * tests/test-ftell.c: Likewise.
24748         * tests/test-ftello.c: Likewise.
24749         * tests/test-func.c: Likewise.
24750         * tests/test-futimens.c: Likewise.
24751         * tests/test-fwritable.c: Likewise.
24752         * tests/test-fwriting.c: Likewise.
24753         * tests/test-getcwd.c: Likewise.
24754         * tests/test-getdate.c: Likewise.
24755         * tests/test-getdelim.c: Likewise.
24756         * tests/test-getdtablesize.c: Likewise.
24757         * tests/test-getgroups.c: Likewise.
24758         * tests/test-getline.c: Likewise.
24759         * tests/test-getndelim2.c: Likewise.
24760         * tests/test-glob.c: Likewise.
24761         * tests/test-hash.c: Likewise.
24762         * tests/test-i-ring.c: Likewise.
24763         * tests/test-iconv-utf.c: Likewise.
24764         * tests/test-iconv.c: Likewise.
24765         * tests/test-idpriv-drop.c: Likewise.
24766         * tests/test-idpriv-droptemp.c: Likewise.
24767         * tests/test-inet_ntop.c: Likewise.
24768         * tests/test-inet_pton.c: Likewise.
24769         * tests/test-isblank.c: Likewise.
24770         * tests/test-isfinite.c: Likewise.
24771         * tests/test-isinf.c: Likewise.
24772         * tests/test-isnan.c: Likewise.
24773         * tests/test-isnand.h: Likewise.
24774         * tests/test-isnanf.h: Likewise.
24775         * tests/test-isnanl.h: Likewise.
24776         * tests/test-lchown.c: Likewise.
24777         * tests/test-ldexpl.c: Likewise.
24778         * tests/test-link.c: Likewise.
24779         * tests/test-linkat.c: Likewise.
24780         * tests/test-linked_list.c: Likewise.
24781         * tests/test-linkedhash_list.c: Likewise.
24782         * tests/test-localename.c: Likewise.
24783         * tests/test-lseek.c: Likewise.
24784         * tests/test-lstat.c: Likewise.
24785         * tests/test-mbmemcasecmp.c: Likewise.
24786         * tests/test-mbmemcasecoll.c: Likewise.
24787         * tests/test-mbrtowc.c: Likewise.
24788         * tests/test-mbscasecmp.c: Likewise.
24789         * tests/test-mbscasestr1.c: Likewise.
24790         * tests/test-mbscasestr2.c: Likewise.
24791         * tests/test-mbscasestr3.c: Likewise.
24792         * tests/test-mbscasestr4.c: Likewise.
24793         * tests/test-mbschr.c: Likewise.
24794         * tests/test-mbscspn.c: Likewise.
24795         * tests/test-mbsinit.c: Likewise.
24796         * tests/test-mbsncasecmp.c: Likewise.
24797         * tests/test-mbsnrtowcs.c: Likewise.
24798         * tests/test-mbspbrk.c: Likewise.
24799         * tests/test-mbspcasecmp.c: Likewise.
24800         * tests/test-mbsrchr.c: Likewise.
24801         * tests/test-mbsrtowcs.c: Likewise.
24802         * tests/test-mbsspn.c: Likewise.
24803         * tests/test-mbsstr1.c: Likewise.
24804         * tests/test-mbsstr2.c: Likewise.
24805         * tests/test-mbsstr3.c: Likewise.
24806         * tests/test-memchr.c: Likewise.
24807         * tests/test-memchr2.c: Likewise.
24808         * tests/test-memcmp.c: Likewise.
24809         * tests/test-memmem.c: Likewise.
24810         * tests/test-memrchr.c: Likewise.
24811         * tests/test-mkdir.c: Likewise.
24812         * tests/test-mkdirat.c: Likewise.
24813         * tests/test-mkfifo.c: Likewise.
24814         * tests/test-mkfifoat.c: Likewise.
24815         * tests/test-mknod.c: Likewise.
24816         * tests/test-nanosleep.c: Likewise.
24817         * tests/test-nl_langinfo.c: Likewise.
24818         * tests/test-obstack-printf.c: Likewise.
24819         * tests/test-open.c: Likewise.
24820         * tests/test-openat.c: Likewise.
24821         * tests/test-pipe-filter-gi1.c: Likewise.
24822         * tests/test-pipe-filter-gi2-main.c: Likewise.
24823         * tests/test-pipe-filter-ii1.c: Likewise.
24824         * tests/test-pipe-filter-ii2-main.c: Likewise.
24825         * tests/test-pipe2.c: Likewise.
24826         * tests/test-popen.h: Likewise.
24827         * tests/test-posixtm.c: Likewise.
24828         * tests/test-pread.c: Likewise.
24829         * tests/test-printf-frexp.c: Likewise.
24830         * tests/test-printf-frexpl.c: Likewise.
24831         * tests/test-printf-posix.c: Likewise.
24832         * tests/test-priv-set.c: Likewise.
24833         * tests/test-quotearg.c: Likewise.
24834         * tests/test-random_r.c: Likewise.
24835         * tests/test-rawmemchr.c: Likewise.
24836         * tests/test-rbtree_list.c: Likewise.
24837         * tests/test-rbtree_oset.c: Likewise.
24838         * tests/test-rbtreehash_list.c: Likewise.
24839         * tests/test-readlink.c: Likewise.
24840         * tests/test-remove.c: Likewise.
24841         * tests/test-rename.c: Likewise.
24842         * tests/test-renameat.c: Likewise.
24843         * tests/test-rmdir.c: Likewise.
24844         * tests/test-round1.c: Likewise.
24845         * tests/test-roundf1.c: Likewise.
24846         * tests/test-roundl.c: Likewise.
24847         * tests/test-safe-alloc.c: Likewise.
24848         * tests/test-sameacls.c: Likewise.
24849         * tests/test-set-mode-acl.c: Likewise.
24850         * tests/test-setenv.c: Likewise.
24851         * tests/test-sigaction.c: Likewise.
24852         * tests/test-signbit.c: Likewise.
24853         * tests/test-sleep.c: Likewise.
24854         * tests/test-snprintf-posix.c: Likewise.
24855         * tests/test-snprintf.c: Likewise.
24856         * tests/test-sprintf-posix.c: Likewise.
24857         * tests/test-stat-time.c: Likewise.
24858         * tests/test-stat.c: Likewise.
24859         * tests/test-strcasestr.c: Likewise.
24860         * tests/test-strchrnul.c: Likewise.
24861         * tests/test-strerror.c: Likewise.
24862         * tests/test-striconv.c: Likewise.
24863         * tests/test-striconveh.c: Likewise.
24864         * tests/test-striconveha.c: Likewise.
24865         * tests/test-strsignal.c: Likewise.
24866         * tests/test-strstr.c: Likewise.
24867         * tests/test-strtod.c: Likewise.
24868         * tests/test-strverscmp.c: Likewise.
24869         * tests/test-symlink.c: Likewise.
24870         * tests/test-symlinkat.c: Likewise.
24871         * tests/test-trunc1.c: Likewise.
24872         * tests/test-trunc2.c: Likewise.
24873         * tests/test-truncf1.c: Likewise.
24874         * tests/test-truncf2.c: Likewise.
24875         * tests/test-truncl.c: Likewise.
24876         * tests/test-uname.c: Likewise.
24877         * tests/test-unlink.c: Likewise.
24878         * tests/test-unlinkat.c: Likewise.
24879         * tests/test-unsetenv.c: Likewise.
24880         * tests/test-usleep.c: Likewise.
24881         * tests/test-utimens.c: Likewise.
24882         * tests/test-utimensat.c: Likewise.
24883         * tests/test-vasnprintf-posix.c: Likewise.
24884         * tests/test-vasnprintf-posix2.c: Likewise.
24885         * tests/test-vasnprintf.c: Likewise.
24886         * tests/test-vasprintf-posix.c: Likewise.
24887         * tests/test-vasprintf.c: Likewise.
24888         * tests/test-vdprintf-posix.c: Likewise.
24889         * tests/test-vfprintf-posix.c: Likewise.
24890         * tests/test-vprintf-posix.c: Likewise.
24891         * tests/test-vsnprintf-posix.c: Likewise.
24892         * tests/test-vsnprintf.c: Likewise.
24893         * tests/test-vsprintf-posix.c: Likewise.
24894         * tests/test-wcrtomb.c: Likewise.
24895         * tests/test-wcsnrtombs.c: Likewise.
24896         * tests/test-wcsrtombs.c: Likewise.
24897         * tests/test-wctype.c: Likewise.
24898         * tests/test-wcwidth.c: Likewise.
24899         * tests/test-xfprintf-posix.c: Likewise.
24900         * tests/test-xmemdup0.c: Likewise.
24901         * tests/test-xprintf-posix.c: Likewise.
24902         * tests/test-xvasprintf.c: Likewise.
24903         * tests/unicase/test-locale-language.c: Likewise.
24904         * tests/unicase/test-mapping-part1.h: Likewise.
24905         * tests/unicase/test-predicate-part1.h: Likewise.
24906         * tests/unicase/test-u8-casecmp.c: Likewise.
24907         * tests/unicase/test-u8-casecoll.c: Likewise.
24908         * tests/unicase/test-u8-casefold.c: Likewise.
24909         * tests/unicase/test-u8-is-cased.c: Likewise.
24910         * tests/unicase/test-u8-is-casefolded.c: Likewise.
24911         * tests/unicase/test-u8-is-lowercase.c: Likewise.
24912         * tests/unicase/test-u8-is-titlecase.c: Likewise.
24913         * tests/unicase/test-u8-is-uppercase.c: Likewise.
24914         * tests/unicase/test-u8-tolower.c: Likewise.
24915         * tests/unicase/test-u8-totitle.c: Likewise.
24916         * tests/unicase/test-u8-toupper.c: Likewise.
24917         * tests/unicase/test-u16-casecmp.c: Likewise.
24918         * tests/unicase/test-u16-casecoll.c: Likewise.
24919         * tests/unicase/test-u16-casefold.c: Likewise.
24920         * tests/unicase/test-u16-is-cased.c: Likewise.
24921         * tests/unicase/test-u16-is-casefolded.c: Likewise.
24922         * tests/unicase/test-u16-is-lowercase.c: Likewise.
24923         * tests/unicase/test-u16-is-titlecase.c: Likewise.
24924         * tests/unicase/test-u16-is-uppercase.c: Likewise.
24925         * tests/unicase/test-u16-tolower.c: Likewise.
24926         * tests/unicase/test-u16-totitle.c: Likewise.
24927         * tests/unicase/test-u16-toupper.c: Likewise.
24928         * tests/unicase/test-u32-casecmp.c: Likewise.
24929         * tests/unicase/test-u32-casecoll.c: Likewise.
24930         * tests/unicase/test-u32-casefold.c: Likewise.
24931         * tests/unicase/test-u32-is-cased.c: Likewise.
24932         * tests/unicase/test-u32-is-casefolded.c: Likewise.
24933         * tests/unicase/test-u32-is-lowercase.c: Likewise.
24934         * tests/unicase/test-u32-is-titlecase.c: Likewise.
24935         * tests/unicase/test-u32-is-uppercase.c: Likewise.
24936         * tests/unicase/test-u32-tolower.c: Likewise.
24937         * tests/unicase/test-u32-totitle.c: Likewise.
24938         * tests/unicase/test-u32-toupper.c: Likewise.
24939         * tests/unicase/test-ulc-casecmp.c: Likewise.
24940         * tests/unicase/test-ulc-casecoll.c: Likewise.
24941         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
24942         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
24943         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
24944         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
24945         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
24946         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
24947         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
24948         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
24949         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
24950         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
24951         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
24952         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
24953         * tests/unictype/test-bidi_byname.c: Likewise.
24954         * tests/unictype/test-bidi_name.c: Likewise.
24955         * tests/unictype/test-bidi_of.c: Likewise.
24956         * tests/unictype/test-bidi_test.c: Likewise.
24957         * tests/unictype/test-block_list.c: Likewise.
24958         * tests/unictype/test-block_of.c: Likewise.
24959         * tests/unictype/test-block_test.c: Likewise.
24960         * tests/unictype/test-categ_and.c: Likewise.
24961         * tests/unictype/test-categ_and_not.c: Likewise.
24962         * tests/unictype/test-categ_byname.c: Likewise.
24963         * tests/unictype/test-categ_name.c: Likewise.
24964         * tests/unictype/test-categ_none.c: Likewise.
24965         * tests/unictype/test-categ_of.c: Likewise.
24966         * tests/unictype/test-categ_or.c: Likewise.
24967         * tests/unictype/test-categ_test_withtable.c: Likewise.
24968         * tests/unictype/test-combining.c: Likewise.
24969         * tests/unictype/test-decdigit.c: Likewise.
24970         * tests/unictype/test-digit.c: Likewise.
24971         * tests/unictype/test-mirror.c: Likewise.
24972         * tests/unictype/test-numeric.c: Likewise.
24973         * tests/unictype/test-pr_byname.c: Likewise.
24974         * tests/unictype/test-pr_test.c: Likewise.
24975         * tests/unictype/test-predicate-part1.h: Likewise.
24976         * tests/unictype/test-scripts.c: Likewise.
24977         * tests/unictype/test-sy_c_ident.c: Likewise.
24978         * tests/unictype/test-sy_java_ident.c: Likewise.
24979         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
24980         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
24981         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
24982         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
24983         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
24984         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
24985         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
24986         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
24987         * tests/uninorm/test-canonical-decomposition.c: Likewise.
24988         * tests/uninorm/test-compat-decomposition.c: Likewise.
24989         * tests/uninorm/test-composition.c: Likewise.
24990         * tests/uninorm/test-decomposing-form.c: Likewise.
24991         * tests/uninorm/test-decomposition.c: Likewise.
24992         * tests/uninorm/test-u8-nfc.c: Likewise.
24993         * tests/uninorm/test-u8-nfd.c: Likewise.
24994         * tests/uninorm/test-u8-nfkc.c: Likewise.
24995         * tests/uninorm/test-u8-nfkd.c: Likewise.
24996         * tests/uninorm/test-u8-normcmp.c: Likewise.
24997         * tests/uninorm/test-u8-normcoll.c: Likewise.
24998         * tests/uninorm/test-u16-nfc.c: Likewise.
24999         * tests/uninorm/test-u16-nfd.c: Likewise.
25000         * tests/uninorm/test-u16-nfkc.c: Likewise.
25001         * tests/uninorm/test-u16-nfkd.c: Likewise.
25002         * tests/uninorm/test-u16-normcmp.c: Likewise.
25003         * tests/uninorm/test-u16-normcoll.c: Likewise.
25004         * tests/uninorm/test-u32-nfc.c: Likewise.
25005         * tests/uninorm/test-u32-nfd.c: Likewise.
25006         * tests/uninorm/test-u32-nfkc.c: Likewise.
25007         * tests/uninorm/test-u32-nfkd.c: Likewise.
25008         * tests/uninorm/test-u32-normalize-big.c: Likewise.
25009         * tests/uninorm/test-u32-normcmp.c: Likewise.
25010         * tests/uninorm/test-u32-normcoll.c: Likewise.
25011         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
25012         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
25013         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
25014         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
25015         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
25016         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
25017         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
25018         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
25019         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
25020         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
25021         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
25022         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
25023         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
25024         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
25025         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
25026         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
25027         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
25028         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
25029         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
25030         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
25031         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
25032         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
25033         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
25034         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
25035         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
25036         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
25037         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
25038         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
25039         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
25040         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
25041         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
25042         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
25043         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
25044         * tests/uniwidth/test-u8-strwidth.c: Likewise.
25045         * tests/uniwidth/test-u8-width.c: Likewise.
25046         * tests/uniwidth/test-u16-strwidth.c: Likewise.
25047         * tests/uniwidth/test-u16-width.c: Likewise.
25048         * tests/uniwidth/test-u32-strwidth.c: Likewise.
25049         * tests/uniwidth/test-u32-width.c: Likewise.
25050         * tests/uniwidth/test-uc_width.c: Likewise.
25051         * tests/uniwidth/test-uc_width2.c: Likewise.
25052         * modules/acl-tests (Files): Add tests/macros.h.
25053         * modules/areadlink-tests (Files): Likewise.
25054         * modules/areadlink-with-size-tests (Files): Likewise.
25055         * modules/areadlinkat-tests (Files): Likewise.
25056         * modules/areadlinkat-with-size-tests (Files): Likewise.
25057         * modules/argmatch-tests (Files): Likewise.
25058         * modules/argv-iter-tests (Files): Likewise.
25059         * modules/array-list-tests (Files): Likewise.
25060         * modules/array-mergesort-tests (Files): Likewise.
25061         * modules/array-oset-tests (Files): Likewise.
25062         * modules/avltree-list-tests (Files): Likewise.
25063         * modules/avltree-oset-tests (Files): Likewise.
25064         * modules/avltreehash-list-tests (Files): Likewise.
25065         * modules/base64-tests (Files): Likewise.
25066         * modules/binary-io-tests (Files): Likewise.
25067         * modules/bitrotate-tests (Files): Likewise.
25068         * modules/btowc-tests (Files): Likewise.
25069         * modules/byteswap-tests (Files): Likewise.
25070         * modules/c-ctype-tests (Files): Likewise.
25071         * modules/c-stack-tests (Files): Likewise.
25072         * modules/c-strcase-tests (Files): Likewise.
25073         * modules/c-strcasestr-tests (Files): Likewise.
25074         * modules/c-strstr-tests (Files): Likewise.
25075         * modules/canonicalize-lgpl-tests (Files): Likewise.
25076         * modules/canonicalize-tests (Files): Likewise.
25077         * modules/carray-list-tests (Files): Likewise.
25078         * modules/ceilf-tests (Files): Likewise.
25079         * modules/ceill-tests (Files): Likewise.
25080         * modules/chown-tests (Files): Likewise.
25081         * modules/cloexec-tests (Files): Likewise.
25082         * modules/copy-file-tests (Files): Likewise.
25083         * modules/count-one-bits-tests (Files): Likewise.
25084         * modules/dprintf-posix-tests (Files): Likewise.
25085         * modules/dup2-tests (Files): Likewise.
25086         * modules/dup3-tests (Files): Likewise.
25087         * modules/duplocale-tests (Files): Likewise.
25088         * modules/fbufmode-tests (Files): Likewise.
25089         * modules/fchdir-tests (Files): Likewise.
25090         * modules/fcntl-safer-tests (Files): Likewise.
25091         * modules/fcntl-tests (Files): Likewise.
25092         * modules/fdopendir-tests (Files): Likewise.
25093         * modules/fdutimensat-tests (Files): Likewise.
25094         * modules/fflush-tests (Files): Likewise.
25095         * modules/filevercmp-tests (Files): Likewise.
25096         * modules/flock-tests (Files): Likewise.
25097         * modules/floorf-tests (Files): Likewise.
25098         * modules/floorl-tests (Files): Likewise.
25099         * modules/fnmatch-tests (Files): Likewise.
25100         * modules/fopen-safer-tests (Files): Likewise.
25101         * modules/fopen-tests (Files): Likewise.
25102         * modules/fpending-tests (Files): Likewise.
25103         * modules/fprintf-posix-tests (Files): Likewise.
25104         * modules/fpurge-tests (Files): Likewise.
25105         * modules/freadable-tests (Files): Likewise.
25106         * modules/freadahead-tests (Files): Likewise.
25107         * modules/freading-tests (Files): Likewise.
25108         * modules/freadptr-tests (Files): Likewise.
25109         * modules/freadseek-tests (Files): Likewise.
25110         * modules/freopen-tests (Files): Likewise.
25111         * modules/frexp-nolibm-tests (Files): Likewise.
25112         * modules/frexp-tests (Files): Likewise.
25113         * modules/frexpl-nolibm-tests (Files): Likewise.
25114         * modules/frexpl-tests (Files): Likewise.
25115         * modules/fseek-tests (Files): Likewise.
25116         * modules/fseeko-tests (Files): Likewise.
25117         * modules/fstrcmp-tests (Files): Likewise.
25118         * modules/fsync-tests (Files): Likewise.
25119         * modules/ftell-tests (Files): Likewise.
25120         * modules/ftello-tests (Files): Likewise.
25121         * modules/func-tests (Files): Likewise.
25122         * modules/futimens-tests (Files): Likewise.
25123         * modules/fwritable-tests (Files): Likewise.
25124         * modules/fwriting-tests (Files): Likewise.
25125         * modules/getcwd-tests (Files): Likewise.
25126         * modules/getdate-tests (Files): Likewise.
25127         * modules/getdelim-tests (Files): Likewise.
25128         * modules/getdtablesize-tests (Files): Likewise.
25129         * modules/getgroups-tests (Files): Likewise.
25130         * modules/getline-tests (Files): Likewise.
25131         * modules/getndelim2-tests (Files): Likewise.
25132         * modules/glob-tests (Files): Likewise.
25133         * modules/hash-tests (Files): Likewise.
25134         * modules/i-ring-tests (Files): Likewise.
25135         * modules/iconv-tests (Files): Likewise.
25136         * modules/iconv_open-utf-tests (Files): Likewise.
25137         * modules/idpriv-drop-tests (Files): Likewise.
25138         * modules/idpriv-droptemp-tests (Files): Likewise.
25139         * modules/inet_ntop-tests (Files): Likewise.
25140         * modules/inet_pton-tests (Files): Likewise.
25141         * modules/isblank-tests (Files): Likewise.
25142         * modules/isfinite-tests (Files): Likewise.
25143         * modules/isinf-tests (Files): Likewise.
25144         * modules/isnan-tests (Files): Likewise.
25145         * modules/isnand-nolibm-tests (Files): Likewise.
25146         * modules/isnand-tests (Files): Likewise.
25147         * modules/isnanf-nolibm-tests (Files): Likewise.
25148         * modules/isnanf-tests (Files): Likewise.
25149         * modules/isnanl-nolibm-tests (Files): Likewise.
25150         * modules/isnanl-tests (Files): Likewise.
25151         * modules/lchown-tests (Files): Likewise.
25152         * modules/ldexpl-tests (Files): Likewise.
25153         * modules/link-tests (Files): Likewise.
25154         * modules/linkat-tests (Files): Likewise.
25155         * modules/linked-list-tests (Files): Likewise.
25156         * modules/linkedhash-list-tests (Files): Likewise.
25157         * modules/localename-tests (Files): Likewise.
25158         * modules/lseek-tests (Files): Likewise.
25159         * modules/lstat-tests (Files): Likewise.
25160         * modules/mbmemcasecmp-tests (Files): Likewise.
25161         * modules/mbmemcasecoll-tests (Files): Likewise.
25162         * modules/mbrtowc-tests (Files): Likewise.
25163         * modules/mbscasecmp-tests (Files): Likewise.
25164         * modules/mbscasestr-tests (Files): Likewise.
25165         * modules/mbschr-tests (Files): Likewise.
25166         * modules/mbscspn-tests (Files): Likewise.
25167         * modules/mbsinit-tests (Files): Likewise.
25168         * modules/mbsncasecmp-tests (Files): Likewise.
25169         * modules/mbsnrtowcs-tests (Files): Likewise.
25170         * modules/mbspbrk-tests (Files): Likewise.
25171         * modules/mbspcasecmp-tests (Files): Likewise.
25172         * modules/mbsrchr-tests (Files): Likewise.
25173         * modules/mbsrtowcs-tests (Files): Likewise.
25174         * modules/mbsspn-tests (Files): Likewise.
25175         * modules/mbsstr-tests (Files): Likewise.
25176         * modules/memchr-tests (Files): Likewise.
25177         * modules/memchr2-tests (Files): Likewise.
25178         * modules/memcmp-tests (Files): Likewise.
25179         * modules/memmem-tests (Files): Likewise.
25180         * modules/memrchr-tests (Files): Likewise.
25181         * modules/mkdir-tests (Files): Likewise.
25182         * modules/mkfifo-tests (Files): Likewise.
25183         * modules/mkfifoat-tests (Files): Likewise.
25184         * modules/mknod-tests (Files): Likewise.
25185         * modules/nanosleep-tests (Files): Likewise.
25186         * modules/nl_langinfo-tests (Files): Likewise.
25187         * modules/obstack-printf-tests (Files): Likewise.
25188         * modules/open-tests (Files): Likewise.
25189         * modules/openat-tests (Files): Likewise.
25190         * modules/pipe-filter-gi-tests (Files): Likewise.
25191         * modules/pipe-filter-ii-tests (Files): Likewise.
25192         * modules/pipe2-tests (Files): Likewise.
25193         * modules/popen-safer-tests (Files): Likewise.
25194         * modules/popen-tests (Files): Likewise.
25195         * modules/posixtm-tests (Files): Likewise.
25196         * modules/pread-tests (Files): Likewise.
25197         * modules/printf-frexp-tests (Files): Likewise.
25198         * modules/printf-frexpl-tests (Files): Likewise.
25199         * modules/printf-posix-tests (Files): Likewise.
25200         * modules/priv-set-tests (Files): Likewise.
25201         * modules/quotearg-tests (Files): Likewise.
25202         * modules/random_r-tests (Files): Likewise.
25203         * modules/rawmemchr-tests (Files): Likewise.
25204         * modules/rbtree-list-tests (Files): Likewise.
25205         * modules/rbtree-oset-tests (Files): Likewise.
25206         * modules/rbtreehash-list-tests (Files): Likewise.
25207         * modules/readlink-tests (Files): Likewise.
25208         * modules/remove-tests (Files): Likewise.
25209         * modules/rename-tests (Files): Likewise.
25210         * modules/renameat-tests (Files): Likewise.
25211         * modules/rmdir-tests (Files): Likewise.
25212         * modules/round-tests (Files): Likewise.
25213         * modules/roundf-tests (Files): Likewise.
25214         * modules/roundl-tests (Files): Likewise.
25215         * modules/safe-alloc-tests (Files): Likewise.
25216         * modules/setenv-tests (Files): Likewise.
25217         * modules/sigaction-tests (Files): Likewise.
25218         * modules/signbit-tests (Files): Likewise.
25219         * modules/sleep-tests (Files): Likewise.
25220         * modules/snprintf-posix-tests (Files): Likewise.
25221         * modules/snprintf-tests (Files): Likewise.
25222         * modules/sprintf-posix-tests (Files): Likewise.
25223         * modules/stat-tests (Files): Likewise.
25224         * modules/stat-time-tests (Files): Likewise.
25225         * modules/strcasestr-tests (Files): Likewise.
25226         * modules/strchrnul-tests (Files): Likewise.
25227         * modules/strerror-tests (Files): Likewise.
25228         * modules/striconv-tests (Files): Likewise.
25229         * modules/striconveh-tests (Files): Likewise.
25230         * modules/striconveha-tests (Files): Likewise.
25231         * modules/strsignal-tests (Files): Likewise.
25232         * modules/strstr-tests (Files): Likewise.
25233         * modules/strtod-tests (Files): Likewise.
25234         * modules/strverscmp-tests (Files): Likewise.
25235         * modules/symlink-tests (Files): Likewise.
25236         * modules/symlinkat-tests (Files): Likewise.
25237         * modules/trunc-tests (Files): Likewise.
25238         * modules/truncf-tests (Files): Likewise.
25239         * modules/truncl-tests (Files): Likewise.
25240         * modules/uname-tests (Files): Likewise.
25241         * modules/unicase/cased-tests (Files): Likewise.
25242         * modules/unicase/ignorable-tests (Files): Likewise.
25243         * modules/unicase/locale-language-tests (Files): Likewise.
25244         * modules/unicase/tolower-tests (Files): Likewise.
25245         * modules/unicase/totitle-tests (Files): Likewise.
25246         * modules/unicase/toupper-tests (Files): Likewise.
25247         * modules/unicase/u8-casecmp-tests (Files): Likewise.
25248         * modules/unicase/u8-casecoll-tests (Files): Likewise.
25249         * modules/unicase/u8-casefold-tests (Files): Likewise.
25250         * modules/unicase/u8-is-cased-tests (Files): Likewise.
25251         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
25252         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
25253         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
25254         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
25255         * modules/unicase/u8-tolower-tests (Files): Likewise.
25256         * modules/unicase/u8-totitle-tests (Files): Likewise.
25257         * modules/unicase/u8-toupper-tests (Files): Likewise.
25258         * modules/unicase/u16-casecmp-tests (Files): Likewise.
25259         * modules/unicase/u16-casecoll-tests (Files): Likewise.
25260         * modules/unicase/u16-casefold-tests (Files): Likewise.
25261         * modules/unicase/u16-is-cased-tests (Files): Likewise.
25262         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
25263         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
25264         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
25265         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
25266         * modules/unicase/u16-tolower-tests (Files): Likewise.
25267         * modules/unicase/u16-totitle-tests (Files): Likewise.
25268         * modules/unicase/u16-toupper-tests (Files): Likewise.
25269         * modules/unicase/u32-casecmp-tests (Files): Likewise.
25270         * modules/unicase/u32-casecoll-tests (Files): Likewise.
25271         * modules/unicase/u32-casefold-tests (Files): Likewise.
25272         * modules/unicase/u32-is-cased-tests (Files): Likewise.
25273         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
25274         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
25275         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
25276         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
25277         * modules/unicase/u32-tolower-tests (Files): Likewise.
25278         * modules/unicase/u32-totitle-tests (Files): Likewise.
25279         * modules/unicase/u32-toupper-tests (Files): Likewise.
25280         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
25281         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
25282         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
25283         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
25284         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
25285         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
25286         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
25287         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
25288         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
25289         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
25290         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
25291         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
25292         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
25293         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
25294         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
25295         * modules/unictype/bidicategory-name-tests (Files): Likewise.
25296         * modules/unictype/bidicategory-of-tests (Files): Likewise.
25297         * modules/unictype/bidicategory-test-tests (Files): Likewise.
25298         * modules/unictype/block-list-tests (Files): Likewise.
25299         * modules/unictype/block-of-tests (Files): Likewise.
25300         * modules/unictype/block-test-tests (Files): Likewise.
25301         * modules/unictype/category-C-tests (Files): Likewise.
25302         * modules/unictype/category-Cc-tests (Files): Likewise.
25303         * modules/unictype/category-Cf-tests (Files): Likewise.
25304         * modules/unictype/category-Cn-tests (Files): Likewise.
25305         * modules/unictype/category-Co-tests (Files): Likewise.
25306         * modules/unictype/category-Cs-tests (Files): Likewise.
25307         * modules/unictype/category-L-tests (Files): Likewise.
25308         * modules/unictype/category-Ll-tests (Files): Likewise.
25309         * modules/unictype/category-Lm-tests (Files): Likewise.
25310         * modules/unictype/category-Lo-tests (Files): Likewise.
25311         * modules/unictype/category-Lt-tests (Files): Likewise.
25312         * modules/unictype/category-Lu-tests (Files): Likewise.
25313         * modules/unictype/category-M-tests (Files): Likewise.
25314         * modules/unictype/category-Mc-tests (Files): Likewise.
25315         * modules/unictype/category-Me-tests (Files): Likewise.
25316         * modules/unictype/category-Mn-tests (Files): Likewise.
25317         * modules/unictype/category-N-tests (Files): Likewise.
25318         * modules/unictype/category-Nd-tests (Files): Likewise.
25319         * modules/unictype/category-Nl-tests (Files): Likewise.
25320         * modules/unictype/category-No-tests (Files): Likewise.
25321         * modules/unictype/category-P-tests (Files): Likewise.
25322         * modules/unictype/category-Pc-tests (Files): Likewise.
25323         * modules/unictype/category-Pd-tests (Files): Likewise.
25324         * modules/unictype/category-Pe-tests (Files): Likewise.
25325         * modules/unictype/category-Pf-tests (Files): Likewise.
25326         * modules/unictype/category-Pi-tests (Files): Likewise.
25327         * modules/unictype/category-Po-tests (Files): Likewise.
25328         * modules/unictype/category-Ps-tests (Files): Likewise.
25329         * modules/unictype/category-S-tests (Files): Likewise.
25330         * modules/unictype/category-Sc-tests (Files): Likewise.
25331         * modules/unictype/category-Sk-tests (Files): Likewise.
25332         * modules/unictype/category-Sm-tests (Files): Likewise.
25333         * modules/unictype/category-So-tests (Files): Likewise.
25334         * modules/unictype/category-Z-tests (Files): Likewise.
25335         * modules/unictype/category-Zl-tests (Files): Likewise.
25336         * modules/unictype/category-Zp-tests (Files): Likewise.
25337         * modules/unictype/category-Zs-tests (Files): Likewise.
25338         * modules/unictype/category-and-not-tests (Files): Likewise.
25339         * modules/unictype/category-and-tests (Files): Likewise.
25340         * modules/unictype/category-byname-tests (Files): Likewise.
25341         * modules/unictype/category-name-tests (Files): Likewise.
25342         * modules/unictype/category-none-tests (Files): Likewise.
25343         * modules/unictype/category-of-tests (Files): Likewise.
25344         * modules/unictype/category-or-tests (Files): Likewise.
25345         * modules/unictype/category-test-withtable-tests (Files): Likewise.
25346         * modules/unictype/combining-class-tests (Files): Likewise.
25347         * modules/unictype/ctype-alnum-tests (Files): Likewise.
25348         * modules/unictype/ctype-alpha-tests (Files): Likewise.
25349         * modules/unictype/ctype-blank-tests (Files): Likewise.
25350         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
25351         * modules/unictype/ctype-digit-tests (Files): Likewise.
25352         * modules/unictype/ctype-graph-tests (Files): Likewise.
25353         * modules/unictype/ctype-lower-tests (Files): Likewise.
25354         * modules/unictype/ctype-print-tests (Files): Likewise.
25355         * modules/unictype/ctype-punct-tests (Files): Likewise.
25356         * modules/unictype/ctype-space-tests (Files): Likewise.
25357         * modules/unictype/ctype-upper-tests (Files): Likewise.
25358         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
25359         * modules/unictype/decimal-digit-tests (Files): Likewise.
25360         * modules/unictype/digit-tests (Files): Likewise.
25361         * modules/unictype/mirror-tests (Files): Likewise.
25362         * modules/unictype/numeric-tests (Files): Likewise.
25363         * modules/unictype/property-alphabetic-tests (Files): Likewise.
25364         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
25365         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
25366         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
25367         Likewise.
25368         * modules/unictype/property-bidi-block-separator-tests (Files):
25369         Likewise.
25370         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
25371         Likewise.
25372         * modules/unictype/property-bidi-common-separator-tests (Files):
25373         Likewise.
25374         * modules/unictype/property-bidi-control-tests (Files): Likewise.
25375         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
25376         Likewise.
25377         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
25378         Likewise.
25379         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
25380         Likewise.
25381         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
25382         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
25383         Likewise.
25384         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
25385         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
25386         Likewise.
25387         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
25388         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
25389         * modules/unictype/property-bidi-segment-separator-tests (Files):
25390         Likewise.
25391         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
25392         * modules/unictype/property-byname-tests (Files): Likewise.
25393         * modules/unictype/property-combining-tests (Files): Likewise.
25394         * modules/unictype/property-composite-tests (Files): Likewise.
25395         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
25396         * modules/unictype/property-dash-tests (Files): Likewise.
25397         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
25398         * modules/unictype/property-default-ignorable-code-point-tests (Files):
25399         Likewise.
25400         * modules/unictype/property-deprecated-tests (Files): Likewise.
25401         * modules/unictype/property-diacritic-tests (Files): Likewise.
25402         * modules/unictype/property-extender-tests (Files): Likewise.
25403         * modules/unictype/property-format-control-tests (Files): Likewise.
25404         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
25405         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
25406         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
25407         * modules/unictype/property-hex-digit-tests (Files): Likewise.
25408         * modules/unictype/property-hyphen-tests (Files): Likewise.
25409         * modules/unictype/property-id-continue-tests (Files): Likewise.
25410         * modules/unictype/property-id-start-tests (Files): Likewise.
25411         * modules/unictype/property-ideographic-tests (Files): Likewise.
25412         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
25413         * modules/unictype/property-ids-trinary-operator-tests (Files):
25414         Likewise.
25415         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
25416         * modules/unictype/property-iso-control-tests (Files): Likewise.
25417         * modules/unictype/property-join-control-tests (Files): Likewise.
25418         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
25419         * modules/unictype/property-line-separator-tests (Files): Likewise.
25420         * modules/unictype/property-logical-order-exception-tests (Files):
25421         Likewise.
25422         * modules/unictype/property-lowercase-tests (Files): Likewise.
25423         * modules/unictype/property-math-tests (Files): Likewise.
25424         * modules/unictype/property-non-break-tests (Files): Likewise.
25425         * modules/unictype/property-not-a-character-tests (Files): Likewise.
25426         * modules/unictype/property-numeric-tests (Files): Likewise.
25427         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
25428         * modules/unictype/property-other-default-ignorable-code-point-tests
25429         (Files): Likewise.
25430         * modules/unictype/property-other-grapheme-extend-tests (Files):
25431         Likewise.
25432         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
25433         * modules/unictype/property-other-id-start-tests (Files): Likewise.
25434         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
25435         * modules/unictype/property-other-math-tests (Files): Likewise.
25436         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
25437         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
25438         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
25439         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
25440         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
25441         * modules/unictype/property-private-use-tests (Files): Likewise.
25442         * modules/unictype/property-punctuation-tests (Files): Likewise.
25443         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
25444         * modules/unictype/property-radical-tests (Files): Likewise.
25445         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
25446         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
25447         * modules/unictype/property-space-tests (Files): Likewise.
25448         * modules/unictype/property-terminal-punctuation-tests (Files):
25449         Likewise.
25450         * modules/unictype/property-test-tests (Files): Likewise.
25451         * modules/unictype/property-titlecase-tests (Files): Likewise.
25452         * modules/unictype/property-unassigned-code-value-tests (Files):
25453         Likewise.
25454         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
25455         * modules/unictype/property-uppercase-tests (Files): Likewise.
25456         * modules/unictype/property-variation-selector-tests (Files): Likewise.
25457         * modules/unictype/property-white-space-tests (Files): Likewise.
25458         * modules/unictype/property-xid-continue-tests (Files): Likewise.
25459         * modules/unictype/property-xid-start-tests (Files): Likewise.
25460         * modules/unictype/property-zero-width-tests (Files): Likewise.
25461         * modules/unictype/scripts-tests (Files): Likewise.
25462         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
25463         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
25464         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
25465         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
25466         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
25467         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
25468         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
25469         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
25470         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
25471         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
25472         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
25473         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
25474         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
25475         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
25476         * modules/uninorm/composition-tests (Files): Likewise.
25477         * modules/uninorm/decomposing-form-tests (Files): Likewise.
25478         * modules/uninorm/decomposition-tests (Files): Likewise.
25479         * modules/uninorm/filter-tests (Files): Likewise.
25480         * modules/uninorm/nfc-tests (Files): Likewise.
25481         * modules/uninorm/nfd-tests (Files): Likewise.
25482         * modules/uninorm/nfkc-tests (Files): Likewise.
25483         * modules/uninorm/nfkd-tests (Files): Likewise.
25484         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
25485         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
25486         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
25487         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
25488         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
25489         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
25490         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
25491         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
25492         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
25493         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
25494         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
25495         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
25496         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
25497         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
25498         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
25499         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
25500         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
25501         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
25502         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
25503         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
25504         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
25505         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
25506         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
25507         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
25508         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
25509         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
25510         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
25511         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
25512         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
25513         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
25514         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
25515         * modules/uniwidth/u8-width-tests (Files): Likewise.
25516         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
25517         * modules/uniwidth/u16-width-tests (Files): Likewise.
25518         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
25519         * modules/uniwidth/u32-width-tests (Files): Likewise.
25520         * modules/uniwidth/width-tests (Files): Likewise.
25521         * modules/unlink-tests (Files): Likewise.
25522         * modules/unsetenv-tests (Files): Likewise.
25523         * modules/usleep-tests (Files): Likewise.
25524         * modules/utimens-tests (Files): Likewise.
25525         * modules/utimensat-tests (Files): Likewise.
25526         * modules/vasnprintf-posix-tests (Files): Likewise.
25527         * modules/vasnprintf-tests (Files): Likewise.
25528         * modules/vasprintf-posix-tests (Files): Likewise.
25529         * modules/vasprintf-tests (Files): Likewise.
25530         * modules/vdprintf-posix-tests (Files): Likewise.
25531         * modules/vfprintf-posix-tests (Files): Likewise.
25532         * modules/vprintf-posix-tests (Files): Likewise.
25533         * modules/vsnprintf-posix-tests (Files): Likewise.
25534         * modules/vsnprintf-tests (Files): Likewise.
25535         * modules/vsprintf-posix-tests (Files): Likewise.
25536         * modules/wcrtomb-tests (Files): Likewise.
25537         * modules/wcsnrtombs-tests (Files): Likewise.
25538         * modules/wcsrtombs-tests (Files): Likewise.
25539         * modules/wctype-tests (Files): Likewise.
25540         * modules/wcwidth-tests (Files): Likewise.
25541         * modules/xmemdup0-tests (Files): Likewise.
25542         * modules/xprintf-posix-tests (Files): Likewise.
25543         * modules/xvasprintf-tests (Files): Likewise.
25544
25545 2009-12-24  Eric Blake  <ebb9@byu.net>
25546
25547         test-nanosleep: fix typo
25548         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
25549         patch.
25550         Reported by Bruno Haible.
25551
25552 2009-12-24  Bruno Haible  <bruno@clisp.org>
25553
25554         Reduce namespace pollution on glibc systems.
25555         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
25556         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
25557         systems.
25558         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
25559         <getopt.h> on glibc systems.
25560         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
25561         systems.
25562         * lib/fcntl.c: Include <unistd.h> here instead.
25563
25564 2009-12-24  Bruno Haible  <bruno@clisp.org>
25565
25566         * lib/stdlib.in.h (includes): Fix typo in today's commit.
25567
25568 2009-12-24  Eric Blake  <ebb9@byu.net>
25569
25570         tests: add signature checks
25571         * tests/signature.h (SIGNATURE_CHECK): New file.
25572         * modules/atexit-tests (Files): Use it.
25573         * modules/btowc-tests (Files): Likewise.
25574         * modules/canonicalize-lgpl-tests (Files): Likewise.
25575         * modules/ceilf-tests (Files): Likewise.
25576         * modules/ceill-tests (Files): Likewise.
25577         * modules/chown-tests (Files): Likewise.
25578         * modules/dprintf-posix-tests (Files): Likewise.
25579         * modules/dup2-tests (Files): Likewise.
25580         * modules/dup3-tests (Files): Likewise.
25581         * modules/duplocale-tests (Files): Likewise.
25582         * modules/fchdir-tests (Files): Likewise.
25583         * modules/fcntl-tests (Files): Likewise.
25584         * modules/fdopendir-tests (Files): Likewise.
25585         * modules/fflush-tests (Files): Likewise.
25586         * modules/flock-tests (Files): Likewise.
25587         * modules/floorf-tests (Files): Likewise.
25588         * modules/floorl-tests (Files): Likewise.
25589         * modules/fnmatch-tests (Files): Likewise.
25590         * modules/fopen-tests (Files): Likewise.
25591         * modules/fprintf-posix-tests (Files): Likewise.
25592         * modules/freopen-tests (Files): Likewise.
25593         * modules/frexp-nolibm-tests (Files): Likewise.
25594         * modules/frexp-tests (Files): Likewise.
25595         * modules/frexpl-nolibm-tests (Files): Likewise.
25596         * modules/frexpl-tests (Files): Likewise.
25597         * modules/fseek-tests (Files): Likewise.
25598         * modules/fseeko-tests (Files): Likewise.
25599         * modules/fsync-tests (Files): Likewise.
25600         * modules/ftell-tests (Files): Likewise.
25601         * modules/ftello-tests (Files): Likewise.
25602         * modules/futimens-tests (Files): Likewise.
25603         * modules/getaddrinfo-tests (Files): Likewise.
25604         * modules/getcwd-tests (Files): Likewise.
25605         * modules/getdelim-tests (Files): Likewise.
25606         * modules/getdtablesize-tests (Files): Likewise.
25607         * modules/getgroups-tests (Files): Likewise.
25608         * modules/gethostname-tests (Files): Likewise.
25609         * modules/getline-tests (Files): Likewise.
25610         * modules/getopt-posix-tests (Files): Likewise.
25611         * modules/gettimeofday-tests (Files): Likewise.
25612         * modules/glob-tests (Files): Likewise.
25613         * modules/iconv-tests (Files): Likewise.
25614         * modules/inet_ntop-tests (Files): Likewise.
25615         * modules/inet_pton-tests (Files): Likewise.
25616         * modules/isblank-tests (Files): Likewise.
25617         * modules/lchown-tests (Files): Likewise.
25618         * modules/ldexpl-tests (Files): Likewise.
25619         * modules/link-tests (Files): Likewise.
25620         * modules/linkat-tests (Files): Likewise.
25621         * modules/lseek-tests (Files): Likewise.
25622         * modules/lstat-tests (Files): Likewise.
25623         * modules/mbrtowc-tests (Files): Likewise.
25624         * modules/mbsinit-tests (Files): Likewise.
25625         * modules/mbsnrtowcs-tests (Files): Likewise.
25626         * modules/mbsrtowcs-tests (Files): Likewise.
25627         * modules/memchr-tests (Files): Likewise.
25628         * modules/memcmp-tests (Files): Likewise.
25629         * modules/memmem-tests (Files): Likewise.
25630         * modules/memrchr-tests (Files): Likewise.
25631         * modules/mkdir-tests (Files): Likewise.
25632         * modules/mkfifo-tests (Files): Likewise.
25633         * modules/mkfifoat-tests (Files): Likewise.
25634         * modules/mknod-tests (Files): Likewise.
25635         * modules/nanosleep-tests (Files): Likewise.
25636         * modules/nl_langinfo-tests (Files): Likewise.
25637         * modules/obstack-printf-tests (Files): Likewise.
25638         * modules/open-tests (Files): Likewise.
25639         * modules/openat-tests (Files): Likewise.
25640         * modules/perror-tests (Files): Likewise.
25641         * modules/pipe2-tests (Files): Likewise.
25642         * modules/poll-tests (Files): Likewise.
25643         * modules/popen-tests (Files): Likewise.
25644         * modules/posix_spawn-tests (Files): Likewise.
25645         * modules/posix_spawnp-tests (Files): Likewise.
25646         * modules/pread-tests (Files): Likewise.
25647         * modules/printf-posix-tests (Files): Likewise.
25648         * modules/pty-tests (Files): Likewise.
25649         * modules/random_r-tests (Files): Likewise.
25650         * modules/rawmemchr-tests (Files): Likewise.
25651         * modules/readlink-tests (Files): Likewise.
25652         * modules/remove-tests (Files): Likewise.
25653         * modules/rename-tests (Files): Likewise.
25654         * modules/renameat-tests (Files): Likewise.
25655         * modules/rmdir-tests (Files): Likewise.
25656         * modules/round-tests (Files): Likewise.
25657         * modules/roundf-tests (Files): Likewise.
25658         * modules/roundl-tests (Files): Likewise.
25659         * modules/select-tests (Files): Likewise.
25660         * modules/setenv-tests (Files): Likewise.
25661         * modules/sigaction-tests (Files): Likewise.
25662         * modules/sleep-tests (Files): Likewise.
25663         * modules/snprintf-posix-tests (Files): Likewise.
25664         * modules/snprintf-tests (Files): Likewise.
25665         * modules/sprintf-posix-tests (Files): Likewise.
25666         * modules/stat-tests (Files): Likewise.
25667         * modules/strcasestr-tests (Files): Likewise.
25668         * modules/strchrnul-tests (Files): Likewise.
25669         * modules/strerror-tests (Files): Likewise.
25670         * modules/strsignal-tests (Files): Likewise.
25671         * modules/strstr-tests (Files): Likewise.
25672         * modules/strtod-tests (Files): Likewise.
25673         * modules/strverscmp-tests (Files): Likewise.
25674         * modules/symlink-tests (Files): Likewise.
25675         * modules/symlinkat-tests (Files): Likewise.
25676         * modules/times-tests (Files): Likewise.
25677         * modules/trunc-tests (Files): Likewise.
25678         * modules/truncf-tests (Files): Likewise.
25679         * modules/truncl-tests (Files): Likewise.
25680         * modules/tsearch-tests (Files): Likewise.
25681         * modules/uname-tests (Files): Likewise.
25682         * modules/unlink-tests (Files): Likewise.
25683         * modules/unsetenv-tests (Files): Likewise.
25684         * modules/usleep-tests (Files): Likewise.
25685         * modules/utimensat-tests (Files): Likewise.
25686         * modules/vasprintf-tests (Files): Likewise.
25687         * modules/vdprintf-posix-tests (Files): Likewise.
25688         * modules/vfprintf-posix-tests (Files): Likewise.
25689         * modules/vprintf-posix-tests (Files): Likewise.
25690         * modules/vsnprintf-posix-tests (Files): Likewise.
25691         * modules/vsnprintf-tests (Files): Likewise.
25692         * modules/vsprintf-posix-tests (Files): Likewise.
25693         * modules/wcrtomb-tests (Files): Likewise.
25694         * modules/wcsnrtombs-tests (Files): Likewise.
25695         * modules/wcsrtombs-tests (Files): Likewise.
25696         * modules/wcwidth-tests (Files): Likewise.
25697         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
25698         * tests/test-isinf.c (isinf): Likewise.
25699         * tests/test-isnan.c (isnan): Likewise.
25700         * tests/test-signbit.c (signbit): Likewise.
25701         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
25702         declaration, either as macro or with correct signature.
25703         (select): Ensure function under test is declared with correct
25704         signature in correct header.
25705         * tests/test-atexit.c (atexit): Likewise.
25706         * tests/test-btowc.c (btowc): Likewise.
25707         * tests/test-canonicalize-lgpl.c (realpath)
25708         (canonicalize_file_name): Likewise.
25709         * tests/test-ceilf1.c (ceilf): Likewise.
25710         * tests/test-ceill.c (ceill): Likewise.
25711         * tests/test-chown.c (chown): Likewise.
25712         * tests/test-dprintf-posix.c (dprintf): Likewise.
25713         * tests/test-dup2.c (dup2): Likewise.
25714         * tests/test-dup3.c (dup3): Likewise.
25715         * tests/test-duplocale.c (duplocale): Likewise.
25716         * tests/test-fchdir.c (fchdir): Likewise.
25717         * tests/test-fchownat.c (fchownat): Likewise.
25718         * tests/test-fcntl.c (fcntl): Likewise.
25719         * tests/test-fdopendir.c (fdopendir): Likewise.
25720         * tests/test-fflush.c (fflush): Likewise.
25721         * tests/test-flock.c (flock): Likewise.
25722         * tests/test-floorf1.c (floorf): Likewise.
25723         * tests/test-floorl.c (floorl): Likewise.
25724         * tests/test-fnmatch.c (fnmatch): Likewise.
25725         * tests/test-fopen.c (fopen): Likewise.
25726         * tests/test-fprintf-posix.c (fprintf): Likewise.
25727         * tests/test-freopen.c (freopen): Likewise.
25728         * tests/test-frexp.c (frexp): Likewise.
25729         * tests/test-frexpl.c (frexpl): Likewise.
25730         * tests/test-fseek.c (fseek): Likewise.
25731         * tests/test-fseeko.c (fseeko): Likewise.
25732         * tests/test-fstatat.c (fstatat): Likewise.
25733         * tests/test-fsync.c (fsync): Likewise.
25734         * tests/test-ftell.c (ftell): Likewise.
25735         * tests/test-ftello.c (ftello): Likewise.
25736         * tests/test-futimens.c (futimens): Likewise.
25737         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
25738         (gai_strerror): Likewise.
25739         * tests/test-getcwd.c (getcwd): Likewise.
25740         * tests/test-getdelim.c (getdelim): Likewise.
25741         * tests/test-getdtablesize.c (getdtablesize): Likewise.
25742         * tests/test-getgroups.c (getgroups): Likewise.
25743         * tests/test-gethostname.c (gethostname): Likewise.
25744         * tests/test-getline.c (getline): Likewise.
25745         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
25746         Likewise.
25747         * tests/test-gettimeofday.c (gettimeofday): Likewise.
25748         * tests/test-glob.c (glob, globfree): Likewise.
25749         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
25750         * tests/test-inet_ntop.c (inet_ntop): Likewise.
25751         * tests/test-inet_pton.c (inet_pton): Likewise.
25752         * tests/test-isblank.c (isblank): Likewise.
25753         * tests/test-lchown.c (lchown): Likewise.
25754         * tests/test-ldexpl.c (ldexpl): Likewise.
25755         * tests/test-link.c (link): Likewise.
25756         * tests/test-linkat.c (linkat): Likewise.
25757         * tests/test-lseek.c (lseek): Likewise.
25758         * tests/test-lstat.c (lstat): Likewise.
25759         * tests/test-mbrtowc.c (mbrtowc): Likewise.
25760         * tests/test-mbsinit.c (mbsinit): Likewise.
25761         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
25762         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
25763         * tests/test-memchr.c (memchr): Likewise.
25764         * tests/test-memcmp.c (memcmp): Likewise.
25765         * tests/test-memmem.c (memmem): Likewise.
25766         * tests/test-memrchr.c (memrchr): Likewise.
25767         * tests/test-mkdir.c (mkdir): Likewise.
25768         * tests/test-mkdirat.c (mkdirat): Likewise.
25769         * tests/test-mkfifo.c (mkfifo): Likewise.
25770         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
25771         * tests/test-mknod.c (mknod): Likewise.
25772         * tests/test-nanosleep.c (nanosleep): Likewise.
25773         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
25774         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
25775         Likewise.
25776         * tests/test-open.c (open): Likewise.
25777         * tests/test-openat.c (openat): Likewise.
25778         * tests/test-perror.c (perror): Likewise.
25779         * tests/test-pipe2.c (pipe2): Likewise.
25780         * tests/test-poll.c (poll): Likewise.
25781         * tests/test-popen.c (popen, pclose): Likewise.
25782         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
25783         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
25784         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
25785         (posix_spawn_file_actions_destroy)
25786         (posix_spawn_file_actions_addclose)
25787         (posix_spawn_file_actions_addopen)
25788         (posix_spawn_file_actions_adddup2): Likewise.
25789         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
25790         * tests/test-pread.c (pread): Likewise.
25791         * tests/test-printf-posix.c (printf): Likewise.
25792         * tests/test-pty.c (openpty, forkpty): Likewise.
25793         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
25794         (random_r): Likewise.
25795         * tests/test-rawmemchr.c (rawmemchr): Likewise.
25796         * tests/test-readlink.c (readlink): Likewise.
25797         * tests/test-remove.c (remove): Likewise.
25798         * tests/test-rename.c (rename): Likewise.
25799         * tests/test-renameat.c (renameat): Likewise.
25800         * tests/test-rmdir.c (rmdir): Likewise.
25801         * tests/test-round1.c (round): Likewise.
25802         * tests/test-roundf1.c (roundf): Likewise.
25803         * tests/test-roundl.c (roundl): Likewise.
25804         * tests/test-setenv.c (setenv): Likewise.
25805         * tests/test-sigaction.c (sigaction): Likewise.
25806         * tests/test-sleep.c (sleep): Likewise.
25807         * tests/test-snprintf.c (snprintf): Likewise.
25808         * tests/test-sprintf-posix.c (sprintf): Likewise.
25809         * tests/test-stat.c (stat): Likewise.
25810         * tests/test-stpncpy.c (stpncpy): Likewise.
25811         * tests/test-strcasestr.c (strcasestr): Likewise.
25812         * tests/test-strchrnul.c (strchrnul): Likewise.
25813         * tests/test-strerror.c (strerror): Likewise.
25814         * tests/test-strsignal.c (strsignal): Likewise.
25815         * tests/test-strstr.c (strstr): Likewise.
25816         * tests/test-strtod.c (strtod): Likewise.
25817         * tests/test-strverscmp.c (strverscmp): Likewise.
25818         * tests/test-symlink.c (symlink): Likewise.
25819         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
25820         * tests/test-times.c (times): Likewise.
25821         * tests/test-trunc1.c (trunc): Likewise.
25822         * tests/test-truncf1.c (truncf): Likewise.
25823         * tests/test-truncl.c (truncl): Likewise.
25824         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
25825         Likewise.
25826         * tests/test-uname.c (uname): Likewise.
25827         * tests/test-unlink.c (unlink): Likewise.
25828         * tests/test-unlinkat.c (unlinkat): Likewise.
25829         * tests/test-unsetenv.c (unsetenv): Likewise.
25830         * tests/test-usleep.c (usleep): Likewise.
25831         * tests/test-utimensat.c (utimensat): Likewise.
25832         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
25833         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
25834         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
25835         * tests/test-vprintf-posix.c (vprintf): Likewise.
25836         * tests/test-vsnprintf.c (vsnprintf): Likewise.
25837         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
25838         * tests/test-wcrtomb.c (wcrtomb): Likewise.
25839         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
25840         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
25841         * tests/test-wcwidth.c (wcwidth): Likewise.
25842
25843         build: pull in conditional headers during GNULIB_POSIXCHECK
25844         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
25845         definitions from any conditionally-included headers.
25846         * lib/stdlib.in.h (includes): Likewise.
25847         * lib/unistd.in.h (includes): Likewise.
25848
25849 2009-12-24  Bruno Haible  <bruno@clisp.org>
25850
25851         * tests/test-argv-iter.c: Include header file being tested immediately
25852         after config.h.
25853         * tests/test-base64.c: Likewise.
25854         * tests/test-flock.c: Likewise.
25855         * tests/test-fsync.c: Likewise.
25856         * tests/test-getdate.c: Likewise.
25857         * tests/test-getndelim2.c: Likewise.
25858         * tests/test-isfinite.c: Likewise.
25859         * tests/test-isinf.c: Likewise.
25860         * tests/test-strerror.c: Likewise.
25861         * tests/test-strsignal.c: Likewise.
25862
25863 2009-12-23  Eric Blake  <ebb9@byu.net>
25864
25865         unistd: work around cygwin bug
25866         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
25867         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
25868         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
25869
25870 2009-12-23  Bruno Haible  <bruno@clisp.org>
25871
25872         localename: More tests.
25873         * tests/test-localename.c (SIZEOF): New macro.
25874         (categories): New variable.
25875         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
25876         test_locale_name_default): Add test w.r.t. thread locale.
25877         (test_locale_name_thread): New function.
25878         (main): Invoke it.
25879
25880         localename: Make aware of thread locale.
25881         * lib/localename.h (gl_locale_name_thread): New declaration.
25882         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
25883         behaviour with respect to thread locale.
25884         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
25885         <langinfo.h>, glthread/lock.h.
25886         (SIZE_BITS): New macro.
25887         (string_hash): New function.
25888         (struct hash_node): New type.
25889         (HASH_TABLE_SIZE): New macro.
25890         (struniq_hash_table, struniq_lock): New variables.
25891         (struniq): New function.
25892         (gl_locale_name_thread): New function.
25893         (gl_locale_name): Invoke it.
25894         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
25895         * modules/localename (Depends-on): Add lock.
25896         Reported by Mike Gran <spk121@yahoo.com>.
25897
25898 2009-12-23  Eric Blake  <ebb9@byu.net>
25899
25900         va-args: new module
25901         * modules/va-args: New file.
25902         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
25903         * MODULES.html.sh (Core language properties): Mention it.
25904
25905         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
25906         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
25907         named alias for __attribute__((__unused__)).
25908         * lib/chown.c: Update client.
25909         * lib/fchmodat.c: Likewise.
25910         * lib/fts.c: Likewise.
25911         * lib/getdate.y: Likewise.
25912         * lib/getgroups.c: Likewise.
25913         * lib/getopt.c: Likewise.
25914         * lib/getugroups.c: Likewise.
25915         * lib/mkdir.c: Likewise.
25916         * lib/mkfifo.c: Likewise.
25917         * lib/mkfifoat.c: Likewise.
25918         * lib/mknod.c: Likewise.
25919         * lib/mknodat.c: Likewise.
25920         * lib/readlink.c: Likewise.
25921         * lib/se-context.in.h: Likewise.
25922         * lib/se-selinux.in.h: Likewise.
25923         * lib/sockets.c: Likewise.
25924         * lib/symlink.c: Likewise.
25925         * lib/symlinkat.c: Likewise.
25926         * lib/unicodeio.c: Likewise.
25927         * lib/unistr.h: Likewise.
25928         * tests/test-areadlink.c: Likewise.
25929         * tests/test-areadlinkat.c: Likewise.
25930         * tests/test-filenamecat.c: Likewise.
25931         * tests/test-fseeko.c: Likewise.
25932         * tests/test-ftello.c: Likewise.
25933         * tests/test-getdate.c: Likewise.
25934         * tests/test-getgroups.c: Likewise.
25935         * tests/test-gethostname.c: Likewise.
25936         * tests/test-quotearg.c: Likewise.
25937         * tests/test-version-etc.c: Likewise.
25938         * tests/test-xalloc-die.c: Likewise.
25939         * tests/test-xfprintf-posix.c: Likewise.
25940         * tests/test-xprintf-posix.c: Likewise.
25941         * tests/test-xvasprintf.c: Likewise.
25942
25943         tests: avoid compiler warnings
25944         * tests/test-fcntl.c (main): Delete unused parameters.
25945         * tests/test-freopen-safer.c (main): Likewise.
25946         * tests/test-xalloc-die.c (main): Mark unused parameters.
25947         * tests/test-fseeko.c (main): Likewise.
25948         * tests/test-ftello.c (main): Likewise.
25949         * tests/test-nanosleep.c (main): Avoid declaration warning.
25950         * tests/test-sleep.c (main): Likewise.
25951         * tests/test-unsetenv.c (main): Silence warning about string
25952         literal.
25953         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
25954
25955 2009-12-23  Bruno Haible  <bruno@clisp.org>
25956
25957         * tests/test-localename.c (test_locale_name): New function, extracted
25958         from main. Also test mixed situations.
25959         (test_locale_name_posix, test_locale_name_environ,
25960         test_locale_name_default): New functions.
25961         (main): Invoke them all.
25962         * modules/localename-tests (configure.ac): Test for newlocale.
25963
25964 2009-12-23  Bruno Haible  <bruno@clisp.org>
25965
25966         unistd: Ensure getcwd gets declared before being overridden.
25967         * lib/unistd.in.h: Conditionally include <io.h>.
25968
25969 2009-12-22  Bruno Haible  <bruno@clisp.org>
25970
25971         wchar: Diagnose broken combination of glibc and gcc versions and flags.
25972         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
25973         (gl_WCHAR_H): Invoke it.
25974         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
25975         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
25976         Reported by Karl Berry <karl@freefriends.org>.
25977
25978 2009-12-22  Eric Blake  <ebb9@byu.net>
25979
25980         math, unistd: avoid redundant includes
25981         * lib/math.in.h (isnan): No need to re-include <math.h>.
25982         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
25983
25984         getsubopt: work around cygwin bug
25985         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
25986         avoid conflicting with system getsubopt.
25987         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
25988         bug.
25989
25990         getopt: synchronize from glibc
25991         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
25992         parameter order.  Adjust all callers.
25993         (_getopt_internal_r, main): Adjust quoting in error messages.
25994         Drop considerations for outdated POSIX 1003.2 error message.
25995         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
25996         callers.
25997         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
25998
25999         test-getopt: test stderr behavior
26000         * modules/getopt-posix-tests (Depends-on): Add dup2.
26001         * tests/test-getopt.c (ASSERT): Avoid stderr.
26002         (main): Move stderr to a temporary file.
26003         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
26004         Instead, add parameter to inform caller if output occurred.
26005         (test_getopt): Adjust all existing tests to expect silence, and
26006         add new tests of leading ":".
26007         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
26008         glibc shortcomings with leading "-:" or "+:" in optstring.
26009         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
26010         Likewise.
26011         * doc/posix-functions/getopt.texi (getopt): Likewise.
26012
26013         test-getopt: enhance test
26014         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
26015         supports optind=0.
26016         * tests/test-getopt.c (OPTIND_MIN): Move...
26017         * tests/test-getopt.h (OPTIND_MIN): ...here.
26018         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
26019         Require that optind=0 works, since modern BSD supports it in
26020         addition to optreset, and since coreutils expects it.
26021         (test_getopt_long_only): New test.
26022         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
26023         glibc shortcomings with 'W;', and enforcement of optind=0.
26024         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
26025         Likewise.
26026
26027 2009-12-21  Bruno Haible  <bruno@clisp.org>
26028
26029         localename: Improvements for MacOS X and Cygwin.
26030         * lib/localename.h (gl_locale_name_environ): New declaration.
26031         * lib/localename.c (gl_locale_name_environ): New function, extracted from
26032         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
26033         (gl_locale_name_posix): Invoke it.
26034         (gl_locale_name_default): Add comments. Use Windows native API also on
26035         Cygwin.
26036
26037 2009-12-21  Bruno Haible  <bruno@clisp.org>
26038
26039         Update list of Win32 locale ids.
26040         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
26041         (LANG_SAMI): Renamed from LANG_SAAMI.
26042         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
26043         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
26044         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
26045         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
26046         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
26047         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
26048         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
26049         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
26050         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
26051         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
26052         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
26053         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
26054         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
26055         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
26056         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
26057         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
26058         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
26059         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
26060         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
26061         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
26062         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
26063         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
26064         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
26065         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
26066         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
26067         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
26068         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
26069         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
26070         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
26071         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
26072         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
26073         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
26074         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
26075         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
26076         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
26077         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
26078         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
26079         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
26080         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
26081         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
26082         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
26083         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
26084         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
26085         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
26086         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
26087         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
26088         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
26089         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
26090         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
26091         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
26092         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
26093         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
26094         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
26095         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
26096         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
26097         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
26098         Add more languages and countries for Sami, Sorbian. Add more countries
26099         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
26100         for Pashto. Change country for Syriac, Tswana.
26101
26102 2009-12-21  Eric Blake  <ebb9@byu.net>
26103
26104         test-utimens: avoid spurious failure
26105         * tests/test-chown.h (nap): Factor...
26106         * tests/nap.h: ...into new file.
26107         * tests/test-lchown.h (nap): Avoid duplication.
26108         * tests/test-utimens-common.h (nap): Use shared implementation,
26109         necessary on file systems with 1-second resolution.
26110         * modules/chown-tests (Files): Include new file.
26111         * modules/fdutimensat-tests (Files): Likewise.
26112         * modules/futimens-tests (Files): Likewise.
26113         * modules/lchown-tests (Files): Likewise.
26114         * modules/openat-tests (Files): Likewise.
26115         * modules/utimens-tests (Files): Likewise.
26116         * modules/utimensat-tests (Files): Likewise.
26117
26118 2009-12-19  Eric Blake  <ebb9@byu.net>
26119
26120         futimens, utimensat: work around Linux bug
26121         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
26122         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
26123         * lib/utimensat.c (rpl_utimensat): Work around it.
26124         * lib/futimens.c (rpl_futimens): Adjust comment.
26125
26126         utimens: work around Linux ctime bug
26127         * lib/utimens.c (detect_ctime_bug): New helper function.
26128         (update_timespec): Differentiate between workaround needed for
26129         this bug vs. what is needed for systems that lack utimensat.
26130         (fdutimens, lutimens): Work around bug.
26131
26132         utimens: check for ctime update
26133         * tests/test-utimens-common.h (check_ctime): Define.
26134         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
26135         * tests/test-futimens.h (test_futimens): Likewise.
26136         * tests/test-lutimens.h (test_lutimens): Likewise.
26137         * doc/posix-functions/futimens.texi (futimens): Document the bug.
26138         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
26139
26140 2009-12-19  Bruno Haible  <bruno@clisp.org>
26141
26142         dprintf-posix: Check against memory leak fixed on 2009-12-15.
26143         * tests/test-dprintf-posix2.sh: New file.
26144         * tests/test-dprintf-posix2.c: New file.
26145         * modules/dprintf-posix-tests (Files): Add them.
26146         (configure.ac): Check for getrlimit and setrlimit.
26147         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
26148
26149 2009-12-19  Bruno Haible  <bruno@clisp.org>
26150
26151         fprintf-posix: Check against memory leak fixed on 2009-12-15.
26152         * tests/test-fprintf-posix3.sh: New file.
26153         * tests/test-fprintf-posix3.c: New file.
26154         * modules/fprintf-posix-tests (Files): Add them.
26155         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
26156
26157 2009-12-19  Eric Blake  <ebb9@byu.net>
26158
26159         dirfd: fix prototype
26160         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
26161         * lib/dirfd.c (dirfd): Likewise.
26162
26163         canonicalize: reduce memory usage
26164         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
26165         allocation to size.
26166         Reported by Solar Designer <solar@openwall.com>.
26167
26168 2009-12-19  Bruno Haible  <bruno@clisp.org>
26169
26170         New module attribute 'Applicability'.
26171         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
26172         * gnulib-tool: New option --extract-applicability.
26173         (func_usage): Document it.
26174         (sed_extract_prog): Recognize it.
26175         (func_get_applicability): New function.
26176         (func_import): Generalize handling of 'link-warning' module.
26177         * modules/link-warning (Applicability): New section.
26178         * modules/arg-nonnull (Applicability): New section.
26179         Repoted by Simon Josefsson <simon@josefsson.org>.
26180
26181 2009-12-19  Bruno Haible  <bruno@clisp.org>
26182
26183         fflush: tweak
26184         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
26185         * lib/fseeko.c (rpl_fseeko): Likewise.
26186
26187 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
26188
26189         * lib/gl_list.h: Fix typo in comment.
26190
26191 2009-12-16  Eric Blake  <ebb9@byu.net>
26192
26193         fcntl: use to simplify other modules
26194         * modules/cloexec (Depends-on): Add fcntl.
26195         * modules/fchdir (Depends-on): Likewise.
26196         * modules/fd-safer-flag (Depends-on): Likewise.
26197         * modules/unistd-safer (Depends-on): Likewise.
26198         * modules/dup3 (configure.ac): Set module indicator.
26199         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
26200         missing.
26201         * lib/fchdir.c (_gl_register_dup): Fix comment.
26202         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
26203         * lib/dup-safer.c (dup_safer): Likewise.
26204         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
26205         * lib/dup3.c (dup3): Likewise.
26206         * tests/test-fchdir.c (main): Enhance test.
26207         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
26208
26209         fcntl: port portions of fcntl to mingw
26210         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
26211         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
26212         replacement for mingw.
26213         * modules/fcntl (Description): Update.
26214         (Depends-on): Add dup2.
26215         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
26216         * modules/fcntl-h (Makefile.am): Substitute it.
26217         * lib/fcntl.in.h (fcntl): Update declaration.
26218         (F_DUPFD, F_GETFD): New macros, when needed.
26219         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
26220         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
26221         * tests/test-fcntl.c (check_flags, main): Enhance test for items
26222         we now guarantee.
26223
26224         fcntl: work around cygwin bug in F_DUPFD
26225         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
26226         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
26227         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
26228         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
26229         * doc/posix-functions/fcntl.texi (fcntl): Document it.
26230
26231         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
26232         * modules/fcntl (Files): List new files.
26233         (configure.ac): Run a test.
26234         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
26235         * lib/fcntl.c (rpl_fcntl): Likewise.
26236         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
26237         (gl_FCNTL_H): Always replace fcntl.h.
26238         * modules/fcntl-h (Makefile.am): Substitute witnesses.
26239         * lib/fcntl.in.h (fcntl): Declare replacement.
26240         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
26241         needed, plus a witness.
26242         * doc/posix-functions/fcntl.texi (fcntl): Document this.
26243         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
26244         * tests/test-fcntl.c: New file.
26245         * modules/fcntl-tests: Likewise.
26246
26247         binary-io: avoid potential compilation warning
26248         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
26249         directives.
26250
26251         fflush: avoid compilation error on NetBSD
26252         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
26253         between off_t and fpos_t, since the latter is sometimes a struct.
26254         * lib/fseeko.c (rpl_fseeko): Likewise.
26255         Reported by Alexander Nasonov <alnsn@yandex.ru>.
26256
26257 2009-12-15  Eric Blake  <ebb9@byu.net>
26258
26259         fcntl-h, stdio, sys_ioctl: fix declarations
26260         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
26261         function must not take arguments.
26262         * lib/sys_ioctl.in.h (ioctl): Likewise.
26263         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
26264         (open): Add a link warning.
26265
26266 2009-12-15  Jim Meyering  <meyering@redhat.com>
26267
26268         areadlink, areadlink-with-size: relax license to LGPLv2+
26269         * modules/areadlink (License): Relax to LGPLv2+.
26270         * modules/areadlink-with-size (License): Likewise.
26271
26272 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
26273             Bruno Haible  <bruno@clisp.org>
26274
26275         *printf: Fix memory leak.
26276         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
26277         * lib/vfprintf.c (vfprintf): Likewise.
26278         * lib/dprintf.c (dprintf): Likewise.
26279         * lib/vdprintf.c (vdprintf): Likewise.
26280
26281 2009-12-14  Eric Blake  <ebb9@byu.net>
26282
26283         accept4: adjust module dependencies
26284         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
26285
26286         utimens: one more try at avoiding compiler warning
26287         * lib/utimens.c (lutimens): Lower scope of result.
26288
26289 2009-12-13  Bruno Haible  <bruno@clisp.org>
26290
26291         Move the malloc checking from module 'list' to new module 'xlist'.
26292         * modules/xlist: New file.
26293         * lib/gl_xlist.h: New file.
26294         * lib/gl_xlist.c: New file.
26295         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
26296         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
26297         gl_list_add_last, gl_list_add_before, gl_list_add_after,
26298         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
26299         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
26300         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
26301         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
26302         gl_sortedlist_nx_add): New declarations.
26303         (struct gl_list_implementation): Rename and change methods accordingly.
26304         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
26305         (gl_list_nx_create): Renamed from gl_list_create.
26306         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
26307         (gl_list_nx_set_at): Renamed from gl_list_set_at.
26308         (gl_list_nx_add_first): Renamed from gl_list_add_first.
26309         (gl_list_nx_add_last): Renamed from gl_list_add_last.
26310         (gl_list_nx_add_before): Renamed from gl_list_add_before.
26311         (gl_list_nx_add_after): Renamed from gl_list_add_after.
26312         (gl_list_nx_add_at): Renamed from gl_list_add_at.
26313         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
26314         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
26315         gl_list_create_empty.
26316         (gl_list_nx_create): Renamed from gl_list_create.
26317         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
26318         (gl_list_nx_set_at): Renamed from gl_list_set_at.
26319         (gl_list_nx_add_first): Renamed from gl_list_add_first.
26320         (gl_list_nx_add_last): Renamed from gl_list_add_last.
26321         (gl_list_nx_add_before): Renamed from gl_list_add_before.
26322         (gl_list_nx_add_after): Renamed from gl_list_add_after.
26323         (gl_list_nx_add_at): Renamed from gl_list_add_at.
26324         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
26325         * lib/gl_array_list.c: Don't include xalloc.h.
26326         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
26327         NULL upon out-of-memory.
26328         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
26329         out-of-memory.
26330         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
26331         Change return type to 'int'.
26332         (gl_array_nx_set_at): Renamed from gl_array_set_at.
26333         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
26334         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
26335         upon out-of-memory.
26336         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
26337         upon out-of-memory.
26338         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
26339         upon out-of-memory.
26340         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
26341         upon out-of-memory.
26342         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
26343         out-of-memory.
26344         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
26345         Update.
26346         (gl_array_list_implementation): Update.
26347         * lib/gl_carray_list.c: Don't include xalloc.h.
26348         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
26349         Return NULL upon out-of-memory.
26350         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
26351         out-of-memory.
26352         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
26353         Change return type to 'int'.
26354         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
26355         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
26356         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
26357         upon out-of-memory.
26358         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
26359         upon out-of-memory.
26360         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
26361         out-of-memory.
26362         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
26363         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
26364         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
26365         Update.
26366         (gl_carray_list_implementation): Update.
26367         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
26368         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
26369         gl_linked_create_empty. Return NULL upon out-of-memory.
26370         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
26371         out-of-memory.
26372         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
26373         Change return type to 'int'. Return -1 upon out-of-memory.
26374         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
26375         out-of-memory.
26376         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
26377         upon out-of-memory.
26378         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
26379         upon out-of-memory.
26380         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
26381         NULL upon out-of-memory.
26382         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
26383         upon out-of-memory.
26384         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
26385         out-of-memory.
26386         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
26387         Update.
26388         * lib/gl_linked_list.c: Don't include xalloc.h.
26389         (gl_linked_list_implementation): Update.
26390         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
26391         (add_to_bucket): Change return type to 'int'.
26392         (gl_linkedhash_list_implementation): Update.
26393         * lib/gl_anytree_list1.h (free_subtree): New function.
26394         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
26395         gl_tree_create_empty. Return NULL upon out-of-memory.
26396         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
26397         Change return type to 'int'. Return -1 upon out-of-memory.
26398         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
26399         out-of-memory.
26400         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
26401         (gl_tree_remove_node): New function, moved here from
26402         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
26403         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
26404         Update.
26405         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
26406         malloc, not xmalloc. Return NULL upon out-of-memory.
26407         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
26408         out-of-memory.
26409         (gl_tree_remove_node_from_tree): New function, extracted from
26410         gl_tree_remove_node.
26411         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
26412         upon out-of-memory.
26413         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
26414         out-of-memory.
26415         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
26416         upon out-of-memory.
26417         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
26418         upon out-of-memory.
26419         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
26420         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
26421         not xmalloc. Return NULL upon out-of-memory.
26422         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
26423         out-of-memory.
26424         (gl_tree_remove_node_from_tree): New function, extracted from
26425         gl_tree_remove_node.
26426         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
26427         upon out-of-memory.
26428         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
26429         out-of-memory.
26430         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
26431         upon out-of-memory.
26432         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
26433         upon out-of-memory.
26434         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
26435         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
26436         gl_anytree_list1.h before gl_anyavltree_list2.h.
26437         (gl_avltree_list_implementation): Update.
26438         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
26439         gl_anytree_list1.h before gl_anyavltree_list2.h.
26440         (gl_rbtree_list_implementation): Update.
26441         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
26442         Change return type to 'int'. Return -1 upon out-of-memory. Use
26443         __builtin_expect.
26444         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
26445         (gl_avltreehash_list_implementation): Update.
26446         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
26447         (gl_rbtreehash_list_implementation): Update.
26448         * modules/array-list (Depends-on): Remove xalloc.
26449         * modules/carray-list (Depends-on): Likewise.
26450         * modules/linked-list (Depends-on): Likewise.
26451         * modules/linkedhash-list (Depends-on): Likewise.
26452         * modules/avltree-list (Depends-on): Likewise.
26453         * modules/rbtree-list (Depends-on): Likewise.
26454         * modules/avltreehash-list (Depends-on): Likewise.
26455         * modules/rbtreehash-list (Depends-on): Likewise.
26456
26457         * modules/xsublist: New file.
26458         * lib/gl_xsublist.h: New file.
26459         * lib/gl_xsublist.c: New file.
26460         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
26461         (gl_sublist_nx_create): New declaration.
26462         * lib/gl_sublist.c: Don't include xalloc.h.
26463         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
26464         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
26465         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
26466         Change return type to 'int'. Return -1 upon out-of-memory.
26467         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
26468         upon out-of-memory.
26469         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
26470         NULL upon out-of-memory.
26471         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
26472         upon out-of-memory.
26473         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
26474         NULL upon out-of-memory.
26475         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
26476         NULL upon out-of-memory.
26477         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
26478         upon out-of-memory.
26479         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
26480         (gl_sublist_list_implementation): Update.
26481         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
26482         upon out-of-memory.
26483         * modules/sublist (Depends-on): Remove xalloc.
26484
26485         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
26486         * tests/test-carray_list.c: Likewise.
26487         * tests/test-linked_list.c: Likewise.
26488         * tests/test-linkedhash_list.c: Likewise.
26489         * tests/test-avltree_list.c: Likewise.
26490         * tests/test-rbtree_list.c: Likewise.
26491         * tests/test-avltreehash_list.c: Likewise.
26492         * tests/test-rbtreehash_list.c: Likewise.
26493         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
26494         * modules/carray-list-tests (Makefile.am): Likewise.
26495         * modules/linked-list-tests (Makefile.am): Likewise.
26496         * modules/linkedhash-list-tests (Makefile.am): Likewise.
26497         * modules/avltree-list-tests (Makefile.am): Likewise.
26498         * modules/rbtree-list-tests (Makefile.am): Likewise.
26499         * modules/avltreehash-list-tests (Makefile.am): Likewise.
26500         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
26501
26502         * NEWS: Mention the changes.
26503
26504         * lib/clean-temp.c: Include gl_xlist.h.
26505         * modules/clean-temp (Depends-on): Add xlist.
26506
26507         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
26508         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
26509
26510         * tests/test-array_oset.c: Include gl_xlist.h.
26511         * modules/array-oset-tests (Depends-on): Add xlist.
26512
26513         Reported by José E. Marchesi <jemarch@gnu.org>.
26514
26515 2009-12-13  Bruno Haible  <bruno@clisp.org>
26516
26517         Move the malloc checking from module 'oset' to new module 'xoset'.
26518         * modules/xoset: New file.
26519         * lib/gl_xoset.h: New file.
26520         * lib/gl_xoset.c: New file.
26521         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
26522         declarations.
26523         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
26524         (struct gl_oset_implementation): Rename and change methods accordingly.
26525         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
26526         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
26527         'int'. Mark as __warn_unused_result__.
26528         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
26529         gl_oset_create_empty.
26530         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
26531         'int'.
26532         * lib/gl_array_oset.c: Don't include xalloc.h.
26533         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
26534         malloc, not xmalloc.
26535         (grow): Change return type to 'int'. Don't call xalloc_die.
26536         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
26537         to 'int'.
26538         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
26539         'int'.
26540         (gl_array_oset_implementation): Update.
26541         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
26542         gl_tree_create_empty.
26543         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
26544         'int'.
26545         * lib/gl_avltree_oset.c: Don't include xalloc.h.
26546         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
26547         xmalloc.
26548         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
26549         not xmalloc.
26550         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
26551         xmalloc.
26552         (gl_avltree_oset_implementation): Update.
26553         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
26554         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
26555         xmalloc.
26556         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
26557         not xmalloc.
26558         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
26559         xmalloc.
26560         (gl_rbtree_oset_implementation): Update.
26561         * modules/array-oset (Depends-on): Remove xalloc.
26562         * modules/avltree-oset (Depends-on): Likewise.
26563         * modules/rbtree-oset (Depends-on): Likewise.
26564         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
26565         * tests/test-avltree_oset.c: Likewise.
26566         * tests/test-rbtree_oset.c: Likewise.
26567         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
26568         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
26569         * modules/rbtree-oset-tests (Makefile.am): Likewise.
26570         * NEWS: Mention the change.
26571
26572 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
26573
26574         maint.mk: allow a project to override release-prep commands
26575         * top/maint.mk (alpha, beta, stable): Move release-preparatory
26576         commands into a new rule.
26577         (release-prep): New rule.
26578         (release-prep-hook): New overridable variable.
26579
26580 2009-12-13  Bruno Haible  <bruno@clisp.org>
26581
26582         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
26583
26584 2009-12-13  Jim Meyering  <meyering@redhat.com>
26585
26586         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
26587         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
26588
26589 2009-12-12  Bruno Haible  <bruno@clisp.org>
26590
26591         duplocale: Tweak.
26592         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
26593
26594 2009-12-12  Karl Berry  <karl@gnu.org>
26595
26596         * config/srclist.txt (strtoll.c): tab changes, no more sync.
26597
26598 2009-12-12  Bruno Haible  <bruno@clisp.org>
26599
26600         * m4/po.m4: Undo incorrect untabification.
26601
26602 2009-12-12  Bruno Haible  <bruno@clisp.org>
26603
26604         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
26605         * modules/c-strtod (Depends-on): Add locale.
26606         * modules/c-strtold (Depends-on): Likewise.
26607
26608 2009-12-12  Bruno Haible  <bruno@clisp.org>
26609
26610         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
26611
26612 2009-12-11  Eric Blake  <ebb9@byu.net>
26613
26614         setenv: relax requirement in light of POSIX ruling
26615         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
26616         not NULL.
26617         * tests/test-setenv.c (main): Relax test.
26618         * tests/test-unsetenv.c (main): Likewise.
26619         * doc/posix-functions/setenv.texi (setenv): Document this.
26620         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
26621
26622 2009-12-11  Bruno Haible  <bruno@clisp.org>
26623
26624         New module 'fd-safer-flag'.
26625         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
26626         * lib/dup-safer.c (dup_safer_flag): Remove function.
26627         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
26628         * lib/fd-safer.c (fd_safer_flag): Remove function.
26629         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
26630         * modules/cloexec (configure.ac): Drop indicator macro.
26631         * modules/fd-safer-flag: New file.
26632         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
26633         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
26634         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
26635
26636 2009-12-11  Bruno Haible  <bruno@clisp.org>
26637
26638         Tests for module 'nl_langinfo'.
26639         * modules/nl_langinfo-tests: New file.
26640         * tests/test-nl_langinfo.sh: New file.
26641         * tests/test-nl_langinfo.c: New file.
26642
26643         New module 'nl_langinfo'.
26644         * lib/nl_langinfo.c: New file.
26645         * m4/nl_langinfo.m4: New file.
26646         * modules/nl_langinfo: New file.
26647         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
26648
26649 2009-12-11  Bruno Haible  <bruno@clisp.org>
26650
26651         Tests for module 'langinfo'.
26652         * modules/langinfo-tests: New file.
26653         * tests/test-langinfo.c: New file.
26654
26655         New module 'langinfo'.
26656         * lib/langinfo.in.h: New file.
26657         * m4/langinfo_h.m4: New file.
26658         * modules/langinfo: New file.
26659         * doc/posix-headers/langinfo.texi: Mention the new module.
26660
26661 2009-12-11  Bruno Haible  <bruno@clisp.org>
26662
26663         * lib/config.charset: Untabify.
26664
26665 2009-12-11  Bruno Haible  <bruno@clisp.org>
26666
26667         * modules/unistd-safer (configure.ac): Drop indicator macro.
26668
26669 2009-12-11  Bruno Haible  <bruno@clisp.org>
26670
26671         Move pipe2-safer code to its own file.
26672         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
26673         * lib/pipe-safer.c (pipe2_safer): Remove function.
26674         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
26675         (Makefile.am): Add it to lib_SOURCES.
26676
26677 2009-12-10  Bruno Haible  <bruno@clisp.org>
26678
26679         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
26680
26681 2009-12-10  Bruno Haible  <bruno@clisp.org>
26682
26683         Declare which arguments expect non-NULL values, for GCC and clang.
26684         * build-aux/arg-nonnull.h: New file.
26685         * modules/arg-nonnull: New file.
26686         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
26687         (inet_ntop, inet_pton): Use it.
26688         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
26689         (closedir, dirfd, opendir, scandir, alphasort): Use it.
26690         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
26691         (open, openat): Use it.
26692         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
26693         (fnmatch): Use it.
26694         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
26695         (getopt, getopt_long, getopt_long_only): Use it.
26696         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
26697         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
26698         Use it.
26699         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
26700         (iconv_open): Use it.
26701         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
26702         (strtoimax, strtoumax): Use it.
26703         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
26704         (duplocale): Use it.
26705         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
26706         (frexp, frexpl): Use it.
26707         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
26708         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
26709         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
26710         (tsearch, tfind, tdelete, twalk): Use it.
26711         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
26712         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
26713         sigpending): Use it.
26714         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
26715         (posix_spawn, posix_spawnp, posix_spawnattr_init,
26716         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
26717         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
26718         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
26719         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
26720         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
26721         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
26722         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
26723         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
26724         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
26725         Use it.
26726         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
26727         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
26728         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
26729         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
26730         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
26731         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
26732         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
26733         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
26734         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
26735         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
26736         strtoull, unsetenv): Use it.
26737         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
26738         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
26739         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
26740         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
26741         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
26742         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
26743         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
26744         (strcasecmp, strncasecmp): Use it.
26745         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
26746         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
26747         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
26748         rpl_setsockopt): Use it.
26749         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
26750         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
26751         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
26752         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
26753         (gettimeofday): Use it.
26754         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
26755         (times): Use it.
26756         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
26757         (uname): Use it.
26758         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
26759         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
26760         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
26761         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
26762         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
26763         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
26764         unlinkat, write): Use it.
26765         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
26766         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
26767         * lib/argv-iter.h: Include arg-nonnull.h.
26768         (_ATTRIBUTE_NONNULL_): Remove macro.
26769         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
26770         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
26771         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
26772         optimization.
26773         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
26774         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
26775         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
26776         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
26777         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
26778         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
26779         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
26780         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
26781         * modules/arpa_inet (Depends-on): Add arg-nonnull.
26782         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
26783         * modules/dirent (Depends-on): Add arg-nonnull.
26784         (Makefile.am): Insert arg-nonnull.h into dirent.h.
26785         * modules/fcntl-h (Depends-on): Add arg-nonnull.
26786         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
26787         * modules/fnmatch (Depends-on): Add arg-nonnull.
26788         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
26789         * modules/getopt-posix (Depends-on): Add arg-nonnull.
26790         (Makefile.am): Insert arg-nonnull.h into getopt.h.
26791         * modules/glob (Depends-on): Add arg-nonnull.
26792         (Makefile.am): Insert arg-nonnull.h into glob.h.
26793         * modules/iconv_open (Depends-on): Add arg-nonnull.
26794         (Makefile.am): Insert arg-nonnull.h into iconv.h.
26795         * modules/inttypes (Depends-on): Add arg-nonnull.
26796         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
26797         * modules/locale (Depends-on): Add arg-nonnull.
26798         (Makefile.am): Insert arg-nonnull.h into locale.h.
26799         * modules/math (Depends-on): Add arg-nonnull.
26800         (Makefile.am): Insert arg-nonnull.h into math.h.
26801         * modules/netdb (Depends-on): Add arg-nonnull.
26802         (Makefile.am): Insert arg-nonnull.h into netdb.h.
26803         * modules/search (Depends-on): Add arg-nonnull.
26804         (Makefile.am): Insert arg-nonnull.h into search.h.
26805         * modules/signal (Depends-on): Add arg-nonnull.
26806         (Makefile.am): Insert arg-nonnull.h into signal.h.
26807         * modules/spawn (Depends-on): Add arg-nonnull.
26808         (Makefile.am): Insert arg-nonnull.h into spawn.h.
26809         * modules/stdio (Depends-on): Add arg-nonnull.
26810         (Makefile.am): Insert arg-nonnull.h into stdio.h.
26811         * modules/stdlib (Depends-on): Add arg-nonnull.
26812         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
26813         * modules/string (Depends-on): Add arg-nonnull.
26814         (Makefile.am): Insert arg-nonnull.h into string.h.
26815         * modules/strings (Depends-on): Add arg-nonnull.
26816         (Makefile.am): Insert arg-nonnull.h into strings.h.
26817         * modules/sys_socket (Depends-on): Add arg-nonnull.
26818         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
26819         * modules/sys_stat (Depends-on): Add arg-nonnull.
26820         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
26821         * modules/sys_time (Depends-on): Add arg-nonnull.
26822         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
26823         * modules/sys_times (Depends-on): Add arg-nonnull.
26824         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
26825         * modules/sys_utsname (Depends-on): Add arg-nonnull.
26826         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
26827         * modules/time (Depends-on): Add arg-nonnull.
26828         (Makefile.am): Insert arg-nonnull.h into time.h.
26829         * modules/unistd (Depends-on): Add arg-nonnull.
26830         (Makefile.am): Insert arg-nonnull.h into unistd.h.
26831         * modules/wchar (Depends-on): Add arg-nonnull.
26832         (Makefile.am): Insert arg-nonnull.h into wchar.h.
26833         * modules/argv-iter (Depends-on): Add arg-nonnull.
26834         * tests/test-canonicalize.c (null_ptr): New function.
26835         (main): Use it.
26836         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
26837         (main): Use it.
26838         * tests/test-memmem.c (null_ptr): New function.
26839         (main): Use it.
26840         Reported by Jim Meyering.
26841
26842 2009-12-10  Bruno Haible  <bruno@clisp.org>
26843
26844         Use spaces for indentation, not tabs.
26845         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
26846         * m4/*.m4: Untabify.
26847         * build-aux/*.h: Untabify.
26848         * tests/**/*.[hc]: Untabify.
26849         * README: New section "Indent with spaces, not TABs", based on
26850         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
26851         * NEWS: Mention the change.
26852
26853 2009-12-10  Bruno Haible  <bruno@clisp.org>
26854
26855         pty test: Fix link error.
26856         * modules/pty-tests (Makefile.am): Add the default LDADD value to
26857         test_pty_LDADD.
26858
26859 2009-12-07  Simon Josefsson  <simon@josefsson.org>
26860
26861         * modules/pty: New file.
26862         * modules/pty-tests: New file.
26863         * m4/pty.m4: New file.
26864         * tests/test-pty.c: New file.
26865         * doc/glibc-headers/pty.texi: Modified.
26866         * doc/glibc-functions/forkpty.texi: Modified.
26867         * doc/glibc-functions/openpty.texi: Modified.
26868
26869 2009-12-10  Bruno Haible  <bruno@clisp.org>
26870
26871         Avoid syntax error in C++ mode.
26872         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
26873
26874 2009-12-10  Bruno Haible  <bruno@clisp.org>
26875
26876         Use sed with option -e.
26877         * gnulib-tool (func_version, func_emit_copyright_notice,
26878         func_emit_initmacro_end, func_import, func_create_testdir): Pass
26879         option -e to sed.
26880         * modules/link-warning (Makefile.am): Likewise.
26881
26882 2009-12-10  Jim Meyering  <meyering@redhat.com>
26883
26884         mgetgroups: do not write bytes beyond end of malloc'd buffer
26885         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
26886         username, we call getgroups with a one-element-shorter buffer,
26887         but still told it the length was original, max_n_groups.
26888
26889 2009-12-09  Eric Blake  <ebb9@byu.net>
26890
26891         cloexec: relax license
26892         * modules/cloexec (Maintainer): Add myself.
26893         (License): Use LGPL, not GPL.
26894
26895         link-warning: optimize generation
26896         * modules/link-warning (Makefile.am): Reduce process usage.
26897
26898 2009-12-09  Bruno Haible  <bruno@clisp.org>
26899
26900         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
26901         workaround was added on 2009-11-17.
26902
26903 2009-12-09  Jim Meyering  <meyering@redhat.com>
26904             Bruno Haible  <bruno@clisp.org>
26905
26906         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
26907         * modules/link-warning (Makefile.am): Make the comment-removing sed
26908         command more robust in the face of bootstrap-prepended comment lines.
26909
26910 2009-12-09  Bruno Haible  <bruno@clisp.org>
26911
26912         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
26913         most one group.
26914
26915 2009-12-09  Simon Josefsson <simon@josefsson.org>
26916             Bruno Haible  <bruno@clisp.org>
26917
26918         * build-aux/link-warning.h: Add copyright notice.
26919         * modules/link-warning (Makefile.am): Generate link-warning.h from
26920         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
26921         * NEWS: Mention change in link-warning module.
26922         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
26923         * modules/dirent (Makefile.am): Add dependency to dirent.h.
26924         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
26925         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
26926         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
26927         * modules/math (Makefile.am): Add dependency to math.h.
26928         * modules/search (Makefile.am): Add dependency to search.h.
26929         * modules/signal (Makefile.am): Add dependency to signal.h.
26930         * modules/spawn (Makefile.am): Add dependency to spawn.h.
26931         * modules/stdio (Makefile.am): Add dependency to stdio.h.
26932         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
26933         * modules/string (Makefile.am): Add dependency to string.h.
26934         * modules/strings (Makefile.am): Add dependency to strings.h.
26935         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
26936         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
26937         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
26938         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
26939         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
26940         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
26941         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
26942         * modules/unistd (Makefile.am): Add dependency to unistd.h.
26943         * modules/wchar (Makefile.am): Add dependency to wchar.h.
26944
26945 2009-12-09  Bruno Haible  <bruno@clisp.org>
26946
26947         fchdir: Optimize away rpl_fstat when possible.
26948         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
26949         REPLACE_OPEN_DIRECTORY.
26950         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
26951
26952 2009-12-09  Bruno Haible  <bruno@clisp.org>
26953
26954         * lib/fchdir.c: Update comment.
26955
26956 2009-12-09  Bruno Haible  <bruno@clisp.org>
26957
26958         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
26959
26960 2009-12-08  Eric Blake  <ebb9@byu.net>
26961
26962         fchdir: avoid memory leak on re-registration.
26963         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
26964
26965 2009-12-08  Jim Meyering  <meyering@redhat.com>
26966
26967         init.sh: avoid Solaris 10 /bin/sh portability problem
26968         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
26969         sourced script:
26970           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
26971           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
26972           bar
26973         tests/init.sh relied on that, accepting a --set-path=DIR argument,
26974         and two tests used that idiom.
26975         * tests/init.sh: Update suggested usage comments.
26976         (path_prepend_): New function, to be used in place
26977         of the --src-path=DIR option.
26978         (setup_): Move PATH-prepending code into path_prepend_.
26979         * tests/test-pread.sh: Adapt to new usage.
26980         * tests/test-xalloc-die.sh: Likewise.
26981
26982 2009-12-08  Simon Josefsson  <simon@josefsson.org>
26983
26984         * doc/gnulib.texi (Glibc pty.h): Add.
26985         * doc/glibc-functions/forkpty.texi: Add.
26986         * doc/glibc-functions/openpty.texi: Add.
26987         Suggested by Bruno Haible.
26988
26989 2009-12-08  Eric Blake  <ebb9@byu.net>
26990
26991         fchdir: fix logic bugs
26992         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
26993         * tests/test-fchdir.c (main): Enhance test.
26994         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
26995         is in use.
26996
26997         dup2: fix logic bugs
26998         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
26999         REPLACE_DUP2 to decide when rpl_dup2 is needed.
27000         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
27001         exists.
27002         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
27003
27004 2009-12-07  Eric Blake  <ebb9@byu.net>
27005
27006         unlink: fix m4 detection
27007         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
27008
27009         unistd-safer: add unit test
27010         * modules/unistd-safer-tests: New file.
27011         * tests/test-dup-safer.c: Likewise.
27012         * tests/test-cloexec.c (setmode): Avoid compiler warning.
27013         * tests/test-dup2.c (setmode): Likewise.
27014         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
27015
27016         cloexec: preserve text vs. binary across dup_cloexec
27017         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
27018         mode.
27019         * modules/dup2-tests (Depends-on): Add binary-io.
27020         * modules/cloexec-tests (Depends-on): Likewise.
27021         * tests/test-dup2.c (setmode, is_mode): New helpers.
27022         (main): Add tests that translation mode is preserved.
27023         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
27024         Reported by Bruno Haible.
27025
27026         mgetgroups: reduce duplicate listings
27027         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
27028         resulting array.
27029         * tests/test-chown.h (test_chown): Simplify client.
27030         * tests/test-lchown.h (test_lchown): Likewise.
27031
27032 2009-12-06  Bruno Haible  <bruno@clisp.org>
27033
27034         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
27035         value.
27036
27037 2009-12-06  Bruno Haible  <bruno@clisp.org>
27038
27039         * lib/progname.c: Include stdio.h, stdlib.h.
27040         (set_program_name): Reject a NULL argument.
27041
27042 2009-12-05  Eric Blake  <ebb9@byu.net>
27043
27044         pipe2-safer: new module
27045         * modules/pipe2-safer: New file.
27046         * lib/unistd-safer.h (pipe2_safer): New prototype.
27047         * lib/unistd--.h (pipe2): New wrapper.
27048         * lib/pipe-safer.c (pipe2_safer): New function.
27049         * modules/pipe (Depends-on): Add pipe2-safer.
27050         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
27051
27052         stdlib-safer: preserve cloexec flag for mkostemp[s]
27053         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
27054         fd_safer_flag.
27055
27056         unistd-safer: allow preservation of cloexec status via flag
27057         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
27058         prototypes.
27059         * lib/dup-safer.c (dup_safer_flag): New function.
27060         * lib/fd-safer.c (fd_safer_flag): Likewise.
27061         * modules/cloexec (configure.ac): Set witness.
27062
27063         test-dup2: enhance test
27064         * modules/dup2-tests (Depends-on): Add cloexec.
27065         * tests/test-dup2.c (main): Enhance test.
27066
27067         cloexec: add dup_cloexec
27068         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
27069         header and comments.
27070         * lib/cloexec.c (set_cloexec_flag): Add comments.
27071         (dup_cloexec): New function, with mingw implementation borrowed
27072         from...
27073         * lib/w32spawn.h (dup_noinherit): ...here.
27074         * modules/execute (Depends-on): Add cloexec.
27075         * modules/pipe (Depends-on): Likewise.
27076         * modules/cloexec (Depends-on): Add dup2.
27077         * modules/cloexec-tests (Files): New file.
27078         * tests/test-cloexec.c: Likewise.
27079
27080         test-xalloc-die: fix test for mingw
27081         * modules/xalloc-die-tests (Files): Add tests/init.sh.
27082         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
27083         directory and .exe suffix off argv[0] output.
27084
27085         test-fseeko: fix test for mingw
27086         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
27087         than undefining fseek, so test will pass on mingw.
27088
27089 2009-12-05  Bruno Haible  <bruno@clisp.org>
27090
27091         * lib/progname.h (set_program_name): Clarify specification.
27092         * lib/progname.c (set_program_name): Likewise.
27093         Reported by Jim Meyering.
27094
27095 2009-12-05  Jim Meyering  <meyering@redhat.com>
27096
27097         maint.mk: backslash-escape parens in default regexp
27098         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
27099         backslash-escape the literal parentheses.
27100
27101         maint.mk: news-date-check: use grep -E
27102         * top/maint.mk (today): Define a Make variable, not a...
27103         (news-date-check): ...shell variable.
27104         (news-date-regexp): Use the Make variable.
27105         Use grep's -E option.  Change the failing diagnostic to mention
27106         the variable, $(news-date-regexp).
27107
27108 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
27109
27110         maintainer-makefile: allow customization of NEWS entry format
27111         * top/maint.mk (news-date-regexp): New overridable variable.
27112         (news-date-check): Use it.
27113
27114 2009-12-04  Eric Blake  <ebb9@byu.net>
27115
27116         mgetgroups: add xgetgroups, and avoid ENOSYS failures
27117         * lib/mgetgroups.h (xgetgroups): New prototype.
27118         * lib/mgetgroups.c (xgetgroups): New wrapper.
27119         (mgetgroups): Handle ENOSYS.
27120         * modules/mgetgroups (Depends-on): Add realloc.
27121         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
27122
27123         mgetgroups: avoid argument promotion issues with -1
27124         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
27125         for invalid gid_t.
27126         * tests/test-chown.h (getegid, test_chown): Likewise.
27127         * tests/test-lchown.h (getegid, test_lchown): Likewise.
27128
27129 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
27130
27131         exclude: Fix header file problems.
27132         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
27133
27134 2009-12-01  Jim Meyering  <meyering@redhat.com>
27135
27136         fts: fts_open: do not let an empty string cause immediate failure
27137         This is required in support of GNU rm, for which the command
27138         "rm A '' B" must process and remove both A and B, in spite of
27139         the empty string argument.
27140         * lib/fts.c (fts_open): Do not let the presence of an empty string
27141         cause fts_open to fail immediately.  Most fts-using tools must be
27142         able to process all arguments, in order, and can be expected to
27143         diagnose such arguments themselves.
27144
27145 2009-11-30  Eric Blake  <ebb9@byu.net>
27146
27147         utimens: fix compilation error
27148         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
27149         Declare variable at right scope.
27150
27151 2009-11-29  Jim Meyering  <meyering@redhat.com>
27152
27153         bootstrap: handle perl-5.11's changed --version output
27154         * build-aux/bootstrap (get_version): Handle perl separately,
27155         since perl-5.11's --version output is different.
27156
27157 2009-11-28  Jim Meyering  <meyering@redhat.com>
27158
27159         userspec: depend on the inttostr module, too
27160         * modules/userspec (Depends-on): Add inttostr.
27161
27162         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
27163         * lib/userspec.c (parse_with_separator): Do not accept a user ID
27164         number of MAXUID when it evaluates to (uid_t) -1.
27165         Likewise for group ID.  Reported by Matt McCutchen in
27166         <http://savannah.gnu.org/bugs/?28113>
27167
27168         userspec: reformat to use spaces, not TABs
27169         * lib/userspec.c: Expand TABs to spaces.
27170         Add Emacs' "indent-tabs-mode: nil" hint.
27171
27172 2009-11-27  Eric Blake  <ebb9@byu.net>
27173
27174         getopt-gnu: flush out another BSD bug
27175         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
27176         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
27177         flush out BSD bug.
27178         * tests/test-getopt.h (test_getopt): End lists with NULL.
27179         * tests/test-getopt_long.h (test_getopt_long): Likewise.
27180         (test_getopt_long_posix): Enhance test.
27181         * modules/getopt-posix-tests (Depends-on): Add stdbool.
27182         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
27183         getopt-gnu.
27184         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
27185         Likewise.
27186
27187 2009-11-27  Simon Josefsson  <simon@josefsson.org>
27188
27189         * modules/idpriv-droptemp-tests (Notice): Fix text.
27190
27191 2009-11-27  Jim Meyering  <meyering@redhat.com>
27192
27193         test-xalloc-die: avoid spurious failure due to libtool argv difference
27194         In a libtool-enabled project, this test would fail due to a difference
27195         in the emitted program name, e.g.,
27196         -test-xalloc-die: memory exhausted
27197         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
27198         Use program to avoid that.
27199         * modules/xalloc-die-tests (Depends-on): Add progname.
27200         * tests/test-xalloc-die.c: Include progname.h".
27201         (program_name): Remove decl.
27202         (main): Call set_program_name.
27203         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
27204
27205 2009-11-26  Richard Jones  <rjones@redhat.com>
27206
27207         w32sock: leave win32 error in place.
27208         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
27209
27210 2009-11-26  Eric Blake  <ebb9@byu.net>
27211
27212         init.sh: suggest to use skip_ and fail_ functions in comments
27213         * tests/init.sh: Add a sentence.
27214
27215 2009-11-25  Bruno Haible  <bruno@clisp.org>
27216
27217         init.sh: add documentation in comments
27218         * tests/init.sh: Add some developer and user documentation.
27219
27220 2009-11-26  Jim Meyering  <meyering@redhat.com>
27221
27222         init.sh: accommodate even those who specify bogus srcdir manually
27223         * tests/init.sh: Normally, srcdir is guaranteed by automake and
27224         configure-time tests to be sanitized, so that there is no need to
27225         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
27226         (with no double quotes) suffices.  However, since tests may be
27227         invoked manually, and since you may explicitly set srcdir to the
27228         name of a directory containing spaces, do quote its uses here.
27229         * tests/test-pread.sh: Likewise.
27230         Suggested by Bruno Haible.
27231
27232         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
27233         * tests/test-pread.sh: Write no data into the pipe, because
27234         test-pread actually reads none.  This avoids a diagnostic,
27235         "bash: echo: write error: Broken pipe", that arises in the unusual
27236         event something is ignoring SIGPIPE, and might be interpreted
27237         as some sort of failure.  Reported by Bruno Haible.
27238
27239 2009-11-25  Jim Meyering  <meyering@redhat.com>
27240
27241         test-pread: cover failure with ESPIPE and EINVAL
27242         * tests/test-pread.c (main): Test for failure, too.
27243         * tests/test-pread.sh: Invoke with stdin on a pipe.
27244         Suggested by Eric Blake.
27245
27246         pread: improvement and fix
27247         * modules/pread (Depends-on): Depend on lseek, for portability to
27248         e.g., mingw.  Suggested by Eric Blake.
27249         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
27250
27251         unistd.in.h: correct declaration of pread
27252         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
27253         Reported by Richard W.M. Jones.
27254
27255         test-pread.sh: distribute the test script
27256         * modules/pread-tests (Files): Include test-pread.sh.
27257
27258         test-pread.sh: clean up
27259         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
27260         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
27261         That is unnecessary, since it's always ".".
27262         Suggestion from Eric Blake.
27263
27264         test-pread.sh: make executable
27265         * tests/test-pread.sh: Set executable bit.
27266         Reported by Eric Blake.
27267
27268         correct typo in test-pread.sh
27269         * tests/test-pread.sh: Add #! line.
27270
27271         test pread
27272         * tests/test-pread.c: New file.
27273         * tests/test-pread.sh: Likewise.
27274         * modules/pread-tests: Likewise.
27275
27276         pread: new module
27277         * modules/pread: New file.
27278         * lib/unistd.in.h (pread): Define/declare.
27279         * lib/pread.c (pread): New file.
27280         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
27281         * modules/unistd (Makefile.am): Substitute witnesses.
27282         * doc/posix-functions/pread.texi (pread): Update.
27283         * MODULES.html.sh: Add pread.
27284
27285 2009-11-25  Jim Meyering  <meyering@redhat.com>
27286
27287         tests/init.sh: new file to be used via most *.sh tests
27288         * tests/init.sh: New file.
27289
27290 2009-11-25  Eric Blake  <ebb9@byu.net>
27291
27292         utimens: work around older Linux failure with symlinks
27293         * lib/utimens.c (lutimensat_works_really): New variable.
27294         (fdutimens, lutimens): Use it to manage kernels that support
27295         nanosecond times on files, but not on symlinks.
27296         Reported by OndÅ™ej Vašík.
27297
27298         utimes: fix configure grammar
27299         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
27300
27301 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
27302
27303         regex: Fix fastmap for multibyte character ranges.
27304         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
27305         characters when a multibyte character range is included.
27306
27307 2009-11-22  Andy Wingo  <wingo@pobox.com>
27308
27309         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
27310         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
27311
27312 2009-11-24  Bruno Haible  <bruno@clisp.org>
27313
27314         doc: Most *_l functions exist in MacOS X 10.5.
27315         * doc/posix-functions/duplocale.texi: Update platforms list.
27316         * doc/posix-functions/freelocale.texi: Likewise.
27317         * doc/posix-functions/newlocale.texi: Likewise.
27318         * doc/posix-functions/uselocale.texi: Likewise.
27319         * doc/posix-functions/isalnum_l.texi: Likewise.
27320         * doc/posix-functions/isalpha_l.texi: Likewise.
27321         * doc/posix-functions/isblank_l.texi: Likewise.
27322         * doc/posix-functions/iscntrl_l.texi: Likewise.
27323         * doc/posix-functions/isdigit_l.texi: Likewise.
27324         * doc/posix-functions/isgraph_l.texi: Likewise.
27325         * doc/posix-functions/islower_l.texi: Likewise.
27326         * doc/posix-functions/isprint_l.texi: Likewise.
27327         * doc/posix-functions/ispunct_l.texi: Likewise.
27328         * doc/posix-functions/isspace_l.texi: Likewise.
27329         * doc/posix-functions/isupper_l.texi: Likewise.
27330         * doc/posix-functions/iswalnum_l.texi: Likewise.
27331         * doc/posix-functions/iswalpha_l.texi: Likewise.
27332         * doc/posix-functions/iswblank_l.texi: Likewise.
27333         * doc/posix-functions/iswcntrl_l.texi: Likewise.
27334         * doc/posix-functions/iswctype_l.texi: Likewise.
27335         * doc/posix-functions/iswdigit_l.texi: Likewise.
27336         * doc/posix-functions/iswgraph_l.texi: Likewise.
27337         * doc/posix-functions/iswlower_l.texi: Likewise.
27338         * doc/posix-functions/iswprint_l.texi: Likewise.
27339         * doc/posix-functions/iswpunct_l.texi: Likewise.
27340         * doc/posix-functions/iswspace_l.texi: Likewise.
27341         * doc/posix-functions/iswupper_l.texi: Likewise.
27342         * doc/posix-functions/iswxdigit_l.texi: Likewise.
27343         * doc/posix-functions/isxdigit_l.texi: Likewise.
27344         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
27345         * doc/posix-functions/strcasecmp_l.texi: Likewise.
27346         * doc/posix-functions/strcoll_l.texi: Likewise.
27347         * doc/posix-functions/strfmon_l.texi: Likewise.
27348         * doc/posix-functions/strftime_l.texi: Likewise.
27349         * doc/posix-functions/strncasecmp_l.texi: Likewise.
27350         * doc/posix-functions/strxfrm_l.texi: Likewise.
27351         * doc/posix-functions/tolower_l.texi: Likewise.
27352         * doc/posix-functions/toupper_l.texi: Likewise.
27353         * doc/posix-functions/towctrans_l.texi: Likewise.
27354         * doc/posix-functions/towlower_l.texi: Likewise.
27355         * doc/posix-functions/towupper_l.texi: Likewise.
27356         * doc/posix-functions/wcscoll_l.texi: Likewise.
27357         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
27358         * doc/posix-functions/wctrans_l.texi: Likewise.
27359         * doc/posix-functions/wctype_l.texi: Likewise.
27360         * doc/glibc-functions/strptime_l.texi: Likewise.
27361         * doc/glibc-functions/strtod_l.texi: Likewise.
27362         * doc/glibc-functions/strtof_l.texi: Likewise.
27363         * doc/glibc-functions/strtol_l.texi: Likewise.
27364         * doc/glibc-functions/strtold_l.texi: Likewise.
27365         * doc/glibc-functions/strtoll_l.texi: Likewise.
27366         * doc/glibc-functions/strtoul_l.texi: Likewise.
27367         * doc/glibc-functions/strtoull_l.texi: Likewise.
27368         * doc/glibc-functions/wcsftime_l.texi: Likewise.
27369         * doc/glibc-functions/wcstod_l.texi: Likewise.
27370         * doc/glibc-functions/wcstof_l.texi: Likewise.
27371         * doc/glibc-functions/wcstol_l.texi: Likewise.
27372         * doc/glibc-functions/wcstold_l.texi: Likewise.
27373         * doc/glibc-functions/wcstoll_l.texi: Likewise.
27374         * doc/glibc-functions/wcstoul_l.texi: Likewise.
27375         * doc/glibc-functions/wcstoull_l.texi: Likewise.
27376
27377 2009-11-24  Bruno Haible  <bruno@clisp.org>
27378
27379         duplocale: Fix logic bug.
27380         * lib/duplocale.c: Don't include <langinfo.h>.
27381         (_NL_LOCALE_NAME): Remove macro.
27382         (rpl_duplocale): Use setlocale instead of nl_langinfo.
27383         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
27384
27385 2009-11-23  Jim Meyering  <meyering@redhat.com>
27386
27387         test-update-copyright: don't hard-code /usr/bin/perl
27388         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
27389         perl to print the current year.  Gilles Espinasse reported that
27390         the replaced use of perl was hard-coded as /usr/bin/perl.
27391
27392 2009-11-23  Bruno Haible  <bruno@clisp.org>
27393
27394         duplocale: Add support for glibc 2.3.x.
27395         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
27396
27397 2009-11-22  Bruno Haible  <bruno@clisp.org>
27398
27399         vasnprintf: Tiny optimization.
27400         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
27401         MacOS X.
27402
27403 2009-11-22  Bruno Haible  <bruno@clisp.org>
27404
27405         Tests for module 'duplocale'.
27406         * modules/duplocale-tests: New file.
27407         * tests/test-duplocale.c: New file.
27408
27409         New module 'duplocale'.
27410         * m4/duplocale.m4: New file.
27411         * lib/locale.in.h (duplocale): New declaration.
27412         * lib/duplocale.c: New file.
27413         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
27414         gl_LOCALE_H_DEFAULTS): New macros.
27415         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
27416         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
27417         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
27418         REPLACE_DUPLOCALE.
27419         * modules/duplocale: New file.
27420         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
27421
27422 2009-11-22  Bruno Haible  <bruno@clisp.org>
27423
27424         * modules/locale-tests (configure.ac): Test for newlocale function.
27425         * tests/test-locale.c: When the system has extended locale functions,
27426         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
27427
27428         locale: Make locale_t available when possible.
27429         * lib/locale.in.h: Include <xlocale.h> when it exists.
27430         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
27431         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
27432         * modules/locale (Depends-on): Add extensions.
27433         (Makefile.am): Also substitute HAVE_XLOCALE_H.
27434         * doc/posix-headers/locale.texi: Document the problem with locale_t.
27435
27436 2009-11-22  Bruno Haible  <bruno@clisp.org>
27437
27438         Add comments.
27439         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
27440         invocation.
27441         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
27442         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
27443         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
27444
27445 2009-11-22  Bruno Haible  <bruno@clisp.org>
27446
27447         error: account for the possibility of freopen (stdout).
27448         * lib/error.c: Include <unistd.h>.
27449         (flush_stdout): New function, extracted from error and error_at_line.
27450         Determine stdout's fd dynamically.
27451         (error, error_at_line): Invoke flush_stdout.
27452         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
27453         * modules/error (Depends-on): Add unistd.
27454
27455 2009-11-22  Bruno Haible  <bruno@clisp.org>
27456
27457         diffseq: Add comment.
27458         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
27459
27460 2009-11-22  Jim Meyering  <meyering@redhat.com>
27461
27462         c-stack: avoid defining an unused static function
27463         * lib/c-stack.c (find_stack_direction): Do not define this function
27464         when it will not be used.
27465
27466         diffseq: avoid spurious gcc warnings
27467         * lib/diffseq.h (IF_LINT2): Define.
27468         (compareseq): Use it to initialize two members of "part".
27469         This avoids two used-uninitialized warnings.
27470
27471 2009-11-21  Jim Meyering  <meyering@redhat.com>
27472
27473         c-stack: avoid "ignoring return value of `write'" warning
27474         * lib/c-stack.c: Include "ignore-value.h".
27475         (die): Explicitly ignore each write return value.
27476         * modules/c-stack (Depends-on): Add ignore-value.
27477
27478 2009-11-21  Bruno Haible  <bruno@clisp.org>
27479
27480         diffseq: reduce scope of variable 'best'.
27481         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
27482         variable, earlier used for two different purposes.
27483
27484 2009-11-21  Jim Meyering  <meyering@redhat.com>
27485
27486         diffseq: remove useless assignment to "best"
27487         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
27488         assignment.  At that point "best" is already guaranteed to be zero.
27489
27490 2009-11-20  Eric Blake  <ebb9@byu.net>
27491
27492         build: mention ftp redirector in release announcements
27493         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
27494         values that used to come from cfg.mk; mention FTP redirect URL.
27495         * build-aux/announce-gen: Mention the mirror list.
27496         Suggested by Karl Berry.
27497
27498         nanosleep: improve port to mingw
27499         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
27500         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
27501         LIB_NANOSLEEP, but only when needed.
27502         * modules/select (Link): Document LIBSOCKET.
27503         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
27504         enough.
27505
27506         nanosleep: work around cygwin bug
27507         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
27508         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
27509         bug.
27510         (getnow): Delete, not needed.
27511         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
27512         LIB_CLOCK_GETTIME.
27513         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
27514         clock-time, gettime.
27515         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
27516         bug.
27517         * modules/nanosleep-tests: New test.
27518         * tests/test-nanosleep.c: New file.
27519
27520         sleep: work around cygwin bug
27521         * lib/sleep.c (rpl_sleep): Work around the bug.
27522         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
27523         (gl_PREREQ_SLEEP): Delete unused macro.
27524         * modules/sleep (Depends-on): Add verify.
27525         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
27526         * modules/unistd (Makefile.am): Substitute witness.
27527         * lib/unistd.in.h (sleep): Update prototype.
27528         * doc/posix-functions/sleep.texi (sleep): Document the bug.
27529         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
27530         * modules/sleep-tests (Depends-on): Check for alarm.
27531
27532 2009-11-20  Jim Meyering  <meyering@redhat.com>
27533
27534         maint.mk: improve sc_prohibit_magic_number_exit
27535         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
27536         so it does not match uses like System.exit(1).
27537         Add comments showing how to correct all offenders.
27538
27539 2009-11-19  Eric Blake  <ebb9@byu.net>
27540
27541         xalloc-die-tests: add missing library
27542         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
27543
27544         test-xvasprintf: silence compiler warnings
27545         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
27546         empty string from gcc.
27547
27548 2009-11-19  Jim Meyering  <meyering@redhat.com>
27549
27550         xfreopen: new module, from coreutils
27551         * modules/xfreopen: New module.
27552         * lib/xfreopen.c: New file.
27553         * lib/xfreopen.h: New file.
27554         * MODULES.html.sh (File stream based Input/Output"): Add it.
27555
27556 2009-11-19  Eric Blake  <ebb9@byu.net>
27557
27558         manywarnings: depend on warnings
27559         * modules/manywarnings (Depends-on): Add warnings.
27560
27561         build: avoid compiler warnings
27562         * lib/select.c (rpl_select): Delete unused variable.
27563         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
27564
27565 2009-11-18  Eric Blake  <ebb9@byu.net>
27566
27567         tests: avoid false negative with --with-packager
27568         * tests/test-version-etc.sh: Discard packager information.
27569         * tests/test-argp-version-etc-1.sh: Likewise.
27570         Reported by Mike Frysinger.
27571
27572         utimens: fix regression on Solaris
27573         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
27574         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
27575         can only change fd timestamps via futimesat.  Instead, use an
27576         additional witness macro to avoid BSD bug.
27577         Reported by Jim Meyering.
27578
27579 2009-11-17  Eric Blake  <ebb9@byu.net>
27580
27581         usleep: use it to simplify tests
27582         * modules/stat-time-tests (Depends-on): Add usleep.
27583         (configure.ac): Drop usleep check.
27584         * modules/chown-tests (Depends-on, configure.ac): Likewise.
27585         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
27586         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
27587         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
27588         * modules/openat-tests (Depends-on, configure.ac): Likewise.
27589         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
27590         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
27591         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
27592         Likewise.
27593         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
27594         * tests/test-lchown.h (nap): Likewise.
27595         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
27596         * tests/test-stat-time.c (nap): Likewise.
27597         * tests/test-utimens-common.h (nap): Update comments.
27598
27599         usleep: new module
27600         * modules/usleep: New file.
27601         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
27602         * lib/usleep.c (usleep): Likewise.
27603         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
27604         * modules/unistd (Makefile.am): Substitute witnesses.
27605         * lib/unistd.in.h (usleep): Add declaration.
27606         * doc/pastposix-functions/usleep.texi (usleep): Document this.
27607         * MODULES.html.sh (Date and time): Likewise.
27608         * modules/usleep-tests (Depends-on): New test.
27609         * tests/test-usleep.c: New file.
27610
27611         chown: work around OpenBSD bug
27612         * lib/chown.c (rpl_chown): Work around the bug.
27613         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
27614         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
27615         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
27616         * modules/chown (Depends-on): Add stdbool.
27617         * modules/lchown (Depends-on): Likewise.
27618         * doc/posix-functions/chown.texi (chown): Document the bug.
27619         * doc/posix-functions/lchown.texi (lchown): Likewise.
27620         * tests/test-lchown.h (test_chown): Relax test.
27621
27622         mkstemp: avoid conflict with C++ keyword template
27623         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
27624         * lib/mkostemp.c (mkostemp): Likewise.
27625         * lib/mkostemps.c (mkostemps): Likewise.
27626         * lib/mkstemp.c (mkstemp): Likewise.
27627         * lib/mkstemps.c (mkstemps): Likewise.
27628
27629         xalloc-die-tests: optimize
27630         * tests/test-xalloc-die.sh: Reduce number of processes.
27631
27632 2009-11-17  Simon Josefsson  <simon@josefsson.org>
27633
27634         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
27635         patch from ludo@gnu.org (Ludovic Courtès).
27636
27637 2009-11-17  Jim Meyering  <meyering@redhat.com>
27638
27639         version-etc: use proper license string
27640         * modules/version-etc (License): Use LGPL, not LGPLv3+.
27641         * modules/version-etc-fsf: Likewise.
27642
27643 2009-11-17  Simon Josefsson  <simon@josefsson.org>
27644
27645         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
27646         printed to stdout.  Deal with EOL differences.
27647
27648 2009-11-17  Eric Blake  <ebb9@byu.net>
27649
27650         unsetenv: work around Solaris bug
27651         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
27652         * lib/unsetenv.c (rpl_unsetenv): Work around it.
27653         Reported by Jim Meyering.
27654
27655         vasnprintf: avoid compiler warnings
27656         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
27657         variables.
27658         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
27659
27660 2009-11-17  Simon Josefsson  <simon@josefsson.org>
27661
27662         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
27663         settings since xalloc-die is no longer the self test,
27664         xalloc-die.sh is.
27665
27666 2009-11-17  Jim Meyering  <meyering@redhat.com>
27667
27668         test-xalloc-die.sh: make the code agree with the commit log
27669         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
27670         at the end, just in case you happen to have a test-xalloc-die
27671         program in some other PATH directory.
27672
27673         test-xalloc-die.sh: fix a portability bug
27674         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
27675         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
27676         Otherwise, argv[0] (as often seen in diagnostics) would be too
27677         system-dependent, sometimes with, and sometimes without the leading "./".
27678
27679         version-etc-fsf: relax license to LGPLv3+
27680         * modules/version-etc-fsf (License): Relax license.
27681
27682 2009-11-16  Eric Blake  <ebb9@byu.net>
27683
27684         xalloc-die-tests: avoid printing null pointer
27685         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
27686         shell script.
27687         * tests/test-xalloc-die.c (program_name): Declare.
27688         * tests/test-xalloc-die.sh (tmpfiles): New file.
27689
27690         setenv, unsetenv: work around various bugs
27691         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
27692         (setenv) [HAVE_SETENV]: Work around bugs.
27693         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
27694         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
27695         for bugs.
27696         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
27697         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
27698         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
27699         * modules/stdlib (Makefile.am): Update substitutions.
27700         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
27701         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
27702         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
27703         * modules/setenv-tests: New test.
27704         * modules/unsetenv-tests: Likewise.
27705         * tests/test-setenv.c: New file.
27706         * tests/test-unsetenv.c: Likewise.
27707
27708 2009-11-16  Jim Meyering  <meyering@redhat.com>
27709
27710         version-etc: relax license to LGPLv3+
27711         * modules/version-etc (License): Relax license.
27712
27713         better AC_REQUIRE expanded-before-required-warning avoidance
27714         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
27715         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
27716         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
27717         which is no longer needed.
27718
27719 2009-11-16  Eric Blake  <ebb9@byu.net>
27720
27721         test-freading: clean up temporary file
27722         * tests/test-freading.c (main): Remove file on success, and use
27723         ASSERT more liberally.
27724         Reported by Jim Meyering.
27725
27726 2009-11-16  Jim Meyering  <meyering@redhat.com>
27727
27728         avoid new AC_REQUIRE expanded-before-required warnings
27729         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
27730         merely using it.
27731         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
27732         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
27733
27734 2009-11-15  Simon Josefsson  <simon@josefsson.org>
27735
27736         * tests/test-xalloc-die.c: New file.
27737         * modules/xalloc-die-tests: New file.
27738         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
27739         XFAIL_TESTS so it can be appended by modules.
27740
27741 2009-11-15  Simon Josefsson  <simon@josefsson.org>
27742
27743         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
27744         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
27745
27746 2009-11-14  Eric Blake  <ebb9@byu.net>
27747
27748         fnmatch: avoid compiler warning
27749         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
27750         to silence compiler warning about mismatch signedness in ?:.
27751         Reported by Robert Millan.
27752
27753         intprops: add double-inclusion guard
27754         * lib/intprops.h: Allow idempotent includes.
27755         Suggested by Bruce Korb.
27756
27757         openat: detect Solaris fchownat bug
27758         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
27759         penalizing glibc chownat when only lchownat is broken.
27760         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
27761         trailing slash bugs.
27762         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
27763         * modules/openat-tests (Files): Include more files.
27764         (Depends-on): Add mgetgroups, sleep, stat-time.
27765         (configure.ac): Add additional checks.
27766         (Makefile.am): Build new test.
27767         * tests/test-fchownat.c: New file.
27768
27769         lchown: detect Solaris and FreeBSD bug
27770         * lib/lchown.c (rpl_lchown): Work around bug.
27771         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
27772         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
27773         * modules/unistd (Makefile.am): Populate it.
27774         * lib/unistd.in.h (lchown): Update declaration.
27775         * doc/posix-functions/lchown.texi (lchown): Document the bug.
27776         * modules/lchown-tests: New file.
27777         * tests/test-lchown.h (test_lchown): Likewise.
27778         * tests/test-lchown.c (main): Likewise.
27779
27780         chown: detect Solaris and FreeBSD bug
27781         * lib/chown.c (rpl_chown): Work around bug.
27782         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
27783         (gl_PREREQ_CHOWN): Delete.
27784         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
27785         * modules/unistd (Makefile.am): Populate it.
27786         * lib/unistd.in.h (chown): Update declaration.
27787         * lib/lchown.c (chown): Update client.
27788         * modules/lchown (Depends-on): Add lstat.
27789         * doc/posix-functions/chown.texi (chown): Document the bug.
27790         * doc/posix-functions/getgroups.texi (getgroups): Document
27791         getgroups pitfall.
27792         * modules/chown-tests: New file.
27793         * tests/test-chown.h (test_chown): Likewise.
27794         * tests/test-chown.c (main): Likewise.
27795
27796 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
27797
27798         gnulib-tool: correctly detect absence of m4 directories
27799         * gnulib-tool: Avoid extra newline on data passed to wc -l.
27800
27801 2009-11-14  Jim Meyering  <meyering@redhat.com>
27802
27803         maint.mk: Prohibit inclusion of "xalloc.h" without use.
27804         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
27805
27806 2009-11-14  John W. Eaton  <jwe@gnu.org>
27807
27808         strftime.h: wrap funtion declaration in extern "C" block
27809         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
27810
27811 2009-11-13  Eric Blake  <ebb9@byu.net>
27812
27813         getgroups: avoid compiler warning
27814         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
27815
27816         getgroups: work around FreeBSD bug
27817         * lib/getgroups.c (rpl_getgroups): Work around the bug.
27818         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
27819         * doc/posix-functions/getgroups.texi (getgroups): Document it.
27820         * tests/test-getgroups.c (main): Fix buffer overrun.
27821
27822         getgroups: avoid compilation failure
27823         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
27824         * modules/getgroups (Depends-on): Add stdint.
27825
27826 2009-11-13  Jim Meyering  <meyering@redhat.com>
27827
27828         test-getgroups: avoid compilation failure
27829         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
27830
27831 2009-11-13  Eric Blake  <ebb9@byu.net>
27832
27833         mgetgroups: new module, taken from coreutils
27834         * modules/mgetgroups: New file.
27835         * lib/mgetgroups.h: Likewise.
27836         * lib/mgetgroups.c (mgetgroups): Likewise.
27837         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
27838         * MODULES.html.sh (Users and groups): Mention it.
27839
27840         getgroups: don't expose GETGROUPS_T to user
27841         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
27842         an element at a time if GETGROUPS_T is wrong size.
27843         * lib/getugroups.h (getugroups): Change signature.
27844         * lib/unistd.in.h (getgroups): Likewise.
27845         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
27846         signature needs fixing.
27847         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
27848         AC_TYPE_GETGROUPS.
27849         * modules/group-member (Depends-on): Add getgroups.
27850         * lib/group-member.c (group_info, get_group_info): Use gid_t.
27851         (group_member): Rely on getgroups replacement.
27852         * lib/getugroups.c (getugroups): Use gid_t.
27853         * tests/test-getgroups.c (main): Likewise.
27854         * NEWS: Mention the signature change.
27855         * doc/posix-functions/getgroups.texi (getgroups): Mention the
27856         problem with signature.
27857         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
27858         GETGROUPS_T is still useful for setgroups.
27859
27860         getgroups, getugroups: provide stubs for mingw
27861         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
27862         * lib/getugroups.c (getugroups): Likewise.
27863         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
27864         function.  Modernize replacement scheme.
27865         (gl_PREREQ_GETGROUPS): Delete.
27866         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
27867         * modules/getgroups (configure.ac): Declare witness.
27868         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
27869         * modules/unistd (Depends-on): Substitute witness.
27870         * lib/unistd.in.h (getgroups): Declare replacement.
27871
27872         getgroups: avoid calling exit
27873         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
27874         drop xalloc.
27875         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
27876         dependencies.
27877         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
27878         exiting, in the rare case of malloc failure.
27879
27880         getgroups: fix logic error
27881         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
27882         has more than 20 groups.
27883         * modules/getgroups-tests: New test.
27884         * tests/test-getgroups.c: New file.
27885
27886 2009-11-13  Simon Josefsson  <simon@josefsson.org>
27887
27888         * tests/test-base64.c: Improve.
27889
27890 2009-11-13  Simon Josefsson  <simon@josefsson.org>
27891
27892         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
27893         Blake <ebb9@byu.net>.
27894
27895 2009-11-13  Simon Josefsson  <simon@josefsson.org>
27896
27897         * tests/test-xvasprintf.c: Add %s%s related checks.
27898
27899 2009-11-12  Eric Blake  <ebb9@byu.net>
27900
27901         version-etc: match standards.texi style
27902         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
27903         and use <> only for URLs.
27904
27905 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
27906
27907         fts: do not fail on a submount during traversal
27908         * lib/fts.c (fts_build): Read the stat info again after opening
27909         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
27910         Original report at http://bugzilla.redhat.com/501848.
27911
27912 2009-11-12  Jim Meyering  <meyering@redhat.com>
27913
27914         bootstrap: sync from coreutils
27915         * build-aux/bootstrap (bootstrap_epilogue): New function.
27916         Use git_modules_config in one more place.  This make bootstrap's
27917         --gnulib-srcdir option more useful for testing.
27918
27919         bootstrap: generalize autoheader check
27920         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
27921         AC_CONFIG_HEADERS.
27922
27923 2009-11-11  Eric Blake  <ebb9@byu.net>
27924
27925         mkfifoat: use new modules for Solaris and BSD bugs
27926         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
27927         * lib/mkfifoat.c (mknodat): Split...
27928         * lib/mknodat.c (mknodat): ...into new file.
27929         * modules/mkfifoat (Files): Ship new file.
27930         (Depends-on): Add mkfifo, mknod.
27931         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
27932         (Depends-on): Add symlink.
27933         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
27934         redundant with test_mkfifo.h.
27935         (do_mkfifoat, do_mknodat): New helpers.
27936
27937         mknod: new module
27938         * modules/mknod: New file.
27939         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
27940         * lib/mknod.c (mknod): Likewise.
27941         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
27942         defaults.
27943         * modules/sys_stat (Makefile.am): Substitute them.
27944         * lib/sys_stat.in.h (mknod): Declare replacement.
27945         * MODULES.html.sh (Support for systems lacking POSIX:2008):
27946         Document it.
27947         * doc/posix-functions/mknod.texi (mknod): Likewise.
27948         * modules/mknod-tests: New test.
27949         * tests/test-mknod.c: Likewise.
27950
27951         mkfifo: new module
27952         * modules/mkfifo: New file.
27953         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
27954         * lib/mkfifo.c (mkfifo): Likewise.
27955         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
27956         defaults.
27957         * modules/sys_stat (Makefile.am): Substitute them.
27958         * lib/sys_stat.in.h (mkfifo): Declare replacement.
27959         * MODULES.html.sh (Support for systems lacking POSIX:2008):
27960         Document it.
27961         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
27962         * modules/mkfifo-tests: New test.
27963         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
27964         from test-mkfifoat.c.
27965         * tests/test-mkfifo.c: New file.
27966
27967         readlink: detect FreeBSD bug
27968         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
27969         slash on symlink.
27970         * doc/posix-functions/readlink.texi (readlink): Document the bug.
27971         * tests/test-readlink.h (test_readlink): Enhance test.
27972
27973         symlink: detect FreeBSD bug
27974         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
27975         slash on symlink.
27976         * doc/posix-functions/symlink.texi (symlink): Document the bug.
27977         * tests/test-symlink.h (test_symlink): Enhance test.
27978
27979 2009-11-10  Eric Blake  <ebb9@byu.net>
27980
27981         link: detect FreeBSD bug
27982         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
27983         symlink.
27984         * doc/posix-functions/link.texi (link): Document the bug.
27985         * tests/test-link.h (test_link): Enhance test.
27986         * tests/test-linkat.c (main): Update caller.
27987
27988         unlink, remove: detect FreeBSD bug
27989         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
27990         slash on symlink.
27991         * doc/posix-functions/unlink.texi (unlink): Document the bug.
27992         * doc/posix-functions/remove.texi (remove): Likewise.
27993         * tests/test-unlink.h (test_unlink): Enhance test.
27994         * tests/test-remove.c (main): Likewise.
27995
27996 2009-11-09  Eric Blake  <ebb9@byu.net>
27997
27998         rename: detect FreeBSD bug
27999         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
28000         slash on symlink.
28001         * modules/renameat-tests (Depends-on): Add filenamecat.
28002         * tests/test-rename.h (test_rename): Allow one more errno.
28003         * tests/test-renameat.c (main): Likewise.
28004         * doc/posix-functions/rename.texi (rename): Document the bug.
28005
28006         open: detect FreeBSD bug
28007         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
28008         symlink.
28009         * doc/posix-functions/open.texi (open): Document the bug.
28010         * doc/posix-functions/utimes.texi (utimes): Likewise.
28011         * tests/test-open.h (test_open): Add parameters, and test symlink
28012         handling.
28013         * tests/test-open.c (main): Adjust caller.
28014         * tests/test-fcntl-safer.c (main): Likewise.
28015         * modules/open-tests (Depends-on): Add stdbool, symlink.
28016         * modules/fcntl-safer-tests (Depends-on): Likewise.
28017         * tests/test-openat.c (main): Add test-open tests.
28018
28019         stat: detect FreeBSD bug
28020         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
28021         symlink.
28022         * doc/posix-functions/stat.texi (stat): Document the bug.
28023         * tests/test-stat.h (test_stat_func): Add argument.
28024         * tests/test-stat.c (main): Adjust caller.
28025         * tests/test-fstatat.c (main): Likewise.
28026         * modules/stat-tests (Depends-on): Add stdbool, symlink.
28027         Reported by Jim Meyering.
28028
28029 2009-11-09  James Youngman  <jay@gnu.org>
28030
28031         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
28032         * lib/strftime.c: Correct placement of #include "ignore-value.h".
28033
28034 2009-11-08  Jim Meyering  <meyering@redhat.com>
28035
28036         utimens: remove invalid futimesat call
28037         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
28038         It used the file descriptor of the target file as the DIR_FD
28039         parameter and NULL as the file name.  That caused failure with
28040         errno == EFAULT on FreeBSD-8.0-rc2
28041
28042 2009-11-07  Eric Blake  <ebb9@byu.net>
28043
28044         fflush, freadseek: use fseeko, not fseek
28045         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
28046         (clear_ungetc_buffer): Avoid potential problems on large files.
28047         * lib/freadseek.c (freadseek): Likewise.
28048         * modules/freadseek (Depends-on): Add fseeko.
28049         * modules/fseek (configure.ac): Set a witness.
28050         * tests/test-fflush.c (main): Use fseeko.
28051         * tests/test-fpurge.c (fseek): Disable link warning.
28052         * tests/test-freadable.c (fseek): Likewise.
28053         * tests/test-freading.c (fseek): Likewise.
28054         * tests/test-fseeko.c (fseek): Likewise.
28055         * tests/test-ftell.c (fseek): Likewise.
28056         * tests/test-ftello.c (fseek): Likewise.
28057         * tests/test-fwritable.c (fseek): Likewise.
28058         * tests/test-fwriting.c (fseek): Likewise.
28059
28060 2009-11-06  Simon Josefsson  <simon@josefsson.org>
28061
28062         * modules/memchr (Depends-on): Drop getpagesize dependency.
28063
28064 2009-11-06  Simon Josefsson  <simon@josefsson.org>
28065
28066         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
28067         Reported by Ludovic Courtès.
28068         * build-aux/pmccabe2html: Improve example usage.
28069         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
28070
28071 2009-11-06  Jim Meyering  <meyering@redhat.com>
28072
28073         do-release-commit-and-tag: New module.
28074         Automate the release-commit and tag process.
28075         * build-aux/do-release-commit-and-tag: New script, from coreutils.
28076         * modules/do-release-commit-and-tag: New file.
28077         * MODULES.html.sh (Support for maintaining and releasing): Add it.
28078
28079 2009-11-06  Simon Josefsson  <simon@josefsson.org>
28080
28081         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
28082         because test-select.c uses inet_pton.
28083
28084 2009-11-06  Simon Josefsson  <simon@josefsson.org>
28085
28086         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
28087         GETADDRINFO_LIB.  Bump serial number.
28088         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
28089         Suggested by Eric Blake <ebb9@byu.net>.
28090
28091 2009-11-05  Eric Blake  <ebb9@byu.net>
28092
28093         strtod: detect darwin bug
28094         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
28095         Reported by Leo Davis.
28096
28097         freopen-safer: new module
28098         * modules/freopen-safer: New module.
28099         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
28100         * lib/freopen-safer.c (freopen_safer): New file.
28101         * lib/stdio-safer.h (freopen_safer): New declaration.
28102         * lib/stdio--.h (freopen): New override.
28103         * MODULES.html.sh (File stream based Input/Output): Mention it.
28104         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
28105         freopen-safer module.
28106         * doc/posix-functions/stderr.texi (stderr): Likewise.
28107         * doc/posix-functions/stdin.texi (stdin): Likewise.
28108         * doc/posix-functions/stdout.texi (stdout): Likewise.
28109         * modules/freopen-safer-tests: New test.
28110         * tests/test-reopen-safer.c: New file.
28111
28112 2009-11-05  Jim Meyering  <meyering@redhat.com>
28113
28114         maint.mk: Prohibit inclusion of "close-stream.h" without use.
28115         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
28116
28117 2009-11-05  Simon Josefsson  <simon@josefsson.org>
28118
28119         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
28120
28121 2009-11-05  Simon Josefsson  <simon@josefsson.org>
28122
28123         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
28124
28125 2009-11-05  Simon Josefsson  <simon@josefsson.org>
28126
28127         Fix link error.
28128         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
28129         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
28130
28131 2009-11-05  Simon Josefsson  <simon@josefsson.org>
28132
28133         * tests/test-func.c: Also test value of __func__.
28134
28135 2009-11-05  Simon Josefsson  <simon@josefsson.org>
28136
28137         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
28138         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
28139
28140 2009-11-05  Bruno Haible  <bruno@clisp.org>
28141
28142         Fix link error.
28143         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
28144         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
28145         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
28146
28147 2009-11-05  Bruno Haible  <bruno@clisp.org>
28148
28149         Tests for module 'inet_pton'.
28150         * modules/inet_pton-tests: New file.
28151         * tests/test-inet_pton.c: New file.
28152
28153 2009-11-05  Bruno Haible  <bruno@clisp.org>
28154
28155         Tests for module 'inet_ntop'.
28156         * modules/inet_ntop-tests: New file.
28157         * tests/test-inet_ntop.c: New file.
28158
28159 2009-11-04  Eric Blake  <ebb9@byu.net>
28160
28161         stdlib-safer: wrap all mkstemp variants
28162         * modules/mkostemp (configure.ac): Set witness.
28163         * modules/mkostemps (configure.ac): Likewise.
28164         * modules/mkstemps (configure.ac): Likewise.
28165         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
28166         (mkstemps_safer): Wrap more functions.
28167         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
28168         wrapping.
28169         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
28170         (mkstemps_safer): Implement the wrappers.
28171
28172         mkstemps, mkostemps: new modules
28173         * modules/mkostemps: New module.
28174         * modules/mkstemps: Likewise.
28175         * lib/mkostemps.c (mkostemps): New file.
28176         * lib/mkstemps.c (mkstemps): Likewise.
28177         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
28178         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
28179         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
28180         * modules/stdlib (Makefile.am): Substitute them.
28181         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
28182         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
28183         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
28184         * doc/gnulib.texi (Glibc stdlib.h): Include them.
28185         * MODULES.html.sh (File system functions): Mention them.
28186
28187         tempname: resync from glibc
28188         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
28189         same values for __GT_FILE as glibc.  Abort even when assertions
28190         are disabled.
28191         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
28192         match its value otherwise.  Allow idempotent inclusion.
28193         * lib/mkdtemp.c (mkdtemp): Adjust caller.
28194         * lib/mkostemp.c (mkostemp): Likewise.
28195         * lib/mkstemp.c (mkstemp): Likewise.
28196         * lib/tmpfile.c (tmpfile): Likewise.
28197         * NEWS: Document this.
28198
28199         utimens: fix use of futimens on older Linux
28200         * lib/utimens.c (fdutimens): Use updated, rather than original,
28201         timespec to avoid bug in older Linux kernel.
28202         Reported by Simon Josefsson.
28203
28204 2009-11-04  Bruno Haible  <bruno@clisp.org>
28205
28206         Make num_processors more flexible and consistent.
28207         * lib/nproc.h (enum nproc_query): New type.
28208         (num_processors): Add a 'query' argument.
28209         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
28210         (num_processors): Add a 'query' argument. Test the value of the
28211         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
28212         mingw, count the number of CPUs available for the current process.
28213         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
28214         Check for sched_getaffinity and sched_getaffinity_np.
28215         * modules/nproc (Depends-on): Add c-ctype, extensions.
28216         * NEWS: Mention the change.
28217
28218 2009-11-03  Bruno Haible  <bruno@clisp.org>
28219
28220         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
28221
28222 2009-11-03  Jim Meyering  <meyering@redhat.com>
28223
28224         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
28225         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
28226         if it is defined.
28227
28228 2009-11-02  Eric Blake  <ebb9@byu.net>
28229
28230         mktime, timegm: share common declaration
28231         * lib/mktime-internal.h: New file.
28232         * lib/mktime.c: Use it rather than open-coding a declaration.
28233         * lib/timegm.c: Likewise.
28234         * modules/mktime (Files): Ship it.
28235         * modules/timegm (Files): Likewise.
28236         Suggested by Bruno Haible.
28237
28238         test-update-copyright: update test to match script changes
28239         * tests/test-update-copyright.sh: Avoid hard-coding perl
28240         location.  Don't update *.bak created by earlier runs.
28241
28242 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
28243             Simon Josefsson  <simon@josefsson.org>
28244             Bruno Haible  <bruno@clisp.org>
28245
28246         Fix link error on Solaris 8.
28247         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
28248         also in libnsl. Define also INET_PTON_LIB.
28249         * modules/inet_pton (Link): New section.
28250
28251 2009-11-02  Simon Josefsson  <simon@josefsson.org>
28252             Bruno Haible  <bruno@clisp.org>
28253
28254         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
28255         * modules/inet_ntop (Link): New section.
28256         Reported by Boyan Kasarov <bkasarov@gmail.com>.
28257
28258 2009-11-02  Eric Blake  <ebb9@byu.net>
28259
28260         maint: avoid compiler warnings in m4 macros
28261         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
28262         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
28263
28264 2009-11-02  Simon Josefsson  <simon@josefsson.org>
28265
28266         * m4/pmccabe2html.m4: Remove file.
28267         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
28268         function.  Change maintainer.
28269         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
28270         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
28271         Courtès).
28272
28273 2009-10-31  Eric Blake  <ebb9@byu.net>
28274
28275         fseeko: fix m4 regression
28276         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
28277         regression from 2009-10-27.
28278         Reported by Ralf Wildenhues.
28279
28280 2009-10-31  Jim Meyering  <meyering@redhat.com>
28281
28282         inttostr: aesthetics and improved (compile-time) safety
28283         Define inttype_is_signed rather than inttype_is_unsigned,
28284         since the sole use is via "#if inttype_is_signed".
28285         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
28286         inttype_is_unsigned.
28287         * lib/offtostr.c (inttype_is_signed): Likewise.
28288         * lib/uinttostr.c (inttype_is_signed): Likewise.
28289         * lib/umaxtostr.c (inttype_is_signed): Likewise.
28290         * lib/inttostr.c (inttostr): Use verify to cross-check the
28291         inttype_is_signed value and the signedness of the actual type.
28292         * modules/inttostr (Depends-on): Add verify.
28293
28294 2009-10-30  Eric Blake  <ebb9@byu.net>
28295
28296         build: avoid compiler warnings
28297         * lib/fchmodat.c (lchmod): Mark unused variables.
28298         * lib/getopt.c (_getopt_initialize): Likewise.
28299         * lib/mktime.c (__mktime_internal): Provide prototype.
28300         * lib/inttostr.c (inttostr): Avoid compiler warning even with
28301         older gcc that do not understand #pragma GCC diagnostic.
28302         * lib/uinttostr.c (inttype_is_unsigned): Define.
28303         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
28304
28305 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
28306
28307         stat: fix compilation on AIX
28308         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
28309         only see struct stat64.
28310
28311 2009-10-30  Eric Blake  <ebb9@byu.net>
28312
28313         exclude: make more robust
28314         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
28315         rather than masking a coding bug.
28316         Suggested by Bruno Haible.
28317
28318 2009-10-30  Jim Meyering  <meyering@redhat.com>
28319
28320         perl scripts: remove #!/usr/bin/perl in favor of more portable...
28321         Rather than putting #!/usr/bin/perl on the first line,
28322         start with a variant of what's recommended by "man perlrun" that
28323         invokes the first "perl" program from your shell's search path.
28324         * build-aux/gitlog-to-changelog: Replace #!... as above.
28325         Add a "Local Variables" perl mode setting.
28326         Prompted by a patch from Ludovic Courtès.
28327         Improved by Eric Blake.
28328         * build-aux/useless-if-before-free: Likewise.
28329         * build-aux/announce-gen: Likewise.
28330         * build-aux/update-copyright: Likewise.
28331
28332 2009-10-29  Eric Blake  <ebb9@byu.net>
28333
28334         filenamecat-lgpl: adjust clients
28335         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
28336         filenamecat.
28337         * modules/renameat (Depends-on): Likewise.
28338
28339         filenamecat: split into filenamecat-lgpl
28340         * modules/filenamecat-lgpl: New module.
28341         * modules/filenamecat (Files): Move library-safe files into
28342         filenamecat-lgpl.
28343         (Depends-on): Add filenamecat-lgpl.
28344         (configure.ac): Declare witness.
28345         * lib/filenamecat.h (file_name_concat): Only declare when using
28346         GPL module.
28347         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
28348         Move...
28349         * lib/filenamecat-lgpl.c: ...into new file.
28350         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
28351         (gl_FILE_NAME_CONCAT): Use it.
28352         * MODULES.html.sh (File system functions): Mention new module.
28353
28354         argp: avoid memory leak
28355         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
28356         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
28357         base_name, since the latter malloc()s and can call exit().
28358         Leak introduced 2006-07-03.
28359
28360         dirname-lgpl: adjust clients that don't need full dirname
28361         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
28362         * modules/filenamecat (Depends-on): Likewise.
28363         * modules/linkat (Depends-on): Likewise.
28364         * modules/mkancesdirs (Depends-on): Likewise.
28365         * modules/mkdir (Depends-on): Likewise.
28366         * modules/openat (Depends-on): Likewise.
28367         * modules/savewd (Depends-on): Likewise.
28368         * modules/rename (Depends-on): Likewise.
28369         (License): Relax license.
28370         * modules/mkdir-tests (Depends-on): Drop progname.
28371         (Makefile.am): Delete unneeded LDADD.
28372         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
28373
28374         dirname: split into dirname-lgpl
28375         * modules/dirname-lgpl: New module.
28376         * modules/dirname (Files): Move library-safe files into
28377         dirname-lgpl.
28378         (Depends-on): Add dirname-lgpl.
28379         (configure.ac): Declare witness.
28380         * modules/double-slash-root (License): Relax license.
28381         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
28382         module.
28383         * lib/dirname.c (dir_len, mdir_name): Move...
28384         * lib/dirname-lgpl.c: ...into new file.
28385         * lib/basename.c (last_component, base_len): Move...
28386         * lib/basename-lgpl.c: ...into new file.
28387         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
28388         (gl_DIRNAME): Use it.
28389         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
28390         Mention new module.
28391         * modules/dirname-tests (Depends-on): Add progname.
28392         * tests/test-dirname.c (program_name): Delete.
28393
28394         mkdir: make safe for libraries
28395         * modules/mkdir (Depends-on): Drop xalloc.
28396         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
28397         exit.
28398
28399         tests: avoid some compiler warnings
28400         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
28401         literals.
28402         * tests/test-memchr.c (main): Avoid type mismatch.
28403         * tests/test-arpa_inet.c (main): Avoid unused parameters.
28404         * tests/test-base64.c (main): Likewise.
28405         * tests/test-getdelim.c (main): Likewise.
28406         * tests/test-gethostname.c (main): Likewise.
28407         * tests/test-getline.c (main): Likewise.
28408         * tests/test-netinet_in.c (main): Likewise.
28409         * tests/test-select.c (open_server_socket, main): Likewise.
28410         * tests/test-select-stdin.c (main): Likewise.
28411         * tests/test-sockets.c (main): Likewise.
28412         * tests/test-strsignal.c (main): Likewise.
28413         * tests/test-sys_select.c (main): Likewise.
28414         * tests/test-sys_socket.c (main): Likewise.
28415         * tests/test-u64.c (main): Likewise.
28416         * tests/test-xfprintf-posix.c (main): Likewise.
28417         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
28418
28419         sockets: avoid compiler warning
28420         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
28421
28422         maint: detect usage(1) and other suspicious exits
28423         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
28424
28425 2009-10-29  Jim Meyering  <meyering@redhat.com>
28426
28427         timespec: long-to-int truncation could make timespec_cmp malfunction
28428         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
28429         a multiple of 2^32 nanoseconds as no difference.
28430
28431 2009-10-28  Jim Meyering  <meyering@redhat.com>
28432
28433         fprintftime: wrap macro code argument in "do {...} while(0)"
28434         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
28435         cpy macro must be a statement that can be followed by a semicolon.
28436         Now that the else clause contains a comment and is hence longer
28437         than one line, I require curly braces.  That in turn requires
28438         that we wrap this code block in the standard do...while(0).
28439
28440         fprintftime: remove stray semicolon from previous change
28441         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
28442
28443         fprintftime: avoid a warning about ignored fwrite return value
28444         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
28445         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
28446         that is unsafe.
28447         * modules/fprintftime (Depends-on): Add ignore-value.
28448
28449         exclude: avoid an unwarranted warning
28450         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
28451
28452 2009-10-27  Eric Blake  <ebb9@byu.net>
28453
28454         fseek: avoid compilation failure when fflush is replaced
28455         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
28456         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
28457         module is in use.
28458         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
28459         module is not in use; since REPLACE_FSEEK worked otherwise.
28460         (GNULIB_FTELLO): Likewise for ftell.
28461         Reported by Ian Beckwith and others.
28462
28463 2009-10-27  Bruno Haible  <bruno@clisp.org>
28464
28465         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
28466         Reported by Jim Meyering.
28467
28468 2009-10-27  Jim Meyering  <jim@meyering.net>
28469             Bruno Haible  <bruno@clisp.org>
28470
28471         Avoid warning despite dropping the return value of fwrite.
28472         * lib/unicodeio.c: Include ignore-value.h.
28473         (fwrite_success_callback): Explicitly ignore fwrite's return value.
28474         * modules/unicodeio (Depends-on): Add ignore-value.
28475
28476 2009-10-26  Eric Blake  <ebb9@byu.net>
28477
28478         areadlinkat: fix fallback path
28479         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
28480         pointer and zero.
28481
28482 2009-10-22  Pádraig Brady  <P@draigBrady.com>
28483
28484         Use a better IO block size for modern systems
28485         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
28486         * lib/md2.c: Likewise.
28487         * lib/md4.c: Likewise.
28488         * lib/md5.c: Likewise.
28489         * lib/sha1.c: Likewise.
28490         * lib/sha256.c: Likewise.
28491         * lib/sha512.c: Likewise.
28492
28493 2009-10-22  Eric Blake  <ebb9@byu.net>
28494
28495         tests: avoid several compiler warnings
28496         * tests/test-getcwd.c (main): Avoid buffer underflow.
28497         * tests/test-getdate.c (main): String literals are not safe with
28498         putenv, so use setenv.  Declare unused argument.
28499         * modules/getdate-tests (Depends-on): Add setenv.
28500         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
28501         problems with string literals in char *.
28502         * tests/test-hash.c (main): Avoid shadowing declaration.
28503         (insert_new): Treat string literals as char const *.
28504         * tests/test-getopt.h (test_getopt): Likewise.
28505         (getopt_loop): Alter types to minimize casting elsewhere.
28506         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
28507         (test_getopt_long_posix): Likewise.
28508         (do_getopt_long): Add wrapper to minimize casting.
28509         * tests/test-atexit.c (clear_temp_file): Use void.
28510         * tests/test-areadlink-with-size.c (main): Declare unused
28511         arguments.
28512         * tests/test-areadlink.c (main): Likewise.
28513         * tests/test-areadlinkat-with-size.c (main): Likewise.
28514         * tests/test-areadlinkat.c (main): Likewise.
28515         * tests/test-canonicalize-lgpl.c (main): Likewise.
28516         * tests/test-canonicalize.c (main): Likewise.
28517         * tests/test-dirent-safer.c (main): Likewise.
28518         * tests/test-dirname.c (main): Likewise.
28519         * tests/test-dup2.c (main): Likewise.
28520         * tests/test-fchdir.c (main): Likewise.
28521         * tests/test-fcntl-h.c (main): Likewise.
28522         * tests/test-fcntl-safer.c (main): Likewise.
28523         * tests/test-fdopendir.c (main): Likewise.
28524         * tests/test-fdutimensat.c (main): Likewise.
28525         * tests/test-fflush.c (main): Likewise.
28526         * tests/test-filenamecat.c (main): Likewise.
28527         * tests/test-filevercmp.c (main): Likewise.
28528         * tests/test-fopen-safer.c (main): Likewise.
28529         * tests/test-fopen.c (main): Likewise.
28530         * tests/test-fpending.c (main): Likewise.
28531         * tests/test-fpurge.c (main): Likewise.
28532         * tests/test-freading.c (main): Likewise.
28533         * tests/test-fstatat.c (main): Likewise.
28534         * tests/test-fsync.c (main): Likewise.
28535         * tests/test-futimens.c (main): Likewise.
28536         * tests/test-getndelim2.c (main): Likewise.
28537         * tests/test-gettimeofday.c (main): Likewise.
28538         * tests/test-getopt.c (main): Likewise.
28539         * tests/test-i-ring.c (main): Likewise.
28540         * tests/test-inttypes.c (main): Likewise.
28541         * tests/test-link.c (main): Likewise.
28542         * tests/test-lstat.c (main): Likewise.
28543         * tests/test-math.c (main): Likewise.
28544         * tests/test-md5.c (main): Likewise.
28545         * tests/test-memchr2.c (main): Likewise.
28546         * tests/test-memrchr.c (main): Likewise.
28547         * tests/test-mkdir.c (main): Likewise.
28548         * tests/test-mkdirat.c (main): Likewise.
28549         * tests/test-mkfifoat.c (main): Likewise.
28550         * tests/test-open.c (main): Likewise.
28551         * tests/test-openat-safer.c (main): Likewise.
28552         * tests/test-openat.c (main): Likewise.
28553         * tests/test-quotearg.c (main): Likewise.
28554         * tests/test-rawmemchr.c (main): Likewise.
28555         * tests/test-readlink.c (main): Likewise.
28556         * tests/test-remove.c (main): Likewise.
28557         * tests/test-rename.c (main): Likewise.
28558         * tests/test-renameat.c (main): Likewise.
28559         * tests/test-rmdir.c (main): Likewise.
28560         * tests/test-sha1.c (main): Likewise.
28561         * tests/test-signal.c (main): Likewise.
28562         * tests/test-sigaction.c (main): Likewise.
28563         * tests/test-stat.c (main): Likewise.
28564         * tests/test-stat-time.c (main): Likewise.
28565         * tests/test-stddef.c (main): Likewise.
28566         * tests/test-stdint.c (main): Likewise.
28567         * tests/test-stdio.c (main): Likewise.
28568         * tests/test-stdlib.c (main): Likewise.
28569         * tests/test-strchrnul.c (main): Likewise.
28570         * tests/test-strerror.c (main): Likewise.
28571         * tests/test-string.c (main): Likewise.
28572         * tests/test-strtod.c (main): Likewise.
28573         * tests/test-strverscmp.c (main): Likewise.
28574         * tests/test-symlink.c (main): Likewise.
28575         * tests/test-symlinkat.c (main): Likewise.
28576         * tests/test-sys_stat.c (main): Likewise.
28577         * tests/test-sys_time.c (main): Likewise.
28578         * tests/test-time.c (main): Likewise.
28579         * tests/test-unistd.c (main): Likewise.
28580         * tests/test-unlink.c (main): Likewise.
28581         * tests/test-unlinkat.c (main): Likewise.
28582         * tests/test-utimens.c (main): Likewise.
28583         * tests/test-utimensat.c (main): Likewise.
28584         * tests/test-version-etc.c (main): Likewise.
28585         * tests/test-wchar.c (main): Likewise.
28586         * tests/test-wctype.c (main): Likewise.
28587         * tests/test-xprintf-posix.c (main): Likewise.
28588         * tests/test-posixtm.c (main): Likewise.
28589         (STREQ): Delete unused macro.
28590         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
28591         shadowed variables.
28592         * tests/test-memchr.c (main): Likewise.
28593
28594 2009-10-21  Eric Blake  <ebb9@byu.net>
28595
28596         areadlinkat: avoid failure on older glibc
28597         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
28598         rather than mis-comparing 0 against FUNC_RESULT of char*.
28599
28600 2009-10-21  Bruno Haible  <bruno@clisp.org>
28601
28602         * modules/stpncpy (License): Relicense under LGPLv2+.
28603         Reported by David Lutterkort <lutter@redhat.com>.
28604
28605 2009-10-20  Eric Blake  <ebb9@byu.net>
28606
28607         utimensat: work around Solaris 9 bug
28608         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
28609         has trailing slash bugs.
28610         * tests/test-lutimens.h (test_lutimens): Enhance test.
28611         * tests/test-utimens.h (test_utimens): Likewise.
28612         * doc/posix-functions/utime.texi (utime): Enhance documentation.
28613         * doc/posix-functions/utimes.texi (utimes): Likewise.
28614         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
28615         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
28616         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
28617         * doc/posix-functions/futimens.texi (futimens): Likewise.
28618
28619         fdutimensat: new module
28620         * modules/fdutimensat: New file.
28621         * lib/fdutimensat.c (fdutimensat): Likewise.
28622         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
28623         * MODULES.html.sh (File system functions): Mention module.
28624         * modules/fdutimensat-tests: New test.
28625         * tests/test-fdutimensat.c: Likewise.
28626
28627         doc: regenerate INSTALL
28628         * doc/INSTALL: Reflect recent autoconf update.
28629         * doc/INSTALL.ISO: Likewise.
28630         * doc/INSTALL.UTF-8: Likewise.
28631
28632 2009-10-20  Pádraig Brady  <P@draigBrady.com>
28633
28634         acl: warn if ACL support is not detected
28635         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
28636
28637 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
28638
28639         * lib/nproc.h: Add extern "C" block for C++.
28640
28641 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
28642             Bruno Haible  <bruno@clisp.org>
28643
28644         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
28645         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
28646         * doc/posix-functions/isalpha.texi: Likewise.
28647         * doc/posix-functions/isblank.texi: Likewise.
28648         * doc/posix-functions/iscntrl.texi: Likewise.
28649         * doc/posix-functions/isdigit.texi: Likewise.
28650         * doc/posix-functions/isgraph.texi: Likewise.
28651         * doc/posix-functions/islower.texi: Likewise.
28652         * doc/posix-functions/isprint.texi: Likewise.
28653         * doc/posix-functions/ispunct.texi: Likewise.
28654         * doc/posix-functions/isspace.texi: Likewise.
28655         * doc/posix-functions/isupper.texi: Likewise.
28656         * doc/posix-functions/isxdigit.texi: Likewise.
28657
28658 2009-10-18  Bruno Haible  <bruno@clisp.org>
28659
28660         Tests for module 'isblank'.
28661         * modules/isblank-tests: New file.
28662         * tests/test-isblank.c: New file.
28663
28664         New module 'isblank'.
28665         * lib/isblank.c: New file.
28666         * m4/isblank.m4: New file.
28667         * modules/isblank: New file.
28668         * doc/posix-functions/isblank.texi: Mention the new module.
28669
28670 2009-10-18  Bruno Haible  <bruno@clisp.org>
28671
28672         New module 'ctype'.
28673         * lib/ctype.in.h: New file.
28674         * m4/ctype.m4: New file.
28675         * modules/ctype: New file.
28676         * doc/posix-headers/ctype.texi: Mention the new module.
28677
28678 2009-10-18  Jim Meyering  <meyering@redhat.com>
28679
28680         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
28681         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
28682         right after its initialization, rather than farther down.
28683         Keeping these in close proximity makes it easier to ensure
28684         that each such variable is initialized.  E.g.,
28685
28686             LIB_CLOCK_GETTIME=
28687             AC_SUBST([LIB_CLOCK_GETTIME])
28688
28689         This change also increments these serial numbers.
28690         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
28691         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
28692         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
28693
28694 2009-10-18  Bruno Haible  <bruno@clisp.org>
28695
28696         Don't let environment variables perturb build.
28697         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
28698         (gl_PREREQ_GETHRXTIME): ... not here.
28699
28700 2009-10-18  Bruno Haible  <bruno@clisp.org>
28701
28702         Avoid symlink attack in localcharset module.
28703         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
28704         (O_NOFOLLOW): Define fallback.
28705         (get_charset_aliases): Don't open the file if it is a symbolic link.
28706         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
28707         gl_FCNTL_H.
28708         (gl_FCNTL_H): Require it.
28709         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
28710         * modules/localcharset (Files): Add m4/fcntl_h.m4.
28711         Reported by Fergal Glynn <fglynn@veracode.com>.
28712
28713 2009-10-18  Bruno Haible  <bruno@clisp.org>
28714
28715         Implement nproc for mingw.
28716         * lib/nproc.c: Include <windows.h>
28717         (num_processors): On native Windows platforms, try GetSystemInfo.
28718
28719 2009-10-18  Bruno Haible  <bruno@clisp.org>
28720
28721         Implement nproc for IRIX.
28722         * lib/nproc.c: Include <sys/sysmp.h>.
28723         (num_processors): On IRIX systems, try sysmp.
28724         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
28725
28726 2009-10-18  Bruno Haible  <bruno@clisp.org>
28727
28728         Implement nproc for HP-UX.
28729         * lib/nproc.c: Include <sys/pstat.h>
28730         (num_processors): On HP-UX systems, try pstat_getdynamic.
28731         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
28732         pstat_getdynamic.
28733
28734 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
28735             Bruno Haible  <bruno@clisp.org>
28736
28737         Implement nproc for NetBSD, OpenBSD.
28738         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
28739         (ARRAY_SIZE): New macro.
28740         (num_processors): On BSD systems, try sysctl of HW_NCPU.
28741         * m4/nproc.m4: New file.
28742         * modules/nproc (Files): Add m4/nproc.m4.
28743         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
28744         (Makefile.am): Instead, augment lib_SOURCES.
28745
28746 2009-10-18  Bruno Haible  <bruno@clisp.org>
28747
28748         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
28749         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
28750         sys/param.h.
28751
28752 2009-10-16  Eric Blake  <ebb9@byu.net>
28753
28754         utimensat: new module
28755         * modules/utimensat: New file.
28756         * lib/utimensat.c (utimensat): Likewise.
28757         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
28758         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
28759         so we can work around Linux bugs.
28760         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
28761         * modules/sys_stat (Makefile.am): Substitute them.
28762         * lib/sys_stat.in.h (utimensat): Declare it.
28763         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
28764         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
28765         * modules/utimensat-tests: New test.
28766         * tests/test-utimensat.c: Likewise.
28767
28768         utimens: let lutimens work on non-symlinks
28769         * lib/utimens.c (lutimens): Fall back to utimens rather than
28770         failing with ENOSYS, when file is not a symlink.
28771         (utimens): Reduce redirection.
28772         * tests/test-lutimens.h (test_lutimens): Update test to cover
28773         non-symlinks.
28774         * tests/test-utimens.h (test_utimens): Update test to cover
28775         symlinks.
28776         * tests/test-utimens.c (main): Update caller.
28777
28778         utimens: cache whether utimensat syscall works
28779         * lib/utimens.c (utimensat_works_really): New cache variable.
28780         (fdutimens, lutimens): Use it to avoid failing syscall.
28781
28782         test-stat-time, test-utimens: improve portability
28783         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
28784         ext4 on alpha, and for cygwin.
28785         * tests/test-utimens-common.h: New file.
28786         (nap): Factor delays into single function.
28787         * tests/test-lutimens.h (test_lutimens): Use new header.
28788         * tests/test-futimens.h (test_futimens): Likewise.
28789         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
28790         timestamps to occur from same machine, as was done previously for
28791         test_utimens.
28792         * modules/utimens-tests (Files): Ship new file.
28793         * modules/futimens-tests (Files): Likewise.
28794         Reported in part by Jim Meyering.
28795
28796         sys_stat: sort replacement declarations
28797         * lib/sys_stat.in.h: Sort declarations.
28798         * lib/futimens.c (futimens): Fix typo.
28799
28800 2009-10-15  Jim Meyering  <meyering@redhat.com>
28801
28802         don't let environment settings perturb build
28803         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
28804         could cause a configure-time and/or build-time malfunction.
28805         Typically, a configure-time function-in-library test is performed
28806         via code like this:
28807
28808           LIB_VAR=
28809           AC_SUBST([LIB_VAR])
28810           prefix_saved_LIBS=$LIBS
28811             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
28812                        [test "$ac_cv_search_FUNC" = "none required" ||
28813                         LIB_VAR=$ac_cv_search_FUNC])
28814           LIBS=$prefix_saved_LIBS
28815
28816         However, in each of the files affected by this change, the LIB_VAR=
28817         initialization was omitted.  Thus, when set in the environment, its
28818         value would propagate into generated Makefiles when FUNC is not found
28819         in LIB_NAME.
28820         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
28821         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
28822         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
28823
28824 2009-10-14  Eric Blake  <ebb9@byu.net>
28825
28826         fchdir: avoid infinite recursion in mingw
28827         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
28828         recursing.
28829
28830         test-stat-time: port to mingw
28831         * tests/test-stat-time.c (force_unlink): Return a value.
28832         (test_ctime) [W32]: Fix compilation error.
28833         (nap): Don't call usleep with too large an argument.  Use
28834         force_unlink.
28835         * doc/pastposix-functions/usleep.texi (usleep): Document the
28836         portability issue.
28837
28838 2009-10-13  Jim Meyering  <meyering@redhat.com>
28839
28840         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
28841         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
28842         * modules/pipe-filter-ii: Likewise.
28843         * modules/sys_socket-tests: Likewise.
28844         * modules/tsearch-tests: Likewise.
28845         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
28846         (check): Depend on it.
28847
28848 2009-10-12  Eric Blake  <ebb9@byu.net>
28849
28850         utimens-tests: port to NFS file systems
28851         * tests/test-utimens.h (test_utimens): Refactor utimecmp
28852         comparisons to avoid spurious failures from timestamp drift
28853         between NFS machines.
28854
28855 2009-10-12  Eric Blake  <ebb9@byu.net>
28856
28857         stat-time-tests: minor cleanups
28858         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
28859         * tests/test-stat-time.c (nap): Separate assignment from call.
28860         Suggested by Paolo Bonzini and Bruno Haible.
28861
28862         sys_stat: guarantee struct timespec
28863         * lib/sys_stat.in.h (includes): Always include <time.h>
28864         * modules/sys_stat (Depends-on): Add time.
28865         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
28866         mode_t permission values.
28867         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
28868         get at subsecond timestamps.
28869
28870 2009-10-10  Eric Blake  <ebb9@byu.net>
28871
28872         futimens: new module
28873         * modules/futimens: New file.
28874         * lib/futimens.c (futimens): Likewise.
28875         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
28876         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
28877         we can work around Linux bugs.
28878         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
28879         * modules/sys_stat (Makefile.am): Substitute them.
28880         * lib/sys_stat.in.h (futimens): Declare it.
28881         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
28882         * doc/posix-functions/futimens.texi (futimens): Likewise.
28883         * modules/futimens-tests: New test.
28884         * tests/test-futimens.c: Likewise.
28885
28886         utimens: introduce fdutimens
28887         * lib/utimens.h (fdutimens): New prototype.
28888         * lib/utimens.c (gl_futimens): Move guts...
28889         (fdutimens): ...to new interface.
28890         * tests/test-utimens.c (do_fdutimens): Use it.
28891
28892         utimens: add UTIME_NOW and UTIME_OMIT support
28893         * lib/utimens.c (validate_timespec, update_timespec): New helper
28894         functions.
28895         (gl_futimens, lutimens): Use them.
28896         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
28897         stdbool, sys_stat.
28898         (Link): Mention resulting library dependency.
28899         * modules/utimecmp (Link): Likewise.
28900         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
28901         (Makefile.am): Pick up library dependency.
28902         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
28903         definition.
28904         * tests/test-sys_stat.c: Test the definitions.
28905         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
28906         * NEWS: Document library dependency.
28907
28908         utimecmp: support symlink timestamps
28909         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
28910         hashing when possible.  Use pathconf when available.
28911         (SYSCALL_RESOLUTION): Recognize tighter resolution.
28912         * modules/utimecmp (Depends-on): Add lstat.
28913
28914         utimens: add lutimens interface
28915         * lib/utimens.c (lutimens): New function.
28916         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
28917         * lib/utimens.h (lutimens): Declare new interface.
28918         * tests/test-utimens.c (main): Enhance test.
28919         * tests/test-lutimens.h (test_lutimens): New file.
28920         * modules/utimens-tests (Files): Distribute it.
28921         (Depends-on): Add symlink.
28922         (configure.ac): Check for usleep.
28923
28924         utimens: validate futimens usage
28925         * lib/utimens.c (gl_futimens): Require valid fd up front, using
28926         fewer syscalls on failure later on.  Avoid compiler warning on
28927         mingw.
28928         * modules/utimens (Depends-on): Add dup2.
28929
28930         utimens: add test
28931         * modules/utimens-tests: New test.
28932         * tests/test-utimens.h: New file.
28933         * tests/test-futimens.h: Likewise.
28934         * tests/test-utimens.c: Likewise.
28935
28936         doc: mention timestamp portability issues
28937         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
28938         instead.
28939         * doc/posix-functions/utime.texi (utime): Likewise.
28940         * doc/posix-functions/utimes.texi (utimes): Likewise.
28941         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
28942         instead.
28943         * doc/posix-functions/futimens.texi (futimens): Mention utimens
28944         module.
28945         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
28946         Mention weakness with symlink timestamps.
28947         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
28948         to utimensat/futimens instead.
28949         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
28950
28951         test-dup2: enhance test
28952         * tests/test-dup2.c (main): Also check AT_FDCWD.
28953
28954         test-stat-time: avoid more spurious failures
28955         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
28956         xfs; and avoid race if the two timestamps cross quantization edge.
28957
28958         relocatable: prefer 'file system' over 'filesystem'
28959         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
28960         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
28961         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
28962         * doc/relocatable.texi (Enabling Relocatability): Likewise.
28963         * lib/relocatable.c (compute_curr_prefix): Likewise.
28964
28965 2009-10-10  Jim Meyering  <meyering@redhat.com>
28966
28967         stat-time-tests: check for the usleep function
28968         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
28969
28970 2009-10-10  Bruno Haible  <bruno@clisp.org>
28971
28972         * modules/xnanosleep: Put the Link section after the Include section.
28973
28974 2009-10-09  Eric Blake  <ebb9@byu.net>
28975
28976         dup2: work around FreeBSD 6.1 bug
28977         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
28978         * doc/posix-functions/dup2.texi (dup2): Document it.
28979         Reported by Nelson H. F. Beebe and Jim Meyering.
28980
28981         test-stat-time: port to buggy NFS clients
28982         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
28983         (test_ctime): Also skip test if mtime and ctime are skewed.
28984
28985         maint: prefer 'file system' over 'filesystem'
28986         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
28987         * doc/posix-functions/lstat.texi (lstat): Likewise.
28988         * lib/file-has-acl.c (file_has_acl): Likewise.
28989         * lib/fwriteerror.c [TEST]: Likewise.
28990         * tests/test-areadlink.h (test_areadlink): Likewise.
28991         * tests/test-areadlinkat-with-size.c (main): Likewise.
28992         * tests/test-areadlinkat.c (main): Likewise.
28993         * tests/test-canonicalize-lgpl.c (main): Likewise.
28994         * tests/test-canonicalize.c (main): Likewise.
28995         * tests/test-fstatat.c (main): Likewise.
28996         * tests/test-linkat.c (main): Likewise.
28997         * tests/test-lstat.h (test_lstat_func): Likewise.
28998         * tests/test-mkdir.h (test_mkdir): Likewise.
28999         * tests/test-readlink.h (test_readlink): Likewise.
29000         * tests/test-remove.c (main): Likewise.
29001         * tests/test-rename.h (test_rename): Likewise.
29002         * tests/test-renameat.c (main): Likewise.
29003         * tests/test-rmdir.h (test_rmdir_func): Likewise.
29004         * tests/test-symlink.h (test_symlink): Likewise.
29005         * tests/test-symlinkat.c (main): Likewise.
29006         * tests/test-unlink.h (test_unlink_func): Likewise.
29007         * tests/test-unlinkat.c (main): Likewise.
29008
29009         maint: make realtime library usage explicit
29010         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
29011         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
29012         * modules/settime (Link): Likewise.
29013         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
29014
29015         test-stat-time: speed up execution
29016         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
29017         warning on mingw.
29018         (nap): New helper function.
29019         (prepare_test): Use it to reduce sleep time.
29020         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
29021         execution.
29022         * modules/stat-time-tests (configure.ac): Check for usleep.
29023
29024 2009-10-09  Jim Meyering  <meyering@redhat.com>
29025
29026         selinux-h: always use getfilecon wrappers
29027         * lib/getfilecon.c: New file.
29028         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
29029         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
29030         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
29031         (fgetfilecon): Provide a stub.
29032         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
29033         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
29034         file unconditionally.
29035         When <selinux/selinux.h> is found, arrange to use wrappers.
29036         * modules/selinux-h (Files): Add getfilecon.c.
29037         (Makefile.am): Substitute include-next-related bits
29038         into the now-always-generated selinux/selinux.h file.
29039         * doc/glibc-functions/lgetfilecon.texi: New file.
29040         * doc/glibc-functions/fgetfilecon.texi: New file.
29041         * doc/glibc-functions/getfilecon.texi: New file.
29042         * doc/glibc-functions/getfilecon-desc.texi: New file.
29043         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
29044         which to pull in the new files.
29045         * MODULES.html.sh (Misc): Add selinux-h.
29046
29047 2009-10-08  Jim Meyering  <meyering@redhat.com>
29048
29049         unistd: fix comment typo
29050         * lib/unistd.in.h (euidaccess): Fix a comment typo.
29051
29052 2009-10-08  Eric Blake  <ebb9@byu.net>
29053
29054         areadlink: use SIZE_MAX consistently
29055         * modules/areadlink (Depends-on): Add stdint.
29056         * modules/areadlink-with-size (Depends-on): Likewise.
29057         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
29058         gives NULL; drop sys/types, since unistd gives size_t; and add
29059         stdint for SIZE_MAX.
29060         (SIZE_MAX): Rely on headers.
29061         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
29062         and add stdint.
29063         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
29064         (SIZE_MAX): Likewise.
29065         (INITIAL_BUF_SIZE): Turn into enum.
29066         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
29067
29068 2009-10-08  Jim Meyering  <meyering@redhat.com>
29069
29070         areadlinkat: avoid compilation failure
29071         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
29072         Fix typo in comment.
29073
29074 2009-10-07  Eric Blake  <ebb9@byu.net>
29075
29076         areadlinkat-with-size: new module
29077         * modules/areadlinkat-with-size: New module.
29078         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
29079         * lib/areadlink.h (areadlinkat): Declare it.
29080         * MODULES.html.sh (File system functions): Mention it.
29081         * modules/areadlinkat-with-size-tests: New test.
29082         * tests/test-areadlinkat-with-size.c: New file.
29083
29084         xreadlinkat: new module
29085         * modules/xreadlinkat: New module.
29086         * lib/xreadlinkat.c (xreadlinkat): New file.
29087         * lib/xreadlink.h (xreadlinkat): Declare it.
29088         * MODULES.html.sh (File system functions): Mention it.
29089
29090         areadlinkat: new module
29091         * lib/at-func.c (FUNC_FAIL): New define.
29092         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
29093         * modules/areadlinkat: New module.
29094         * lib/linkat.c (areadlinkat): Move...
29095         * lib/areadlinkat.c (areadlinkat): ...to new file.
29096         * lib/areadlink.h (areadlinkat): Declare it.
29097         * modules/linkat (Depends-on): Add areadlinkat.
29098         * MODULES.html.sh (File system functions): Mention it.
29099         * modules/areadlinkat-tests: New test.
29100         * tests/test-areadlinkat.c: New file.
29101
29102         areadlink, areadlink-with-size: add tests
29103         * modules/areadlink-tests: New test.
29104         * modules/areadlink-with-size-tests: Likewise.
29105         * tests/test-areadlink.h: New file.
29106         * tests/test-areadlink.c: Likewise.
29107         * tests/test-areadlink-with-size.c: Likewise.
29108
29109         maint: minor cleanups
29110         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
29111         _UNUSED_PARAMETER_ instead.
29112         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
29113         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
29114         * modules/linkat-tests (Files): Distribute test-link.h.
29115
29116         openat, utimens: whitespace cleanup
29117         * lib/openat.c: Prefer space throughout, rather than mix of 8
29118         spaces vs. tabs.
29119         * lib/at-func.c: Likewise.
29120         * lib/utimens.c: Likewise.
29121
29122         openat: avoid using wrong fd
29123         * lib/openat.c (openat_permissive): Reject user's fd if saving the
29124         working directory chooses same fd.
29125         * lib/at-func.c (AT_FUNC_NAME): Likewise.
29126
29127         mkdir, mkdirat: fix cygwin 1.5.x bug
29128         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
29129         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
29130         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
29131         bug.
29132         (gl_PREREQ_MKDIR): Delete unused macro.
29133         * modules/mkdir (Files): Track file rename.
29134         (configure.ac): Update macro name.
29135         * modules/openat (Depends-on): Add mkdir.
29136         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
29137
29138         mkdir, mkdirat: add tests
29139         * modules/mkdir-tests: New test.
29140         * tests/test-mkdir.h: New file.
29141         * tests/test-mkdir.c: Likewise.
29142         * tests/test-mkdirat.c: Likewise.
29143         * modules/openat-tests (Files): Add new files.
29144         (Makefile.am): Run new test.
29145
29146 2009-10-06  Eric Blake  <ebb9@byu.net>
29147
29148         doc: tweak *at function documentation
29149         * doc/posix-functions/faccessat.texi (faccessat): Mention
29150         known issue with replacement.
29151         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
29152         * doc/posix-functions/linkat.texi (linkat): Likewise.
29153         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
29154         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
29155         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
29156         * doc/posix-functions/renameat.texi (renameat): Likewise.
29157         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
29158
29159         openat: fix GNU/Hurd bug in unlinkat
29160         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
29161         broken.
29162         * doc/posix-functions/unlink.texi (unlink): Document this.
29163         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
29164
29165         fdopendir: fix GNU/Hurd bug
29166         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
29167         allowing non-directory fds.
29168         * lib/fdopendir.c (rpl_fdopendir): Work around it.
29169         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
29170         * modules/dirent (Makefile.am): Substitute it.
29171         * lib/dirent.in.h (fdopendir): Declare replacement.
29172         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
29173         * tests/test-fdopendir.c (main): Test something other than
29174         /dev/null, since on Hurd that behaves like a directory.
29175
29176         test-symlink: port to GNU/Hurd
29177         * tests/test-symlink.h (test_symlink): Relax expected errno.
29178
29179         doc: tweak more cygwin information
29180         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
29181         now compatible with glibc.
29182         * doc/posix-functions/getopt.texi (getopt): Likewise.
29183
29184         getopt-gnu: add another test
29185         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
29186         guarantee behavior relied on by m4.
29187         * tests/test-getopt.c (main): Use it.
29188         * modules/getopt-posix-tests (Depends-on): Add setenv.
29189         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
29190
29191         getopt: fix compilation on darwin
29192         * lib/getopt.in.h (includes): Leave breadcrumbs during system
29193         include.
29194         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
29195         Reported by Ludovic Courtès.
29196
29197 2009-10-06  Bruno Haible  <bruno@clisp.org>
29198
29199         * modules/size_max (Description): Discourage its use.
29200         Reported by Simon Josefsson.
29201
29202 2009-10-06  Jim Meyering  <meyering@redhat.com>
29203
29204         linkat: avoid compilation failure
29205         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
29206
29207 2009-10-05  Eric Blake  <ebb9@byu.net>
29208
29209         linkat: support Linux 2.6.17
29210         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
29211         linkat on Linux, but allow cache variable override.
29212         * lib/linkat.c (rpl_linkat): Define override.
29213         * modules/linkat (Depends-on): Add symlinkat.
29214         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
29215         * modules/unistd (Makefile.am): Substitute it.
29216         * lib/unistd.in.h (linkat): Declare replacement.
29217         Reported by Pádraig Brady.
29218
29219         quotearg: port test to systems with C.UTF-8 locale
29220         * tests/test-quotearg.c (struct result_strings): Add another
29221         member, differentiating between C.ASCII and C.UTF-8 handling.
29222         (compare_strings): Add parameter.
29223         (main): Adjust all callers.
29224
29225         getopt: avoid clash with FreeBSD _getopt_internal
29226         * lib/getopt.in.h (_getopt_internal): Override the name.
29227         * lib/getopt_int.h (includes): Pick up any overrides.
29228         Reported by Reuben Thomas.
29229
29230         hash: allow C89 compilation
29231         * lib/hash.c (check_tuning): Move declaration before statement.
29232         Reported by Reuben Thomas.
29233
29234 2009-10-05  Karl Berry  <karl@gnu.org>
29235
29236         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
29237
29238 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
29239             Bruno Haible  <bruno@clisp.org>
29240
29241         * lib/uname.c (uname): Use a table-driven algorithm to compute
29242         Windows NT versions.
29243
29244 2009-10-04  Bruno Haible  <bruno@clisp.org>
29245
29246         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
29247         program_invocation_short_name.
29248         * modules/progname (configure.ac): Test for presence of
29249         program_invocation_short_name.
29250         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
29251
29252 2009-10-04  Bruno Haible  <bruno@clisp.org>
29253
29254         * lib/progname.c (set_program_name): Fix comment.
29255         Reported by Jim Meyering.
29256
29257 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
29258             Bruno Haible  <bruno@clisp.org>
29259
29260         * lib/uname.c: Include <string.h>.
29261         (uname): Do only one call to GetVersionEx in the common case.
29262
29263 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
29264             Bruno Haible  <bruno@clisp.org>
29265
29266         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
29267         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
29268         (uname): Add support for Windows CE and various non-x86 CPU types.
29269
29270 2009-10-03  Bruno Haible  <bruno@clisp.org>
29271
29272         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
29273         invocation to tests/configure.ac.
29274         Reported by Ian Beckwith <ianb@erislabs.net>.
29275
29276 2009-10-02  Eric Blake  <ebb9@byu.net>
29277
29278         fchdir: avoid compiler warning
29279         * lib/fchdir.c (canonicalize_file_name)
29280         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
29281
29282         test-open: support mingw errno values
29283         * tests/test-open.h (test_open): Relax test.
29284         * tests/test-fopen.h (test_fopen): Likewise.
29285         * tests/test-openat-safer.c (main): Likewise.
29286
29287         open: fix opening directory on mingw
29288         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
29289
29290         test-open: on GNU/Hurd, /dev/null is a directory
29291         * tests/test-fopen.h (main): Rename...
29292         (test_fopen): ...to this.  Use a guaranteed non-directory when
29293         confirming open behavior on trailing slash.
29294         * tests/test-openat-safer.c (main): Likewise.
29295         * tests/test-open.h (main): Likewise....
29296         (test_open): ...to this.
29297         * tests/test-fopen.c (main): Adjust caller.
29298         * tests/test-fopen-safer.c (main): Likewise.
29299         * tests/test-open.c (main): Likewise.
29300         * tests/test-fcntl-safer.c (main): Likewise.
29301         Reported by Samuel Thibault.
29302
29303         rename, fchdir: don't ignore chdir failure
29304         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
29305         * lib/rename.c (rpl_rename) [W32]: Likewise.
29306         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
29307         an empty destination directory if source cannot be renamed,
29308         although there is still possibility for failure.
29309         * doc/posix-functions/rename.texi (rename): Document the race.
29310         Reported by Jim Meyering.
29311
29312         maint: cleanup whitespace in recent commits
29313         * lib/rename.c (rpl_rename): Remove tabs.
29314         * tests/test-link.h (test_link): Likewise.
29315         * lib/fchdir.c (get_name): Likewise.
29316         Reported by Jim Meyering.
29317
29318 2009-10-02  Ben Pfaff  <blp@gnu.org>
29319
29320         relocatable-prog-wrapper: Add missing dependency on
29321         double-slash-root.
29322         * modules/relocatable-prog-wrapper: Add dependency.
29323         Reported by Ian Beckwith <ianb@erislabs.net>.
29324
29325 2009-10-02  Eric Blake  <ebb9@byu.net>
29326
29327         renameat: fix Solaris bugs
29328         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
29329         needed fixing.
29330         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
29331         * modules/stdio (Makefile.am): Substitute it.
29332         * lib/stdio.in.h (renameat): Declare replacement.
29333         * lib/renameat.c (rpl_renameat): Implement fix.
29334
29335         renameat: new module
29336         * modules/renameat: New file.
29337         * lib/renameat.c (renameat): Likewise.
29338         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
29339         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
29340         * modules/stdio (Makefile.am): Substitute them.
29341         * lib/stdio.in.h (renameat): Declare it.
29342         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
29343         * doc/posix-functions/renameat.texi (renameat): Likewise.
29344         * modules/renameat-tests: New test.
29345         * tests/test-renameat.c: Likewise.
29346
29347         rename: fix mingw bugs
29348         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
29349         directory overwrite bugs.
29350
29351         rename: fix another cygwin 1.5 bug
29352         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
29353         checks.
29354         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
29355         unnecessary cygwin workarounds.  Also work around bug with moving
29356         full directory onto an empty one.
29357         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
29358
29359         rename-dest-slash: merge into rename module
29360         * modules/rename-dest-slash (Status): Mark obsolete.
29361         (Depends-on): Add rename.
29362         (Files): Let rename do it all.
29363         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
29364         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
29365         * m4/rename-dest-slash.m4: ...so this file can be deleted.
29366         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
29367         * lib/rename.c (rpl_rename): Update comments.
29368
29369         rename: fix cygwin 1.5.x bugs
29370         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
29371         * lib/rename.c (rpl_rename): Work around them.
29372         * modules/rename (Depends-on): Add same-inode.
29373
29374         rename: fix Solaris 10 bug
29375         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
29376         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
29377         was the only bug.
29378
29379         rename: fix Solaris 9 bug
29380         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
29381         on non-directory.  Avoid calling exit.
29382         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
29383         strdup.
29384         * modules/rename-tests (Depends-on): Drop lstat.
29385         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
29386         (gl_PREREQ_RENAME): Delete unused macro.
29387
29388         rename-dest-slash: fix NetBSD bug
29389         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
29390         links.
29391         * modules/rename-dest-slash (Depends-on): Add same-inode.
29392
29393         rename-tests: new test, exposes several platform bugs
29394         * modules/rename-tests: New file.
29395         * tests/test-rename.h: Likewise.
29396         * tests/test-rename.c: Likewise.
29397         * doc/posix-functions/rename.texi (rename): Improve documentation,
29398         including bugs that will eventually be fixed in gnulib.
29399
29400 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
29401
29402         * lib/uname.c: Include <stdlib.h>
29403         (uname): Assume version info is available.
29404
29405 2009-10-02  Jim Meyering  <meyering@redhat.com>
29406
29407         gnu-web-doc-update: correct --help output
29408         * build-aux/gnu-web-doc-update: Make --help output relevant.
29409
29410         gnu-web-doc-update: add standard options
29411         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
29412
29413         gnu-web-doc-update: New module.
29414         Use this script to automatically update the on-line web documentation
29415         for your GNU project at http://www.gnu.org/software/$pkg/manual/
29416         * modules/gnu-web-doc-update: New file, from coreutils.
29417         * build-aux/gnu-web-doc-update: New script.
29418
29419 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
29420
29421         link: LoadLibrary is not needed.
29422         * lib/link.c: Use GetModuleHandle.
29423
29424 2009-10-01  Eric Blake  <ebb9@byu.net>
29425
29426         getopt: bump serial number
29427         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
29428         change.
29429
29430         tests: tighten link, rmdir, and remove tests
29431         * tests/test-link.h (includes): No need to use <config.h> here.
29432         Clean up if directory hard link was created, otherwise test for
29433         trailing '.'.
29434         * tests/test-linkat.c (main): Simplify.
29435         * tests/test-remove.c (main): Enhance test for trailing '.'.
29436         * tests/test-rmdir.h (test_rmdir_func): Likewise.
29437
29438 2009-10-01  Jim Meyering  <meyering@redhat.com>
29439
29440         maint.mk: requiring "make major" was annoying, for a "minor" release.
29441         What is intended is "stable", to contrast with alpha and beta,
29442         so require "make stable", not "make major".
29443         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
29444         (get_tool_versions): Likewise.
29445         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
29446
29447 2009-09-30  Ben Pfaff  <blp@gnu.org>
29448
29449         Fix broken build of replacement for Windows tmpfile().
29450         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
29451         flags argument added along with the 'mkostemp' module.
29452
29453 2009-09-28  Bruno Haible  <bruno@clisp.org>
29454
29455         Avoid identifier clash with POSIX function 'remove' defined as a macro.
29456         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
29457         to 'remove_elt'.
29458         (gl_list_remove): Update.
29459         * lib/gl_list.c (gl_list_remove): Update.
29460         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
29461         to 'remove_elt'.
29462         (gl_oset_remove): Update.
29463         * lib/gl_list.c (gl_oset_remove): Update.
29464         Reported by Eric Blake.
29465
29466 2009-09-28  Eric Blake  <ebb9@byu.net>
29467
29468         doc: mention yet more cygwin 1.7 status
29469         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
29470         cygwin.
29471         * doc/glibc-functions/execvpe.texi (execvpe): New file.
29472         * doc/gnulib.texi (Glibc unistd.h): Mention it.
29473
29474         argp: fix test failure
29475         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
29476         that are not upper-case.  Pass correct range to tolower.
29477
29478 2009-09-27  Jim Meyering  <meyering@redhat.com>
29479
29480         test-yesno: work around sparc-dash here-document infelicity
29481         Without this change, the literal \177 byte in a here document
29482         would make dash 0.5.5.1-3 access uninitialized memory.
29483         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
29484         Instead, use a marker, "@", and filter through tr to create the desired
29485         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
29486
29487 2009-09-27  Bruno Haible  <bruno@clisp.org>
29488
29489         Disable untested support for new flavours of ACLs on AIX.
29490         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
29491         progress.
29492         * lib/set-mode-acl.c (qset_acl): Likewise.
29493
29494 2008-12-07  Bruno Haible  <bruno@clisp.org>
29495
29496         Add support for new flavours of ACLs on AIX. (Untested.)
29497         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
29498         (file_has_acl): Add support for newer AIX.
29499         * lib/set-mode-acl.c (qset_acl): Likewise.
29500         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
29501         Rainer Tammer <tammer@tammer.net>.
29502
29503 2009-09-26  Eric Blake  <ebb9@byu.net>
29504
29505         argp: fix compilation of getopt
29506         * lib/getopt.in.h (includes): Use different guard than glibc.
29507         Reported by Sergey Poznyakoff.
29508
29509         doc: mention more cygwin 1.7 status
29510         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
29511         bug.
29512         * doc/posix-functions/execl.texi (execl): Likewise.
29513         * doc/posix-functions/execle.texi (execle): Likewise.
29514         * doc/posix-functions/execlp.texi (execlp): Likewise.
29515         * doc/posix-functions/execv.texi (execv): Likewise.
29516         * doc/posix-functions/execve.texi (execve): Likewise.
29517         * doc/posix-functions/execvp.texi (execvp): Likewise.
29518         * doc/glibc-functions/canonicalize_file_name.texi
29519         (canonicalize_file_name): Cygwin 1.7 now provides this.
29520         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
29521         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
29522         on AT_SYMLINK_NOFOLLOW.
29523
29524 2009-09-24  Eric Blake  <ebb9@byu.net>
29525
29526         test-linkat: make test more robust
29527         * tests/test-linkat.c (main): Avoid collision with EEXIST.
29528
29529         getopt: fix inclusion guards for cygwin
29530         * modules/getopt-posix (Depends-on): Add include-next.
29531         (Makefile.am): Substitute more items in replacement header.
29532         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
29533         <getopt.h>.
29534         * lib/getopt.in.h (includes): Use split inclusion guard, and
29535         prefer <getopt.h> over include <unistd.h> when one is present.
29536         (option): Also override name of 'struct option'.
29537
29538         same-inode: revert prior change; it is not yet ready
29539         * NEWS: Undo mention of this change.
29540         * lib/same-inode.h (same-inode.h): Undo tri-state change.
29541         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
29542         * lib/cycle-check.c (cycle_check): Likewise.
29543         * lib/same.c (same_name): Likewise.
29544         * lib/at-func2.c (at_func2): Likewise.
29545
29546 2009-09-23  Eric Blake  <ebb9@byu.net>
29547
29548         linkat: new module
29549         * modules/linkat: New file.
29550         * lib/at-func2.c (at_func2): Likewise.
29551         * lib/linkat.c (linkat): Likewise.
29552         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
29553         * lib/openat-priv.h (at_func2): Add declaration.
29554         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
29555         * modules/unistd (Makefile.am): Substitute them.
29556         * lib/unistd.in.h (linkat): Declare it.
29557         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
29558         * doc/posix-functions/linkat.texi (linkat): Likewise.
29559         * doc/posix-functions/link.texi (link): Tweak wording.
29560         * tests/test-link.c (main): Move guts...
29561         * tests/test-link.h (test_link): ...into new file.
29562         * modules/linkat-tests: New test.
29563         * tests/test-linkat.c: Likewise.
29564         * modules/link-tests (Files): Ship new file.
29565         (Depends-on): Add stdbool.
29566
29567         dirname: add library-safe mdir_name
29568         * lib/dirname.h (mdir_name): New prototype.
29569         * lib/dirname.c (dir_name): Move guts...
29570         (mdir_name): ...to new function that avoids xalloc_die.
29571
29572         fchdir: another mingw fix
29573         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
29574         * lib/fchdir.c (get_name): New helper method; skips canonicalize
29575         on mingw (where it has not yet been ported), and make it optional
29576         elsewhere.
29577         (_gl_register_fd): Use it.
29578
29579         same-inode: make SAME_INODE tri-state, to port to mingw
29580         * NEWS: Mention this change.
29581         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
29582         st_ino always being 0.
29583         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
29584         * lib/cycle-check.c (cycle_check): Likewise.
29585         * lib/same.c (same_name): Likewise.
29586
29587         lstat: avoid mingw compilation error
29588         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
29589         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
29590         lstat ourselves.
29591         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
29592         was adequate.
29593         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
29594         the checks for lstat.
29595         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
29596
29597         link: fix test failure on Solaris 9
29598         * lib/link.c (rpl_link): Don't assume link will catch bogus
29599         trailing slash on source.
29600
29601         test-symlinkat: enhance test
29602         * tests/test-readlink.c (main): Move guts...
29603         * tests/test-readlink.h (test_readlink): ...into new file.
29604         * tests/test-symlink.c (main): Move guts...
29605         * tests/test-symlink.h (test_symlink): ...into new file.
29606         * tests/test-symlinkat.c (main): Use new files for further
29607         coverage.
29608         (do_symlink, do_readlink): New helper functions.
29609         * modules/symlink-tests (Files): Ship new file.
29610         (Depends-on): Add stdbool.
29611         * modules/readlink-tests (Files): Ship new file.
29612         (Depends-on): Add stdbool.
29613         * modules/symlinkat-tests (Files): Use new files.
29614
29615 2009-09-23  Eric Blake  <ebb9@byu.net>
29616
29617         readlink: document portability issue with symlink length
29618         * doc/posix-functions/lstat.texi (lstat): Mention that some file
29619         systems have bogus st_size on symlinks, and mention the
29620         areadlink-with-size module.
29621         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
29622         * doc/posix-functions/readlink.texi (readlink): Mention the
29623         areadlink module, and ERANGE failure.
29624         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
29625         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
29626
29627         readlink: fix Solaris 9 bug with trailing slash
29628         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
29629         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
29630         * doc/posix-functions/readlink.texi (readlink): Document this.
29631         * modules/readlink-tests: New test.
29632         * tests/test-readlink.c: Likewise.
29633
29634         readlink: fix cygwin 1.5.x bug with return type
29635         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
29636         * lib/unistd.in.h (readlink): Use ssize_t.
29637         * lib/readlink.c (readlink): Likewise.
29638         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
29639         * modules/unistd (Makefile.am): Substitute it.
29640         * lib/unistd.in.h (readlink): Declare replacement.
29641         * doc/posix-functions/readlink.texi (readlink): Document this.
29642
29643         symlink: use throughout gnulib
29644         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
29645         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
29646         symlink is not used.
29647         * modules/symlinkat (Depends-on): Add symlink.
29648         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
29649         * modules/canonicalize-tests (Depends-on): Likewise.
29650         * modules/lstat-tests (Depends-on): Likewise.
29651         * modules/openat-tests (Depends-on): Likewise.
29652         * modules/remove-tests (Depends-on): Likewise.
29653         * modules/rmdir-tests (Depends-on): Likewise.
29654         * modules/unlink-tests (Depends-on): Likewise.
29655         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
29656         * tests/test-canonicalize.c (symlink): Likewise.
29657         * tests/test-fstatat.c (symlink): Likewise.
29658         * tests/test-lstat.c (symlink): Likewise.
29659         * tests/test-remove.c (symlink): Likewise.
29660         * tests/test-rmdir.c (symlink): Likewise.
29661         * tests/test-unlink.c (symlink): Likewise.
29662         * tests/test-unlinkat.c (symlink): Likewise.
29663
29664         symlink: new module, for Solaris 9 bug
29665         * modules/symlink: New file.
29666         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
29667         * lib/symlink.c: Likewise.
29668         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
29669         * modules/unistd (Makefile.am): Substitute them.
29670         * lib/unistd.in.h (symlink): Declare replacement.
29671         * MODULES.html.sh (File system functions): Mention it.
29672         * doc/posix-functions/symlink.texi (symlink): Likewise.
29673         * modules/symlink-tests: New test.
29674         * tests/test-symlink.c: Likewise.
29675
29676 2009-09-23  Bruno Haible  <bruno@clisp.org>
29677
29678         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
29679         when needed.
29680         Test case: gnulib-tool --import --with-tests atexit inttypes.
29681         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
29682
29683 2009-09-23  Bruno Haible  <bruno@clisp.org>
29684
29685         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
29686         subcommand, not in a subshell.
29687
29688 2009-09-22  Eric Blake  <ebb9@byu.net>
29689
29690         unistd: sort replacement declarations
29691         * lib/unistd.in.h: Sort declarations.
29692
29693         open, openat: minor optimization
29694         * lib/open.c (open): If open succeeded, len is non-zero.
29695         * lib/openat.c (rpl_openat): Likewise.
29696
29697         link-follow: ensure correct result
29698         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
29699         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
29700         distinguish between possible failures.
29701
29702 2009-09-21  Eric Blake  <ebb9@byu.net>
29703
29704         fts: avoid compiler warning
29705         * lib/fts.c (dirent_inode_sort_may_be_useful)
29706         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
29707
29708 2009-09-19  Bruno Haible  <bruno@clisp.org>
29709
29710         * lib/progreloc.c (canonicalize_file_name): New declaration.
29711
29712 2009-09-19  Eric Blake  <ebb9@byu.net>
29713
29714         link: fix quoting
29715         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
29716
29717         openat: fix openat bugs on Solaris 9
29718         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
29719         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
29720         * modules/openat (Depends-on): Add open.
29721         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
29722         * modules/fcntl-h (Makefile.am): Substitute it.
29723         * lib/fcntl.in.h (openat): Declare replacement.
29724         * doc/posix-functions/openat.texi (openat): Document this.
29725
29726         openat: move fstatat and unlinkat into correct files
29727         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
29728         compiled.
29729         * lib/openat.c (fstatat, unlinkat): Move...
29730         * lib/fstatat.c (fstatat): ...into correct files.
29731         * lib/unlinkat.c (unlinkat): Likewise.
29732
29733         openat: fix unlinkat bugs on Solaris 9
29734         * lib/unlinkat.c (unlinkat): New file.
29735         * modules/openat (Depends-on): Add unlink.
29736         (Files): Distribute it.
29737         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
29738         trailing slash behavior is broken.
29739         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
29740         * modules/unistd (Makefile.am): Substitute it.
29741         * lib/unistd.in.h (unlinkat): Declare replacement.
29742         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
29743
29744         openat: fix fstatat bugs on Solaris 9
29745         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
29746         stat.
29747         * doc/posix-functions/fstatat.texi (fstatat): Document this.
29748
29749         test-unlinkat: enhance test, to expose Solaris 9 bug
29750         * tests/test-unlink.c (main): Factor guts...
29751         * tests/test-unlink.h (test_rmdir_func): ...into new file.
29752         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
29753         * tests/test-rmdir.c (main): Adjust caller.
29754         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
29755         (unlinker): New helper function.
29756         (rmdirat): Enhance check.
29757         * modules/rmdir-tests (Depends-on): Add stdbool.
29758         * modules/unlink-tests (Depends-on): Likewise.
29759         (Files): Add test-unlink.h.
29760         * modules/openat-tests (Files): Likewise.
29761         (Depends-on): Add unlinkdir.
29762
29763         test-fstatat: new test, to expose Solaris 9 bugs
29764         * tests/test-stat.c (main): Factor guts...
29765         * tests/test-stat.h (test_stat_func): ...into new file.
29766         * tests/test-lstat.c (main): Factor guts...
29767         * tests/test-lstat.h (test_lstat_func): ...into new file.
29768         * tests/test-fstatat.c: New file.
29769         * modules/stat-tests (Files): Add test-stat.h.
29770         * modules/lstat-tests (Files): Add test-lstat.h.
29771         (Depends-on): Add stdbool.
29772         * modules/openat-tests (Depends-on): Add pathmax.
29773         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
29774         (Makefile.am): Run new test.
29775
29776         remove: new module, for mingw and Solaris 9 bugs
29777         * modules/remove: New file.
29778         * lib/remove.c: Likewise.
29779         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
29780         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
29781         * modules/stdio (Makefile.am): Use them.
29782         * lib/stdio.in.h (remove): Declare replacement.
29783         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
29784         * doc/posix-functions/remove.texi (remove): Likewise.
29785         * modules/remove-tests: New test.
29786         * tests/test-remove.c: Likewise.
29787
29788         unlink: new module, for Solaris 9 bug
29789         * modules/unlink: New file.
29790         * lib/unlink.c: Likewise.
29791         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
29792         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
29793         * modules/unistd (Makefile.am): Use them.
29794         * lib/unistd.in.h (stat): Declare replacement.
29795         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
29796         * doc/posix-functions/unlink.texi (unlink): Likewise.
29797         * modules/unlink-tests: New test.
29798         * tests/test-unlink.c: Likewise.
29799
29800         lstat: fix Solaris 9 bug
29801         * lib/lstat.c (lstat): Also check for trailing slash on
29802         non-symlink, non-directories.  Use stat module to simplify logic.
29803         * doc/posix-functions/lstat.texi (lstat): Document it.
29804         * modules/lstat-tests (Depends-on): Add errno, same-inode.
29805         (configure.ac): Check for symlink.
29806         * tests/test-lstat.c (main): Add more tests.
29807
29808         stat: add as dependency to other modules
29809         * modules/chown (Depends-on): Add stat.
29810         * modules/euidaccess (Depends-on): Likewise.
29811         * modules/fchdir (Depends-on): Likewise.
29812         * modules/isdir (Depends-on): Likewise.
29813         * modules/link (Depends-on): Likewise.
29814         * modules/lstat (Depends-on): Likewise.
29815         * modules/mkdir-p (Depends-on): Likewise.
29816         * modules/modechange (Depends-on): Likewise.
29817         * modules/open (Depends-on): Likewise.
29818         * modules/readlink (Depends-on): Likewise.
29819         * modules/same (Depends-on): Likewise.
29820
29821         stat: fix Solaris 9 bug
29822         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
29823         slash.
29824         * lib/stat.c (rpl_stat): Work around it.
29825         * doc/posix-functions/stat.texi (stat): Update documentation.
29826
29827         stat: new module, for mingw bug
29828         * modules/stat: New file.
29829         * lib/stat.c: Likewise.
29830         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
29831         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
29832         * modules/sys_stat (Makefile.am): Use them.
29833         * lib/sys_stat.in.h (stat): Declare replacement.
29834         * lib/openat.c (fstatat): Deal with lstat and stat being function
29835         macros.
29836         * modules/openat (Depends-on): Add inline.
29837         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
29838         * doc/posix-functions/stat.texi (stat): Likewise.
29839         * modules/stat-tests: New test.
29840         * tests/test-stat.c: Likewise.
29841
29842 2009-09-19  Jim Meyering  <meyering@redhat.com>
29843
29844         syntax-check: detect unnecessary inclusion of canonicalize.h
29845         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
29846
29847 2009-09-19  Eric Blake  <ebb9@byu.net>
29848
29849         canonicalize-lgpl: adjust clients to use correct header
29850         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
29851         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
29852         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
29853         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
29854         * lib/progreloc.c (includes): Likewise.
29855
29856 2009-09-19  Jim Meyering  <meyering@redhat.com>
29857
29858         test-posixtm.c: correct a comment
29859         * tests/test-posixtm.c: Correct first-line comment.
29860         Spotted by Eric Blake.
29861
29862 2009-09-16  Jim Meyering  <meyering@redhat.com>
29863
29864         posixtm-tests: make T const-correct; add a test case
29865         * tests/test-posixtm.c (T): Declare const.
29866         Add a test for -(2^31+1).
29867         Remove useless can-succeed-only-in-2002 test.
29868
29869         posixtm-tests: adjust the sole failing test
29870         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
29871         expected output matches what mktime now produces.  Cross-checked via
29872         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
29873
29874         posixtm: move #ifdef'd tests into a new module
29875         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
29876         * tests/test-posixtm.c: ... this new file.
29877         * modules/posixtm-tests: New module.
29878
29879 2009-09-19  Eric Blake  <ebb9@byu.net>
29880
29881         openat: simplify use of at-func.c
29882         * lib/at-func.c (includes): Include prerequisites here, to
29883         simplify requirements on client files.
29884         * lib/openat-priv.h: Add double-inclusion guard.
29885         * lib/faccessat.c (includes): Simplify.
29886         * lib/fchmodat.c (includes): Likewise.
29887         * lib/fchownat.c (includes): Likewise.
29888         * lib/mkdirat.c (includes): Likewise.
29889         * lib/mkfifoat.c (includes): Likewise.
29890         * lib/symlinkat.c (includes): Likewise.
29891
29892         openat: allow return of fd 0
29893         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
29894         * modules/save-cwd (Depends-on): Replace fcntl-safer with
29895         unistd-safer.
29896         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
29897         <fcntl.h>; this module does not leak fds.
29898         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
29899         must be allowed to return 0, leaving openat_safer to add the
29900         safety.
29901         (openat_permissive): Avoid writing to just-opened fd 2 if
29902         restoring the current directory fails.
29903         * lib/openat-die.c (openat_restore_fail): Add comment.
29904         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
29905         (save_cwd): Guarantee safe fd, but without use of open_safer.
29906         * tests/test-openat.c: New test.
29907         * modules/openat-tests (Files, Makefile.am): Distribute and build
29908         new file.
29909
29910         relocatable-prog-wrapper: fix build
29911         * modules/relocatable-prog-wrapper (Files): Update name of
29912         canonicalize m4 file, broken on 2009-09-17.
29913         Reported by emad hajjar <aleppos@hotmail.com>.
29914
29915 2009-09-19  Bruno Haible  <bruno@clisp.org>
29916
29917         * lib/safe-alloc.h: Use the standard header with GPL copyright.
29918         * lib/safe-alloc.c: Likewise.
29919         Reported by Ian Beckwith <ianb@erislabs.net>.
29920
29921 2009-09-18  Bruno Haible  <bruno@clisp.org>
29922
29923         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
29924         Reported by <erobles@sensacd.com.mx>.
29925
29926 2009-09-17  Eric Blake  <ebb9@byu.net>
29927
29928         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
29929         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
29930         slashes when checking if last component is missing.
29931         * tests/test-canonicalize.c (main): Test this.
29932
29933         canonicalize, canonicalize-lgpl: honor // if distinct from /
29934         * modules/canonicalize (Files): Add double-slash-root.m4.
29935         * modules/canonicalize-lgpl (Files): Likewise.
29936         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
29937         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
29938         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
29939         fallback definition.
29940         (canonicalize_filename_mode): Use it to protect //.
29941         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
29942         (__realpath): Likewise.
29943         * tests/test-canonicalize.c (main): Test this.
29944         * tests/test-canonicalize-lgpl.c (main): Likewise.
29945         * modules/canonicalize-tests (Depends-on): Add same-inode.
29946         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
29947
29948         canonicalize-lgpl: fix glibc bug with trailing slash
29949         * m4/canonicalize-lgpl.m4: Move contents...
29950         * m4/canonicalize.m4: ...here.
29951         (gl_CANONICALIZE_LGPL): Factor realpath check...
29952         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
29953         glibc 2.3.5 bug, fixed 2005-04-27.
29954         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
29955         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
29956         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
29957         * modules/canonicalize-lgpl (Files): Manage file rename.
29958         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
29959         * modules/stdlib (Makefile.am): Substitute witness.
29960         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
29961         is needed.
29962         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
29963         replacement is required.
29964         * lib/canonicalize.c (canonicalize_file_name): Likewise.
29965         * doc/glibc-functions/canonicalize_file_name.texi
29966         (canonicalize_file_name): Document this.
29967         * doc/posix-functions/realpath.texi (realpath): Likewise.
29968
29969         canonicalize-lgpl: reject non-directory with trailing slash
29970         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
29971         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
29972         catches failures in glibc 2.3.5.
29973         * tests/test-canonicalize.c (main): Likewise.
29974
29975         canonicalize-lgpl: use native realpath if it works
29976         * lib/canonicalize-lgpl.c (realpath): Guard with
29977         FUNC_REALPATH_WORKS.
29978         * lib/stdlib.in.h (realpath): Make declaration optional based on
29979         HAVE_REALPATH.
29980         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
29981         native realpath works.
29982         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
29983         * modules/stdlib (Makefile.am): Substitute witness.
29984
29985         canonicalize, canonicalize-lgpl: use <stdlib.h>
29986         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
29987         (Include): Mention <stdlib.h>.
29988         (configure.ac): Mention functions we provide.
29989         * modules/canonicalize (configure.ac): Likewise.
29990         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
29991         realpath if canonicalize_file_name is missing.
29992         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
29993         * modules/stdlib (Makefile.am): Substitute witnesses.
29994         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
29995         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
29996         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
29997         * NEWS: Document this.
29998         * doc/glibc-functions/canonicalize_file_name.texi
29999         (canonicalize_file_name): Likewise.
30000         * doc/posix-functions/realpath.texi (realpath): Likewise.
30001         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
30002
30003         test-canonicalize: consolidate into single C program
30004         * tests/test-canonicalize.sh: Delete; move setup into...
30005         * tests/test-canonicalize.c (main): ...the program, making it
30006         easier to run in debugger.  Add some tests.
30007         * modules/canonicalize-tests (Files): Remove unused file.
30008         (Depends-on): Add progname.
30009         (configure.ac, Makefile.am): Simplify.
30010
30011         test-canonicalize-lgpl: consolidate into single C program
30012         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
30013         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
30014         easier to run in debugger.  Add some tests.
30015         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
30016         (configure.ac, Makefile.am): Simplify.
30017
30018         canonicalize: avoid resolvepath
30019         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
30020         unnecessary checks.
30021         * lib/canonicalize.c (includes): Simplify.
30022         (canonicalize_file_name): Drop resolvepath implementation.
30023         * modules/canonicalize (Depends-on): Drop filenamecat.
30024
30025         canonicalize: don't lose errno
30026         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
30027         over calls to free.
30028
30029         canonicalize: simplify errno handling
30030         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
30031         assignment.
30032
30033         canonicalize, canonicalize-lgpl: update module dependencies
30034         * modules/canonicalize (Depends-on): Add extensions, lstat,
30035         pathmax, stdlib.
30036         (Files): Drop pathmax.h.
30037         (configure.ac): Adjust macro name.
30038         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
30039         lstat, stdlib, sys_stat.
30040         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
30041         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
30042         extensions.
30043         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
30044         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
30045         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
30046         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
30047         declaration, if available.
30048         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
30049         we can rely on the readlink module.
30050         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
30051         (includes): Use <unistd.h> unconditionally.
30052
30053 2009-09-17  Eric Blake  <ebb9@byu.net>
30054
30055         maint: make Include sections of modules consistent
30056         * modules/alloca: Use only header name; no need to list #include.
30057         * modules/alloca-opt: Likewise.
30058         * modules/arpa_inet: Likewise.
30059         * modules/canon-host: Likewise.
30060         * modules/configmake: Likewise.
30061         * modules/dirent: Likewise.
30062         * modules/eealloc: Likewise.
30063         * modules/environ: Likewise.
30064         * modules/fchdir: Likewise.
30065         * modules/fcntl: Likewise.
30066         * modules/fcntl-h: Likewise.
30067         * modules/gethrxtime: Likewise.
30068         * modules/gettime: Likewise.
30069         * modules/ignore-value: Likewise.
30070         * modules/inet_ntop: Likewise.
30071         * modules/inet_pton: Likewise.
30072         * modules/inttypes: Likewise.
30073         * modules/isnand-nolibm: Likewise.
30074         * modules/isnanf-nolibm: Likewise.
30075         * modules/mbchar: Likewise.
30076         * modules/mbfile: Likewise.
30077         * modules/mbiter: Likewise.
30078         * modules/mbuiter: Likewise.
30079         * modules/netdb: Likewise.
30080         * modules/netinet_in: Likewise.
30081         * modules/nproc: Likewise.
30082         * modules/pagealign_alloc: Likewise.
30083         * modules/poll: Likewise.
30084         * modules/printf-frexp: Likewise.
30085         * modules/pthread: Likewise.
30086         * modules/putenv: Likewise.
30087         * modules/random_r: Likewise.
30088         * modules/relocatable-prog: Likewise.
30089         * modules/search: Likewise.
30090         * modules/select: Likewise.
30091         * modules/selinux-h: Likewise.
30092         * modules/settime: Likewise.
30093         * modules/signal: Likewise.
30094         * modules/size_max: Likewise.
30095         * modules/socklen: Likewise.
30096         * modules/ssize_t: Likewise.
30097         * modules/stdarg: Likewise.
30098         * modules/stdbool: Likewise.
30099         * modules/stddef: Likewise.
30100         * modules/stdint: Likewise.
30101         * modules/stdio: Likewise.
30102         * modules/stdlib: Likewise.
30103         * modules/string: Likewise.
30104         * modules/strings: Likewise.
30105         * modules/sys_file: Likewise.
30106         * modules/sys_ioctl: Likewise.
30107         * modules/sys_select: Likewise.
30108         * modules/sys_socket: Likewise.
30109         * modules/sys_stat: Likewise.
30110         * modules/sys_time: Likewise.
30111         * modules/sys_times: Likewise.
30112         * modules/sys_utsname: Likewise.
30113         * modules/sys_wait: Likewise.
30114         * modules/sysexits: Likewise.
30115         * modules/time: Likewise.
30116         * modules/times: Likewise.
30117         * modules/tmpfile: Likewise.
30118         * modules/trim: Likewise.
30119         * modules/unistd: Likewise.
30120         * modules/wchar: Likewise.
30121         * modules/wctype: Likewise.
30122
30123 2009-09-17  Bruno Haible  <bruno@clisp.org>
30124
30125         Make getdate.y compile on QNX and NetBSD 5 / i386.
30126         * m4/getdate.m4 (gl_GETDATE): Conditionally define
30127         TIME_T_FITS_IN_LONG_INT.
30128         * lib/getdate.y (long_time_t): New type.
30129         (relative_time): Change type of 'seconds' field to long_time_t.
30130         (get_date): Update types of local variables. Check against overflow
30131         during conversion from long_time_t to time_t.
30132         Reported by Matt Kraai <kraai@ftbfs.org>
30133         and Hasso Tepper <hasso@netbsd.org>.
30134
30135 2009-09-17  Bruno Haible  <bruno@clisp.org>
30136
30137         * modules/COPYING: Update copyright years.
30138         * modules/README: Likeiwse.
30139         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
30140         Reported by Ian Beckwith <ianb@erislabs.net>.
30141
30142 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
30143
30144         * users.txt: Update references for gnuit package.
30145
30146 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
30147
30148         * m4/getdelim.m4: Fix typo in copyright line.
30149
30150 2009-09-17  Bruno Haible  <bruno@clisp.org>
30151
30152         * lib/atoll.c: Use the standard header with GPL copyright.
30153         * lib/argz.in.h: Likewise.
30154         * lib/glob.c: Likewise.
30155         * lib/glob-libc.h: Likewise.
30156         * lib/random_r.c: Likewise.
30157         * lib/siglist.h: Likewise.
30158         * lib/strsignal.c: Likewise.
30159         Reported by Ian Beckwith <ianb@erislabs.net>.
30160
30161 2009-09-17  Eric Blake  <ebb9@byu.net>
30162
30163         rmdir: ensure correct dependency order
30164         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
30165
30166 2009-09-17  Bruno Haible  <bruno@clisp.org>
30167
30168         Disable assertion that fails on NetBSD 5 / i386.
30169         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
30170         Reported by Sam Steingold <sds@gnu.org>
30171         and Hasso Tepper <hasso@netbsd.org>.
30172
30173 2009-09-16  Eric Blake  <ebb9@byu.net>
30174
30175         unlinkdir: port to mingw
30176         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
30177         on which no one can unlink a directory.
30178
30179         stdlib: sort witness names
30180         * modules/stdlib (Makefile.am): Sort replacements.
30181         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
30182         * lib/stdlib.in.h: Likewise.
30183
30184         parse-duration-tests: avoid link failure
30185         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
30186         LIBINTL.
30187         Reported by Tom G. Christensen.
30188
30189         openat-tests: ensure unlinkat behaves like rmdir
30190         * tests/test-rmdir.c (main): Factor guts...
30191         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
30192         * modules/rmdir-tests (Files): Ship new file.
30193         * modules/openat-tests: New test.
30194         * tests/test-unlinkat.c: Likewise.
30195
30196         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
30197         * modules/rmdir-errno (Status, Notice): Now obsolete.
30198
30199         rmdir: work around cygwin 1.5.x and mingw bugs
30200         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
30201         * lib/rmdir.c (rmdir): Work around it.
30202         * modules/rmdir (Status, Notice): No longer obsolete.
30203         (Files): Add dos.m4.
30204         (Depends-on): Add unistd.
30205         (configure.ac): Set witnesses.
30206         (License): Relax to LGPLv2+.
30207         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
30208         * modules/unistd (Makefile.am): Substitute witnesses.
30209         * lib/unistd.in.h (rmdir): Declare replacement.
30210         * doc/posix-functions/rmdir.texi (rmdir): Document this.
30211         * modules/rmdir-tests: New tests.
30212         * tests/test-rmdir.c: Likewise.
30213
30214 2009-09-15  Eric Blake  <ebb9@byu.net>
30215
30216         fchdir: improve use of replacement functions
30217         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
30218         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
30219         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
30220         REPLACE_CLOSEDIR.
30221         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
30222         * modules/sys_stat (Makefile.am): Substitute correct witness.
30223         * modules/dirent (Makefile.am): Likewise.
30224         * modules/unistd (Makefile.am): Likewise.
30225         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
30226         * lib/unistd.in.h (dup): Likewise.
30227         * lib/sys_stat.in.h (fstat): Likewise.
30228
30229         maint: ignore gnulib-tool temp files
30230         * .gitignore: Ignore files created during gnulib-tool --test.
30231
30232 2009-09-13  Jim Meyering  <meyering@redhat.com>
30233
30234         posixtm: don't reject a time that specify "60" as the number of seconds
30235         * lib/posixtm.c (posixtime): The code to reject invalid dates
30236         would also reject a time specified with the .60 suffix.
30237         But POSIX allows that, in order to accommodate leap seconds.
30238         So don't reject it.
30239         (main): Adjust tests accordingly.
30240         * modules/posixtm (Depends-on): Add stpcpy.
30241
30242 2009-09-11  Jim Meyering  <meyering@redhat.com>
30243
30244         announce-gen: include [$release_type] in emitted Subject:
30245         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
30246         e.g., [stable] in the emitted Subject: line.
30247
30248 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30249
30250         Remove obsolete macros from several modules.
30251         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
30252         obsolete Autoconf macros with their modern counterparts.
30253         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
30254         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
30255         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
30256         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
30257         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
30258         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
30259         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
30260         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
30261         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
30262         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
30263         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
30264         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
30265         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
30266         * m4/sockets.m4 (gl_SOCKETS): Likewise.
30267         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
30268         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
30269         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
30270         * m4/time_r.m4 (gl_TIME_R): Likewise.
30271         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
30272         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
30273         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
30274
30275         Fix copyright header in build-aux scripts.
30276         * build-aux/git-version-gen: Fix copyright header to match GPLv3
30277         recommendation.
30278         * build-aux/ncftpput-ftp: Likewise.
30279         * build-aux/update-copyright: Likewise.
30280
30281 2009-09-09  Eric Blake  <ebb9@byu.net>
30282
30283         test-link: allow Linux choice of errno
30284         * tests/test-link.c (main): Relax test for alternate error.
30285
30286         strndup: fix improper m4 caching
30287         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
30288         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
30289         (gl_PREREQ_STRNDUP): Delete.
30290         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
30291         * modules/string (Makefile.am): Substitute it.
30292         * lib/string.in.h (strndup): Modernize prototype.
30293
30294         getcwd: port to mingw
30295         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
30296         different from the POSIX assumptions made throughout the getcwd
30297         module; fortunately, the mingw getcwd does not need replacement.
30298         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
30299         * modules/getcwd-tests: New test.
30300         * tests/test-getcwd.c: Likewise.
30301
30302         link: fix platform bugs
30303         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
30304         * lib/link.c (link): Work around them.  Fix related mingw bug.
30305         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
30306         * modules/unistd (Makefile.am): Substitute it.
30307         * lib/unistd.in.h (link): Declare replacement.
30308         * doc/posix-functions/link.texi (link): Document this.
30309         * modules/link (Depends-on): Add strdup-posix, sys_stat.
30310
30311         test-link: consolidate into single C program, test more cases
30312         * tests/test-link.sh: Delete.
30313         * tests/test-link.c: Test more error conditions.  Exposes bugs on
30314         at least Cygwin and Solaris.
30315         * modules/link-tests (Files): Remove unused file.
30316         (Depends-on): Add errno, sys_stat.
30317         (Makefile.am): Simplify.
30318
30319 2009-09-08  Bruno Haible  <bruno@clisp.org>
30320
30321         Work around towlower, towupper bug on mingw.
30322         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
30323         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
30324         * doc/posix-functions/towlower.texi: Mention the mingw bug.
30325         * doc/posix-functions/towupper.texi: Likewise.
30326         Reported by Eric Blake.
30327
30328 2009-09-08  Jim Meyering  <meyering@redhat.com>
30329
30330         build: don't try to run autoheader if we don't use it
30331         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
30332         is not used in configure.ac.
30333
30334 2009-09-08  Eric Blake  <ebb9@byu.net>
30335
30336         euidaccess: fix compilation error
30337         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
30338
30339         rawmemchr: relax license
30340         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
30341         okay.
30342         Reported by Jim Meyering.
30343
30344         mkfifoat: new module
30345         * modules/mkfifoat: New file.
30346         * lib/mkfifoat.c: Likewise.
30347         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
30348         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
30349         * modules/sys_stat (Makefile.am): Use them.
30350         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
30351         * MODULES.html.sh (File system functions): Mention module.
30352         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
30353         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
30354         * modules/mkfifoat-tests: New test.
30355         * tests/test-mkfifoat.c: Likewise.
30356
30357         strchrnul: relax license
30358         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
30359         okay.
30360         Reported by Jim Meyering.
30361
30362 2009-09-08  Eric Blake  <ebb9@byu.net>
30363
30364         fstatat: fix compilation on Solaris
30365         * lib/fstatat.c (includes): Add fcntl.h.
30366         Reported by Pádraig Brady.
30367
30368 2009-09-07  Eric Blake  <ebb9@byu.net>
30369
30370         rename: modernize replacement
30371         * modules/rename (Depends-on): Add stdio.
30372         (configure.ac): Declare witness.
30373         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
30374         stdio take care of replacement.
30375         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
30376         * modules/stdio (Makefile.am): Substitute them.
30377         * lib/stdio.in.h (rename): Declare replacement.
30378         * lib/rename.c (includes): Allow cross-compilation to non-windows
30379         machines.
30380         * doc/posix-functions/rename.texi (rename): Improve
30381         documentation.
30382
30383         stdio: sort witness names
30384         * modules/stdio (Makefile.am): Sort replacements.
30385         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
30386         * lib/stdio.in.h: Likewise.
30387
30388         getcwd: minor cleanups
30389         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
30390         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
30391
30392         openat: provide more convenience names
30393         * modules/faccessat (configure.ac): Add C witness.
30394         * lib/unistd.in.h (readlinkat): Fix typo.
30395         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
30396         convenience wrappers.
30397         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
30398         wrappers in syntax checks.
30399
30400 2009-09-06  Eric Blake  <ebb9@byu.net>
30401
30402         doc: fix comments in recent patches
30403         * lib/faccessat.c: Mention correct function.
30404         * lib/fchmodat.c: Likewise.
30405         * lib/fchownat.c: Likewise.
30406         * lib/symlinkat.c: Likewise.
30407         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
30408         constants.
30409
30410         faccessat, symlinkat: continue cleanup of previous patch
30411         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
30412         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
30413         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
30414         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
30415         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
30416         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
30417         set.
30418
30419 2009-09-06  Bruno Haible  <bruno@clisp.org>
30420
30421         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
30422         (fstatat): Declare if GNULIB_FSTATAT is set.
30423         (mkdirat): Declare if GNULIB_MKDIRAT is set.
30424         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
30425         (unlinkat): Declare if GNULIB_UNLINKAT is set.
30426         * modules/fcntl-h (Files): Remove m4/openat.m4.
30427         * modules/sys_stat (Files): Remove m4/openat.m4.
30428         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
30429         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
30430         * modules/unistd (Files): Remove m4/openat.m4.
30431         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
30432         GNULIB_OPENAT.
30433         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
30434         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
30435         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
30436         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
30437         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
30438         gl_OPENAT_DEFAULTS.
30439         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
30440         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
30441         Don't require gl_OPENAT_DEFAULTS.
30442         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
30443         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
30444         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
30445         (gl_OPENAT_DEFAULTS): Remove macro.
30446
30447 2009-09-06  Bruno Haible  <bruno@clisp.org>
30448
30449         * modules/openat (configure.ac): Remove unneeded witness.
30450
30451 2009-09-06  Bruno Haible  <bruno@clisp.org>
30452
30453         Set errno to ENOSYS when a function is entirely unsupported.
30454         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
30455         EOPNOTSUPP.
30456         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
30457         * modules/chown (Depends-on): Remove errno.
30458
30459 2009-09-06  Bruno Haible  <bruno@clisp.org>
30460
30461         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
30462
30463 2009-09-06  Bruno Haible  <bruno@clisp.org>
30464
30465         * lib/sys_stat.in.h: Fix preprocessor command indentation.
30466
30467 2009-09-06  Ben Pfaff  <blp@gnu.org>
30468             Bruno Haible  <bruno@clisp.org>
30469
30470         Work around a glibc bug in strtok_r.
30471         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
30472         Undefine if UNDEFINE_STRTOK_R is set.
30473         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
30474         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
30475         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
30476         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
30477         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
30478         UNDEFINE_STRTOK_R.
30479         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
30480
30481 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
30482
30483         exclude: minor fix
30484         * lib/exclude.c: Include wctype.h
30485
30486 2009-09-06  Akim Demaille  <demaille@gostai.com>
30487
30488         bootstrap: improve error message
30489         * build-aux/bootstrap (find_tool): Upon failure, report the list
30490         of candidates.
30491         Honor the initial value of the envvar.
30492
30493 2009-09-05  Eric Blake  <ebb9@byu.net>
30494
30495         symlinkat: new module
30496         * modules/symlinkat: New file.
30497         * lib/symlinkat.c: Likewise.
30498         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
30499         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
30500         * modules/unistd (Makefile.am): Use them.
30501         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
30502         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
30503         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
30504         * MODULES.html.sh (File system functions): Mention module.
30505         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
30506         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
30507         * modules/symlinkat-tests: New test.
30508         * tests/test-symlinkat.c: Likewise.
30509
30510         test-openat-safer: add more checks
30511         * tests/test-openat-safer.c (main): Check more code paths.
30512
30513 2009-09-05  Jim Meyering  <meyering@redhat.com>
30514
30515         syntax-check: detect unnecessary inclusion of openat.h
30516         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
30517
30518 2009-09-05  Bruno Haible  <bruno@clisp.org>
30519
30520         Support towlower, towupper.
30521         * doc/posix-functions/towlower.texi: Mention module wctype.
30522         * doc/posix-functions/towupper.texi: Likewise.
30523         * lib/wctype.in.h (towlower, towupper): New functions.
30524         * tests/test-wctype.c: Include stdio.h, stdlib.h.
30525         (ASSERT): New macro.
30526         (e): New variable.
30527         (main): Test also towlower, towupper. Test WEOF argument.
30528         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
30529
30530 2009-09-05  Bruno Haible  <bruno@clisp.org>
30531
30532         Fix conversion behaviour when the input is invalid.
30533         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
30534         mark occurring in first pass of indirect conversion.
30535         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
30536         input.
30537         Found by clang's static analyzer.
30538
30539 2009-09-05  Bruno Haible  <bruno@clisp.org>
30540
30541         * tests/test-striconveh.c (main): Test indirect conversion on platforms
30542         where direct conversion is possible.
30543
30544 2009-09-04  Eric Blake  <ebb9@byu.net>
30545
30546         openat: fail with ENOENT on empty name
30547         * lib/openat-proc.c (openat_proc_name): Special-case the empty
30548         buffer.
30549
30550         link-follow: fix logic bug in prior patch
30551         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
30552         reversed sense of yes and no in prior patch.  Avoid confusing
30553         compilation failure with desired semantics.
30554
30555         link-follow: accomodate mingw and cross-compilation
30556         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
30557         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
30558         cross-compilation results to -1, to make linkat easier to
30559         implement when cross-compiling.  Trivially support mingw.
30560         * modules/link-follow (configure.ac): Call new name.
30561         * NEWS: Mention this.
30562
30563 2009-09-03  Eric Blake  <ebb9@byu.net>
30564
30565         faccessat: compile replacement
30566         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
30567         needed.
30568
30569         fts: fix compilation error
30570         * lib/fts.c (includes): Re-add "openat.h", for
30571         openat_needs_fchdir.
30572
30573         faccessat: new module
30574         * modules/faccessat: New file.
30575         * lib/faccessat.c: Likewise.
30576         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
30577         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
30578         * modules/unistd (Makefile.am): Use it.
30579         * lib/unistd.in.h (faccessat): Declare it.
30580         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
30581         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
30582         * MODULES.html.sh (File system functions): Mention it.
30583         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
30584         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
30585
30586         euidaccess: prefer POSIX over non-standard implementation
30587         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
30588         * lib/euidaccess.c (euidaccess): Use it if available.
30589
30590         openat: make template easier to use
30591         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
30592         AT_FUNC_F2 to be undefined.
30593         (VALIDATE_FLAG): New macro; use it to reject bad flags.
30594         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
30595         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
30596         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
30597         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
30598         Likewise.
30599         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
30600         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
30601         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
30602         Likewise.
30603
30604         openat: declare in POSIX headers
30605         * NEWS: Mention this.
30606         * modules/openat (configure.ac): Declare witnesses.
30607         (Depends-on): Add fcntl-h, sys_stat, unistd.
30608         (Include): Mention correct headers.
30609         * modules/fcntl-h (Depends-on): Add link-warning.
30610         (Files): Add openat.m4.
30611         (Makefile.am): Substitute witnesses.
30612         * modules/sys_stat (Files, Makefile.am): Likewise.
30613         * modules/unistd (Files, Makefile.am): Likewise.
30614         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
30615         (gl_OPENAT_DEFAULTS): New macro.
30616         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
30617         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
30618         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
30619         (SYS_STAT_H): Remove unused variable.
30620         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
30621         * lib/fcntl--.h (includes): Remove unneeded header.
30622         * lib/openat-safer.c (includes): Likewise.
30623         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
30624         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
30625         appropriate headers.
30626         (__OPENAT_PREFIX): Delete.
30627         * lib/fcntl.in.h (openat): Provide declaration.
30628         (AT_FDCWD): Fix Solaris bug.
30629         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
30630         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
30631         * lib/fchmodat.c (includes):  Adjust to find declaration.
30632         * lib/fchownat.c (includes): Likewise.
30633         * lib/mkdirat.c (includes): Likewise.
30634         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
30635         still visible.
30636
30637 2009-09-02  Eric Blake  <ebb9@byu.net>
30638
30639         errno: use consistently
30640         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
30641         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
30642         * lib/canonicalize.c (ELOOP): Likewise.
30643         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
30644         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
30645         * lib/lchown.c (EOPNOTSUPP): Likewise.
30646         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
30647         * lib/savewd.c (ESTALE): Likewise.
30648         * lib/settime.c (ENOSYS): Likewise.
30649         * lib/utimens.c (ENOSYS): Likewise.
30650         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
30651         * lib/chdir-safer.c (ELOOP): Likewise.
30652         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
30653         * modules/c-stack (Depends-on): Add errno.
30654         * modules/canonicalize (Depends-on): Likewise.
30655         * modules/chdir-safer (Depends-on): Likewise.
30656         * modules/fdopendir (Depends-on): Likewise.
30657         * modules/inet_ntop (Depends-on): Likewise.
30658         * modules/inet_pton (Depends-on): Likewise.
30659         * modules/lchown (Depends-on): Likewise.
30660         * modules/openat (Depends-on): Likewise.
30661         * modules/savewd (Depends-on): Likewise.
30662         * modules/settime (Depends-on): Likewise.
30663         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
30664
30665         fts: avoid leaking fds
30666         * modules/fts (Depends-on): Add cloexec.
30667         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
30668         flag.
30669
30670         fts: make directory fds more robust
30671         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
30672         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
30673
30674         backupfile, chdir-long, fts, savedir: make safer
30675         * lib/backupfile.c (includes): Use "dirent--.h", since
30676         numbered_backup can write to stderr during readdir.
30677         * lib/savedir.c (includes): Likewise.
30678         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
30679         emulation can write to stderr on failure.
30680         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
30681         * lib/getcwd.c: Document why opendir_safer is unused.
30682         * lib/glob.c: Likewise.
30683         * lib/scandir.c: Likewise.
30684         * lib/openat-proc.c: Likewise, for open_safer.
30685         * modules/backupfile (Depends-on): Add dirent-safer.
30686         * modules/savedir (Depends-on): Likewise.
30687         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
30688         * modules/chdir-long (Depends-on): Add openat-safer.
30689
30690         openat-safer: new module
30691         * modules/openat-safer: New file.
30692         * lib/openat-safer.c: Likewise.
30693         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
30694         * lib/fcntl-safer.h (openat_safer): Declare.
30695         * lib/fcntl--.h (openat): Override.
30696         * MODULES.html.sh (File descriptor based I/O): Mention it.
30697         * lib/openat.h: Add double-inclusion guards.
30698         * lib/openat.c (includes): Only include "fcntl-safer.h", not
30699         "fcntl--.h", so we can implement openat.
30700         * modules/openat-safer-tests: New test.
30701         * tests/test-openat-safer.c: New file.
30702
30703         dirent-safer: new module
30704         * modules/dirent-safer: New file.
30705         * lib/dirent--.h: Likewise.
30706         * lib/dirent-safer.h: Likewise.
30707         * lib/opendir-safer.c: Likewise.
30708         * m4/dirent-safer.m4: Likewise.
30709         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
30710         * modules/dirent-safer-tests: New test.
30711         * tests/test-dirent-safer.c: New file.
30712         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
30713
30714         fdopendir: optimize on mingw
30715         * lib/unistd.in.h (_gl_directory_name): New prototype.
30716         * lib/fchdir.c (_gl_directory_name): Implement it.
30717         (fchdir): Use it to simplify implementation.
30718         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
30719         fchdir, when available, to avoid calling [f]chdir().
30720
30721         fdopendir: split into its own module
30722         * lib/openat.c (fdopendir): Move...
30723         * lib/fdopendir.c: ...into new file.
30724         * modules/fdopendir: New module.
30725         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
30726         * modules/openat (Depends-on): Add fdopendir.
30727         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
30728         fdopendir here.
30729         * modules/savedir (Depends-on): Only need fdopendir, not full
30730         openat.
30731         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
30732         * lib/openat.h (fdopendir): Drop prototype.
30733         * lib/dirent.in.h (fdopendir): Provide prototype.
30734         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
30735         * modules/dirent (Makefile.am): Substitute them.
30736         * MODULES.html.sh (File system functions): Mention it.
30737         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
30738         * modules/fdopendir-tests: New file.
30739         * tests/test-fdopendir.c: Likewise.
30740
30741         fchdir: use more consistent macro convention
30742         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
30743         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
30744         REPLACE_FCHDIR, rather than relying on config.h macros.
30745         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
30746         inside a single make-time REPLACE_FCHDIR block, rather than using
30747         the config.h FCHDIR_REPLACEMENT.
30748         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
30749         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
30750         Manage fstat replacement.
30751         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
30752         REPLACE_FCHDIR.
30753         * modules/sys_stat (Files): Add m4/unistd_h.m4.
30754         (Makefile.am): Substitute REPLACE_FCHDIR.
30755         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
30756         FCHDIR_REPLACEMENT.
30757         * lib/dup-safer.c (dup_safer): Likewise.
30758         * lib/dup2.c (rpl_dup2): Likewise.
30759         * lib/dup3.c (rpl_dup3): Likewise.
30760         * lib/open.c (rpl_open): Likewise.
30761
30762         fchdir: simplify error handling, and support dup3
30763         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
30764         stdbool, malloc-posix, realloc-posix.
30765         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
30766         (ensure_dirs_slot): Return false on allocation failure.
30767         (rpl_dup2): Delete.
30768         (_gl_register_dup): New function.
30769         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
30770         (_gl_register_fd): Close fd on allocation failure.
30771         * lib/fcntl.in.h (_gl_register_fd): Update signature.
30772         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
30773         prototype.
30774         (rpl_dup2_fchdir): Delete prototype.
30775         * lib/open.c (open): Update caller.
30776         * lib/dup2.c (dup2): Track fchdir metadata.
30777         * lib/dup3.c (dup3): Likewise.
30778         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
30779         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
30780
30781 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30782
30783         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
30784         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
30785         don't pass arguments to AC_OUTPUT.
30786
30787 2009-09-02  Bruno Haible  <bruno@clisp.org>
30788
30789         * modules/mkdtemp (License): Relicense under LGPLv2+.
30790         Reported by Paolo Bonzini.
30791
30792 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30793
30794         Replace uses of obsolete autoconf macros in Jim's modules.
30795         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
30796         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
30797         can evoke a warning from autoconf when run with -Wobsolete
30798         enabled.  They were declared obsolete for good reasons (see
30799         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
30800         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
30801         should not continue using the deprecated macros.
30802         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
30803         obsolete Autoconf macros with modern counterparts.
30804         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
30805         * m4/dos.m4 (gl_AC_DOS): Likewise.
30806         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
30807         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
30808         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
30809         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
30810         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
30811         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
30812         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
30813         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
30814         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
30815         Likewise.
30816         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
30817         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
30818         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
30819         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
30820         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
30821         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
30822
30823 2009-09-01  Eric Blake  <ebb9@byu.net>
30824
30825         fchdir: fix off-by-one bug in previous patch
30826         * lib/fchdir.c (rpl_fstat): Use correct bounds.
30827         (_gl_unregister_fd): Delete useless if.
30828
30829 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
30830
30831         maint.mk: sort the list of syntax-check rules
30832         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
30833         easier to get a sense of progress when the rules are run sequentially
30834         and take a long time.
30835
30836 2009-09-01  Simon Josefsson  <simon@josefsson.org>
30837
30838         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
30839         * modules/netinet_in: Likewise.
30840         * modules/sys_file: Likewise.
30841         * modules/sys_ioctl: Likewise.
30842         * modules/sys_select: Likewise.
30843         * modules/sys_socket: Likewise.
30844         * modules/sys_stat: Likewise.
30845         * modules/sys_time: Likewise.
30846         * modules/sys_times: Likewise.
30847         * modules/sys_utsname: Likewise.
30848         * modules/sys_wait: Likewise.
30849
30850 2009-09-01  Jim Meyering  <meyering@redhat.com>
30851
30852         fts: help ensure that return values are not ignored
30853         * lib/fts_.h (__GNUC_PREREQ): Define.
30854         (__attribute_warn_unused_result__): Define.
30855         (fts_children, fts_close, fts_open, fts_read): Declare with
30856         __attribute_warn_unused_result__.
30857
30858         fts: fts_close now fails also when closing a dir file descriptor fails
30859         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
30860         and propagate to caller, along with errno.
30861
30862         announce-gen: correct formatting in --help output
30863         * build-aux/announce-gen (usage): Move the one-line description in
30864         --help output "up", to where it belongs, just after Usage:.
30865
30866 2009-08-31  Eric Blake  <ebb9@byu.net>
30867
30868         fchdir: port to mingw
30869         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
30870         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
30871         opened, then use a substitute.
30872         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
30873         replacement.
30874         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
30875         (_gl_register_fd): No need to check stat if open already filters
30876         all directories.
30877         (fchdir): Fix error condition to match POSIX.
30878         * modules/fchdir (Depends-on): Add sys_stat.
30879         * doc/posix-functions/open.texi (open): Document the limitation.
30880         * modules/fchdir-tests: New file.
30881         * tests/test-fchdir.c: Likewise.
30882
30883         canonicalize: allow cross-testing from cygwin to mingw
30884         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
30885         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
30886         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
30887         Likewise.
30888         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
30889         target does not support symlinks.
30890         * tests/test-canonicalize-lgpl.sh: Likewise.
30891
30892         chown: avoid compilation warning on mingw
30893         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
30894         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
30895         mingw.
30896         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
30897         * modules/chown (Depends-on): Add errno.
30898
30899 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
30900
30901         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
30902         command.
30903
30904 2009-08-31  Jim Meyering  <meyering@redhat.com>
30905
30906         canonicalize: remove useless initialization
30907         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
30908         initialization of local, "end".
30909
30910 2009-08-30  Bruno Haible  <bruno@clisp.org>
30911
30912         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
30913         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
30914         ENOSYS.
30915
30916 2009-08-30  Bruno Haible  <bruno@clisp.org>
30917
30918         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
30919         /usr/xpg4/bin/tr when it exists.
30920         * tests/test-pipe-filter-gi1.sh: Likewise.
30921
30922 2009-08-30  Bruno Haible  <bruno@clisp.org>
30923
30924         Work around deficient /usr/bin/id program on Solaris.
30925         * tests/test-file-has-acl.sh (ID): New variable.
30926         * tests/test-set-mode-acl.sh (ID): Likewise.
30927         * tests/test-copy-acl.sh (ID): Likewise.
30928         * tests/test-copy-file.sh (ID): Likewise.
30929
30930 2009-08-30  Bruno Haible  <bruno@clisp.org>
30931
30932         New module 'xstriconveh'.
30933         * lib/xstriconveh.h: New file.
30934         * lib/xstriconveh.c: New file.
30935         * modules/xstriconveh: New file.
30936
30937 2009-08-30  Bruno Haible  <bruno@clisp.org>
30938
30939         Make it easier to use mem_cd_iconveh.
30940         * lib/striconveh.h (iconveh_t): New type.
30941         (iconveh_open, iconveh_close): New declarations.
30942         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
30943         with a single 'const iconveh_t *' argument.
30944         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
30945         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
30946         with a single 'const iconveh_t *' argument.
30947         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
30948         * tests/test-striconveh.c (main): Update.
30949         * NEWS: Mention the change.
30950
30951 2009-08-30  Bruno Haible  <bruno@clisp.org>
30952
30953         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
30954         problem.
30955
30956 2009-08-30  Bruno Haible  <bruno@clisp.org>
30957
30958         Work around iconv_open problem on Solaris.
30959         * lib/iconv_open-solaris.gperf: New file.
30960         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
30961         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
30962         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
30963         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
30964         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
30965         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
30966
30967 2009-08-29  Jim Meyering  <meyering@redhat.com>
30968
30969         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
30970         * top/maint.mk (cvs-check): Remove target; it was just an alias
30971         to the better-named vc-diff-check.
30972         (maintainer-distcheck): Remove rule.  It was used only from
30973         the (alpha/beta/major) target, and all of its commands but one
30974         were coreutils-specific.
30975         (vc-dist): Remove rule.
30976         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
30977         Run vc-diff-check, not vc-dist.
30978         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
30979
30980 2009-08-27  Bruno Haible  <bruno@clisp.org>
30981
30982         * tests/test-bitrotate.c (main): Remove test that uses a shift count
30983         of 0.
30984
30985 2009-08-27  Bruno Haible  <bruno@clisp.org>
30986
30987         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
30988         compilers.
30989         * doc/func.texi: Document the SunPRO C bug.
30990
30991 2009-08-27  Bruno Haible  <bruno@clisp.org>
30992
30993         Fix link error on Solaris.
30994         * tests/test-parse-duration.c (xstrdup): Remove function.
30995
30996 2009-08-26  Pádraig Brady  <P@draigbrady.com>
30997
30998         ignore-value: handle pointer types, too
30999         * lib/ignore-value.h (__attribute__): Remove definition.
31000         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
31001         of a more concise and more-often effective "(void) i" statement.
31002         (ignore_ptr): New function to suppress warnings from functions that
31003         return pointers, and to make it explicit that one function doesn't
31004         handle all cases.
31005
31006 2009-08-25  Bruno Haible  <bruno@clisp.org>
31007
31008         dup2: work around a Linux bug.
31009         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
31010         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
31011         * doc/posix-functions/dup2.texi: Mention the Linux bug.
31012         Reported by Simon Josefsson.
31013
31014 2009-08-25  Jim Meyering  <meyering@redhat.com>
31015
31016         libguestfs uses gnulib
31017         * users.txt: Add libguestfs.
31018
31019 2009-08-24  Eric Blake  <ebb9@byu.net>
31020
31021         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
31022         * lib/pipe2.c (includes): Add binary-io.h.
31023         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
31024
31025 2009-08-24  Bruno Haible  <bruno@clisp.org>
31026
31027         Tolerate declared but missing accept4 syscall.
31028         * lib/accept4.c (accept4): Invoke original accept4 function first, if
31029         available.
31030         * lib/sys_socket.in.h (accept4): If the function is already present,
31031         override it.
31032         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
31033         * modules/accept4 (Makefile.am): Compile accept4.c always.
31034         Reported by Paolo Bonzini and Eric Blake.
31035
31036 2009-08-23  Bruno Haible  <bruno@clisp.org>
31037
31038         New module 'accept4'.
31039         * lib/sys_socket.in.h (accept4): New declaration.
31040         * lib/accept4.c: New file.
31041         * m4/accept4.m4: New file.
31042         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
31043         GNULIB_ACCEPT4, HAVE_ACCEPT4.
31044         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
31045         HAVE_ACCEPT4.
31046         * modules/accept4: New file.
31047         * doc/glibc-functions/accept4.texi: Mention the new module.
31048
31049 2009-08-24  Jim Meyering  <meyering@redhat.com>
31050
31051         progname: also set global program_invocation_name, when possible
31052         Before this change, a libtool-enabled program that calls glibc's
31053         error function would report the program name as
31054         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
31055         * modules/progname (configure.ac): Check for a declaration of
31056         program_invocation_name.
31057         * lib/progname.c:  Include <errno.h>.
31058         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
31059         Set program_invocation_name.
31060
31061 2009-08-23  Bruno Haible  <bruno@clisp.org>
31062
31063         * lib/dup3.c: Include <string.h>.
31064
31065 2009-08-23  Bruno Haible  <bruno@clisp.org>
31066
31067         * lib/dup3.c (dup3): Test only once whether the system actually exists.
31068         * lib/pipe2.c (pipe2): Likewise.
31069         Suggested by Eric Blake.
31070
31071 2009-08-23  Bruno Haible  <bruno@clisp.org>
31072
31073         Tolerate declared but missing dup3 syscall.
31074         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
31075         * lib/unistd.in.h (dup3): If the function is already present,
31076         override it.
31077         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
31078         * modules/dup3 (Makefile.am): Compile dup3.c always.
31079         Reported by Paolo Bonzini.
31080
31081 2009-08-23  Bruno Haible  <bruno@clisp.org>
31082
31083         Tolerate declared but missing pipe2 syscall.
31084         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
31085         available.
31086         * lib/unistd.in.h (pipe2): If the function is already present,
31087         override it.
31088         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
31089         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
31090         Reported by Paolo Bonzini.
31091
31092 2009-08-23  Bruno Haible  <bruno@clisp.org>
31093
31094         * lib/pipe2.c (pipe2): Move #ifs inside function.
31095
31096 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
31097
31098         quotearg: document limitations of quote_these_too
31099         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
31100         those limitations are created.
31101         * lib/quotearg.h (set_char_quoting): Document that digits and
31102         letters that are special after backslash are not permitted.
31103         (quotearg_char): Cross-reference set_char_quoting documentation.
31104
31105 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
31106
31107         quotearg: implement custom_quoting_style
31108         * lib/quotearg.c: (struct quoting_options): Add left_quote and
31109         right_quote fields.
31110         (set_custom_quoting): New public function.
31111         (quotearg_buffer_restyled): Add left_quote and right_quote
31112         arguments, handle them very much like locale quoting, and update
31113         all uses.
31114         (quotearg_n_custom): New public function.
31115         (quotearg_n_custom_mem): New public function.
31116         (quotearg_custom): New public function.
31117         (quotearg_custom_mem): New public function.
31118         * lib/quotearg.h: Prototype and document new public functions.
31119         (enum quoting_style): For escape_quoting_style and
31120         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
31121         ignored even though they're otherwise like c_quoting_style.
31122         Add custom_quoting_style member and document with comparison to
31123         clocale_quoting_style.
31124         * tests/test-quotearg.c (custom_quotes): New array.
31125         (custom_results): New array.
31126         (main): Extend to test custom quoting.
31127
31128 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
31129
31130         quotearg: fix right quote escaping when it's in quote_these_too
31131         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
31132         quote, be sure to prepend only one backslash.
31133         * tests/test-quotearg.c (use_quote_double_quotes): New function.
31134         (main): Test it.
31135
31136 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
31137
31138         quotearg-tests: test escaping of embedded locale quotes
31139         * tests/test-quotearg.c (struct result_strings): Add member for
31140         new input.
31141         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
31142         (inputs): Add new input.
31143         (results_g): Add expected results.
31144         (flag_results): Likewise.
31145         (locale_results): Likewise.
31146         (compare_strings): Check those.
31147
31148 2009-08-23  Bruno Haible  <bruno@clisp.org>
31149
31150         Tests for module 'dup3'.
31151         * modules/dup3-tests: New file.
31152         * tests/test-dup3.c: New file.
31153
31154         New module 'dup3'.
31155         * lib/unistd.in.h (dup3): New declaration.
31156         * lib/dup3.c: New file.
31157         * m4/dup3.m4: New file.
31158         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
31159         HAVE_DUP3.
31160         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
31161         * modules/dup3: New file.
31162         * doc/glibc-functions/dup3.texi: Mention the new module.
31163
31164 2009-08-23  Bruno Haible  <bruno@clisp.org>
31165
31166         Tweak the dup2 test.
31167         * tests/test-dup2.c (main): Create the test file empty. Verify that an
31168         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
31169         the test file is still empty. Fix argument order of lseek.
31170
31171 2009-08-23  Bruno Haible  <bruno@clisp.org>
31172
31173         Avoid test link errors when the modules getopt-gnu, gettext are used.
31174         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
31175         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
31176
31177 2009-08-23  Bruno Haible  <bruno@clisp.org>
31178
31179         Fix getdtablesize() on mingw.
31180         * lib/getdtablesize.c (getdtablesize): Implement differently.
31181         * lib/unistd.in.h (getdtablesize): Improve comment.
31182
31183 2009-08-23  Bruno Haible  <bruno@clisp.org>
31184
31185         New module 'mkostemp'.
31186         Based on Ulrich Drepper's 2007-08-10 change in glibc.
31187         * lib/stdlib.in.h (mksotemp): New declaration.
31188         * lib/mkostemp.c: New file, from glibc with modifications.
31189         * lib/tempname.h (GT_FILE): Remove outdated comment.
31190         (gen_tempname): Add flags argument.
31191         * lib/tempname.c (__GT_BIGFILE): Remove macro.
31192         (__GT_FILE): Map to 1.
31193         (small_open, large_open): Remove macros.
31194         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
31195         * lib/mkstemp.c (mkstemp): Update.
31196         * lib/mkdtemp.c (mkdtemp): Likewise.
31197         * m4/mkostemp.m4: New file.
31198         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
31199         HAVE_MKOSTEMP.
31200         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
31201         HAVE_MKOSTEMP.
31202         * modules/mkostemp: New file, based on modules/mkstemp.
31203         * doc/glibc-functions/mkostemp.texi: Mention the new module.
31204         * NEWS: Mention the change.
31205
31206 2009-08-23  Bruno Haible  <bruno@clisp.org>
31207
31208         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
31209         Reported by Eric Blake.
31210
31211 2009-08-23  Bruno Haible  <bruno@clisp.org>
31212
31213         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
31214         Reported by Eric Blake.
31215
31216 2009-08-23  Bruno Haible  <bruno@clisp.org>
31217
31218         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
31219         * modules/pipe2 (Depends-on): Likewise.
31220
31221 2009-08-23  Eric Blake  <ebb9@byu.net>
31222
31223         fcntl-h: add O_TTY_INIT support
31224         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
31225         * tests/test-fcntl-h.c (o): Test it.
31226         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
31227
31228         fcntl-h: rename from fcntl, in preparation for fcntl(2)
31229         * modules/fcntl: Move <fcntl.h> header replacement...
31230         * modules/fcntl-h: ...to new name, so as not to collide with
31231         like-named function.
31232         * tests/test-fcntl.c: Rename...
31233         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
31234         * modules/fcntl-tests: Rename...
31235         * modules/fcntl-h-tests: ...to this.  Update test file name.
31236         * modules/chdir-long (Depends-on): Update clients.
31237         * modules/chdir-safer (Depends-on): Likewise.
31238         * modules/fcntl-safer (Depends-on): Likewise.
31239         * modules/fts (Depends-on): Likewise.
31240         * modules/mkancesdirs (Depends-on): Likewise.
31241         * modules/mkdir-p (Depends-on): Likewise.
31242         * modules/open (Depends-on): Likewise.
31243         * modules/savewd (Depends-on): Likewise.
31244         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
31245         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
31246
31247 2009-08-22  Bruno Haible  <bruno@clisp.org>
31248
31249         * modules/binary-io (License): Relicense under LGPL.
31250         * modules/pipe2 (License): Likewise.
31251
31252 2009-08-22  Bruno Haible  <bruno@clisp.org>
31253
31254         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
31255         return value.
31256         * lib/pipe-filter-gi.c (filter_init): Likewise.
31257         Reported by Eric Blake.
31258
31259 2009-08-22  Bruno Haible  <bruno@clisp.org>
31260
31261         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
31262         * modules/pipe (Depends-on): Add pipe2.
31263
31264 2009-08-22  Bruno Haible  <bruno@clisp.org>
31265
31266         Tests for module 'pipe2'.
31267         * modules/pipe2-tests: New file.
31268         * tests/test-pipe2.c: New file.
31269
31270         New module 'pipe2'.
31271         * lib/unistd.in.h (pipe2): New declaration.
31272         * lib/pipe2.c: New file.
31273         * m4/pipe2.m4: New file.
31274         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
31275         HAVE_PIPE2.
31276         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
31277         * modules/pipe2: New file.
31278         * doc/glibc-functions/pipe2.texi: Mention the new module.
31279
31280 2009-08-22  Bruno Haible  <bruno@clisp.org>
31281
31282         Reference some new glibc functions.
31283         * doc/glibc-functions/accept4.texi: New file.
31284         * doc/glibc-functions/dup3.texi: New file.
31285         * doc/glibc-functions/mkostemp.texi: New file.
31286         * doc/glibc-functions/pipe2.texi: New file.
31287         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
31288         (Glibc sys/socket.h): Refer to accept4.
31289         (Glibc unistd.h): Refer to dup3, pipe2.
31290         Reported by Eric Blake.
31291
31292 2009-08-22  Jim Meyering  <meyering@redhat.com>
31293             Bruno Haible  <bruno@clisp.org>
31294
31295         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
31296         This makes it so packages using automake-1.11's silent-rules option
31297         can print e.g., a single "GEN    configmake.h" line, rather than
31298         the 30+ statements that perform the job.  If you want to see the
31299         actual commands, you can still run "make V=1".
31300         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
31301         so that make output is abbreviated when those variables are defined
31302         appropriately.
31303         * modules/argz: Likewise.
31304         * modules/arpa_inet: Likewise.
31305         * modules/byteswap: Likewise.
31306         * modules/configmake: Likewise.
31307         * modules/dirent: Likewise.
31308         * modules/errno: Likewise.
31309         * modules/fcntl: Likewise.
31310         * modules/float: Likewise.
31311         * modules/fnmatch: Likewise.
31312         * modules/getopt-posix: Likewise.
31313         * modules/glob: Likewise.
31314         * modules/iconv_open: Likewise.
31315         * modules/inttypes: Likewise.
31316         * modules/localcharset: Likewise.
31317         * modules/locale: Likewise.
31318         * modules/math: Likewise.
31319         * modules/netdb: Likewise.
31320         * modules/netinet_in: Likewise.
31321         * modules/poll: Likewise.
31322         * modules/posix_spawnp-tests: Likewise.
31323         * modules/sched: Likewise.
31324         * modules/search: Likewise.
31325         * modules/selinux-h: Likewise.
31326         * modules/signal: Likewise.
31327         * modules/spawn: Likewise.
31328         * modules/stdarg: Likewise.
31329         * modules/stdbool: Likewise.
31330         * modules/stddef: Likewise.
31331         * modules/stdint: Likewise.
31332         * modules/stdio: Likewise.
31333         * modules/stdlib: Likewise.
31334         * modules/string: Likewise.
31335         * modules/strings: Likewise.
31336         * modules/sys_file: Likewise.
31337         * modules/sys_ioctl: Likewise.
31338         * modules/sys_select: Likewise.
31339         * modules/sys_socket: Likewise.
31340         * modules/sys_stat: Likewise.
31341         * modules/sys_time: Likewise.
31342         * modules/sys_times: Likewise.
31343         * modules/sys_utsname: Likewise.
31344         * modules/sys_wait: Likewise.
31345         * modules/sysexits: Likewise.
31346         * modules/time: Likewise.
31347         * modules/unistd: Likewise.
31348         * modules/wchar: Likewise.
31349         * modules/wctype: Likewise.
31350
31351 2009-08-22  Jim Meyering  <meyering@redhat.com>
31352
31353         announce-gen: detect write failure
31354         * build-aux/announce-gen: Add Coda at end.
31355         Remove equivalent-but-more-verbose block at top.
31356
31357 2009-08-19  Akim Demaille  <demaille@gostai.com>
31358
31359         bootstrap: --help to stdout.
31360         * bootstrap (usage): Don't send --help to stderr.
31361         Use a here doc instead of a long string.
31362
31363 2009-08-21  Eric Blake  <ebb9@byu.net>
31364
31365         test-popen-safer: split from test-popen
31366         * tests/test-popen.c (main): Move...
31367         * tests/test-popen.h: ...into new file.
31368         * tests/test-popen-safer2.c: New file.
31369         * modules/popen-tests (Files): Add test-popen.h.
31370         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
31371         Suggested by Bruno Haible.
31372
31373         test-fcntl-safer: split from test-open
31374         * tests/test-open.c (main): Move...
31375         * tests/test-open.h: ...into new file.
31376         * tests/test-fcntl-safer.c: New file.
31377         * modules/open-tests (Files): Add test-open.h.
31378         * modules/fcntl-safer-tests: New file.
31379         Suggested by Bruno Haible.
31380
31381         test-fopen-safer: split from test-fopen
31382         * tests/test-fopen.c (main): Move...
31383         * tests/test-fopen.h: ...into new file.
31384         * tests/test-fopen-safer.c: New file.
31385         * modules/fopen-tests (Files): Add test-fopen.h.
31386         * modules/fopen-safer-tests: New file.
31387         Suggested by Bruno Haible.
31388
31389 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
31390
31391         popen-safer: test O_CLOEXEC at run-time.
31392         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
31393
31394 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
31395
31396         fcntl: move more flags to the header
31397         * lib/cloexec.c: Do not define FD_CLOEXEC here.
31398         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
31399         * lib/fcntl.in.h: Do both things here.
31400
31401 2009-08-21  Jim Meyering  <meyering@redhat.com>
31402
31403         consistently remove $@-t before redirecting to it
31404         * modules/argz: Remove $@-t and $@ before redirecting to the former.
31405         * modules/alloca-opt: Likewise.
31406         * modules/byteswap: Likewise.
31407         * modules/fnmatch: Likewise.
31408         * modules/getopt-posix: Likewise.
31409         * modules/glob: Likewise.
31410         * modules/poll: Likewise.
31411         * modules/posix_spawnp-tests: Likewise.
31412         * modules/sys_socket: Likewise.
31413         * modules/sysexits: Likewise.
31414
31415 2009-08-21  Eric Blake  <ebb9@byu.net>
31416
31417         popen: simplify access to original popen
31418         * lib/popen.c (rpl_popen): No need to worry about popen being a
31419         macro.
31420         Reported by Bruno Haible.
31421
31422 2009-08-20  Eric Blake  <ebb9@byu.net>
31423
31424         build: avoid some compiler warnings
31425         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
31426         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
31427         type.
31428         (new_exclude_segment, excluded_file_pattern_p)
31429         (excluded_file_name_p): Reduce scope.
31430         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
31431         old-style declaration.
31432
31433 2009-08-20  Simon Josefsson  <simon@josefsson.org>
31434
31435         * tests/test-exclude1.sh: Handle Windows EOL.
31436         * tests/test-exclude2.sh: Likewise.
31437         * tests/test-exclude3.sh: Likewise.
31438         * tests/test-exclude4.sh: Likewise.
31439         * tests/test-exclude5.sh: Likewise.
31440         * tests/test-exclude6.sh: Likewise.
31441         * tests/test-exclude7.sh: Likewise.
31442
31443 2009-08-19  Akim Demaille  <demaille@gostai.com>
31444
31445         bootstrap: find sha1sum when named gsha1sum.
31446         * bootstrap (find_tool): New.
31447         ($SHA1SUM): New.
31448         Use it.
31449
31450 2009-08-20  Jim Meyering  <meyering@redhat.com>
31451
31452         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
31453         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
31454         expression that converts "." in a file name to "\." in the resulting
31455         regexp.  Start with a dummy statement, so that prior shell variable
31456         definitions are expanded portably.  Reported by Simon Josefsson.
31457
31458 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
31459
31460         Fix polling for writeability of a screen buffer.
31461         * lib/poll.c: Distinguish input and screen buffers for the
31462         Win32 implementation.
31463         * lib/select.c: Likewise.
31464
31465 2009-08-19  Eric Blake  <ebb9@byu.net>
31466
31467         popen-safer: prevent popen from clobbering std descriptors
31468         * modules/popen-safer: New file.
31469         * lib/popen-safer.c: Likewise.
31470         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
31471         * lib/stdio--.h (popen): Provide override.
31472         * lib/stdio-safer.h (popen_safer): Provide declaration.
31473         * tests/test-popen.c (includes): Partially test this.
31474         * modules/popen-safer-tests: New file, for more tests.
31475         * tests/test-popen-safer.c: Likewise.
31476         * MODULES.html.sh (file stream based Input/Output): Mention it.
31477
31478         tests: test some of the *-safer modules
31479         * modules/fopen-safer (Depends-on): Add fopen.
31480         * modules/fcntl-safer (Depends-on): Add fcntl.
31481         * modules/stdlib-safer (Depends-on): Add stdlib.
31482         (configure.ac): Set indicator.
31483         * modules/unistd-safer (configure.ac): Likewise.
31484         * modules/tmpfile-safer (configure.ac): Likewise.
31485         (Depends-on): Add tmpfile.
31486         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
31487         active.
31488         * tests/test-fopen.c (includes): Test safer versions when they are
31489         in use.
31490         * tests/test-open.c (includes): Likewise.
31491
31492         popen: fix cygwin 1.5 bug when stdin closed
31493         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
31494         * modules/popen: New file.
31495         * modules/popen-tests: Likewise.
31496         * tests/test-popen.c: Likewise.
31497         * m4/popen.m4: Likewise.
31498         * lib/popen.c: Likewise.
31499         * lib/stdio.in.h (popen): New declaration.
31500         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
31501         * modules/stdio (Makefile.am): Likewise.
31502         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
31503
31504 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
31505
31506         maint.mk: give full control over update-copyright exclusions
31507         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
31508         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
31509         (update-copyright): Don't force inclusion of top-level
31510         ChangeLog.  Don't force exclusion of all COPYING files, but make
31511         them the default exclusion instead.
31512
31513 2009-08-16  Bruno Haible  <bruno@clisp.org>
31514
31515         Fix test failures on Solaris 10.
31516         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
31517         tests when Solaris iconv() is used.
31518         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
31519         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
31520         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
31521         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
31522         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
31523
31524 2009-08-16  Bruno Haible  <bruno@clisp.org>
31525
31526         Fix test failures on Solaris 10.
31527         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
31528         'tr' program and pass it as first argument.
31529         * tests/test-pipe-filter-gi1.sh: Likewise.
31530         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
31531         program as first argument.
31532         * tests/test-pipe-filter-gi1.c (main): Likewise.
31533
31534 2009-08-16  Eric Blake  <ebb9@byu.net>
31535
31536         fpurge: fix previous commits
31537         * modules/fpurge (Makefile.am): Make replacement conditional,
31538         partially reverting 2007-04-29 change; missed in previous
31539         attempt.
31540         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
31541         is missing.
31542
31543 2009-08-16  Bruno Haible  <bruno@clisp.org>
31544
31545         Clarify fpurge's effect on the file position.
31546         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
31547         * tests/test-fpurge.c (main): Make a second pass for checking the file
31548         position.
31549
31550 2009-08-16  Bruno Haible  <bruno@clisp.org>
31551
31552         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
31553         declaration of fpurge is missing.
31554         * tests/test-fpurge.c (main): Check that the file has not more contents
31555         than expected. Close the file before removing it.
31556
31557 2009-08-15  Eric Blake  <ebb9@byu.net>
31558
31559         fpurge: don't wrap working cygwin implementation
31560         * lib/fpurge.c (fpurge): Fix comment typo.
31561         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
31562         1.7 to avoid replacement.
31563         * tests/test-fpurge.c (main): Enhance test.
31564
31565 2009-08-15  Eric Blake  <ebb9@byu.net>
31566         and Jim Meyering  <meyering@redhat.com>
31567
31568         test-update-copyright: skip if perl is insufficient
31569         * tests/test-update-copyright.sh: Failure to run maintainer tool
31570         should not cause testsuite failure on cygwin 1.5.
31571
31572 2009-08-14  Eric Blake  <ebb9@byu.net>
31573
31574         doc: mention more functions added in cygwin 1.7.0
31575         * doc/posix-headers/limits.texi (limits.h): Update for recent
31576         cygwin additions.
31577         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
31578         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
31579         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
31580         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
31581         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
31582
31583 2009-08-14  Eric Blake  <ebb9@byu.net>
31584
31585         maint.mk: simplify update-copyright rule
31586         * top/maint.mk (update-copyright-local): Delete, and document how
31587         to do it in cfg.mk instead.
31588         (update-copyright-exclude-regexp): Delete, and document how to do
31589         it in .x-update-copyright instead.
31590         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
31591         exclude ChangeLog.
31592
31593 2009-08-14  Bruno Haible  <bruno@clisp.org>
31594
31595         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
31596
31597 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
31598
31599         maint.mk: support update-copyright-env
31600         * top/maint.mk (update-copyright-env): Define place-holder.
31601         (update-copyright): Expand $(update-copyright-env) before
31602         invoking update-copyright.
31603
31604 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
31605
31606         update-copyright: implement forced reformatting
31607         * build-aux/update-copyright: Implement and document
31608         UPDATE_COPYRIGHT_FORCE.
31609         * tests/test-update-copyright.sh: Test it.
31610
31611 2009-08-14  Eric Blake  <ebb9@byu.net>
31612         and Bruno Haible  <bruno@clisp.org>
31613
31614         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
31615         * tests/test-locale.c: Revert previous patch related to NULL.
31616         * tests/test-stdio.c: Likewise.
31617         * tests/test-stdlib.c: Likewise.
31618         * tests/test-string.c: Likewise.
31619         * tests/test-unistd.c: Likewise.
31620         * modules/time-tests (Depends-on): Add verify.
31621         * modules/wchar-tests (Depends-on): Likewise.
31622         * tests/test-time.c: Test for NULL compliance.
31623         * tests/test-wchar.c: Likewise.
31624         * modules/locale (Depends-on): Add stddef.
31625         * modules/stdio (Depends-on): Likewise.
31626         * modules/stdlib (Depends-on): Likewise.
31627         * modules/string (Depends-on): Likewise.
31628         * modules/time (Depends-on): Likewise.
31629         * modules/unistd (Depends-on): Likewise.
31630         * modules/wchar (Depends-on): Likewise.
31631         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
31632         * lib/stdlib.in.h (includes): Likewise.
31633         * lib/string.in.h (includes): Likewise.
31634         * lib/time.in.h (includes): Likewise.
31635         * lib/unistd.in.h (includes): Likewise.
31636         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
31637         replaced.
31638         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
31639         * m4/stddef_h.m4: New file.
31640         * modules/stddef: Likewise.
31641         * lib/stddef.in.h: Likewise.
31642         * modules/stddef-tests: Likewise.
31643         * tests/test-stddef.c: Likewise.
31644         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
31645         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
31646         * doc/posix-headers/locale.texi (locale.h): Likewise.
31647         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
31648         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
31649         * doc/posix-headers/string.texi (string.h): Likewise.
31650         * doc/posix-headers/time.texi (time.h): Likewise.
31651         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
31652         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
31653
31654 2009-08-14  Eric Blake  <ebb9@byu.net>
31655
31656         doc: improve git diff of texinfo files
31657         * .gitattributes: Add rule for *.texi files, with hint on how to
31658         use it.
31659         Copied from m4, and based on a report by Bruno Haible.
31660
31661 2009-08-14  Bruno Haible  <bruno@clisp.org>
31662
31663         Disable multithread support by default on Cygwin 1.5.x for real.
31664         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
31665
31666 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
31667
31668         update-copyright: much ado about intervals
31669         * build-aux/update-copyright: Implement and document
31670         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
31671         of copyright year intervals.
31672         Also, document UPDATE_COPYRIGHT_YEAR.
31673         * tests/test-update-copyright.sh: Test it.
31674
31675         update-copyright: convert 2-digit to 4-digit years
31676         * build-aux/update-copyright: Implement and document.
31677         * tests/test-update-copyright.sh: Update.
31678
31679 2009-08-14  Jim Meyering  <meyering@redhat.com>
31680
31681         test-exclude: avoid coreutils "make check" failure
31682         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
31683         just as in test-argmatch.c.
31684
31685 2009-08-13  Eric Blake  <ebb9@byu.net>
31686
31687         test-dup2: fix bad assumption
31688         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
31689         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
31690
31691         test-version-etc: fix CRLF portability issue
31692         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
31693         recognize \r.
31694         * tests/test-argp-version-etc-1.sh: Likewise.
31695
31696         getopt: update client modules
31697         * modules/argp (Depends-on): Use getopt-gnu.
31698         * modules/git-merge-changelog (Depends-on): Likewise.
31699         * modules/long-options (Depends-on): Likewise.
31700         * modules/xstrtol (Depends-on): Likewise.
31701
31702 2009-08-13  Simon Josefsson  <simon@josefsson.org>
31703
31704         * tests/test-version-etc.sh: Don't fail on different
31705         project/version.  Don't fail on CRLF differences.  Rewrite to use
31706         multiple -e instead of multiple sed forks, suggested by Eric Blake
31707         <ebb9@byu.net>.
31708         * tests/test-argp-version-etc-1.sh: Likewise.
31709
31710 2009-08-13  Simon Josefsson  <simon@josefsson.org>
31711
31712         * tests/test-version-etc.sh: Don't fail on different
31713         project/version.
31714
31715 2009-08-12  Bruno Haible  <bruno@clisp.org>
31716
31717         Tests for modules 'getopt-posix', 'getopt-gnu'.
31718         * modules/getopt-posix-tests: New file.
31719         * tests/test-getopt.c: New file.
31720         * tests/test-getopt.h: New file.
31721         * tests/test-getopt_long.h: New file.
31722
31723         New modules 'getopt-posix', 'getopt-gnu'.
31724         * modules/getopt-gnu: New file, renamed from modules/getopt.
31725         * modules/getopt-posix: New file.
31726         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
31727         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
31728         (gl_GETOPT): Remove macro.
31729         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
31730         Disable the test against BSD systems that declare optreset. Test
31731         against mingw bug. Test against lack of support of optional arguments
31732         on many platforms.
31733         * doc/glibc-headers/getopt.texi: Update module name and list of
31734         relevant platforms.
31735         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
31736         'getopt-gnu' and more portability problems.
31737         * NEWS: Mention the changes.
31738
31739 2009-08-12  Bruno Haible  <bruno@clisp.org>
31740
31741         Ensure that optarg etc. get declared by <unistd.h>.
31742         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
31743         AC_USE_SYSTEM_EXTENSIONS.
31744         * modules/getopt (Depends-on): Add 'extensions'.
31745
31746 2009-08-12  Bruno Haible  <bruno@clisp.org>
31747
31748         Avoid test link errors.
31749         * modules/pipe-filter-ii-tests (Makefile.am): Define
31750         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
31751         * modules/pipe-filter-gi-tests (Makefile.am): Define
31752         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
31753         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
31754
31755 2009-08-12  Bruno Haible  <bruno@clisp.org>
31756
31757         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
31758         gl_GETOPT_SUBSTITUTE before.
31759         (gl_GETOPT): Use it.
31760         * m4/argp.m4 (gl_ARGP): Update.
31761         Reported by Sergey Poznyakoff.
31762
31763         * m4/getopt.m4: Reorder macros.
31764         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
31765         (gl_GETOPT_SUBSTITUTE): Remove macro.
31766
31767 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
31768
31769         Minor improvement in gitlog-to-changelog
31770
31771         * build-aux/gitlog-to-changelog: New option `--format' makes
31772         output format string configurable.
31773
31774 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
31775
31776         Optimize exclude: use hash tables for non-wildcard patterns.
31777
31778         * lib/exclude.c: Include hash.h and mbuiter.h
31779         (struct exclude_pattern, exclude_segment): New data types.
31780         (struct exclude): Rewrite.
31781         (fnmatch_pattern_has_wildcards): New function.
31782         (new_exclude_segment, free_exclude_segment): New functions.
31783         (excluded_file_pattern_p, excluded_file_name_p): New functions.
31784         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
31785         * lib/exclude.h (is_fnmatch_pattern): New prototype.
31786         * modules/exclude: Depend on hash and mbuiter.
31787
31788         * modules/exclude-tests: New file.
31789         * tests/test-exclude.c: New file.
31790         * tests/test-exclude1.sh: New file.
31791         * tests/test-exclude2.sh: New file.
31792         * tests/test-exclude3.sh: New file.
31793         * tests/test-exclude4.sh: New file.
31794         * tests/test-exclude5.sh: New file.
31795         * tests/test-exclude6.sh: New file.
31796         * tests/test-exclude7.sh: New file.
31797
31798 2009-08-12  Bruno Haible  <bruno@clisp.org>
31799
31800         Ensure that getopt() gets declared by <unistd.h>.
31801         * lib/unistd.in.h: Conditionally include getopt.h.
31802         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
31803         Set GNULIB_UNISTD_H_GETOPT.
31804         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
31805         GNULIB_UNISTD_H_GETOPT.
31806         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
31807
31808 2009-08-12  Bruno Haible  <bruno@clisp.org>
31809
31810         Clarify logic.
31811         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
31812         gl_replace_getopt instead of GETOPT_H.
31813
31814 2009-08-12  Bruno Haible  <bruno@clisp.org>
31815
31816         * m4/getopt.m4: Add comments.
31817
31818 2009-08-12  Bruno Haible  <bruno@clisp.org>
31819
31820         Disable multithread support by default on Cygwin 1.5.x.
31821         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
31822         set gl_use_threads=no if not specified otherwise.
31823
31824 2009-08-11  Bruno Haible  <bruno@clisp.org>
31825
31826         Avoid compilation error on NetBSD 5.0.
31827         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof 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         Reported by Greg Troxel <gdt@ir.bbn.com>
31833         at <https://savannah.gnu.org/support/?106973>.
31834
31835 2009-08-11  Bruno Haible  <bruno@clisp.org>
31836
31837         * modules/dup2-tests (Depends-on): Remove close.
31838
31839         Undo 2009-07-19 commit.
31840         * modules/acl-tests (Depends-on): Remove close.
31841         * modules/binary-io-tests (Depends-on): Likewise.
31842         * modules/closein-tests (Depends-on): Likewise.
31843         * modules/flock-tests (Depends-on): Likewise.
31844         * modules/fsync-tests (Depends-on): Likewise.
31845         * modules/lseek-tests (Depends-on): Likewise.
31846         * modules/pipe-tests (Depends-on): Likewise.
31847         * modules/posix_spawn-tests (Depends-on): Likewise.
31848         * modules/posix_spawnp-tests (Depends-on): Likewise.
31849         * modules/stat-time-tests (Depends-on): Likewise.
31850         * modules/yesno-tests (Depends-on): Likewise.
31851
31852 2009-08-10  Bruno Haible  <bruno@clisp.org>
31853
31854         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
31855
31856 2009-08-10  Bruno Haible  <bruno@clisp.org>
31857
31858         Fix a gcc warning.
31859         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
31860
31861 2009-08-10  Bruno Haible  <bruno@clisp.org>
31862
31863         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
31864         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
31865         not only the first time.
31866         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
31867         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
31868         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
31869         is 1, not only the the first time.
31870
31871 2009-08-10  Bruno Haible  <bruno@clisp.org>
31872
31873         Make it possible to use module 'gethostname' without module 'close'.
31874         * lib/unistd.in.h (close): Evoke a link error only if
31875         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
31876         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
31877         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
31878         * modules/unistd (Makefile.am): Substitute
31879         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
31880         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
31881         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
31882         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
31883         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
31884         * modules/sys_ioctl (Makefile.am): Substitute
31885         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
31886         * modules/socket (configure.ac): On native Windows, set
31887         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
31888         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
31889         Reported by Sam Steingold <sds@gnu.org>.
31890
31891 2009-08-10  Bruno Haible  <bruno@clisp.org>
31892
31893         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
31894         * modules/ioctl (configure.ac): Likewise.
31895
31896 2009-08-10  Bruno Haible  <bruno@clisp.org>
31897
31898         Avoid collision between gnulib wrapper and libintl wrapper.
31899         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
31900         already defined in intl/printf.c.
31901         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
31902         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
31903
31904 2009-08-09  Bruno Haible  <bruno@clisp.org>
31905
31906         Make <sys/select.h> really self-contained, also on Solaris 10.
31907         * lib/sys_select.in.h: Include <string.h>.
31908         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
31909         Solaris 10 problem.
31910         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
31911         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
31912         Reported by Jim Meyering.
31913
31914 2009-08-09  Bruno Haible  <bruno@clisp.org>
31915
31916         Avoid warnings from 'aclocal' that are due to a use of macro name
31917         AM_XGETTEXT_OPTION that is not defined in automake.
31918         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
31919         automake.
31920         * modules/error (configure.ac): Likewise.
31921         * modules/propername (configure.ac): Likewise.
31922         * modules/vasprintf (configure.ac): Likewise.
31923         * modules/verror (configure.ac): Likewise.
31924         * modules/xprintf (configure.ac): Likewise.
31925         * modules/xvasprintf (configure.ac): Likewise.
31926
31927 2009-08-08  Bruno Haible  <bruno@clisp.org>
31928
31929         Avoid compilation error in C++ mode.
31930         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
31931         Reported by Sam Steingold <sds@gnu.org>.
31932
31933 2009-08-08  Bruno Haible  <bruno@clisp.org>
31934
31935         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
31936         for the various Unix platforms.
31937         * doc/posix-headers/limits.texi: Update platforms list regarding
31938         HOST_NAME_MAX.
31939         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
31940
31941 2009-08-07  Jim Meyering  <meyering@redhat.com>
31942
31943         selinux-at: fix typo in a comment
31944         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
31945         Spotted by Paolo Bonzini.
31946
31947         selinux-at: remove redundant m4 code, add documentation
31948         * modules/selinux-at (configure.ac): Remove redundant code.
31949         LIB_SELINUX is already set via the dependent module, selinux-h.
31950         (Include): Add quotes around selinux-at.h.
31951         * lib/selinux-at.h: Add documentation.
31952         Reported by Bruno Haible in
31953         http://marc.info/?l=gnulib-bug&m=124958988300749
31954
31955 2009-08-07  Bruno Haible  <bruno@clisp.org>
31956
31957         Avoid link error on MacOS X 10.3 and 10.4.
31958         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
31959         on non-ELF systems.
31960         * lib/argp-pv.c (argp_program_version): Likewise.
31961         Reported by Simon Josefsson.
31962
31963 2009-08-07  Simon Josefsson  <simon@josefsson.org>
31964
31965         * tests/test-version-etc.sh: Use $EXEEXT.
31966
31967 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
31968
31969         update-copyright: update documentation to point to maint.mk
31970         * build-aux/update-copyright: Here.
31971
31972 2009-08-06  Jim Meyering  <meyering@redhat.com>
31973
31974         maint.mk: support update-copyright-local
31975         * top/maint.mk (update-copyright-local): Define place-holder.
31976         (update-copyright): Depend on $(update-copyright-local).
31977
31978 2009-08-06  Jim Meyering  <meyering@redhat.com>
31979
31980         selinux-at: new module
31981         Initially written for coreutils, this module will soon be
31982         used by findutils, too.
31983         * MODULES.html.sh [Misc]: Add selinux-at.
31984         * lib/selinux-at.h: New file, from coreutils.
31985         * lib/selinux-at.c: Likewise.
31986         * modules/selinux-at: Likewise.
31987         (License): Change from LGPL to GPL, since it depends
31988         on the GPL'd openat module.
31989
31990         doc: update README
31991         * README: Remove references to cogito.
31992         Remove cvs-repo-updating instructions from 2007.
31993         Don't imply that CVS is better if you have limited disk space.
31994
31995 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
31996
31997         update-copyright: support C-style comments
31998         * build-aux/update-copyright: Implement and document.
31999         * tests/test-update-copyright.sh: Test.
32000
32001 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
32002
32003         update-copyright: support omitted "(C)"
32004         * build-aux/update-copyright: Implement and document.  Also,
32005         allow variable whitespace before "(C)".
32006         * tests/test-update-copyright.sh: Test.
32007
32008 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
32009
32010         update-copyright: don't trip on non-FSF copyright statements
32011         * build-aux/update-copyright: Fix so that the first correctly
32012         formatted FSF copyright statement is recognized no matter what
32013         appears before it.  Update documentation.
32014         * tests/test-update-copyright.sh: Test that.
32015
32016 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
32017
32018         update-copyright: clean up code a little
32019         * build-aux/update-copyright: Append "_re" to the name of any
32020         variable holding a regular expression.
32021         Replace "old" and "new" with "stmt" in variable names.
32022         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
32023         handled correctly.
32024         Format code more consistently.
32025
32026 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
32027
32028         update-copyright-tests: improve portability
32029         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
32030         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
32031
32032 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
32033
32034         update-copyright: support @copyright{} and &copy;
32035         * build-aux/update-copyright: Implement and document.
32036         * tests/test-update-copyright.sh: Test.
32037
32038 2009-08-04  Jim Meyering  <meyering@redhat.com>
32039
32040         update-copyright-tests: correctly test EOL=\r\n handling
32041         * tests/test-update-copyright.sh: Put \r at the end of some lines
32042         for the dos-eol tests.  Based on a patch by Joel E. Denny.
32043
32044         maint.mk: make update-copyright exclusion list more configurable
32045         * top/maint.mk (update-copyright): Default to excluding COPYING,
32046         but allow an override, in case someone does want to update that file.
32047
32048         maint.mk: don't update copyright date in COPYING
32049         * top/maint.mk (update-copyright): Exclude COPYING.
32050
32051         maint.mk: add a copyright-updating rule
32052         * top/maint.mk (update-copyright): New rule.
32053         Derived from coreutils/Makefile.am.
32054
32055         update-copyright: rename some variables
32056         * build-aux/update-copyright: Rename a few variables for clarity.
32057         Tweak syntax.  List Joel E. Denny as coauthor.
32058
32059 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
32060
32061         update-copyright: fix bug for 2-digit last year and add tests
32062         * build-aux/update-copyright: Fix bug.
32063         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
32064         specified.
32065         * modules/update-copyright-tests: New
32066         * tests/test-update-copyright.sh: New.
32067
32068 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
32069
32070         update-copyright: handle leading tabs in line prefix
32071         * build-aux/update-copyright: Count leading tabs as 8 spaces
32072         when computing margin.  This helps with the formatting of
32073         ChangeLogs, for example.
32074         Fix documentation a little.
32075
32076 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
32077
32078         update-copyright: support EOL=\r\n
32079         * build-aux/update-copyright: Implement that.
32080
32081 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
32082
32083         update-copyright: automatically format copyright statements
32084         * build-aux/update-copyright: Implement that.
32085         Also, be a little more predictable and safer by always failing
32086         when the full copyright format is not perfectly recognized as an
32087         unbroken whole.  Discussed at
32088         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
32089         Rewrite documentation.
32090
32091 2009-08-03  Bruno Haible  <bruno@clisp.org>
32092
32093         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
32094
32095 2009-08-02  Bruno Haible  <bruno@clisp.org>
32096
32097         Tests for module 'uname'.
32098         * modules/uname-tests: New file.
32099         * tests/test-uname.c: New file.
32100
32101         New module 'uname'.
32102         * lib/uname.c: New file.
32103         * m4/uname.m4: New file.
32104         * modules/uname: New file.
32105         * doc/posix-functions/uname.texi: Mention the new module.
32106
32107 2009-08-02  Bruno Haible  <bruno@clisp.org>
32108
32109         Tests for module 'sys_utsname'.
32110         * modules/sys_utsname-tests: New file.
32111         * tests/test-sys_utsname.c: New file.
32112
32113         New module 'sys_utsname'.
32114         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
32115         * m4/sys_utsname_h.m4: New file.
32116         * modules/sys_utsname: New file.
32117         * doc/posix-headers/sys_utsname.texi: Mention the new module.
32118
32119 2009-08-02  Bruno Haible  <bruno@clisp.org>
32120
32121         Implicitly initialize the sockets library.
32122         * lib/gethostname.c: Include sockets.h.
32123         (rpl_gethostname): Invoke gl_sockets_startup.
32124         * lib/socket.c: Include sockets.h.
32125         (rpl_socket): Invoke gl_sockets_startup.
32126         * modules/gethostname (Depends-on): Add sockets.
32127         * modules/socket (Depends-on): Likewise.
32128         * tests/test-poll.c: Don't include sockets.h.
32129         (main): Don't invoke gl_sockets_startup.
32130         * tests/test-select.c: Don't include sockets.h.
32131         (main): Don't invoke gl_sockets_startup.
32132
32133 2009-08-02  Bruno Haible  <bruno@clisp.org>
32134
32135         Allow multiple calls to gl_sockets_startup.
32136         * lib/sockets.c (initialized_sockets_version): New variable.
32137         (gl_sockets_startup): Do nothing if already called for this or a higher
32138         version.
32139         (gl_sockets_cleanup): Reset initialized_sockets_version.
32140
32141 2009-08-03  Simon Josefsson  <simon@josefsson.org>
32142
32143         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
32144         different project/version.
32145
32146 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
32147             Bruno Haible  <bruno@clisp.org>
32148
32149         Tests for module 'pipe-filter-gi'.
32150         * modules/pipe-filter-gi-tests: New file.
32151         * tests/test-pipe-filter-gi1.sh: New file.
32152         * tests/test-pipe-filter-gi1.c: New file.
32153         * tests/test-pipe-filter-gi2.sh: New file.
32154         * tests/test-pipe-filter-gi2-main.c: New file.
32155         * tests/test-pipe-filter-gi2-child.c: New file.
32156
32157         New module 'pipe-filter-gi'.
32158         * lib/pipe-filter-gi.c: New file.
32159         * modules/pipe-filter-gi: New file.
32160
32161 2009-08-02  Bruno Haible  <bruno@clisp.org>
32162             Paolo Bonzini  <bonzini@gnu.org>
32163
32164         Tests for module 'pipe-filter-ii'.
32165         * modules/pipe-filter-ii-tests: New file.
32166         * tests/test-pipe-filter-ii1.sh: New file.
32167         * tests/test-pipe-filter-ii1.c: New file.
32168         * tests/test-pipe-filter-ii2.sh: New file.
32169         * tests/test-pipe-filter-ii2-main.c: New file.
32170         * tests/test-pipe-filter-ii2-child.c: New file.
32171
32172         New module 'pipe-filter-ii'.
32173         * lib/pipe-filter.h: New file.
32174         * lib/pipe-filter-ii.c: New file.
32175         * lib/pipe-filter-aux.h: New file.
32176         * modules/pipe-filter-ii: New file.
32177
32178 2009-08-02  Simon Josefsson  <simon@josefsson.org>
32179
32180         * lib/gc-libgcrypt.c: Change copyright to FSF.
32181         * lib/gc-gnulib.c: Likewise.
32182
32183 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
32184
32185         * lib/gethostname.c: Include limits.h.
32186
32187 2009-08-02  Simon Josefsson  <simon@josefsson.org>
32188             Bruno Haible  <bruno@clisp.org>
32189
32190         Ensure HOST_NAME_MAX as part of the gethostname module.
32191         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
32192         define also HOST_NAME_MAX.
32193         * tests/test-gethostname.c: Include <limits.h>.
32194         (main): Check also HOST_NAME_MAX.
32195         * doc/posix-headers/limits.texi: Document the mingw problem.
32196
32197 2009-08-02  Bruno Haible  <bruno@clisp.org>
32198
32199         * lib/gethostname.c (gethostname): Fix handling of large len argument.
32200         Add comments.
32201
32202 2009-03-31  Simon Josefsson  <simon@josefsson.org>
32203
32204         * lib/gethostname.c: Add Windows wrapper.
32205         * m4/gethostname.m4: Look for gethostname in -lws2_32.
32206         * modules/gethostname: Depend on sys_socket & errno, for also
32207         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
32208         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
32209
32210 2009-07-31  Jim Meyering  <meyering@redhat.com>
32211
32212         getloadavg: fix symbol name in comment
32213         * lib/getloadavg.c: Correct a typo I introduced when adding
32214         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
32215         Matt Kraai spotted the problem.
32216
32217 2009-07-29  Matt Kraai  <mkraai@beckman.com>
32218
32219         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
32220         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
32221         code also if ! defined N_NAME_POINTER.
32222         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
32223         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
32224         but the n_name member is a 12-byte array.
32225
32226 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
32227
32228         update-copyright: generalize comment handling
32229         * build-aux/update-copyright: Handle copyright statements
32230         within more comment styles.
32231         Document usage.
32232         Report any file with an external copyright holder or parse failure.
32233
32234 2009-07-29  Jim Meyering  <meyering@redhat.com>
32235
32236         mktime: correct setting of REPLACE_MKTIME
32237         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
32238
32239         update-copyright: new module
32240         * modules/update-copyright: New file.
32241         * build-aux/update-copyright: New file.
32242         * MODULES.html.sh (maint+release support): Add update-copyright.
32243
32244 2009-07-27  Bruno Haible  <bruno@clisp.org>
32245
32246         Fix compilation error when <ctime> is used and mktime is replaced.
32247         * lib/time.in.h (mktime): New declaration.
32248         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
32249         REPLACE_MKTIME instead of defining mktime in config.h.
32250         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
32251         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
32252         Reported by Ross McFarland <rwmcfa1@neces.com>.
32253
32254 2009-07-27  Bruno Haible  <bruno@clisp.org>
32255
32256         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
32257         Reported by Matt Kraai <mkraai@beckman.com>.
32258
32259 2009-07-25  Jim Meyering  <meyering@redhat.com>
32260
32261         maint.mk: avoid warnings about missing files
32262         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
32263         diagnostic when .prev-version does not exist.
32264         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
32265         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
32266         nonexistent cfg.mk.
32267         Suggestions from Simon Josefsson.
32268
32269 2009-07-25  Bruno Haible  <bruno@clisp.org>
32270
32271         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
32272         defined as macros. Needed on QNX 6.4.1.
32273         Reported by Matt Kraai <mkraai@beckman.com>.
32274
32275 2009-07-23  Jim Meyering  <meyering@redhat.com>
32276
32277         maint.mk: invoke "make dist" with a working value of XZ_OPT
32278         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
32279
32280 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
32281
32282         Make fseeko.c compile on QNX.
32283         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
32284
32285 2009-07-22  Peter Simons  <simons@cryp.to>
32286
32287         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
32288         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
32289         * lib/md4.h: Likewise.
32290         * lib/md5.h: Likewise.
32291         * lib/sha1.h: Likewise.
32292         * lib/sha256.h: Likewise.
32293         * lib/sha512.h: Likewise.
32294
32295         tests-sha1: don't assign literal string to 'char *' variable
32296         * tests/test-sha1.c (main): Declare locals with "const" to match
32297         attributes of the right hand side.
32298
32299 2009-07-21  Eric Blake  <ebb9@byu.net>
32300
32301         dup2: fix more mingw problems
32302         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
32303         fd to itself.
32304         * doc/posix-functions/dup2.texi (dup2): Document the bug.
32305         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
32306         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
32307         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
32308         care of mingw bugs.
32309
32310 2009-07-21  Jim Meyering  <meyering@redhat.com>
32311
32312         vc-list-files: avoid failure when /bin/sh is dash
32313         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
32314         On some Debian based systems, /bin/sh is a symlink to dash, and running
32315         this command would omit the "/" following each 'tests' prefix:
32316           dash -x build-aux/vc-list-files -C . tests
32317         That is because bash and dash work differently:
32318           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
32319           bash ok
32320           dash odd
32321
32322 2009-07-21  Eric Blake  <ebb9@byu.net>
32323
32324         dup2-tests: test previous patch
32325         * modules/dup2-tests: New file.
32326         * tests/test-dup2.c: Likewise.
32327         * tests/test-open.c (main): Avoid unspecified behavior.
32328         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
32329         test.
32330
32331         dup2: work around mingw and cygwin 1.5 bug
32332         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
32333         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
32334         * modules/unistd (Makefile.am): Substitute it.
32335         * lib/unistd.in.h (dup2): Declare the replacement.
32336         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
32337         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
32338         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
32339         * modules/execute (Depends-on): Add dup2.
32340         * modules/fseterr (Depends-on): Likewise.
32341         * modules/pipe (Depends-on): Likewise.
32342         * modules/posix_spawn-internal (Depends-on): Likewise.
32343
32344 2009-07-21  Bruno Haible  <bruno@clisp.org>
32345
32346         * modules/.gitattributes: New file.
32347
32348 2009-07-20  Bruno Haible  <bruno@clisp.org>
32349
32350         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
32351         (main): Use it.
32352
32353 2009-07-20  Eric Blake  <ebb9@byu.net>
32354
32355         test-pipe: make a bit more robust.
32356         * tests/test-pipe.c (myerr): Allow error messages regardless of
32357         what we do to stderr.
32358         (test_pipe): Rearrange to avoid deadlock.
32359         (child_main): Try a larger read, to ensure we avoided deadlock.
32360         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
32361         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
32362         if misused.
32363
32364 2009-07-19  Jim Meyering  <meyering@redhat.com>
32365
32366         fts: avoid false-positive cycle-detection
32367         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
32368         for each new command line argument.
32369
32370 2009-07-19  Bruno Haible  <bruno@clisp.org>
32371
32372         Fix build error on mingw with the modules sys_select and unistd.
32373         * modules/acl-tests (Depends-on): Add close.
32374         * modules/binary-io-tests (Depends-on): Likewise.
32375         * modules/closein-tests (Depends-on): Likewise.
32376         * modules/flock-tests (Depends-on): Likewise.
32377         * modules/fsync-tests (Depends-on): Likewise.
32378         * modules/lseek-tests (Depends-on): Likewise.
32379         * modules/pipe-tests (Depends-on): Likewise.
32380         * modules/posix_spawn-tests (Depends-on): Likewise.
32381         * modules/posix_spawnp-tests (Depends-on): Likewise.
32382         * modules/stat-time-tests (Depends-on): Likewise.
32383         * modules/yesno-tests (Depends-on): Likewise.
32384
32385 2009-07-19  Bruno Haible  <bruno@clisp.org>
32386
32387         Unify conditionals.
32388         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
32389         macros, not at the compiler macros.
32390         * lib/pipe.c: Likewise.
32391         * lib/execute.c: Likewise.
32392         * lib/spawni.c: Likewise.
32393
32394 2009-07-19  Bruno Haible  <bruno@clisp.org>
32395
32396         Fix handling of closed stdin/stdout/stderr on mingw.
32397         * lib/w32spawn.h: Include unistd.h.
32398         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
32399         file descriptor with O_NOINHERIT flag.
32400         (fd_safer_noinherit): New function, based on fd-safer.c.
32401         (dup_safer_noinherit): New function, based on dup-safer.c.
32402         (undup_safer_noinherit): New function.
32403         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
32404         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
32405         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
32406         instead of fd_safer.
32407         * tests/test-pipe.c: Include <windows.h>.
32408         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
32409         result.
32410
32411         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
32412         from main.
32413         (test_pipe): Pass an extra argument for disambiguation.
32414         (main): Invoke parent_main or child_main.
32415
32416         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
32417         consistently.
32418
32419 2009-07-18  Eric Blake  <ebb9@byu.net>
32420
32421         test-pipe: fix mingw build
32422         * tests/test-pipe.c (main): Avoid fcntl on mingw.
32423
32424 2009-07-18  Bruno Haible  <bruno@clisp.org>
32425
32426         * modules/pipe-tests (Makefile.am): Fix typo.
32427
32428 2009-07-18  Eric Blake  <ebb9@byu.net>
32429
32430         error: fix mingw build
32431         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
32432         Reported by Bruno Haible.
32433
32434         error: avoid undefined use of stdout
32435         * lib/error.c (error, error_at_line): Check that fd 1 is open
32436         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
32437         is handling faults and the close_stdout module wants to report the
32438         detection of closed stdout as an error.
32439
32440 2009-07-17  Eric Blake  <ebb9@byu.net>
32441
32442         pipe: be robust in face of closed fds
32443         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
32444         should cause child to misbehave.
32445         * modules/pipe-tests: New module.
32446         * tests/test-pipe.c: New file.
32447         * tests/test-pipe.sh: New file.
32448         Reported by Akim Demaille.
32449
32450 2009-07-14  Bruno Haible  <bruno@clisp.org>
32451
32452         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
32453         Reported by anonymous kc.
32454
32455 2009-07-07  Jim Meyering  <meyering@redhat.com>
32456
32457         maint.mk: don't look for translatable strings in *.m4 or *.mk
32458         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
32459         when searching for translatable strings.
32460
32461 2009-07-05  Jim Meyering  <meyering@redhat.com>
32462
32463         remove superfluous parentheses in STREQ definition
32464         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
32465         * lib/getugroups.c (STREQ): Likewise.
32466         * lib/fnmatch.c (STREQ): Likewise.
32467         Spotted by Bruno Haible.
32468
32469 2009-07-04  Jim Meyering  <meyering@redhat.com>
32470
32471         argv-iter: new module
32472         * MODULES.html.sh: Add argv-iter.
32473         * lib/argv-iter.c, lib/argv-iter.h: New files.
32474         * modules/argv-iter: New file.
32475         * modules/argv-iter-tests: New file.
32476         * tests/test-argv-iter.c: Test it.
32477
32478 2009-07-04  Bruno Haible  <bruno@clisp.org>
32479
32480         Fix assertion.
32481         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
32482         contains more exact copies of a given entry than file2, leave the extra
32483         copies unpaired rather than aborting.
32484         Reported by Eric Blake.
32485
32486 2009-07-02  Bruno Haible  <bruno@clisp.org>
32487
32488         Speedup git-merge-changelog for git cherry-pick.
32489         * lib/git-merge-changelog.c (struct entries_mapping): New type.
32490         (entries_mapping_get): New function, extracted from compute_mapping.
32491         (entries_mapping_reverse_get): New function.
32492         (compute_mapping): Add a 'full' argument. Return the result in a
32493         'struct entries_mapping'.
32494         (main): Update. Access the mappings through entries_mapping_get.
32495         Reported by Eric Blake.
32496
32497 2009-07-02  Bruno Haible  <bruno@clisp.org>
32498
32499         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
32500         best_i.
32501
32502 2009-07-02  Bruno Haible  <bruno@clisp.org>
32503
32504         Speed up approximate search for matching ChangeLog entries.
32505         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
32506         argument. Call fstrcmp_bounded instead of fstrcmp.
32507         (compute_mapping, try_split_merged_entry, main): Update callers.
32508
32509 2009-07-02  Bruno Haible  <bruno@clisp.org>
32510
32511         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
32512
32513 2009-06-30  Bruno Haible  <bruno@clisp.org>
32514
32515         Reduce the number of uc_is_cased calls.
32516         * lib/unicase.h (casing_suffix_context_t): Add
32517         'first_char_except_ignorable' field.
32518         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
32519         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
32520         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
32521         Update initializer.
32522         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
32523         case-ignorable characters.
32524         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
32525         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
32526         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
32527         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
32528         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
32529
32530 2009-06-30  Bruno Haible  <bruno@clisp.org>
32531
32532         Tests for module 'unicase/ignorable'.
32533         * modules/unicase/ignorable-tests: New file.
32534         * tests/unicase/test-ignorable.c: New file, generated by
32535         gen-uni-tables.
32536
32537         Tests for module 'unicase/cased'.
32538         * modules/unicase/cased-tests: New file.
32539         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
32540         * tests/unicase/test-predicate-part1.h: New file, derived from
32541         tests/unictype/test-predicate-part1.h.
32542         * tests/unicase/test-predicate-part2.h: New file, same as
32543         tests/unictype/test-predicate-part2.h.
32544
32545         Fix evaluation of "Before C" condition of FINAL_SIGMA.
32546         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
32547         (output_casing_properties): New function.
32548         (main): Call it.
32549         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
32550         * lib/unicase/cased.c: Include unictype/bitmap.h.
32551         (uc_is_cased): Define through a bitmap lookup.
32552         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
32553         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
32554         (uc_is_case_ignorable): Define through a bitmap lookup.
32555         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
32556         lib/unictype/bitmap.h.
32557         (Depends-on): Add inline. Clean up.
32558         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
32559         lib/unictype/bitmap.h.
32560         (Depends-on): Add inline. Clean up.
32561         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
32562         recognition.
32563         * tests/unicase/test-u16-tolower.c (main): Likewise.
32564         * tests/unicase/test-u32-tolower.c (main): Likewise.
32565
32566 2009-06-30  Bruno Haible  <bruno@clisp.org>
32567
32568         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
32569         * lib/unicase/u16-casemap.c: Likewise.
32570         * lib/unicase/u32-casemap.c: Likewise.
32571
32572 2009-06-29  Bruno Haible  <bruno@clisp.org>
32573
32574         Define u32_casefold as a wrapper around u32_ct_casefold.
32575         * lib/unicase/u32-casefold.c: Update.
32576         * modules/unicase/u32-casefold (Depends-on): Add
32577         unicase/u32-ct-casefold, unicase/empty-prefix-context,
32578         unicase/empty-suffix-context. Clean up.
32579
32580         Define u16_casefold as a wrapper around u16_ct_casefold.
32581         * lib/unicase/u16-casefold.c: Update.
32582         * modules/unicase/u16-casefold (Depends-on): Add
32583         unicase/u16-ct-casefold, unicase/empty-prefix-context,
32584         unicase/empty-suffix-context. Clean up.
32585
32586         Define u8_casefold as a wrapper around u8_ct_casefold.
32587         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
32588         * lib/unicase/u8-casefold.c: Update.
32589         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
32590         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
32591
32592         Define u32_totitle as a wrapper around u32_ct_totitle.
32593         * lib/unicase/u32-totitle.c: Update.
32594         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
32595         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
32596
32597         Define u16_totitle as a wrapper around u16_ct_totitle.
32598         * lib/unicase/u16-totitle.c: Update.
32599         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
32600         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
32601
32602         Define u8_totitle as a wrapper around u8_ct_totitle.
32603         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
32604         functions.
32605         (FUNC): Delegate to U_CT_TOTITLE.
32606         * lib/unicase/u8-totitle.c: Update.
32607         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
32608         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
32609
32610         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
32611         invocation.
32612         * modules/unicase/u32-tolower (Depends-on): Add
32613         unicase/empty-prefix-context, unicase/empty-suffix-context.
32614
32615         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
32616         invocation.
32617         * modules/unicase/u16-tolower (Depends-on): Add
32618         unicase/empty-prefix-context, unicase/empty-suffix-context.
32619
32620         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
32621         * modules/unicase/u8-tolower (Depends-on): Add
32622         unicase/empty-prefix-context, unicase/empty-suffix-context.
32623
32624         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
32625         invocation.
32626         * modules/unicase/u32-toupper (Depends-on): Add
32627         unicase/empty-prefix-context, unicase/empty-suffix-context.
32628
32629         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
32630         invocation.
32631         * modules/unicase/u16-toupper (Depends-on): Add
32632         unicase/empty-prefix-context, unicase/empty-suffix-context.
32633
32634         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
32635         * modules/unicase/u8-toupper (Depends-on): Add
32636         unicase/empty-prefix-context, unicase/empty-suffix-context.
32637
32638         New module 'unicase/u32-ct-casefold'.
32639         * lib/unicase/u32-ct-casefold.c: New file.
32640         * modules/unicase/u32-ct-casefold: New file.
32641
32642         New module 'unicase/u16-ct-casefold'.
32643         * lib/unicase/u16-ct-casefold.c: New file.
32644         * modules/unicase/u16-ct-casefold: New file.
32645
32646         New module 'unicase/u8-ct-casefold'.
32647         * lib/unicase/u8-ct-casefold.c: New file.
32648         * lib/unicase/u-ct-casefold.h: New file, derived from
32649         lib/unicase/u-casefold.h.
32650         * modules/unicase/u8-ct-casefold: New file.
32651
32652         New module 'unicase/u32-ct-totitle'.
32653         * lib/unicase/u32-ct-totitle.c: New file.
32654         * modules/unicase/u32-ct-totitle: New file.
32655
32656         New module 'unicase/u16-ct-totitle'.
32657         * lib/unicase/u16-ct-totitle.c: New file.
32658         * modules/unicase/u16-ct-totitle: New file.
32659
32660         New module 'unicase/u8-ct-totitle'.
32661         * lib/unicase/u8-ct-totitle.c: New file.
32662         * lib/unicase/u-ct-totitle.h: New file, derived from
32663         lib/unicase/u-totitle.h.
32664         * modules/unicase/u8-ct-totitle: New file.
32665
32666         New module 'unicase/u32-ct-tolower'.
32667         * lib/unicase/u32-ct-tolower.c: New file.
32668         * modules/unicase/u32-ct-tolower: New file.
32669
32670         New module 'unicase/u16-ct-tolower'.
32671         * lib/unicase/u16-ct-tolower.c: New file.
32672         * modules/unicase/u16-ct-tolower: New file.
32673
32674         New module 'unicase/u8-ct-tolower'.
32675         * lib/unicase/u8-ct-tolower.c: New file.
32676         * modules/unicase/u8-ct-tolower: New file.
32677
32678         New module 'unicase/u32-ct-toupper'.
32679         * lib/unicase/u32-ct-toupper.c: New file.
32680         * modules/unicase/u32-ct-toupper: New file.
32681
32682         New module 'unicase/u16-ct-toupper'.
32683         * lib/unicase/u16-ct-toupper.c: New file.
32684         * modules/unicase/u16-ct-toupper: New file.
32685
32686         New module 'unicase/u8-ct-toupper'.
32687         * lib/unicase/u8-ct-toupper.c: New file.
32688         * modules/unicase/u8-ct-toupper: New file.
32689
32690         Add context arguments to u*_casemap functions.
32691         * lib/unicase/unicasemap.h: Include unicase.h.
32692         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
32693         suffix_context arguments.
32694         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
32695         functions.
32696         (FUNC): Add prefix_context and suffix_context arguments. Use
32697         uc_is_cased and uc_is_case_ignorable.
32698         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
32699         * lib/unicase/u16-casemap.c: Likewise.
32700         * lib/unicase/u32-casemap.c: Likewise.
32701         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
32702         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
32703         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
32704         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
32705         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
32706         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
32707
32708         New module 'unicase/u32-suffix-context'.
32709         * lib/unicase/u32-suffix-context.c: New file.
32710         * modules/unicase/u32-suffix-context: New file.
32711
32712         New module 'unicase/u16-suffix-context'.
32713         * lib/unicase/u16-suffix-context.c: New file.
32714         * modules/unicase/u16-suffix-context: New file.
32715
32716         New module 'unicase/u8-suffix-context'.
32717         * lib/unicase/u8-suffix-context.c: New file.
32718         * lib/unicase/u-suffix-context.h: New file.
32719         * modules/unicase/u8-suffix-context: New file.
32720
32721         New module 'unicase/empty-suffix-context'.
32722         * lib/unicase/empty-suffix-context.c: New file.
32723         * modules/unicase/empty-suffix-context: New file.
32724
32725         New module 'unicase/u32-prefix-context'.
32726         * lib/unicase/u32-prefix-context.c: New file.
32727         * modules/unicase/u32-prefix-context: New file.
32728
32729         New module 'unicase/u16-prefix-context'.
32730         * lib/unicase/u16-prefix-context.c: New file.
32731         * modules/unicase/u16-prefix-context: New file.
32732
32733         New module 'unicase/u8-prefix-context'.
32734         * lib/unicase/u8-prefix-context.c: New file.
32735         * lib/unicase/u-prefix-context.h: New file.
32736         * lib/unicase/context.h: New file.
32737         * modules/unicase/u8-prefix-context: New file.
32738
32739         New module 'unicase/empty-prefix-context'.
32740         * lib/unicase/empty-prefix-context.c: New file.
32741         * modules/unicase/empty-prefix-context: New file.
32742
32743         New module 'unicase/ignorable'.
32744         * lib/unicase/ignorable.c: New file.
32745         * modules/unicase/ignorable: New file.
32746
32747         New module 'unicase/cased'.
32748         * lib/unicase/caseprop.h: New file.
32749         * lib/unicase/cased.c: New file.
32750         * modules/unicase/cased: New file.
32751
32752         New functions for case mapping of substrings.
32753         * lib/unicase.h (casing_prefix_context_t): New type.
32754         (unicase_empty_prefix_context): New variable.
32755         (u8_casing_prefix_context, u16_casing_prefix_context,
32756         u32_casing_prefix_context, u8_casing_prefixes_context,
32757         u16_casing_prefixes_context, u32_casing_prefixes_context): New
32758         declarations.
32759         (casing_suffix_context_t): New type.
32760         (unicase_empty_suffix_context): New variable.
32761         (u8_casing_suffix_context, u16_casing_suffix_context,
32762         u32_casing_suffix_context, u8_casing_suffixes_context,
32763         u16_casing_suffixes_context, u32_casing_suffixes_context,
32764         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
32765         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
32766         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
32767         declarations.
32768
32769 2009-06-28  Jim Meyering  <meyering@redhat.com>
32770
32771         boostrap: indent only with spaces
32772         * build-aux/bootstrap: Indent only with spaces, never TABs.
32773
32774         bootstrap: split long lines
32775         * build-aux/bootstrap: Keep line length < 80.
32776
32777         bootstrap: sync from coreutils
32778         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
32779         just as autoreconf does.  Verify a list of prerequisite
32780         package-name,version-number pairs if defined in bootstrap.conf.
32781         Refer to README-prereq, if prerequisites are not satisfied.
32782
32783 2009-06-27  Eric Blake  <ebb9@byu.net>
32784
32785         tests: add test for bogus NULL definition
32786         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
32787         * tests/test-stdlib.c: Likewise.
32788         * tests/test-string.c: Likewise.
32789         * tests/test-locale.c: Likewise.
32790         * tests/test-unistd.c: Likewise.
32791         * modules/stdio-tests (Depends-on): Add verify.
32792         * modules/stdlib-tests (Depends-on): Likewise.
32793         * modules/string-tests (Depends-on): Likewise.
32794         * modules/locale-tests (Depends-on): Likewise.
32795         * modules/unistd-tests (Depends-on): Likewise.
32796
32797 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
32798
32799         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
32800         self-explaining comment.
32801         * m4/selinux-selinux-h: Update serial.
32802         (gl_LIBSELINUX): New macro, adding a warning for missing development
32803         packages to code extracted from...
32804         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
32805         Add warning for missing development packages here, too.
32806
32807 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
32808
32809         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
32810
32811 2009-06-25  Eric Blake  <ebb9@byu.net>
32812
32813         version-etc: fix regression
32814         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
32815         gcc.
32816         (version_etc): Use it, to catch bugs with trailing NULL.
32817         * lib/version-etc.c (version_etc_arn): Delete unused argument.
32818         (version_etc_va): Fix logic bug.
32819         * modules/version-etc-tests: Add test.
32820         * tests/test-version-etc.c: New file.
32821         * tests/test-version-etc.sh: Likewise.
32822
32823 2009-06-25  Sam Steingold  <sds@gnu.org>
32824
32825         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
32826         mbtowc declaration.
32827
32828 2009-06-25  Eric Blake  <ebb9@byu.net>
32829
32830         fpurge: migrate into <stdio.h>
32831         * lib/fpurge.h: Delete...
32832         * lib/stdio.in.h (fpurge): ...and declare here, instead.
32833         * lib/fpurge.c (fpurge): Change declaring header.
32834         * modules/fpurge (Files): Drop deleted file.
32835         (Depends-on): Add stdio.
32836         (configure.ac): Set witness.
32837         * modules/stdio (Makefile.am): Support fpurge macros.
32838         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
32839         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
32840         * lib/fflush.c: Update client.
32841         * tests/test-fpurge.c: Likewise.
32842         * NEWS: Mention the change.
32843
32844 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
32845
32846         * lib/argp-version-etc.c (program_authors): Add const
32847         qualifier.
32848         * lib/version-etc.c: Fix typos in the comments.
32849         * modules/argp-version-etc: Depends on version-etc.
32850
32851 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
32852
32853         argp-version-etc: new module.
32854
32855         * lib/argp-version-etc.c: New file.
32856         * lib/argp-version-etc.h: New file.
32857         * modules/argp-version-etc: New file.
32858         * modules/argp-version-etc-tests: New file.
32859         * tests/test-argp-version-etc.c: New test.
32860         * tests/test-argp-version-etc-1.sh: New test.
32861
32862 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
32863
32864         Provide additional interfaces and documentation for version-etc
32865         module.
32866
32867         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
32868         interfaces.
32869         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
32870         prototypes.
32871
32872 2009-06-24  Bruno Haible  <bruno@clisp.org>
32873
32874         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
32875         HAVE_LIB${NAME} macro.
32876         Reported by Sam Steingold <sds@gnu.org>.
32877
32878 2009-06-23  Simon Josefsson  <simon@josefsson.org>
32879
32880         * modules/hash-tests (test_hash_LDADD): Link to libintl when
32881         needed.
32882
32883 2009-06-21  Bruno Haible  <bruno@clisp.org>
32884
32885         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
32886         work.
32887         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
32888         together with LIB${NAME}, LTLIB${NAME}.
32889         Reported by Sam Steingold <sds@gnu.org>.
32890
32891 2009-06-20  Jim Meyering  <meyering@redhat.com>
32892
32893         tests: make sc_require_test_exit_idiom more generic
32894         * top/maint.mk (Exit_witness_file): New overridable variable.
32895         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
32896         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
32897
32898 2009-06-19  Jim Meyering  <meyering@redhat.com>
32899
32900         hash: reverse order of src/dst parameters in an internal interface
32901         * lib/hash.c (transfer_entries): Reverse order of parameters to
32902         put DST before SRC.  Adjust callers.
32903
32904         tests: test-hash: avoid wholesale duplication
32905         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
32906         Instead, use a loop and add a single conditional.
32907
32908         tests: test-hash: allow seed selection via a command line argument
32909         * tests/test-hash.c (get_seed): New function.
32910         (main): Use it.
32911
32912 2009-06-19  Eric Blake  <ebb9@byu.net>
32913
32914         hash: avoid memory leak on allocation failure
32915         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
32916         failure.  Factor repeated algorithm...
32917         (transfer_entries): ...into new helper routine.
32918         (hash_delete): React to hash_rehash return value.
32919
32920         hash: reduce memory pressure in hash_rehash no-op case
32921         * lib/hash.c (next_prime): Avoid overflow.
32922         (hash_initialize): Factor bucket size computation...
32923         (compute_bucket_size): ...into new helper function.
32924         (hash_rehash): Use new function and open coding to reduce memory
32925         pressure, and avoid a memory leak in USE_OBSTACK code.
32926         Reported by Jim Meyering.
32927
32928 2009-06-18  Eric Blake  <ebb9@byu.net>
32929
32930         hash: make rotation more obvious
32931         * modules/hash (Depends-on): Add bitrotate and stdint.
32932         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
32933         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
32934         (SIZE_MAX): Rely on headers for definition.
32935         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
32936         (raw_hasher): Use rotr_sz.
32937         Suggested by Jim Meyering.
32938
32939         hash: fix memory leak in last patch
32940         * lib/hash.c (hash_rehash): Avoid memory leak.
32941
32942         hash: avoid no-op rehashing
32943         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
32944
32945         hash: provide default callback functions
32946         * lib/hash.c (raw_hasher, raw_comparator): New functions.
32947         (hash_initialize): Use them as defaults.
32948         * tests/test-hash.c (main): Test this.
32949
32950         hash: minor optimization
32951         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
32952         when possible.
32953         (hash_initialize): Document this promise.
32954         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
32955         * tests/test-hash.c (hash_compare_strings): Test this.
32956
32957 2009-06-18  Bruno Haible  <bruno@clisp.org>
32958
32959         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
32960         going to be replaced anyway.
32961
32962 2009-06-18  Bruno Haible  <bruno@clisp.org>
32963
32964         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
32965         in one place.
32966         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
32967         be replaced anyway.
32968
32969 2009-06-18  Eric Blake  <ebb9@byu.net>
32970
32971         hash: check for resize before insertion
32972         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
32973         threshold before insertion, so that a pathological hash_rehash
32974         that fills every bucket can still trigger another rehash.
32975
32976 2009-06-18  Jim Meyering  <meyering@redhat.com>
32977
32978         hash-tests: add a loop around the small tests
32979         * tests/test-hash.c (main): Repeat small tests with selected
32980         small initial table sizes.
32981
32982 2009-06-17  Eric Blake  <ebb9@byu.net>
32983
32984         hash: minor cleanups
32985         * lib/hash.h (hash_entry): Make opaque, by moving...
32986         * lib/hash.c (hash_entry): ...here.
32987         (hash_insert): Clarify restrictions on what can be inserted.
32988         (hash_get_next): Clarify when it is safe to remove an element
32989         during traversal.
32990         (check_tuning): Skip verification when tuning is known safe.
32991         (hash_initialize): Clarify restrictions on tuning.
32992
32993 2009-06-17  Jim Meyering  <jim@meyering.net>
32994         and Eric Blake  <ebb9@byu.net>
32995
32996         hash-tests: new module
32997         * modules/hash-tests: New file.
32998         * tests/test-hash.c: New file.
32999
33000 2009-06-17  Eric Blake  <ebb9@byu.net>
33001
33002         strstr-simple: document new module
33003         * MODULES.html.sh: Document new module.
33004
33005         strstr, strcasestr: replace on platforms with broken memchr
33006         * modules/strstr: Split into...
33007         * modules/strstr-simple: ...new module that does not care about
33008         performance, but does care about glibc bug.
33009         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
33010         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
33011         if platform memchr is broken, per Debian bug 521737.
33012         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
33013         memchr.
33014         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
33015         * doc/posix-functions/strstr.texi (strstr): Document the fix.
33016         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
33017         * modules/mountlist (Depends-on): Add strstr-simple.
33018         * modules/gen-uni-tables (Depends-on): Likewise.
33019         * modules/argz (Depends-on): Add strstr.
33020
33021 2009-06-17  Bruno Haible  <bruno@clisp.org>
33022
33023         * modules/posix_spawn-internal (Depends-on): Add errno.
33024
33025 2009-06-17  Bruno Haible  <bruno@clisp.org>
33026
33027         Define missing ESTALE on Interix 3.5.
33028         * lib/errno.in.h (ESTALE): Assign a value if missing.
33029         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
33030         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
33031         missing.
33032         * doc/posix-headers/errno.texi: Mention the Interix bug.
33033         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
33034
33035 2009-06-15  Eric Blake  <ebb9@byu.net>
33036
33037         memchr, memchr2: add valgrind exception
33038         * lib/memchr.valgrind: New file.
33039         * lib/memchr2.valgrind: New file.
33040         * modules/memchr (Files): Distribute valgrind file.
33041         * modules/memchr2 (Files): Likewise.
33042
33043         docs: memchr is no longer obsolete
33044         * MODULES.html.sh: Move memchr from obsolete to string.h section.
33045         * lib/string.in.h (memchr): Simplify logic.
33046
33047 2009-06-14  Jim Meyering  <meyering@redhat.com>
33048
33049         link-follow: fix the "checking..." message to not mention trailing slash
33050         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
33051         never considered trailing slashes.
33052
33053 2009-06-14  Bruno Haible  <bruno@clisp.org>
33054
33055         * m4/memchr.m4: Mention also the bug on IA-64.
33056         * doc/posix-functions/memchr.texi: Likewise.
33057
33058 2009-06-12  Eric Blake  <ebb9@byu.net>
33059
33060         memchr: detect broken x86_64 and alpha implementations
33061         * modules/memchr-tests (Depends-on): Move mmap detection...
33062         * modules/memchr (Depends-on): ...here.
33063         (configure.ac): Set indicator.
33064         * lib/string.in.h (memchr): Declare replacement.
33065         * modules/string (Makefile.am): Trigger replacement.
33066         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
33067         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
33068         bugs.
33069         * doc/posix-functions/memchr.texi (memchr): Document the bug.
33070         * modules/getpagesize (License): Relax license.
33071
33072 2009-06-11  Bruno Haible  <bruno@clisp.org>
33073
33074         * lib/idpriv.h: Add more references.
33075
33076 2009-06-08  Bruno Haible  <bruno@clisp.org>
33077
33078         Tests for module 'idpriv-droptemp'.
33079         * modules/idpriv-droptemp-tests: New file.
33080         * tests/test-idpriv-droptemp.sh: New file.
33081         * tests/test-idpriv-droptemp.su.sh: New file.
33082         * tests/test-idpriv-droptemp.c: New file.
33083
33084         New module 'idpriv-droptemp'.
33085         * lib/idpriv-droptemp.c: New file.
33086         * modules/idpriv-droptemp: New file.
33087
33088 2009-06-08  Bruno Haible  <bruno@clisp.org>
33089
33090         Tests for module 'idpriv-drop'.
33091         * modules/idpriv-drop-tests: New file.
33092         * tests/test-idpriv-drop.sh: New file.
33093         * tests/test-idpriv-drop.su.sh: New file.
33094         * tests/test-idpriv-drop.c: New file.
33095
33096         New module 'idpriv-drop'.
33097         * lib/idpriv.h: New file.
33098         * lib-idpriv-drop.c: New file.
33099         * m4/idpriv.m4: New file.
33100         * modules/idpriv-drop: New file.
33101
33102 2009-06-08  Bruno Haible  <bruno@clisp.org>
33103
33104         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
33105         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
33106         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
33107         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
33108         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
33109         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
33110         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
33111
33112 2009-06-08  Eric Blake  <ebb9@byu.net>
33113
33114         test-strstr: use memory fence, when possible
33115         * tests/test-strstr.c (main): Use memory fence, in order to be
33116         more likely to trigger Debian bug 521737.
33117         * modules/strstr-tests (Files): Pull in additional files.
33118
33119         memchr: no longer obsolete, for wider field testing
33120         * modules/memchr (Status, Notice): Delete, this module is no
33121         longer obsolete.
33122         * modules/vasnprintf (Depends-on): Add memchr.
33123
33124 2009-06-07  Jim Meyering  <meyering@redhat.com>
33125
33126         hash: declare some functions with the warn_unused_result attribute
33127         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
33128
33129 2009-06-07  Bruno Haible  <bruno@clisp.org>
33130
33131         * tests/test-alignof.c: Don't test int64_t if it does not exist.
33132         Reported by Eric Blake.
33133
33134 2009-06-06  Eric Blake  <ebb9@byu.net>
33135
33136         test-alignof: fix typo with long double
33137         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
33138         compiler error.
33139
33140 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
33141
33142         Escape non-texinfo { and }s.
33143         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
33144         markup error.
33145
33146 2009-06-04  Jim Meyering  <meyering@redhat.com>
33147
33148         gitlog-to-changelog: don't infloop on an empty commit log
33149         * build-aux/gitlog-to-changelog: Warn about an empty log message.
33150         Reported by Boris Petersen <transacid@centerim.org>.
33151
33152 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
33153
33154         version-etc: extend for packagers
33155         Add three new configure options, intended for packagers:
33156           --with-packager="packager name"
33157           --with-packager-version="packager-specific version"
33158           --with-packager-bug-reports="packager bug reporting"
33159         An example with coreutils:
33160           $ ./configure \
33161             --with-packager=Gentoo \
33162             --with-packager-bug-report=http://bugs.gentoo.org/ \
33163             --with-packager-version="patchset 1.6"
33164           $ ./src/ls --version | head -n2
33165           ls (GNU coreutils) 7.1-dirty
33166           Packaged by Gentoo (patchset 1.6)
33167         Note that the bug reporting info via --help doesn't show up because
33168         coreutils uses its own custom emit_bug_reporting_address() implementation
33169         in src/system.h.  If it didn't, it'd look like:
33170           $ ./src/ls --help | tail -n4
33171           Report bugs to <bug-coreutils@gnu.org>.
33172           Report Gentoo bugs to <http://bugs.gentoo.org/>.
33173           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
33174           General help using GNU software: <http://www.gnu.org/gethelp/>.
33175         * lib/version-etc.c: Print new information, if provided.
33176         * m4/version-etc.m4: New file.
33177         * modules/version-etc (Files): Add m4/version-etc.m4.
33178         (configure.ac): Add gl_VERSION_ETC.
33179
33180 2009-05-31  Bruno Haible  <bruno@clisp.org>
33181
33182         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
33183         and 'int64_t'.
33184         * modules/alignof-tests (Dependencies): Add stdint.
33185         Reported by Eric Blake.
33186
33187 2009-05-31  Bruno Haible  <bruno@clisp.org>
33188
33189         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
33190         restriction due to compiler bugs.
33191         Reported by Eric Blake.
33192
33193 2009-05-31  Simon Josefsson  <simon@josefsson.org>
33194             Bruno Haible  <bruno@clisp.org>
33195
33196         Fix test-alignof failure.
33197         * lib/alignof.h (alignof_slot): New macro.
33198         (alignof_type): New macro, with the same semantics as the previous
33199         'alignof'.
33200         (alignof): Alias to alignof_slot.
33201         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
33202         check that the results are usable as constant expressions.
33203
33204 2009-05-31  Bruno Haible  <bruno@clisp.org>
33205
33206         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
33207         * tests/test-memchr.c (main): Check that memchr does not read past the
33208         first occurrence of the byte.
33209         * tests/test-strstr.c (main): Update comment.
33210         Suggested by Eric Blake.
33211
33212 2009-05-30  Bruno Haible  <bruno@clisp.org>
33213
33214         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
33215         detail how to use dumpbin.
33216         Reported by David Byron <dbyron@dbyron.com>.
33217
33218 2009-06-02  Simon Josefsson  <simon@josefsson.org>
33219
33220         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
33221
33222 2009-06-02  Simon Josefsson  <simon@josefsson.org>
33223
33224         * m4/manywarnings.m4: Add GCC 4.4 warnings.
33225
33226 2009-05-28  Bruno Haible  <bruno@clisp.org>
33227
33228         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
33229         build-aux/ files.
33230
33231 2009-05-28  Simon Josefsson  <simon@josefsson.org>
33232
33233         * gnulib-tool (func_import): Transform license on build-aux/ files too.
33234
33235 2009-05-27  Simon Josefsson  <simon@josefsson.org>
33236
33237         * gnulib-tool (sed_transform_main_lib_file)
33238         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
33239         regexps.
33240
33241 2009-05-26  Simon Josefsson  <simon@josefsson.org>
33242
33243         * tests/test-strstr.c: Add another self-test.
33244         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
33245         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
33246
33247 2009-05-23  Bruno Haible  <bruno@clisp.org>
33248
33249         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
33250         change.
33251
33252 2009-05-21  Bruno Haible  <bruno@clisp.org>
33253
33254         Simplify use of mode_t varargs.
33255         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
33256         uses 'mode_t' or 'int'.
33257         * lib/openat.c (openat): Likewise.
33258         * lib/open-safer.c (open_safer): Likewise.
33259         * m4/mode_t.m4: New file.
33260         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
33261         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
33262         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
33263         * modules/open (Files): Add m4/mode_t.m4.
33264         * modules/openat (Files): Likewise.
33265         * modules/fcntl-safer (Files): Likewise.
33266         Suggested by Eric Blake.
33267
33268 2009-05-21  Pádraig Brady  <P@draigbrady.com>
33269
33270         * doc/glibc-functions/fallocate.texi: New file.
33271         * doc/gnulib.texi: Include it.
33272
33273 2009-05-21  Eric Blake  <ebb9@byu.net>
33274             Bruno Haible  <bruno@clisp.org>
33275
33276         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
33277         invocations.
33278         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
33279
33280 2009-05-21  Eric Blake  <ebb9@byu.net>
33281             Bruno Haible  <bruno@clisp.org>
33282
33283         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
33284         include_next. Fix of 2008-11-20 commit.
33285         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
33286         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
33287         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
33288         NEXT_MATH_H.
33289         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
33290         instead of NEXT_MATH_H.
33291
33292 2009-05-21  Bruno Haible  <bruno@clisp.org>
33293
33294         Avoid redefinition warnings for SIZE_MAX.
33295         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
33296         Reported by Simon Josefsson.
33297
33298 2009-05-21  Bruno Haible  <bruno@clisp.org>
33299
33300         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
33301         AC_CACHE_VAL.
33302
33303 2009-05-20  Bruno Haible  <bruno@clisp.org>
33304
33305         Make zeroptr.h work on mingw.
33306         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
33307         mprotect.
33308         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
33309         * modules/memchr2-tests (configure.ac): Likewise.
33310         * modules/memcmp-tests (configure.ac): Likewise.
33311         * modules/memmem-tests (configure.ac): Likewise.
33312         * modules/memrchr-tests (configure.ac): Likewise.
33313         Reported by Simon Josefsson.
33314
33315 2009-05-20  Simon Josefsson  <simon@josefsson.org>
33316
33317         * tests/test-glob.c: Include string.h for strcmp prototype.
33318
33319 2009-05-20  Simon Josefsson  <simon@josefsson.org>
33320
33321         * modules/getdelim (Depends-on): Add explicit stdint, although it
33322         was implicitly already pulled in via realloc-posix.
33323         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
33324
33325 2009-05-20  Simon Josefsson  <simon@josefsson.org>
33326
33327         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
33328         G. Christensen" <tgc@jupiterrise.com>.
33329         * m4/sys_socket_h.m4: Check for sa_family_t.
33330         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
33331         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
33332         * tests/test-sys_socket.c: Check that sa_family_t works.
33333
33334 2009-05-18  Eric Blake  <ebb9@byu.net>
33335
33336         maint.mk: allow gnulib_dir in VPATH build
33337         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
33338
33339 2009-05-15  Jim Meyering  <meyering@redhat.com>
33340
33341         maint.mk: Give gnulib_dir a default definition.
33342         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
33343         Thus, most packages no longer need to specify this variable in cfg.mk
33344
33345 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
33346
33347         rename.m4: fix typos that would make non-mingw cross-configure fail
33348         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
33349
33350 2009-05-13  Eric Blake  <ebb9@byu.net>
33351
33352         mmap-anon: avoid out-of-order autoconf expansion
33353         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
33354         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
33355         * modules/memchr-tests (Depends-on): Add extensions.
33356         * modules/memchr2-tests (Depends-on): Add extensions.
33357         * modules/memcmp-tests (Depends-on): Add extensions.
33358         * modules/memmem-tests (Depends-on): Add extensions.
33359         * modules/memrchr-tests (Depends-on): Add extensions.
33360
33361 2009-05-13  Bruno Haible  <bruno@clisp.org>
33362
33363         Make some tests ISO C 99 compliant.
33364         * tests/zerosize-ptr.h: New file.
33365         * tests/test-memchr.c: Include zerosize-ptr.h.
33366         (main): Use a zero-size object pointer instead of NULL.
33367         * tests/test-memchr2.c: Include zerosize-ptr.h.
33368         (main): Use a zero-size object pointer instead of NULL.
33369         * tests/test-memcmp.c: Include zerosize-ptr.h.
33370         (main): Use a zero-size object pointer instead of NULL.
33371         * tests/test-memmem.c: Include zerosize-ptr.h.
33372         (main): Use a zero-size object pointer instead of NULL.
33373         * tests/test-memrchr.c: Include zerosize-ptr.h.
33374         (main): Use a zero-size object pointer instead of NULL.
33375         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
33376         m4/mmap-anon.m4.
33377         (Depends-on): Add getpagesize.
33378         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
33379         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
33380         m4/mmap-anon.m4.
33381         (Depends-on): Add getpagesize.
33382         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
33383         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
33384         m4/mmap-anon.m4.
33385         (Depends-on): Add getpagesize.
33386         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
33387         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
33388         m4/mmap-anon.m4.
33389         (Depends-on): Add getpagesize.
33390         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
33391         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
33392         m4/mmap-anon.m4.
33393         (Depends-on): Add getpagesize.
33394         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
33395
33396 2009-05-12  Bruno Haible  <bruno@clisp.org>
33397
33398         Tests for module 'alignof'.
33399         * modules/alignof-tests: New file.
33400         * tests/test-alignof.c: New file.
33401
33402 2009-05-12  Bruno Haible  <bruno@clisp.org>
33403
33404         Fix alignof macro.
33405         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
33406         vendor compilers that are always correct.
33407
33408 2009-05-12  Bruno Haible  <bruno@clisp.org>
33409
33410         Make the MAP_ANONYMOUS detection work on HP-UX 11.
33411         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
33412         not whether its fully works.
33413
33414 2009-05-12  Bruno Haible  <bruno@clisp.org>
33415
33416         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
33417
33418 2009-05-12  Jim Meyering  <meyering@redhat.com>
33419
33420         * top/maint.mk: Adjust backslash alignment.
33421
33422 2009-05-11  Simon Josefsson  <simon@josefsson.org>
33423
33424         * top/maint.mk: Make $(srcdir)/build-aux configurable.
33425
33426 2009-05-11  Eric Blake  <ebb9@byu.net>
33427
33428         argp: avoid undefined behavior
33429         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
33430         macros.
33431
33432 2009-05-08  Simon Josefsson  <simon@josefsson.org>
33433
33434         * tests/test-vc-list-files-git.sh: Do git config of user.email and
33435         user.name to prevent git commit from complaining.
33436
33437 2009-05-10  Bruno Haible  <bruno@clisp.org>
33438
33439         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
33440         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
33441         it rewrites every file name only once.
33442         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
33443
33444 2009-05-08  Bruno Haible  <bruno@clisp.org>
33445
33446         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
33447         instead of 'max'.
33448
33449 2009-05-08  Simon Josefsson  <simon@josefsson.org>
33450
33451         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
33452         sockaddr_storage test.
33453
33454 2009-05-07  Simon Josefsson  <simon@josefsson.org>
33455
33456         * modules/sys_socket (Makefile.am): Substitute
33457         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
33458         * m4/sys_socket_h.m4: Check for sockaddr_storage.
33459         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
33460         * tests/test-sys_socket.c: Check sockaddr_storage.
33461
33462 2009-05-08  Bruno Haible  <bruno@clisp.org>
33463
33464         New module 'alignof'.
33465         * lib/alignof.h: New file.
33466         * modules/alignof: New file.
33467
33468 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
33469             Bruno Haible  <bruno@clisp.org>
33470
33471         Fix test-file-has-acl on FreeBSD.
33472         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
33473         mask is implicitly added.
33474         * tests/test-file-has-acl.c: Include <signal.h>.
33475         (main): Terminate the test after 5 seconds.
33476         * modules/acl-tests (configure.ac): Check for alarm function.
33477
33478 2009-05-04  Bruno Haible  <bruno@clisp.org>
33479
33480         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
33481         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
33482         * modules/errno (configure.ac): Drop AC_REQUIRE.
33483         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
33484         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
33485
33486 2009-05-04  Simon Josefsson  <simon@josefsson.org>
33487
33488         * modules/glob-tests: New module.
33489         * tests/test-glob.c: Add.
33490
33491 2009-05-04  Simon Josefsson  <simon@josefsson.org>
33492
33493         * modules/fnmatch-tests: New module.
33494         * tests/test-fnmatch.c: Add.
33495
33496 2009-05-04  Eric Blake  <ebb9@byu.net>
33497
33498         maint: make the new no-submodule-changes rule VPATH-safe
33499         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
33500
33501 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
33502             Bruno Haible  <bruno@clisp.org>
33503
33504         acl: Fix infinite loop on FreeBSD.
33505         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
33506         of return value from acl_get_entry.
33507         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
33508         Likewise.
33509
33510 2009-05-03  Bruno Haible  <bruno@clisp.org>
33511
33512         * lib/acl-internal.h (acl_entries): Clarify return value.
33513         * lib/acl_entries.c (acl_entries): Likewise.
33514
33515 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
33516
33517         Bug fix in acl module.
33518         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
33519
33520 2009-05-03  Bruno Haible  <bruno@clisp.org>
33521
33522         Create gperf-generated file in the source dir, not in the build dir.
33523         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
33524         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
33525         * modules/unicase/locale-language (unicase/locale-languages.h):
33526         Likewise.
33527         * modules/unicase/special-casing (unicase/special-casing-table.h):
33528         Likewise.
33529         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
33530         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
33531         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
33532         Reported by Ralf Wildenhues.
33533
33534 2009-05-03  Bruno Haible  <bruno@clisp.org>
33535
33536         * modules/fnmatch (Description, configure.ac): Taken from
33537         fnmatch-posix.
33538         * modules/fnmatch-posix: Turn into a symbolic reference to the
33539         'fnmatch' module, and deprecate.
33540         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
33541
33542 2009-05-03  Bruno Haible  <bruno@clisp.org>
33543
33544         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
33545         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
33546         Reported by Ralf Wildenhues.
33547
33548 2009-05-04  Simon Josefsson  <simon@josefsson.org>
33549
33550         * m4/fnmatch.m4: Fix fnmatch re-define.
33551
33552 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
33553
33554         priv-set: new module and tests; adapt write-any-file
33555         * lib/priv-set.c: New file.
33556         * lib/priv-set.h: New file.
33557         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
33558         * lib/write-any-file.c: Simplify by using priv-set module.
33559         * m4/priv-set.m4: New file.
33560         * modules/priv-set: New file.
33561         * modules/unlinkdir: Add dependency on priv-set module.
33562         * modules/write-any-file: Likewise.
33563
33564         Tests for module 'priv-set'.
33565         * modules/priv-set-tests: New file.
33566         * tests/test-priv-set.c: New file.
33567
33568 2009-05-03  Jim Meyering  <meyering@redhat.com>
33569             Bruno Haible  <bruno@clisp.org>
33570
33571         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
33572         use the converted UTF-8 variant of the name instead.
33573
33574 2009-05-03  Jim Meyering  <meyering@redhat.com>
33575
33576         tests: tighten some getdate tests
33577         * tests/test-getdate.c (main): Tighten tests: require equality,
33578         not just greater than.  Set TZ envvar to UTC0.
33579
33580 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
33581
33582         getdate: correctly interpret "next monday" when run on a Monday
33583         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
33584         that e.g., "next tues" (when run on a tuesday) results in a date
33585         that is one week in the future, and not today's date.
33586         I.e., add a week when the wday is the same as the current one.
33587         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
33588         and earlier by Martin Bernreuther and Jan Minář.
33589         * tests/test-getdate.c (main): Check that "next DAY" is always in
33590         the future and that "last DAY" is always in the past.
33591
33592 2009-05-02  Jim Meyering  <meyering@redhat.com>
33593
33594         build: ensure that a release build fails when a submodule is unclean
33595         * top/maint.mk (no-submodule-changes): New rule.
33596         (alpha beta major): Depend on it.
33597
33598 2009-05-02  Bruno Haible  <bruno@clisp.org>
33599
33600         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
33601         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
33602         shell variable gl_fnmatch_required to detect which variant is
33603         requested.
33604         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
33605         gl_FUNC_FNMATCH_POSIX.
33606         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
33607         exclude fnmatch-posix.
33608
33609 2009-05-02  Bruno Haible  <bruno@clisp.org>
33610
33611         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
33612         * modules/mbsrtowcs (License): Change to LGPLv2+.
33613         * modules/strnlen1 (License): Likewise.
33614         Reported by Simon Josefsson.
33615
33616 2009-05-02  Bruno Haible  <bruno@clisp.org>
33617
33618         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
33619         "cross".
33620         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
33621         gnulib-tool was called with option --source-base=lib.
33622
33623 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33624
33625         Use automake *-local hooks without commands, for extensibility.
33626         * modules/localcharset (Makefile.am): Rename install-exec-local
33627         rule to install-exec-localcharset, and make it a prerequisite of
33628         install-exec-local.  Likewise, rename the uninstall-local rule to
33629         uninstall-localcharset, and make it a prerequisite of the former.
33630
33631 2009-05-01  Bruno Haible  <bruno@clisp.org>
33632
33633         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
33634         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
33635         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
33636         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
33637         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
33638         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
33639         m4/locale-zh.m4, m4/codeset.m4.
33640
33641         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
33642         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
33643         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
33644         m4/locale-zh.m4.
33645
33646         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
33647         REPLACE_WCRTOMB if mbstate_t must be replaced.
33648         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
33649         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
33650
33651 2009-05-01  Bruno Haible  <bruno@clisp.org>
33652
33653         Avoid compiler warnings when redefining macros defined by <libintl.h>.
33654         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
33655         dngettext, dcngettext, textdomain, bindtextdomain,
33656         bind_textdomain_codeset): Undefine before redefining.
33657
33658 2009-04-30  Bruno Haible  <bruno@clisp.org>
33659
33660         Fix bug introduced on 2009-04-25.
33661         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
33662         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
33663         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
33664         is defined.
33665         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
33666         is defined.
33667         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
33668         is defined.
33669         Reported by Elbert_Pol <elbert.pol@gmail.com>.
33670
33671 2009-04-28  Bruno Haible  <bruno@clisp.org>
33672
33673         Comment tweaks.
33674         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
33675         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
33676         * lib/unicase.h (u*_casexfrm): Likewise.
33677         Reported by Paolo Bonzini.
33678
33679 2009-04-28  Bruno Haible  <bruno@clisp.org>
33680
33681         Fix a compilation error.
33682         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
33683         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
33684         Reported by Jim Meyering.
33685
33686 2009-04-27  Bruno Haible  <bruno@clisp.org>
33687
33688         New module 'libunistring'.
33689         * modules/libunistring: New file.
33690         * m4/libunistring.m4: New file.
33691         * MODULES.html.sh (Unicode string functions): Add it.
33692
33693 2009-04-27  Eric Blake  <ebb9@byu.net>
33694
33695         maint.mk: allow package-specific header to provide <config.h>
33696         * top/maint.mk (sc_require_config_h): New variable.
33697         (sc_require_config_h, sc_require_config_h_first): Use it.
33698
33699 2009-04-27  Simon Josefsson  <simon@josefsson.org>
33700
33701         * top/maint.mk (sc_avoid_if_before_free): Except
33702         useless-if-before-free script.
33703
33704 2009-04-27  Eric Blake  <ebb9@byu.net>
33705
33706         maintainer-makefile: depend on all required helper scripts
33707         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
33708         useless-if-before-free.
33709         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
33710         version, rather than assuming gnulib checkout is available.
33711         Reported by Simen Josefsson.
33712
33713 2009-04-26  Bruno Haible  <bruno@clisp.org>
33714
33715         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
33716         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
33717         "../" or "..".
33718
33719 2009-04-26  Bruno Haible  <bruno@clisp.org>
33720
33721         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
33722         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
33723         AC_LIB_HAVE_LINKFLAGS.
33724
33725 2009-04-26  Bruno Haible  <bruno@clisp.org>
33726
33727         Simplify calling convention of u*_conv_from_encoding.
33728         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
33729         u32_conv_from_encoding): Expect a resultbuf argument and return the
33730         result directly as a pointer.
33731         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
33732         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
33733         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
33734         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
33735         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
33736         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
33737         Update.
33738         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
33739         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
33740         * lib/vasnprintf.c (VASNPRINTF): Update.
33741         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
33742         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
33743         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
33744         * NEWS: Mention the change.
33745
33746 2009-04-26  Bruno Haible  <bruno@clisp.org>
33747
33748         Simplify calling convention of u*_conv_to_encoding.
33749         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
33750         u32_conv_to_encoding): Expect a resultbuf argument and return the
33751         result directly as a pointer.
33752         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
33753         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
33754         freeing scaled_offsets if mem_iconveha failed.
33755         * lib/unicase/u-casexfrm.h (FUNC): Update.
33756         * lib/uninorm/u-normxfrm.h (FUNC): Update.
33757         * lib/vasnprintf.c (VASNPRINTF): Update.
33758         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
33759         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
33760         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
33761         * NEWS: Mention the change.
33762
33763 2009-04-26  Bruno Haible  <bruno@clisp.org>
33764
33765         Avoid test failures on AIX and OSF/1.
33766         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
33767         malloc(0).
33768         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
33769         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
33770         Likewise.
33771         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
33772         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
33773         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
33774         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
33775         * doc/posix-functions/malloc.texi: Document the portability problem
33776         related to malloc(0).
33777
33778 2009-04-26  Bruno Haible  <bruno@clisp.org>
33779
33780         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
33781         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
33782         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
33783
33784 2009-04-25  Bruno Haible  <bruno@clisp.org>
33785
33786         Avoid link error when creating a namespace clean library.
33787         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
33788         as macro with arguments if already defined as an alias.
33789         * lib/signbitf.c (gl_signbitf): Don't undefine.
33790         * lib/signbitd.c (gl_signbitd): Don't undefine.
33791         * lib/signbitl.c (gl_signbitl): Don't undefine.
33792
33793 2009-04-25  Jim Meyering  <meyering@redhat.com>
33794
33795         vc-list-files: fix another quoting bug
33796         * build-aux/vc-list-files: Avoid sed backslash expansion
33797         of pathological directory names.
33798
33799 2009-04-25  Eric Blake  <ebb9@byu.net>
33800
33801         vc-list-files: fix shell quoting error
33802         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
33803         timestamp.
33804
33805 2009-04-25  Jim Meyering  <meyering@redhat.com>
33806
33807         vc-list-files: restore lost functionality with subdir argument
33808         * build-aux/vc-list-files: When given a non-"." sub-directory
33809         argument, substitute the $dir/ prefix back onto each resulting name.
33810         Otherwise, coreutils' root_tests check would fail.
33811
33812 2009-04-24  Eric Blake  <ebb9@byu.net>
33813
33814         vc-list-files: ignore git symlinks
33815         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
33816         than ls-files, to ignore git symlinks.
33817
33818         maint.mk: import improvements from m4
33819         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
33820         (move_if_change): Delete unused macro.
33821         (news-date-check, vc-diff-check): Support VPATH builds.
33822         (announcement): Likewise.  Split --bootstrap-tools list...
33823         (boostrap-tools): ...into separate list, which can be overridden
33824         in cfg.mk.
33825         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
33826         requiring dependency on useless-if-before-free module.
33827         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
33828         Support VPATH builds.
33829
33830 2009-04-24  Jim Meyering  <meyering@redhat.com>
33831
33832         maint.mk: remove coreutils-specific rules and variables
33833         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
33834         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
33835         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
33836
33837         maint.mk: remove obsolete rule
33838         * top/maint.mk (rel-check): Remove rule.
33839         (WGET, WGETFLAGS): Remove now-unused variables.
33840
33841 2009-04-24  Simon Josefsson  <simon@josefsson.org>
33842
33843         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
33844         consistency.
33845
33846         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
33847         '$(PATH_SEPARATOR)' instead of ':'.
33848
33849 2009-04-24  Simon Josefsson  <simon@josefsson.org>
33850
33851         * lib/getopt1.c (main): Use 'const' for static array.
33852
33853 2009-04-24  Simon Josefsson  <simon@josefsson.org>
33854
33855         * top/maint.mk: Sync with coreutils.
33856         * NEWS: Explain incompatibilities.
33857
33858 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
33859             Bruno Haible  <bruno@clisp.org>
33860
33861         Fix cross-compilation results.
33862         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
33863         statement, as third argument of AC_TRY_RUN.
33864         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
33865         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
33866         Likewise.
33867         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
33868         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
33869         Likewise.
33870         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
33871         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
33872         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
33873
33874 2009-04-20  Bruno Haible  <bruno@clisp.org>
33875
33876         Avoid test failure on mingw.
33877         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
33878
33879 2009-04-20  Bruno Haible  <bruno@clisp.org>
33880
33881         Avoid compilation error on mingw.
33882         * modules/localename-tests (Depends-on): Add locale.
33883
33884 2009-04-19  Bruno Haible  <bruno@clisp.org>
33885
33886         Support for building a shared library on Windows platforms.
33887         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
33888         (main): Test the presence of UNINORM_NFC here.
33889         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
33890         (main): Test the presence of UNINORM_NFD here.
33891         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
33892         (main): Test the presence of UNINORM_NFKC here.
33893         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
33894         (main): Test the presence of UNINORM_NFKD here.
33895
33896 2009-04-19  Bruno Haible  <bruno@clisp.org>
33897
33898         Avoid a compiler warning.
33899         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
33900         Change type of variable 'sequence'.
33901
33902 2009-04-19  Bruno Haible  <bruno@clisp.org>
33903
33904         * modules/configmake (Makefile.am): When the contents of configmake.h
33905         does not change, arrange to preserve its modification time.
33906
33907 2009-04-17  Simon Josefsson  <simon@josefsson.org>
33908
33909         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
33910         gettext domain.
33911
33912 2009-04-16  Jim Meyering  <meyering@redhat.com>
33913
33914         useless-if-before-free: improve conversion code
33915         * build-aux/useless-if-before-free: Adjust code-in-comment to match
33916         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
33917
33918 2009-04-14  Bruno Haible  <bruno@clisp.org>
33919
33920         * modules/fcntl (Depends-on): Add extensions.
33921         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
33922
33923 2009-04-12  Ben Pfaff  <blp@gnu.org>
33924
33925         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
33926         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
33927
33928 2009-03-20  Ben Pfaff  <blp@gnu.org>
33929
33930         Make rename replace existing destinations on Windows.
33931         * m4/rename.m4: Add test for Mingw.
33932         * lib/rename.c: Add rename replacement that uses MoveFileEx with
33933         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
33934         * doc/posix-functions/rename.texi: Document.
33935
33936 2009-04-10  Bruno Haible  <bruno@clisp.org>
33937
33938         New include file "iconveh.h".
33939         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
33940         * lib/striconveh.h: Include it.
33941         (enum iconv_ilseq_handler): Remove definition.
33942         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
33943         striconveh.h.
33944         * lib/striconveha.c: Include striconveh.h.
33945         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
33946         * modules/striconveh (Files): Add lib/iconveh.h.
33947         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
33948         lib/striconveh.h.
33949
33950 2009-04-10  Bruno Haible  <bruno@clisp.org>
33951
33952         * lib/uniconv.h: Update comment.
33953
33954 2009-04-10  Bruno Haible  <bruno@clisp.org>
33955
33956         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
33957         always.
33958         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
33959         * lib/unistr/u16-mbtouc-aux.c: Likewise.
33960         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
33961         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
33962         "unistring-notinline.h", so that the function gets defined always.
33963         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
33964         * lib/unistr/u8-uctomb.c: Likewise.
33965         * lib/unistr/u16-mbtouc.c: Likewise.
33966         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
33967         * lib/unistr/u16-uctomb.c: Likewise.
33968         * lib/unistr/u32-mbtouc.c: Likewise.
33969         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
33970         * lib/unistr/u32-uctomb.c: Likewise.
33971
33972 2009-04-10  Bruno Haible  <bruno@clisp.org>
33973
33974         Mark 'utime' obsolete.
33975         * modules/utime (Status, Notice): New sections.
33976         Suggested by Jim Meyering.
33977
33978         Fix cross-compile guess for utime test.
33979         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
33980         autoconf.
33981         * doc/posix-functions/utime.texi: Give more precisions.
33982         Reported by Jan <ipif@ymail.com>.
33983
33984 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
33985
33986         filevercmp: correct today's change
33987         * lib/filevercmp.c: Also handle coreutils' test inputs.
33988         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
33989
33990         Fix regression in 'filevercmp' module. Thanks Sven Joachim
33991         for reporting it.
33992         * lib/filevercmp.c: Special handle for "", "." and "..".
33993         * tests/test-filevercmp.c: Enlarge the set suite.
33994
33995 2009-04-07  Jim Meyering  <meyering@redhat.com>
33996
33997         useless-if-before-free: show how to remove braced useless free, too
33998         * build-aux/useless-if-before-free: still only in a comment, though.
33999
34000 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
34001
34002         maint.mk: import changes to syntax-check macros from coreutils
34003         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
34004         Use them in the relevant macros.
34005
34006 2009-04-06  Bruno Haible  <bruno@clisp.org>
34007
34008         Fix unportable use of bit-fields.
34009         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
34010         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
34011         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
34012
34013 2009-04-06  Bruno Haible  <bruno@clisp.org>
34014
34015         Avoid test failures on AIX and OSF/1.
34016         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
34017         that malloc(0) = NULL.
34018         * tests/unicase/test-u8-tolower.c (check): Likewise.
34019         * tests/unicase/test-u8-totitle.c (check): Likewise.
34020         * tests/unicase/test-u8-toupper.c (check): Likewise.
34021         * tests/unicase/test-u16-casefold.c (check): Likewise.
34022         * tests/unicase/test-u16-tolower.c (check): Likewise.
34023         * tests/unicase/test-u16-totitle.c (check): Likewise.
34024         * tests/unicase/test-u16-toupper.c (check): Likewise.
34025         * tests/unicase/test-u32-casefold.c (check): Likewise.
34026         * tests/unicase/test-u32-tolower.c (check): Likewise.
34027         * tests/unicase/test-u32-totitle.c (check): Likewise.
34028         * tests/unicase/test-u32-toupper.c (check): Likewise.
34029         * tests/uninorm/test-u8-nfc.c (check): Likewise.
34030         * tests/uninorm/test-u8-nfd.c (check): Likewise.
34031         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
34032         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
34033         * tests/uninorm/test-u16-nfc.c (check): Likewise.
34034         * tests/uninorm/test-u16-nfd.c (check): Likewise.
34035         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
34036         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
34037         * tests/uninorm/test-u32-nfc.c (check): Likewise.
34038         * tests/uninorm/test-u32-nfd.c (check): Likewise.
34039         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
34040         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
34041
34042 2009-04-05  Bruno Haible  <bruno@clisp.org>
34043
34044         Work around an autoconf limitation.
34045         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
34046         comment line if it would be longer than 3 KB.
34047
34048 2009-04-05  Bruno Haible  <bruno@clisp.org>
34049
34050         Avoid test failure with libiconv-1.13.
34051         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
34052         of the expected test results.
34053
34054 2009-04-05  Bruno Haible  <bruno@clisp.org>
34055
34056         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
34057         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
34058         that it should be installed.
34059
34060 2009-04-05  Bruno Haible  <bruno@clisp.org>
34061
34062         * gnulib-tool: New option --copy-file.
34063         (func_usage): Document it.
34064         (func_dest_tmpfilename): Moved out of func_import.
34065         (func_add_file, func_update_file): New functions, extracted from
34066         func_import.
34067         (func_import): Update.
34068
34069 2009-04-05  Karl Berry  <karl@gnu.org>
34070
34071         * README: prominently mention gnulib-tool.
34072         Rearrange sections so getting the code is near the top.
34073
34074 2009-04-05  Bruno Haible  <bruno@clisp.org>
34075
34076         * lib/unicase.h: Mention u*_cmp2.
34077         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
34078         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
34079         * lib/unicase/ulc-casecmp.c: Likewise.
34080         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
34081         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
34082         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
34083         unistr/u8-cmp.
34084         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
34085         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
34086         unistr/u16-cmp.
34087         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
34088         unistr/u32-cmp.
34089
34090         * lib/uninorm.h: Mention u*_cmp2.
34091         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
34092         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
34093         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
34094         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
34095         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
34096         unistr/u8-cmp.
34097         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
34098         unistr/u16-cmp.
34099         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
34100         unistr/u32-cmp.
34101
34102         New module 'unistr/u32-cmp2'.
34103         * lib/unistr/u32-cmp2.c: New file.
34104         * modules/unistr/u32-cmp2: New file.
34105
34106         New module 'unistr/u16-cmp2'.
34107         * lib/unistr/u16-cmp2.c: New file.
34108         * modules/unistr/u16-cmp2: New file.
34109
34110         New module 'unistr/u8-cmp2'.
34111         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
34112         * lib/unistr/u8-cmp2.c: New file.
34113         * lib/unistr/u-cmp2.h: New file.
34114         * modules/unistr/u8-cmp2: New file.
34115
34116 2009-04-05  Bruno Haible  <bruno@clisp.org>
34117
34118         * lib/unictype.h (uc_property_is_valid): New macro.
34119         * tests/unictype/test-pr_byname.c (main): Use it.
34120
34121         * lib/unistr.h: Doc fixes.
34122         * lib/uniconv.h: Doc fixes.
34123         * lib/unictype.h: Doc fixes.
34124
34125 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
34126
34127         Port coreutils 7.2 to Solaris 8.
34128
34129         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
34130         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
34131         for Solaris 8.  This is a bit of a hack, as it means it's the
34132         caller's responsibility to add -lnsl if needed, but most likely it
34133         won't be needed since only getaddrinfo uses this and getaddrinfo
34134         isn't needed on Solaris 8.
34135
34136         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
34137         problem to Solaris 8 encountered with coreutils 7.2, which
34138         resulted in a message "fnmatch.c:292: warning: passing argument 4
34139         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
34140         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
34141
34142 2009-04-03  Simon Josefsson  <simon@josefsson.org>
34143
34144         * m4/ld-version-script.m4: Add FIXME comment.
34145
34146 2009-04-02  Simon Josefsson  <simon@josefsson.org>
34147
34148         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
34149         SOVERSION variable.
34150
34151 2009-04-02  Bruno Haible  <bruno@clisp.org>
34152
34153         * Makefile (info, html, dvi, pdf): Combine the rules.
34154         Suggested by Jim Meyering.
34155
34156 2009-04-01  Bruno Haible  <bruno@clisp.org>
34157
34158         * Makefile (info, html, dvi, pdf): New targets.
34159         Reported by Reuben Thomas <rrt@sc3d.org>.
34160
34161 2009-04-01  Bruno Haible  <bruno@clisp.org>
34162
34163         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
34164         can be put into PATH.
34165         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
34166
34167 2009-04-01  Bruno Haible  <bruno@clisp.org>
34168
34169         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
34170
34171 2009-04-01  Bruno Haible  <bruno@clisp.org>
34172
34173         Rename module 'visibility'.
34174         * modules/lib-symbol-visibility: Renamed from modules/visibility.
34175         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
34176         * doc/gnulib.texi: Update.
34177         * MODULES.html.sh (Misc): Update.
34178         * NEWS: Mention the change.
34179
34180 2009-04-01  Simon Josefsson  <simon@josefsson.org>
34181
34182         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
34183         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
34184         Eric Blake <ebb9@byu.net> for review.
34185         * MODULES.html.sh: Add lib-msvc-compat.
34186         * doc/gnulib.texi: Link to new section.
34187         * m4/ld-output-def.m4: New file.
34188         * doc/ld-output-def.texi: New file.
34189
34190 2009-04-01  Simon Josefsson  <simon@josefsson.org>
34191
34192         Rename ld-version-script to lib-symbol-versions.  Suggested by
34193         Bruno Haible <bruno@clisp.org>.
34194         * modules/ld-version-script: Renamed to lib-symbol-versions.
34195         * doc/ld-version-script.texi: Fix module name.
34196         * MODULES.html.sh: Add lib-symbol-versions.
34197
34198 2009-03-31  Simon Josefsson  <simon@josefsson.org>
34199
34200         * modules/u64-tests: New file.
34201         * tests/test-u64.c: New file.
34202
34203 2009-03-04  Simon Josefsson  <simon@josefsson.org>
34204
34205         * MODULES.html.sh: Mention u64.
34206         * modules/u64: New module.
34207         * modules/crypto/sha512: Depend on u64 module instead of providing
34208         u64.h.
34209
34210 2009-03-27  Eric Blake  <ebb9@byu.net>
34211
34212         test-strerror: make debugging EAI_SYSTEM easier
34213         * modules/getaddrinfo-tests (Depends-on): Add strerror.
34214         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
34215         failure was EAI_SYSTEM.
34216
34217 2009-03-25  Bruno Haible  <bruno@clisp.org>
34218
34219         Fix a problem with --enable-relocatable on Solaris 7.
34220         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
34221         since 2008-02-24.
34222
34223 2009-03-25  Eric Blake  <ebb9@byu.net>
34224
34225         test-sockets: avoid gcc warning
34226         * tests/test-sockets.c (main): Silence compiler warning.
34227
34228 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
34229
34230         New modules nproc, pthread, contributed by Glen Lenker.
34231
34232         * MODULES.html.sh: Add pthread, nproc.
34233         * lib/nproc.c: New file.
34234         * lib/nproc.h: New file.
34235         * lib/pthread.in.h: New file.
34236         * m4/pthread.m4: New file.
34237         * modules/nproc: New file.
34238         * modules/pthread: New file.
34239
34240 2009-03-24  Simon Josefsson  <simon@josefsson.org>
34241
34242         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
34243         New variable.
34244
34245 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
34246
34247         filevercmp: handle simple~ and numbered.~3~ backup suffixes
34248         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
34249         * tests/test-filevercmp.c: Add tests for backup suffixes.
34250
34251 2009-03-24  Simon Josefsson  <simon@josefsson.org>
34252
34253         * modules/stdlib (Depends-on): Add stdint, needed when defining
34254         struct random_data on, for example, HP-UX 10.20.  Reported by
34255         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
34256
34257 2009-03-24  Simon Josefsson  <simon@josefsson.org>
34258
34259         * lib/readline.c (readline): Call fflush on stdout after printing
34260         prompt.
34261
34262 2009-03-20  Bruno Haible  <bruno@clisp.org>
34263
34264         Remove dependency from 'close' module to -lws2_32 on native Windows.
34265         * lib/close-hook.h: New file.
34266         * lib/close-hook.c: New file.
34267         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
34268         w32sock.h.
34269         (_gl_close_fd_maybe_socket): Remove function.
34270         (rpl_close): Invoke execute_all_close_hooks instead of
34271         _gl_close_fd_maybe_socket.
34272         * lib/sockets.c: Include close-hook.h, w32sock.h.
34273         (close_fd_maybe_socket): New function, essentially from lib/close.c.
34274         (close_sockets_hook): New variable.
34275         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
34276         (gl_sockets_cleanup): Unregister it.
34277         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
34278         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
34279         * modules/close-hook: New file.
34280         * modules/close (Files): Remove lib/w32sock.h.
34281         (Depends-on): Add close-hook.
34282         (Link): Remove section.
34283         * modules/sockets (Files): Add lib/w32sock.h.
34284         (Depends-on): Add close-hook.
34285         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
34286         invocation.
34287         * NEWS: Mention that LIB_CLOSE is gone.
34288
34289 2009-03-23  Eric Blake  <ebb9@byu.net>
34290
34291         signal-tests: test previous patch
34292         * tests/test-signal.c: New file.
34293         * modules/signal-tests: Likewise.
34294
34295         signal.h: always support 'volatile sig_atomic_t'
34296         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
34297         (gl_SIGNAL_H_DEFAULTS): Add a default.
34298         * modules/signal (Makefile.am): Substitute if needed.
34299         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
34300         users can blindly add volatile.
34301         * doc/posix-headers/signal.texi (signal.h): Document it.
34302         Reported by Matthew Woehlke.
34303
34304 2009-03-23  Jim Meyering  <meyering@redhat.com>
34305
34306         pathmax: PATH_MAX: use pathconf only when available
34307         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
34308         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
34309         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
34310         This avoids a link failure in a PSP cross-compilation environment
34311         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
34312
34313         * lib/vasnprintf.c (divide): Fix typo in comment.
34314
34315 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34316
34317         * gnulib-tool (func_filter_filelist): Fix comment.
34318
34319 2009-03-20  Bruno Haible  <bruno@clisp.org>
34320
34321         Make sockets.h self-contained.
34322         * lib/sockets.c: Include sockets.h first.
34323         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
34324
34325 2009-03-19  Eric Blake  <ebb9@byu.net>
34326
34327         doc: mention more functions added in cygwin 1.7.0
34328         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
34329         addition.
34330         * doc/posix-functions/log2f.texi: Likewise.
34331
34332 2009-03-19  Jim Meyering  <meyering@redhat.com>
34333
34334         fsusage: avoid syntax error due to statement-before-declaration
34335         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
34336         after all declarations.  Reported by Matthew Woehlke in
34337         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
34338
34339 2009-03-18  Eric Blake  <ebb9@byu.net>
34340
34341         build-aux/compile: sync from automake
34342         * build-aux/compile: New file, from automake.
34343         * config/srclist.txt: Mention build-aux/compile.
34344
34345 2009-03-17  Bruno Haible  <bruno@clisp.org>
34346
34347         * lib/git-merge-changelog.c: Fix typo in comment.
34348         Reported by Reuben Thomas <rrt@sc3d.org>.
34349
34350 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
34351
34352         * m4/regex.m4: update and improve help for
34353         --without-included-regex.
34354
34355 2009-03-17  Simon Josefsson  <simon@josefsson.org>
34356
34357         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
34358         failure on missing include files.
34359
34360 2009-03-17  Eric Blake  <ebb9@byu.net>
34361
34362         doc: mention more functions added in cygwin 1.7.0
34363         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
34364         addition.
34365         * doc/posix-functions/fwscanf.texi: Likewise.
34366         * doc/posix-functions/swprintf.texi: Likewise.
34367         * doc/posix-functions/swscanf.texi: Likewise.
34368         * doc/posix-functions/vfwprintf.texi: Likewise.
34369         * doc/posix-functions/vfwscanf.texi: Likewise.
34370         * doc/posix-functions/vswprintf.texi: Likewise.
34371         * doc/posix-functions/vswscanf.texi: Likewise.
34372         * doc/posix-functions/vwprintf.texi: Likewise.
34373         * doc/posix-functions/vwscanf.texi: Likewise.
34374         * doc/posix-functions/wcscasecmp.texi: Likewise.
34375         * doc/posix-functions/wcsdup.texi: Likewise.
34376         * doc/posix-functions/wcsftime.texi: Likewise.
34377         * doc/posix-functions/wcsncasecmp.texi: Likewise.
34378         * doc/posix-functions/wprintf.texi: Likewise.
34379         * doc/posix-functions/wscanf.texi: Likewise.
34380         * doc/glibc-functions/gethostbyname2.texi: Likewise.
34381
34382 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34383
34384         maint.mk: really add $(AM_MAKEFLAGS)
34385         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
34386         was inadvertently omitted in the last commit.
34387         Spotted by Bruno Haible.
34388
34389         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
34390         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
34391         $(AM_MAKEFLAGS)' rather than plain `make'.
34392
34393         gnulib-tool: execute $MAKE not make
34394         * gnulib-tool: Default $MAKE to 'make'.
34395         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
34396         than make.  Initialize $MAKE in the do-autobuild script.
34397
34398         gnulib-tool: use $MAKE not make in generated files
34399         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
34400         make, in generated files.  Initialize $MAKE in the do-autobuild
34401         script.
34402
34403         * top/GNUmakefile (_have-git-version-gen): Fix typo.
34404
34405         GNUmakefile: disable parallelism only for multiple, recursive targets
34406         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
34407         additions in the Makefile.
34408         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
34409         by Automake.
34410         (.NOTPARALLEL): Only disable parallel builds if multiple targets
34411         are listed on the command line and at least one of them is
34412         listed in $(ALL_RECURSIVE_TARGETS).
34413
34414 2009-03-14  Bruno Haible  <bruno@clisp.org>
34415
34416         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
34417         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
34418         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
34419         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
34420         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
34421         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
34422         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
34423         unistr/u8-uctomb.
34424         * modules/unistr/u8-strchr (Depends-on): Likewise.
34425         * modules/unistr/u8-strrchr (Depends-on): Likewise.
34426         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
34427         unistr/u16-uctomb.
34428         * modules/unistr/u16-strchr (Depends-on): Likewise.
34429         * modules/unistr/u16-strrchr (Depends-on): Likewise.
34430
34431 2009-03-12  Bruno Haible  <bruno@clisp.org>
34432
34433         Work around select() bug on Interix 3.5.
34434         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
34435         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
34436         * m4/select.m4: New file.
34437         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
34438         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
34439         * modules/select (Files): Add m4/select.m4.
34440         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
34441         * modules/nanosleep (Depends-on): Add select.
34442         * modules/poll (Depends-on): Likewise.
34443         * doc/posix-functions/select.texi: Mention the Interix bug.
34444         Reported by Markus Duft <mduft@gentoo.org>.
34445
34446         * lib/select.c: Renamed from lib/winsock-select.c.
34447         * modules/select (Files): Add lib/select.c, remove
34448         lib/winsock-select.c.
34449         (configure.ac): Update.
34450
34451 2009-03-12  Jim Meyering  <meyering@redhat.com>
34452
34453         avoid gcc warnings about unused macro definitions
34454         * lib/readtokens.c (STREQ): Remove unused definition.
34455         * lib/xmalloc.c (SIZE_MAX): Likewise.
34456         * lib/openat-die.c (N_): Likewise.
34457         * lib/mountlist.c (SIZE_MAX): Remove definition.
34458         Instead, include <stdint.h>.
34459         * lib/readutmp.c: Likewise.
34460         * modules/readutmp (Depends-on): Add stdint.
34461         * modules/mountlist (Depends-on): Add stdint.
34462         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
34463
34464 2009-03-10  Bruno Haible  <bruno@clisp.org>
34465
34466         Tests for module 'mbmemcasecoll'.
34467         * modules/mbmemcasecoll-tests: New file.
34468         * tests/test-mbmemcasecoll1.sh: New file.
34469         * tests/test-mbmemcasecoll2.sh: New file.
34470         * tests/test-mbmemcasecoll3.sh: New file.
34471         * tests/test-mbmemcasecoll.c: New file.
34472
34473         New module 'mbmemcasecoll'.
34474         * lib/mbmemcasecoll.h: New file.
34475         * lib/mbmemcasecoll.c: New file.
34476         * modules/mbmemcasecoll: New file.
34477
34478         * tests/test-mbmemcasecmp.h: New file, extracted from
34479         tests/test-mbmemcasecmp.c.
34480         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
34481         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
34482         (main): Update.
34483         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
34484
34485 2009-03-09  Bruno Haible  <bruno@clisp.org>
34486
34487         Tests for module 'mbmemcasecmp'.
34488         * modules/mbmemcasecmp-tests: New file.
34489         * tests/test-mbmemcasecmp1.sh: New file.
34490         * tests/test-mbmemcasecmp2.sh: New file.
34491         * tests/test-mbmemcasecmp3.sh: New file.
34492         * tests/test-mbmemcasecmp.c: New file.
34493
34494         New module 'mbmemcasecmp'.
34495         * lib/mbmemcasecmp.h: New file.
34496         * lib/mbmemcasecmp.c: New file.
34497         * modules/mbmemcasecmp: New file.
34498
34499 2009-03-09  Bruno Haible  <bruno@clisp.org>
34500
34501         Tests for module 'unicase/ulc-casecoll'.
34502         * modules/unicase/ulc-casecoll-tests: New file.
34503         * tests/unicase/test-ulc-casecoll1.sh: New file.
34504         * tests/unicase/test-ulc-casecoll2.sh: New file.
34505         * tests/unicase/test-ulc-casecoll.c: New file.
34506
34507         New module 'unicase/ulc-casecoll'.
34508         * lib/unicase.h (ulc_casecoll): New declaration.
34509         * lib/unicase/ulc-casecoll.c: New file.
34510         * modules/unicase/ulc-casecoll: New file.
34511
34512         New module 'unicase/ulc-casexfrm'.
34513         * lib/unicase.h (ulc_casexfrm): New declaration.
34514         * lib/unicase/ulc-casexfrm.c: New file.
34515         * modules/unicase/ulc-casexfrm: New file.
34516
34517 2009-03-09  Bruno Haible  <bruno@clisp.org>
34518
34519         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
34520         invocations.
34521
34522         * m4/mbscasecmp.m4: Remove file.
34523         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
34524         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
34525
34526         * m4/mbscasestr.m4: Remove file.
34527         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
34528         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
34529
34530         * m4/mbschr.m4: Remove file.
34531         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
34532         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
34533
34534         * m4/mbscspn.m4: Remove file.
34535         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
34536         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
34537
34538         * m4/mbslen.m4: Remove file.
34539         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
34540         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
34541
34542         * m4/mbsncasecmp.m4: Remove file.
34543         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
34544         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
34545
34546         * m4/mbsnlen.m4: Remove file.
34547         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
34548         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
34549
34550         * m4/mbspbrk.m4: Remove file.
34551         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
34552         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
34553
34554         * m4/mbspcasecmp.m4: Remove file.
34555         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
34556         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
34557
34558         * m4/mbsrchr.m4: Remove file.
34559         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
34560         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
34561
34562         * m4/mbssep.m4: Remove file.
34563         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
34564         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
34565
34566         * m4/mbsspn.m4: Remove file.
34567         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
34568         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
34569
34570         * m4/mbsstr.m4: Remove file.
34571         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
34572         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
34573
34574         * m4/mbstok_r.m4: Remove file.
34575         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
34576         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
34577
34578         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
34579
34580         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
34581         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
34582
34583         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
34584
34585 2009-03-08  Bruno Haible  <bruno@clisp.org>
34586
34587         Tests for module 'unicase/ulc-casecmp'.
34588         * modules/unicase/ulc-casecmp-tests: New file.
34589         * tests/unicase/test-ulc-casecmp1.sh: New file.
34590         * tests/unicase/test-ulc-casecmp2.sh: New file.
34591         * tests/unicase/test-ulc-casecmp.c: New file.
34592
34593         New module 'unicase/ulc-casecmp'.
34594         * lib/unicase.h (ulc_casecmp): New declaration.
34595         * lib/unicase/ulc-casecmp.c: New file.
34596         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
34597         'const SRC_UNIT *'.
34598         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
34599         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
34600         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
34601         * modules/unicase/ulc-casecmp: New file.
34602
34603         Tests for module 'unicase/u32-is-cased'.
34604         * modules/unicase/u32-is-cased-tests: New file.
34605         * tests/unicase/test-u32-is-cased.c: New file.
34606
34607         Tests for module 'unicase/u16-is-cased'.
34608         * modules/unicase/u16-is-cased-tests: New file.
34609         * tests/unicase/test-u16-is-cased.c: New file.
34610
34611         Tests for module 'unicase/u8-is-cased'.
34612         * modules/unicase/u8-is-cased-tests: New file.
34613         * tests/unicase/test-u8-is-cased.c: New file.
34614         * tests/unicase/test-is-cased.h: New file.
34615
34616         New module 'unicase/u32-is-cased'.
34617         * lib/unicase/u32-is-cased.c: New file.
34618         * modules/unicase/u32-is-cased: New file.
34619
34620         New module 'unicase/u16-is-cased'.
34621         * lib/unicase/u16-is-cased.c: New file.
34622         * modules/unicase/u16-is-cased: New file.
34623
34624         New module 'unicase/u8-is-cased'.
34625         * lib/unicase/u8-is-cased.c: New file.
34626         * lib/unicase/u-is-cased.h: New file.
34627         * modules/unicase/u8-is-cased: New file.
34628
34629         Tests for module 'unicase/u32-is-casefolded'.
34630         * modules/unicase/u32-is-casefolded-tests: New file.
34631         * tests/unicase/test-u32-is-casefolded.c: New file.
34632
34633         Tests for module 'unicase/u16-is-casefolded'.
34634         * modules/unicase/u16-is-casefolded-tests: New file.
34635         * tests/unicase/test-u16-is-casefolded.c: New file.
34636
34637         Tests for module 'unicase/u8-is-casefolded'.
34638         * modules/unicase/u8-is-casefolded-tests: New file.
34639         * tests/unicase/test-u8-is-casefolded.c: New file.
34640         * tests/unicase/test-is-casefolded.h: New file.
34641
34642         New module 'unicase/u32-is-casefolded'.
34643         * lib/unicase/u32-is-casefolded.c: New file.
34644         * modules/unicase/u32-is-casefolded: New file.
34645
34646         New module 'unicase/u16-is-casefolded'.
34647         * lib/unicase/u16-is-casefolded.c: New file.
34648         * modules/unicase/u16-is-casefolded: New file.
34649
34650         New module 'unicase/u8-is-casefolded'.
34651         * lib/unicase/u8-is-casefolded.c: New file.
34652         * modules/unicase/u8-is-casefolded: New file.
34653
34654         Tests for module 'unicase/u32-is-titlecase'.
34655         * modules/unicase/u32-is-titlecase-tests: New file.
34656         * tests/unicase/test-u32-is-titlecase.c: New file.
34657
34658         Tests for module 'unicase/u16-is-titlecase'.
34659         * modules/unicase/u16-is-titlecase-tests: New file.
34660         * tests/unicase/test-u16-is-titlecase.c: New file.
34661
34662         Tests for module 'unicase/u8-is-titlecase'.
34663         * modules/unicase/u8-is-titlecase-tests: New file.
34664         * tests/unicase/test-u8-is-titlecase.c: New file.
34665         * tests/unicase/test-is-titlecase.h: New file.
34666
34667         New module 'unicase/u32-is-titlecase'.
34668         * lib/unicase/u32-is-titlecase.c: New file.
34669         * modules/unicase/u32-is-titlecase: New file.
34670
34671         New module 'unicase/u16-is-titlecase'.
34672         * lib/unicase/u16-is-titlecase.c: New file.
34673         * modules/unicase/u16-is-titlecase: New file.
34674
34675         New module 'unicase/u8-is-titlecase'.
34676         * lib/unicase/u8-is-titlecase.c: New file.
34677         * modules/unicase/u8-is-titlecase: New file.
34678
34679         Tests for module 'unicase/u32-is-lowercase'.
34680         * modules/unicase/u32-is-lowercase-tests: New file.
34681         * tests/unicase/test-u32-is-lowercase.c: New file.
34682
34683         Tests for module 'unicase/u16-is-lowercase'.
34684         * modules/unicase/u16-is-lowercase-tests: New file.
34685         * tests/unicase/test-u16-is-lowercase.c: New file.
34686
34687         Tests for module 'unicase/u8-is-lowercase'.
34688         * modules/unicase/u8-is-lowercase-tests: New file.
34689         * tests/unicase/test-u8-is-lowercase.c: New file.
34690         * tests/unicase/test-is-lowercase.h: New file.
34691
34692         New module 'unicase/u32-is-lowercase'.
34693         * lib/unicase/u32-is-lowercase.c: New file.
34694         * modules/unicase/u32-is-lowercase: New file.
34695
34696         New module 'unicase/u16-is-lowercase'.
34697         * lib/unicase/u16-is-lowercase.c: New file.
34698         * modules/unicase/u16-is-lowercase: New file.
34699
34700         New module 'unicase/u8-is-lowercase'.
34701         * lib/unicase/u8-is-lowercase.c: New file.
34702         * modules/unicase/u8-is-lowercase: New file.
34703
34704         Tests for module 'unicase/u32-is-uppercase'.
34705         * modules/unicase/u32-is-uppercase-tests: New file.
34706         * tests/unicase/test-u32-is-uppercase.c: New file.
34707
34708         Tests for module 'unicase/u16-is-uppercase'.
34709         * modules/unicase/u16-is-uppercase-tests: New file.
34710         * tests/unicase/test-u16-is-uppercase.c: New file.
34711
34712         Tests for module 'unicase/u8-is-uppercase'.
34713         * modules/unicase/u8-is-uppercase-tests: New file.
34714         * tests/unicase/test-u8-is-uppercase.c: New file.
34715         * tests/unicase/test-is-uppercase.h: New file.
34716
34717         New module 'unicase/u32-is-uppercase'.
34718         * lib/unicase/u32-is-uppercase.c: New file.
34719         * modules/unicase/u32-is-uppercase: New file.
34720
34721         New module 'unicase/u16-is-uppercase'.
34722         * lib/unicase/u16-is-uppercase.c: New file.
34723         * modules/unicase/u16-is-uppercase: New file.
34724
34725         New module 'unicase/u8-is-uppercase'.
34726         * lib/unicase/u8-is-uppercase.c: New file.
34727         * modules/unicase/u8-is-uppercase: New file.
34728
34729         New module 'unicase/u32-is-invariant'.
34730         * lib/unicase/u32-is-invariant.c: New file.
34731         * modules/unicase/u32-is-invariant: New file.
34732
34733         New module 'unicase/u16-is-invariant'.
34734         * lib/unicase/u16-is-invariant.c: New file.
34735         * modules/unicase/u16-is-invariant: New file.
34736
34737         New module 'unicase/u8-is-invariant'.
34738         * lib/unicase/u8-is-invariant.c: New file.
34739         * lib/unicase/invariant.h: New file.
34740         * lib/unicase/u-is-invariant.h: New file.
34741         * modules/unicase/u8-is-invariant: New file.
34742
34743         Tests for module 'unicase/u32-casecoll'.
34744         * modules/unicase/u32-casecoll-tests: New file.
34745         * tests/unicase/test-u32-casecoll.c: New file.
34746
34747         Tests for module 'unicase/u16-casecoll'.
34748         * modules/unicase/u16-casecoll-tests: New file.
34749         * tests/unicase/test-u16-casecoll.c: New file.
34750
34751         Tests for module 'unicase/u8-casecoll'.
34752         * modules/unicase/u8-casecoll-tests: New file.
34753         * tests/unicase/test-u8-casecoll.c: New file.
34754
34755         New module 'unicase/u32-casecoll'.
34756         * lib/unicase/u32-casecoll.c: New file.
34757         * modules/unicase/u32-casecoll: New file.
34758
34759         New module 'unicase/u16-casecoll'.
34760         * lib/unicase/u16-casecoll.c: New file.
34761         * modules/unicase/u16-casecoll: New file.
34762
34763         New module 'unicase/u8-casecoll'.
34764         * lib/unicase/u8-casecoll.c: New file.
34765         * lib/unicase/u-casecoll.h: New file.
34766         * modules/unicase/u8-casecoll: New file.
34767
34768         New module 'unicase/u32-casexfrm'.
34769         * lib/unicase/u32-casexfrm.c: New file.
34770         * modules/unicase/u32-casexfrm: New file.
34771
34772         New module 'unicase/u16-casexfrm'.
34773         * lib/unicase/u16-casexfrm.c: New file.
34774         * modules/unicase/u16-casexfrm: New file.
34775
34776         New module 'unicase/u8-casexfrm'.
34777         * lib/unicase/u8-casexfrm.c: New file.
34778         * lib/unicase/u-casexfrm.h: New file.
34779         * modules/unicase/u8-casexfrm: New file.
34780
34781         Tests for module 'unicase/u32-casecmp'.
34782         * modules/unicase/u32-casecmp-tests: New file.
34783         * tests/unicase/test-u32-casecmp.c: New file.
34784
34785         Tests for module 'unicase/u16-casecmp'.
34786         * modules/unicase/u16-casecmp-tests: New file.
34787         * tests/unicase/test-u16-casecmp.c: New file.
34788
34789         Tests for module 'unicase/u8-casecmp'.
34790         * modules/unicase/u8-casecmp-tests: New file.
34791         * tests/unicase/test-u8-casecmp.c: New file.
34792         * tests/unicase/test-casecmp.h: New file.
34793
34794         New module 'unicase/u32-casecmp'.
34795         * lib/unicase/u32-casecmp.c: New file.
34796         * modules/unicase/u32-casecmp: New file.
34797
34798         New module 'unicase/u16-casecmp'.
34799         * lib/unicase/u16-casecmp.c: New file.
34800         * modules/unicase/u16-casecmp: New file.
34801
34802         New module 'unicase/u8-casecmp'.
34803         * lib/unicase/u8-casecmp.c: New file.
34804         * lib/unicase/u-casecmp.h: New file.
34805         * modules/unicase/u8-casecmp: New file.
34806
34807         Tests for module 'unicase/u32-casefold'.
34808         * modules/unicase/u32-casefold-tests: New file.
34809         * tests/unicase/test-u32-casefold.c: New file.
34810
34811         Tests for module 'unicase/u16-casefold'.
34812         * modules/unicase/u16-casefold-tests: New file.
34813         * tests/unicase/test-u16-casefold.c: New file.
34814
34815         Tests for module 'unicase/u8-casefold'.
34816         * modules/unicase/u8-casefold-tests: New file.
34817         * tests/unicase/test-u8-casefold.c: New file.
34818
34819         New module 'unicase/u32-casefold'.
34820         * lib/unicase/u32-casefold.c: New file.
34821         * modules/unicase/u32-casefold: New file.
34822
34823         New module 'unicase/u16-casefold'.
34824         * lib/unicase/u16-casefold.c: New file.
34825         * modules/unicase/u16-casefold: New file.
34826
34827         New module 'unicase/u8-casefold'.
34828         * lib/unicase/u8-casefold.c: New file.
34829         * lib/unicase/u-casefold.h: New file.
34830         * modules/unicase/u8-casefold: New file.
34831
34832         New module 'unicase/tocasefold'.
34833         * lib/unicase/casefold.h: New file.
34834         * lib/unicase/tocasefold.c: New file.
34835         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
34836         * modules/unicase/tocasefold: New file.
34837
34838         Tests for module 'unicase/u32-totitle'.
34839         * modules/unicase/u32-totitle-tests: New file.
34840         * tests/unicase/test-u32-totitle.c: New file.
34841
34842         Tests for module 'unicase/u16-totitle'.
34843         * modules/unicase/u16-totitle-tests: New file.
34844         * tests/unicase/test-u16-totitle.c: New file.
34845
34846         Tests for module 'unicase/u8-totitle'.
34847         * modules/unicase/u8-totitle-tests: New file.
34848         * tests/unicase/test-u8-totitle.c: New file.
34849
34850         New module 'unicase/u32-totitle'.
34851         * lib/unicase/u32-totitle.c: New file.
34852         * modules/unicase/u32-totitle: New file.
34853
34854         New module 'unicase/u16-totitle'.
34855         * lib/unicase/u16-totitle.c: New file.
34856         * modules/unicase/u16-totitle: New file.
34857
34858         New module 'unicase/u8-totitle'.
34859         * lib/unicase/u8-totitle.c: New file.
34860         * lib/unicase/u-totitle.h: New file.
34861         * modules/unicase/u8-totitle: New file.
34862
34863         Tests for module 'unicase/u32-tolower'.
34864         * modules/unicase/u32-tolower-tests: New file.
34865         * tests/unicase/test-u32-tolower.c: New file.
34866
34867         Tests for module 'unicase/u16-tolower'.
34868         * modules/unicase/u16-tolower-tests: New file.
34869         * tests/unicase/test-u16-tolower.c: New file.
34870
34871         Tests for module 'unicase/u8-tolower'.
34872         * modules/unicase/u8-tolower-tests: New file.
34873         * tests/unicase/test-u8-tolower.c: New file.
34874
34875         New module 'unicase/u32-tolower'.
34876         * lib/unicase/u32-tolower.c: New file.
34877         * modules/unicase/u32-tolower: New file.
34878
34879         New module 'unicase/u16-tolower'.
34880         * lib/unicase/u16-tolower.c: New file.
34881         * modules/unicase/u16-tolower: New file.
34882
34883         New module 'unicase/u8-tolower'.
34884         * lib/unicase/u8-tolower.c: New file.
34885         * modules/unicase/u8-tolower: New file.
34886
34887         Tests for module 'unicase/u32-toupper'.
34888         * modules/unicase/u32-toupper-tests: New file.
34889         * tests/unicase/test-u32-toupper.c: New file.
34890
34891         Tests for module 'unicase/u16-toupper'.
34892         * modules/unicase/u16-toupper-tests: New file.
34893         * tests/unicase/test-u16-toupper.c: New file.
34894
34895         Tests for module 'unicase/u8-toupper'.
34896         * modules/unicase/u8-toupper-tests: New file.
34897         * tests/unicase/test-u8-toupper.c: New file.
34898
34899         New module 'unicase/u32-toupper'.
34900         * lib/unicase/u32-toupper.c: New file.
34901         * modules/unicase/u32-toupper: New file.
34902
34903         New module 'unicase/u16-toupper'.
34904         * lib/unicase/u16-toupper.c: New file.
34905         * modules/unicase/u16-toupper: New file.
34906
34907         New module 'unicase/u8-toupper'.
34908         * lib/unicase/u8-toupper.c: New file.
34909         * modules/unicase/u8-toupper: New file.
34910
34911         New module 'unicase/u32-casemap'.
34912         * lib/unicase/u32-casemap.c: New file.
34913         * modules/unicase/u32-casemap: New file.
34914
34915         New module 'unicase/u16-casemap'.
34916         * lib/unicase/u16-casemap.c: New file.
34917         * modules/unicase/u16-casemap: New file.
34918
34919         New module 'unicase/u8-casemap'.
34920         * lib/unicase/unicasemap.h: New file.
34921         * lib/unicase/u8-casemap.c: New file.
34922         * lib/unicase/u-casemap.h: New file.
34923         * modules/unicase/u8-casemap: New file.
34924
34925         New module 'unicase/special-casing'.
34926         * lib/unicase/special-casing.h: New file.
34927         * lib/unicase/special-casing.c: New file.
34928         * lib/unicase/special-casing-table.gperf: New file, generated by
34929         gen-uni-tables.c.
34930         * modules/unicase/special-casing: New file.
34931
34932         Tests for module 'unicase/locale-language'.
34933         * modules/unicase/locale-language-tests: New file.
34934         * tests/unicase/test-locale-language.sh: New file.
34935         * tests/unicase/test-locale-language.c: New file.
34936
34937         New module 'unicase/locale-language'.
34938         * lib/unicase/locale-language.c: New file.
34939         * lib/unicase/locale-languages.gperf: New file.
34940         * modules/unicase/locale-language: New file.
34941
34942         Generate more tables for case conversion and case folding.
34943         * lib/gen-uni-tables.c (SCC_*): New enum items.
34944         (struct special_casing_rule): New type.
34945         (casing_rules, num_casing_rules, allocated_casing_rules): New
34946         variables.
34947         (add_casing_rule, fill_casing_rules): New functions.
34948         (struct casefold_rule): New type.
34949         (casefolding_rules, num_casefolding_rules,
34950         allocated_casefolding_rules): New variables.
34951         (fill_casefolding_rules): New function.
34952         (unicode_casefold): New variable.
34953         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
34954         sort_casing_rules, output_casing_rules): New functions.
34955         (main): Accept to more arguments: SpecialCasing.txt and
34956         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
34957         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
34958         Output mapping for casefolding.
34959
34960         * lib/unicase.h: Include stdbool.h, uninorm.h.
34961         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
34962         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
34963         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
34964         arguments.
34965         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
34966         resultp arguments.
34967         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
34968         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
34969         resultp arguments.
34970         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
34971         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
34972         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
34973         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
34974         declarations.
34975         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
34976
34977 2009-03-08  Bruno Haible  <bruno@clisp.org>
34978
34979         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
34980         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
34981         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
34982         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
34983
34984 2009-03-07  Bruno Haible  <bruno@clisp.org>
34985
34986         Adjust u*_normcmp, u*_normcoll API.
34987         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
34988         u16_normcoll, u32_normcoll): Change failure conventions.
34989         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
34990         errno and return -1.
34991         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
34992
34993 2009-03-07  Bruno Haible  <bruno@clisp.org>
34994
34995         Tests for module 'uninorm/u32-normcoll'.
34996         * modules/uninorm/u32-normcoll-tests: New file.
34997         * tests/uninorm/test-u32-normcoll.c: New file.
34998
34999         Tests for module 'uninorm/u16-normcoll'.
35000         * modules/uninorm/u16-normcoll-tests: New file.
35001         * tests/uninorm/test-u16-normcoll.c: New file.
35002
35003         Tests for module 'uninorm/u8-normcoll'.
35004         * modules/uninorm/u8-normcoll-tests: New file.
35005         * tests/uninorm/test-u8-normcoll.c: New file.
35006
35007 2009-03-07  Bruno Haible  <bruno@clisp.org>
35008
35009         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
35010         tests/uninorm/test-u32-normcmp.c.
35011         * tests/uninorm/test-u32-normcmp.c: Include it.
35012         (test_nonascii): New function, extracted from main. Add some more
35013         tests.
35014         (main): Invoke test_ascii and test_nonascii.
35015         * modules/uninorm/u32-normcmp-tests (Files): Add
35016         tests/uninorm/test-u32-normcmp.h.
35017         (Depends-on): Remove uninorm/u32-normcmp.
35018
35019         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
35020         tests/uninorm/test-u16-normcmp.c.
35021         * tests/uninorm/test-u16-normcmp.c: Include it.
35022         (test_nonascii): New function, extracted from main. Add some more
35023         tests.
35024         (main): Invoke test_ascii and test_nonascii.
35025         * modules/uninorm/u16-normcmp-tests (Files): Add
35026         tests/uninorm/test-u16-normcmp.h.
35027         (Depends-on): Remove uninorm/u16-normcmp.
35028
35029         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
35030         tests/uninorm/test-u8-normcmp.c.
35031         * tests/uninorm/test-u8-normcmp.c: Include it.
35032         (test_nonascii): New function, extracted from main. Add some more
35033         tests.
35034         (main): Invoke test_ascii and test_nonascii.
35035         * modules/uninorm/u8-normcmp-tests (Files): Add
35036         tests/uninorm/test-u8-normcmp.h.
35037         (Depends-on): Remove uninorm/u8-normcmp.
35038
35039 2009-03-07  Bruno Haible  <bruno@clisp.org>
35040
35041         New module 'uninorm/u32-normcoll'.
35042         * lib/uninorm/u32-normcoll.c: New file.
35043         * modules/uninorm/u32-normcoll: New file.
35044
35045         New module 'uninorm/u16-normcoll'.
35046         * lib/uninorm/u16-normcoll.c: New file.
35047         * modules/uninorm/u16-normcoll: New file.
35048
35049         New module 'uninorm/u8-normcoll'.
35050         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
35051         declarations.
35052         * lib/uninorm/u8-normcoll.c: New file.
35053         * lib/uninorm/u-normcoll.h: New file.
35054         * modules/uninorm/u8-normcoll: New file.
35055
35056         New module 'uninorm/u32-normxfrm'.
35057         * lib/uninorm/u32-normxfrm.c: New file.
35058         * modules/uninorm/u32-normxfrm: New file.
35059
35060         New module 'uninorm/u16-normxfrm'.
35061         * lib/uninorm/u16-normxfrm.c: New file.
35062         * modules/uninorm/u16-normxfrm: New file.
35063
35064         New module 'uninorm/u8-normxfrm'.
35065         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
35066         declarations.
35067         * lib/uninorm/u8-normxfrm.c: New file.
35068         * lib/uninorm/u-normxfrm.h: New file.
35069         * modules/uninorm/u8-normxfrm: New file.
35070
35071 2009-03-07  Bruno Haible  <bruno@clisp.org>
35072
35073         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
35074         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
35075         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
35076
35077 2009-03-07  Bruno Haible  <bruno@clisp.org>
35078
35079         New module 'memxfrm'.
35080         * lib/memxfrm.h: New file.
35081         * lib/memxfrm.c: New file.
35082         * modules/memxfrm: New file.
35083
35084 2009-03-07  Bruno Haible  <bruno@clisp.org>
35085
35086         New module 'memcmp2'.
35087         * lib/memcmp2.h: New file.
35088         * lib/memcmp2.c: New file.
35089         * modules/memcmp2: New file.
35090
35091 2009-03-07  Bruno Haible  <bruno@clisp.org>
35092
35093         Tests for module 'uninorm/decomposing-form'.
35094         * modules/uninorm/decomposing-form-tests: New file.
35095         * tests/uninorm/test-decomposing-form.c: New file.
35096
35097         New module 'uninorm/decomposing-form'.
35098         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
35099         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
35100         Add 'decomposing_variant' field.
35101         * lib/uninorm/decomposing-form.c: New file.
35102         * lib/uninorm/nfc.c (uninorm_nfc): Update.
35103         * lib/uninorm/nfd.c (uninorm_nfd): Update.
35104         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
35105         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
35106         * modules/uninorm/decomposing-form: New file.
35107         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
35108         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
35109
35110 2009-03-07  Bruno Haible  <bruno@clisp.org>
35111
35112         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
35113         strings.
35114
35115 2009-03-06  Bruno Haible  <bruno@clisp.org>
35116
35117         Tests for module 'uninorm/u32-normcmp'.
35118         * tests/uninorm/test-u32-normcmp.c: New file.
35119         * modules/uninorm/u32-normcmp-tests: New file.
35120
35121         Tests for module 'uninorm/u16-normcmp'.
35122         * tests/uninorm/test-u16-normcmp.c: New file.
35123         * modules/uninorm/u16-normcmp-tests: New file.
35124
35125         Tests for module 'uninorm/u8-normcmp'.
35126         * tests/uninorm/test-u8-normcmp.c: New file.
35127         * modules/uninorm/u8-normcmp-tests: New file.
35128
35129         New module 'uninorm/u32-normcmp'.
35130         * lib/uninorm/u32-normcmp.c: New file.
35131         * modules/uninorm/u32-normcmp: New file.
35132
35133         New module 'uninorm/u16-normcmp'.
35134         * lib/uninorm/u16-normcmp.c: New file.
35135         * modules/uninorm/u16-normcmp: New file.
35136
35137         New module 'uninorm/u8-normcmp'.
35138         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
35139         declarations.
35140         * lib/uninorm/u8-normcmp.c: New file.
35141         * lib/uninorm/u-normcmp.h: New file.
35142         * modules/uninorm/u8-normcmp: New file.
35143
35144 2009-03-06  Bruno Haible  <bruno@clisp.org>
35145
35146         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
35147         Reported by Eric Blake.
35148
35149 2009-03-06  Eric Blake  <ebb9@byu.net>
35150             Bruno Haible  <bruno@clisp.org>
35151
35152         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
35153         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
35154         condition.
35155         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
35156         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
35157         condition.
35158         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
35159
35160 2009-03-06  Eric Blake  <ebb9@byu.net>
35161
35162         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
35163         to avoid compiler warnings.
35164         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
35165
35166 2009-03-05  Bruno Haible  <bruno@clisp.org>
35167
35168         * tests/test-ftell.c (main): Disable test beyond end of file on
35169         FreeMiNT.
35170         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
35171
35172 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
35173
35174         * lib/filevercmp.c: Move hidden files up in ordering.
35175         * tests/test-filevercmp.c: Add tests for hidden files.
35176
35177 2009-03-04  Bruno Haible  <bruno@clisp.org>
35178
35179         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
35180         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
35181         AM_CFLAGS.
35182         Reported by Simon Josefsson.
35183
35184 2009-03-03  Bruno Haible  <bruno@clisp.org>
35185
35186         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
35187         Reported by Simon Josefsson.
35188
35189         * doc/ld-version-script.texi: Update node reference.
35190
35191 2009-03-03  Bruno Haible  <bruno@clisp.org>
35192
35193         * modules/visibility (License): Change to 'unlimited'.
35194         Suggested by Simon Josefsson.
35195
35196 2009-03-03  Jim Meyering  <meyering@redhat.com>
35197
35198         unlinkdir: cannot_unlink_dir may modify process state
35199         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
35200         it's neither thread-safe nor appropriate for use in a library.
35201
35202 2009-03-03  Eric Blake  <ebb9@byu.net>
35203
35204         test-closein: silence test under Darwin
35205         * tests/test-closein.sh: Ignore stderr from cat, since we don't
35206         care if it dies from EPIPE or EBADF.
35207
35208 2009-03-03  Bruno Haible  <bruno@clisp.org>
35209
35210         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
35211         earlier.
35212         * doc/visibility.texi: Fix @node and @section.
35213
35214 2009-03-03  Simon Josefsson  <simon@josefsson.org>
35215
35216         * doc/gnulib.texi: Link to sections for ld version script and
35217         visibility.
35218         * doc/visibility.texi: Add @node and @section.
35219         * modules/ld-version-script: New module.
35220         * m4/ld-version-script.m4: New file.
35221         * doc/ld-version-script.texi: New file.
35222
35223 2009-03-02  David Lutterkort  <lutter@redhat.com>
35224
35225         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
35226         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
35227
35228 2009-03-02  Bruno Haible  <bruno@clisp.org>
35229
35230         * doc/visibility.texi: Mention libtool's -export-symbols option.
35231
35232 2009-03-02  Jim Meyering  <meyering@redhat.com>
35233
35234         announce-gen: new option: --no-print-checksums
35235         * build-aux/announce-gen (usage): Describe it.
35236         (print_checksums): Print a newline here, not in the [*] footnote.
35237         (main): Honor it.
35238
35239 2009-03-01  Bruno Haible  <bruno@clisp.org>
35240
35241         Use socklen_t in the native Windows replacements prototypes.
35242         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
35243         instead of 'int'.
35244         * lib/getsockopt.c (rpl_getsockopt): Likewise.
35245         * lib/setsockopt.c (rpl_setsockopt): Likewise.
35246         * modules/getsockopt (Depends-on): Add socklen.
35247         * modules/setsockopt (Depends-on): Add socklen.
35248
35249 2009-03-01  Bruno Haible  <bruno@clisp.org>
35250
35251         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
35252         least 4.2.
35253
35254 2009-03-01  Eric Blake  <ebb9@byu.net>
35255             Bruno Haible  <bruno@clisp.org>
35256
35257         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
35258         error messages.
35259         * lib/wait-process.c (wait_subprocess): Omit error message about
35260         deadly signal sent to the child of termsigp != NULL.
35261
35262 2009-03-01  Eric Blake  <ebb9@byu.net>
35263
35264         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
35265
35266 2009-03-01  Bruno Haible  <bruno@clisp.org>
35267
35268         Avoid a gcc warning.
35269         * tests/test-sched.c (b): Make global.
35270         Reported by Eric Blake.
35271
35272 2009-01-19  Martin Lambers  <marlam@marlam.de>
35273
35274         Provide POSIX semantics for socket timeout options on W32.
35275         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
35276         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
35277         * modules/setsockopt: Depend on sys_time module for struct timeval.
35278         * modules/getsockopt: Depend on sys_time module for struct timeval.
35279
35280 2009-03-01  Simon Josefsson  <simon@josefsson.org>
35281
35282         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
35283         __USE_GNU, for consistency with netdb.in.h.
35284         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
35285
35286 2009-03-01  Bruno Haible  <bruno@clisp.org>
35287
35288         More support for FreeMiNT.
35289         * lib/fseeko.c (rpl_fseeko): Complete last commit.
35290         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
35291
35292 2009-03-01  Bruno Haible  <bruno@clisp.org>
35293
35294         More support for FreeMiNT.
35295         * lib/fpurge.c (fpurge): Correct last commit.
35296         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
35297
35298 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35299
35300         Fix unportable awk script in vc-list-files.
35301         * build-aux/vc-list-files: In the replacement awk script, use
35302         substr with a second argument of 1, not zero.
35303         Report by Simon Josefsson.
35304
35305 2009-02-28  Bruno Haible  <bruno@clisp.org>
35306
35307         More support for FreeMiNT.
35308         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
35309         to FreeMiNT today.
35310         * lib/fwriting.c (fwriting): Likewise.
35311         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
35312
35313 2009-02-28  Bruno Haible  <bruno@clisp.org>
35314
35315         * tests/test-freadseek.c (main): Disable test beyond end of file on
35316         FreeMiNT.
35317         * tests/test-ftello.c (main): Likewise.
35318         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
35319
35320 2009-02-28  Bruno Haible  <bruno@clisp.org>
35321
35322         Add tentative support for FreeMiNT.
35323         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
35324         * lib/fpurge.c (fpurge): Likewise.
35325         * lib/freadable.c (freadable): Likewise.
35326         * lib/freading.c (freading): Likewise.
35327         * lib/freadptr.c (freadptr): Likewise.
35328         * lib/freadseek.c (freadptrinc): Likewise.
35329         * lib/fseeko.c (rpl_fseeko): Likewise.
35330         * lib/fseterr.c (fseterr): Likewise.
35331         * lib/fwritable.c (fwritable): Likewise.
35332         * lib/fwriting.c (fwriting): Likewise.
35333         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
35334         Hourihane.
35335         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
35336
35337 2009-02-28  Bruno Haible  <bruno@clisp.org>
35338
35339         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
35340         SIGCHLD.
35341         Reported by Jim Meyering.
35342
35343 2009-02-28  Bruno Haible  <bruno@clisp.org>
35344
35345         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
35346         Mention the results of these tests on various platforms.
35347         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
35348         order.
35349         * doc/posix-functions/printf.texi: Likewise.
35350         * doc/posix-functions/snprintf.texi: Likewise.
35351         * doc/posix-functions/sprintf.texi: Likewise.
35352         * doc/posix-functions/vfprintf.texi: Likewise.
35353         * doc/posix-functions/vprintf.texi: Likewise.
35354         * doc/posix-functions/vsnprintf.texi: Likewise.
35355         * doc/posix-functions/vsprintf.texi: Likewise.
35356         * doc/glibc-functions/obstack_printf.texi: Likewise.
35357         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
35358
35359 2009-02-28  Bruno Haible  <bruno@clisp.org>
35360
35361         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
35362         Reported by Loïc Minier <lool@dooz.org>.
35363
35364 2009-02-27  Bruno Haible  <bruno@clisp.org>
35365
35366         * gnulib-tool (func_import): Make the sed expression used to create the
35367         sed script for updating the .gitignore file POSIX compliant.
35368         Reported by Eric Blake.
35369
35370 2009-02-27  Bruno Haible  <bruno@clisp.org>
35371
35372         * gnulib-tool (sed): Don't alias as "sed --posix".
35373         Reported by Eric Blake.
35374
35375 2009-02-27  Bruno Haible  <bruno@clisp.org>
35376
35377         Avoid test link errors.
35378         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
35379         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
35380         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
35381         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
35382         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
35383
35384 2009-02-27  Bruno Haible  <bruno@clisp.org>
35385
35386         Avoid spurious "(cached)" in configure output.
35387         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
35388         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
35389         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
35390         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
35391         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
35392         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
35393         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
35394         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
35395         Reported by Eric Blake.
35396
35397 2009-02-27  Eric Blake  <ebb9@byu.net>
35398
35399         printf: fix regression in previous patch
35400         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
35401
35402 2009-02-27  Bruno Haible  <bruno@clisp.org>
35403
35404         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
35405         value.
35406         * lib/stdint.in.h: Likewise.
35407         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
35408
35409 2009-02-27  Eric Blake  <ebb9@byu.net>
35410
35411         doc: mention more functions added in cygwin 1.7.0
35412         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
35413         addition.
35414         * doc/posix-functions/open_wmemstream.texi: Likewise.
35415         * doc/posix-functions/wcsnlen.texi: Likewise.
35416         * doc/posix-functions/wcsnrtombs.texi: Likewise.
35417         * doc/posix-functions/wcstod.texi: Likewise.
35418         * doc/posix-functions/wcstof.texi: Likewise.
35419         * doc/posix-functions/wcstoimax.texi: Likewise.
35420         * doc/posix-functions/wcstok.texi: Likewise.
35421         * doc/posix-functions/wcstoumax.texi: Likewise.
35422
35423         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
35424         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
35425         * doc/posix-functions/fprintf.texi: Update.
35426         * doc/posix-functions/printf.texi: Update.
35427         * doc/posix-functions/snprintf.texi: Update.
35428         * doc/posix-functions/sprintf.texi: Update.
35429         * doc/posix-functions/vfprintf.texi: Update.
35430         * doc/posix-functions/vprintf.texi: Update.
35431         * doc/posix-functions/vsnprintf.texi: Update.
35432         * doc/posix-functions/vsprintf.texi: Update.
35433         * doc/glibc-functions/obstack_printf.texi: Update.
35434         * doc/glibc-functions/obstack_vprintf.texi: Update.
35435
35436 2009-02-26  Eric Blake  <ebb9@byu.net>
35437
35438         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
35439         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
35440         compilation bug by using runtime conversion.
35441         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
35442         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
35443         * modules/ceill-tests (Files): Use nan.h.
35444         * modules/floorl-tests (Files): Likewise.
35445         * modules/frexpl-tests (Files): Likewise.
35446         * modules/isnanl-tests (Files): Likewise.
35447         * modules/ldexpl-tests (Files): Likewise.
35448         * modules/roundl-tests (Files): Likewise.
35449         * modules/truncl-tests (Files): Likewise.
35450         * tests/test-ceill.c (main): Use a working NaN.
35451         * tests/test-floorl.c (main): Likewise.
35452         * tests/test-frexpl.c (main): Likewise.
35453         * tests/test-isnan.c (test_long_double): Likewise.
35454         * tests/test-isnanl.h (main): Likewise.
35455         * tests/test-ldexpl.h (main): Likewise.
35456         * tests/test-roundl.h (main): Likewise.
35457         * tests/test-truncl.h (main): Likewise.
35458         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
35459
35460 2009-02-26  Eric Blake  <ebb9@byu.net>
35461             Bruno Haible  <bruno@clisp.org>
35462
35463         Work around a *printf bug with %ls on Solaris.
35464         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
35465         precision is specified, sprintf stops converting the wide string
35466         argument when the number of bytes that have been produced by this
35467         conversion equals or exceeds the precision.
35468         * doc/posix-functions/fprintf.texi: Update.
35469         * doc/posix-functions/printf.texi: Update.
35470         * doc/posix-functions/snprintf.texi: Update.
35471         * doc/posix-functions/sprintf.texi: Update.
35472         * doc/posix-functions/vfprintf.texi: Update.
35473         * doc/posix-functions/vprintf.texi: Update.
35474         * doc/posix-functions/vsnprintf.texi: Update.
35475         * doc/posix-functions/vsprintf.texi: Update.
35476         * doc/glibc-functions/obstack_printf.texi: Update.
35477         * doc/glibc-functions/obstack_vprintf.texi: Update.
35478
35479 2009-02-26  Eric Blake  <ebb9@byu.net>
35480
35481         stdlib: favor compiler check of random.h
35482         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
35483         to avoid an ObjC random.h installed by Swarm.
35484
35485 2009-02-26  Bruno Haible  <bruno@clisp.org>
35486
35487         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
35488         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
35489         Reported by Gary V. Vaughan <gary@gnu.org>.
35490
35491 2009-02-26  Bruno Haible  <bruno@clisp.org>
35492
35493         Fix *printf behaviour regarding the %ls directive.
35494         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
35495         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
35496         NEED_PRINTF_DIRECTIVE_LS.
35497         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
35498         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
35499         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
35500         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
35501         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
35502         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
35503         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
35504         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
35505         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
35506         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
35507         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
35508         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
35509         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
35510         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
35511         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
35512         * doc/posix-functions/fprintf.texi: Update.
35513         * doc/posix-functions/printf.texi: Update.
35514         * doc/posix-functions/snprintf.texi: Update.
35515         * doc/posix-functions/sprintf.texi: Update.
35516         * doc/posix-functions/vfprintf.texi: Update.
35517         * doc/posix-functions/vprintf.texi: Update.
35518         * doc/posix-functions/vsnprintf.texi: Update.
35519         * doc/posix-functions/vsprintf.texi: Update.
35520         * doc/glibc-functions/obstack_printf.texi: Update.
35521         * doc/glibc-functions/obstack_vprintf.texi: Update.
35522         Reported by Eric Blake.
35523
35524 2009-02-25  Bruno Haible  <bruno@clisp.org>
35525
35526         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
35527         with known value.
35528         Reported by Gary V. Vaughan <gary@gnu.org>.
35529
35530 2009-02-25  Bruno Haible  <bruno@clisp.org>
35531
35532         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
35533         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
35534         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
35535         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
35536         Reported by Gary V. Vaughan <gary@gnu.org>.
35537
35538 2009-02-25  Bruno Haible  <bruno@clisp.org>
35539
35540         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
35541         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
35542         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
35543         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
35544         Reported by Gary V. Vaughan <gary@gnu.org>.
35545
35546 2009-02-25  Eric Blake  <ebb9@byu.net>
35547
35548         tests: skip fseek/ftell tests if ungetc is broken
35549         * m4/ungetc.m4: New file.
35550         * modules/fseek-tests: Split test, so ungetc dependency is
35551         separate from rest of test.
35552         * modules/fseeko-tests: Likewise.
35553         * modules/ftell-tests: Likewise.
35554         * modules/ftello-tests: Likewise.
35555         * tests/test-fseek.c (main): Isolate ungetc dependency.
35556         * tests/test-fseeko.c (main): Likewise.
35557         * tests/test-ftell.c (main): Likewise.
35558         * tests/test-ftello.c (main): Likewise.
35559         * tests/test-fseek2.sh: New file.
35560         * tests/test-fseeko2.sh: Likewise.
35561         * tests/test-ftell2.sh: Likewise.
35562         * tests/test-ftello2.sh: Likewise.
35563
35564 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
35565
35566         test-getaddrinfo: fix usage of skip return code 77
35567         * tests/test-gettaddrinfo.c: Return skip code 77 only
35568         for first occurance of skip (4x77 is not 77)
35569
35570 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
35571
35572         strtod: avoid C99 decl-after-statement
35573         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
35574
35575 2009-02-24  Eric Blake  <ebb9@byu.net>
35576
35577         strtod: detect HP-UX 11.31 bug
35578         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
35579         Reported by Gary V. Vaughan.
35580
35581 2009-02-23  Bruno Haible  <bruno@clisp.org>
35582
35583         Fix invalid read past end of memory block.
35584         * lib/vasnprintf.c (DCHAR_SET): Define.
35585         (local_wcslen): Define only when needed.
35586         (local_strnlen, local_wcsnlen): New functions.
35587         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
35588         directives that involve a conversion ourselves.
35589         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
35590         wcsnlen, mbrtowc, wcrtomb.
35591         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
35592         * tests/test-vasprintf-posix.c (test_function): Likewise.
35593         * tests/test-snprintf-posix.h (test_function): Likewise.
35594         * tests/test-sprintf-posix.h (test_function): Likewise.
35595         Reported by Ben Pfaff <blp@cs.stanford.edu>.
35596
35597 2009-02-22  Bruno Haible  <bruno@clisp.org>
35598
35599         Implement new clarified decomposition of Hangul syllables.
35600         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
35601         of type LTV, return only a pairwise decomposition.
35602         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
35603         Likewise.
35604         * tests/uninorm/test-decomposition.c (main): Updated expected result.
35605         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
35606         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
35607
35608 2009-02-22  Bruno Haible  <bruno@clisp.org>
35609
35610         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
35611         zero-length results and shrink excess allocated memory.
35612         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
35613         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
35614         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
35615         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
35616         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
35617         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
35618         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
35619         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
35620         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
35621         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
35622         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
35623         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
35624
35625 2009-02-21  Bruno Haible  <bruno@clisp.org>
35626
35627         * doc/gnulib.texi: Include safe-alloc.texi earlier.
35628         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
35629         spaces after a period. Put a space between a macro name and its
35630         argument list. Trivial rewordings.
35631         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
35632         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
35633         (main): Return 0 explicitly.
35634
35635 2009-02-21  Bruno Haible  <bruno@clisp.org>
35636
35637         Tests for module 'uninorm/filter'.
35638         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
35639         * modules/uninorm/filter-tests: New file.
35640
35641         New module 'uninorm/filter'.
35642         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
35643         uninorm_filter_flush, uninorm_filter_free): New declarations.
35644         * lib/uninorm/uninorm-filter.c: New file.
35645         * modules/uninorm/filter: New file.
35646
35647 2009-02-21  Bruno Haible  <bruno@clisp.org>
35648
35649         Tests for module 'uninorm/nfkc'.
35650         * tests/uninorm/test-nfkc.c: New file.
35651         * tests/uninorm/test-u8-nfkc.c: New file.
35652         * tests/uninorm/test-u16-nfkc.c: New file.
35653         * tests/uninorm/test-u32-nfkc.c: New file.
35654         * tests/uninorm/test-u32-nfkc-big.sh: New file.
35655         * tests/uninorm/test-u32-nfkc-big.c: New file.
35656         * modules/uninorm/nfkc-tests: New file.
35657
35658         New module 'uninorm/nfkc'.
35659         * lib/uninorm/nfkc.c: New file.
35660         * modules/uninorm/nfkc: New file.
35661
35662         Tests for module 'uninorm/nfkd'.
35663         * tests/uninorm/test-nfkd.c: New file.
35664         * tests/uninorm/test-u8-nfkd.c: New file.
35665         * tests/uninorm/test-u16-nfkd.c: New file.
35666         * tests/uninorm/test-u32-nfkd.c: New file.
35667         * tests/uninorm/test-u32-nfkd-big.sh: New file.
35668         * tests/uninorm/test-u32-nfkd-big.c: New file.
35669         * modules/uninorm/nfkd-tests: New file.
35670
35671         New module 'uninorm/nfkd'.
35672         * lib/uninorm/nfkd.c: New file.
35673         * modules/uninorm/nfkd: New file.
35674
35675         Tests for module 'uninorm/nfc'.
35676         * tests/uninorm/test-nfc.c: New file.
35677         * tests/uninorm/test-u8-nfc.c: New file.
35678         * tests/uninorm/test-u16-nfc.c: New file.
35679         * tests/uninorm/test-u32-nfc.c: New file.
35680         * tests/uninorm/test-u32-nfc-big.sh: New file.
35681         * tests/uninorm/test-u32-nfc-big.c: New file.
35682         * modules/uninorm/nfc-tests: New file.
35683
35684         New module 'uninorm/nfc'.
35685         * lib/uninorm/nfc.c: New file.
35686         * modules/uninorm/nfc: New file.
35687
35688         Tests for module 'uninorm/nfd'.
35689         * tests/uninorm/test-nfd.c: New file.
35690         * tests/uninorm/test-u8-nfd.c: New file.
35691         * tests/uninorm/test-u16-nfd.c: New file.
35692         * tests/uninorm/test-u32-nfd.c: New file.
35693         * tests/uninorm/test-u32-nfd-big.sh: New file.
35694         * tests/uninorm/test-u32-nfd-big.c: New file.
35695         * tests/uninorm/test-u32-normalize-big.h: New file.
35696         * tests/uninorm/test-u32-normalize-big.c: New file.
35697         * tests/uninorm/NormalizationTest.txt: New file, created from
35698         Unicode 5.1.0 NormalizationTest.txt.
35699         * modules/uninorm/nfd-tests: New file.
35700
35701         New module 'uninorm/nfd'.
35702         * lib/uninorm/nfd.c: New file.
35703         * modules/uninorm/nfd: New file.
35704
35705         New module 'uninorm/u32-normalize'.
35706         * lib/uninorm/u32-normalize.c: New file.
35707         * modules/uninorm/u32-normalize: New file.
35708
35709         New module 'uninorm/u16-normalize'.
35710         * lib/uninorm/u16-normalize.c: New file.
35711         * modules/uninorm/u16-normalize: New file.
35712
35713         New module 'uninorm/u8-normalize'.
35714         * lib/uninorm/u8-normalize.c: New file.
35715         * lib/uninorm/normalize-internal.h: New file.
35716         * lib/uninorm/u-normalize-internal.h: New file.
35717         * modules/uninorm/u8-normalize: New file.
35718
35719         New module 'uninorm/decompose-internal'.
35720         * lib/uninorm/decompose-internal.c: New file.
35721         * modules/uninorm/decompose-internal: New file.
35722
35723         Tests for module 'uninorm/composition'.
35724         * tests/uninorm/test-composition.c: New file.
35725         * modules/uninorm/composition-tests: New file.
35726
35727         New module 'uninorm/composition'.
35728         * lib/uninorm/composition.c: New file.
35729         * lib/uninorm/composition-table.gperf: New file, generated by
35730         gen-uni-tables.
35731         * modules/uninorm/composition: New file.
35732
35733         Tests for module 'uninorm/compat-decomposition'.
35734         * tests/uninorm/test-compat-decomposition.c: New file.
35735         * modules/uninorm/compat-decomposition-tests: New file.
35736
35737         New module 'uninorm/compat-decomposition'.
35738         * lib/uninorm/decompose-internal.h: New file.
35739         * lib/uninorm/compat-decomposition.c: New file.
35740         * modules/uninorm/compat-decomposition: New file.
35741
35742         Tests for module 'uninorm/canonical-decomposition'.
35743         * tests/uninorm/test-canonical-decomposition.c: New file.
35744         * modules/uninorm/canonical-decomposition-tests: New file.
35745
35746         New module 'uninorm/canonical-decomposition'.
35747         * lib/uninorm/canonical-decomposition.c: New file.
35748         * modules/uninorm/canonical-decomposition: New file.
35749
35750         Tests for module 'uninorm/decomposition'.
35751         * tests/uninorm/test-decomposition.c: New file.
35752         * modules/uninorm/decomposition-tests: New file.
35753
35754         New module 'uninorm/decomposition'.
35755         * lib/uninorm/decomposition.c: New file.
35756         * modules/uninorm/decomposition: New file.
35757
35758         New module 'uninorm/decomposition-table'.
35759         * lib/uninorm/decomposition-table.h: New file.
35760         * lib/uninorm/decomposition-table.c: New file.
35761         * lib/uninorm/decomposition-table1.h: New file, generated by
35762         gen-uni-tables.
35763         * lib/uninorm/decomposition-table2.h: New file, generated by
35764         gen-uni-tables.
35765         * modules/uninorm/decomposition-table: New file.
35766
35767         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
35768         (UC_DECOMP_*): New enumeration items.
35769         (get_decomposition): New function.
35770         (struct decomp_table): New type.
35771         (output_decomposition, output_decomposition_tables): New functions.
35772         (unicode_composition_exclusions): New variable.
35773         (fill_composition_exclusions, debug_output_composition_tables): New
35774         functions.
35775         (main): Accept one more argument. Invoke fill_composition_exclusions.
35776         Output decomposition and composition tables.
35777
35778         New module 'uninorm/base'.
35779         * lib/uninorm.h: New file.
35780         * lib/unictype.h: Update comment.
35781         * modules/uninorm/base: New file.
35782
35783 2009-02-21  David Lutterkort  <lutter@redhat.com>
35784
35785         Tests for module 'safe-alloc'.
35786         * tests/test-safe-alloc.c: New file.
35787         * modules/safe-alloc-tests: New file.
35788
35789         New module 'safe-alloc'.
35790         * lib/safe-alloc.h: New file.
35791         * lib/safe-alloc.c: New file.
35792         * m4/safe-alloc.m4: New file.
35793         * modules/safe-alloc: New file.
35794         * doc/safe-alloc.texi: New file.
35795         * doc/gnulib.texi: Include it.
35796         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
35797         safe-alloc.
35798
35799 2009-02-18  Bruno Haible  <bruno@clisp.org>
35800
35801         Fix link error on non-glibc systems.
35802         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
35803         variable.
35804         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
35805
35806 2009-02-18  Jim Meyering  <meyering@redhat.com>
35807
35808         fts: avoid used-uninitialized error due to recent change
35809         * lib/fts.c (fts_read): Guard uses of the new member,
35810         parent->fts_n_dirs_remaining, since it's not relevant for
35811         the parent of a directory specified on the command-line.
35812
35813 2009-02-17  James Youngman  <jay@gnu.org>
35814             Bruno Haible  <bruno@clisp.org>
35815
35816         * m4/include_next.m4: Reformulate comment.
35817
35818 2009-02-16  Jim Meyering  <meyering@redhat.com>
35819
35820         fts: add #if guards so that the fts_lgpl module still builds
35821         * lib/fts.c: Guard just-added hash-table-using parts with
35822         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
35823         Reported by Simon Josefsson.
35824
35825 2009-02-15  Bruno Haible  <bruno@clisp.org>
35826
35827         * modules/array-mergesort-tests: New file.
35828         * tests/test-array-mergesort.c: New file.
35829
35830         New module 'array-mergesort'.
35831         * modules/array-mergesort: New file.
35832         * lib/array-mergesort.h: New file.
35833
35834 2009-02-15  Bruno Haible  <bruno@clisp.org>
35835
35836         Fix 2009-02-07 commit.
35837         * lib/gen-uni-tables.c (output_predicate, output_category,
35838         output_combclass, output_bidi_category, output_decimal_digit,
35839         output_digit, output_numeric, output_mirror, output_scripts,
35840         output_ident_category, output_simple_mapping): Fix format directives.
35841         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
35842
35843 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
35844
35845         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
35846         fixes are available from IBM.
35847
35848 2009-02-13  Jim Meyering  <meyering@redhat.com>
35849
35850         fts: arrange not to stat non-directories in more cases
35851         This makes GNU find (when it doesn't need to stat each file)
35852         *much* more efficient at traversing reiserfs file systems.
35853         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
35854         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
35855         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
35856         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
35857         (leaf_optimization_applies): New function.
35858         (LCO_hash, LCO_compare): New helper functions.
35859         (link_count_optimize_ok): New function.
35860         (fts_stat): Initialize new member (if dir).
35861         (fts_read): Decrement parent's fts_n_dirs_remaining count if
35862         we've just stat'ed a directory.  Skip the stat call when possible.
35863         ---
35864         Note this AFS-related exchange:
35865         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
35866         and note find's pioctl call in find/fstype.c.
35867         But that is necessary only if you want to enable the
35868         optimization for AFS, and for now, I don't.
35869
35870         fts: move a function definition "up" (no semantic change)
35871         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
35872         "up" to precede upcoming use of a related function.
35873
35874 2009-02-11  Jim Meyering  <meyering@redhat.com>
35875
35876         fts: correct internal computation of nlinks (optimization-related)
35877         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
35878         whether the current entry is a directory, so don't test it.
35879
35880 2009-02-10  Bruno Haible  <bruno@clisp.org>
35881
35882         Tests for module 'uniwbrk/ulc-wordbreaks'.
35883         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
35884         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
35885         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
35886
35887         Tests for module 'uniwbrk/u32-wordbreaks'.
35888         * modules/uniwbrk/u32-wordbreaks-tests: New file.
35889         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
35890
35891         Tests for module 'uniwbrk/u16-wordbreaks'.
35892         * modules/uniwbrk/u16-wordbreaks-tests: New file.
35893         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
35894
35895         Tests for module 'uniwbrk/u8-wordbreaks'.
35896         * modules/uniwbrk/u8-wordbreaks-tests: New file.
35897         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
35898
35899 2009-02-10  Bruno Haible  <bruno@clisp.org>
35900
35901         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
35902         property.
35903         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
35904         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
35905         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
35906
35907 2009-02-10  Simon Josefsson  <simon@josefsson.org>
35908
35909         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
35910         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
35911
35912 2009-02-10  Bruno Haible  <bruno@clisp.org>
35913
35914         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
35915         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
35916         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
35917         * lib/unilbrk/u8-possible-linebreaks.c: Update.
35918         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
35919         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
35920
35921 2009-02-09  Simon Josefsson  <simon@josefsson.org>
35922
35923         * lib/sockets.h (gl_fd_to_handle): New function.
35924
35925         * tests/test-sockets.c: Call gl_fd_to_handle.
35926
35927 2009-02-09  Bruno Haible  <bruno@clisp.org>
35928
35929         * doc/havelib.texi: Document the conventions on bi-arch systems.
35930
35931 2009-02-08  Bruno Haible  <bruno@clisp.org>
35932
35933         Document the AC_LIB_LINKFLAGS macro.
35934         * doc/havelib.texi: New file, mostly written on 2005-05-24.
35935         * doc/gnulib.texi: Include it.
35936
35937 2009-02-08  Bruno Haible  <bruno@clisp.org>
35938
35939         Fix wrong order of sections, compared to TOC.
35940         * doc/gnulib.texi: Include relocatable-maint.texi after the
35941         "Regular expressions" node, not before.
35942
35943 2009-02-08  Bruno Haible  <bruno@clisp.org>
35944
35945         Tests for module 'unicase/totitle'.
35946         * modules/unicase/totitle-tests: New file.
35947
35948         Tests for module 'unicase/tolower'.
35949         * modules/unicase/tolower-tests: New file.
35950
35951         Tests for module 'unicase/toupper'.
35952         * modules/unicase/toupper-tests: New file.
35953         * tests/unicase/test-mapping-part1.h: New file.
35954         * tests/unicase/test-mapping-part2.h: New file.
35955
35956         New module 'unicase/totitle'.
35957         * modules/unicase/totitle: New file.
35958         * lib/unicase/totitle.c: New file.
35959
35960         New module 'unicase/tolower'.
35961         * modules/unicase/tolower: New file.
35962         * lib/unicase/tolower.c: New file.
35963
35964         New module 'unicase/toupper'.
35965         * modules/unicase/toupper: New file.
35966         * lib/unicase/toupper.c: New file.
35967         * lib/unicase/simple-mapping.h: New file.
35968
35969         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
35970         (mapping_table): New structure.
35971         (output_simple_mapping): New function.
35972         (main): Invoke output_simple_mapping_test and output_simple_mapping.
35973         * modules/gen-uni-tables (Description): Update.
35974         * lib/unicase/toupper.h: New file, automatically generated by
35975         gen-uni-tables.
35976         * lib/unicase/tolower.h: New file, automatically generated by
35977         gen-uni-tables.
35978         * lib/unicase/totitle.h: New file, automatically generated by
35979         gen-uni-tables.
35980         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
35981         gen-uni-tables.
35982         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
35983         gen-uni-tables.
35984         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
35985         gen-uni-tables.
35986
35987         New module 'unicase/base'.
35988         * modules/unicase/base: New file.
35989         * lib/unicase.h: New file.
35990
35991 2009-02-08  Bruno Haible  <bruno@clisp.org>
35992
35993         New module 'uniwbrk/ulc-wordbreaks'.
35994         * modules/uniwbrk/ulc-wordbreaks: New file.
35995         * lib/uniwbrk/ulc-wordbreaks.c: New file.
35996
35997         New module 'uniwbrk/u32-wordbreaks'.
35998         * modules/uniwbrk/u32-wordbreaks: New file.
35999         * lib/uniwbrk/u32-wordbreaks.c: New file.
36000
36001         New module 'uniwbrk/u16-wordbreaks'.
36002         * modules/uniwbrk/u16-wordbreaks: New file.
36003         * lib/uniwbrk/u16-wordbreaks.c: New file.
36004
36005         New module 'uniwbrk/u8-wordbreaks'.
36006         * modules/uniwbrk/u8-wordbreaks: New file.
36007         * lib/uniwbrk/u8-wordbreaks.c: New file.
36008         * lib/uniwbrk/u-wordbreaks.h: New file.
36009
36010         New module 'uniwbrk/table'.
36011         * modules/uniwbrk/table: New file.
36012         * lib/uniwbrk/wbrktable.h: New file.
36013         * lib/uniwbrk/wbrktable.c: New file.
36014
36015         New module 'uniwbrk/wordbreak-property'.
36016         * modules/uniwbrk/wordbreak-property: New file.
36017         * lib/uniwbrk/wordbreak-property.c: New file.
36018
36019         * lib/gen-uni-tables.c (WBP_*): New enum items.
36020         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
36021         (unicode_org_wbp): New variable.
36022         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
36023         New functions.
36024         (wbp_table): New structure.
36025         (output_wbp, output_wbrk_tables): New functions.
36026         (main): Accept additional argument. Invoke fill_org_wbp,
36027         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
36028         output_wbrk_tables.
36029         * modules/gen-uni-tables (Description): Update.
36030         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
36031         gen-uni-tables.
36032
36033         New module 'uniwbrk/base'.
36034         * modules/uniwbrk/base: New file.
36035         * lib/uniwbrk.h: New file.
36036
36037 2009-02-08  Bruno Haible  <bruno@clisp.org>
36038
36039         Update to Unicode 5.1.0.
36040         * lib/gen-uni-tables.c (is_property_alphabetic): Include
36041         U+2185..U+2188.
36042         (is_property_default_ignorable_code_point): Don't include characters
36043         of category Cc or Cs and not-a-characters.
36044         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
36045         U+0D79, U+109E, U+109F, U+A60C.
36046         * lib/unictype/bidi_of.h: Regenerated.
36047         * lib/unictype/blocks.h: Regenerated.
36048         * lib/unictype/categ_C.h: Regenerated.
36049         * lib/unictype/categ_Cf.h: Regenerated.
36050         * lib/unictype/categ_Cn.h: Regenerated.
36051         * lib/unictype/categ_L.h: Regenerated.
36052         * lib/unictype/categ_Ll.h: Regenerated.
36053         * lib/unictype/categ_Lm.h: Regenerated.
36054         * lib/unictype/categ_Lo.h: Regenerated.
36055         * lib/unictype/categ_Lu.h: Regenerated.
36056         * lib/unictype/categ_M.h: Regenerated.
36057         * lib/unictype/categ_Mc.h: Regenerated.
36058         * lib/unictype/categ_Me.h: Regenerated.
36059         * lib/unictype/categ_Mn.h: Regenerated.
36060         * lib/unictype/categ_N.h: Regenerated.
36061         * lib/unictype/categ_Nd.h: Regenerated.
36062         * lib/unictype/categ_Nl.h: Regenerated.
36063         * lib/unictype/categ_No.h: Regenerated.
36064         * lib/unictype/categ_P.h: Regenerated.
36065         * lib/unictype/categ_Pd.h: Regenerated.
36066         * lib/unictype/categ_Pe.h: Regenerated.
36067         * lib/unictype/categ_Pf.h: Regenerated.
36068         * lib/unictype/categ_Pi.h: Regenerated.
36069         * lib/unictype/categ_Po.h: Regenerated.
36070         * lib/unictype/categ_Ps.h: Regenerated.
36071         * lib/unictype/categ_S.h: Regenerated.
36072         * lib/unictype/categ_Sk.h: Regenerated.
36073         * lib/unictype/categ_Sm.h: Regenerated.
36074         * lib/unictype/categ_So.h: Regenerated.
36075         * lib/unictype/categ_of.h: Regenerated.
36076         * lib/unictype/combining.h: Regenerated.
36077         * lib/unictype/ctype_alnum.h: Regenerated.
36078         * lib/unictype/ctype_alpha.h: Regenerated.
36079         * lib/unictype/ctype_graph.h: Regenerated.
36080         * lib/unictype/ctype_lower.h: Regenerated.
36081         * lib/unictype/ctype_print.h: Regenerated.
36082         * lib/unictype/ctype_punct.h: Regenerated.
36083         * lib/unictype/ctype_upper.h: Regenerated.
36084         * lib/unictype/decdigit.h: Regenerated.
36085         * lib/unictype/digit.h: Regenerated.
36086         * lib/unictype/mirror.h: Regenerated.
36087         * lib/unictype/numeric.h: Regenerated.
36088         * lib/unictype/pr_alphabetic.h: Regenerated.
36089         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
36090         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
36091         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
36092         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
36093         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
36094         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
36095         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
36096         * lib/unictype/pr_combining.h: Regenerated.
36097         * lib/unictype/pr_dash.h: Regenerated.
36098         * lib/unictype/pr_decimal_digit.h: Regenerated.
36099         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
36100         * lib/unictype/pr_deprecated.h: Regenerated.
36101         * lib/unictype/pr_diacritic.h: Regenerated.
36102         * lib/unictype/pr_extender.h: Regenerated.
36103         * lib/unictype/pr_format_control.h: Regenerated.
36104         * lib/unictype/pr_grapheme_base.h: Regenerated.
36105         * lib/unictype/pr_grapheme_extend.h: Regenerated.
36106         * lib/unictype/pr_grapheme_link.h: Regenerated.
36107         * lib/unictype/pr_id_continue.h: Regenerated.
36108         * lib/unictype/pr_id_start.h: Regenerated.
36109         * lib/unictype/pr_ideographic.h: Regenerated.
36110         * lib/unictype/pr_ignorable_control.h: Regenerated.
36111         * lib/unictype/pr_lowercase.h: Regenerated.
36112         * lib/unictype/pr_math.h: Regenerated.
36113         * lib/unictype/pr_numeric.h: Regenerated.
36114         * lib/unictype/pr_other_alphabetic.h: Regenerated.
36115         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
36116         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
36117         * lib/unictype/pr_other_id_continue.h: Regenerated.
36118         * lib/unictype/pr_other_lowercase.h: Regenerated.
36119         * lib/unictype/pr_other_math.h: Regenerated.
36120         * lib/unictype/pr_punctuation.h: Regenerated.
36121         * lib/unictype/pr_sentence_terminal.h: Regenerated.
36122         * lib/unictype/pr_soft_dotted.h: Regenerated.
36123         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
36124         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
36125         * lib/unictype/pr_unified_ideograph.h: Regenerated.
36126         * lib/unictype/pr_uppercase.h: Regenerated.
36127         * lib/unictype/pr_xid_continue.h: Regenerated.
36128         * lib/unictype/pr_xid_start.h: Regenerated.
36129         * lib/unictype/pr_zero_width.h: Regenerated.
36130         * lib/unictype/scripts.h: Regenerated.
36131         * lib/unictype/scripts_byname.gperf: Regenerated.
36132         * lib/unictype/sy_java_ident.h: Regenerated.
36133         * lib/unilbrk/lbrkprop1.h: Regenerated.
36134         * lib/unilbrk/lbrkprop2.h: Regenerated.
36135         * tests/unictype/test-categ_C.c: Regenerated.
36136         * tests/unictype/test-categ_Cf.c: Regenerated.
36137         * tests/unictype/test-categ_Cn.c: Regenerated.
36138         * tests/unictype/test-categ_L.c: Regenerated.
36139         * tests/unictype/test-categ_Ll.c: Regenerated.
36140         * tests/unictype/test-categ_Lm.c: Regenerated.
36141         * tests/unictype/test-categ_Lo.c: Regenerated.
36142         * tests/unictype/test-categ_Lu.c: Regenerated.
36143         * tests/unictype/test-categ_M.c: Regenerated.
36144         * tests/unictype/test-categ_Mc.c: Regenerated.
36145         * tests/unictype/test-categ_Me.c: Regenerated.
36146         * tests/unictype/test-categ_Mn.c: Regenerated.
36147         * tests/unictype/test-categ_N.c: Regenerated.
36148         * tests/unictype/test-categ_Nd.c: Regenerated.
36149         * tests/unictype/test-categ_Nl.c: Regenerated.
36150         * tests/unictype/test-categ_No.c: Regenerated.
36151         * tests/unictype/test-categ_P.c: Regenerated.
36152         * tests/unictype/test-categ_Pd.c: Regenerated.
36153         * tests/unictype/test-categ_Pe.c: Regenerated.
36154         * tests/unictype/test-categ_Pf.c: Regenerated.
36155         * tests/unictype/test-categ_Pi.c: Regenerated.
36156         * tests/unictype/test-categ_Po.c: Regenerated.
36157         * tests/unictype/test-categ_Ps.c: Regenerated.
36158         * tests/unictype/test-categ_S.c: Regenerated.
36159         * tests/unictype/test-categ_Sk.c: Regenerated.
36160         * tests/unictype/test-categ_Sm.c: Regenerated.
36161         * tests/unictype/test-categ_So.c: Regenerated.
36162         * tests/unictype/test-ctype_alnum.c: Regenerated.
36163         * tests/unictype/test-ctype_alpha.c: Regenerated.
36164         * tests/unictype/test-ctype_graph.c: Regenerated.
36165         * tests/unictype/test-ctype_lower.c: Regenerated.
36166         * tests/unictype/test-ctype_print.c: Regenerated.
36167         * tests/unictype/test-ctype_punct.c: Regenerated.
36168         * tests/unictype/test-ctype_upper.c: Regenerated.
36169         * tests/unictype/test-decdigit.h: Regenerated.
36170         * tests/unictype/test-digit.h: Regenerated.
36171         * tests/unictype/test-numeric.h: Regenerated.
36172         * tests/unictype/test-pr_alphabetic.c: Regenerated.
36173         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
36174         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
36175         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
36176         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
36177         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
36178         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
36179         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
36180         * tests/unictype/test-pr_combining.c: Regenerated.
36181         * tests/unictype/test-pr_dash.c: Regenerated.
36182         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
36183         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
36184         * tests/unictype/test-pr_deprecated.c: Regenerated.
36185         * tests/unictype/test-pr_diacritic.c: Regenerated.
36186         * tests/unictype/test-pr_extender.c: Regenerated.
36187         * tests/unictype/test-pr_format_control.c: Regenerated.
36188         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
36189         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
36190         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
36191         * tests/unictype/test-pr_id_continue.c: Regenerated.
36192         * tests/unictype/test-pr_id_start.c: Regenerated.
36193         * tests/unictype/test-pr_ideographic.c: Regenerated.
36194         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
36195         * tests/unictype/test-pr_lowercase.c: Regenerated.
36196         * tests/unictype/test-pr_math.c: Regenerated.
36197         * tests/unictype/test-pr_numeric.c: Regenerated.
36198         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
36199         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
36200         Regenerated.
36201         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
36202         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
36203         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
36204         * tests/unictype/test-pr_other_math.c: Regenerated.
36205         * tests/unictype/test-pr_punctuation.c: Regenerated.
36206         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
36207         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
36208         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
36209         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
36210         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
36211         * tests/unictype/test-pr_uppercase.c: Regenerated.
36212         * tests/unictype/test-pr_xid_continue.c: Regenerated.
36213         * tests/unictype/test-pr_xid_start.c: Regenerated.
36214         * tests/unictype/test-pr_zero_width.c: Regenerated.
36215
36216         Update to Unicode 5.1.0.
36217         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
36218         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
36219         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
36220         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
36221         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
36222         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
36223         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
36224         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
36225         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
36226         (nonspacing_table_ind): Update.
36227         * tests/uniwidth/test-uc_width2.sh: Update expected result.
36228
36229         Update to Unicode 5.1.0.
36230         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
36231         code transform.
36232         * lib/uniname/uniname.c (unicode_character_name,
36233         unicode_name_character): Add the range 0x1Fxxx to the code transform.
36234         * lib/uniname/uninames.h: Regenerated.
36235         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
36236
36237 2009-02-07  Bruno Haible  <bruno@clisp.org>
36238
36239         Merge gen-ctype and gen-lbrk into a single program.
36240         * lib/gen-uni-tables.c: New file, incorporating
36241         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
36242         Add directory prefixes to the names of the generated files.
36243         * lib/unictype/gen-ctype.c: Remove file.
36244         * lib/unilbrk/gen-lbrk.c: Remove file.
36245         * modules/gen-uni-tables: New file.
36246         * modules/unictype/gen-ctype: Remove file.
36247         * modules/unilbrk/gen-lbrk: Remove file.
36248
36249 2009-02-07  Bruno Haible  <bruno@clisp.org>
36250
36251         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
36252
36253         New module 'unistr/u32-strcoll'.
36254         * modules/unistr/u32-strcoll: New file.
36255         * lib/unistr/u32-strcoll.c: New file.
36256
36257         New module 'unistr/u16-strcoll'.
36258         * modules/unistr/u16-strcoll: New file.
36259         * lib/unistr/u16-strcoll.c: New file.
36260
36261         New module 'unistr/u8-strcoll'.
36262         * modules/unistr/u8-strcoll: New file.
36263         * lib/unistr/u8-strcoll.c: New file.
36264         * lib/unistr/u-strcoll.h: New file.
36265
36266 2009-02-07  Bruno Haible  <bruno@clisp.org>
36267
36268         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
36269         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
36270         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
36271         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
36272         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
36273         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
36274
36275 2009-02-07  Bruno Haible  <bruno@clisp.org>
36276
36277         Make 64-bit clean.
36278         * lib/unictype/gen-ctype.c (output_predicate, output_category,
36279         output_combclass, output_bidi_category, output_decimal_digit,
36280         output_digit, output_numeric, output_mirror, output_scripts,
36281         output_ident_category): Use proper width specifier in format strings.
36282
36283 2009-02-07  Bruno Haible  <bruno@clisp.org>
36284
36285         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
36286         failure behaviour.
36287
36288 2009-02-07  Jim Meyering  <meyering@redhat.com>
36289
36290         regex: avoid compilation failure with upcoming gcc-4.4
36291         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
36292         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
36293         "... error: integer overflow in preprocessor expression".
36294
36295 2009-02-05  Ben Pfaff  <blp@gnu.org>
36296
36297         Fix link errors on Windows when close module is used.
36298         * modules/close: Add $(LIB_CLOSE) to Link section.
36299         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
36300         $(LIB_CLOSE) on Windows.
36301
36302 2009-02-05  Jim Meyering  <meyering@redhat.com>
36303
36304         still avoid unused-parameter warnings, but do it cleanly
36305         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
36306         (get_fs_usage): Cast to void instead.
36307         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
36308         (dev_from_mount_options, read_file_system_list): Cast to void.
36309         Prompted by Bruno Haible.
36310
36311 2009-02-04  Jim Meyering  <meyering@redhat.com>
36312
36313         fsusage.c: correct copyright year
36314         * lib/fsusage.c: Reflect year in which the change is pushed into
36315
36316         avoid misc. warnings
36317         * lib/fsusage.c (UNUSED_PARAM): Define.
36318         (get_fs_usage): Mark parameter "disk" as unused.
36319         * lib/getugroups.c (getgrent): Use "void" in prototype.
36320         * lib/mountlist.c: Mark unused parameters.
36321         (read_file_system_list): Declare a local with "const".
36322         * lib/nanosleep.c (getnow): Declare static.
36323         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
36324
36325         dirfd: set errno upon failure
36326         * lib/dirfd.c: Include <errno.h>.
36327         Set errno to ENOTSUP when returning -1.
36328         * modules/dirfd (Depends-on): Add errno.
36329         Suggested by John Kodis <kodis@comcast.net>.
36330
36331 2009-02-01  Bruno Haible  <bruno@clisp.org>
36332
36333         Don't assume sizeof (long) >= sizeof (void *).
36334         * lib/memcmp.c: Include stdint.h.
36335         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
36336         srcp2 to 'const byte *'.
36337         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
36338         types to uintptr_t.
36339         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
36340         * modules/memcmp (Depends-on): Add stdint.
36341         Reported by Ozkan Sezer <sezeroz@gmail.com>.
36342
36343 2009-01-30  Eric Blake  <ebb9@byu.net>
36344
36345         fix more require-before-expand issues
36346         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
36347         expand, AC_PROG_AWK.
36348         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
36349
36350 2009-01-28  Eric Blake  <ebb9@byu.net>
36351
36352         version-etc: use consistent URL formatting
36353         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
36354         Improve formatting.  Use fputs for string without %.
36355
36356 2009-01-28  Jim Meyering  <meyering@redhat.com>
36357
36358         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
36359         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
36360         "underquoted definition of NAME" from autoconf-2.59.
36361
36362 2009-01-28  Bruno Haible  <bruno@clisp.org>
36363
36364         * doc/gnulib.texi: Add "Obsolete modules" to index.
36365
36366 2009-01-28  Jim Meyering  <meyering@redhat.com>
36367
36368         useless-if-before-free: recognize more variants
36369         * build-aux/useless-if-before-free: Also recognize e.g.,
36370         if (NULL != p) free (p);
36371
36372 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
36373
36374         test-getaddrinfo: skip (don't fail) this test when there's no network
36375         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
36376         on the presumption that it means you lack network access.
36377
36378 2009-01-26  Jim Meyering  <meyering@redhat.com>
36379
36380         fflush: avoid warnings on modern systems
36381         * lib/fflush.c (rpl_fflush): Move declarations of locals,
36382         pos and result, into scopes where they're used.
36383
36384 2009-01-26  Eric Blake  <ebb9@byu.net>
36385
36386         Silence warning reintroduced by recent extensions patch.
36387         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
36388         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
36389         autoconf.
36390
36391         Backport improved autoconf semantics of AC_DEFUN_ONCE.
36392         * m4/00gnulib.m4: New file.
36393         * gnulib-tool (func_get_filelist): Always use it.
36394         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
36395         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
36396
36397 2009-01-25  Bruno Haible  <bruno@clisp.org>
36398
36399         Make test-quotearg work on MacOS X and AIX.
36400         * tests/test-quotearg.sh: New file.
36401         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
36402         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
36403         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
36404         include <libintl.h>.
36405         (fake_locale): Remove variable.
36406         (gettext, dgettext, dcgettext): Remove functions.
36407         (main): Instead of setting a fake locale, set a real locale. Call
36408         textdomain and bindtextdomain.
36409         * modules/quotearg-tests (Files): Add the new files.
36410         (Depends-on): Add gettext, setenv, unsetenv.
36411         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
36412         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
36413         Augment TESTS_ENVIRONMENT.
36414
36415 2009-01-25  Bruno Haible  <bruno@clisp.org>
36416
36417         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
36418         fr_FR.ISO8859-1 locale on MacOS X.
36419         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
36420         ja_JP.eucJP locale on MacOS X.
36421         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
36422         zh_CN.GB18030 locale on MacOS X.
36423
36424 2009-01-25  Bruno Haible  <bruno@clisp.org>
36425
36426         Avoid link errors on MacOS X 10.3.
36427         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
36428         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
36429
36430 2009-01-25  Bruno Haible  <bruno@clisp.org>
36431
36432         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
36433         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
36434         * modules/pipe (Files): Remove m4/posix_spawn.m4.
36435         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
36436         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
36437         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
36438         posix_spawnattr_init, posix_spawnattr_setsigmask,
36439         posix_spawnattr_setflags, posix_spawnattr_destroy.
36440
36441         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
36442         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
36443         * modules/execute (Files): Remove m4/posix_spawn.m4.
36444         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
36445         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
36446         posix_spawnattr_init, posix_spawnattr_setsigmask,
36447         posix_spawnattr_setflags, posix_spawnattr_destroy.
36448
36449 2009-01-25  Bruno Haible  <bruno@clisp.org>
36450
36451         * lib/glthread/threadlib.c: Include <stdlib.h>.
36452
36453 2009-01-25  Bruno Haible  <bruno@clisp.org>
36454
36455         * lib/glthread/threadlib.c (dummy): New declaration.
36456
36457 2009-01-25  Bruno Haible  <bruno@clisp.org>
36458
36459         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
36460         multibyte characters also for the GB18030 encoding. Don't crash when
36461         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
36462
36463 2009-01-25  Bruno Haible  <bruno@clisp.org>
36464
36465         Avoid redefining 'struct random_data' on OSF/1 5.1.
36466         * lib/stdlib.in.h: Include <random.h> if it exists.
36467         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
36468         HAVE_RANDOM_H. Include <random.h> when testing whether
36469         'struct random_data' exists.
36470         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
36471
36472 2009-01-25  Bruno Haible  <bruno@clisp.org>
36473
36474         Don't install charset.alias on MacOS X >= 10.3.
36475         * lib/localcharset.c (DARWIN7): New macro.
36476         (get_charset_aliases): Hardcode the result for Darwin7.
36477         * modules/localcharset (install-exec-local): Don't install
36478         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
36479
36480 2009-01-25  Bruno Haible  <bruno@clisp.org>
36481
36482         Don't install charset.alias on mingw and Cygwin.
36483         * modules/localcharset (install-exec-local): Don't install
36484         charset.alias on mingw and Cygwin, if the file does not yet exist.
36485         The result for these platforms is hardcoded in localcharset.c.
36486
36487 2009-01-25  Bruno Haible  <bruno@clisp.org>
36488
36489         Make it possible again to use AC_GNU_SOURCE together with gnulib.
36490         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
36491         before requiring AC_USE_SYSTEM_EXTENSIONS.
36492
36493 2009-01-25  Jim Meyering  <meyering@redhat.com>
36494
36495         c-strtod: avoid warnings
36496         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
36497         "assignment discards qualifiers from pointer target type" warnings.
36498
36499 2009-01-24  Bruno Haible  <bruno@clisp.org>
36500
36501         Add support for non-UTF-8 locales on MacOS X.
36502         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
36503         canonical encodings. For Darwin 7 and newer, don't map traditional
36504         encodings to UTF-8.
36505         Reported by Vincent Lefevre <vincent@vinc17.org>
36506         at <http://savannah.gnu.org/bugs/?25235>.
36507
36508 2009-01-24  Bruno Haible  <bruno@clisp.org>
36509
36510         * doc/gnulib.texi (Obsolete modules): New section.
36511         Reported by Mike Frysinger <vapier@gentoo.org>.
36512
36513 2009-01-24  Bruno Haible  <bruno@clisp.org>
36514
36515         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
36516         (%.dvi): New rule.
36517
36518 2009-01-24  Bruno Haible  <bruno@clisp.org>
36519
36520         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
36521         Reported by Eric Blake.
36522
36523 2009-01-24  Bruno Haible  <bruno@clisp.org>
36524
36525         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
36526         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
36527         Reported by Gary V. Vaughan <gary@gnu.org>.
36528
36529 2009-01-24  Bruno Haible  <bruno@clisp.org>
36530
36531         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
36532
36533 2009-01-23  Bruno Haible  <bruno@clisp.org>
36534
36535         Make c-strtod, c-strtold usable in libraries.
36536         * lib/c-strtod.c: Include string.h instead of xalloc.h.
36537         (C_STRTOD): Call strdup instead of xstrdup.
36538         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
36539         * modules/c-strtold (Depends-on): Likewise.
36540         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
36541         * NEWS: Mention the change.
36542         Reported by Michael Gold <mgold@ncf.ca>.
36543
36544 2009-01-23  Jim Meyering  <meyering@redhat.com>
36545
36546         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
36547         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
36548         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
36549
36550 2009-01-23  Simon Josefsson  <simon@josefsson.org>
36551
36552         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
36553         GNU CoreUtils.
36554         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
36555         * modules/version-etc (Description): Update.
36556
36557 2009-01-22  Bruno Haible  <bruno@clisp.org>
36558
36559         Cache the C locale object.
36560         * lib/c-strtod.c (c_locale_cache): New variable.
36561         (c_locale): New function.
36562         (C_STRTOD): Use it, and don't call freelocale.
36563         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
36564         Suggested by Paolo Bonzini.
36565
36566 2009-01-21  Bruno Haible  <bruno@clisp.org>
36567
36568         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
36569         conditions other than overflow.
36570
36571 2009-01-21  Bruno Haible  <bruno@clisp.org>
36572
36573         * lib/c-strtod.c: Include errno.h.
36574         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
36575         value from STRTOD_L and STRTOD.
36576
36577 2009-01-21  Bruno Haible  <bruno@clisp.org>
36578         and Jim Meyering  <meyering@redhat.com>
36579
36580         nanosleep: skip configure test (fail it) for apple universal builds
36581         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
36582         universal builds, assume that nanosleep does not work.
36583         * modules/nanosleep (Depends-on): Add multiarch.
36584
36585         mktime: skip configure test (fail it) for apple universal builds
36586         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
36587         universal builds, assume that mktime does not work.
36588         * modules/mktime (Depends-on): Add multiarch.
36589
36590 2009-01-21  Eric Blake  <ebb9@byu.net>
36591
36592         multiarch: avoid expand-before-require warning
36593         * modules/multiarch (configure.ac): Require, rather than expand,
36594         gl_MULTIARCH.
36595         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
36596         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
36597         enforce that all clients require it.  Partial reversion of
36598         2008-12-29 patch.
36599
36600         error: avoid expand-before-require warning
36601         * modules/errno (configure.ac): Require, rather than expand,
36602         gl_HEADER_ERRNO_H.
36603         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
36604         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
36605         enforce that all clients require it.
36606
36607         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
36608         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
36609         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
36610         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
36611
36612 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
36613
36614         Revert:
36615         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
36616
36617         regex: do not depend on obsolete modules.
36618         * modules/regex: Remove memcmp and memmove.
36619
36620 2009-01-20  Bruno Haible  <bruno@clisp.org>
36621
36622         Make the 'link' module link on Windows NT 4.
36623         * lib/link.c (_WIN32_WINNT): Don't define.
36624         (CreateHardLinkFuncType): New type.
36625         (CreateHardLinkFunc, initialized): New variables.
36626         (initialize): New function.
36627         (link): Invoke CreateHardLink indirectly through the function pointer.
36628
36629 2009-01-20  Bruno Haible  <bruno@clisp.org>
36630
36631         Fix compilation failure on mingw.
36632         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
36633
36634 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
36635
36636         * doc/c-strtod.texi: Mention a couple of restrictions.
36637
36638 2009-01-20  Jim Meyering  <meyering@redhat.com>
36639
36640         gettimeofday: move more declarations out of functions
36641         * lib/gettimeofday.c: Move extern declarations of tzset and
36642         gmtime out of containing functions.  Prompted by Bruno Haible.
36643
36644 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
36645
36646         regex: do not depend on obsolete modules.
36647         * modules/regex: Remove memcmp and memmove.
36648
36649 2009-01-19  Bruno Haible  <bruno@clisp.org>
36650
36651         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
36652         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
36653         gl_BIGENDIAN, not AC_C_BIGENDIAN.
36654         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
36655         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
36656
36657 2009-01-19  Bruno Haible  <bruno@clisp.org>
36658
36659         * tests/test-link.c: Include <errno.h>.
36660         (main): Exit with code 77 when a hard link cannot be created due to
36661         the file system.
36662         * tests/test-link.sh: Skip test when a hard link cannot be created due
36663         to the file system.
36664         Suggested by Eric Blake.
36665
36666 2009-01-19  Martin Lambers  <marlam@marlam.de>
36667
36668         * modules/link-tests: New file.
36669         * tests/test-link.sh: New file.
36670         * tests/test-link.c: New file.
36671
36672 2009-01-19  Eric Blake  <ebb9@byu.net>
36673
36674         doc: mention another function added in cygwin 1.7.0
36675         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
36676         Another new function in cygwin 1.7.
36677
36678 2009-01-19  Bruno Haible  <bruno@clisp.org>
36679
36680         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
36681         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
36682         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
36683         gl_BIGENDIAN, not AC_C_BIGENDIAN.
36684         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
36685         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
36686         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
36687         * m4/md4.m4 (gl_MD4): Likewise.
36688         * m4/md5.m4 (gl_MD5): Likewise.
36689         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
36690         * m4/sha1.m4 (gl_SHA1): Likewise.
36691         * m4/sha256.m4 (gl_SHA256): Likewise.
36692         * m4/sha512.m4 (gl_SHA512): Likewise.
36693
36694 2009-01-19  Bruno Haible  <bruno@clisp.org>
36695
36696         * modules/uniname/uniname-tests (Depends-on): Add progname.
36697         * tests/uniname/test-uninames.c: Include progname.h.
36698         (main): Call set_program_name.
36699
36700         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
36701         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
36702         (main): Call set_program_name.
36703
36704         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
36705         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
36706         (main): Call set_program_name.
36707
36708         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
36709         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
36710         (main): Call set_program_name.
36711
36712         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
36713         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
36714         (main): Call set_program_name.
36715
36716         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
36717         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
36718         (main): Call set_program_name.
36719
36720         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
36721         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
36722         (main): Call set_program_name.
36723
36724         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
36725         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
36726         (main): Call set_program_name.
36727
36728         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
36729         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
36730         (main): Call set_program_name.
36731
36732 2009-01-19  Eric Blake  <ebb9@byu.net>
36733
36734         test-unistd: test previous patch
36735         * tests/test-unistd.c: Test *_FILENO macros.
36736
36737         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
36738         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
36739         Guarantee a definition.
36740         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
36741         * modules/unistd-safer (Depends-on): Add dependency on unistd.
36742         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
36743         * lib/dup-safer.c (STDERR_FILENO): Likewise.
36744         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
36745         Likewise.
36746         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
36747         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
36748         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
36749         Likewise.
36750         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
36751         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
36752         (STDERR_FILENO): Likewise.
36753         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
36754         (STDERR_FILENO): Likewise.
36755         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
36756         (STDERR_FILENO): Likewise.
36757         Reported by Elbert Pol.
36758
36759 2009-01-19  Eric Blake  <ebb9@byu.net>
36760
36761         doc: mention more functions added in cygwin 1.7.0
36762         * doc/posix-functions/abort.texi (abort): Update wording related
36763         to cygwin.
36764         * doc/posix-functions/daylight.texi (daylight): Likewise.
36765         * doc/posix-functions/optarg.texi (optarg): Likewise.
36766         * doc/posix-functions/optarg.texi (opterr): Likewise.
36767         * doc/posix-functions/optarg.texi (optind): Likewise.
36768         * doc/posix-functions/optarg.texi (optopt): Likewise.
36769         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
36770         worked in 1.5.x, and was withdrawn in 1.7.
36771         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
36772         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
36773         cygwin versions.
36774         * doc/posix-functions/perror.texi (perror): Likewise.
36775         * doc/posix-functions/printf.texi (printf): Likewise.
36776         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
36777         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
36778         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
36779         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
36780         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
36781         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
36782         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
36783         Likewise.
36784         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
36785         Likewise.
36786         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
36787         this function.
36788         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
36789         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
36790         Likewise.
36791         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
36792         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
36793         * doc/posix-functions/confstr.texi (confstr): Likewise.
36794         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
36795         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
36796         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
36797         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
36798         * doc/posix-functions/fputws.texi (fputws): Likewise.
36799         * doc/posix-functions/fwide.texi (fwide): Likewise.
36800         * doc/posix-functions/getwc.texi (getwc): Likewise.
36801         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
36802         * doc/posix-functions/putwc.texi (putwc): Likewise.
36803         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
36804         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
36805         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
36806         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
36807         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
36808         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
36809         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
36810         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
36811         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
36812         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
36813         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
36814
36815 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
36816
36817         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
36818         * lib/ioctl.c: Include <sys/ioctl.h>.
36819
36820 2009-01-19  Simon Josefsson  <simon@josefsson.org>
36821
36822         * modules/getdate-tests (Depends-on): Add progname.
36823         * tests/test-getdate.c: Use progname module, to avoid link errors
36824         on non-glibc systems.
36825
36826 2009-01-18  Simon Josefsson  <simon@josefsson.org>
36827
36828         * modules/filenamecat-tests (Depends-on): Add progname.
36829         * modules/fstrcmp-tests (Depends-on): Likewise.
36830
36831         * tests/test-filenamecat.c: Use progname module, to avoid link
36832         errors on non-glibc systems.
36833         * tests/test-fstrcmp.c: Likewise.
36834
36835 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
36836
36837         gettimeofday: avoid warning: nested extern declaration of 'localtime'
36838         * lib/gettimeofday.c: Move extern declaration out of function.
36839
36840 2009-01-18  Bruno Haible  <bruno@clisp.org>
36841
36842         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
36843         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
36844         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
36845
36846 2009-01-18  Bruno Haible  <bruno@clisp.org>
36847
36848         * lib/strftime.c (MEMPCPY): Remove unused macro.
36849         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
36850
36851 2009-01-18  Martin Lambers  <marlam@marlam.de>
36852
36853         New module 'link'.
36854         * lib/unistd.in.h (link): New declaration.
36855         * lib/link.c: New file.
36856         * m4/link.m4: New file.
36857         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
36858         HAVE_LINK.
36859         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
36860         * modules/link: New file.
36861         * doc/posix-functions/link.texi: Mention the new module.
36862
36863 2009-01-18  Bruno Haible  <bruno@clisp.org>
36864
36865         * tests/test-avltree_list.c (main): Call set_program_name.
36866         * tests/test-avltree_oset.c (main): Likewise.
36867         * tests/test-obstack-printf.c: Include progname.h.
36868         (main): Call set_program_name.
36869         * tests/test-quotearg.c: Include progname.h.
36870         (main): Call set_program_name.
36871         * tests/test-xmemdup0.c: Include progname.h.
36872         (main): Call set_program_name.
36873
36874 2009-01-18  Bruno Haible  <bruno@clisp.org>
36875
36876         New module 'alphasort'.
36877         * lib/dirent.in.h (alphasort): New declaration.
36878         * lib/alphasort.c: New file, from glibc with modifications.
36879         * m4/alphasort.m4: New file.
36880         * modules/alphasort: New file.
36881         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
36882         HAVE_ALPHASORT.
36883         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
36884         HAVE_ALPHASORT.
36885         * doc/posix-functions/alphasort.texi: Mention the new module and the
36886         portability problems.
36887
36888 2009-01-18  Bruno Haible  <bruno@clisp.org>
36889
36890         New module 'scandir'.
36891         * lib/dirent.in.h (scandir): New declaration.
36892         * lib/scandir.c: New file, from glibc with modifications.
36893         * m4/scandir.m4: New file.
36894         * modules/scandir: New file.
36895         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
36896         HAVE_SCANDIR.
36897         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
36898         HAVE_SCANDIR.
36899         * doc/posix-functions/scandir.texi: Mention the new module and the
36900         portability problems.
36901
36902 2009-01-17  Bruno Haible  <bruno@clisp.org>
36903
36904         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
36905         Update documentation.
36906         (func_remove_suffix): Escape all dots in the suffix. Update
36907         documentation.
36908         (func_filter_filelist): Update documentation.
36909         Reported by Ralf Wildenhues.
36910
36911 2009-01-17  Bruno Haible  <bruno@clisp.org>
36912
36913         * modules/dprintf-posix-tests: New file.
36914         * tests/test-dprintf-posix.sh: New file.
36915         * tests/test-dprintf-posix.c: New file.
36916
36917         New modules 'dprintf', 'dprintf-posix'.
36918         * lib/stdio.in.h (dprintf): New declaration.
36919         * lib/dprintf.c: New file.
36920         * m4/dprintf.m4: New file.
36921         * m4/dprintf-posix.m4: New file.
36922         * modules/dprintf: New file.
36923         * modules/dprintf-posix: New file.
36924         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
36925         HAVE_DPRINTF, REPLACE_DPRINTF.
36926         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
36927         HAVE_DPRINTF, REPLACE_DPRINTF.
36928         * doc/posix-functions/dprintf.texi: Mention the new modules.
36929
36930 2009-01-17  Bruno Haible  <bruno@clisp.org>
36931
36932         * modules/vdprintf-posix-tests: New file.
36933         * tests/test-vdprintf-posix.sh: New file.
36934         * tests/test-vdprintf-posix.c: New file.
36935
36936         New modules 'vdprintf', 'vdprintf-posix'.
36937         * lib/stdio.in.h (vdprintf): New declaration.
36938         * lib/vdprintf.c: New file.
36939         * m4/vdprintf.m4: New file.
36940         * m4/vdprintf-posix.m4: New file.
36941         * modules/vdprintf: New file.
36942         * modules/vdprintf-posix: New file.
36943         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
36944         HAVE_VDPRINTF, REPLACE_VDPRINTF.
36945         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
36946         HAVE_VDPRINTF, REPLACE_VDPRINTF.
36947         * doc/posix-functions/vdprintf.texi: Mention the new modules.
36948
36949 2009-01-17  Bruno Haible  <bruno@clisp.org>
36950
36951         Fix replacement of fopen on mingw.
36952         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
36953         mingw.
36954
36955 2009-01-17  Bruno Haible  <bruno@clisp.org>
36956
36957         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
36958         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
36959
36960 2009-01-17  Bruno Haible  <bruno@clisp.org>
36961
36962         Avoid test-fflush2.sh failure on mingw.
36963         * tests/test-fflush2.c: Include binary-io.h.
36964         (main): Put standard input into binary mode.
36965         * modules/fflush-tests (Depends-on): Add binary-io.
36966
36967 2009-01-17  Bruno Haible  <bruno@clisp.org>
36968
36969         * lib/wchar.in.h: In another particular situation, include only the
36970         system's <wchar.h> file.
36971         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
36972         Reported by Albert Chin-A-Young <china@thewrittenword.com>
36973         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
36974
36975 2009-01-17  Bruno Haible  <bruno@clisp.org>
36976
36977         Support for stripping executables in --enable-relocatable.
36978         * build-aux/install-reloc: Expect one more argument, or an environment
36979         variable RELOC_STRIP_PROG. If set, strip the destination program and
36980         its wrapper.
36981         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
36982         RELOC_STRIP_PROG.
36983         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
36984         to set RELOCATABLE_STRIP.
36985         * NEWS: Mention the new Makefile requirement.
36986
36987 2009-01-17  Bruno Haible  <bruno@clisp.org>
36988
36989         * build-aux/install-reloc: Remove debugging information left over by
36990         C compiler on MacOS X.
36991
36992 2009-01-17  Bruno Haible  <bruno@clisp.org>
36993
36994         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
36995         * lib/progreloc.c (find_executable): Fix type of pointer passed to
36996         _NSGetExecutablePath.
36997
36998 2009-01-16  Jim Meyering  <meyering@redhat.com>
36999
37000         strerror: avoid warnings about discarding "const"
37001         * lib/strerror.c (rpl_strerror): Instead of returning a const
37002         string from each and every "case", use a variable, and add a single
37003         cast after the switch.
37004
37005 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
37006
37007         * lib/arpa_inet.in.h: Add extern "C" block for C++.
37008
37009 2009-01-16  Bruno Haible  <bruno@clisp.org>
37010
37011         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
37012         array initializer syntax that also works in C++ mode.
37013         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
37014
37015 2009-01-16  Jim Meyering  <meyering@redhat.com>
37016
37017         poll: suppress a warning
37018         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
37019         to ignore "...unsigned expression < 0 is always false" warnings.
37020
37021 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
37022
37023         poll: remove declarations of unused variables
37024         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
37025         sockbuf and optlen.
37026
37027 2009-01-15  Bruno Haible  <bruno@clisp.org>
37028
37029         Make fflush-after-ungetc POSIX compliant on BSD systems.
37030         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
37031         (clear_ungetc_buffer): Implement also for other systems.
37032         (rpl_fflush): On glibc systems, invoke
37033         clear_ungetc_buffer_preserving_position. Otherwise, invoke
37034         clear_ungetc_buffer after fetching the stream's position, not before.
37035
37036 2009-01-15  Bruno Haible  <bruno@clisp.org>
37037
37038         Make fflush-after-ungetc POSIX compliant on glibc systems.
37039         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
37040         after ungetc.
37041         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
37042         (rpl_fflush): On glibc systems, simply call the system's fflush
37043         function after clearing the ungetc buffer.
37044         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
37045         Instead, lseek only to the end of file, then use the system's fseeko
37046         for the rest. On glibc systems, reset the EOF indicator bit.
37047
37048 2009-01-15  Jim Meyering  <meyering@redhat.com>
37049
37050         openmp.m4: revert quote-adding change, for portability to older autoconf
37051         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
37052         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
37053         Simon Josefsson noticed the problem when using autoconf-2.61.
37054
37055 2009-01-15  Bruno Haible  <bruno@clisp.org>
37056
37057         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
37058         * tests/test-fflush2.c (ASSERT): Always fail.
37059         (main): Add two tests for fflush() after ungetc(), taking into account
37060         the Austin Group's clarification.
37061         Suggested by Eric Blake.
37062
37063 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
37064
37065         mktime.m4: remove K&R-style function prototypes
37066         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
37067         for the Sun C++ compiler.
37068
37069 2009-01-14  Bruno Haible  <bruno@clisp.org>
37070
37071         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
37072         while including <wchar.h>.
37073         * lib/wchar.in.h: In two particular situations on HP-UX, include only
37074         the system's <wchar.h> file.
37075         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
37076
37077 2009-01-14  Bruno Haible  <bruno@clisp.org>
37078
37079         * m4/csharp.m4: Don't mention gettext on the serial number line.
37080         * m4/csharpexec.m4: Likewise.
37081         * m4/eaccess.m4: Likewise.
37082         * m4/javaexec.m4: Likewise.
37083         * m4/sig_atomic_t.m4: Likewise.
37084         * m4/tmpdir.m4: Likewise.
37085         * m4/intldir.m4: Bump gettext version.
37086         * m4/lib-ld.m4: Likewise.
37087
37088 2009-01-14  Bruno Haible  <bruno@clisp.org>
37089
37090         * lib/progname.c (set_program_name): Add more comments.
37091         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
37092
37093 2009-01-14  Simon Josefsson  <simon@josefsson.org>
37094
37095         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
37096         were sys/stat.h does not define it.
37097
37098 2009-01-14  Jim Meyering  <meyering@redhat.com>
37099
37100         many *.m4 files: improve m4 quoting
37101         99% of this change was performed by running the following commands:
37102         git ls-files | grep '\.m4$' | xargs perl -pi \
37103           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
37104           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
37105           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
37106           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
37107         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
37108         The remainder were to add Copyright dates, increment serial numbers,
37109         undo some changes in comments, exclude m4/intl.m4, and add quotes
37110         around the "1" in ",1" where the unusual spacing prohibited the
37111         above regexps from doing the job.  For more details, see
37112         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
37113         * m4/acl.m4: Modified.
37114         * m4/afs.m4: Likewise.
37115         * m4/alloca.m4: Likewise.
37116         * m4/argp.m4: Likewise.
37117         * m4/argz.m4: Likewise.
37118         * m4/atexit.m4: Likewise.
37119         * m4/bison-i18n.m4: Likewise.
37120         * m4/bison.m4: Likewise.
37121         * m4/byteswap.m4: Likewise.
37122         * m4/c-stack.m4: Likewise.
37123         * m4/c-strtod.m4: Likewise.
37124         * m4/calloc.m4: Likewise.
37125         * m4/canonicalize-lgpl.m4: Likewise.
37126         * m4/chown.m4: Likewise.
37127         * m4/clock_time.m4: Likewise.
37128         * m4/codeset.m4: Likewise.
37129         * m4/copy-file.m4: Likewise.
37130         * m4/csharp.m4: Likewise.
37131         * m4/csharpcomp.m4: Likewise.
37132         * m4/csharpexec.m4: Likewise.
37133         * m4/d-ino.m4: Likewise.
37134         * m4/d-type.m4: Likewise.
37135         * m4/dirfd.m4: Likewise.
37136         * m4/double-slash-root.m4: Likewise.
37137         * m4/eaccess.m4: Likewise.
37138         * m4/eealloc.m4: Likewise.
37139         * m4/environ.m4: Likewise.
37140         * m4/errno_h.m4: Likewise.
37141         * m4/euidaccess.m4: Likewise.
37142         * m4/execute.m4: Likewise.
37143         * m4/fatal-signal.m4: Likewise.
37144         * m4/fchdir.m4: Likewise.
37145         * m4/fcntl_h.m4: Likewise.
37146         * m4/fileblocks.m4: Likewise.
37147         * m4/filenamecat.m4: Likewise.
37148         * m4/findprog.m4: Likewise.
37149         * m4/flexmember.m4: Likewise.
37150         * m4/fnmatch.m4: Likewise.
37151         * m4/fopen.m4: Likewise.
37152         * m4/fpending.m4: Likewise.
37153         * m4/fprintf-posix.m4: Likewise.
37154         * m4/free.m4: Likewise.
37155         * m4/frexp.m4: Likewise.
37156         * m4/frexpl.m4: Likewise.
37157         * m4/fsusage.m4: Likewise.
37158         * m4/ftruncate.m4: Likewise.
37159         * m4/gc-camellia.m4: Likewise.
37160         * m4/gc-random.m4: Likewise.
37161         * m4/gc.m4: Likewise.
37162         * m4/getaddrinfo.m4: Likewise.
37163         * m4/getcwd-abort-bug.m4: Likewise.
37164         * m4/getcwd-path-max.m4: Likewise.
37165         * m4/getdate.m4: Likewise.
37166         * m4/getdomainname.m4: Likewise.
37167         * m4/getgroups.m4: Likewise.
37168         * m4/gethostname.m4: Likewise.
37169         * m4/gethrxtime.m4: Likewise.
37170         * m4/getline.m4: Likewise.
37171         * m4/getloadavg.m4: Likewise.
37172         * m4/getndelim2.m4: Likewise.
37173         * m4/getpass.m4: Likewise.
37174         * m4/gettext.m4: Likewise.
37175         * m4/gettime.m4: Likewise.
37176         * m4/gettimeofday.m4: Likewise.
37177         * m4/gnulib-common.m4: Likewise.
37178         * m4/group-member.m4: Likewise.
37179         * m4/host-os.m4: Likewise.
37180         * m4/iconv.m4: Likewise.
37181         * m4/iconv_open.m4: Likewise.
37182         * m4/inet_ntop.m4: Likewise.
37183         * m4/inet_pton.m4: Likewise.
37184         * m4/inline.m4: Likewise.
37185         * m4/intldir.m4: Likewise.
37186         * m4/intlmacosx.m4: Likewise.
37187         * m4/intmax.m4: Likewise.
37188         * m4/intmax_t.m4: Likewise.
37189         * m4/inttypes.m4: Likewise.
37190         * m4/inttypes_h.m4: Likewise.
37191         * m4/inttypes-pri.m4: Likewise.
37192         * m4/isapipe.m4: Likewise.
37193         * m4/isnand.m4: Likewise.
37194         * m4/isnanf.m4: Likewise.
37195         * m4/isnanl.m4: Likewise.
37196         * m4/javacomp.m4: Likewise.
37197         * m4/javaexec.m4: Likewise.
37198         * m4/jm-winsz1.m4: Likewise.
37199         * m4/jm-winsz2.m4: Likewise.
37200         * m4/lchown.m4: Likewise.
37201         * m4/lcmessage.m4: Likewise.
37202         * m4/ldexpl.m4: Likewise.
37203         * m4/lib-ld.m4: Likewise.
37204         * m4/lib-link.m4: Likewise.
37205         * m4/libsigsegv.m4: Likewise.
37206         * m4/link-follow.m4: Likewise.
37207         * m4/localcharset.m4: Likewise.
37208         * m4/locale-fr.m4: Likewise.
37209         * m4/locale-ja.m4: Likewise.
37210         * m4/locale-tr.m4: Likewise.
37211         * m4/locale-zh.m4: Likewise.
37212         * m4/lock.m4: Likewise.
37213         * m4/longlong.m4: Likewise.
37214         * m4/ls-mntd-fs.m4: Likewise.
37215         * m4/lstat.m4: Likewise.
37216         * m4/malloc.m4: Likewise.
37217         * m4/mathl.m4: Likewise.
37218         * m4/mbrtowc.m4: Likewise.
37219         * m4/mbstate_t.m4: Likewise.
37220         * m4/mbswidth.m4: Likewise.
37221         * m4/memchr.m4: Likewise.
37222         * m4/memcmp.m4: Likewise.
37223         * m4/memcpy.m4: Likewise.
37224         * m4/memmem.m4: Likewise.
37225         * m4/memmove.m4: Likewise.
37226         * m4/mempcpy.m4: Likewise.
37227         * m4/memrchr.m4: Likewise.
37228         * m4/memset.m4: Likewise.
37229         * m4/minmax.m4: Likewise.
37230         * m4/mkdir-slash.m4: Likewise.
37231         * m4/mkdtemp.m4: Likewise.
37232         * m4/mktime.m4: Likewise.
37233         * m4/mmap-anon.m4: Likewise.
37234         * m4/mountlist.m4: Likewise.
37235         * m4/nanosleep.m4: Likewise.
37236         * m4/nls.m4: Likewise.
37237         * m4/nocrash.m4: Likewise.
37238         * m4/open.m4: Likewise.
37239         * m4/openat.m4: Likewise.
37240         * m4/openmp.m4: Likewise.
37241         * m4/pathmax.m4: Likewise.
37242         * m4/perl.m4: Likewise.
37243         * m4/physmem.m4: Likewise.
37244         * m4/pipe.m4: Likewise.
37245         * m4/po.m4: Likewise.
37246         * m4/poll.m4: Likewise.
37247         * m4/posixtm.m4: Likewise.
37248         * m4/posixver.m4: Likewise.
37249         * m4/printf-frexp.m4: Likewise.
37250         * m4/printf-frexpl.m4: Likewise.
37251         * m4/printf-posix.m4: Likewise.
37252         * m4/printf-posix-rpl.m4: Likewise.
37253         * m4/printf.m4: Likewise.
37254         * m4/progtest.m4: Likewise.
37255         * m4/putenv.m4: Likewise.
37256         * m4/readline.m4: Likewise.
37257         * m4/readlink.m4: Likewise.
37258         * m4/readutmp.m4: Likewise.
37259         * m4/realloc.m4: Likewise.
37260         * m4/regex.m4: Likewise.
37261         * m4/relocatable.m4: Likewise.
37262         * m4/relocatable-lib.m4: Likewise.
37263         * m4/rename-dest-slash.m4: Likewise.
37264         * m4/rename.m4: Likewise.
37265         * m4/rmdir-errno.m4: Likewise.
37266         * m4/rmdir.m4: Likewise.
37267         * m4/roundf.m4: Likewise.
37268         * m4/roundl.m4: Likewise.
37269         * m4/rpmatch.m4: Likewise.
37270         * m4/save-cwd.m4: Likewise.
37271         * m4/selinux-selinux-h.m4: Likewise.
37272         * m4/setenv.m4: Likewise.
37273         * m4/settime.m4: Likewise.
37274         * m4/sig2str.m4: Likewise.
37275         * m4/sig_atomic_t.m4: Likewise.
37276         * m4/signalblocking.m4: Likewise.
37277         * m4/signbit.m4: Likewise.
37278         * m4/sigpipe.m4: Likewise.
37279         * m4/sockets.m4: Likewise.
37280         * m4/sockpfaf.m4: Likewise.
37281         * m4/st_dm_mode.m4: Likewise.
37282         * m4/stat-time.m4: Likewise.
37283         * m4/stdbool.m4: Likewise.
37284         * m4/stdint.m4: Likewise.
37285         * m4/stdint_h.m4: Likewise.
37286         * m4/stpcpy.m4: Likewise.
37287         * m4/stpncpy.m4: Likewise.
37288         * m4/strcase.m4: Likewise.
37289         * m4/strchrnul.m4: Likewise.
37290         * m4/strcspn.m4: Likewise.
37291         * m4/strdup.m4: Likewise.
37292         * m4/strftime.m4: Likewise.
37293         * m4/strndup.m4: Likewise.
37294         * m4/strnlen.m4: Likewise.
37295         * m4/strpbrk.m4: Likewise.
37296         * m4/strptime.m4: Likewise.
37297         * m4/strsep.m4: Likewise.
37298         * m4/strtod.m4: Likewise.
37299         * m4/strtoimax.m4: Likewise.
37300         * m4/strtok_r.m4: Likewise.
37301         * m4/strtol.m4: Likewise.
37302         * m4/strtoll.m4: Likewise.
37303         * m4/strtoul.m4: Likewise.
37304         * m4/strtoull.m4: Likewise.
37305         * m4/strtoumax.m4: Likewise.
37306         * m4/strverscmp.m4: Likewise.
37307         * m4/threadlib.m4: Likewise.
37308         * m4/timegm.m4: Likewise.
37309         * m4/tm_gmtoff.m4: Likewise.
37310         * m4/tmpdir.m4: Likewise.
37311         * m4/tmpfile.m4: Likewise.
37312         * m4/tzset.m4: Likewise.
37313         * m4/uintmax_t.m4: Likewise.
37314         * m4/unlinkdir.m4: Likewise.
37315         * m4/unlocked-io.m4: Likewise.
37316         * m4/uptime.m4: Likewise.
37317         * m4/userspec.m4: Likewise.
37318         * m4/utimbuf.m4: Likewise.
37319         * m4/utime.m4: Likewise.
37320         * m4/utimes-null.m4: Likewise.
37321         * m4/utimes.m4: Likewise.
37322         * m4/vararrays.m4: Likewise.
37323         * m4/vasnprintf.m4: Likewise.
37324         * m4/vfprintf-posix.m4: Likewise.
37325         * m4/vprintf-posix.m4: Likewise.
37326         * m4/wait-process.m4: Likewise.
37327         * m4/wchar_t.m4: Likewise.
37328         * m4/wint_t.m4: Likewise.
37329         * m4/write-any-file.m4: Likewise.
37330         * m4/yield.m4: Likewise.
37331
37332 2009-01-13  Bruno Haible  <bruno@clisp.org>
37333
37334         Avoid test-copy-file.sh failures when ACL support insufficient.
37335         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
37336         TESTS_ENVIRONMENT.
37337         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
37338         Reported by Jim Meyering.
37339
37340 2009-01-13  Bruno Haible  <bruno@clisp.org>
37341
37342         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
37343         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
37344         * modules/unistdio/u8-printf-parse (Files): Likewise.
37345         * modules/unistdio/u32-printf-parse (Files): Likewise.
37346         * modules/unistdio/ulc-printf-parse (Files): Likewise.
37347
37348 2009-01-13  Simon Josefsson  <simon@josefsson.org>
37349
37350         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
37351         and m4/inttypes_h.m4 too.
37352
37353 2009-01-12  Eric Blake  <ebb9@byu.net>
37354
37355         tests: IRIX 6.2 cc can't compile -0.0 into .data
37356         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
37357         rather than at compile-time.
37358         * tests/test-floorl.c (minus_zero): Likewise.
37359         * tests/test-frexpl.c (minus_zero): Likewise.
37360         * tests/test-isnan.c (minus_zerol): Likewise.
37361         * tests/test-isnanl.h (minus_zero): Likewise.
37362         * tests/test-ldexpl.c (minus_zero): Likewise.
37363         * tests/test-roundl.c (minus_zero): Likewise.
37364         * tests/test-signbit.c (minus_zerol): Likewise.
37365         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
37366         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
37367         * tests/test-truncl.c (minus_zero): Likewise.
37368         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
37369         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
37370         Reported by Tom G. Christensen and Nelson H. F. Beebe.
37371
37372 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
37373
37374         regex: fix glibc bug 9697
37375         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
37376         handling.
37377
37378 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
37379
37380         regex: fix glibc bug 697
37381         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
37382         being NULL also if there are no backreferences.
37383
37384 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
37385
37386         regex: merge glibc changes
37387         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
37388         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
37389         re_string_skip_chars, re_string_reconstruct): Likewise.
37390         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
37391
37392 2009-01-07  Jim Meyering  <meyering@redhat.com>
37393
37394         poll: filter through cppi
37395         * lib/poll.c: Indent cpp directives to reflect nesting.
37396
37397 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
37398
37399         poll: don't return uninitialized
37400         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
37401
37402 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
37403
37404         avoid compile failure on AIX 6.1
37405         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
37406         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
37407
37408 2009-01-04  Jim Meyering  <meyering@redhat.com>
37409
37410         remove duplicate inclusion of <stdio.h>
37411         * tests/test-fprintf-posix.c: Likewise.
37412         * tests/test-printf-posix.c: Likewise.
37413         * tests/test-snprintf-posix.c: Likewise.
37414         * tests/test-sprintf-posix.c: Likewise.
37415         * tests/test-vasprintf-posix.c: Likewise.
37416         * tests/test-vfprintf-posix.c: Likewise.
37417         * tests/test-vprintf-posix.c: Likewise.
37418         * tests/test-vsnprintf-posix.c: Likewise.
37419         * tests/test-vsprintf-posix.c: Likewise.
37420
37421 2009-01-03  Jim Meyering  <meyering@redhat.com>
37422
37423         gnulib-tool: fix sed-based filtering
37424         * gnulib-tool (func_filter_filelist): Remove extra backslash
37425         in sed_fff_filter definition.
37426
37427 2009-01-02  Jim Meyering  <meyering@redhat.com>
37428
37429         strftime: avoid compilation failure on Solaris 2.6
37430         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
37431         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
37432         Don't #define mbrlen or mbsinit, since now they're guaranteed to
37433         be available.  Reported by Tom G. Christensen.  Details in
37434         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
37435
37436 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37437             Bruno Haible  <bruno@clisp.org>
37438
37439         Speed up gnulib-tool by doing more string processing through shell
37440         built-ins.
37441         * gnulib-tool (fast_func_append): New variable.
37442         (func_remove_prefix, func_remove_suffix): New functions.
37443         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
37444         (func_filter_filelist): New function.
37445         (func_get_dependencies): Use func_remove_suffix instead of sed.
37446         (func_get_automake_snippet): Use func_filter_filelist instead of a
37447         subshell and sed invocation.
37448
37449 2009-01-01  Bruno Haible  <bruno@clisp.org>
37450
37451         Fix a security bug.
37452         * gnulib-tool (func_import, import, update): Don't allow the characters
37453         '"', '$', '`', '\' in macro arguments that become part of commands that
37454         are evaluated.
37455
37456 2009-01-01  Bruno Haible  <bruno@clisp.org>
37457
37458         * gnulib-tool (func_reset_sigpipe): Add more comments.
37459
37460 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37461
37462         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
37463         func_emit_tests_Makefile_am, func_import): Abort loops early if we
37464         already know the answer.
37465
37466 2009-01-01  Jim Meyering  <meyering@redhat.com>
37467
37468         * lib/version-etc.c (version_etc_va): Update copyright year.
37469
37470 2008-12-30  Bruno Haible  <bruno@clisp.org>
37471
37472         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
37473         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
37474         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
37475
37476 2008-12-29  Eric Blake  <ebb9@byu.net>
37477
37478         multiarch: avoid autoconf AC_REQUIRE bug
37479         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
37480         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
37481         2.63 and older.
37482         Reported by Bruno Haible, and analyzed in
37483         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
37484
37485 2008-12-29  Bruno Haible  <bruno@clisp.org>
37486
37487         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
37488         files in subdirectories correctly.
37489         Reported by Ralf Wildenhues.
37490
37491 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37492
37493         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
37494         rather than 'join FILE -', for Solaris join.
37495
37496 2008-12-29  Bruno Haible  <bruno@clisp.org>
37497
37498         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
37499         quoting.
37500         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
37501         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
37502         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
37503         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
37504         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
37505         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
37506         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
37507         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
37508         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
37509         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
37510         * m4/nls.m4 (AM_NLS): Likewise.
37511         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
37512         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
37513         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
37514         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
37515         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
37516         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
37517         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
37518         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
37519         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
37520         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
37521         * m4/xsize.m4 (gl_XSIZE): Likewise.
37522         Suggested by Jim Meyering.
37523
37524 2008-11-17  Bruce Korb  <bkorb@gnu.org>
37525
37526         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
37527         * lib/parse-duration.c: use a switch instead of cascading if's.
37528
37529 2008-12-29  Eric Blake  <ebb9@byu.net>
37530
37531         wchar.h: supply WEOF on Irix 5.3
37532         * lib/wchar.in.h (wint_t): Also supply WEOF.
37533         * lib/wctype.in.h (wint_t): Likewise.
37534         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
37535         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
37536         Reported by Tom G. Christensen.
37537
37538 2008-12-26  Bruno Haible  <bruno@clisp.org>
37539
37540         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
37541         i486, i586, i686.
37542
37543 2008-12-26  Bruno Haible  <bruno@clisp.org>
37544
37545         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
37546
37547 2008-12-26  Bruno Haible  <bruno@clisp.org>
37548
37549         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
37550         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
37551         not __STDC_CONSTANT_MACROS.
37552         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
37553
37554 2008-12-25  Bruno Haible  <bruno@clisp.org>
37555
37556         Add support for universal builds to vasnprintf.
37557         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
37558         universal builds, guess no.
37559         * modules/vasnprintf-posix (Depends-on): Add multiarch.
37560         * modules/vasprintf-posix (Depends-on): Likewise.
37561         * modules/fprintf-posix (Depends-on): Likewise.
37562         * modules/vfprintf-posix (Depends-on): Likewise.
37563         * modules/snprintf-posix (Depends-on): Likewise.
37564         * modules/vsnprintf-posix (Depends-on): Likewise.
37565         * modules/sprintf-posix (Depends-on): Likewise.
37566         * modules/vsprintf-posix (Depends-on): Likewise.
37567         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
37568         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
37569         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
37570         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
37571         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
37572         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
37573         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
37574
37575         Add support for universal builds to <inttypes.h>.
37576         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
37577         _SCNu64_PREFIX): In Apple
37578         universal builds, define directly, using _LP64.
37579         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
37580         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
37581         * modules/inttypes (Depends-on): Add multiarch.
37582         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
37583
37584         Add support for universal builds to <stdint.h>.
37585         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
37586         universal builds, define directly, using _LP64.
37587         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
37588         Apple universal builds, don't test for the size and suffix of ptrdiff_t
37589         and size_t.
37590         * modules/stdint (Depends-on): Add multiarch.
37591         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
37592
37593         New module 'multiarch'.
37594         * modules/multiarch: New file.
37595         * m4/multiarch.m4: New file.
37596
37597 2008-12-25  Bruno Haible  <bruno@clisp.org>
37598
37599         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
37600
37601 2008-12-25  Bruno Haible  <bruno@clisp.org>
37602
37603         * modules/btowc (License): Relicense under LGPLv2+.
37604         * modules/mbsinit (License): Likewise.
37605         * modules/mbrtowc (License): Likewise.
37606         * modules/wcrtomb (License): Likewise.
37607         * modules/streq (License): Likewise.
37608         Reported by David Lutterkort <lutter@redhat.com>.
37609
37610 2008-12-23  Bruno Haible  <bruno@clisp.org>
37611
37612         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
37613
37614 2008-12-23  Bruno Haible  <bruno@clisp.org>
37615
37616         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
37617         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
37618         GETADDRINFO_LIB, not in LIBS.
37619         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
37620         * modules/canon-host (Link): Likewise.
37621         * NEWS: Mention the change.
37622         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
37623         GETADDRINFO_LIB.
37624
37625 2008-12-22  Bruno Haible  <bruno@clisp.org>
37626
37627         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
37628         * doc/posix-functions/iswalpha_l.texi: Likewise.
37629         * doc/posix-functions/iswblank_l.texi: Likewise.
37630         * doc/posix-functions/iswcntrl_l.texi: Likewise.
37631         * doc/posix-functions/iswctype_l.texi: Likewise.
37632         * doc/posix-functions/iswdigit_l.texi: Likewise.
37633         * doc/posix-functions/iswgraph_l.texi: Likewise.
37634         * doc/posix-functions/iswlower_l.texi: Likewise.
37635         * doc/posix-functions/iswprint_l.texi: Likewise.
37636         * doc/posix-functions/iswpunct_l.texi: Likewise.
37637         * doc/posix-functions/iswspace_l.texi: Likewise.
37638         * doc/posix-functions/iswupper_l.texi: Likewise.
37639         * doc/posix-functions/iswxdigit_l.texi: Likewise.
37640         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
37641         * doc/posix-functions/open_wmemstream.texi: Likewise.
37642         * doc/posix-functions/swscanf.texi: Likewise.
37643         * doc/posix-functions/towctrans_l.texi: Likewise.
37644         * doc/posix-functions/towlower.texi: Likewise.
37645         * doc/posix-functions/towlower_l.texi: Likewise.
37646         * doc/posix-functions/towupper.texi: Likewise.
37647         * doc/posix-functions/towupper_l.texi: Likewise.
37648         * doc/posix-functions/vfwprintf.texi: Likewise.
37649         * doc/posix-functions/vfwscanf.texi: Likewise.
37650         * doc/posix-functions/vswscanf.texi: Likewise.
37651         * doc/posix-functions/vwprintf.texi: Likewise.
37652         * doc/posix-functions/vwscanf.texi: Likewise.
37653         * doc/posix-functions/wcpcpy.texi: Likewise.
37654         * doc/posix-functions/wcpncpy.texi: Likewise.
37655         * doc/posix-functions/wcscasecmp.texi: Likewise.
37656         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
37657         * doc/posix-functions/wcscoll_l.texi: Likewise.
37658         * doc/posix-functions/wcsdup.texi: Likewise.
37659         * doc/posix-functions/wcsncasecmp.texi: Likewise.
37660         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
37661         * doc/posix-functions/wcsnlen.texi: Likewise.
37662         * doc/posix-functions/wcsnrtombs.texi: Likewise.
37663         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
37664         * doc/posix-functions/wctrans_l.texi: Likewise.
37665         * doc/posix-functions/wctype_l.texi: Likewise.
37666         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
37667         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
37668         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
37669         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
37670         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
37671         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
37672         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
37673         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
37674         * doc/glibc-functions/wcschrnul.texi: Likewise.
37675         * doc/glibc-functions/wcsftime_l.texi: Likewise.
37676         * doc/glibc-functions/wcstod_l.texi: Likewise.
37677         * doc/glibc-functions/wcstof_l.texi: Likewise.
37678         * doc/glibc-functions/wcstol_l.texi: Likewise.
37679         * doc/glibc-functions/wcstold_l.texi: Likewise.
37680         * doc/glibc-functions/wcstoll_l.texi: Likewise.
37681         * doc/glibc-functions/wcstoq.texi: Likewise.
37682         * doc/glibc-functions/wcstoul_l.texi: Likewise.
37683         * doc/glibc-functions/wcstoull_l.texi: Likewise.
37684         * doc/glibc-functions/wcstouq.texi: Likewise.
37685         * doc/glibc-functions/wmempcpy.texi: Likewise.
37686
37687 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
37688             Eric Blake  <ebb9@byu.net>
37689             Paolo Bonzini  <bonzini@gnu.org>
37690             Bruno Haible  <bruno@clisp.org>
37691
37692         Make c-stack work on Haiku.
37693         * lib/c-stack.c (SA_ONSTACK): Define fallback.
37694         (c_stack_action): Use SA_ONSTACK flag.
37695
37696 2008-12-22  Bruno Haible  <bruno@clisp.org>
37697
37698         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
37699
37700 2008-12-22  Bruno Haible  <bruno@clisp.org>
37701
37702         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
37703         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
37704         being overridden.
37705         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
37706         New macros.
37707         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
37708         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
37709         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
37710         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
37711
37712 2008-12-22  Bruno Haible  <bruno@clisp.org>
37713
37714         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
37715         from test code.
37716
37717 2008-12-22  Eric Blake  <ebb9@byu.net>
37718
37719         Avoid gcc warnings on cygwin.
37720         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
37721         Avoid unused variable.
37722         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
37723         Likewise.
37724
37725 2008-12-22  Bruno Haible  <bruno@clisp.org>
37726
37727         Remove HAVE_MBRTOWC conditionals.
37728         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
37729         (mbscasecmp): Assume mbrtowc function.
37730         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
37731         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
37732         * lib/mbschr.c: Include mbuiter.h unconditionally.
37733         (mbschr): Assume mbrtowc function.
37734         * lib/mbscspn.c: Include mbuiter.h unconditionally.
37735         (mbscspn): Assume mbrtowc function.
37736         * lib/mbslen.c: Include mbuiter.h unconditionally.
37737         (mbslen): Assume mbrtowc function.
37738         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
37739         (mbsncasecmp): Assume mbrtowc function.
37740         * lib/mbsnlen.c: Include mbiter.h unconditionally.
37741         (mbsnlen): Assume mbrtowc function.
37742         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
37743         (mbspbrk): Assume mbrtowc function.
37744         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
37745         (mbspcasecmp): Assume mbrtowc function.
37746         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
37747         (mbsrchr): Assume mbrtowc function.
37748         * lib/mbssep.c: Include mbuiter.h unconditionally.
37749         (mbssep): Assume mbrtowc function.
37750         * lib/mbsspn.c: Include mbuiter.h unconditionally.
37751         (mbsspn): Assume mbrtowc function.
37752         * lib/mbsstr.c: Include mbuiter.h unconditionally.
37753         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
37754         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
37755         (mbstok_r): Assume mbrtowc function.
37756         * lib/propername.c: Include mbuiter.h unconditionally.
37757         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
37758         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
37759         (trim2): Assume mbrtowc function.
37760         * lib/mbswidth.c (mbsinit): Remove fallback definition.
37761         (mbsnwidth): Assume mbrtowc function.
37762         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
37763         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
37764         fallback definitions.
37765         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
37766
37767 2008-12-22  Bruno Haible  <bruno@clisp.org>
37768
37769         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
37770
37771 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
37772
37773         * modules/regex: Request emulations for the mb*/wc* functions we need.
37774         * m4/regex.m4: Don't look for those functions here.
37775         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
37776
37777 2008-12-22  Bruno Haible  <bruno@clisp.org>
37778
37779         * modules/fnmatch (Depends-on): Remove duplicated dependency.
37780
37781 2008-12-21  Bruno Haible  <bruno@clisp.org>
37782
37783         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
37784         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
37785         (Include): Remove conditionalization.
37786         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
37787         (Include): Remove conditionalization.
37788         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
37789         (Include): Remove conditionalization.
37790         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
37791         * m4/mbfile.m4 (gl_MBFILE): Likewise.
37792         * NEWS: Mention the change.
37793         Reported by Alan Hourihane <alanh@fairlite.co.uk>
37794         via Sergey Poznyakoff <gray@gnu.org.ua>.
37795
37796 2008-12-21  Bruno Haible  <bruno@clisp.org>
37797
37798         * MODULES.html.sh (Extended multibyte and wide character utilities
37799         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
37800         wcrtomb, wcsrtombs.
37801         (Support for systems lacking POSIX:2008): Add accept, bind, close,
37802         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
37803         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
37804         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
37805
37806 2008-12-21  Bruno Haible  <bruno@clisp.org>
37807
37808         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
37809
37810 2008-12-21  Bruno Haible  <bruno@clisp.org>
37811
37812         * modules/wcsnrtombs-tests: New file.
37813         * tests/test-wcsnrtombs1.sh: New file.
37814         * tests/test-wcsnrtombs2.sh: New file.
37815         * tests/test-wcsnrtombs3.sh: New file.
37816         * tests/test-wcsnrtombs4.sh: New file.
37817         * tests/test-wcsnrtombs.c: New file.
37818
37819         New module 'wcsnrtombs'.
37820         * lib/wchar.in.h (wcsnrtombs): New declaration.
37821         * lib/wcsnrtombs.c: New file.
37822         * lib/wcsrtombs-state.c: New file.
37823         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
37824         (internal_state): Remove variable.
37825         * m4/wcsnrtombs.m4: New file.
37826         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
37827         compilation units.
37828         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
37829         HAVE_WCSNRTOMBS.
37830         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
37831         HAVE_WCSNRTOMBS.
37832         * modules/wcsnrtombs: New file.
37833         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
37834         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
37835
37836 2008-12-21  Bruno Haible  <bruno@clisp.org>
37837
37838         * modules/wcsrtombs-tests: New file.
37839         * tests/test-wcsrtombs1.sh: New file.
37840         * tests/test-wcsrtombs2.sh: New file.
37841         * tests/test-wcsrtombs3.sh: New file.
37842         * tests/test-wcsrtombs4.sh: New file.
37843         * tests/test-wcsrtombs.c: New file.
37844
37845         New module 'wcsrtombs'.
37846         * lib/wchar.in.h (wcsrtombs): New declaration.
37847         * lib/wcsrtombs.c: New file.
37848         * m4/wcsrtombs.m4: New file.
37849         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
37850         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
37851         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
37852         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
37853         * modules/wcsrtombs: New file.
37854         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
37855         bugs.
37856
37857 2008-12-21  Bruno Haible  <bruno@clisp.org>
37858
37859         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
37860         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
37861         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
37862         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
37863         if not correct.
37864         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
37865         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
37866         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
37867         m4/locale-zh.m4, m4/codeset.m4.
37868         * doc/posix-functions/wcrtomb.texi: Document the bug.
37869
37870 2008-12-21  Bruno Haible  <bruno@clisp.org>
37871
37872         Work around a btowc() bug on IRIX 6.5.
37873         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
37874         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
37875         REPLACE_WTOBC if not.
37876         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
37877         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
37878         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
37879
37880 2008-12-21  Bruno Haible  <bruno@clisp.org>
37881
37882         * modules/wcrtomb-tests: New file.
37883         * tests/test-wcrtomb.sh: New file.
37884         * tests/test-wcrtomb.c: New file.
37885
37886         New module 'wcrtomb'.
37887         * lib/wchar.in.h (wcrtomb): New declaration.
37888         * lib/wcrtomb.c: New file.
37889         * m4/wcrtomb.m4: New file.
37890         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
37891         HAVE_WCRTOMB.
37892         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
37893         HAVE_WCRTOMB.
37894         * modules/wcrtomb: New file.
37895         * doc/posix-functions/wcrtomb.texi: Mention the new module.
37896
37897 2008-12-21  Bruno Haible  <bruno@clisp.org>
37898
37899         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
37900         * modules/mbsrtowcs (Files): Likewise.
37901         * modules/wctob (Files): Likewise.
37902         * modules/c-strcase-tests (Files): Likewise.
37903         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
37904         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
37905         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
37906         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
37907         * modules/vasnprintf-posix-tests (Files): Likewise.
37908
37909 2008-12-21  William Pursell  <bill.pursell@gmail.com>
37910
37911         gitlog-to-changelog: pass all command-line arguments to git-log
37912         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
37913         it is sometimes convenient to filter the commits in various ways.
37914         gitlog-to-changelog only allows --since to specify a start date,
37915         but git-log itself supports many other filtering mechanisms.
37916         At the moment, I want to filter by branch name.  Rather than
37917         adding a --branch option to gitlog-to-changelog, it seems more
37918         flexible to simply pass all options directly to git-log and let
37919         git do the work.  Notice that this effectively makes --since a
37920         redundant option for gitlog-to-changelog, but removing it would
37921         require current usage to change since calls would then require
37922         an additional '--'.
37923
37924 2008-12-21  Bruno Haible  <bruno@clisp.org>
37925
37926         * modules/mbsnrtowcs-tests: New file.
37927         * tests/test-mbsnrtowcs1.sh: New file.
37928         * tests/test-mbsnrtowcs2.sh: New file.
37929         * tests/test-mbsnrtowcs3.sh: New file.
37930         * tests/test-mbsnrtowcs4.sh: New file.
37931         * tests/test-mbsnrtowcs.c: New file.
37932
37933         New module 'mbsnrtowcs'.
37934         * lib/wchar.in.h (mbsnrtowcs): New declaration.
37935         * lib/mbsnrtowcs.c: New file.
37936         * lib/mbsrtowcs-state.c: New file.
37937         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
37938         (internal_state): Remove variable.
37939         * m4/mbsnrtowcs.m4: New file.
37940         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
37941         compilation units.
37942         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
37943         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
37944         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
37945         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
37946         * modules/mbsnrtowcs: New file.
37947         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
37948         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
37949         portability problem.
37950
37951 2008-12-21  Bruno Haible  <bruno@clisp.org>
37952
37953         Work around mbsrtowcs bug.
37954         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
37955         (gl_FUNC_MBSRTOWCS): Invoke it.
37956         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
37957         m4/locale-zh.m4.
37958         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
37959
37960 2008-12-21  Bruno Haible  <bruno@clisp.org>
37961
37962         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
37963
37964 2008-12-21  Bruno Haible  <bruno@clisp.org>
37965
37966         Update doc for AIX.
37967         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
37968         16-bit wchar_t type.
37969         * doc/posix-functions/btowc.texi: Likewise.
37970         * doc/posix-functions/fgetwc.texi: Likewise.
37971         * doc/posix-functions/fgetws.texi: Likewise.
37972         * doc/posix-functions/fputwc.texi: Likewise.
37973         * doc/posix-functions/fputws.texi: Likewise.
37974         * doc/posix-functions/fwide.texi: Likewise.
37975         * doc/posix-functions/fwprintf.texi: Likewise.
37976         * doc/posix-functions/fwscanf.texi: Likewise.
37977         * doc/posix-functions/getwchar.texi: Likewise.
37978         * doc/posix-functions/getwc.texi: Likewise.
37979         * doc/posix-functions/iswalnum.texi: Likewise.
37980         * doc/posix-functions/iswalpha.texi: Likewise.
37981         * doc/posix-functions/iswblank.texi: Likewise.
37982         * doc/posix-functions/iswcntrl.texi: Likewise.
37983         * doc/posix-functions/iswctype.texi: Likewise.
37984         * doc/posix-functions/iswdigit.texi: Likewise.
37985         * doc/posix-functions/iswgraph.texi: Likewise.
37986         * doc/posix-functions/iswlower.texi: Likewise.
37987         * doc/posix-functions/iswprint.texi: Likewise.
37988         * doc/posix-functions/iswpunct.texi: Likewise.
37989         * doc/posix-functions/iswspace.texi: Likewise.
37990         * doc/posix-functions/iswupper.texi: Likewise.
37991         * doc/posix-functions/iswxdigit.texi: Likewise.
37992         * doc/posix-functions/mbrtowc.texi: Likewise.
37993         * doc/posix-functions/mbsrtowcs.texi: Likewise.
37994         * doc/posix-functions/mbstowcs.texi: Likewise.
37995         * doc/posix-functions/mbtowc.texi: Likewise.
37996         * doc/posix-functions/putwchar.texi: Likewise.
37997         * doc/posix-functions/putwc.texi: Likewise.
37998         * doc/posix-functions/swprintf.texi: Likewise.
37999         * doc/posix-functions/tolower.texi: Likewise.
38000         * doc/posix-functions/toupper.texi: Likewise.
38001         * doc/posix-functions/towctrans.texi: Likewise.
38002         * doc/posix-functions/ungetwc.texi: Likewise.
38003         * doc/posix-functions/vswprintf.texi: Likewise.
38004         * doc/posix-functions/wcrtomb.texi: Likewise.
38005         * doc/posix-functions/wcscat.texi: Likewise.
38006         * doc/posix-functions/wcschr.texi: Likewise.
38007         * doc/posix-functions/wcscmp.texi: Likewise.
38008         * doc/posix-functions/wcscoll.texi: Likewise.
38009         * doc/posix-functions/wcscpy.texi: Likewise.
38010         * doc/posix-functions/wcscspn.texi: Likewise.
38011         * doc/posix-functions/wcsftime.texi: Likewise.
38012         * doc/posix-functions/wcslen.texi: Likewise.
38013         * doc/posix-functions/wcsncat.texi: Likewise.
38014         * doc/posix-functions/wcsncmp.texi: Likewise.
38015         * doc/posix-functions/wcsncpy.texi: Likewise.
38016         * doc/posix-functions/wcspbrk.texi: Likewise.
38017         * doc/posix-functions/wcsrchr.texi: Likewise.
38018         * doc/posix-functions/wcsrtombs.texi: Likewise.
38019         * doc/posix-functions/wcsspn.texi: Likewise.
38020         * doc/posix-functions/wcsstr.texi: Likewise.
38021         * doc/posix-functions/wcstod.texi: Likewise.
38022         * doc/posix-functions/wcstof.texi: Likewise.
38023         * doc/posix-functions/wcstoimax.texi: Likewise.
38024         * doc/posix-functions/wcstok.texi: Likewise.
38025         * doc/posix-functions/wcstold.texi: Likewise.
38026         * doc/posix-functions/wcstoll.texi: Likewise.
38027         * doc/posix-functions/wcstol.texi: Likewise.
38028         * doc/posix-functions/wcstombs.texi: Likewise.
38029         * doc/posix-functions/wcstoull.texi: Likewise.
38030         * doc/posix-functions/wcstoul.texi: Likewise.
38031         * doc/posix-functions/wcstoumax.texi: Likewise.
38032         * doc/posix-functions/wcswidth.texi: Likewise.
38033         * doc/posix-functions/wcsxfrm.texi: Likewise.
38034         * doc/posix-functions/wctob.texi: Likewise.
38035         * doc/posix-functions/wctomb.texi: Likewise.
38036         * doc/posix-functions/wctrans.texi: Likewise.
38037         * doc/posix-functions/wctype.texi: Likewise.
38038         * doc/posix-functions/wcwidth.texi: Likewise.
38039         * doc/posix-functions/wmemchr.texi: Likewise.
38040         * doc/posix-functions/wmemcmp.texi: Likewise.
38041         * doc/posix-functions/wmemcpy.texi: Likewise.
38042         * doc/posix-functions/wmemmove.texi: Likewise.
38043         * doc/posix-functions/wmemset.texi: Likewise.
38044         * doc/posix-functions/wprintf.texi: Likewise.
38045         * doc/posix-functions/wscanf.texi: Likewise.
38046
38047 2008-12-21  Bruno Haible  <bruno@clisp.org>
38048
38049         Update doc for HP-UX 11.11.
38050         * doc/posix-functions/btowc.texi: Clarify that the function is missing
38051         in HP-UX version 11.00, not in all versions of HP-UX 11.
38052         * doc/posix-functions/fwide.texi: Likewise.
38053         * doc/posix-functions/fwprintf.texi: Likewise.
38054         * doc/posix-functions/fwscanf.texi: Likewise.
38055         * doc/posix-functions/inet_ntop.texi: Likewise.
38056         * doc/posix-functions/inet_pton.texi: Likewise.
38057         * doc/posix-functions/mbrlen.texi: Likewise.
38058         * doc/posix-functions/mbrtowc.texi: Likewise.
38059         * doc/posix-functions/mbsinit.texi: Likewise.
38060         * doc/posix-functions/mbsrtowcs.texi: Likewise.
38061         * doc/posix-functions/swprintf.texi: Likewise.
38062         * doc/posix-functions/swscanf.texi: Likewise.
38063         * doc/posix-functions/towctrans.texi: Likewise.
38064         * doc/posix-functions/vfwprintf.texi: Likewise.
38065         * doc/posix-functions/vswprintf.texi: Likewise.
38066         * doc/posix-functions/vwprintf.texi: Likewise.
38067         * doc/posix-functions/wcrtomb.texi: Likewise.
38068         * doc/posix-functions/wcsrtombs.texi: Likewise.
38069         * doc/posix-functions/wcsstr.texi: Likewise.
38070         * doc/posix-functions/wctob.texi: Likewise.
38071         * doc/posix-functions/wctrans.texi: Likewise.
38072         * doc/posix-functions/wmemchr.texi: Likewise.
38073         * doc/posix-functions/wmemcmp.texi: Likewise.
38074         * doc/posix-functions/wmemcpy.texi: Likewise.
38075         * doc/posix-functions/wmemmove.texi: Likewise.
38076         * doc/posix-functions/wmemset.texi: Likewise.
38077         * doc/posix-functions/wprintf.texi: Likewise.
38078         * doc/posix-functions/wscanf.texi: Likewise.
38079
38080 2008-12-21  Bruno Haible  <bruno@clisp.org>
38081
38082         Work around a portability problem.
38083         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
38084         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
38085
38086 2008-12-20  Bruno Haible  <bruno@clisp.org>
38087
38088         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
38089         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
38090         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
38091         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
38092         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
38093
38094         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
38095         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
38096         set.
38097         (GNULIB_defined_mbstate_t): New macro.
38098         (mbsinit): Redefine if REPLACE_MBSINIT is set.
38099         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
38100         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
38101         reuses the system's mbrtowc function but works around the bugs.
38102         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
38103         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
38104         macros.
38105         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
38106         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
38107         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
38108         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
38109         REPLACE_MBSINIT if mbsinit needs to be overridden.
38110         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
38111         REPLACE_MBSINIT, REPLACE_MBRTOWC.
38112         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
38113         REPLACE_MBSINIT, REPLACE_MBRTOWC.
38114         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
38115         m4/locale-zh.m4.
38116         (Depends): Add mbsinit.
38117         * modules/mbsinit (Depends): Add mbrtowc.
38118         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
38119
38120 2008-12-20  Bruno Haible  <bruno@clisp.org>
38121
38122         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
38123         so that there are no conversion errors on AIX.
38124         * tests/test-mbsrtowcs.c (main): LIkewise.
38125
38126 2008-12-20  Bruno Haible  <bruno@clisp.org>
38127
38128         Work around wctob bug on Solaris <= 9.
38129         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
38130         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
38131         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
38132         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
38133         * modules/wctob (Files): Add m4/locale-fr.m4.
38134         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
38135
38136 2008-12-20  Bruno Haible  <bruno@clisp.org>
38137
38138         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
38139         /dev/null.
38140         * tests/test-select-in.sh: Likewise.
38141         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
38142
38143 2008-12-20  Bruno Haible  <bruno@clisp.org>
38144
38145         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
38146         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
38147         Cygwin 1.5.x.
38148
38149 2008-12-20  Bruno Haible  <bruno@clisp.org>
38150
38151         Ensure mbstate_t is defined on HP-UX 11.11.
38152         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
38153         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
38154         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
38155         AC_USE_SYSTEM_EXTENSIONS.
38156         * modules/fnmatch (Depends-on): Add extensions.
38157         * modules/mbrlen (Depends-on): Likewise.
38158         * modules/mbrtowc (Depends-on): Likewise.
38159         * modules/mbsinit (Depends-on): Likewise.
38160         * modules/mbsrtowcs (Depends-on): Likewise.
38161         * modules/mbswidth (Depends-on): Likewise.
38162         * modules/quotearg (Depends-on): Likewise.
38163         * modules/strftime (Depends-on): Likewise.
38164
38165 2008-12-20  Bruno Haible  <bruno@clisp.org>
38166
38167         Ensure wctob is declared on IRIX 6.5.
38168         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
38169         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
38170         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
38171         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
38172         of HAVE_WCTOB.
38173         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
38174         HAVE_WCTOB.
38175         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
38176
38177 2008-12-19  Bruno Haible  <bruno@clisp.org>
38178
38179         * modules/mbsrtowcs-tests: New file.
38180         * tests/test-mbsrtowcs1.sh: New file.
38181         * tests/test-mbsrtowcs2.sh: New file.
38182         * tests/test-mbsrtowcs3.sh: New file.
38183         * tests/test-mbsrtowcs4.sh: New file.
38184         * tests/test-mbsrtowcs.c: New file.
38185
38186         New module 'mbsrtowcs'.
38187         * lib/wchar.in.h (mbsrtowcs): New declaration.
38188         * lib/mbsrtowcs.c: New file.
38189         * m4/mbsrtowcs.m4: New file.
38190         * modules/mbsrtowcs: New file.
38191         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
38192         HAVE_MBSRTOWCS.
38193         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
38194         HAVE_MBSRTOWCS.
38195         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
38196
38197 2008-12-19  Bruno Haible  <bruno@clisp.org>
38198
38199         New module 'mbrlen'.
38200         * lib/wchar.in.h (mbrlen): New declaration.
38201         * lib/mbrlen.c: New file.
38202         * m4/mbrlen.m4: New file.
38203         * modules/mbrlen: New file.
38204         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
38205         HAVE_MBRLEN.
38206         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
38207         HAVE_MBRLEN.
38208         * doc/posix-functions/mbrlen.texi: Document the new module.
38209
38210 2008-12-19  Bruno Haible  <bruno@clisp.org>
38211
38212         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
38213         * modules/mbrtowc (Depends-on): Add verify.
38214         Suggested by Paul Eggert.
38215
38216 2008-12-18  Bruno Haible  <bruno@clisp.org>
38217
38218         * modules/mbsinit-tests: New file.
38219         * tests/test-mbsinit.sh: New file.
38220         * tests/test-mbsinit.c: New file.
38221
38222 2008-12-18  Bruno Haible  <bruno@clisp.org>
38223
38224         * modules/mbrtowc-tests: New file.
38225         * tests/test-mbrtowc1.sh: New file.
38226         * tests/test-mbrtowc2.sh: New file.
38227         * tests/test-mbrtowc3.sh: New file.
38228         * tests/test-mbrtowc4.sh: New file.
38229         * tests/test-mbrtowc.c: New file.
38230
38231         New module 'mbrtowc'.
38232         * lib/wchar.in.h (mbstate_t): Override when the system does not have
38233         mbsinit and mbrtowc.
38234         (mbrtowc): New declaration.
38235         * lib/mbrtowc.c: New file.
38236         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
38237         * modules/mbrtowc: New file.
38238         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
38239         HAVE_MBRTOWC.
38240         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
38241         HAVE_MBRTOWC.
38242         * doc/posix-functions/mbrtowc.texi: Document the new module.
38243
38244 2008-12-18  Bruno Haible  <bruno@clisp.org>
38245
38246         New module 'wctob'.
38247         * lib/wchar.in.h (wctob): New declaration.
38248         * lib/wctob.c: New file.
38249         * m4/wctob.m4: New file.
38250         * modules/wctob: New file.
38251         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
38252         HAVE_WCTOB.
38253         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
38254         * doc/posix-functions/wctob.texi: Document the new module.
38255
38256 2008-12-18  Bruno Haible  <bruno@clisp.org>
38257
38258         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
38259         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
38260
38261 2008-12-18  Simon Josefsson  <simon@josefsson.org>
38262
38263         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
38264         G. Christensen" <tgc@jupiterrise.com>.
38265
38266         * lib/flock.c: Need to include errno.h.  Reported by "Tom
38267         G. Christensen" <tgc@jupiterrise.com>.
38268
38269         * lib/flock.c: Need to include string.h.  Reported by "Tom
38270         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
38271         <ebb9@byu.net>.
38272
38273 2008-12-18  Bruno Haible  <bruno@clisp.org>
38274
38275         * m4/locale-ja.m4: New file, from GNU gettext.
38276
38277 2008-12-17  Bruno Haible  <bruno@clisp.org>
38278
38279         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
38280         Suggested by Eric Blake.
38281
38282 2008-12-17  Bruno Haible  <bruno@clisp.org>
38283
38284         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
38285
38286 2008-12-17  Bruno Haible  <bruno@clisp.org>
38287
38288         * lib/mbsinit.c: Include verify.h. Verify an assumption.
38289         * modules/mbsinit (Depends-on): Add verify.
38290         Suggested by Paul Eggert.
38291
38292 2008-12-17  Bruno Haible  <bruno@clisp.org>
38293
38294         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
38295         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
38296         gl_FUNC_MBRTOWC.
38297         * m4/mbiter.m4 (gl_MBITER): LIkewise.
38298         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
38299         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
38300         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
38301         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
38302         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
38303         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
38304         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
38305         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
38306         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
38307         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
38308         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
38309         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
38310         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
38311         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
38312         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
38313         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
38314         * modules/trim (configure.ac): Likewise.
38315
38316 2008-12-17  Bruno Haible  <bruno@clisp.org>
38317
38318         * modules/btowc-tests: New file.
38319         * tests/test-btowc1.sh: New file.
38320         * tests/test-btowc2.sh: New file.
38321         * tests/test-btowc.c: New file.
38322
38323         New module 'btowc'.
38324         * lib/wchar.in.h (btowc): New declaration.
38325         * lib/btowc.c: New file.
38326         * m4/btowc.m4: New file.
38327         * modules/btowc: New file.
38328         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
38329         HAVE_BTOWC.
38330         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
38331         * doc/posix-functions/btowc.texi: Document the new module.
38332
38333 2008-12-17  Bruno Haible  <bruno@clisp.org>
38334
38335         New module 'mbsinit'.
38336         * lib/wchar.in.h (mbsinit): New declaration.
38337         * lib/mbsinit.c: New file.
38338         * m4/mbsinit.m4: New file.
38339         * modules/mbsinit: New file.
38340         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
38341         HAVE_MBSINIT.
38342         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
38343         HAVE_MBSINIT.
38344         * doc/posix-functions/mbsinit.texi: Document the new module.
38345
38346 2008-12-16  Bruno Haible  <bruno@clisp.org>
38347
38348         * lib/unistd.in.h: Add comment.
38349         * tests/test-environ.c: Don't include <stdlib.h>.
38350
38351 2008-12-16  Bruno Haible  <bruno@clisp.org>
38352
38353         * lib/parse-duration.h (parse_duration): Document return value
38354         convention.
38355         * lib/parse-duration.c: Include specification header first. Add
38356         comments.
38357         (_): Remove macro.
38358         (parse_year_month_day, parse_hour_minute_second): Move side effects
38359         outside of strchr call.
38360         (parse_non_iso8601): Move side effects outside of isspace call.
38361         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
38362         call.
38363
38364 2008-12-16  Bruno Haible  <bruno@clisp.org>
38365
38366         * tests/test-parse-duration.sh: Produce no output when the test
38367         succeeds.
38368
38369 2008-12-16  Bruno Haible  <bruno@clisp.org>
38370
38371         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
38372         expressions.
38373
38374 2008-12-15  Bruno Haible  <bruno@clisp.org>
38375
38376         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
38377         * doc/glibc-functions/flistxattr.texi: Likewise.
38378         * doc/glibc-functions/fopencookie.texi: Likewise.
38379         * doc/glibc-functions/fremovexattr.texi: Likewise.
38380         * doc/glibc-functions/fsetxattr.texi: Likewise.
38381         * doc/glibc-functions/getxattr.texi: Likewise.
38382         * doc/glibc-functions/lgetxattr.texi: Likewise.
38383         * doc/glibc-functions/listxattr.texi: Likewise.
38384         * doc/glibc-functions/llistxattr.texi: Likewise.
38385         * doc/glibc-functions/lremovexattr.texi: Likewise.
38386         * doc/glibc-functions/lsetxattr.texi: Likewise.
38387         * doc/glibc-functions/removexattr.texi: Likewise.
38388         * doc/glibc-functions/setxattr.texi: Likewise.
38389         * doc/posix-functions/open_memstream.texi: Likewise.
38390
38391 2008-12-15  Eric Blake  <ebb9@byu.net>
38392
38393         Update doc for cygwin 1.7.
38394         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
38395         functions.
38396         * doc/posix-functions/fchmodat.texi: Likewise.
38397         * doc/posix-functions/fchownat.texi: Likewise.
38398         * doc/posix-functions/fdopendir.texi: Likewise.
38399         * doc/posix-functions/fmemopen.texi: Likewise.
38400         * doc/posix-functions/freeaddrinfo.texi: Likewise.
38401         * doc/posix-functions/fstatat.texi: Likewise.
38402         * doc/posix-functions/futimens.texi: Likewise.
38403         * doc/posix-functions/gai_strerror.texi: Likewise.
38404         * doc/posix-functions/getaddrinfo.texi: Likewise.
38405         * doc/posix-functions/getnameinfo.texi: Likewise.
38406         * doc/posix-functions/if_freenameindex.texi: Likewise.
38407         * doc/posix-functions/if_indextoname.texi: Likewise.
38408         * doc/posix-functions/if_nameindex.texi: Likewise.
38409         * doc/posix-functions/if_nametoindex.texi: Likewise.
38410         * doc/posix-functions/insque.texi: Likewise.
38411         * doc/posix-functions/linkat.texi: Likewise.
38412         * doc/posix-functions/llrint.texi: Likewise.
38413         * doc/posix-functions/llrintf.texi: Likewise.
38414         * doc/posix-functions/llrintl.texi: Likewise.
38415         * doc/posix-functions/lockf.texi: Likewise.
38416         * doc/posix-functions/lrintl.texi: Likewise.
38417         * doc/posix-functions/mkdirat.texi: Likewise.
38418         * doc/posix-functions/mkfifoat.texi: Likewise.
38419         * doc/posix-functions/mknodat.texi: Likewise.
38420         * doc/posix-functions/mq_close.texi: Likewise.
38421         * doc/posix-functions/mq_getattr.texi: Likewise.
38422         * doc/posix-functions/mq_notify.texi: Likewise.
38423         * doc/posix-functions/mq_open.texi: Likewise.
38424         * doc/posix-functions/mq_receive.texi: Likewise.
38425         * doc/posix-functions/mq_send.texi: Likewise.
38426         * doc/posix-functions/mq_setattr.texi: Likewise.
38427         * doc/posix-functions/mq_timedreceive.texi: Likewise.
38428         * doc/posix-functions/mq_timedsend.texi: Likewise.
38429         * doc/posix-functions/mq_unlink.texi: Likewise.
38430         * doc/posix-functions/open_memstream.texi: Likewise.
38431         * doc/posix-functions/openat.texi: Likewise.
38432         * doc/posix-functions/posix_fadvise.texi: Likewise.
38433         * doc/posix-functions/posix_fallocate.texi: Likewise.
38434         * doc/posix-functions/posix_madvise.texi: Likewise.
38435         * doc/posix-functions/posix_memalign.texi: Likewise.
38436         * doc/posix-functions/posix_openpt.texi: Likewise.
38437         * doc/posix-functions/readlinkat.texi: Likewise.
38438         * doc/posix-functions/remque.texi: Likewise.
38439         * doc/posix-functions/renameat.texi: Likewise.
38440         * doc/posix-functions/rintl.texi: Likewise.
38441         * doc/posix-functions/sem_unlink.texi: Likewise.
38442         * doc/posix-functions/shm_open.texi: Likewise.
38443         * doc/posix-functions/shm_unlink.texi: Likewise.
38444         * doc/posix-functions/signgam.texi: Likewise.
38445         * doc/posix-functions/sigset.texi: Likewise.
38446         * doc/posix-functions/stpcpy.texi: Likewise.
38447         * doc/posix-functions/stpncpy.texi: Likewise.
38448         * doc/posix-functions/strerror.texi: Likewise.
38449         * doc/posix-functions/strtod.texi: Likewise.
38450         * doc/posix-functions/symlinkat.texi: Likewise.
38451         * doc/posix-functions/unlinkat.texi: Likewise.
38452         * doc/posix-functions/utimensat.texi: Likewise.
38453         * doc/glibc-functions/bindresvport.texi: Likewise.
38454         * doc/glibc-functions/dn_expand.texi: Likewise.
38455         * doc/glibc-functions/exp10.texi: Likewise.
38456         * doc/glibc-functions/exp10f.texi: Likewise.
38457         * doc/glibc-functions/fgetxattr.texi: Likewise.
38458         * doc/glibc-functions/flistxattr.texi: Likewise.
38459         * doc/glibc-functions/fopencookie.texi: Likewise.
38460         * doc/glibc-functions/freeifaddrs.texi: Likewise.
38461         * doc/glibc-functions/fremovexattr.texi: Likewise.
38462         * doc/glibc-functions/fsetxattr.texi: Likewise.
38463         * doc/glibc-functions/getifaddrs.texi: Likewise.
38464         * doc/glibc-functions/getxattr.texi: Likewise.
38465         * doc/glibc-functions/lgetxattr.texi: Likewise.
38466         * doc/glibc-functions/listxattr.texi: Likewise.
38467         * doc/glibc-functions/llistxattr.texi: Likewise.
38468         * doc/glibc-functions/lremovexattr.texi: Likewise.
38469         * doc/glibc-functions/lsetxattr.texi: Likewise.
38470         * doc/glibc-functions/pow10.texi: Likewise.
38471         * doc/glibc-functions/pow10f.texi: Likewise.
38472         * doc/glibc-functions/rcmd_af.texi: Likewise.
38473         * doc/glibc-functions/removexattr.texi: Likewise.
38474         * doc/glibc-functions/res_init.texi: Likewise.
38475         * doc/glibc-functions/res_mkquery.texi: Likewise.
38476         * doc/glibc-functions/res_query.texi: Likewise.
38477         * doc/glibc-functions/res_querydomain.texi: Likewise.
38478         * doc/glibc-functions/res_send.texi: Likewise.
38479         * doc/glibc-functions/rresvport_af.texi: Likewise.
38480         * doc/glibc-functions/setxattr.texi: Likewise.
38481         * doc/glibc-functions/strcasestr.texi: Likewise.
38482
38483 2008-12-15  Bruno Haible  <bruno@clisp.org>
38484
38485         Fix compilation error on OSF/1 4.0.
38486         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
38487         <sys/time.h>, simply delegate to the system header.
38488         Reported by Daniel Richard G. <oss@teragram.com>.
38489
38490 2008-12-15  Bruno Haible  <bruno@clisp.org>
38491
38492         * doc/posix-functions/openat.texi: Mention the 'openat' module.
38493         * doc/posix-functions/fchmodat.texi: Likewise.
38494         * doc/posix-functions/fchownat.texi: Likewise.
38495         * doc/posix-functions/fdopendir.texi: Likewise.
38496         * doc/posix-functions/fstatat.texi: Likewise.
38497         * doc/posix-functions/mkdirat.texi: Likewise.
38498         * doc/posix-functions/unlinkat.texi: Likewise.
38499
38500 2008-12-14  Bruno Haible  <bruno@clisp.org>
38501
38502         Update doc for POSIX:2008.
38503         * doc/posix-functions/faccessat.texi: New file.
38504         * doc/posix-functions/fchmodat.texi: New file.
38505         * doc/posix-functions/fchownat.texi: New file.
38506         * doc/posix-functions/fdopendir.texi: New file.
38507         * doc/posix-functions/fstatat.texi: New file.
38508         * doc/posix-functions/futimens.texi: New file.
38509         * doc/posix-functions/linkat.texi: New file.
38510         * doc/posix-functions/mkdirat.texi: New file.
38511         * doc/posix-functions/mkfifoat.texi: New file.
38512         * doc/posix-functions/mknodat.texi: New file.
38513         * doc/posix-functions/open_wmemstream.texi: New file.
38514         * doc/posix-functions/openat.texi: New file.
38515         * doc/posix-functions/psiginfo.texi: New file.
38516         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
38517         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
38518         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
38519         * doc/posix-functions/readlinkat.texi: New file.
38520         * doc/posix-functions/renameat.texi: New file.
38521         * doc/posix-functions/strerror_l.texi: New file.
38522         * doc/posix-functions/symlinkat.texi: New file.
38523         * doc/posix-functions/unlinkat.texi: New file.
38524         * doc/posix-functions/utimensat.texi: New file.
38525         * doc/gnulib.texi (Function Substitutes): Add these subsections.
38526
38527 2008-12-14  Bruno Haible  <bruno@clisp.org>
38528
38529         Update doc for POSIX:2008.
38530         * doc/posix-functions/alphasort.texi: Renamed from
38531         doc/glibc-functions/alphasort.texi.
38532         * doc/posix-functions/dirfd.texi: Renamed from
38533         doc/glibc-functions/dirfd.texi.
38534         * doc/posix-functions/dprintf.texi: Renamed from
38535         doc/glibc-functions/dprintf.texi.
38536         * doc/posix-functions/duplocale.texi: Renamed from
38537         doc/glibc-functions/duplocale.texi.
38538         * doc/posix-functions/fexecve.texi: Renamed from
38539         doc/glibc-functions/fexecve.texi.
38540         * doc/posix-functions/fmemopen.texi: Renamed from
38541         doc/glibc-functions/fmemopen.texi.
38542         * doc/posix-functions/freelocale.texi: Renamed from
38543         doc/glibc-functions/freelocale.texi.
38544         * doc/posix-functions/getdate_err.texi: Renamed from
38545         doc/glibc-functions/getdate_err.texi.
38546         * doc/posix-functions/isalnum_l.texi: Renamed from
38547         doc/glibc-functions/isalnum_l.texi.
38548         * doc/posix-functions/isalpha_l.texi: Renamed from
38549         doc/glibc-functions/isalpha_l.texi.
38550         * doc/posix-functions/isblank_l.texi: Renamed from
38551         doc/glibc-functions/isblank_l.texi.
38552         * doc/posix-functions/iscntrl_l.texi: Renamed from
38553         doc/glibc-functions/iscntrl_l.texi.
38554         * doc/posix-functions/isdigit_l.texi: Renamed from
38555         doc/glibc-functions/isdigit_l.texi.
38556         * doc/posix-functions/isgraph_l.texi: Renamed from
38557         doc/glibc-functions/isgraph_l.texi.
38558         * doc/posix-functions/islower_l.texi: Renamed from
38559         doc/glibc-functions/islower_l.texi.
38560         * doc/posix-functions/isprint_l.texi: Renamed from
38561         doc/glibc-functions/isprint_l.texi.
38562         * doc/posix-functions/ispunct_l.texi: Renamed from
38563         doc/glibc-functions/ispunct_l.texi.
38564         * doc/posix-functions/isspace_l.texi: Renamed from
38565         doc/glibc-functions/isspace_l.texi.
38566         * doc/posix-functions/isupper_l.texi: Renamed from
38567         doc/glibc-functions/isupper_l.texi.
38568         * doc/posix-functions/iswalnum_l.texi: Renamed from
38569         doc/glibc-functions/iswalnum_l.texi.
38570         * doc/posix-functions/iswalpha_l.texi: Renamed from
38571         doc/glibc-functions/iswalpha_l.texi.
38572         * doc/posix-functions/iswblank_l.texi: Renamed from
38573         doc/glibc-functions/iswblank_l.texi.
38574         * doc/posix-functions/iswcntrl_l.texi: Renamed from
38575         doc/glibc-functions/iswcntrl_l.texi.
38576         * doc/posix-functions/iswctype_l.texi: Renamed from
38577         doc/glibc-functions/iswctype_l.texi.
38578         * doc/posix-functions/iswdigit_l.texi: Renamed from
38579         doc/glibc-functions/iswdigit_l.texi.
38580         * doc/posix-functions/iswgraph_l.texi: Renamed from
38581         doc/glibc-functions/iswgraph_l.texi.
38582         * doc/posix-functions/iswlower_l.texi: Renamed from
38583         doc/glibc-functions/iswlower_l.texi.
38584         * doc/posix-functions/iswprint_l.texi: Renamed from
38585         doc/glibc-functions/iswprint_l.texi.
38586         * doc/posix-functions/iswpunct_l.texi: Renamed from
38587         doc/glibc-functions/iswpunct_l.texi.
38588         * doc/posix-functions/iswspace_l.texi: Renamed from
38589         doc/glibc-functions/iswspace_l.texi.
38590         * doc/posix-functions/iswupper_l.texi: Renamed from
38591         doc/glibc-functions/iswupper_l.texi.
38592         * doc/posix-functions/iswxdigit_l.texi: Renamed from
38593         doc/glibc-functions/iswxdigit_l.texi.
38594         * doc/posix-functions/isxdigit_l.texi: Renamed from
38595         doc/glibc-functions/isxdigit_l.texi.
38596         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
38597         doc/glibc-functions/mbsnrtowcs.texi.
38598         * doc/posix-functions/mkdtemp.texi: Renamed from
38599         doc/glibc-functions/mkdtemp.texi.
38600         * doc/posix-functions/newlocale.texi: Renamed from
38601         doc/glibc-functions/newlocale.texi.
38602         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
38603         doc/glibc-functions/nl_langinfo_l.texi.
38604         * doc/posix-functions/open_memstream.texi: Renamed from
38605         doc/glibc-functions/open_memstream.texi.
38606         * doc/posix-functions/opterr.texi: Renamed from
38607         doc/glibc-functions/opterr.texi.
38608         * doc/posix-functions/optind.texi: Renamed from
38609         doc/glibc-functions/optind.texi.
38610         * doc/posix-functions/optopt.texi: Renamed from
38611         doc/glibc-functions/optopt.texi.
38612         * doc/posix-functions/psignal.texi: Renamed from
38613         doc/glibc-functions/psignal.texi.
38614         * doc/posix-functions/scandir.texi: Renamed from
38615         doc/glibc-functions/scandir.texi.
38616         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
38617         doc/glibc-functions/sched_get_priority_min.texi.
38618         * doc/posix-functions/signgam.texi: Renamed from
38619         doc/glibc-functions/signgam.texi.
38620         * doc/posix-functions/stpcpy.texi: Renamed from
38621         doc/glibc-functions/stpcpy.texi.
38622         * doc/posix-functions/stpncpy.texi: Renamed from
38623         doc/glibc-functions/stpncpy.texi.
38624         * doc/posix-functions/strcasecmp_l.texi: Renamed from
38625         doc/glibc-functions/strcasecmp_l.texi.
38626         * doc/posix-functions/strcoll_l.texi: Renamed from
38627         doc/glibc-functions/strcoll_l.texi.
38628         * doc/posix-functions/strfmon_l.texi: Renamed from
38629         doc/glibc-functions/strfmon_l.texi.
38630         * doc/posix-functions/strftime_l.texi: Renamed from
38631         doc/glibc-functions/strftime_l.texi.
38632         * doc/posix-functions/strncasecmp_l.texi: Renamed from
38633         doc/glibc-functions/strncasecmp_l.texi.
38634         * doc/posix-functions/strndup.texi: Renamed from
38635         doc/glibc-functions/strndup.texi.
38636         * doc/posix-functions/strnlen.texi: Renamed from
38637         doc/glibc-functions/strnlen.texi.
38638         * doc/posix-functions/strsignal.texi: Renamed from
38639         doc/glibc-functions/strsignal.texi.
38640         * doc/posix-functions/strxfrm_l.texi: Renamed from
38641         doc/glibc-functions/strxfrm_l.texi.
38642         * doc/posix-functions/timer_gettime.texi: Renamed from
38643         doc/glibc-functions/timer_gettime.texi.
38644         * doc/posix-functions/tolower_l.texi: Renamed from
38645         doc/glibc-functions/tolower_l.texi.
38646         * doc/posix-functions/toupper_l.texi: Renamed from
38647         doc/glibc-functions/toupper_l.texi.
38648         * doc/posix-functions/towctrans_l.texi: Renamed from
38649         doc/glibc-functions/towctrans_l.texi.
38650         * doc/posix-functions/towlower_l.texi: Renamed from
38651         doc/glibc-functions/towlower_l.texi.
38652         * doc/posix-functions/towupper_l.texi: Renamed from
38653         doc/glibc-functions/towupper_l.texi.
38654         * doc/posix-functions/uselocale.texi: Renamed from
38655         doc/glibc-functions/uselocale.texi.
38656         * doc/posix-functions/vdprintf.texi: Renamed from
38657         doc/glibc-functions/vdprintf.texi.
38658         * doc/posix-functions/wcpcpy.texi:
38659         Renamed from doc/glibc-functions/wcpcpy.texi.
38660         * doc/posix-functions/wcpncpy.texi: Renamed from
38661         doc/glibc-functions/wcpncpy.texi.
38662         * doc/posix-functions/wcscasecmp.texi: Renamed from
38663         doc/glibc-functions/wcscasecmp.texi.
38664         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
38665         doc/glibc-functions/wcscasecmp_l.texi.
38666         * doc/posix-functions/wcscoll_l.texi: Renamed from
38667         doc/glibc-functions/wcscoll_l.texi.
38668         * doc/posix-functions/wcsdup.texi: Renamed from
38669         doc/glibc-functions/wcsdup.texi.
38670         * doc/posix-functions/wcsncasecmp.texi: Renamed from
38671         doc/glibc-functions/wcsncasecmp.texi.
38672         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
38673         doc/glibc-functions/wcsncasecmp_l.texi.
38674         * doc/posix-functions/wcsnlen.texi: Renamed from
38675         doc/glibc-functions/wcsnlen.texi.
38676         * doc/posix-functions/wcsnrtombs.texi: Renamed from
38677         doc/glibc-functions/wcsnrtombs.texi.
38678         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
38679         doc/glibc-functions/wcsxfrm_l.texi.
38680         * doc/posix-functions/wctrans_l.texi: Renamed from
38681         doc/glibc-functions/wctrans_l.texi.
38682         * doc/posix-functions/wctype_l.texi: Renamed from
38683         doc/glibc-functions/wctype_l.texi.
38684         * doc/gnulib.texi (Function Substitutes): Add these subsections.
38685         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
38686         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
38687         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
38688         these subsections.
38689         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
38690         Remove sections.
38691
38692 2008-12-14  Bruno Haible  <bruno@clisp.org>
38693
38694         Update doc for POSIX:2008.
38695         * doc/posix-functions/*.texi: Update URL of POSIX specification.
38696
38697 2008-12-14  Bruno Haible  <bruno@clisp.org>
38698
38699         Update doc for POSIX:2008.
38700         * doc/pastposix-functions/bcmp.texi: Renamed from
38701         doc/posix-functions/bcmp.texi.
38702         * doc/pastposix-functions/bcopy.texi: Renamed from
38703         doc/posix-functions/bcopy.texi.
38704         * doc/pastposix-functions/bsd_signal.texi: Renamed from
38705         doc/posix-functions/bsd_signal.texi.
38706         * doc/pastposix-functions/bzero.texi: Renamed from
38707         doc/posix-functions/bzero.texi.
38708         * doc/pastposix-functions/ecvt.texi: Renamed from
38709         doc/posix-functions/ecvt.texi.
38710         * doc/pastposix-functions/fcvt.texi: Renamed from
38711         doc/posix-functions/fcvt.texi.
38712         * doc/pastposix-functions/ftime.texi: Renamed from
38713         doc/posix-functions/ftime.texi.
38714         * doc/pastposix-functions/gcvt.texi: Renamed from
38715         doc/posix-functions/gcvt.texi.
38716         * doc/pastposix-functions/getcontext.texi: Renamed from
38717         doc/posix-functions/getcontext.texi.
38718         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
38719         doc/posix-functions/gethostbyaddr.texi.
38720         * doc/pastposix-functions/gethostbyname.texi: Renamed from
38721         doc/posix-functions/gethostbyname.texi.
38722         * doc/pastposix-functions/getwd.texi: Renamed from
38723         doc/posix-functions/getwd.texi.
38724         * doc/pastposix-functions/h_errno.texi: Renamed from
38725         doc/posix-functions/h_errno.texi.
38726         * doc/pastposix-functions/index.texi: Renamed from
38727         doc/posix-functions/index.texi.
38728         * doc/pastposix-functions/makecontext.texi: Renamed from
38729         doc/posix-functions/makecontext.texi.
38730         * doc/pastposix-functions/mktemp.texi: Renamed from
38731         doc/posix-functions/mktemp.texi.
38732         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
38733         doc/posix-functions/pthread_attr_getstackaddr.texi.
38734         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
38735         doc/posix-functions/pthread_attr_setstackaddr.texi.
38736         * doc/pastposix-functions/rindex.texi: Renamed from
38737         doc/posix-functions/rindex.texi.
38738         * doc/pastposix-functions/scalb.texi: Renamed from
38739         doc/posix-functions/scalb.texi.
38740         * doc/pastposix-functions/setcontext.texi: Renamed from
38741         doc/posix-functions/setcontext.texi.
38742         * doc/pastposix-functions/swapcontext.texi: Renamed from
38743         doc/posix-functions/swapcontext.texi.
38744         * doc/pastposix-functions/ualarm.texi: Renamed from
38745         doc/posix-functions/ualarm.texi.
38746         * doc/pastposix-functions/usleep.texi: Renamed from
38747         doc/posix-functions/usleep.texi.
38748         * doc/pastposix-functions/vfork.texi: Renamed from
38749         doc/posix-functions/vfork.texi.
38750         * doc/pastposix-functions/wcswcs.texi: Renamed from
38751         doc/posix-functions/wcswcs.texi.
38752         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
38753         (Function Substitutes): Update.
38754
38755 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38756
38757         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
38758         m4/strerror.m4.
38759
38760 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38761             Bruno Haible  <bruno@clisp.org>
38762
38763         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
38764
38765 2008-12-13  Bruno Haible  <bruno@clisp.org>
38766
38767         * modules/strtoull (Depends-on): Remove unistd.
38768
38769 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38770
38771         * modules/strtoull (Depends-on): Add stdlib.
38772
38773 2008-12-11  Simon Josefsson  <simon@josefsson.org>
38774
38775         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
38776
38777 2008-12-10  Jim Meyering  <meyering@redhat.com>
38778
38779         gl_ASSERT: don't say assertions are disabled when they're not
38780         * m4/assert.m4 (gl_ASSERT): Do not make configure report
38781         "checking whether to enable assertions... no", when they are in
38782         fact enabled.  This is solely a bug in the output of configure.
38783         In spite of saying "no", NDEBUG was not defined in that case.
38784         Also, as noted by Eric Blake, leave assertions enabled upon
38785         --enable-assert=INVALID.
38786
38787 2008-12-10  Bruno Haible  <bruno@clisp.org>
38788
38789         Change MODULES.html to refer to POSIX:2008 where possible.
38790         * MODULES.html.sh (POSIX2008_URL): New variable.
38791         (posix_headers): Remove sys/timeb, ucontext.
38792         (posix2001_headers): New variable.
38793         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
38794         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
38795         index, makecontext, mktemp, pthread_attr_getstackaddr,
38796         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
38797         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
38798         (posix2001_functions): New variable.
38799         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
38800         otherwise.
38801
38802 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38803
38804         add missing include to parse-duration.c
38805         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
38806         * modules/parse-duration (Depends-on): Add xalloc.
38807
38808         fix sed script reading maint.mk
38809         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
38810         (syntax-check-rules): Use it.
38811
38812 2008-12-09  Bruno Haible  <bruno@clisp.org>
38813
38814         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
38815         MacOS X 10.4/PowerPC.
38816         Reported by Simon Josefsson.
38817
38818 2008-12-08  Jim Meyering  <meyering@redhat.com>
38819
38820         work around mingw's lack of some S_IF definitions
38821         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
38822         Reported by Simon Josefsson.
38823
38824 2008-12-08  Bruno Haible  <bruno@clisp.org>
38825
38826         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
38827         applied to variables. Needed on MacOS X 10.4/PowerPC.
38828         Reported by Simon Josefsson.
38829
38830 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
38831         and Eric Blake  <ebb9@byu.net>
38832
38833         assert: honor --enable-assert
38834         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
38835         order to honor --enable-assert, rather than treating it as a
38836         synonym for --disable-assert.
38837
38838 2008-12-08  Jim Meyering  <meyering@redhat.com>
38839
38840         * lib/posixtm.c: Remove now-useless declaration of mktime.
38841
38842         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
38843
38844 2008-12-07  Bruno Haible  <bruno@clisp.org>
38845
38846         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
38847         test_once): Mark functions as static.
38848         * tests/test-tls.c (test_tls): Likewise.
38849
38850 2008-12-07  Bruno Haible  <bruno@clisp.org>
38851
38852         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
38853         iconv_register_autodetect.
38854
38855 2008-12-07  Jim Meyering  <meyering@redhat.com>
38856
38857         posixtm.c: avoid a warning
38858         * lib/posixtm.c (posixtime): Don't initialize tm0.
38859         It's no longer needed to placate gcc4's -Wuninitialized,
38860         and the attempt to placate would elicit a new warning.
38861
38862         unicodeio.c: mark unused parameters
38863         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
38864         (fallback_failure_callback): Likewise.
38865
38866 2008-12-07  Bruno Haible  <bruno@clisp.org>
38867
38868         * gnulib-tool (func_create_testdir): When building the tests
38869         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
38870         Reported by Simon Josefsson.
38871
38872 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38873
38874         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
38875
38876 2008-12-06  Bruno Haible  <bruno@clisp.org>
38877
38878         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
38879         Suggested by Eric Blake.
38880
38881 2008-12-06  Bruno Haible  <bruno@clisp.org>
38882
38883         Fix a c-stack test failure on MacOS X.
38884         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
38885         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
38886         handler for SIGBUS as well.
38887         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
38888         install a signal handler for SIGBUS as well.
38889         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
38890
38891 2008-12-06  Bruno Haible  <bruno@clisp.org>
38892
38893         Advocacy documentation.
38894         * doc/gnulib-intro.texi (Benefits): New section.
38895         * doc/gnulib.texi: Update.
38896
38897 2008-12-06  Bruno Haible  <bruno@clisp.org>
38898
38899         Document the 'manywarnings' module.
38900         * doc/manywarnings.texi: New file.
38901         * doc/gnulib.texi: Include it.
38902
38903 2008-12-05  Eric Blake  <ebb9@byu.net>
38904
38905         tests: silence some gcc warnings
38906         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
38907         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
38908         type mismatches.
38909
38910 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38911             Bruno Haible  <bruno@clisp.org>
38912
38913         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
38914
38915 2008-11-29  Jim Meyering  <meyering@redhat.com>
38916
38917         unicodeio.c: mark unused parameters
38918         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
38919         (fallback_failure_callback): Likewise.
38920
38921         fts: fix a thinko
38922         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
38923         (set_stat_type): Return S_IF*-valued "type" directly.
38924         Prompted by James Youngman's spotting a related bug.
38925         Confirmed by further testing through find.
38926
38927         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
38928         * lib/fts.c (D_TYPE): Define.
38929         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
38930         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
38931         (s_ifmt_shift_bits): New function.
38932         (set_stat_type): New function.
38933         (fts_build): When not calling fts_stat, call set_stat_type
38934         to propagate dirent.d_type info to fts_read caller.
38935         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
38936         fts_statp->st_mode type information may be valid.
38937
38938 2008-11-28  Simon Josefsson  <simon@josefsson.org>
38939
38940         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
38941         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
38942         <sds@gnu.org>.
38943
38944 2008-11-20  Bruno Haible  <bruno@clisp.org>
38945
38946         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
38947         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
38948         INCLUDE_NEXT.
38949         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
38950         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
38951         * modules/math (Makefile.am): Substitute
38952         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
38953         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
38954
38955 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
38956             Bruno Haible  <bruno@clisp.org>
38957
38958         * lib/stdint.in.h: Define all type macros so that their expansion is
38959         a single typedef'ed token. Fixes a compilation failure in Boost which
38960         does "using ::int8_t;".
38961
38962 2008-11-18  Simon Josefsson  <simon@josefsson.org>
38963
38964         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
38965         gl_MANYWARN_ALL_GCC.
38966         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
38967         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
38968         * modules/manywarnings: New file.
38969         * MODULES.html.sh: Mention manywarnings module.
38970
38971 2008-11-18  Bruno Haible  <bruno@clisp.org>
38972
38973         * doc/gnulib-tool.texi (Unit tests): New section.
38974
38975 2008-11-18  Simon Josefsson  <simon@josefsson.org>
38976
38977         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
38978         paths like 'lib/po/foo.po'.
38979
38980 2008-11-17  Simon Josefsson  <simon@josefsson.org>
38981
38982         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
38983         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
38984
38985 2008-11-17  Simon Josefsson  <simon@josefsson.org>
38986
38987         * m4/warnings.m4: Use CPPFLAGS to really check whether the
38988         parameter works.
38989
38990 2008-11-17  Simon Josefsson  <simon@josefsson.org>
38991
38992         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
38993
38994 2008-11-17  Bruce Korb  <bkorb@gnu.org>
38995
38996         * modules/parse-duration-tests: New file.
38997         * tests/test-parse-duration.sh: New file.
38998         * tests/test-parse-duration.c: New file.
38999
39000         New module 'parse-duration'.
39001         * lib/parse-duration.h: New file.
39002         * lib/parse-duration.c: New file.
39003         * modules/parse-duration: New file.
39004
39005 2008-11-17  Bruno Haible  <bruno@clisp.org>
39006
39007         * tests/test-select-out.sh: Comment out the first pipe test.
39008         Reported by Simon Josefsson.
39009
39010 2008-11-17  Bruno Haible  <bruno@clisp.org>
39011
39012         * modules/getaddrinfo (Depends-on): Add servent, hostent.
39013         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
39014         gl_HOSTENT.
39015
39016 2008-11-17  Bruno Haible  <bruno@clisp.org>
39017
39018         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
39019         -lnetwork and -lnet. Needed for Haiku and BeOS.
39020
39021 2008-11-16  Bruno Haible  <bruno@clisp.org>
39022
39023         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
39024
39025 2008-11-16  Bruno Haible  <bruno@clisp.org>
39026
39027         Avoid test failure on Haiku.
39028         * tests/test-fsync.c: Include <errno.h>.
39029         (main): Don't require that fsync (0) fails.
39030
39031 2008-11-15  Bruno Haible  <bruno@clisp.org>
39032
39033         New module 'hostent'.
39034         * modules/hostent: New file.
39035         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
39036
39037 2008-11-15  Bruno Haible  <bruno@clisp.org>
39038
39039         New module 'servent'.
39040         * modules/servent: New file.
39041         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
39042
39043 2008-11-15  Bruno Haible  <bruno@clisp.org>
39044
39045         Avoid generating same test program with two different rules.
39046         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
39047         test-frexp to test-frexp-nolibm.
39048         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
39049         test-frexpl to test-frexpl-nolibm.
39050
39051 2008-11-15  Bruno Haible  <bruno@clisp.org>
39052
39053         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
39054         $(FREXPL_LIBM).
39055
39056 2008-11-15  Bruno Haible  <bruno@clisp.org>
39057
39058         * lib/netdb.in.h: Activate the definitions also when the system's
39059         <netdb.h> has 'struct addrinfo'.
39060         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
39061         EAI_OVERFLOW or AI_NUMERICSERV.
39062         * doc/posix-headers/netdb.texi: Document the problem.
39063
39064 2008-11-15  Bruno Haible  <bruno@clisp.org>
39065
39066         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
39067
39068         Make the 'sched' module work on platforms where <sched.h> exists but
39069         is incomplete (such as Haiku).
39070         * lib/sched.in.h; Include the system's <sched.h> if it exists.
39071         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
39072         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
39073         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
39074         HAVE_STRUCT_SCHED_PARAM.
39075         * modules/sched (Depends-on): Add include_next.
39076         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
39077         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
39078         * doc/posix-headers/sched.texi: Document the issue.
39079
39080 2008-11-13  Jim Meyering  <meyering@redhat.com>
39081
39082         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
39083         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
39084         test would fail due to the difference in the Report bugs to ...
39085         line.  The expected address is empty, "<>", while the actual
39086         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
39087
39088 2008-11-12  Bruno Haible  <bruno@clisp.org>
39089
39090         lstat: don't compile lstat.c on systems lacking lstat
39091         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
39092         which don't have lstat; this is handled by lib/sys_stat.in.h already.
39093         Reported by Daniel P. Berrange via Jim Meyering.
39094
39095 2008-11-12  Jim Meyering  <meyering@redhat.com>
39096
39097         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
39098
39099 2008-11-12  Simon Josefsson  <simon@josefsson.org>
39100
39101         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
39102         instead.
39103
39104 2008-11-12  Bruno Haible  <bruno@clisp.org>
39105
39106         * lib/unicodeio.c: Include unistr.h.
39107         (utf8_wctomb): Remove function.
39108         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
39109
39110 2008-11-12  Simon Josefsson  <simon@josefsson.org>
39111
39112         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
39113         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
39114         <bruno@clisp.org>.
39115         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
39116
39117 2008-11-12  Simon Josefsson  <simon@josefsson.org>
39118
39119         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
39120         * doc/gnulib.texi: Add section for warnings.
39121
39122 2008-11-11  Bruno Haible  <bruno@clisp.org>
39123
39124         * lib/sockets.h: Add a comment.
39125
39126 2008-11-11  Karl Berry  <karl@gnu.org>
39127
39128         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
39129
39130 2008-11-11  Eric Blake  <ebb9@byu.net>
39131
39132         fdl.texi: avoid git symlinks
39133         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
39134
39135 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
39136
39137         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
39138
39139 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
39140
39141         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
39142         (gl_WARN_ADD): Substitute $2 if literal.
39143
39144 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
39145
39146         * m4/warning.m4: Remove.
39147
39148 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
39149
39150         * m4/warnings.m4: Almost complete rewrite. :-)
39151
39152 2008-11-10  Simon Josefsson  <simon@josefsson.org>
39153
39154         * modules/warnings: New module.
39155         * m4/warnings.m4: New file.
39156         * MODULES.html.sh: Mention warnings module.
39157         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
39158         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
39159
39160 2008-11-10  Eric Blake  <ebb9@byu.net>
39161
39162         fdl.texi: make a symlink to the latest version
39163         * doc/standards.texi: Revert today's earlier change.
39164         * doc/fdl-1.2.texi: Rename from old fdl.texi...
39165         * doc/fdl.texi: ...and replace this with a symlink to the newer
39166         fdl-1.3.texi.
39167
39168 2008-11-10  Bruno Haible  <bruno@clisp.org>
39169
39170         * tests/test-select-fd.c (main): Accept the result file name as fourth
39171         argument.
39172         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
39173         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
39174
39175 2008-11-10  Bruno Haible  <bruno@clisp.org>
39176
39177         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
39178         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
39179         as autoconf-substituted macros.
39180         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
39181         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
39182         gl_NETDB_H_DEFAULTS. Set these variables.
39183         * modules/netdb (Makefile.am): Substitute these variables.
39184
39185 2008-11-10  Eric Blake  <ebb9@byu.net>
39186
39187         standards.texi: include correct file for FDL 1.3
39188         * doc/standards.texi (GNU Free Documentation License): Change
39189         include file to pull in FDL 1.3, not 1.2.
39190
39191         fdl.texi: revert accidental change to license
39192         * doc/fdl.texi: This is FDL 1.2, not 1.3.
39193
39194 2008-11-10  Bruno Haible  <bruno@clisp.org>
39195
39196         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
39197         cross-compiling guesses also when the native compile gives no result.
39198
39199 2008-11-10  Bruno Haible  <bruno@clisp.org>
39200
39201         * lib/spawni.c (__spawni): Force variable into the stack.
39202
39203 2008-11-10  Bruno Haible  <bruno@clisp.org>
39204
39205         Add support for Haiku.
39206         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
39207         glibc and BeOS, but also on Haiku.
39208         * lib/fpurge.c (fpurge): Likewise.
39209         * lib/freadable.c (freadable): Likewise.
39210         * lib/freadahead.c (freadahead): Likewise.
39211         * lib/freading.c (freading): Likewise.
39212         * lib/freadptr.c (freadptr): Likewise.
39213         * lib/freadseek.c (freadptrinc): Likewise.
39214         * lib/fseeko.c (rpl_fseeko): Likewise.
39215         * lib/fseterr.c (fseterr): Likewise.
39216         * lib/fwritable.c (fwritable): Likewise.
39217         * lib/fwriting.c (fwriting): Likewise.
39218         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
39219
39220 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
39221
39222         * lib/config.charset: Treat Haiku like BeOS.
39223
39224 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
39225
39226         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
39227         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
39228
39229 2008-11-08  Bruno Haible  <bruno@clisp.org>
39230
39231         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
39232         AC_CACHE_CHECK.
39233
39234 2008-11-08  Bruno Haible  <bruno@clisp.org>
39235
39236         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
39237
39238 2008-11-08  Bruno Haible  <bruno@clisp.org>
39239
39240         * tests/test-select-fd.c: New file.
39241         * tests/test-select-in.sh: New file.
39242         * tests/test-select-out.sh: New file.
39243         * tests/test-select-stdin.c: New file.
39244         * modules/select-tests (Files): Add the new files.
39245         (Depends-on): Add gettimeofday.
39246         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
39247         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
39248         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
39249
39250 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
39251             Bruno Haible  <bruno@clisp.org>
39252
39253         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
39254
39255 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
39256
39257         * build-aux/pmccabe2html: Added support for C++ source files.
39258
39259 2008-11-05  Ben Pfaff  <blp@gnu.org>
39260
39261         Fix lib/close.c build on Windows.
39262         * modules/close (Files): Add lib/w32sock.h.
39263
39264 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
39265
39266         Accept Bison's NEWS format.
39267         * build-aux/announce-gen (print_news_deltas): Tweak
39268         $re_prefix.
39269
39270 2008-11-04  Bruno Haible  <bruno@clisp.org>
39271
39272         * modules/random_r (Maintainer): Add glibc.
39273
39274 2008-11-04  Simon Josefsson  <simon@josefsson.org>
39275
39276         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
39277         by karl@freefriends.org (Karl Berry).
39278         * doc/alloca.texi: Likewise.
39279         * doc/c-ctype.texi: Likewise.
39280         * doc/c-strcase.texi: Likewise.
39281         * doc/c-strcaseeq.texi: Likewise.
39282         * doc/c-strcasestr.texi: Likewise.
39283         * doc/c-strstr.texi: Likewise.
39284         * doc/c-strtod.texi: Likewise.
39285         * doc/c-strtold.texi: Likewise.
39286         * doc/ctime.texi: Likewise.
39287         * doc/error.texi: Likewise.
39288         * doc/fdl.texi: Likewise.
39289         * doc/gcd.texi: Likewise.
39290         * doc/getdate.texi: Likewise.
39291         * doc/gnulib-intro.texi: Likewise.
39292         * doc/gnulib-tool.texi: Likewise.
39293         * doc/gnulib.texi: Likewise.
39294         * doc/inet_ntoa.texi: Likewise.
39295         * doc/maintain.texi: Likewise.
39296         * doc/make-stds.texi: Likewise.
39297         * doc/quote.texi: Likewise.
39298         * doc/regexprops-generic.texi: Likewise.
39299         * doc/standards.texi: Likewise.
39300         * doc/verify.texi: Likewise.
39301         * doc/visibility.texi: Likewise.
39302         * doc/gnulib.texi (GNU Free Documentation License): Include
39303         fdl-1.3.texi instead of fdl.texi.
39304
39305 2008-11-04  Simon Josefsson  <simon@josefsson.org>
39306
39307         * doc/fdl-1.3.texi: New file, from
39308         <http://www.gnu.org/licenses/fdl-1.3.texi>.
39309         * modules/fdl-1.3: Add.
39310         * MODULES.html.sh: Add fdl-1.3.
39311
39312 2008-11-03  Bruno Haible  <bruno@clisp.org>
39313
39314         Make determination of absolute name of header file work with AIX xlc.
39315         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
39316         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
39317         preprocessing.
39318         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
39319         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
39320
39321 2008-11-03  Simon Josefsson  <simon@josefsson.org>
39322
39323         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
39324         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
39325         <ludo@gnu.org>.
39326
39327 2008-11-02  Bruno Haible  <bruno@clisp.org>
39328
39329         Mark 'strpbrk' obsolete.
39330         * modules/strpbrk (Status, Notice): New sections.
39331         * modules/strtok_r (Depends-on): Add strpbrk.
39332
39333 2008-11-02  Bruno Haible  <bruno@clisp.org>
39334
39335         Mark 'strdup' obsolete.
39336         * modules/strdup (Status, Notice): New sections.
39337         * modules/findprog (Depends-on): Add strdup.
39338         * modules/getaddrinfo (Depends-on): Likewise.
39339         * modules/localename (Depends-on): Likewise.
39340         * modules/relocatable-lib (Depends-on): Likewise.
39341         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
39342         * modules/relocatable-prog (Depends-on): Likewise.
39343         * modules/trim (Depends-on): Likewise.
39344         * modules/unictype/gen-ctype (Depends-on): Likewise.
39345         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
39346
39347 2008-11-02  Bruno Haible  <bruno@clisp.org>
39348
39349         Mark 'strcspn' obsolete.
39350         * modules/strcspn (Status, Notice): New sections.
39351
39352 2008-11-02  Bruno Haible  <bruno@clisp.org>
39353
39354         Mark 'rmdir' obsolete.
39355         * modules/rmdir (Status, Notice): New sections.
39356         * modules/clean-temp (Depends-on): Add rmdir.
39357         * modules/openat (Depends-on): Likewise.
39358
39359 2008-11-02  Bruno Haible  <bruno@clisp.org>
39360
39361         Mark 'raise' obsolete.
39362         * modules/raise (Status, Notice): New sections.
39363         (Include): Specify <signal.h>.
39364         * modules/stdio (Depends-on): Add raise.
39365         * modules/write (Depends-on): Likewise.
39366
39367 2008-11-02  Bruno Haible  <bruno@clisp.org>
39368
39369         Mark 'memset' obsolete.
39370         * modules/memset (Status, Notice): New sections.
39371
39372 2008-11-02  Bruno Haible  <bruno@clisp.org>
39373
39374         Mark 'memmove' obsolete.
39375         * modules/memmove (Status, Notice): New sections.
39376         * modules/argp (Depends-on): Add memmove.
39377         * modules/argz (Depends-on): Likewise.
39378         * modules/canonicalize (Depends-on): Likewise.
39379         * modules/canonicalize-lgpl (Depends-on): Likewise.
39380         * modules/fts (Depends-on): Likewise.
39381         * modules/getcwd (Depends-on): Likewise.
39382         * modules/human (Depends-on): Likewise.
39383         * modules/regex (Depends-on): Likewise.
39384         * modules/striconveh (Depends-on): Likewise.
39385         * modules/trim (Depends-on): Likewise.
39386         * modules/unistr/u8-move (Depends-on): Likewise.
39387         * modules/unistr/u16-move (Depends-on): Likewise.
39388         * modules/unistr/u32-move (Depends-on): Likewise.
39389
39390 2008-11-02  Bruno Haible  <bruno@clisp.org>
39391
39392         Mark 'memcpy' obsolete.
39393         * modules/memcpy (Status, Notice): New sections.
39394
39395 2008-11-02  Bruno Haible  <bruno@clisp.org>
39396
39397         Mark 'memcmp' obsolete.
39398         * modules/memcmp (Status, Notice): New sections.
39399         * modules/argmatch (Depends-on): Add memchr.
39400         * modules/backupfile (Depends-on): Likewise.
39401         * modules/c-strcasestr (Depends-on): Likewise.
39402         * modules/crypto/des (Depends-on): Likewise.
39403         * modules/csharpcomp (Depends-on): Likewise.
39404         * modules/fnmatch (Depends-on): Likewise.
39405         * modules/git-merge-changelog (Depends-on): Likewise.
39406         * modules/isnand (Depends-on): Likewise.
39407         * modules/isnand-nolibm (Depends-on): Likewise.
39408         * modules/isnanf (Depends-on): Likewise.
39409         * modules/isnanf-nolibm (Depends-on): Likewise.
39410         * modules/isnanl (Depends-on): Likewise.
39411         * modules/isnanl-nolibm (Depends-on): Likewise.
39412         * modules/mbchar (Depends-on): Likewise.
39413         * modules/memcoll (Depends-on): Likewise.
39414         * modules/quotearg (Depends-on): Likewise.
39415         * modules/regex (Depends-on): Likewise.
39416         * modules/relocatable-prog (Depends-on): Likewise.
39417         * modules/same (Depends-on): Likewise.
39418         * modules/signbit (Depends-on): Likewise.
39419         * modules/strcasestr-simple (Depends-on): Likewise.
39420         * modules/unictype/gen-ctype (Depends-on): Likewise.
39421         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
39422         * modules/uniname/uniname (Depends-on): Likewise.
39423         * modules/unistr/u8-cmp (Depends-on): Likewise.
39424
39425 2008-11-02  Bruno Haible  <bruno@clisp.org>
39426
39427         Mark 'memchr' obsolete.
39428         * modules/memchr (Status, Notice): New sections.
39429         * modules/argp (Depends-on): Add memchr.
39430         * modules/base64 (Depends-on): Likewise.
39431         * modules/c-strcasestr (Depends-on): Likewise.
39432         * modules/chdir-long (Depends-on): Likewise.
39433         * modules/fnmatch (Depends-on): Likewise.
39434         * modules/getsubopt (Depends-on): Likewise.
39435         * modules/git-merge-changelog (Depends-on): Likewise.
39436         * modules/glob (Depends-on): Likewise.
39437         * modules/strcasestr-simple (Depends-on): Likewise.
39438         * modules/strnlen (Depends-on): Likewise.
39439
39440 2008-11-02  Bruno Haible  <bruno@clisp.org>
39441
39442         Mark 'atexit' obsolete.
39443         * modules/atexit (Status, Notice): New sections.
39444         * modules/chdir-long (Depends-on): Add atexit.
39445         * modules/wait-process (Depends-on): Likewise.
39446
39447 2008-11-02  Bruno Haible  <bruno@clisp.org>
39448
39449         * gnulib-tool: New option --with-obsolete.
39450         (func_usage): Document it.
39451         (func_modules_transitive_closure): Drop obsolete dependencies if
39452         incobsolete is not true.
39453         (func_import): Read and save the incobsolete variable to the cache.
39454
39455 2008-11-02  Bruno Haible  <bruno@clisp.org>
39456
39457         * modules/TEMPLATE-EXTENDED: New field 'Status'.
39458         * gnulib-tool: New option --extract-status.
39459         (func_usage): Document it.
39460         (sed_extract_prog): Recognize it.
39461         (func_get_status): New function.
39462
39463 2008-10-30  Simon Josefsson  <simon@josefsson.org>
39464
39465         * modules/sockets (License): Change from LGPL to LGPLv2+.
39466
39467 2008-10-28  Simon Josefsson  <simon@josefsson.org>
39468
39469         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
39470
39471 2008-10-28  Simon Josefsson  <simon@josefsson.org>
39472
39473         * MODULES.html.sh (Support for systems lacking POSIX:2001):
39474         Mention times and sys_times.
39475         * modules/sys_times, modules/sys_times-tests: New modules.
39476         * modules/times, modules/times-tests: Likewise
39477         * m4/sys_times_h.m4: New file.
39478         * lib/sys_times.in.h: Likewise
39479         * lib/times.c: Likewise.
39480         * tests/test-sys_times.c: Likewise.
39481         * tests/test-times.c: Likewise.
39482         * doc/posix-headers/sys_times.texi: Update.
39483         * doc/posix-functions/times.texi: Update.
39484
39485 2008-10-28  Jim Meyering  <meyering@redhat.com>
39486
39487         * modules/tempname (Depends-on): Add lstat.
39488
39489         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
39490
39491 2008-10-28  Simon Josefsson  <simon@josefsson.org>
39492
39493         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
39494         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
39495         using idiom used elsewhere in gnulib.
39496
39497 2008-10-27  Jim Meyering  <meyering@redhat.com>
39498
39499         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
39500
39501 2008-10-27  Simon Josefsson  <simon@josefsson.org>
39502
39503         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
39504         TESTS_ENVIRONMENT, for shell scripts that needs to call built
39505         programs.
39506         * tests/test-argp-2.sh: Use $EXEEXT when needed.
39507
39508 2008-10-27  Simon Josefsson  <simon@josefsson.org>
39509
39510         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
39511
39512 2008-10-27  Bruno Haible  <bruno@clisp.org>
39513
39514         * tests/test-lstat.c: Include <stdio.h>.
39515
39516 2008-10-27  Simon Josefsson  <simon@josefsson.org>
39517
39518         * modules/lstat-tests: New module.
39519         * tests/test-lstat.c: New file.
39520
39521 2008-10-26  Jim Meyering  <meyering@redhat.com>
39522
39523         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
39524
39525 2008-10-26  Simon Josefsson  <simon@josefsson.org>
39526             Bruno Haible  <bruno@clisp.org>
39527
39528         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
39529         * modules/configmake (Include): Add a note that the include must come
39530         after all system headers.
39531         * lib/javaversion.c: Include configmake.h after all other includes.
39532
39533 2008-10-26  Bruno Haible  <bruno@clisp.org>
39534
39535         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
39536         HAVE_STRUCT_RANDOM_DATA to 1.
39537         (gl_STDLIB_H): Simplify.
39538
39539 2008-10-26  Simon Josefsson  <simon@josefsson.org>
39540
39541         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
39542         substitute HAVE_STRUCT_RANDOM_DATA.
39543         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
39544         random_data.
39545         * modules/stdlib (Makefile.am): Substitute
39546         HAVE_STRUCT_RANDOM_DATA.
39547
39548 2008-10-26  Simon Josefsson  <simon@josefsson.org>
39549
39550         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
39551         * doc/gnulib-intro.texi (Copyright): Likewise.
39552
39553 2008-10-26  Simon Josefsson  <simon@josefsson.org>
39554
39555         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
39556         findings.
39557
39558 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
39559             Bruno Haible  <bruno@clisp.org>
39560
39561         * lib/unistd.in.h: Include <winsock2.h>.
39562         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
39563         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
39564         Provide dummy declarations.
39565         (gethostname): Override.
39566         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
39567         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
39568         gl_PREREQ_SYS_H_WINSOCK2.
39569         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
39570         * doc/posix-functions/gethostname.texi: More details.
39571
39572 2008-10-25  Bruno Haible  <bruno@clisp.org>
39573
39574         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
39575         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
39576         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
39577
39578         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
39579         here ...
39580         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
39581         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
39582         gl_UNISTD_H_DEFAULTS.
39583
39584 2008-10-25  Eric Blake  <ebb9@byu.net>
39585
39586         signbit: avoid spurious compiler failure
39587         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
39588         declarations inside function.
39589
39590 2008-10-24  Simon Josefsson  <simon@josefsson.org>
39591             Bruno Haible  <bruno@clisp.org>
39592
39593         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
39594         * modules/random_r (Depends-on): Add stdint.
39595
39596 2008-10-24  Bruno Haible  <bruno@clisp.org>
39597
39598         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
39599         Eggert.
39600         * modules/strerror (License): Likewise.
39601
39602 2008-10-24  Jim Meyering  <meyering@redhat.com>
39603
39604         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
39605         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
39606
39607 2008-10-24  Eric Blake  <ebb9@byu.net>
39608
39609         getgroups: fix compilation when getgroups is available
39610         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
39611         but with <config.h> override of getgroups disabled.
39612
39613 2008-10-24  Simon Josefsson  <simon@josefsson.org>
39614
39615         * doc/gnulib.texi (Header files): Add note about C++ problems.
39616         Explained by Bruno Haible <bruno@clisp.org>.
39617
39618 2008-10-23  Bruno Haible  <bruno@clisp.org>
39619
39620         Define a dummy SA_NODEFER macro on Interix.
39621         * lib/signal.in.h (SA_NODEFER): Define fallback.
39622         Reported by Aleksey Cheusov <cheusov@tut.by> via
39623         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
39624
39625 2008-10-23  Bruno Haible  <bruno@clisp.org>
39626
39627         * modules/freadahead (License): Change to LGPLv2+.
39628         Suggested by Simon Josefsson.
39629
39630 2008-10-23  Jim Meyering  <meyering@redhat.com>
39631
39632         random_r: new module
39633         * modules/random_r: New file.
39634         * m4/random_r.m4: New file.
39635         * lib/random_r.c: New file, from glibc.
39636         * modules/random_r-tests: New file.
39637         * tests/test-random_r.c: New file.
39638         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
39639          Declare.
39640         (RAND_MAX): Define.
39641         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
39642         * modules/stdlib: Substitute them, too.
39643         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
39644         * doc/glibc-functions/initstate_r.texi: Mention the new module.
39645         * doc/glibc-functions/random_r.texi: Likewise.
39646         * doc/glibc-functions/setstate_r.texi: Likewise.
39647         * doc/glibc-functions/srandom_r.texi: Likewise.
39648         * config/srclist.txt: Mention it.
39649
39650 2008-10-23  David Lutterkort  <lutter@redhat.com>
39651
39652         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
39653         link requirement
39654
39655 2008-10-23  Jim Meyering  <meyering@redhat.com>
39656
39657         selinux-h: mark parameters of stub functions as intentionally unused
39658         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
39659         * lib/se-context.in.h: Likewise.
39660
39661 2008-10-22  Simon Josefsson  <simon@josefsson.org>
39662
39663         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
39664
39665 2008-10-22  Simon Josefsson  <simon@josefsson.org>
39666
39667         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
39668
39669 2008-10-22  Eric Blake  <ebb9@byu.net>
39670
39671         glthread/thread: avoid compiler warning
39672         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
39673         Add unreachable abort to silence compiler.
39674
39675 2008-10-22  Eric Blake  <ebb9@byu.net>
39676
39677         netdb: also supply struct addrinfo for cygwin 1.5.x
39678         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
39679         older cygwin.
39680         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
39681         cygwin.
39682         * doc/posix-headers/netdb.texi (netdb.h): Document this.
39683
39684 2008-10-22  Bruno Haible  <bruno@clisp.org>
39685
39686         * users.txt: Update entry about pspp.
39687
39688 2008-10-21  Bruno Haible  <bruno@clisp.org>
39689
39690         Simplification.
39691         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
39692         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
39693
39694         Simplification.
39695         * lib/ioctl.c (ioctl): Don't undefine.
39696         * lib/socket.c (socket): Don't undefine.
39697
39698         Remove unused module indicator macros.
39699         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
39700         GNULIB_$1 as a C macro.
39701
39702         * doc/posix-functions/close.texi: Undo last change.
39703         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
39704         Windows platforms.
39705
39706 2008-10-21  Bruno Haible  <bruno@clisp.org>
39707
39708         Add gethostname() declaration to <unistd.h>.
39709         * lib/unistd.in.h (gethostname): New declaration.
39710         * lib/gethostname.c: Include <unistd.h>.
39711         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
39712         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
39713         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
39714         and HAVE_GETHOSTNAME.
39715         * modules/gethostname (Depends-on): Add unistd.
39716         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
39717         (Include): Specify <unistd.h>.
39718         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
39719         HAVE_GETHOSTNAME.
39720         * tests/test-gethostname.c: Include <unistd.h> first.
39721
39722 2008-10-21  Bruno Haible  <bruno@clisp.org>
39723
39724         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
39725         * modules/select-tests (Depends-on): Likewise.
39726         Reported by Simon Josefsson.
39727
39728 2008-10-21  Simon Josefsson  <simon@josefsson.org>
39729
39730         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
39731         * lib/accept.c: New file, based on winsock.c.
39732         * lib/bind.c: New file, based on winsock.c.
39733         * lib/connect.c: New file, based on winsock.c.
39734         * lib/getpeername.c: New file, based on winsock.c.
39735         * lib/getsockname.c: New file, based on winsock.c.
39736         * lib/getsockopt.c: New file, based on winsock.c.
39737         * lib/ioctl.c: New file, based on winsock.c.
39738         * lib/listen.c: New file, based on winsock.c.
39739         * lib/recv.c: New file, based on winsock.c.
39740         * lib/recvfrom.c: New file, based on winsock.c.
39741         * lib/send.c: New file, based on winsock.c.
39742         * lib/sendto.c: New file, based on winsock.c.
39743         * lib/setsockopt.c: New file, based on winsock.c.
39744         * lib/shutdown.c: New file, based on winsock.c.
39745         * lib/socket.c: New file, based on winsock.c.
39746         * lib/w32sock.h: New file, based on winsock.c.
39747         * lib/winsock.c: Remove file.
39748         * modules/accept: Likewise.
39749         * modules/bind: Likewise.
39750         * modules/connect: Likewise.
39751         * modules/getpeername: Likewise.
39752         * modules/getsockname: Likewise.
39753         * modules/getsockopt: Likewise.
39754         * modules/ioctl: Likewise.
39755         * modules/listen: Likewise.
39756         * modules/recv: Likewise.
39757         * modules/recvfrom: Likewise.
39758         * modules/send: Likewise.
39759         * modules/sendto: Likewise.
39760         * modules/setsockopt: Likewise.
39761         * modules/shutdown: Likewise.
39762         * modules/socket: Use socket.c instead of winsock.c.
39763         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
39764         * doc/posix-functions/accept.texi: Doc fix.
39765         * doc/posix-functions/bind.texi: Doc fix.
39766         * doc/posix-functions/close.texi: Doc fix.
39767         * doc/posix-functions/connect.texi: Doc fix.
39768         * doc/posix-functions/getpeername.texi: Doc fix.
39769         * doc/posix-functions/getsockname.texi: Doc fix.
39770         * doc/posix-functions/getsockopt.texi: Doc fix.
39771         * doc/posix-functions/ioctl.texi: Doc fix.
39772         * doc/posix-functions/listen.texi: Doc fix.
39773         * doc/posix-functions/recv.texi: Doc fix.
39774         * doc/posix-functions/recvfrom.texi: Doc fix.
39775         * doc/posix-functions/send.texi: Doc fix.
39776         * doc/posix-functions/sendto.texi: Doc fix.
39777         * doc/posix-functions/setsockopt.texi: Doc fix.
39778         * doc/posix-functions/shutdown.texi: Doc fix.
39779         * doc/posix-functions/socket.texi: Doc fix.
39780
39781 2008-10-20  Bruno Haible  <bruno@clisp.org>
39782
39783         Take into account the role of SIGABRT_COMPAT on Windows 2008.
39784         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
39785         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
39786         as an alias for SIGABRT.
39787         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
39788         (sigaction): Map it to SIGABRT.
39789         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
39790
39791 2008-10-20  Bruno Haible  <bruno@clisp.org>
39792
39793         * lib/fts.c: Don't include lstat.h.
39794         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
39795
39796         Move the lstat() declaration to <sys/stat.h>.
39797         * lib/lstat.h: Remove file.
39798         * lib/sys_stat.in.h: Add special invocation convention.
39799         (lstat): New declaration.
39800         * lib/lstat.c (orig_lstat): New function.
39801         (rpl_lstat): Use orig_lstat instead of lstat.
39802         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
39803         AC_C_INLINE. Set REPLACE_LSTAT.
39804         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
39805         and REPLACE_LSTAT.
39806         * modules/lstat (Files): Remove lib/lstat.h.
39807         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
39808         (Include): Specify <sys/stat.h> instead of lstat.h.
39809         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
39810         REPLACE_LSTAT.
39811         * NEWS: Mention the change.
39812
39813 2008-10-20  Bruno Haible  <bruno@clisp.org>
39814
39815         * modules/posix_spawn-tests: New file.
39816         * tests/test-posix_spawn3.c: New file.
39817
39818 2008-10-20  Bruno Haible  <bruno@clisp.org>
39819
39820         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
39821         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
39822         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
39823         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
39824         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
39825
39826 2008-10-20  Bruno Haible  <bruno@clisp.org>
39827
39828         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
39829         of posix_spawn on AIX 5.3.
39830
39831 2008-10-20  Bruno Haible  <bruno@clisp.org>
39832
39833         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
39834
39835 2008-10-20  Bruno Haible  <bruno@clisp.org>
39836
39837         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
39838         of AC_LANG_PROGRAM.
39839
39840 2008-10-20  Simon Josefsson  <simon@josefsson.org>
39841
39842         * lib/netdb.in.h: Don't define GNU specific constants until they
39843         are supported or needed.  Reported by Bruno Haible
39844         <bruno@clisp.org>.
39845
39846 2008-10-20  Simon Josefsson  <simon@josefsson.org>
39847
39848         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
39849
39850 2008-10-20  Simon Josefsson  <simon@josefsson.org>
39851
39852         * lib/getaddrinfo.h: Remove file.
39853         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
39854         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
39855         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
39856         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
39857         * modules/netdb: Substitute GNULIB_GETADDRINFO.
39858         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
39859         * tests/test-getaddrinfo.c: Likewise.
39860         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
39861         * NEWS: Mention change.
39862
39863 2008-10-19  Bruno Haible  <bruno@clisp.org>
39864
39865         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
39866
39867 2008-10-19  Bruno Haible  <bruno@clisp.org>
39868
39869         * lib/wait-process.c: Include simply <sys/wait.h>.
39870         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
39871         WIFSTOPPED): Remove fallback definitions.
39872         * modules/wait-process (Depends-on): Add sys_wait.
39873
39874         New module 'sys_wait'.
39875         * modules/sys_wait: New file.
39876         * lib/sys_wait.in.h: New file, partially copied from
39877         lib/wait-process.c.
39878         * m4/sys_wait_h.m4: New file.
39879         * doc/posix-headers/sys_wait.texi: Mention the new module.
39880
39881 2008-10-19  Bruno Haible  <bruno@clisp.org>
39882
39883         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
39884
39885 2008-10-19  Bruno Haible  <bruno@clisp.org>
39886
39887         Assume that waitpid() fills an 'int' status, not a 'union wait'.
39888         * lib/wait-process.c (WAIT_T): Remove type.
39889         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
39890         (wait_subprocess): Update.
39891
39892 2008-10-19  Bruno Haible  <bruno@clisp.org>
39893
39894         New module 'atoll'.
39895         * modules/atoll: New file.
39896         * lib/stdlib.in.h (atoll): New declaration.
39897         * lib/atoll.c: New file, from glibc with modifications.
39898         * m4/atoll.m4: New file.
39899         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
39900         HAVE_ATOLL.
39901         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
39902         * doc/posix-functions/atoll.texi: Mention the new module.
39903
39904 2008-10-19  Bruno Haible  <bruno@clisp.org>
39905
39906         Add strtoull() declaration to <stdlib.h>.
39907         * lib/stdlib.in.h (strtoull): New declaration.
39908         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
39909         Set HAVE_STRTOULL.
39910         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
39911         HAVE_STRTOULL.
39912         * modules/strtoull (Depends-on): Add stdlib.
39913         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
39914         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
39915         HAVE_STRTOULL.
39916
39917 2008-10-19  Bruno Haible  <bruno@clisp.org>
39918
39919         Add strtoll() declaration to <stdlib.h>.
39920         * lib/stdlib.in.h (strtoll): New declaration.
39921         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
39922         Set HAVE_STRTOLL.
39923         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
39924         HAVE_STRTOLL.
39925         * modules/strtoll (Depends-on): Add stdlib.
39926         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
39927         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
39928
39929 2008-10-19  Bruno Haible  <bruno@clisp.org>
39930
39931         * modules/bcopy (Depends-on): Add strings.
39932         (Include): Specify <strings.h>.
39933
39934 2008-10-19  Bruno Haible  <bruno@clisp.org>
39935
39936         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
39937
39938 2008-10-19  Bruno Haible  <bruno@clisp.org>
39939
39940         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
39941         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
39942         mingw.
39943
39944 2008-10-19  Bruno Haible  <bruno@clisp.org>
39945
39946         * lib/atanl.c: Don't include isnanl.h.
39947         * lib/cosl.c: Likewise.
39948         * lib/ldexpl.c: Likewise.
39949         * lib/logl.c: Likewise.
39950         * lib/sinl.c: Likewise.
39951         * lib/sqrtl.c: Likewise.
39952         * lib/tanl.c: Likewise.
39953
39954         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
39955         * lib/isnanf.h: Remove file.
39956         * lib/isnand.h: Remove file.
39957         * lib/isnanl.h: Remove file.
39958         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
39959         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
39960         macros.
39961         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
39962         HAVE_ISNANF, don't define it as a C macro.
39963         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
39964         HAVE_ISNAND, don't define it as a C macro.
39965         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
39966         HAVE_ISNANL, don't define it as a C macro.
39967         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
39968         HAVE_ISNAN[FDL].
39969         * modules/isnanf (Files): Remove lib/isnanf.h.
39970         (Depends-on): Add math.
39971         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
39972         (Include): Specify <math.h> instead of isnanf.h.
39973         * modules/isnand (Files): Remove lib/isnand.h.
39974         (Depends-on): Add math.
39975         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
39976         (Include): Specify <math.h> instead of isnand.h.
39977         * modules/isnanl (Files): Remove lib/isnanl.h.
39978         (Depends-on): Add math.
39979         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
39980         (Include): Specify <math.h> instead of isnanl.h.
39981         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
39982         HAVE_ISNAN[FDL].
39983         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
39984         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
39985         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
39986         * NEWS: Mention the change.
39987
39988 2008-10-18  Bruno Haible  <bruno@clisp.org>
39989
39990         Add getusershell(), setusershell(), endusershell() declarations to
39991         <unistd.h>.
39992         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
39993         declarations.
39994         * lib/getusershell.c: Include unistd.h.
39995         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
39996         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
39997         HAVE_GETUSERSHELL.
39998         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
39999         and HAVE_GETUSERSHELL.
40000         * modules/getusershell (Depends-on): Add unistd, extensions.
40001         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
40002         (Include): Specify <unistd.h>.
40003         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
40004         HAVE_GETUSERSHELL.
40005
40006 2008-10-18  Bruno Haible  <bruno@clisp.org>
40007
40008         Add a getloadavg() declaration to <stdlib.h>.
40009         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
40010         getloadavg declaration.
40011         (getloadavg): New declaration.
40012         * lib/getloadavg.c: Include <stdlib.h> first.
40013         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
40014         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
40015         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
40016         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
40017         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
40018         * modules/getloadavg (Depends-on): Add stdlib, extensions.
40019         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
40020         (Include): Specify <stdlib.h>.
40021         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
40022         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
40023
40024 2008-10-18  Bruno Haible  <bruno@clisp.org>
40025
40026         * lib/dirchownmod.c: Don't include lchmod.h.
40027
40028         Move the lchmod() declaration to <sys/stat.h>.
40029         * lib/lchmod.h: Remove file.
40030         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
40031         (lchmod): New declaration, moved here from lib/lchown.h.
40032         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
40033         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
40034         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
40035         and HAVE_LCHMOD.
40036         * modules/lchmod (Files): Remove lib/lchmod.h.
40037         (Depends-on): Add sys_stat, extensions.
40038         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
40039         (Include): Specify <sys/stat.h> instead of lchmod.h.
40040         * modules/sys_stat (Depends-on): Add link-warning.
40041         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
40042         definition of GL_LINK_WARNING.
40043         * NEWS: Mention the change.
40044
40045 2008-10-18  Bruno Haible  <bruno@clisp.org>
40046
40047         * lib/fchdir.c: Don't include dirfd.h.
40048         * lib/fts.c: Likewise.
40049         * lib/getcwd.c: Likewise.
40050         * lib/glob.c: Likewise.
40051
40052         Move the dirfd() declaration to <dirent.h>.
40053         * lib/dirfd.h: Remove file.
40054         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
40055         (dirfd): New declaration.
40056         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
40057         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
40058         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
40059         HAVE_DECL_DIRFD.
40060         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
40061         HAVE_DECL_DIRFD.
40062         * modules/dirfd (Files): Remove lib/dirfd.h.
40063         (Depends-on): Add dirent, extensions.
40064         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
40065         (Include): Specify <dirent.h> instead of dirfd.h.
40066         * modules/dirent (Depends-on): Add link-warning.
40067         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
40068         definition of GL_LINK_WARNING.
40069         * NEWS: Mention the change.
40070
40071 2008-10-18  Bruno Haible  <bruno@clisp.org>
40072
40073         Move the euidaccess() declaration to <unistd.h>.
40074         * lib/euidaccess.h: Remove file.
40075         * lib/unistd.in.h (euidaccess): New declaration.
40076         * lib/euidaccess.c: Don't include euidaccess.h.
40077         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
40078         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
40079         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
40080         and HAVE_EUIDACCESS.
40081         * modules/euidaccess (Files): Remove lib/euidaccess.h.
40082         (Depends-on): Add unistd.
40083         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
40084         (Include): Specify <unistd.h> instead of euidaccess.h.
40085         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
40086         HAVE_EUIDACCESS.
40087         * NEWS: Mention the change.
40088
40089 2008-10-18  Bruno Haible  <bruno@clisp.org>
40090
40091         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
40092
40093         Move the getdomainname() declaration to <unistd.h>.
40094         * lib/getdomainname.h: Remove file.
40095         * lib/unistd.in.h (getdomainname): New declaration.
40096         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
40097         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
40098         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
40099         HAVE_GETDOMAINNAME.
40100         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
40101         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
40102         * modules/getdomainname (Files): Remove lib/getdomainname.h.
40103         (Depends-on): Add unistd, extensions.
40104         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
40105         (Includes): Specify <unistd.h> instead of getdomainname.h.
40106         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
40107         HAVE_GETDOMAINNAME.
40108         * NEWS: Mention the change.
40109
40110 2008-10-18  Bruno Haible  <bruno@clisp.org>
40111
40112         * modules/dirent: New file.
40113         * m4/dirent_h.m4: New file.
40114         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
40115         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
40116         * modules/fchdir (Files): Remove lib/dirent.in.h.
40117         (Depends-on): Add dirent.
40118         (Makefile.am): Move rules to modules/dirent.
40119         * doc/posix-headers/dirent.texi: Mention the new module.
40120
40121 2008-10-18  Bruno Haible  <bruno@clisp.org>
40122
40123         Avoid -Wunused-parameter warnings in public gnulib header files.
40124         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
40125         macro.
40126         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
40127
40128 2008-10-18  Bruno Haible  <bruno@clisp.org>
40129
40130         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
40131         * doc/glibc-functions/error.texi: Mention the module 'error'.
40132         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
40133         * doc/glibc-functions/getdomainname.texi: Mention the module
40134         'getdomainname'.
40135         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
40136         * doc/glibc-functions/getpagesize.texi: Mention the module
40137         'getpagesize'.
40138         * doc/glibc-functions/getusershell.texi: Mention the module
40139         'getusershell'.
40140         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
40141         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
40142         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
40143         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
40144         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
40145         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
40146         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
40147         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
40148         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
40149         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
40150         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
40151         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
40152         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
40153         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
40154
40155 2008-10-17  Bruno Haible  <bruno@clisp.org>
40156
40157         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
40158         HP-UX and IRIX, use -0.0L.
40159         * tests/test-ceill.c (minus_zero): Likewise.
40160         * tests/test-floorl.c (minus_zero): Likewise.
40161         * tests/test-frexpl.c (minus_zero): Likewise.
40162         * tests/test-isnan.c (minus_zerol): Likewise.
40163         * tests/test-isnanl.h (minus_zero): Likewise.
40164         * tests/test-ldexpl.c (minus_zero): Likewise.
40165         * tests/test-roundl.c (minus_zero): Likewise.
40166         * tests/test-signbit.c (minus_zerol): Likewise.
40167         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
40168         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
40169         * tests/test-truncl.c (minus_zero): Likewise.
40170         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
40171         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
40172         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
40173         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
40174
40175 2008-10-17  Bruno Haible  <bruno@clisp.org>
40176
40177         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
40178         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
40179         that it gets activated only for gcc >= 3.0.
40180         * lib/dirent.in.h: Likewise.
40181         * lib/errno.in.h: Likewise.
40182         * lib/fcntl.in.h: Likewise.
40183         * lib/float.in.h: Likewise.
40184         * lib/iconv.in.h: Likewise.
40185         * lib/inttypes.in.h: Likewise.
40186         * lib/locale.in.h: Likewise.
40187         * lib/math.in.h: Likewise.
40188         * lib/netdb.in.h: Likewise.
40189         * lib/netinet_in.in.h: Likewise.
40190         * lib/search.in.h: Likewise.
40191         * lib/signal.in.h: Likewise.
40192         * lib/spawn.in.h: Likewise.
40193         * lib/stdarg.in.h: Likewise.
40194         * lib/stdint.in.h: Likewise.
40195         * lib/stdio.in.h: Likewise.
40196         * lib/stdlib.in.h: Likewise.
40197         * lib/string.in.h: Likewise.
40198         * lib/strings.in.h: Likewise.
40199         * lib/sys_file.in.h: Likewise.
40200         * lib/sys_ioctl.in.h: Likewise.
40201         * lib/sys_select.in.h: Likewise.
40202         * lib/sys_socket.in.h: Likewise.
40203         * lib/sys_stat.in.h: Likewise.
40204         * lib/sys_time.in.h: Likewise.
40205         * lib/sysexits.in.h: Likewise.
40206         * lib/time.in.h: Likewise.
40207         * lib/unistd.in.h: Likewise.
40208         * lib/wchar.in.h: Likewise.
40209         * lib/wctype.in.h: Likewise.
40210         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
40211
40212 2008-10-17  Jim Meyering  <meyering@redhat.com>
40213
40214         ignore-value: don't depend on inline module
40215         * modules/ignore-value (Depends-on): Remove 'inline'.
40216         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
40217         Suggestion from Bruno Haible.
40218
40219 2008-10-17  Bruno Haible  <bruno@clisp.org>
40220
40221         New implementation of condition variables for Win32.
40222         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
40223         (gl_linked_waitqueue_t): New type.
40224         (gl_cond_t): Use it.
40225         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
40226         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
40227         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
40228         (glthread_cond_init_func, glthread_cond_wait_func,
40229         glthread_cond_timedwait_func, glthread_cond_signal_func,
40230         glthread_cond_broadcast_func, glthread_cond_destroy_func):
40231         Reimplemented on the basis of gl_linked_waitqueue_t.
40232         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
40233         gl_waitqueue_t.
40234         (gl_rwlock_t): Update.
40235         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
40236
40237 2008-10-17  Simon Josefsson  <simon@josefsson.org>
40238
40239         * modules/recvfrom (Depends-on): Add dependency on getpeername.
40240         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
40241
40242 2008-10-17  Jim Meyering  <meyering@redhat.com>
40243
40244         ignore-value: new module
40245         * modules/ignore-value: New file.
40246         * lib/ignore-value.h: New file.
40247         * MODULES.html.sh (Compiler warning management): New section,
40248         just for this module.  More to come.
40249
40250 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
40251
40252         open-safer.c: avoid 'signed and unsigned in conditional...' warning
40253         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
40254         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
40255
40256 2008-10-16  Jim Meyering  <meyering@redhat.com>
40257
40258         openat-die.c: avoid 'no previous prototype' warning
40259         * lib/openat-die.c: Include "openat.h".
40260         Reported by Reuben Thomas <rrt@sc3d.org>.
40261
40262 2008-10-16  Simon Josefsson  <simon@josefsson.org>
40263
40264         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
40265         * lib/netdb.in.h: Fix typo.
40266         Reported by Bruno Haible  <bruno@clisp.org>
40267
40268         * lib/netdb.in.h: Include sys/socket.h for platforms without
40269         netdb.h, to get structures like hostent on MinGW.
40270         * modules/netdb (Depends-on): Add sys_socket.
40271
40272 2008-10-15  Simon Josefsson  <simon@josefsson.org>
40273
40274         * modules/netdb, modules/netdb-tests: New file.
40275         * m4/netdb_h.m4: New file.
40276         * lib/netdb.in.h: Add, currently just an empty file pending
40277         definitions.
40278         * tests/test-netdb.c: New file.
40279         * doc/posix-headers/netdb.texi: Mention that we replace it if
40280         needed.
40281         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
40282         netdb.
40283
40284 2008-10-15  Simon Josefsson  <simon@josefsson.org>
40285
40286         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
40287         with code.
40288
40289 2008-10-13  Bruno Haible  <bruno@clisp.org>
40290
40291         * lib/glthread/cond.c (glthread_cond_wait_func,
40292         glthread_cond_timedwait_func): Add a comment.
40293
40294 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
40295
40296         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
40297         * tests/test-select.c: Likewise,
40298
40299 2008-10-13  Bruno Haible  <bruno@clisp.org>
40300
40301         * lib/glthread/cond.c (glthread_cond_wait_func,
40302         glthread_cond_timedwait_func): Fix variable name.
40303         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
40304
40305 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
40306
40307         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
40308         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
40309         struct sockaddr.sa_len.
40310         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
40311
40312 2008-10-13  Simon Josefsson  <simon@josefsson.org>
40313
40314         * build-aux/pmccabe2html: Add css and css_url parameters.
40315
40316 2008-10-12  Bruno Haible  <bruno@clisp.org>
40317
40318         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
40319         calling aclx_get.
40320         Reported by Rainer Tammer <tammer@tammer.net>.
40321
40322 2008-10-12  Bruno Haible  <bruno@clisp.org>
40323
40324         Use msvcrt aware primitives for creation/termination of Win32 threads.
40325         * lib/glthread/thread.c: Include <process.h>.
40326         (glthread_create_func): Use _beginthreadex instead of CreateThread.
40327         (wrapper_func): Update signature.
40328         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
40329
40330 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
40331             Bruno Haible  <bruno@clisp.org>
40332
40333         Provide a Win32 implementation of the 'cond' module.
40334         * lib/glthread/cond.h [USE_WIN32]: New implementation.
40335         * lib/glthread/cond.c (glthread_cond_init_func,
40336         glthread_cond_wait_func, glthread_cond_timedwait_func,
40337         glthread_cond_signal_func, glthread_cond_broadcast_func,
40338         glthread_cond_destroy_func) [USE_WIN32]: New functions.
40339         * modules/cond (Dependencies): Add gettimeofday.
40340
40341 2008-10-11  Bruno Haible  <bruno@clisp.org>
40342
40343         Make sleep work on older versions of mingw.
40344         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
40345         only whether it exists.
40346         * doc/posix-functions/sleep.texi: Mention the problem with older
40347         versions of mingw.
40348
40349 2008-10-11  Bruno Haible  <bruno@clisp.org>
40350
40351         New module 'shutdown'.
40352         * modules/shutdown: New file.
40353         * lib/sys_socket.in.h (shutdown): New declaration.
40354         * lib/winsock.c (shutdown): New function.
40355         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
40356         GNULIB_SHUTDOWN.
40357         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
40358         * doc/posix-functions/shutdown.texi: Document the new module.
40359
40360 2008-10-11  Jim Meyering  <meyering@redhat.com>
40361
40362         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
40363
40364 2008-10-11  Bruno Haible  <bruno@clisp.org>
40365
40366         New module 'fclose'.
40367         * modules/fclose: New file.
40368         * lib/stdio.in.h (fclose): New declaration.
40369         * lib/fclose.c: New file.
40370         * m4/fclose.m4: New file.
40371         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
40372         REPLACE_FCLOSE.
40373         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
40374         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
40375         REPLACE_FCLOSE.
40376         * modules/close (Depends-on): fclose.
40377         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
40378
40379 2008-10-11  Bruno Haible  <bruno@clisp.org>
40380
40381         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
40382         set errno and don't call _close.
40383
40384 2008-10-10  Bruno Haible  <bruno@clisp.org>
40385
40386         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
40387         ACL, not afterwards. Fixes test failure on Cygwin.
40388
40389 2008-10-09  Ben Pfaff  <blp@gnu.org>
40390
40391         * build-aux/announce-gen: Fix gnulib version related part of usage
40392         message.  Die with a useful error message if no tarballs are
40393         found.
40394
40395 2008-10-10  Jim Meyering  <meyering@redhat.com>
40396
40397         bootstrap: use git's --depth=N option only if it's supported
40398         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
40399         recognize the --depth option.  Reported by Pádraig Brady.
40400
40401 2008-10-09  Bruno Haible  <bruno@clisp.org>
40402
40403         New module 'ioctl'.
40404         * modules/ioctl: New file.
40405         * lib/sys_socket.in.h (ioctl): Remove declaration.
40406         * lib/winsock.c: Include <sys/ioctl.h>.
40407         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
40408         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
40409         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
40410         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
40411         * doc/posix-functions/ioctl.texi: Mention the new module.
40412
40413 2008-10-09  Bruno Haible  <bruno@clisp.org>
40414
40415         New module 'sys_ioctl'.
40416         * lib/sys_ioctl.in.h: New file.
40417         * m4/sys_ioctl_h.m4: New file.
40418         * modules/sys_ioctl: New file.
40419         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
40420
40421 2008-10-09  Bruno Haible  <bruno@clisp.org>
40422
40423         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
40424         * lib/winsock.c: Include <stdarg.h>.
40425         (rpl_ioctl): Change to second argument 'int' and then varargs.
40426
40427 2008-10-09  Bruno Haible  <bruno@clisp.org>
40428
40429         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
40430         when the sys_socket module is present and the system has <winsock2.h>.
40431
40432 2008-10-09  Bruno Haible  <bruno@clisp.org>
40433
40434         * doc/posix-functions/close.texi: Mention module 'close' instead of
40435         module 'sys_socket'.
40436
40437 2008-10-09  Bruno Haible  <bruno@clisp.org>
40438
40439         * doc/glibc-headers/sys_ioctl.texi: New file.
40440         * doc/gnulib.texi: Include it.
40441
40442 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
40443             Bruno Haible  <bruno@clisp.org>
40444
40445         Combine the two replacements of 'close'.
40446         * lib/sys_socket.in.h (close): Define to a reminder to include
40447         <unistd.h>.
40448         (_gl_close_fd_maybe_socket): New declaration.
40449         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
40450         * lib/winsock.c (close): Remove undefinition.
40451         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
40452         needed for the gnulib module 'close'.
40453         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
40454         define to an error symbol or to a warning, if suitable.
40455         * lib/close.c: Include <sys/socket.h>.
40456         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
40457         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
40458         UNISTD_H_HAVE_WINSOCK2_H.
40459         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
40460         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
40461         UNISTD_H_HAVE_WINSOCK2_H.
40462         * modules/sys_socket (Files): Add m4/unistd_h.m4.
40463         (configure.ac): Set a module indicator.
40464         (Makefile.am): Substitute GNULIB_CLOSE.
40465         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
40466         * modules/poll-tests (Depends-on): Add close.
40467         * modules/select-tests (Depends-on): Likewise.
40468
40469 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
40470             Bruno Haible  <bruno@clisp.org>
40471
40472         New module 'close'.
40473         * modules/close: New file.
40474         * lib/unistd.in.h (close): Move declaration out of the
40475         FCHDIR_REPLACEMENT scope.
40476         (_gl_unregister_fd): New declaration.
40477         * lib/close.c: New file.
40478         * lib/fchdir.c (rpl_close): Remove function.
40479         * m4/close.m4: New file.
40480         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
40481         close.
40482         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
40483         REPLACE_CLOSE.
40484         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
40485         REPLACE_CLOSE.
40486         * modules/fchdir (Depends-on): Add close.
40487
40488 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
40489             Bruno Haible  <bruno@clisp.org>
40490
40491         * lib/fcntl.in.h (open): Simplify conditionals.
40492         (_gl_register_fd): New declaration.
40493         * lib/fchdir.c (rpl_open): Remove function.
40494         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
40495         also.
40496         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
40497         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
40498         open.
40499
40500 2008-10-09  Jim Meyering  <meyering@redhat.com>
40501
40502         GNUmakefile: use the more name-space-friendly "_version"
40503         * top/GNUmakefile (_dummy): Update.
40504         (_version): Rename from "version".
40505
40506 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
40507             Bruno Haible  <bruno@clisp.org>
40508
40509         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
40510         rpl_close.
40511         (_gl_register_fd): New function, extracted from rpl_open.
40512         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
40513         (rpl_open, rpl_opendir): Use _gl_register_fd.
40514
40515 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
40516
40517         Fix organization of 'open' replacement.
40518         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
40519         (gl_FUNC_OPEN): Use it.
40520         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
40521
40522 2008-10-08  Bruno Haible  <bruno@clisp.org>
40523
40524         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
40525
40526 2008-10-08  Simon Josefsson  <simon@josefsson.org>
40527
40528         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
40529         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
40530         listen).
40531
40532 2008-10-08  Eric Blake  <ebb9@byu.net>
40533
40534         GNUmakefile: add 'make version' target
40535         * top/GNUmakefile (_curr-ver): Split version update rules...
40536         (version): ...into a target.
40537
40538 2008-10-07  Bruno Haible  <bruno@clisp.org>
40539
40540         Use a more portable replacement expression for -0.0L.
40541         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
40542         instead of -0.0L. Fix m4 quotation.
40543
40544         * tests/test-signbit.c: Include <float.h>.
40545         (minus_zero): New variable.
40546         (test_signbitl): Use minus_zero instead of -zero.
40547         * modules/signbit-tests (Depends-on): Add float.
40548
40549         * tests/test-ceill.c: Include <float.h>.
40550         (zero): Remove variable.
40551         (minus_zero): New variable.
40552         (main): Use minus_zero instead of -zero.
40553         * modules/ceill-tests (Depends-on): Add float.
40554
40555         * tests/test-floorl.c: Include <float.h>.
40556         (zero): Remove variable.
40557         (minus_zero): New variable.
40558         (main): Use minus_zero instead of -zero.
40559         * modules/floorl-tests (Depends-on): Add float.
40560
40561         * tests/test-roundl.c: Include <float.h>.
40562         (zero): Remove variable.
40563         (minus_zero): New variable.
40564         (main): Use minus_zero instead of -zero.
40565         * modules/roundl-tests (Depends-on): Add float.
40566
40567         * tests/test-truncl.c: Include <float.h>.
40568         (zero): Remove variable.
40569         (minus_zero): New variable.
40570         (main): Use minus_zero instead of -zero.
40571         * modules/truncl-tests (Depends-on): Add float.
40572
40573         * tests/test-frexpl.c (zero): Remove variable.
40574         (minus_zero): New variable.
40575         (main): Use minus_zero instead of -zero.
40576         * modules/frexpl-tests (Depends-on): Add float.
40577
40578         * tests/test-isnan.c (zerol): Remove variable.
40579         (minus_zerol): New variable.
40580         (test_long_double): Use minus_zerol instead of -zerol.
40581         * modules/isnan-tests (Depends-on): Add float.
40582
40583         * tests/test-isnanl.h (zero): Remove variable.
40584         (minus_zero): New variable.
40585         (main): Use minus_zero instead of -zero.
40586         * modules/isnanl-nolibm-tests (Depends-on): Add float.
40587         * modules/isnanl-tests (Depends-on): Add float.
40588
40589         * tests/test-ldexpl.c (zero): Remove variable.
40590         (minus_zero): New variable.
40591         (main): Use minus_zero instead of -zero.
40592         * modules/ldexpl-tests (Depends-on): Add float.
40593
40594         * tests/test-snprintf-posix.h (zerol): Remove variable.
40595         (minus_zerol): New variable.
40596         (test_function): Use minus_zerol instead of -zerol.
40597         * modules/snprintf-posix-tests (Depends-on): Add float.
40598         * modules/vsnprintf-posix-tests (Depends-on): Add float.
40599
40600         * tests/test-sprintf-posix.h (zerol): Remove variable.
40601         (minus_zerol): New variable.
40602         (test_function): Use minus_zerol instead of -zerol.
40603         * modules/sprintf-posix-tests (Depends-on): Add float.
40604         * modules/vsprintf-posix-tests (Depends-on): Add float.
40605
40606         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
40607         (minus_zerol): New variable.
40608         (test_function): Use minus_zerol instead of -zerol.
40609         * modules/vasnprintf-posix-tests (Depends-on): Add float.
40610
40611         * tests/test-vasprintf-posix.c (zerol): Remove variable.
40612         (minus_zerol): New variable.
40613         (test_function): Use minus_zerol instead of -zerol.
40614         * modules/vasprintf-posix-tests (Depends-on): Add float.
40615
40616 2008-10-07  Simon Josefsson  <simon@josefsson.org>
40617
40618         * MODULES.html.sh (Support for building documentation): Mention
40619         pmccabe2html.  Sort entries.
40620
40621         Add pmccabe2html module, from gnupdf.
40622         * build-aux/pmccabe.css: New file.
40623         * build-aux/pmccabe2html: New file.
40624         * m4/pmccabe2html.m4: New file.
40625         * modules/pmccabe2html: New file.
40626
40627 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
40628
40629         flock: new module
40630         * MODULES.html.sh: Add to list of modules.
40631         * lib/flock.c: flock implementation for Windows and Unix systems
40632         which have fcntl.
40633         * doc/glibc-functions/flock.texi: Update documentation.
40634         * lib/sys_file.in.h: <sys/file.h> header file.
40635         * m4/flock.m4: M4 macros.
40636         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
40637         * modules/flock: flock module.
40638         * modules/flock-tests: flock tests module.
40639         * modules/sys_file: sys/file.h module.
40640         * tests/test-flock.c: test suite for flock.
40641
40642 2008-10-06  Jim Meyering  <meyering@redhat.com>
40643
40644         bootstrap: check for LT_INIT more portably still ;-)
40645         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
40646         Spotted by Bruno Haible.
40647
40648 2008-10-06  Eric Blake  <ebb9@byu.net>
40649
40650         test-signbit: avoid tripping Irix cc bug on -0.0L
40651         * tests/test-signbit.c (minus_zerol): Delete, and replace with
40652         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
40653         entire testsuite consistent and avoids an Irix 6.2 bug.
40654
40655 2008-10-05  Bruno Haible  <bruno@clisp.org>
40656             Jim Meyering  <jim@meyering.net>
40657
40658         Add an option for ignoring EPIPE during close_stdout.
40659         * lib/closeout.h: Include <stdbool.h>.
40660         (close_stdout_set_ignore_EPIPE): New declaration.
40661         * lib/closeout.c: Include <stdbool.h>.
40662         (ignore_EPIPE): New variable.
40663         (close_stdout_set_ignore_EPIPE): New function.
40664         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
40665         * lib/close-stream.c (close_stream): Mention the possible EPIPE
40666         failure.
40667         * modules/closeout (Depends-on): Add stdbool.
40668
40669 2008-10-05  Bruno Haible  <bruno@clisp.org>
40670
40671         * modules/accept: New file.
40672         * modules/bind: New file.
40673         * modules/connect: New file.
40674         * modules/getpeername: New file.
40675         * modules/getsockname: New file.
40676         * modules/getsockopt: New file.
40677         * modules/listen: New file.
40678         * modules/recv: New file.
40679         * modules/recvfrom: New file.
40680         * modules/send: New file.
40681         * modules/sendto: New file.
40682         * modules/setsockopt: New file.
40683         * modules/socket: New file.
40684         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
40685         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
40686         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
40687         the particular module is requested. Add a link warning when the
40688         particular module is not requested.
40689         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
40690         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
40691         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
40692         the particular module is requested.
40693         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
40694         gl_SYS_SOCKET_H_DEFAULTS): New macros.
40695         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
40696         * modules/sys_socket (Depends-on): Add link-warning.
40697         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
40698         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
40699         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
40700         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
40701         GL_LINK_WARNING.
40702         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
40703         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
40704         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
40705         * doc/posix-functions/getpeername.texi: Mention the new module
40706         'getpeername'.
40707         * doc/posix-functions/getsockname.texi: Mention the new module
40708         'getsockname'.
40709         * doc/posix-functions/getsockopt.texi: Mention the new module
40710         'getsockopt'.
40711         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
40712         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
40713         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
40714         * doc/posix-functions/send.texi: Mention the new module 'send'.
40715         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
40716         * doc/posix-functions/setsockopt.texi: Mention the new module
40717         'setsockopt'.
40718         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
40719         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
40720         listen, connect, accept.
40721         * modules/select-tests (Depends-on): Likewise.
40722
40723 2008-10-05  Bruno Haible  <bruno@clisp.org>
40724
40725         * lib/winsock.c (strerror): Remove unused #undef.
40726         (rpl_close): Remove unused local variable.
40727
40728         * modules/sys_socket (Depends-on); Add errno.
40729
40730 2008-10-05  Bruno Haible  <bruno@clisp.org>
40731
40732         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
40733         (select): Add a link warning when the 'select' module is not used.
40734         * modules/sys_select (Depends-on): Add link-warning.
40735         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
40736         Suggested by Paolo Bonzini.
40737
40738 2008-10-05  Jim Meyering  <meyering@redhat.com>
40739
40740         bootstrap: check for LT_INIT more portably
40741         * build-aux/bootstrap: Avoid using grep -E, since it's not
40742         portable enough.  Suggestion from Bruno Haible.
40743
40744 2008-10-05  Bruno Haible  <bruno@clisp.org>
40745
40746         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
40747         as being fixed by gnulib.
40748
40749 2008-10-05  Bruno Haible  <bruno@clisp.org>
40750
40751         * modules/select-tests: New file, mostly copied from
40752         modules/sys_select-tests.
40753         * tests/test-select.c: New file, mostly copied from
40754         tests/test-sys_select.c.
40755         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
40756         * modules/sys_select-tests (Depends-on): Remove all dependencies.
40757         (Makefile.am): Remove test_sys_select_LDADD.
40758
40759         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
40760         to an undefined symbol, for an error message.
40761         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
40762         (gl_SYS_SELECT_H_DEFAULTS): New macro.
40763         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
40764         winsock-select.c here.
40765         * modules/sys_select (Files): Remove lib/winsock-select.c.
40766         (Depends-on): Remove alloca.
40767         (Makefile.am): Substitute GNULIB_SELECT.
40768         * modules/select: New file.
40769         * doc/posix-functions/select.texi: Update.
40770
40771 2008-10-05  Bruno Haible  <bruno@clisp.org>
40772
40773         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
40774         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
40775         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
40776         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
40777         getdtablesize.
40778         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
40779         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
40780
40781 2008-10-05  Bruno Haible  <bruno@clisp.org>
40782
40783         * modules/getdtablesize-tests: New file.
40784         * tests/test-getdtablesize.c: New file.
40785
40786         New module 'getdtablesize'.
40787         * lib/unistd.in.h (getdtablesize): New declaration.
40788         * lib/getdtablesize.c: New file.
40789         * m4/getdtablesize.m4: New file.
40790         * modules/getdtablesize: New file.
40791         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
40792         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
40793         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
40794         HAVE_GETDTABLESIZE.
40795         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
40796
40797 2008-10-05  Bruno Haible  <bruno@clisp.org>
40798
40799         * modules/sched (Makefile.am): Fix typo.
40800         Reported by Simon Josefsson.
40801
40802 2008-10-05  Jim Meyering  <meyering@redhat.com>
40803
40804         bootstrap: check for LT_INIT, too
40805         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
40806         are deprecated.  Suggestion from Ralf Wildenhues.
40807
40808 2008-10-05  Bruno Haible  <bruno@clisp.org>
40809
40810         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
40811         overriding them by ours.
40812         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
40813
40814 2008-10-05  Jim Meyering  <meyering@redhat.com>
40815
40816         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
40817         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
40818         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
40819
40820 2008-10-04  Bruno Haible  <bruno@clisp.org>
40821
40822         * modules/dup2 (License): Change to LGPLv2+.
40823         * modules/sleep (License): Likewise.
40824         * modules/perror (License): Likewise.
40825         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
40826         Blake.
40827         * modules/signal (License): Likewise.
40828         * modules/sigprocmask (License): Likewise.
40829         * modules/raise (License): Change to LGPLv2+, with approval by Jim
40830         Meyering.
40831
40832 2008-10-04  Bruno Haible  <bruno@clisp.org>
40833
40834         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
40835         Reported by Rainer Tammer <tammer@tammer.net>.
40836
40837 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
40838             Bruno Haible  <bruno@clisp.org>
40839
40840         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
40841         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
40842         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
40843
40844 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
40845
40846         filevercmp: new module
40847         * lib/filevercmp.h: New function filevercmp comparing version strings.
40848         * lib/filevercmp.c: Implementation of filevercmp function.
40849         * modules/filevercmp: Module metadata.
40850         * tests/test-filevercmp.c: Unit test for new module.
40851         * modules/filevercmp-tests: Unit test metadata.
40852         * MODULES.html.sh: Add filevercmp module.
40853
40854 2008-10-03  Bruno Haible  <bruno@clisp.org>
40855
40856         * lib/c-ctype.h: Add comment.
40857         Reported by Jim Meyering.
40858
40859 2008-10-02  Bruno Haible  <bruno@clisp.org>
40860
40861         * modules/posix_spawn-internal (Depends-on): Add 'open'.
40862
40863 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
40864
40865         * build-aux/bootstrap: Allow renaming bootstrap, and change the
40866         name of bootstrap.conf accordingly.
40867
40868 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
40869
40870         * build-aux/bootstrap: Install git-merge-changelog configuration
40871         items into .gitconfig if needed.
40872
40873 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
40874
40875         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
40876         git repository, and initialize/update it accordingly.
40877
40878 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
40879
40880         * modules/fsync-tests: New file.
40881         * tests/test-fsync.c: New file.
40882
40883         New module 'fsync'.
40884         * lib/fsync.c: New file.
40885         * m4/fsync.m4: New file.
40886         * modules/fsync: New file.
40887         * lib/unistd.in.h (fsync): New declaration.
40888         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
40889         GNULIB_FSYNC and HAVE_FSYNC.
40890         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
40891         * MODULES.html.sh (posix_functions): Add fsync.
40892         * doc/posix-functions/fsync.texi: Mention the new module.
40893
40894 2008-10-02  Jim Meyering  <meyering@redhat.com>
40895
40896         fts.c: sync with similar code from coreutils' remove.c
40897         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
40898         Guard also with "#if defined __linux__", since for now at least,
40899         this code is Linux-kernel-specific.
40900
40901 2008-10-02  Jim Meyering  <meyering@redhat.com>
40902
40903         fts: bug fixes
40904         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
40905         Include <sys/vfs.h>, not <sys/statfs.h>.
40906
40907         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
40908         Include <sys/vfs.h>, not <sys/statfs.h>.
40909
40910 2008-10-01  Bruno Haible  <bruno@clisp.org>
40911
40912         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
40913         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
40914         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
40915         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
40916         * doc/posix-functions/posix_spawnp.texi: Likewise.
40917         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
40918         whether posix_spawn actually works.
40919         * m4/pipe.m4 (gl_PIPE): Likewise.
40920         * modules/execute (Files): Add m4/posix_spawn.m4.
40921         * modules/pipe (Files): Add m4/posix_spawn.m4.
40922         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
40923
40924 2008-10-01  Jim Meyering  <meyering@redhat.com>
40925
40926         remove trailing spaces
40927         * NEWS: Likewise.
40928         * lib/poll.c (poll): Likewise.
40929         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
40930         * lib/winsock.c (rpl_close): Likewise.
40931         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
40932         * modules/yield: Likewise.
40933         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
40934         * tests/test-sys_select.c (connect_to_socket): Likewise.
40935
40936         fts.c: adjust a new interface to be more generally useful
40937         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
40938         (fts_build): Adjust caller.
40939
40940 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40941
40942         * modules/cond-tests: New file.
40943         * tests/test-cond.c: New file.
40944
40945 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40946             Bruno Haible  <bruno@clisp.org>
40947
40948         * modules/cond (Dependencies): Add errno, time.
40949         * lib/glthread/cond.h: Include <time.h>.
40950         (gl_cond_define, gl_cond_define_initialized): Use the same definition
40951         across platforms.
40952
40953 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40954             Bruno Haible  <bruno@clisp.org>
40955
40956         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
40957
40958 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40959             Bruno Haible  <bruno@clisp.org>
40960
40961         * modules/tls-tests (Depends-on): Add thread, yield.
40962         (configure.ac): Remove all checks.
40963         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
40964         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
40965         gl_thread_self): Remove definitions. Include glthread/thread.h and
40966         glthread/yield.h instead.
40967         (test_tls): Pass an additional NULL argument to gl_thread_join.
40968
40969 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40970             Bruno Haible  <bruno@clisp.org>
40971
40972         * modules/lock-tests (Depends-on): Add thread, yield.
40973         (configure.ac): Remove all checks.
40974         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
40975         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
40976         gl_thread_self): Remove definitions. Include glthread/thread.h and
40977         glthread/yield.h instead.
40978         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
40979         additional NULL argument to gl_thread_join.
40980
40981 2008-09-30  Bruno Haible  <bruno@clisp.org>
40982
40983         Fix the Win32 implementation of the 'thread' module.
40984         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
40985         pointer type.
40986         (gl_thread_self): Invoke gl_thread_self_func.
40987         (gl_thread_self_func): New declaration.
40988         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
40989         (do_init_self_key, init_self_key): New functions.
40990         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
40991         Remove some fields.
40992         (running_threads, running_lock): Remove variables.
40993         (get_current_thread_handle): New function.
40994         (gl_thread_self_func, wrapper_func, glthread_create_func,
40995         glthread_join_func, gl_thread_exit_func): Largely rewritten and
40996         simplified.
40997
40998 2008-09-30  Bruno Haible  <bruno@clisp.org>
40999
41000         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
41001         files.
41002
41003 2008-09-30  Jim Meyering  <meyering@redhat.com>
41004
41005         fts.m4: correct the test for statfs.f_type
41006         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
41007         when checking for statfs.f_type.
41008
41009 2008-09-15  Simon Josefsson  <simon@josefsson.org>
41010
41011         tests: avoid some compiler warnings
41012         * tests/test-memchr.c (main): Pass NULL indirectly.
41013         * tests/test-getdate.c (main): Remove unused variable 'ret'.
41014
41015 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
41016
41017         getdate.y: disallow countable dayshifts like "4 yesterday ago"
41018         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
41019         exactly specified dayshifts.
41020         (dayshift): New rule.
41021         (rel): Add dayshift.
41022         (relative_time_table) [tomorrow, yesterday, today, now]:
41023         Use tDAY_SHIFT in place of tDAY_UNIT.
41024         * tests/test-getdate.c: Add tests for now-disallowed countable
41025         dayshifts, e.g., "4 yesterday ago".
41026
41027 2008-09-29  Bruno Haible  <bruno@clisp.org>
41028
41029         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
41030         * tests/test-posix_spawn1.in.sh: Renamed from
41031         tests/test-posix_spawn.in.sh.
41032         * tests/test-posix_spawn2.c: New file.
41033         * tests/test-posix_spawn2.in.sh: New file.
41034         * modules/posix_spawnp-tests (Files): Update.
41035         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
41036
41037 2008-09-29  Bruno Haible  <bruno@clisp.org>
41038
41039         Propagate effects of putenv/setenv/unsetenv to child processes.
41040         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
41041         * lib/pipe.c (create_pipe): Likewise.
41042
41043 2008-09-29  Bruno Haible  <bruno@clisp.org>
41044
41045         Enable use of shell scripts as executables in mingw.
41046         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
41047         run the program as a shell script.
41048         * lib/pipe.c (create_pipe): Likewise.
41049         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
41050         resulting array.
41051
41052 2008-09-29  Eric Blake  <ebb9@byu.net>
41053
41054         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
41055
41056 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
41057
41058         * doc/posix-functions/accept.texi: Update mingw problems.
41059         * doc/posix-functions/bind.texi: Update mingw problems.
41060         * doc/posix-functions/close.texi: Update mingw problems.
41061         * doc/posix-functions/connect.texi: Update mingw problems.
41062         * doc/posix-functions/getpeername.texi: Update mingw problems.
41063         * doc/posix-functions/getsockname.texi: Update mingw problems.
41064         * doc/posix-functions/getsockopt.texi: Update mingw problems.
41065         * doc/posix-functions/ioctl.texi: Update mingw problems.
41066         * doc/posix-functions/listen.texi: Update mingw problems.
41067         * doc/posix-functions/recv.texi: Update mingw problems.
41068         * doc/posix-functions/recvfrom.texi: Update mingw problems.
41069         * doc/posix-functions/select.texi: Update mingw problems.
41070         * doc/posix-functions/send.texi: Update mingw problems.
41071         * doc/posix-functions/sendto.texi: Update mingw problems.
41072         * doc/posix-functions/setsockopt.texi: Update mingw problems.
41073         * doc/posix-functions/socket.texi: Update mingw problems.
41074
41075 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
41076             Bruno Haible  <bruno@clisp.org>
41077
41078         * lib/sys_select.in.h: Include sys/time.h.
41079         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
41080         * modules/sys_select: Depend on sys_time.
41081         * tests/test-sys_select.c: Test that sys/select.h defines struct
41082         timeval fully.
41083
41084 2008-09-29  Bruno Haible  <bruno@clisp.org>
41085
41086         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
41087         * lib/sys_select.in.h: Likewise.
41088
41089 2008-09-29  Bruno Haible  <bruno@clisp.org>
41090
41091         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
41092
41093 2008-09-29  Bruno Haible  <bruno@clisp.org>
41094
41095         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
41096         Set LIBSOCKET instead of augmenting LIBS.
41097         * modules/sockets (Link): New section.
41098         * modules/sockets-tests (test_sockets_LDADD): New variable.
41099         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
41100         * modules/poll-tests (test_poll_LDADD): New variable.
41101         * NEWS: Document the change.
41102
41103 2008-09-29  Bruno Haible  <bruno@clisp.org>
41104
41105         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
41106         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
41107         ARPA_INET_H directly.
41108         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
41109
41110 2008-09-28  Bruno Haible  <bruno@clisp.org>
41111
41112         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
41113         from gl_HEADER_SYS_SOCKET.
41114         (gl_HEADER_SYS_SOCKET): Invoke it.
41115         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
41116
41117 2008-09-28  Bruno Haible  <bruno@clisp.org>
41118
41119         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
41120         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
41121         Needed on OSF/1 4.0.
41122
41123 2008-09-28  Bruno Haible  <bruno@clisp.org>
41124
41125         Override open more carefully.
41126         * lib/open.c (orig_open): New function.
41127         (rpl_open): Use orig_open instead of open.
41128         * lib/fcntl.in.h: Add special invocation convention.
41129         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
41130         (gl_FUNC_OPEN): Invoke it.
41131
41132         Override freopen more carefully.
41133         * lib/freopen.c (orig_freopen): New function.
41134         (rpl_freopen): Use orig_freopen instead of freopen.
41135         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
41136         (gl_FUNC_FREOPEN): Invoke it.
41137
41138         Override fopen more carefully.
41139         * lib/fopen.c (orig_fopen): New function.
41140         (rpl_fopen): Use orig_fopen instead of fopen.
41141         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
41142         (gl_FUNC_FOPEN): Invoke it.
41143         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
41144
41145 2008-09-28  Bruno Haible  <bruno@clisp.org>
41146
41147         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
41148         SIGPIPE.
41149
41150 2008-09-28  Bruno Haible  <bruno@clisp.org>
41151
41152         * tests/test-sigaction.c (handler, main): Disable the check whether
41153         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
41154         glibc systems with LinuxThreads.
41155
41156 2008-09-28  Bruno Haible  <bruno@clisp.org>
41157
41158         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
41159
41160         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
41161         with AIX xlc.
41162         * lib/fcntl.in.h (open): Likewise.
41163         Reported by Rainer Tammer <tammer@tammer.net>.
41164
41165 2008-09-28  Bruno Haible  <bruno@clisp.org>
41166
41167         * modules/posix_spawnp-tests: New file.
41168         * tests/test-posix_spawn.c: New file.
41169         * tests/test-posix_spawn.in.sh: New file.
41170
41171         New module 'posix_spawnp'.
41172         * modules/posix_spawnp: New file.
41173         * lib/spawnp.c: New file, from GNU libc with modifications.
41174         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
41175
41176         New module 'posix_spawn'.
41177         * modules/posix_spawn: New file.
41178         * lib/spawn.c: New file, from GNU libc with modifications.
41179         * doc/posix-functions/posix_spawn.texi: Mention the new module.
41180
41181         New module 'posix_spawnattr_destroy'.
41182         * modules/posix_spawnattr_destroy: New file.
41183         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
41184         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
41185         module.
41186
41187         New module 'posix_spawnattr_setsigmask'.
41188         * modules/posix_spawnattr_setsigmask: New file.
41189         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
41190         modifications.
41191         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
41192         new module.
41193
41194         New module 'posix_spawnattr_getsigmask'.
41195         * modules/posix_spawnattr_getsigmask: New file.
41196         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
41197         modifications.
41198         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
41199         new module.
41200
41201         New module 'posix_spawnattr_setsigdefault'.
41202         * modules/posix_spawnattr_setsigdefault: New file.
41203         * lib/spawnattr_setdefault.c: New file, from GNU libc with
41204         modifications.
41205         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
41206         new module.
41207
41208         New module 'posix_spawnattr_getsigdefault'.
41209         * modules/posix_spawnattr_getsigdefault: New file.
41210         * lib/spawnattr_getdefault.c: New file, from GNU libc with
41211         modifications.
41212         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
41213         new module.
41214
41215         New module 'posix_spawnattr_setschedpolicy'.
41216         * modules/posix_spawnattr_setschedpolicy: New file.
41217         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
41218         modifications.
41219         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
41220         new module.
41221
41222         New module 'posix_spawnattr_getschedpolicy'.
41223         * modules/posix_spawnattr_getschedpolicy: New file.
41224         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
41225         modifications.
41226         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
41227         new module.
41228
41229         New module 'posix_spawnattr_setschedparam'.
41230         * modules/posix_spawnattr_setschedparam: New file.
41231         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
41232         modifications.
41233         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
41234         new module.
41235
41236         New module 'posix_spawnattr_getschedparam'.
41237         * modules/posix_spawnattr_getschedparam: New file.
41238         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
41239         modifications.
41240         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
41241         new module.
41242
41243         New module 'posix_spawnattr_setpgroup'.
41244         * modules/posix_spawnattr_setpgroup: New file.
41245         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
41246         modifications.
41247         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
41248         module.
41249
41250         New module 'posix_spawnattr_getpgroup'.
41251         * modules/posix_spawnattr_getpgroup: New file.
41252         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
41253         modifications.
41254         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
41255         module.
41256
41257         New module 'posix_spawnattr_setflags'.
41258         * modules/posix_spawnattr_setflags: New file.
41259         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
41260         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
41261         module.
41262
41263         New module 'posix_spawnattr_getflags'.
41264         * modules/posix_spawnattr_getflags: New file.
41265         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
41266         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
41267         module.
41268
41269         New module 'posix_spawnattr_init'.
41270         * modules/posix_spawnattr_init: New file.
41271         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
41272         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
41273         module.
41274
41275         New module 'posix_spawn_file_actions_destroy'.
41276         * modules/posix_spawn_file_actions_destroy: New file.
41277         * lib/spawn_faction_destroy.c: New file, from GNU libc with
41278         modifications.
41279         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
41280         the new module.
41281
41282         New module 'posix_spawn_file_actions_addopen'.
41283         * modules/posix_spawn_file_actions_addopen: New file.
41284         * lib/spawn_faction_addopen.c: New file, from GNU libc with
41285         modifications.
41286         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
41287         the new module.
41288
41289         New module 'posix_spawn_file_actions_adddup2'.
41290         * modules/posix_spawn_file_actions_adddup2: New file.
41291         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
41292         modifications.
41293         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
41294         the new module.
41295
41296         New module 'posix_spawn_file_actions_addclose'.
41297         * modules/posix_spawn_file_actions_addclose: New file.
41298         * lib/spawn_faction_addclose.c: New file, from GNU libc with
41299         modifications.
41300         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
41301         the new module.
41302
41303         New module 'posix_spawn_file_actions_init'.
41304         * modules/posix_spawn_file_actions_init: New file.
41305         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
41306         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
41307         new module.
41308
41309         New module 'posix_spawn-internal'.
41310         * modules/posix_spawn-internal: New file.
41311         * lib/spawn_int.h: New file, from GNU libc with modifications.
41312         * lib/spawni.c: New file, from GNU libc with modifications.
41313         * m4/posix_spawn.m4: New file.
41314
41315         New module 'spawn'.
41316         * modules/spawn: New file.
41317         * lib/spawn.in.h: New file, from GNU libc with modifications.
41318         * m4/spawn_h.m4: New file.
41319         * doc/posix-headers/spawn.texi: Mention the new module.
41320
41321 2008-09-28  Bruno Haible  <bruno@clisp.org>
41322
41323         * modules/sched-tests: New file.
41324         * tests/test-sched.c: New file.
41325
41326         New module 'sched'.
41327         * modules/sched: New file.
41328         * lib/sched.in.h: New file.
41329         * m4/sched_h.m4: New file.
41330         * doc/posix-headers/sched.texi: Mention the new module.
41331
41332 2008-09-27  Eric Blake  <ebb9@byu.net>
41333
41334         Fix previous patch, and tweak references to $0.
41335         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
41336         (func_version, func_gnulib_dir): Don't call this program
41337         gnulib-tool.
41338         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
41339         with using $0 in function.
41340         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
41341         (func_fatal_error): Reuse the name the user invoked us with.
41342
41343 2008-09-27  Bruno Haible  <bruno@clisp.org>
41344
41345         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
41346         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
41347         (gl_ICONV_H): Not here.
41348         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
41349         instead of assigning ICONV_H directly.
41350
41351         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
41352         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
41353         WCHAR_H directly.
41354
41355 2008-09-27  Bruno Haible  <bruno@clisp.org>
41356
41357         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
41358         * modules/arpa_inet (Depends-on): Add link-warning.
41359         (Makefile.am): Insert the definition of GL_LINK-WARNING.
41360         * modules/unistd (Makefile.am): Likewise.
41361
41362 2008-09-26  Bruno Haible  <bruno@clisp.org>
41363
41364         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
41365         variables.
41366         (func_version): Essentially copied from gnulib-tool.
41367         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
41368         func_readlink): Copied from gnulib-tool.
41369
41370 2008-09-26  Bruno Haible  <bruno@clisp.org>
41371
41372         * gnulib-tool (func_version): Change directory to $gnulib_dir before
41373         invoking git-version-gen.
41374
41375 2008-09-26  Bruno Haible  <bruno@clisp.org>
41376
41377         * posix-modules: Update to directory names changed on 2008-01-19.
41378         Remove commas in output before splitting into words. No more need to
41379         avoid 'ftruncate' since 2007-02-19.
41380
41381 2008-09-26  Bruno Haible  <bruno@clisp.org>
41382
41383         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
41384
41385 2008-09-26  Bruno Haible  <bruno@clisp.org>
41386
41387         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
41388         * modules/fwriteerror (Depends-on): Add errno.
41389
41390 2008-09-26  Bruno Haible  <bruno@clisp.org>
41391
41392         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
41393         * tests/test-vc-list-files-cvs.sh: Likewise.
41394
41395 2008-09-26  Bruno Haible  <bruno@clisp.org>
41396
41397         * doc/posix-headers/sys_resource.texi: Reorder items.
41398
41399 2008-09-26  Jim Meyering  <meyering@redhat.com>
41400
41401         fts: tweak inode comparison function
41402         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
41403         inode numbers, as documented.
41404
41405         fts: sort dirent entries on inode number before traversing
41406         This avoids a quadratic, seek-related performance penalty when
41407         operating on a directory containing many entries (measurable at 10k;
41408         3.5 hours at 2 million entries with a cold cache) on certain types
41409         of file systems, including ext3 and ext4, but not tmpfs.
41410         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
41411         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
41412         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
41413         (fs_handles_readdir_ordered_dirents_efficiently): New function.
41414         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
41415         (fts_build): Set the stat.st_ino member from D_INO.
41416         If it is likely to be useful, sort dirent entries on inode number.
41417
41418         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
41419         and the struct statfs.f_type member.
41420         * modules/fts (Depends-on): Add d-ino.
41421
41422 2008-09-26  Bruno Haible  <bruno@clisp.org>
41423
41424         * modules/sigpipe-die (Depends-on): Add sigpipe.
41425
41426         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
41427         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
41428         and GNULIB_STDIO_H_SIGPIPE are set.
41429         * lib/stdio-write.c: New file.
41430         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
41431         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
41432         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
41433         REPLACE_STDIO_WRITE_FUNCS.
41434         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
41435         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
41436         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
41437         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
41438         * modules/stdio (Files): Add lib/stdio-write.c.
41439         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
41440         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
41441         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
41442         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
41443         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
41444         REPLACE_FPRINTF_POSIX.
41445         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
41446         REPLACE_PRINTF_POSIX.
41447         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
41448         REPLACE_VFPRINTF_POSIX.
41449         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
41450         REPLACE_VPRINTF_POSIX.
41451         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
41452         SIGPIPE issue.
41453         * doc/posix-functions/fputc.texi: Likewise.
41454         * doc/posix-functions/fputs.texi: Likewise.
41455         * doc/posix-functions/fwrite.texi: Likewise.
41456         * doc/posix-functions/printf.texi: Likewise.
41457         * doc/posix-functions/putc.texi: Likewise.
41458         * doc/posix-functions/putchar.texi: Likewise.
41459         * doc/posix-functions/puts.texi: Likewise.
41460         * doc/posix-functions/vfprintf.texi: Likewise.
41461         * doc/posix-functions/vprintf.texi: Likewise.
41462
41463         * modules/safe-write (Depends-on): Add write.
41464
41465         * modules/sigpipe-tests: New file.
41466         * tests/test-sigpipe.c: New file.
41467         * tests/test-sigpipe.sh: New file.
41468
41469         * modules/write: New file.
41470         * lib/unistd.in.h: Include <sys/types.h>.
41471         (write): New declaration.
41472         * lib/write.c: New file.
41473         * m4/write.m4: New file.
41474         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
41475         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
41476         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
41477         GNULIB_WRITE, REPLACE_WRITE.
41478         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
41479         and the SIGPIPE issue.
41480
41481         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
41482         (raise): New declaration.
41483         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
41484         (ext_signal): New function.
41485         (rpl_raise): New function.
41486         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
41487         GNULIB_SIGNAL_H_SIGPIPE.
41488         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
41489         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
41490
41491         * modules/sigpipe: New file.
41492         * m4/sigpipe.m4: New file.
41493
41494 2008-09-25  Derek Price  <derek@ximbiot.com>
41495             Bruno Haible  <bruno@clisp.org>
41496
41497         * gnulib-tool (func_import): Report all license incompatibilities, not
41498         just the first one.
41499
41500 2008-09-25  Bruno Haible  <bruno@clisp.org>
41501
41502         * gnulib-tool (func_import): When computing the edits, consider not
41503         only the Makefile.ams that exist but also those that will be generated.
41504
41505 2008-09-25  Simon Josefsson  <simon@josefsson.org>
41506
41507         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
41508         fixes gnulib-tool --test warning about duplicate dependency.
41509
41510 2008-09-25  Bruno Haible  <bruno@clisp.org>
41511
41512         * gnulib-tool: Don't ask the user to perform edits in the generated
41513         Makefile.ams.
41514         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
41515         apply to the Makefile.am being generated.
41516         (func_emit_tests_Makefile_am): Execute edits that apply to the
41517         Makefile.am being generated.
41518         (func_import): Setup list of Makefile.am edits before emitting the
41519         Makefile.ams, not at the end.
41520         (func_create_testdir): Update.
41521         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
41522
41523 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
41524
41525         * gnulib-tool (func_import): Store the --tests-base option in the
41526         comment in gnulib-cache.m4.
41527
41528 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
41529
41530         * NEWS: Document increased portability that sys_select now provides.
41531
41532         * lib/sys_select.in.h: Install select wrapper.
41533         * lib/sys_socket.in.h: Use more descriptive name when there is no
41534         select wrapper.
41535         * lib/winsock-select.c: New.
41536         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
41537         Require gl_HEADER_SYS_SOCKET.
41538         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
41539         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
41540         * tests/test-sys_select.c: Add functional tests.
41541
41542 2008-09-24  Eric Blake  <ebb9@byu.net>
41543
41544         open, fopen: close fd leak in last patch
41545         * lib/open.c (rpl_open): Close fd before returning error.
41546         * lib/fopen.c (rpl_fopen): Close fd before returning error.
41547         * doc/posix-functions/open.texi (open): Document that Irix also
41548         has the bug.
41549         * doc/posix-functions/fopen.texi (fopen): Likewise.
41550         Reported by Paolo Bonzini.
41551
41552 2008-09-24  Bruno Haible  <bruno@clisp.org>
41553
41554         Ensure that a filename ending in a slash cannot be used to access a
41555         non-directory.
41556         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
41557         to check whether it's really a directory.
41558         * lib/fopen.c: Include fcntl.h, unistd.h.
41559         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
41560         and fdopen().
41561         * modules/fopen (Depends-on): Add unistd.
41562         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
41563         * tests/test-fopen.c (main): Likewise.
41564         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
41565         * doc/posix-functions/fopen.texi: Likewise.
41566         Reported by Eric Blake.
41567
41568 2008-09-23  Eric Blake  <ebb9@byu.net>
41569
41570         c-stack: avoid compiler optimizations when provoking overflow
41571         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
41572         recursion harder to optimize, to ensure a stack overflow occurs.
41573         * tests/test-c-stack.c (recurse): Likewise.
41574         Borrowed from libsigsegv.
41575
41576         c-stack: work around Irix sigaltstack bug
41577         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
41578         whether sigaltstack uses wrong end of stack_t (copied in part from
41579         libsigsegv).
41580         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
41581         Irix bug, without requiring an over-allocation.
41582         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
41583         bug.
41584
41585         fopen: document mingw bug on directories
41586         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
41587         not allowing a stream visiting a directory, even though reading
41588         from such a stream is not portable.
41589
41590 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
41591
41592         * lib/poll.c: Rewrite.
41593         * modules/poll: Depend on alloca.
41594
41595 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
41596
41597         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
41598         instead define prototypes for a full set of wrappers.  Ensure
41599         that Cygwin does not use the compatibility code, which is only
41600         for MinGW.
41601         * lib/winsock.c: New.
41602         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
41603         * modules/sys_socket: Add lib/winsock.c.
41604
41605         * modules/poll-tests: Add errno and perror.
41606         * tests/test-poll.c: Use ioctl, not ioctlsocket.
41607
41608 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
41609
41610         * tests/test-poll.c: Downgrade minimum needed Winsock version.
41611
41612 2008-09-23  Bruno Haible  <bruno@clisp.org>
41613
41614         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
41615         * doc/glibc-functions/*: Likewise.
41616
41617 2008-09-23  Simon Josefsson  <simon@josefsson.org>
41618
41619         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
41620         success.
41621
41622 2008-09-22  Eric Blake  <ebb9@byu.net>
41623             Bruno Haible  <bruno@clisp.org>
41624
41625         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
41626         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
41627         supply %A but mishandle pseudo-NaN.
41628         Reported by Simon Josefsson.
41629
41630 2008-09-21  Bruno Haible  <bruno@clisp.org>
41631
41632         * tests/test-lock.c (main): Tweak skip message.
41633         * tests/test-tls.c (main): Likewise.
41634
41635 2008-09-21  Bruno Haible  <bruno@clisp.org>
41636
41637         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
41638         whether 'struct sigaction' has sa_sigaction here...
41639         (gl_PREREQ_SIG_HANDLER_H): ... not here.
41640         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
41641
41642 2008-09-21  Bruno Haible  <bruno@clisp.org>
41643
41644         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
41645         section.
41646         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
41647         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
41648         the new section.
41649         (Support for obsolete systems lacking POSIX:2001): New section.
41650         (String handling <string.h>): Move strdup to the new section.
41651         Suggested by Simon Josefsson and Paolo Bonzini.
41652
41653 2008-09-21  Bruno Haible  <bruno@clisp.org>
41654
41655         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
41656         exponents in %e and %g results on 'long double'. Needed for mingw's
41657         improved *printf functions.
41658         * tests/test-vasprintf-posix.c (test_function): Likewise.
41659         * tests/test-snprintf-posix.h (test_function): Likewise.
41660         * tests/test-sprintf-posix.h (test_function): Likewise.
41661         Reported by Eric Blake.
41662
41663 2008-09-21  Bruno Haible  <bruno@clisp.org>
41664
41665         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
41666         * tests/test-sprintf-posix.h (test_function): Likewise.
41667
41668 2008-09-21  Bruno Haible  <bruno@clisp.org>
41669
41670         * modules/getpass (Depends-on): Add strdup-posix.
41671
41672         New module 'strdup-posix'.
41673         * modules/strdup-posix: New file.
41674         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
41675         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
41676         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
41677         REPLACE_STRDUP.
41678         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
41679         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
41680         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
41681         strdup-posix.
41682
41683         * modules/strdup (Depends-on): Remove malloc-posix.
41684
41685 2008-09-20  Bruno Haible  <bruno@clisp.org>
41686
41687         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
41688         Wildenhues.
41689
41690 2008-09-20  Bruno Haible  <bruno@clisp.org>
41691
41692         Ensure that wint_t gets defined on IRIX 5.3.
41693         * lib/wchar.in.h (wint_t): Define if not defined by the system.
41694         * lib/wctype.in.h (wint_t): Likewise.
41695         (__wctype_wint_t): Remove type.
41696         (isw*): Use wint_t instead of __wctype_wint_t.
41697         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
41698         * modules/wchar (Files): Add m4/wint_t.m4.
41699         (Makefile.am): Substitute HAVE_WINT_T.
41700         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
41701         * tests/test-wctype.c: Check that wint_t is defined.
41702         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
41703         * doc/posix-headers/wctype.texi: Likewise.
41704         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
41705
41706 2008-09-18  Bruno Haible  <bruno@clisp.org>
41707
41708         * gnulib-tool (func_exit): Update comment.
41709
41710 2008-09-18  Simon Josefsson  <simon@josefsson.org>
41711
41712         * modules/getaddrinfo (Depends-on): Remove strdup, this module
41713         assumes strdup exists and does not depend on strdup to return
41714         ENOMEM on out of memory conditions.
41715
41716 2008-09-18  Bruno Haible  <bruno@clisp.org>
41717
41718         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
41719         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
41720         digits for the exponent.
41721
41722 2008-09-18  Jim Meyering  <meyering@redhat.com>
41723             Bruno Haible  <bruno@clisp.org>
41724
41725         * lib/vasnprintf.c (decimal_point_char): Define also if
41726         NEED_PRINTF_INFINITE_LONG_DOUBLE.
41727
41728 2008-09-16  Bruno Haible  <bruno@clisp.org>
41729         and Eric Blake  <ebb9@byu.net>
41730
41731         vasnprintf: support Irix 5.3
41732         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
41733         that mishandle long double infinity.
41734         Reported by Tom G. Christensen.
41735
41736 2008-09-16  Bruno Haible  <bruno@clisp.org>
41737
41738         * doc/glibc-functions/scandir.texi: Mention the function is missing on
41739         Solaris 9.
41740         * doc/glibc-functions/alphasort.texi: Likewise.
41741         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
41742
41743 2008-09-16  Jim Meyering  <meyering@redhat.com>
41744
41745         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
41746         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
41747         a umask modification leak out of a subshell.  Otherwise, the
41748         opensolaris /bin/sh would be accepted and thus cause unwarranted
41749         failures in the coreutils test suite.
41750
41751 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
41752
41753         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
41754         to succeed.
41755
41756 2008-09-16  Jim Meyering  <meyering@redhat.com>
41757
41758         avoid spurious test failure when library is built without ACL support
41759         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
41760         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
41761         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
41762         * tests/test-copy-acl.sh: Likewise.
41763
41764 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41765
41766         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
41767         based on character occurrence counts.
41768
41769 2008-09-15  Eric Blake  <ebb9@byu.net>
41770
41771         tests: avoid some compiler warnings
41772         * tests/test-memchr.c (main): Pass NULL indirectly.
41773         * tests/test-closein.c (main): Avoid unused variable.
41774
41775 2008-09-15  Bruno Haible  <bruno@clisp.org>
41776
41777         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
41778         are missing on OpenBSD 4.0 individually.
41779         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
41780
41781 2008-09-15  Bruno Haible  <bruno@clisp.org>
41782
41783         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
41784         * doc/posix-functions/strerror.texi: Mention also Cygwin.
41785         * doc/posix-functions/perror.texi: Likewise.
41786         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
41787         is missing.
41788         Reported by Eric Blake.
41789
41790         * lib/errno.in.h: Use replacement values >= 2000.
41791         Reported by Eric Blake.
41792
41793 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41794
41795         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
41796         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
41797         limit.
41798         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
41799         compareseq was aborted.
41800
41801 2008-09-14  Bruno Haible  <bruno@clisp.org>
41802
41803         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
41804         yvec_edit_count.
41805         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
41806         (fstrcmp_bounded): Simplify result computation accordingly.
41807
41808 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41809
41810         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
41811         (fstrcmp): Define in terms of fstrcmp_bounded.
41812         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
41813         lower_bound argument.
41814         Return quickly if the result is certainly < lower_bound.
41815         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
41816
41817 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41818
41819         * lib/diffseq.h (EARLY_ABORT): New macro.
41820         (compareseq): Change return type to bool. Return true when EARLY_ABORT
41821         evaluates to true.
41822
41823 2008-09-14  Bruno Haible  <bruno@clisp.org>
41824
41825         * modules/perror-tests: New file.
41826         * tests/test-perror.sh: New file.
41827         * tests/test-perror.c: New file.
41828
41829         New module 'perror'.
41830         * lib/stdio.in.h (perror): New declaration.
41831         * lib/perror.c: New file.
41832         * m4/perror.m4: New file.
41833         * modules/perror: New file.
41834         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
41835         * doc/posix-functions/perror.texi: Mention the perror module.
41836         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
41837         REPLACE_PERROR.
41838         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
41839         REPLACE_PERROR.
41840
41841 2008-09-14  Bruno Haible  <bruno@clisp.org>
41842
41843         * modules/stdio (Makefile.am): Reorder to match the order in
41844         lib/stdio.in.h.
41845         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
41846
41847 2008-09-13  Bruno Haible  <bruno@clisp.org>
41848
41849         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
41850
41851 2008-09-13  Bruno Haible  <bruno@clisp.org>
41852
41853         Extend strerror to cover the added errno values.
41854         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
41855         (rpl_strerror): Provide error messages for the added errno values and
41856         for the WSA* values.
41857         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
41858         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
41859         strerror.
41860         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
41861         * modules/strerror (Depends-on): Add errno.
41862         * doc/posix-functions/strerror.texi: Document the change.
41863         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
41864         and EOVERFLOW.
41865
41866 2008-09-13  Bruno Haible  <bruno@clisp.org>
41867
41868         * modules/EOVERFLOW: Remove file.
41869         * m4/eoverflow.m4: Remove file.
41870         * modules/EOVERFLOW-tests: Remove file.
41871         * tests/test-EOVERFLOW.c: Remove file.
41872         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
41873         * modules/ftell (Depends-on): Likewise.
41874         * modules/getdelim (Depends-on): Likewise.
41875         * modules/getugroups (Depends-on): Likewise.
41876         * modules/poll (Depends-on): Likewise.
41877         * modules/snprintf (Depends-on): Likewise.
41878         * modules/sprintf-posix (Depends-on): Likewise.
41879         * modules/vasnprintf (Depends-on): Likewise.
41880         * modules/vasprintf (Depends-on): Likewise.
41881         * modules/vfprintf-posix (Depends-on): Likewise.
41882         * modules/vsnprintf (Depends-on): Likewise.
41883         * modules/vsprintf-posix (Depends-on): Likewise.
41884         * modules/xvasprintf (Depends-on): Likewise.
41885         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
41886         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
41887         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
41888         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
41889         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
41890         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
41891         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
41892         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
41893         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
41894         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
41895         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
41896         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
41897         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
41898         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
41899         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
41900         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
41901         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
41902         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
41903         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
41904         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
41905         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
41906         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
41907         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
41908         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
41909         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
41910         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
41911         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
41912         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
41913         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
41914         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
41915         * MODULES.html.sh: Remove EOVERFLOW.
41916         * NEWS: Mention the change.
41917
41918 2008-09-13  Bruno Haible  <bruno@clisp.org>
41919
41920         * modules/errno-tests: New file.
41921         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
41922
41923         * lib/errno.in.h: New file.
41924         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
41925         * modules/errno: New file.
41926         * doc/posix-headers/errno.texi: Update documentation.
41927         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
41928
41929 2008-09-13  Bruno Haible  <bruno@clisp.org>
41930
41931         * tests/test-poll.c: Use #if for native Windows, rather than testing
41932         __MSVCRT__.
41933
41934 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
41935             Bruno Haible  <bruno@clisp.org>
41936
41937         * lib/glob.c: Don't include <pwd.h> on native Windows.
41938         (WINDOWS32): New macro.
41939         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
41940
41941 2008-09-13  Bruno Haible  <bruno@clisp.org>
41942
41943         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
41944         (ETIMEDOUT): Remove macro.
41945         (glthread_cond_timedwait_multithreaded): New declaration.
41946         (glthread_cond_timedwait): Use it.
41947         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
41948         (glthread_cond_timedwait_multithreaded): New function.
41949
41950 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
41951
41952         * modules/poll-tests: Do not check for io.h.
41953         * tests/test-poll.c: Check for __MSVCRT__ instead.
41954
41955 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
41956
41957         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
41958         * modules/poll-tests: Add inet_pton, stdbool, sockets.
41959         * tests/test-poll.c: Use them.  Use _pipe on Windows.
41960
41961 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
41962
41963         * modules/poll-tests: New.
41964         * tests/test-poll.c: New.
41965
41966 2008-09-12  Eric Blake  <ebb9@byu.net>
41967
41968         frexp: test for NetBSD failure on -0.0
41969         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
41970         not all, bugs from NetBSD 3.0 have been fixed.
41971         * doc/posix-functions/frexp.texi (frexp): Document bug.
41972         Reported by Thomas Klausner.
41973
41974         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
41975         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
41976         literal -0.0.
41977         Reported by Jonathan C. Patschke <jp@centtech.com>.
41978
41979 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
41980
41981         * lib/glthread/cond.h: Use dummy implementation also if
41982         USE_WIN32_THREADS.
41983
41984 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
41985
41986         * modules/fnmatch-posix (License): Change to LGPLv2+.
41987         * modules/fnmatch-gnu (License): Likewise.
41988
41989 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
41990
41991         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
41992
41993 2008-09-11  Jim Meyering  <meyering@redhat.com>
41994
41995         * users.txt: Add gtk-vnc.
41996
41997 2008-09-08  Simon Josefsson  <simon@josefsson.org>
41998
41999         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
42000         rotate amounts.
42001
42002         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
42003         required for 16-bit and 8-bit rotates.
42004         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
42005         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
42006         UINT8_MAX instead of hard-coded constants.
42007         Suggested by Paul Eggert.
42008
42009 2008-09-07  Bruno Haible  <bruno@clisp.org>
42010
42011         * tests/test-striconveh.c (main): Check behaviour when converting from
42012         UTF-7.
42013
42014         Make striconveh work better with stateful encodings.
42015         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
42016         that iconv does not increment the inptr when returning -1/EINVAL.
42017
42018 2008-09-07  Bruno Haible  <bruno@clisp.org>
42019
42020         * build-aux/config.rpath: Update according to libtool-2.2.6.
42021         * build-aux/config.libpath: Likewise.
42022
42023 2008-09-06  Bruno Haible  <bruno@clisp.org>
42024
42025         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
42026         * lib/freadptr.c (freadptr): Likewise.
42027         * lib/freadseek.c (freadptrinc): Likewise.
42028         Reported by Simon Josefsson.
42029
42030 2008-09-06  Bruno Haible  <bruno@clisp.org>
42031
42032         * modules/freadptr (License): Change to LGPLv2+.
42033         * modules/freadseek (License): Likewise.
42034         Suggested by Eric Blake.
42035
42036         * modules/memchr2 (License): Change to LGPLv2+.
42037         Approved by Eric Blake.
42038
42039 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42040             Bruno Haible  <bruno@clisp.org>
42041
42042         Make gnulib-tool work with native 'sed' on AIX.
42043         * gnulib-tool (sed_noop): New variable.
42044         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
42045         func_add_or_update, func_create_testdir): Use it to initialize sed
42046         script variables.
42047         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
42048
42049 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
42050             Bruno Haible  <bruno@clisp.org>
42051
42052         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
42053         also works after #include directives.
42054
42055 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
42056
42057         getdate.y: reject an out-of-range timezone value
42058         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
42059         the range [-24...+24].  When specified with only one or two digits,
42060         * tests/test-getdate.c: Tests for the fix.
42061         * doc/getdate.texi: Document this change.
42062
42063 2008-09-03  Bruno Haible  <bruno@clisp.org>
42064
42065         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
42066
42067 2008-09-02  Simon Josefsson  <simon@josefsson.org>
42068
42069         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
42070         <bruce.korb@gmail.com> with ideas from Ben Pfaff
42071         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
42072         Blake <ebb9@byu.net>.
42073
42074         * tests/test-bitrotate.c: Add more test vectors.
42075
42076 2008-09-02  Eric Blake  <ebb9@byu.net>
42077
42078         vasnprintf-posix: handle large precision via %.*d
42079         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
42080         when handling it ourselves.
42081         * tests/test-vasnprintf-posix.c (test_function): Add test.
42082         * tests/test-snprintf-posix.h (test_function): Likewise.
42083         * tests/test-sprintf-posix.h (test_function): Likewise.
42084         * tests/test-vasprintf-posix.c (test_function): Likewise.
42085         Reported by Alain Guibert.
42086
42087 2008-09-01  Eric Blake  <ebb9@byu.net>
42088
42089         c-stack: make configure-time check more robust
42090         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
42091         successful sigaction call.
42092         Reported by Tom G. Christensen.
42093
42094 2008-09-01  Bruno Haible  <bruno@clisp.org>
42095
42096         New module 'findprog-lgpl'.
42097         * modules/findprog-lgpl: New file.
42098         * lib/findprog-lgpl.c: New file.
42099         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
42100         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
42101         to decide whether to use strdup or xstrdup, concatenated_filename or
42102         xconcatenated_filename.
42103
42104 2008-09-01  Bruno Haible  <bruno@clisp.org>
42105
42106         Split module 'concat-filename' into 'concat-filename' (LGPL) and
42107         'xconcat-filename' (GPL).
42108         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
42109         (License): Change to LGPLv2+.
42110         * modules/xconcat-filename: New file.
42111         * lib/concat-filename.h (concatenated_filename): Change specification.
42112         (xconcatenated_filename): New declaration.
42113         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
42114         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
42115         memory situations.
42116         * lib/xconcat-filename.c: New file.
42117         * NEWS: Mention the change.
42118         * lib/findprog.c: Include concat-filename.h, not filename.h.
42119         (find_in_path): Use xconcatenated_filename instead of
42120         concatenated_filename.
42121         * lib/javacomp.c: Include concat-filename.h, not filename.h.
42122         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
42123         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
42124         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
42125         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
42126         instead of concatenated_filename.
42127         * lib/javaexec.c: Include concat-filename.h, not filename.h.
42128         (execute_java_class): Use xconcatenated_filename instead of
42129         concatenated_filename.
42130         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
42131         * modules/javacomp (Depends-on): Likewise.
42132         * modules/javaexec (Depends-on): Likewise.
42133
42134 2008-09-01  Bruno Haible  <bruno@clisp.org>
42135
42136         Split module 'filename' into 'filename' and 'concat-filename'.
42137         * modules/filename: Keep only lib/filename.h.
42138         (License): Change to LGPLv2+.
42139         * modules/concat-filename: New file, extracted from modules/filename.
42140         * lib/filename.h (concatenated_filename): Remove declaration.
42141         * lib/concat-filename.h: New file, extracted from lib/filename.h.
42142         * lib/concat-filename.c: Include concat-filename.h.
42143         * NEWS: Mention the change.
42144
42145 2008-09-01  Simon Josefsson  <simon@josefsson.org>
42146
42147         * lib/bitrotate.h (rotl8, rotr8): Add.
42148
42149         * modules/bitrotate (configure.ac): Need
42150         AC_REQUIRE([AC_C_INLINE]).
42151         (Description): Mention stdint.h.  Reported by Bruno Haible
42152         <bruno@clisp.org>.
42153
42154         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
42155         Paolo Bonzini <bonzini@gnu.org>.
42156
42157 2008-08-31  Bruno Haible  <bruno@clisp.org>
42158
42159         Assume Solaris specific bi-arch conventions on Solaris systems.
42160         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
42161         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
42162         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
42163         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
42164         like acl_libdirstem.
42165         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
42166         acl_libdirstem.
42167         * NEWS: Mention the change.
42168         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
42169
42170 2008-08-31  Jim Meyering  <meyering@redhat.com>
42171
42172         * lib/strftime.h: Add comments describing the two added arguments.
42173
42174         remove duplicate #include directives
42175         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
42176         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
42177
42178 2008-08-31  Bruno Haible  <bruno@clisp.org>
42179
42180         New module 'sigpipe-die'.
42181         * modules/sigpipe-die: New file.
42182         * lib/sigpipe-die.h: New file.
42183         * lib/sigpipe-die.c: New file.
42184         * MODULES.html.sh (Signal handling): Add sigpipe-die.
42185
42186 2008-08-31  Bruno Haible  <bruno@clisp.org>
42187
42188         Don't override previously installed signal handlers.
42189         * lib/fatal-signal.c (saved_sigactions): New variable.
42190         (uninstall_handlers): Reset the signal to the saved handler, not
42191         to SIG_DFL (except when ignored).
42192         (install_handlers): Save the previous handlers.
42193
42194 2008-08-30  Bruno Haible  <bruno@clisp.org>
42195
42196         * gnulib-tool (func_reset_sigpipe): New function.
42197         (func_get_automake_snippet, func_modules_transitive_closure,
42198         func_import): Invoke it before a join command that reads from stdin,
42199         to avoid "echo: write error: Broken pipe" error messages on stderr.
42200         Reported by Sam Steingold <sds@gnu.org>.
42201
42202 2008-08-30  Bruno Haible  <bruno@clisp.org>
42203
42204         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
42205         Code copied from m4/open.m4.
42206         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
42207         access and the filename ends in a slash. Code copied from lib/open.c.
42208         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
42209         * tests/test-fopen.c (main): Check against bug with trailing slash.
42210
42211 2008-08-29  Bruno Haible  <bruno@clisp.org>
42212
42213         Avoid some "gcc -pedantic" warnings.
42214         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
42215         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
42216         * lib/dirent.in.h: Likewise.
42217         * lib/fcntl.in.h: Likewise.
42218         * lib/float.in.h: Likewise.
42219         * lib/iconv.in.h: Likewise.
42220         * lib/inttypes.in.h: Likewise.
42221         * lib/locale.in.h: Likewise.
42222         * lib/math.in.h: Likewise.
42223         * lib/netinet_in.in.h: Likewise.
42224         * lib/search.in.h: Likewise.
42225         * lib/signal.in.h: Likewise.
42226         * lib/stdarg.in.h: Likewise.
42227         * lib/stdint.in.h: Likewise.
42228         * lib/stdio.in.h: Likewise.
42229         * lib/stdlib.in.h: Likewise.
42230         * lib/string.in.h: Likewise.
42231         * lib/strings.in.h: Likewise.
42232         * lib/sys_select.in.h: Likewise.
42233         * lib/sys_socket.in.h: Likewise.
42234         * lib/sys_stat.in.h: Likewise.
42235         * lib/sys_time.in.h: Likewise.
42236         * lib/sysexits.in.h: Likewise.
42237         * lib/time.in.h: Likewise.
42238         * lib/unistd.in.h: Likewise.
42239         * lib/wchar.in.h: Likewise.
42240         * lib/wctype.in.h: Likewise.
42241         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
42242         * modules/fchdir (Makefile.am): Likewise.
42243         * modules/fcntl (Makefile.am): Likewise.
42244         * modules/float (Makefile.am): Likewise.
42245         * modules/iconv_open (Makefile.am): Likewise.
42246         * modules/inttypes (Makefile.am): Likewise.
42247         * modules/locale (Makefile.am): Likewise.
42248         * modules/math (Makefile.am): Likewise.
42249         * modules/netinet_in (Makefile.am): Likewise.
42250         * modules/search (Makefile.am): Likewise.
42251         * modules/signal (Makefile.am): Likewise.
42252         * modules/stdarg (Makefile.am): Likewise.
42253         * modules/stdint (Makefile.am): Likewise.
42254         * modules/stdio (Makefile.am): Likewise.
42255         * modules/stdlib (Makefile.am): Likewise.
42256         * modules/string (Makefile.am): Likewise.
42257         * modules/strings (Makefile.am): Likewise.
42258         * modules/sys_select (Makefile.am): Likewise.
42259         * modules/sys_socket (Makefile.am): Likewise.
42260         * modules/sys_stat (Makefile.am): Likewise.
42261         * modules/sys_time (Makefile.am): Likewise.
42262         * modules/sysexits (Makefile.am): Likewise.
42263         * modules/time (Makefile.am): Likewise.
42264         * modules/unistd (Makefile.am): Likewise.
42265         * modules/wchar (Makefile.am): Likewise.
42266         * modules/wctype (Makefile.am): Likewise.
42267         Reported by Reuben Thomas <rrt@sc3d.org>.
42268
42269 2008-08-29  Bruno Haible  <bruno@clisp.org>
42270
42271         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
42272         any more.
42273
42274 2008-08-29  Simon Josefsson  <simon@josefsson.org>
42275
42276         * MODULES.html.sh (Misc): Add bitrotate.
42277
42278         * modules/bitrotate: New file.
42279
42280         * lib/bitrotate.h: New file.
42281
42282         * modules/bitrotate-tests: New file.
42283
42284         * tests/test-bitrotate.c: New file.
42285
42286         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
42287         on the bitrotate module.
42288
42289         * lib/arctwo.c: Use new bitrotate module.
42290
42291 2008-08-29  Jim Meyering  <meyering@redhat.com>
42292
42293         bootstrap: merge changes from coreutils
42294         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
42295         of copied files.  Remove a kludge, now that this is fixed.
42296         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
42297         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
42298         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
42299
42300 2008-08-29  Bruno Haible  <bruno@clisp.org>
42301
42302         * MODULES.html.sh: Remove --cvs-urls option.
42303
42304 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
42305
42306         maint.mk: adjust to file name change
42307         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
42308
42309 2008-08-28  Jim Meyering  <meyering@redhat.com>
42310
42311         * modules/getndelim2 (License): Relicense to LGPLv2+.
42312         Approved by Richard Stallman for the version of 1995, and by
42313         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
42314
42315 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
42316
42317         * lib/getdelim.c (flockfile, funlockfile): Make all of them
42318         dummy if one is not available.  Do not touch them if
42319         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
42320         (getc_maybe_unlocked): New.
42321         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
42322
42323 2008-08-26  Eric Blake  <ebb9@byu.net>
42324
42325         doc/INSTALL: resync from autoconf
42326         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
42327         (INSTALL_PRELUDE): Delete; this is done more efficiently by
42328         moving...
42329         * install.texi [!autoconf]: ...here.  Resync from autoconf.
42330         * INSTALL: Regenerate.
42331         * INSTALL.ISO: New file.
42332         * INSTALL.UTF-8: Likewise.
42333
42334 2008-08-26  Jim Meyering  <meyering@redhat.com>
42335
42336         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
42337         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
42338         these definitions conditional, so that they may be overridden, too.
42339
42340 2008-08-26  Bruno Haible  <bruno@clisp.org>
42341
42342         Generate INSTALL file variants with prettier quotes.
42343         * doc/Makefile (INSTALL_PRELUDE): New macro.
42344         (INSTALL): Use it.
42345         (INSTALL.ISO, INSTALL.UTF-8): New rules.
42346
42347 2008-08-26  Bruno Haible  <bruno@clisp.org>
42348
42349         Run makeinfo in an English locale.
42350         * doc/Makefile (MAKEINFO): New variable.
42351
42352 2008-08-26  Bruno Haible  <bruno@clisp.org>
42353
42354         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
42355         Suggested by Eric Blake.
42356
42357 2008-08-25  Bruno Haible  <bruno@clisp.org>
42358
42359         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
42360
42361 2008-08-25  Eric Blake  <ebb9@byu.net>
42362
42363         c-stack: test that stack overflow can be caught
42364         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
42365         that platform allows handling stack overflow; at least OS/2 EMX
42366         has sigaltstack, but crashes before transferring control to
42367         handler on stack overflow.
42368         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
42369         check for HAVE_STACK_OVERFLOW_HANDLING.
42370         Reported by Elbert Pol.
42371
42372 2008-08-25  Bruno Haible  <bruno@clisp.org>
42373
42374         * doc/posix-functions/strftime.texi: Fix description of strftime
42375         module.
42376
42377 2008-08-24  Bruno Haible  <bruno@clisp.org>
42378
42379         * tests/uniwidth/test-uc_width2.c: New file.
42380         * tests/uniwidth/test-uc_width2.sh: New file.
42381         * modules/uniwidth/width-tests (Files): Add the new files.
42382         (TESTS): Add uniwidth/test-uc_width2.sh.
42383         (TESTS_ENVIRONMENT): New variable.
42384         (check_PROGRAMS): Add test-uc_width2.
42385         (test_uc_width2_SOURCES): New variable.
42386
42387         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
42388         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
42389         not 0x00AB.
42390         Reported by Alexander V. Lukyanov <lav@netis.ru>.
42391
42392 2008-08-22  Eric Blake  <ebb9@byu.net>
42393
42394         test-lock, test-tls: mention why a test is skipped
42395         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
42396         skipped.
42397         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
42398
42399         count-one-bits: relax license
42400         * modules/count-one-bits (License): Relicense to LGPLv2+.
42401         Suggested by Ludovic Courtès, approved by Ben Pfaff.
42402
42403 2008-08-22  Andreas Schwab  <schwab@suse.de>
42404
42405         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
42406         Remove spurious space in assignment.
42407
42408 2008-08-21  Simon Josefsson  <simon@josefsson.org>
42409
42410         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
42411         Paul Eggert <eggert@CS.UCLA.EDU>.
42412
42413 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
42414
42415         * modules/gettext: Add m4/threadlib.m4.
42416
42417 2008-08-19  Eric Blake  <ebb9@byu.net>
42418
42419         test-c-stack: fix compilation failure on FreeBSD 5.0
42420         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
42421         headers before <sys/resource.h>.
42422         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
42423         the bug.
42424         Reported by Nelson H. F. Beebe.
42425
42426         strverscmp: migrate from "strverscmp.h" to <string.h>
42427         * modules/string (Makefile.am): Add new hooks.
42428         * modules/strverscmp (Files): Remove strverscmp.h.
42429         (Depends-on): Add string.
42430         (configure.ac): Add indicator.
42431         (Include): Mention new header.
42432         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
42433         defaults.
42434         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
42435         results.
42436         * lib/strverscmp.h: Delete.
42437         * lib/string.in.h (strverscmp): Provide declaration, when needed.
42438         * tests/test-strverscmp.c (includes): Adjust client.
42439         * lib/check-version.c (includes): Likewise.
42440         * NEWS: Document the change.
42441
42442         strverscmp: add unit test
42443         * modules/strverscmp-tests: New file.
42444         * tests/test-strverscmp.c: Likewise.
42445
42446 2008-08-19  Simon Josefsson  <simon@josefsson.org>
42447
42448         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
42449         regarding Windows crypto stuff, from Mono.
42450
42451 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
42452
42453         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
42454         if present, for intel RND.  Return error on failures.
42455
42456 2008-08-18  Ben Pfaff  <blp@gnu.org>
42457
42458         gitlog-to-changelog: give better diagnostic for failed pipe-open
42459         * build-aux/gitlog-to-changelog: Improve error message: suggest
42460         that the version of Git may be too old.
42461
42462 2008-08-18  Simon Josefsson  <simon@josefsson.org>
42463
42464         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
42465         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
42466
42467 2008-08-18  Bruno Haible  <bruno@clisp.org>
42468
42469         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
42470         pthread_in_use().
42471
42472 2008-08-18  Bruno Haible  <bruno@clisp.org>
42473
42474         * lib/glthread/threadlib.c: Include <pthread.h>.
42475
42476 2008-08-18  Bruno Haible  <bruno@clisp.org>
42477
42478         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
42479         glthread_recursive_lock_* macros.
42480         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
42481         Fix syntax error.
42482
42483 2008-08-18  Bruno Haible  <bruno@clisp.org>
42484
42485         * lib/glthread/thread.c: Avoid forcing a context switch right after
42486         thread creation.
42487
42488 2008-08-17  Bruno Haible  <bruno@clisp.org>
42489
42490         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
42491         * lib/glthread/thread.h: Provide Win32 specific implementation.
42492         * modules/thread (Files): Add lib/glthread/thread.c.
42493         (Depends-on): Add lock.
42494         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
42495
42496 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42497
42498         New module 'yield'.
42499         * modules/yield: New file.
42500         * lib/glthread/yield.h: New file.
42501         * m4/yield.m4: New file.
42502         * MODULES.html.sh (Multithreading): Add yield.
42503
42504 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42505
42506         New module 'thread'.
42507         * modules/thread: New file.
42508         * lib/glthread/thread.h: New file.
42509         * m4/thread.m4: New file.
42510         * MODULES.html.sh (Multithreading): Add thread.
42511
42512 2008-08-17  Bruno Haible  <bruno@clisp.org>
42513
42514         * lib/glthread/lock.h: Include <stdlib.h> always.
42515         * lib/glthread/tls.h: Likewise.
42516         * lib/glthread/cond.h: Likewise.
42517
42518 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42519
42520         New module 'cond'.
42521         * modules/cond: New file.
42522         * lib/glthread/cond.h: New file.
42523         * lib/glthread/cond.c: New file.
42524         * m4/cond.m4: New file.
42525         * MODULES.html.sh (Multithreading): Add cond.
42526
42527 2008-08-16  Eric Blake  <ebb9@byu.net>
42528
42529         c-stack: fix regression on Irix 5.3 from 2008-06-21
42530         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
42531         sa_sigaction...
42532         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
42533         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
42534         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
42535         * modules/signal (Makefile.am): Use the value.
42536         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
42537         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
42538         * doc/posix-headers/signal.texi (signal.h): Document this
42539         portability issue.
42540         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
42541         Reported by Tom G. Christensen.
42542
42543 2008-08-17  Bruno Haible  <bruno@clisp.org>
42544
42545         New module 'threadlib'.
42546         * modules/threadlib: New file.
42547         * lib/glthread/threadlib.c: New file, extracted from
42548         lib/glthread/lock.c.
42549         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
42550         functions.
42551         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
42552         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
42553         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
42554         macros.
42555         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
42556         (gl_DISABLE_THREADS): Remove macro.
42557         * modules/lock (Files): Remove build-aux/config.rpath.
42558         (Depends-on): Remove havelib. Add threadlib.
42559         (configure.ac-early): Remove section.
42560         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
42561         * modules/tls (Depends-on): Remove lock. Add threadlib.
42562         (Link): New section, copied from threadlib.
42563         * MODULES.html.sh (Multithreading): Add threadlib.
42564
42565 2008-08-14  Bruno Haible  <bruno@clisp.org>
42566
42567         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
42568         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
42569         glthread_rwlock_unlock, glthread_rwlock_destroy,
42570         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
42571         glthread_recursive_lock_destroy): Define as macros always.
42572         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
42573         glthread_lock_lock.
42574         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
42575         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
42576         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
42577         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
42578         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
42579         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
42580         (glthread_recursive_lock_lock_func): Renamed from
42581         glthread_recursive_lock_lock.
42582         (glthread_recursive_lock_unlock_func): Renamed from
42583         glthread_recursive_lock_unlock.
42584         (glthread_recursive_lock_destroy_func): Renamed from
42585         glthread_recursive_lock_destroy.
42586
42587 2008-08-14  Bruno Haible  <bruno@clisp.org>
42588
42589         * lib/glthread/lock.h: Renamed from lib/lock.h.
42590         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
42591         * lib/glthread/tls.h: Renamed from lib/tls.h.
42592         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
42593         * lib/fstrcmp.c: Update includes.
42594         * lib/strsignal.c: Update includes.
42595         * modules/lock (Files, Makefile.am): Update.
42596         (Include): Change to "glthread/lock.h".
42597         * modules/tls (Files, Makefile.am): Update.
42598         (Include): Change to "glthread/tls.h".
42599         * tests/test-lock.c: Update includes.
42600         * tests/test-tls.c: Update includes.
42601         * NEWS: Mention the renamed header files.
42602
42603 2008-08-11  Jim Meyering  <meyering@redhat.com>
42604
42605         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
42606
42607 2008-08-11  Eric Blake  <ebb9@byu.net>
42608
42609         test-c-stack: avoid C99-ism
42610         * tests/test-c-stack.c (main): Fix whitespace, move declaration
42611         before statement.
42612         Reported by Alain Guibert.
42613
42614 2008-08-10  Jim Meyering  <meyering@redhat.com>
42615
42616         ensure that return value of uinttostr et al are not ignored
42617         * lib/inttostr.h (__GNUC_PREREQ): Define.
42618         (__attribute_warn_unused_result__): Define.
42619         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
42620
42621 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
42622
42623         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
42624         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
42625
42626 2008-08-07  Jim Meyering  <meyering@redhat.com>
42627
42628         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
42629
42630         * modules/mkstemp (License): Relicense under LGPLv2+.
42631         * modules/tempname (License): Likewise.
42632
42633 2008-08-06  Bruno Haible  <bruno@clisp.org>
42634
42635         * lib/poll.c (poll): Further micro-optimization.
42636
42637 2008-08-06  Jim Meyering  <meyering@redhat.com>
42638
42639         inet_pton.c: use locale-independent tolower
42640         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
42641         (inet_pton6): Use c_tolower rather than tolower.
42642         * modules/inet_pton (Depends-on): Add c-ctype.
42643
42644 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
42645
42646         * lib/poll.c (poll): Avoid division when timeout is 0, cache
42647         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
42648
42649 2008-08-06  Jim Meyering  <meyering@redhat.com>
42650
42651         * modules/inet_pton (License): Relicense under LGPLv2+.
42652
42653 2008-08-03  Bruno Haible  <bruno@clisp.org>
42654
42655         Additional non-aborting API for lock and tls.
42656         * lib/lock.h: Include <errno.h>.
42657         (glthread_lock_init): New macro/function.
42658         (gl_lock_init): Define as wrapper around glthread_lock_init.
42659         (glthread_lock_lock): New macro/function.
42660         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
42661         (glthread_lock_unlock): New macro/function.
42662         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
42663         (glthread_lock_destroy): New macro/function.
42664         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
42665         (glthread_rwlock_init): New macro/function.
42666         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
42667         (glthread_rwlock_rdlock): New macro/function.
42668         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
42669         (glthread_rwlock_wrlock): New macro/function.
42670         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
42671         (glthread_rwlock_unlock): New macro/function.
42672         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
42673         (glthread_rwlock_destroy): New macro/function.
42674         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
42675         (glthread_recursive_lock_init): New macro/function.
42676         (gl_recursive_lock_init): Define as wrapper around
42677         glthread_recursive_lock_init.
42678         (glthread_recursive_lock_lock): New macro/function.
42679         (gl_recursive_lock_lock): Define as wrapper around
42680         glthread_recursive_lock_lock.
42681         (glthread_recursive_lock_unlock): New macro/function.
42682         (gl_recursive_lock_unlock): Define as wrapper around
42683         glthread_recursive_lock_unlock.
42684         (glthread_recursive_lock_destroy): New macro/function.
42685         (gl_recursive_lock_destroy): Define as wrapper around
42686         glthread_recursive_lock_destroy.
42687         (glthread_once): New macro/function.
42688         (gl_once): Define as wrapper around glthread_once.
42689         Update function declarations.
42690         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
42691         glthread_rwlock_init. Return error code.
42692         (glthread_rwlock_rdlock_multithreaded): Renamed from
42693         glthread_rwlock_rdlock. Return error code.
42694         (glthread_rwlock_wrlock_multithreaded): Renamed from
42695         glthread_rwlock_wrlock. Return error code.
42696         (glthread_rwlock_unlock_multithreaded): Renamed from
42697         glthread_rwlock_unlock. Return error code.
42698         (glthread_rwlock_destroy_multithreaded): Renamed from
42699         glthread_rwlock_destroy. Return error code.
42700         (glthread_recursive_lock_init_multithreaded): Renamed from
42701         glthread_recursive_lock_init. Return error code.
42702         (glthread_recursive_lock_lock_multithreaded): Renamed from
42703         glthread_recursive_lock_lock. Return error code.
42704         (glthread_recursive_lock_unlock_multithreaded): Renamed from
42705         glthread_recursive_lock_unlock. Return error code.
42706         (glthread_recursive_lock_destroy_multithreaded): Renamed from
42707         glthread_recursive_lock_destroy. Return error code.
42708         (glthread_once_call): Make static.
42709         (glthread_once_multithreaded): Renamed from glthread_once.
42710         * lib/tls.h: Include <errno.h>.
42711         (glthread_tls_key_init): New macro/function.
42712         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
42713         (glthread_tls_set): New macro/function.
42714         (gl_tls_set): Define as wrapper around glthread_tls_set.
42715         (glthread_tls_key_destroy): New macro/function.
42716         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
42717         Update function declarations.
42718         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
42719         glthread_tls_get.
42720         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
42721
42722 2008-08-04  Eric Blake  <ebb9@byu.net>
42723
42724         gnumakefile: use space, not TAB, outside of targets
42725         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
42726
42727 2008-08-02  Jim Meyering  <meyering@redhat.com>
42728
42729         getdate.y: avoid locale-dependent date parsing failure
42730         In Turkish locales, getdate would fail to recognize keywords
42731         containing a lowercase "i".  The solution is not to rely on
42732         locale-sensitive case-conversion.
42733         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
42734         (lookup_word): Use c_toupper in place of toupper.
42735         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
42736         Reported by Vefa Bicakci <bicave@superonline.com> in
42737         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
42738         * modules/getdate (Depends-on): Add c-ctype.
42739
42740 2008-08-02  Bruno Haible  <bruno@clisp.org>
42741
42742         * gnulib-tool (func_import): When updating or creating a .gitignore
42743         file, prepend each added line with a slash, and ignore leading slashes
42744         from the existing lines.
42745         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
42746
42747 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42748
42749         Portability fix for GNU make 3.79.1.
42750         * top/GNUmakefile: Avoid 'else COND', which older GNU make
42751         versions do not understand.
42752
42753 2008-08-01  Bruno Haible  <bruno@clisp.org>
42754
42755         Work around bug of HP-UX 10.20 cc with -0.0 literal.
42756         * tests/test-isnanf.h (zero): New variable.
42757         (main): Avoid literal -0.0f.
42758         * tests/test-isnand.h (zero): New variable.
42759         (main): Avoid literal -0.0.
42760         * tests/test-isnanl.h (zero): New variable.
42761         (main): Avoid literal -0.0L.
42762         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
42763         (test_float, test_double, test_long_double): Avoid literals -0.0f,
42764         -0.0, -0.0L.
42765         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
42766         (test_signbitd): Avoid literal -0.0.
42767         (test_signbitl): Avoid literal -0.0L.
42768         * tests/test-ceilf1.c (zero): New variable.
42769         (main): Avoid literal -0.0f.
42770         * tests/test-ceill.c (zero): New variable.
42771         (main): Avoid literal -0.0L.
42772         * tests/test-floorf1.c (zero): New variable.
42773         (main): Avoid literal -0.0f.
42774         * tests/test-floorl.c (zero): New variable.
42775         (main): Avoid literal -0.0L.
42776         * tests/test-roundf1.c (zero): New variable.
42777         (main): Avoid literal -0.0f.
42778         * tests/test-round1.c (zero): New variable.
42779         (main): Avoid literal -0.0.
42780         * tests/test-roundl.c (zero): New variable.
42781         (main): Avoid literal -0.0L.
42782         * tests/test-truncf1.c (zero): New variable.
42783         (main): Avoid literal -0.0f.
42784         * tests/test-trunc1.c (zero): New variable.
42785         (main): Avoid literal -0.0.
42786         * tests/test-truncl.c (zero): New variable.
42787         (main): Avoid literal -0.0L.
42788         * tests/test-frexp.c (zero): New variable.
42789         (main): Avoid literal -0.0.
42790         * tests/test-frexpl.c (zero): New variable.
42791         (main): Avoid literal -0.0L.
42792         * tests/test-ldexpl.c (zero): New variable.
42793         (main): Avoid literal -0.0L.
42794         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
42795         (zerod, zerol): New variables.
42796         (test_function): Avoid literals -0.0, -0.0L.
42797         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
42798         (zerod, zerol): New variables.
42799         (test_function): Avoid literals -0.0, -0.0L.
42800         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
42801         (zerod, zerol): New variables.
42802         (test_function): Avoid literals -0.0, -0.0L.
42803         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
42804         (zerod, zerol): New variables.
42805         (test_function): Avoid literals -0.0, -0.0L.
42806         * tests/test-strtod.c (zero): New variable.
42807         (main): Avoid literal -0.0.
42808         Reported by Jonathan C. Patschke <jp@centtech.com>.
42809
42810 2008-07-31  Jim Meyering  <meyering@redhat.com>
42811
42812         sha256.h: correct definition of SHA224_DIGEST_SIZE
42813         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
42814         Reported by Paulie Pena IV <paulie4@gmail.com>.
42815         Define as 224 / 8, rather than as a literal.
42816         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
42817         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
42818         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
42819
42820 2008-07-31  Bruno Haible  <bruno@clisp.org>
42821
42822         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
42823         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
42824         Reported by Jonathan Patschke <jp@centtech.com>.
42825
42826 2008-07-31  Bruno Haible  <bruno@clisp.org>
42827
42828         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
42829         Reported by Paolo Bonzini <bonzini@gnu.org>.
42830
42831 2008-07-30  Eric Blake  <ebb9@byu.net>
42832
42833         test-strtod: allow compilation without -lm
42834         * tests/test-strtod.c (main): Avoid link dependence on fabs.
42835         Reported by Dennis Clarke <blastwave@gmail.com>.
42836
42837 2008-07-28  Jim Meyering  <meyering@redhat.com>
42838
42839         bootstrap: work also when there are no .po files in po/
42840         * build-aux/bootstrap (update_po_files): Complete the change
42841         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
42842
42843 2008-07-27  Jim Meyering  <meyering@redhat.com>
42844
42845         * users.txt: Add zile.
42846
42847 2008-07-26  Ben Pfaff  <blp@gnu.org>
42848
42849         Add missing dependencies on new m4/exponent[fdl].m4 files.
42850         * modules/isnanf-nolibm: Add m4/exponentf.m4.
42851         * modules/isnand-nolibm: Add m4/exponentd.m4.
42852         * modules/isnanl-nolibm: Add m4/exponentl.m4.
42853         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
42854         m4/isnan[fdl].m4, because the macros actually used moved.
42855         Reported by Jim Meyering.
42856
42857 2008-07-14  Ben Pfaff  <blp@gnu.org>
42858
42859         Add isinf module.
42860         * lib/isinf.c: New file.
42861         * lib/math.in.h: Define isinf macro if we have decided to replace
42862         it.
42863         * m4/isinf.m4: New file.
42864         * m4/math_h.m4: Initialize and substitute variables for isinf
42865         module.
42866         * modules/isinf: New file.
42867         * modules/isinf-tests: New file.
42868         * modules/math: Add substitutions for new module.
42869         * tests/test-isinf.c: New file.
42870         * doc/posix-functions/isinf.texi: Mention new module.
42871         * MODULES.html.sh: Mention new module.
42872
42873 2008-07-14  Ben Pfaff  <blp@gnu.org>
42874
42875         Factor out some macros for use by additional modules.
42876         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
42877         exponentf.m4.
42878         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
42879         exponentd.m4.
42880         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
42881         file exponentl.m4.
42882         * m4/exponentf.m4: New file.
42883         * m4/exponentd.m4: New file.
42884         * m4/exponentl.m4: New file.
42885         * modules/isnanf: Use new file m4/exponentf.m4.
42886         * modules/isnand: Use new file m4/exponentd.m4.
42887         * modules/isnanl: Use new file m4/exponentl.m4.
42888
42889 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
42890
42891         mktime.c: normalize tp->tm_isdst value to -1/0/1.
42892         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
42893         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
42894         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
42895
42896         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
42897         readlink on platforms without PATH_MAX.
42898
42899 2008-07-21  Eric Blake  <ebb9@byu.net>
42900
42901         Warn, not fail, on stale version.
42902         * top/GNUmakefile (_curr-ver): Tone down previous patch.
42903
42904         Don't allow installation with stale devel version number.
42905         * top/GNUmakefile (_is-install-target): New macro.
42906         (_curr-ver): Forbid installation with stale version number.
42907
42908 2008-07-20  Bruno Haible  <bruno@clisp.org>
42909
42910         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
42911         TESTS_ENVIRONMENT.
42912         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
42913
42914 2008-07-20  Bruno Haible  <bruno@clisp.org>
42915
42916         * lib/c-stack.h (c_stack_action): Add documentation.
42917         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
42918
42919 2008-07-20  Bruno Haible  <bruno@clisp.org>
42920
42921         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
42922         * modules/readlink (License): Likewise.
42923
42924 2008-07-17  Eric Blake  <ebb9@byu.net>
42925
42926         * modules/c-stack (Link): Fix typo.
42927
42928         Make c-stack use libsigsegv, when available.
42929         * modules/c-stack (Depends-on): Add libsigsegv.
42930         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
42931         needed.
42932         * lib/c-stack.c (SIGSTKSZ): Define fallback.
42933         (segv_handler, overflow_handler, c_stack_action)
42934         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
42935         implementation when libsigsegv is available, but only when using
42936         the library is necessary.
42937         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
42938         comment, explaining why XSI check fails on Linux.
42939         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
42940         * tests/test-c-stack2.sh: Tweak skip message.
42941         * NEWS: Document new link-time requirements.
42942
42943 2008-07-16  Eric Blake  <ebb9@byu.net>
42944
42945         c-stack: Expose false positives when not using libsigsegv.
42946         * modules/c-stack-tests (Files): Expand test.
42947         * tests/test-c-stack.c (main): Add means to conditionally trigger
42948         non-overflow SIGSEGV.
42949         * tests/test-c-stack2.sh: New file.
42950
42951 2008-07-14  Bruno Haible  <bruno@clisp.org>
42952
42953         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
42954         Reported by Eric Blake.
42955
42956 2008-07-14  Sam Steingold  <sds@gnu.org>
42957             Bruno Haible  <bruno@clisp.org>
42958
42959         New module libsigsegv.
42960         * modules/libsigsegv: New file.
42961         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
42962         modifications.
42963         * MODULES.html.sh (Signal handling): New section.
42964
42965 2008-07-14  Bruno Haible  <bruno@clisp.org>
42966
42967         * modules/unictype/ctype-* (Description): Add the word "function".
42968         Improves the resulting doc in MODULES.html.
42969
42970 2008-07-12  Ben Pfaff  <blp@gnu.org>
42971
42972         Add longlong module.
42973         * modules/longlong: New file.
42974
42975 2008-07-12  Bruno Haible  <bruno@clisp.org>
42976
42977         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
42978         to empty.
42979
42980 2008-07-10  Ben Pfaff  <blp@gnu.org>
42981
42982         Add isnan module.
42983         * doc/posix-functions/isnan.texi: Mention new module.
42984         * lib/math.in.h: Define isnan macro if we have decided to replace
42985         it.
42986         * m4/isnan.m4: New file.
42987         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
42988         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
42989         also.
42990         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
42991         redundancy.
42992         * m4/math_h.m4: Initialize and substitute variables for isnan
42993         module.
42994         * modules/isnan: New file.
42995         * modules/isnan-tests: New file.
42996         * modules/math: Add substitutions for new module.
42997         * tests/test-isnan.c: New file.
42998         * MODULES.html.sh: Mention new module.
42999
43000 2008-07-10  Ben Pfaff  <blp@gnu.org>
43001
43002         Add isnanf module.
43003         * lib/isnanf.m4: New file.
43004         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
43005         (gl_HAVE_ISNANF_IN_LIBM): New macro.
43006         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
43007         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
43008         * modules/isnanf: New file.
43009         * modules/isnanf-tests: New file.
43010         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
43011         files.
43012         * tests/test-isnanf-nolibm.c: factored most of its contents into
43013         new file tests/test-isnanf.h.
43014         * tests/test-isnanf.h: New file.
43015         * tests/test-isnanf.c: New file.
43016         * MODULES.html.sh: Mention new module.
43017         * doc/glibc-functions/isnanf.texi: Mention new module.
43018
43019 2008-07-10  Ben Pfaff  <blp@gnu.org>
43020
43021         Add isnand module.
43022         * lib/isnand.h: New file.
43023         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
43024         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
43025         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
43026         functionality also.
43027         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
43028         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
43029         (gl_HAVE_ISNAND_IN_LIBM): New macro.
43030         * modules/isnand: New file.
43031         * modules/isnand-tests: New file.
43032         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
43033         files.
43034         * tests/test-isnand-nolibm.c: factored most of its contents into
43035         new file tests/test-isnand.h.
43036         * tests/test-isnand.h: New file.
43037         * tests/test-isnand.c: New file.
43038         * MODULES.html.sh: Mention new module.
43039
43040 2008-07-10  Ben Pfaff  <blp@gnu.org>
43041
43042         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
43043         * lib/isnand.h: Rename lib/isnand-nolibm.h.
43044         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
43045         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
43046         * modules/isnanf-nolibm: Update references to renamed files.
43047         * modules/isnand-nolibm: Likewise.
43048         * modules/isnanf-nolibm-tests: Likewise.
43049         * modules/isnand-nolibm-tests: Likewise.
43050         * lib/frexp.c: Likewise.
43051         * lib/isfinite.c: Likewise.
43052         * lib/signbitd.c: Likewise.
43053         * lib/signbitf.c: Likewise.
43054         * lib/vasnprintf.c: Likewise.
43055         * tests/test-ceilf1.c: Likewise.
43056         * tests/test-ceilf2.c: Likewise.
43057         * tests/test-floorf1.c: Likewise.
43058         * tests/test-floorf2.c: Likewise.
43059         * tests/test-frexp.c: Likewise.
43060         * tests/test-round1.c: Likewise.
43061         * tests/test-round2.c: Likewise.
43062         * tests/test-roundf1.c: Likewise.
43063         * tests/test-strtod.c: Likewise.
43064         * tests/test-trunc1.c: Likewise.
43065         * tests/test-trunc2.c: Likewise.
43066         * tests/test-truncf1.c: Likewise.
43067         * tests/test-truncf2.c: Likewise.
43068         * NEWS: Mention the renamed header files.
43069
43070 2008-07-11  Jim Meyering  <meyering@redhat.com>
43071
43072         vc-list-files: make the last-resort awk code more portable
43073         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
43074         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
43075         does not support it.
43076
43077 2008-07-10  Eric Blake  <ebb9@byu.net>
43078
43079         Work with tar's bootstrap.
43080         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
43081         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
43082         an m4 comment.
43083
43084 2008-07-09  Jim Meyering  <meyering@redhat.com>
43085
43086         posix-shell.m4: fix typo that made this test malfunction
43087         * m4/posix-shell.m4: Remove capitalization in variable name.
43088
43089 2008-07-08  Bruno Haible  <bruno@clisp.org>
43090
43091         * m4/onceonly.m4: Update comments.
43092         Reported by Ben Pfaff <blp@cs.stanford.edu>.
43093
43094 2008-07-04  Jim Meyering  <meyering@redhat.com>
43095
43096         * users.txt: Add vc-dwim.
43097         (bison, coreutils): Use the gitweb URL.
43098
43099 2008-07-03  Jim Meyering  <meyering@redhat.com>
43100
43101         * users.txt: Add libffcall.  From Sam Steingold.
43102
43103 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
43104
43105         getdate.y: do not ignore TZ with relative day, month or year offset
43106         * lib/getdate.y (get_date): Move the tz-handling block to follow the
43107         relative-date-handling, since otherwise, the latter would clobber the
43108         sole output (an updated Start value) of the tz-handling block.
43109         * tests/test-getdate.c: Tests for the fix
43110
43111 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43112
43113         Recognize 'foo_LIBRARIES += libgnu.a'.
43114         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
43115         makefile snippet has already specified an installation location,
43116         also using '+='.
43117
43118 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
43119
43120         getdate.y: factor out common actions
43121         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
43122         Use them in place of open-coded actions.
43123
43124 2008-07-01  Simon Josefsson  <simon@josefsson.org>
43125
43126         Add self-test for getdate module.
43127         * modules/getdate-tests: New file.
43128         * tests/test-getdate.c: New file.
43129
43130 2008-06-29  Bruno Haible  <bruno@clisp.org>
43131
43132         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
43133         .gitignore.
43134         Reported by Sylvain Beucler <beuc@beuc.net>.
43135
43136 2008-06-29  Bruno Haible  <bruno@clisp.org>
43137
43138         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
43139         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
43140
43141 2008-06-29  Bruno Haible  <bruno@clisp.org>
43142
43143         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
43144         EXTRA_DIST.
43145         Reported by Sylvain Beucler <beuc@beuc.net>.
43146
43147 2008-06-26  Jim Meyering  <meyering@redhat.com>
43148
43149         make several modules depend on the "open" module
43150         This provides slightly increased consistency when opening-for-write
43151         the name of a non-directory spelled with a trailing slash.
43152         * modules/chdir-safer: Likewise.
43153         * modules/chown: Likewise.
43154         * modules/clean-temp: Likewise.
43155         * modules/copy-file: Likewise.
43156         * modules/fchdir: Likewise.
43157         * modules/fcntl-safer: Likewise.
43158         * modules/pipe: Likewise.
43159         * modules/utime: Likewise.
43160         Prompted by Eric Blake and Bruno Haible.
43161
43162 2008-06-24  Andreas Schwab  <schwab@suse.de>
43163
43164         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
43165         literals can be used as initializers for global variables.
43166
43167 2008-06-23  Eric Blake  <ebb9@byu.net>
43168
43169         Make gnulib-cache.m4 easier to diff.
43170         * gnulib-tool (func_import): Allow newlines when reading cached
43171         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
43172
43173 2008-06-23  Bruno Haible  <bruno@clisp.org>
43174
43175         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
43176         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
43177         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
43178         m4/signalblocking.m4.
43179         (gl_PREREQ_SIGACTION): Don't invoke it.
43180         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
43181         gl_PREREQ_SIG_HANDLER_H.
43182         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
43183         Don't check for sigaction here.
43184
43185 2008-06-23  Bruno Haible  <bruno@clisp.org>
43186
43187         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
43188         (install_handlers): Don't set the SA_RESETHAND flag.
43189
43190 2008-06-23  Bruno Haible  <bruno@clisp.org>
43191
43192         * m4/sigaction.m4: Comment fixes.
43193         * lib/signal.in.h: Likewise.
43194
43195 2008-06-23  Eric Blake  <ebb9@byu.net>
43196
43197         Fix typo.
43198         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
43199
43200         Avoid SA_ namespace.
43201         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
43202         Reported by Ralf Wildenhues.
43203
43204         Avoid test failure due to SA_RESTORER.
43205         * tests/test-sigaction.c (SA_MASK): New macro.
43206         (main): Avoid failing due to extension flags being set.
43207         Reported by Jim Meyering.
43208
43209         Revert use of sig-handler.h in sigprocmask.c.
43210         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
43211         it requires the existence of struct sigaction.
43212         * lib/sigprocmask.c (handler_t): Restore typedef.
43213         (rpl_signal, old_handlers): Use local type.
43214
43215 2008-06-22  Bruno Haible  <bruno@clisp.org>
43216
43217         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
43218         conditionally.
43219         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
43220
43221 2008-06-22  Bruno Haible  <bruno@clisp.org>
43222
43223         * doc/posix-functions/siginterrupt.texi: Move note.
43224
43225         * lib/signal.in.h (SA_RESTART): New macro.
43226         * lib/sigaction.c: Update comment.
43227
43228         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
43229
43230         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
43231         (gl_PREREQ_SIGPROCMASK): Invoke it.
43232         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
43233
43234         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
43235
43236         * lib/sigprocmask.c: Update a comment.
43237
43238 2008-06-21  Eric Blake  <ebb9@byu.net>
43239
43240         Use sigaction module rather than signal().
43241         * modules/c-stack (Depends-on): Add sigaction.
43242         * modules/fatal-signal (Depends-on): Likewise.
43243         * modules/nanosleep (Depends-on): Likewise.
43244         * modules/sigprocmask (Files): Add sig-handler.h.
43245         * modules/sigaction (Files): Likewise.
43246         * lib/sig-handler.h (get_handler): New file, suggested by Paul
43247         Eggert.
43248         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
43249         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
43250         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
43251         (init_fatal_signals): Likewise.
43252         * lib/nanosleep.c (rpl_nanosleep): Likewise.
43253         (siginterrupt): Delete fallback.
43254         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
43255         instead.
43256         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
43257         siginterrupt.
43258
43259         New module sigaction, for mingw.
43260         * modules/sigaction: New module...
43261         * modules/sigaction-tests: ...and its test.
43262         * m4/sigaction.m4: New file.
43263         * lib/sigaction.c: Likewise.
43264         * tests/test-sigaction.c: Likewise.
43265         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
43266         * modules/signal (Makefile.am): Likewise.
43267         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
43268         needed.
43269         * doc/posix-headers/signal.texi (signal.h): Mention provided
43270         types.
43271         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
43272         that sigaction is preferable.
43273         * doc/posix-functions/sigaction.texi (sigaction): Mention new
43274         module.
43275         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
43276         sigaction.
43277
43278         Improve robustness of sigprocmask by overriding signal.
43279         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
43280         is in use.
43281         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
43282         (SIGKILL, SIGSTOP): Provide fallbacks.
43283         (rpl_signal): Implement.
43284         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
43285         signal can be called inside handlers.
43286
43287         Fix nanosleep module on mingw.
43288         * modules/nanosleep (Depends-on): Add sys_select.
43289         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
43290
43291         Fix licensing of sigprocmask.
43292         * modules/raise (License): Relicense as LGPL.
43293
43294 2008-06-21  Bruno Haible  <bruno@clisp.org>
43295
43296         * lib/propername.c (proper_name_utf8): Don't use the transliterated
43297         result if it contains question marks.
43298         Reported by Michael Geng <linux@michaelgeng.de>.
43299
43300 2008-06-19  Bruno Haible  <bruno@clisp.org>
43301
43302         Fix CVS-ism.
43303         * doc/gnulib.texi: Include updated-stamp.texi.
43304         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
43305         (updated-stamp.texi): New rule.
43306         (gnulib.info): Depend on it.
43307         * doc/.gitignore: Add updated-stamp.texi.
43308         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
43309
43310 2008-06-19  Bruno Haible  <bruno@clisp.org>
43311
43312         * doc/Makefile (gnulib.info): Update and simplify dependencies.
43313         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
43314
43315 2008-06-19  Eric Blake  <ebb9@byu.net>
43316
43317         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
43318         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
43319         Reported by Stepan Kasal.
43320
43321 2008-06-18  Bruno Haible  <bruno@clisp.org>
43322
43323         * lib/fatal-signal.c (init_fatal_signals): Add comment.
43324         Reported by Eric Blake.
43325
43326 2008-06-18  Eric Blake  <ebb9@byu.net>
43327
43328         Work around cygwin 1.5.25 strsignal bug.
43329         * tests/test-strsignal.c: Allow for const char *.
43330         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
43331
43332 2008-06-18  Simon Josefsson  <simon@josefsson.org>
43333
43334         * users.txt: Update URL to article and add author/date
43335         information.
43336
43337 2008-06-17  Bruno Haible  <bruno@clisp.org>
43338
43339         New macro gl_DISABLE_THREADS.
43340         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
43341         if the user did not pass --enable-threads or --disable-threads option.
43342         (gl_DISABLE_THREADS): New macro.
43343         Reported by Eric Blake <ebb9@byu.net>.
43344
43345 2008-06-17  Bruno Haible  <bruno@clisp.org>
43346
43347         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
43348         when the macro ignores it.
43349         Based on a patch by Eric Blake <ebb9@byu.net>.
43350
43351 2008-06-17  Bruno Haible  <bruno@clisp.org>
43352
43353         * modules/tls (License): Change to LGPLv2+.
43354         Reported by Eric Blake.
43355
43356 2008-06-17  Eric Blake  <ebb9@byu.net>
43357
43358         Simplify c-stack prerequisites.
43359         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
43360         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
43361         no longer requires <ucontext.h> to exist.  Optimize setrlimit
43362         check.
43363         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
43364         <sys/resource.h>.
43365
43366         Move c-stack test into testsuite.
43367         * modules/c-stack-tests: New file.
43368         * lib/c-stack.c [DEBUG]: Move test program...
43369         * tests/test-c-stack.c: ...into this new file.  Skip rather than
43370         fail test if sigaltstack is lacking.
43371         * tests/test-c-stack.sh: New driver file.
43372
43373 2008-06-16  Eric Blake  <ebb9@byu.net>
43374
43375         Use raise module consistently.
43376         * modules/fatal-signal (Depends-on): Add raise.
43377         * modules/sigprocmask (Depends-on): Likewise.
43378         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
43379         * lib/sigprocmask.c (sigprocmask): Likewise.
43380         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
43381         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
43382
43383         Fix compliance bug in sigpending.
43384         * lib/sigprocmask.c (sigpending): Return pending array via
43385         parameter, not return value.
43386
43387 2008-06-14  Eric Blake  <ebb9@byu.net>
43388
43389         Improve obstack-printf test code.
43390         * tests/test-obstack-printf.c (test_function): Fix comment, and
43391         simplify usage of obstack_* in macros.  Add a test for coverage.
43392         Reported by Bruno Haible.
43393
43394 2008-06-14  Bruno Haible  <bruno@clisp.org>
43395
43396         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
43397         array size as a constant, not as a const variable.
43398         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
43399         AC_USE_SYSTEM_EXTENSIONS.
43400         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
43401         Test whether the obstack_printf function actually exists.
43402         * modules/obstack-printf (Depends-on): Add extensions.
43403         (Include): Remove obstack.h.
43404         * modules/obstack-printf-posix (Depends-on): Add extensions.
43405         (Include): Remove obstack.h.
43406
43407 2008-06-13  Eric Blake  <ebb9@byu.net>
43408
43409         Add obstack-printf and obstack-printf-posix modules.
43410         * modules/obstack-printf: New file.
43411         * modules/obstack-printf-posix: Likewise.
43412         * MODULES.html.sh (Misc): Mention them.
43413         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
43414         Likewise.
43415         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
43416         Likewise.
43417         * modules/stdio (Makefile.am): Accomodate new modules.
43418         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
43419         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
43420         Declare.
43421         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
43422         functions.
43423         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
43424         (gl_REPLACE_OBSTACK_PRINTF): New macros
43425         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
43426         * tests/test-obstack-printf.c: New file.
43427         * modules/obstack-printf-tests: Likewise.
43428         * modules/obstack-printf-posix-tests: Likewise.
43429
43430 2008-06-11  Bruno Haible  <bruno@clisp.org>
43431
43432         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
43433         * lib/open.c: Include errno.h.
43434         (open): Fail when attempting to write to a file that has a trailing
43435         slash.
43436         * tests/test-open.c (main): Test against trailing slash bug.
43437         * doc/posix-functions/open.texi: Mention the trailing slash bug.
43438
43439 2008-06-10  Bruno Haible  <bruno@clisp.org>
43440
43441         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
43442         for $? to work inside the trap command, with various /bin/sh-s.
43443         * tests/test-vc-list-files-cvs.sh: Likewise.
43444
43445 2008-06-10  Bruno Haible  <bruno@clisp.org>
43446
43447         * lib/acl-internal.h: Don't include gettext.h here.
43448         * lib/set-mode-acl.c: Include gettext.h here.
43449         * lib/copy-acl.c: Likewise.
43450
43451 2008-06-10  Bruno Haible  <bruno@clisp.org>
43452
43453         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
43454         * lib/wait-process.c (wait_subprocess): Likewise.
43455         * lib/execute.h (execute): Add termsigp argument.
43456         * lib/execute.c (execute): Likewise.
43457         * lib/csharpcomp.c (compile_csharp_using_pnet,
43458         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
43459         * lib/csharpexec.c (execute_csharp_using_pnet,
43460         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
43461         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
43462         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
43463         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
43464         is_jikes_present): Update.
43465         * lib/javaexec.c (execute_java_class): Update.
43466         * lib/javaversion.c (execute_and_read_line): Update.
43467         * NEWS: Document the changes.
43468         Reported by Eric Blake.
43469
43470 2008-06-10  Eric Blake  <ebb9@byu.net>
43471
43472         Add missing include.
43473         * tests/test-strstr.c (includes): Add <signal.h>.
43474         * tests/test-strcasestr.c (includes): Likewise.
43475         * tests/test-memmem.c (includes): Likewise.
43476
43477 2008-06-10  Bruno Haible  <bruno@clisp.org>
43478
43479         * lib/wait-process.c (wait_subprocess): Add an assertion.
43480
43481 2008-06-10  Bruno Haible  <bruno@clisp.org>
43482
43483         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
43484
43485 2008-06-10  Bruno Haible  <bruno@clisp.org>
43486
43487         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
43488         using alarm().
43489         * tests/test-strcasestr.c (main): Likewise.
43490         * tests/test-strstr.c (main): Likewise.
43491
43492 2008-06-09  Bruno Haible  <bruno@clisp.org>
43493
43494         Work around the Solaris 10 ACE ACLs ABI change.
43495         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
43496         declare if ACL_NO_TRIVIAL is present.
43497         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
43498         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
43499         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
43500         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
43501         define if ACL_NO_TRIVIAL is present.
43502         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
43503         and use the current ABI.
43504         (file_has_acl): Use same #if condition as elsewhere.
43505         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
43506         in use, and use the current ABI.
43507         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
43508         Reported by Jim Meyering.
43509
43510 2008-06-09  Eric Blake  <ebb9@byu.net>
43511
43512         Work around environments that (stupidly) ignore SIGALRM.
43513         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
43514         before using alarm().
43515         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
43516         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
43517         Reported by Ian Beckwith <ianb@erislabs.net>.
43518
43519         Produce autobuild blurb earlier in log.
43520         * modules/autobuild (configure.ac-early): Move AB_INIT here.
43521
43522 2008-06-09  Jim Meyering  <meyering@redhat.com>
43523         and OndÅ™ej Vašík  <ovasik@redhat.com>
43524
43525         utimens.c: correct kernel bug work-around
43526         OndÅ™ej Vašík found that the invalid return value of 280 indicates
43527         failure, not success, and the kernel bug we're trying to work
43528         around affects not just the utimensat call, but also the fallback
43529         futimens call.
43530         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
43531         not success.
43532         [HAVE_FUTIMENS]: Use the same work-around, here.
43533
43534 2008-06-09  Jim Meyering  <meyering@redhat.com>
43535
43536         add more guards around definition of ACE_-related code
43537         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
43538         ALLOW and ACE_OWNER are also defined.
43539
43540 2008-06-08  Bruno Haible  <bruno@clisp.org>
43541
43542         * lib/acl-internal.h: Add me as co-author.
43543         * lib/file-has-acl.c: Likewise.
43544         * lib/set-mode-acl.c: Likewise.
43545         * lib/copy-acl.c: Likewise.
43546
43547 2008-06-08  Bruno Haible  <bruno@clisp.org>
43548
43549         Add support for AIX ACLs.
43550         * lib/acl-internal.h (acl_nontrivial): New declaration.
43551         * lib/file-has-acl.c (acl_nontrivial): New function.
43552         (file_has_acl): Add implementation using AIX 4 ACL API.
43553         * lib/set-mode-acl.c (qset_acl): Likewise.
43554         * lib/copy-acl.c (qcopy_acl): Likewise.
43555
43556 2008-06-08  Bruno Haible  <bruno@clisp.org>
43557
43558         Add support for HP-UX ACLs.
43559         * lib/acl-internal.h (acl_nontrivial): New declaration.
43560         * lib/file-has-acl.c (acl_nontrivial): New function.
43561         (file_has_acl): Add implementation using HP-UX 11 ACL API.
43562         * lib/set-mode-acl.c (qset_acl): Likewise.
43563         * lib/copy-acl.c (qcopy_acl): Likewise.
43564
43565 2008-06-08  Bruno Haible  <bruno@clisp.org>
43566
43567         Add support for Cygwin ACLs.
43568         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
43569         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
43570         the chmod_or_fchmod call.
43571         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
43572
43573 2008-06-08  Bruno Haible  <bruno@clisp.org>
43574
43575         Fix bug with setuid modes in Solaris 10+ code.
43576         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
43577         succeeded, when the mode contains some special bits.
43578
43579 2008-06-08  Bruno Haible  <bruno@clisp.org>
43580
43581         Add support for Solaris 7..10 ACLs.
43582         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
43583         declarations.
43584         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
43585         functions.
43586         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
43587         * lib/set-mode-acl.c (qset_acl): Likewise.
43588         * lib/copy-acl.c (qcopy_acl): Likewise.
43589
43590 2008-06-08  Bruno Haible  <bruno@clisp.org>
43591
43592         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
43593         declaration.
43594         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
43595         (acl_access_nontrivial): Remove MacOS X case.
43596         (file_has_acl): Use acl_extended_nontrivial.
43597         * lib/copy-acl.c (qcopy_acl): Likewise.
43598
43599 2008-06-08  Bruno Haible  <bruno@clisp.org>
43600
43601         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
43602
43603 2008-06-08  Jim Meyering  <meyering@redhat.com>
43604
43605         * modules/acl (Maintainer): Add Bruno Haible.
43606
43607 2008-06-07  Bruno Haible  <bruno@clisp.org>
43608
43609         Improve support for Tru64 ACLs.
43610         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
43611         ACL on OSF/1.
43612
43613 2008-06-07  Bruno Haible  <bruno@clisp.org>
43614
43615         Add support for MacOS X ACLs.
43616         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
43617         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
43618         * lib/set-mode-acl.c (qset_acl): Likewise.
43619         * lib/copy-acl.c (qcopy_acl): Likewise.
43620
43621 2008-06-07  Bruno Haible  <bruno@clisp.org>
43622
43623         Fix memory leak introduced on 2008-05-22.
43624         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
43625         use.
43626
43627 2008-06-07  Bruno Haible  <bruno@clisp.org>
43628
43629         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
43630         to construct an empty ACL.
43631
43632 2008-06-07  Bruno Haible  <bruno@clisp.org>
43633
43634         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
43635         precisely.
43636         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
43637
43638 2008-06-07  Bruno Haible  <bruno@clisp.org>
43639
43640         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
43641         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
43642
43643 2008-06-07  Bruno Haible  <bruno@clisp.org>
43644
43645         * doc/posix-functions/_setjmp.texi: Explain the use of this function
43646         regardless of POSIX.
43647         * doc/posix-functions/_longjmp.texi: Likewise.
43648         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
43649         SystemV platform in this case.
43650
43651 2008-06-06  Eric Blake  <ebb9@byu.net>
43652
43653         Document abort() bugs.
43654         * doc/posix-functions/abort.texi (abort): Mention anomalies.
43655
43656         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
43657         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
43658         sigsetjmp.
43659         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
43660         siglongjmp, but only as a macro.
43661         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
43662         is obsolete.
43663         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
43664
43665         Tweak documentation to cover cygwin argz bugs.
43666         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
43667         argz bug fix; no code change needed since no cygwin releases
43668         occurred between the last fix and the bug being tested.
43669         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
43670         module and recently fixed cygwin bugs.
43671         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
43672         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
43673         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
43674         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
43675         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
43676         Likewise.
43677         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
43678         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
43679         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
43680         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
43681         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
43682         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
43683         Likewise.
43684
43685         Avoid gcc warning on cygwin.
43686         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
43687         !ACL_NO_TRIVIAL]: Avoid unused variable.
43688
43689 2008-06-05  Eric Blake  <ebb9@byu.net>
43690
43691         Be tolerant of UNKNOWN version in gnulib-tool test dir.
43692         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
43693         git-version-gen fails to come up with a version.
43694         Reported by Simon Josefsson.
43695
43696 2008-06-05  Jim Meyering  <meyering@redhat.com>
43697             Paul Eggert  <eggert@cs.ucla.edu>
43698
43699         utimens.c: work around a probable Linux kernel bug
43700         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
43701         appears to be a kernel bug that causes utimensat to return 280
43702         instead of 0, indicating success.
43703
43704 2008-06-04  Bruno Haible  <bruno@clisp.org>
43705
43706         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
43707         2008-06-01 commit.
43708
43709 2008-06-04  Bruno Haible  <bruno@clisp.org>
43710
43711         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
43712         * lib/file-has-acl.c (acl_access_nontrivial): New function.
43713         (file_has_acl): Use it. Save errno afterwards.
43714         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
43715
43716 2008-06-03  Bruno Haible  <bruno@clisp.org>
43717
43718         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
43719         draft code. Simplify #ifs.
43720         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
43721         Put Solaris code after POSIX-draft code. Fix comments regarding
43722         Solaris 10, HP-UX. Mention Cygwin.
43723         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
43724
43725 2008-06-03  Eric Blake  <ebb9@byu.net>
43726
43727         Provide fallback for older kernels.
43728         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
43729         Provide runtime fallback if kernel lacks support.
43730         Reported by Mike Frysinger.
43731
43732 2008-06-02  Bruno Haible  <bruno@clisp.org>
43733
43734         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
43735         it exists.
43736
43737 2008-06-02  Bruno Haible  <bruno@clisp.org>
43738
43739         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
43740         * lib/copy-acl.c (qcopy_acl): Update comment.
43741
43742 2008-06-02  Bruno Haible  <bruno@clisp.org>
43743
43744         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
43745         like ACL APIs.
43746
43747 2008-06-02  Bruno Haible  <bruno@clisp.org>
43748
43749         * tests/test-file-has-acl.sh: Use different code for Cygwin.
43750         * tests/test-set-mode-acl.sh: Likewise.
43751         * tests/test-copy-acl.sh: Likewise.
43752         * tests/test-copy-file.sh: Likewise.
43753
43754 2008-06-02  Bruno Haible  <bruno@clisp.org>
43755
43756         * tests/test-file-has-acl.sh: Remove unused code.
43757
43758 2008-06-01  Bruno Haible  <bruno@clisp.org>
43759
43760         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
43761         (copy_acl): Just a wrapper around qcopy_acl that emits the error
43762         messages.
43763         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
43764
43765 2008-06-01  Bruno Haible  <bruno@clisp.org>
43766
43767         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
43768         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
43769         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
43770         APIs.
43771         * modules/acl-tests (configure.ac): Remove tests now contained in
43772         m4/acl.m4.
43773
43774 2008-06-02  Jim Meyering  <meyering@redhat.com>
43775
43776         announce-gen: use a better key-server host name
43777         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
43778         it may be more consistently reliable.  Suggested by Werner Koch
43779         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
43780
43781 2008-06-01  Bruno Haible  <bruno@clisp.org>
43782
43783         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
43784         Reported by Voroskoi Andras <voroskoi@gmail.com>.
43785
43786 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
43787
43788         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
43789
43790 2008-06-01  Bruno Haible  <bruno@clisp.org>
43791
43792         New ACL tests.
43793         * tests/test-file-has-acl.sh: New file.
43794         * tests/test-file-has-acl.c: New file.
43795         * tests/test-set-mode-acl.sh: New file.
43796         * tests/test-set-mode-acl.c: New file.
43797         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
43798         * tests/test-copy-acl.c: New file.
43799         * modules/acl-tests: New file, based on modules/copy-file-tests.
43800         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
43801         (Depends-on): Add acl-tests.
43802         (configure.ac): Remove checks.
43803         (Makefile.am): Don't create test-sameacls program here any more.
43804
43805 2008-06-01  Bruno Haible  <bruno@clisp.org>
43806
43807         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
43808         * tests/test-sameacls.c: Include progname.h.
43809         (main): Invoke set_program_name. Portability fixes for MacOS X,
43810         Solaris, HP-UX.
43811
43812 2008-06-01  Bruno Haible  <bruno@clisp.org>
43813
43814         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
43815         function.
43816         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
43817
43818 2008-06-01  Bruno Haible  <bruno@clisp.org>
43819
43820         * modules/rpmatch (Depends-on): Add strdup.
43821
43822 2008-06-01  Bruno Haible  <bruno@clisp.org>
43823
43824         * lib/pipe.c: Include unistd-safer.h.
43825         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
43826         * modules/pipe (Depends-on): Add unistd-safer.
43827
43828 2008-05-30  Simon Josefsson  <simon@josefsson.org>
43829
43830         * modules/autobuild (configure.ac): Call AB_INIT.
43831
43832 2008-05-30  Simon Josefsson  <simon@josefsson.org>
43833
43834         * tests/test-getaddrinfo.c: Don't print debug messages by default.
43835         Suggested by Bruno Haible <bruno@clisp.org>.
43836
43837 2008-05-30  Simon Josefsson  <simon@josefsson.org>
43838
43839         * tests/test-base64.c: Cast size_t to unsigned long when invoking
43840         printf.  Use %lu instead of %d.  Reported by Bruno Haible
43841         <bruno@clisp.org>.
43842
43843 2008-05-29  Eric Blake  <ebb9@byu.net>
43844
43845         Prefer new POSIX 200x interfaces over futimesat.
43846         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
43847         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
43848         when available.
43849         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
43850
43851 2008-05-28  Bruno Haible  <bruno@clisp.org>
43852
43853         * modules/stpcpy (License): Change to LGPLv2+.
43854         Requested by David Lutterkort <dlutter@redhat.com>.
43855
43856 2008-05-27  Bruno Haible  <bruno@clisp.org>
43857
43858         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
43859         current mingw.
43860         Reported by Jose E. Marchesi <jemarch@gnu.org>.
43861
43862 2008-05-27  Bruno Haible  <bruno@clisp.org>
43863
43864         * modules/iconv_open (Link): New section, from module 'iconv'.
43865         * modules/striconv (Link): Likewise.
43866         * modules/striconveh (Link): Likewise.
43867         * modules/xstriconv (Link): Likewise.
43868         * modules/unicodeio (Link): Likewise.
43869         * modules/propername (Link): Likewise.
43870         Reported by Jim Meyering.
43871
43872 2008-05-26  Jim Meyering  <meyering@redhat.com>
43873
43874         sha256: do not artificially restrict buffer length to be < 2^32
43875         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
43876         uint32_t to size_t.
43877         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
43878         to match.
43879
43880         avoid unaligned access errors, e.g., on sparc
43881         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
43882         direct access through a possibly-unaligned uint64* pointer.
43883         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
43884         direct access through a possibly-unaligned uint32* pointer.
43885         Prompted by this patch from Tom "spot" Callaway:
43886         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
43887
43888         sha512.c: fix typo in comment
43889         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
43890
43891 2008-05-25  Bruno Haible  <bruno@clisp.org>
43892
43893         * lib/set-mode-acl.c: Renamed from lib/acl.c.
43894         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
43895         (Makefile.am): Update lib_SOURCES.
43896
43897 2008-05-25  Bruno Haible  <bruno@clisp.org>
43898
43899         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
43900
43901 2008-05-25  Jim Meyering  <meyering@redhat.com>
43902
43903         useless-if-before-free: freed expr may have white-space differences
43904         * build-aux/useless-if-before-free: Recognize cases in which the
43905         freed expression differs from the tested one in embedded white
43906         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
43907         $1 was used, so we can't make any regexp shy.  Improved tests now
43908         detect this.
43909
43910         useless-if-before-free: accept white space in the expression.
43911         * build-aux/useless-if-before-free: For now, any white space
43912         in the expression must be identical in the free argument.
43913
43914         useless-if-before-free: efficiency tweak
43915         * build-aux/useless-if-before-free: Make the expression-matching
43916         regexp "shy".
43917         Make the *outer* regexp shy, not the expr-matching one.
43918
43919         update code-in-comment to accept cast of free arg
43920         * build-aux/useless-if-before-free: Update regexp.
43921
43922 2008-05-25  Bruno Haible  <bruno@clisp.org>
43923
43924         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
43925         * modules/copy-file-tests (Files, Makefile.am): Update.
43926         * tests/test-copy-file.c (func_test_copy): Update.
43927
43928 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
43929
43930         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
43931
43932 2008-05-23  Bruno Haible  <bruno@clisp.org>
43933
43934         Improve support for ACLs on OSF/1.
43935         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
43936         Remove fallback for unknown flavors of ACLs.
43937
43938 2008-05-22  Bruno Haible  <bruno@clisp.org>
43939
43940         Add support for ACLs on OSF/1.
43941         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
43942         replacements.
43943         (acl_free_text): New macro fallback.
43944         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
43945         acl_free.
43946         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
43947         acl_free_text function. Require AC_C_INLINE.
43948
43949 2008-05-22  Bruno Haible  <bruno@clisp.org>
43950
43951         Make copy_acl work on MacOS X 10.5.
43952         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
43953         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
43954         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
43955         If MODE_INSIDE_ACL, don't assume that every system has the same text
43956         representation for ACLs as FreeBSD.
43957         * lib/copy-acl.c (copy_acl): Add support for platforms with
43958         !MODE_INSIDE_ACL.
43959         * lib/file-has-acl.c (file_has_acl): Likewise.
43960         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
43961         FreeBSD, MacOS X, or IRIX, respectively.
43962
43963 2008-05-22  Bruno Haible  <bruno@clisp.org>
43964
43965         * lib/acl.h: Don't include <sys/acl.h>.
43966         (GETACLCNT): Move fallback to lib/acl-internal.h.
43967         * lib/acl-internal.h: Include <sys/acl.h> here.
43968         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
43969
43970 2008-05-22  Bruno Haible  <bruno@clisp.org>
43971
43972         Split off copy_acl function to separate file.
43973         * lib/copy-acl.c: New file, extracted from lib/acl.c.
43974         * lib/acl.c (copy_acl): Moved function to separate file.
43975         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
43976         * modules/acl (Files): Add lib/copy-acl.c.
43977         (Makefiles.am): Augment lib_SOURCES.
43978
43979 2008-05-22  Bruno Haible  <bruno@clisp.org>
43980
43981         * modules/copy-file-tests: New file.
43982         * tests/test-copy-file.sh: New file.
43983         * tests/test-copy-file.c: New file.
43984         * tests/test-copy-file-sameacls.c: New file.
43985
43986 2008-05-22  Eric Blake  <ebb9@byu.net>
43987
43988         Avoid gcc warning.
43989         * tests/test-memcmp.c (main): Pass NULL indirectly.
43990
43991 2008-05-21  Bruno Haible  <bruno@clisp.org>
43992
43993         Add reference doc about ACLs.
43994         * doc/acl-resources.txt: New file.
43995         * doc/acl-cygwin.txt: New file.
43996
43997 2008-05-21  Bruno Haible  <bruno@clisp.org>
43998
43999         Avoid one more warning from gcc.
44000         * lib/vasnprintf.c (IF_LINT): Update comments.
44001         (VASNPRINTF): Use it also for the 'prefix' array initializer.
44002
44003 2008-05-21  Jim Meyering  <meyering@redhat.com>
44004
44005         avoid a warning from gcc
44006         * lib/vasnprintf.c (IF_LINT): Define.
44007         (scale10_round_decimal_long_double):
44008         Use it to avoid a "may be used uninitialized" warning.
44009         (scale10_round_decimal_double): Likewise.
44010
44011 2008-05-21  Simon Josefsson  <simon@josefsson.org>
44012
44013         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
44014         declared.
44015
44016 2008-05-20  Bruno Haible  <bruno@clisp.org>
44017
44018         * tests/test-memcmp.c (main): Test also the sign of the result. Test
44019         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
44020
44021 2008-05-20  Simon Josefsson  <simon@josefsson.org>
44022
44023         * modules/memcmp-tests: New file.
44024         * tests/test-memcmp.c: New file.
44025
44026 2008-05-19  Bruno Haible  <bruno@clisp.org>
44027
44028         * modules/propername (Notice, configure.ac): Put quoted "..." into
44029         --keyword option.
44030         * lib/propername.h: Update comments accordingly.
44031         Reported by Eric Blake.
44032
44033 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
44034
44035         * modules/getpass-gnu (Depends-on): Add fseeko.
44036
44037 2008-05-19  Simon Josefsson  <simon@josefsson.org>
44038
44039         * modules/base64-tests: New file.
44040
44041 2008-05-19  Bo Borgerson <gigabo@gmail.com>
44042
44043         * lib/base64.c (base64_decode_ctx): If a decode context structure
44044         was passed in use it to ignore newlines.  If a context structure
44045         was _not_ passed in, continue to treat newlines as garbage (this
44046         is the historical behavior).  Formerly base64_decode.
44047         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
44048         takes a decode context structure.
44049         * lib/base64.h (base64_decode): Macro for four-argument calls.
44050         (base64_decode_alloc): Likewise.
44051         * lib/base64.c (base64_decode_ctx): If a decode context structure
44052         was passed in use it to ignore newlines.  If a context structure
44053         was _not_ passed in, continue to treat newlines as garbage (this
44054         is the historical behavior).  Formerly base64_decode.
44055         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
44056         takes a decode context structure.
44057         * lib/base64.h (base64_decode): Macro for four-argument calls.
44058         (base64_decode_alloc): Likewise.
44059
44060 2008-05-19  Jim Meyering  <meyering@redhat.com>
44061
44062         avoid a warning from gcc
44063         * lib/trim.c (IF_LINT): Define.
44064         (trim2): Use it to avoid a "may be used uninitialized" warning.
44065
44066         Fix doc typo.
44067         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
44068
44069 2008-05-19  Bruno Haible  <bruno@clisp.org>
44070
44071         * doc/glibc-functions/getpass.texi: Document limits of other
44072         implementations.
44073
44074 2008-05-19  Simon Josefsson  <simon@josefsson.org>
44075             Bruno Haible <bruno@clisp.org>
44076
44077         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
44078
44079 2008-05-18  Bruno Haible  <bruno@clisp.org>
44080
44081         * modules/propername: New file, from GNU gettext.
44082         * lib/propername.h: New file, from GNU gettext.
44083         * lib/propername.c: New file, from GNU gettext.
44084         * MODULES.html.sh (Internationalization functions): Add propername.
44085
44086 2008-05-16  Jim Meyering  <meyering@redhat.com>
44087             Bruno Haible  <bruno@clisp.org>
44088
44089         Avoid some warnings from "gcc -Wshadow".
44090         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
44091
44092 2008-05-15  Eric Blake  <ebb9@byu.net>
44093
44094         Extend previous patch to cygwin 1.7.0.
44095         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
44096         fast implementation in cygwin >= 1.7.0.
44097         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
44098         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
44099
44100 2008-05-15  Bruno Haible  <bruno@clisp.org>
44101
44102         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
44103         implementation in glibc >= 2.9.
44104         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
44105         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
44106
44107 2008-05-15  Bruno Haible  <bruno@clisp.org>
44108
44109         * MODULES.html.sh (Internationalization functions): Remove linebreak.
44110         (Unicode string functions): Add unilbrk/*.
44111         Reported by Karl Berry.
44112
44113 2008-05-15  Eric Blake  <ebb9@byu.net>
44114
44115         Fix violation of <stdbool.h> replacement in regex.
44116         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
44117         * lib/regexec.c (re_search_internal): Likewise.
44118         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
44119
44120 2008-05-15  Jim Meyering  <meyering@redhat.com>
44121
44122         avoid distracting test output when git or cvs is not found
44123         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
44124         * tests/test-vc-list-files-git.sh: Likewise.
44125
44126 2008-05-15  Eric Blake  <ebb9@byu.net>
44127
44128         Glibc finally accepted the memmem speedup code, bugzilla #5514.
44129         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
44130         glibc version.
44131         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
44132         * doc/posix-functions/strstr.texi (strstr): Likewise.
44133         * lib/str-two-way.h (MAX): Sychronize with glibc.
44134
44135 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
44136
44137         * lib/regcomp.c (optimize_utf8): Add a note on why we test
44138         opr.ctx_type.
44139         (calc_first): Initialize constraint field.
44140         (duplicate_node_closure): Use it instead of special casing ANCHORS.
44141         Fix grammar.
44142         (duplicate_node): Merge constraint field for all node types.
44143         (calc_eclosure_iter): Look at constraint field for all node types.
44144         * lib/regex_internal.c (create_cd_newstate): Don't look at
44145         opr.ctx_type.
44146
44147 2008-05-14  Bruno Haible  <bruno@clisp.org>
44148
44149         Help GCC to do better code generation.
44150         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
44151         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
44152         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
44153         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
44154         Declare with attribute 'malloc' if supported.
44155
44156 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
44157
44158         use "echo STR|wc -c" rather than unportable "expr length STR"
44159         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
44160         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
44161
44162 2008-05-14  Jim Meyering  <meyering@redhat.com>
44163
44164         use dd ibs=$n count=1 ... rather than less-portable head -c$n
44165         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
44166         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
44167         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
44168         via Collin Lasse.
44169
44170 2008-05-14  Eric Blake  <ebb9@byu.net>
44171
44172         Avoid quadratic growth in gl_LIBSOURCES.
44173         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
44174         Suggested by Bruno Haible.
44175
44176         Test xmemdup0.
44177         * modules/xmemdup0-tests: New file.
44178         * tests/test-xmemdup0.c: Likewise.
44179
44180 2008-05-13  Eric Blake  <ebb9@byu.net>
44181
44182         Split xmemdup0 into its own module.
44183         * modules/xmemdup0: New file.
44184         * lib/xmemdup0.h: Likewise.
44185         * lib/xmemdup0.c: Likewise.
44186         * MODULES.html.sh (Memory management functions): Add xmemdup0.
44187         * lib/xalloc.h (xmemdup0): Remove.
44188         * lib/xmalloc.c (xmemdup0): Likewise.
44189
44190 2008-05-13  Eric Blake  <ebb9@byu.net>
44191             Bruno Haible  <bruno@clisp.org>
44192
44193         Reduce number of forks required during autoconf.
44194         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
44195         and gl_LIBSOURCES_DIR.
44196         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
44197         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
44198         m4_syscmd per file.
44199         <m4_foreach_w>: Move...
44200         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
44201
44202 2008-05-13  Eric Blake  <ebb9@byu.net>
44203
44204         * gnulib-tool: Fix various comment typos.
44205
44206 2008-05-12  Bruno Haible  <bruno@clisp.org>
44207
44208         Tailor the linebreaking algorithm.
44209         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
44210
44211 2008-05-12  Bruno Haible  <bruno@clisp.org>
44212
44213         Update to Unicode 5.0.0.
44214         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
44215         LBP_JV, LBP_JT. Redistribute values.
44216         (unilbrk_table): Change size.
44217         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
44218         Unicode TR#14 rev. 22.
44219         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
44220         LBP_JV, LBP_JT. Redistribute values.
44221         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
44222         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
44223         Update.
44224         * lib/unilbrk/lbrkprop1.h: Regenerated.
44225         * lib/unilbrk/lbrkprop2.h: Regenerated.
44226         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
44227         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
44228         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
44229         Likewise.
44230         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
44231         Likewise.
44232         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
44233         result.
44234         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
44235         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
44236         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
44237         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
44238         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
44239         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
44240
44241 2008-05-11  Bruno Haible  <bruno@clisp.org>
44242
44243         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
44244
44245 2008-05-11  Bruno Haible  <bruno@clisp.org>
44246
44247         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
44248         * modules/unilbrk/gen-lbrk: New file.
44249
44250 2008-05-11  Bruno Haible  <bruno@clisp.org>
44251
44252         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
44253         * m4/sha512.m4 (gl_SHA512): Likewise.
44254
44255 2008-05-11  Jim Meyering  <meyering@redhat.com>
44256
44257         New modules: crypto/sha256, crypto/sha512 (from coreutils)
44258         * modules/crypto/sha256: New file.
44259         * modules/crypto/sha512: Likewise.
44260         * lib/sha256.c: Likewise.
44261         * lib/sha256.h: Likewise.
44262         * lib/sha512.c: Likewise.
44263         * lib/sha512.h: Likewise.
44264         * lib/u64.h: Likewise.
44265         * m4/sha256.m4: Likewise.
44266         * m4/sha512.m4: Likewise.
44267         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
44268
44269 2008-05-10  Bruno Haible  <bruno@clisp.org>
44270
44271         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
44272         (Input/Output <stdio.h>): Add xprintf.
44273         (Signal handling <signal.h>): Add strsignal.
44274         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
44275         (Core language properties): Add func.
44276         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
44277         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
44278         strings.
44279         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
44280         (Input/output): New section.
44281         (File system functions): Add openat-die, stat-macros.
44282         (Networking functions): Add sockets.
44283         (Unicode string functions): Add unictype/*.
44284         (Support for building libraries and executables): Add gperf.
44285         (Support for building documentation): Add agpl-3.0.
44286         (Misc): Add nocrash.
44287
44288 2008-05-10  Bruno Haible  <bruno@clisp.org>
44289
44290         * modules/unictype/gen-ctype: New file.
44291
44292 2008-05-10  Jim Meyering  <meyering@redhat.com>
44293
44294         Make chdir-safer.c more efficient on a system with no symlinks.
44295         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
44296         also if ELOOP is zero.  Suggested by Bruno Haible.
44297
44298         Make chdir-safer.c slightly safer.
44299         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
44300         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
44301
44302         Avoid compile failure on systems without ELOOP (like mingw).
44303         * lib/chdir-safer.c (ELOOP): Define if not already defined.
44304         Reported by Bruno Haible.
44305
44306 2008-05-10  Bruno Haible  <bruno@clisp.org>
44307
44308         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
44309         (is_utf8_encoding): Use a case-insensitive comparison.
44310         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
44311         streq.
44312
44313 2008-05-10  Bruno Haible  <bruno@clisp.org>
44314
44315         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
44316         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
44317         * lib/unilbrk/ulc-common.h (iconv_string_length,
44318         iconv_string_keeping_offsets): Remove declarations.
44319         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
44320         Don't include <iconv.h>, streq.h, xsize.h.
44321         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
44322         conversion.
44323         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
44324         <iconv.h>, streq.h, xsize.h.
44325         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
44326         conversion.
44327         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
44328         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
44329         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
44330         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
44331
44332 2008-05-10  Bruno Haible  <bruno@clisp.org>
44333
44334         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
44335         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
44336
44337         * modules/unilbrk/u32-width-linebreaks-tests: New file.
44338         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
44339
44340         * modules/unilbrk/u16-width-linebreaks-tests: New file.
44341         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
44342
44343         * modules/unilbrk/u8-width-linebreaks-tests: New file.
44344         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
44345
44346         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
44347         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
44348
44349         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
44350         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
44351
44352         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
44353         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
44354
44355         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
44356         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
44357
44358 2008-05-10  Bruno Haible  <bruno@clisp.org>
44359
44360         Split up 'linebreak' module.
44361         * lib/unilbrk.h: New file, based on lib/linebreak.h.
44362         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
44363         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
44364         modifications.
44365         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
44366         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
44367         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
44368         lib/linebreak.c.
44369         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
44370         lib/linebreak.c.
44371         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
44372         lib/linebreak.c.
44373         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
44374         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
44375         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
44376         lib/linebreak.c.
44377         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
44378         lib/linebreak.c.
44379         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
44380         lib/linebreak.c.
44381         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
44382         lib/linebreak.c.
44383         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
44384         lib/linebreak.c.
44385         * modules/unilbrk/base: New file.
44386         * modules/unilbrk/tables: New file.
44387         * modules/unilbrk/u8-possible-linebreaks: New file.
44388         * modules/unilbrk/u16-possible-linebreaks: New file.
44389         * modules/unilbrk/u32-possible-linebreaks: New file.
44390         * modules/unilbrk/ulc-common: New file.
44391         * modules/unilbrk/ulc-possible-linebreaks: New file.
44392         * modules/unilbrk/u8-width-linebreaks: New file.
44393         * modules/unilbrk/u16-width-linebreaks: New file.
44394         * modules/unilbrk/u32-width-linebreaks: New file.
44395         * modules/unilbrk/ulc-width-linebreaks: New file.
44396         * lib/linebreak.h: Remove file.
44397         * lib/linebreak.c: Remove file.
44398         * m4/linebreak.m4: Remove file.
44399         * modules/linebreak: Remove file.
44400         * NEWS: Mention the changes.
44401
44402 2008-05-09  Eric Blake  <ebb9@byu.net>
44403
44404         Add xmemdup0.
44405         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
44406         implementation.
44407         * lib/xmalloc.c (xmemdup0): New C implementation.
44408
44409 2008-05-08  Bruno Haible  <bruno@clisp.org>
44410
44411         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
44412
44413 2008-05-07  Eric Blake  <ebb9@byu.net>
44414
44415         Support cross-compilation of <wctype.h>.
44416         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
44417         AC_CACHE_CHECK.
44418
44419 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
44420
44421         * build-aux/vc-list-files: Add support for bzr.
44422
44423 2008-05-03  Jim Meyering  <meyering@redhat.com>
44424
44425         avoid failed assertion with tight malloc
44426         * tests/test-getndelim2.c: Correct an off-by-one assertion.
44427
44428 2008-05-03  Simon Josefsson  <simon@josefsson.org>
44429
44430         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
44431         are needed from arpa/inet.h.
44432         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
44433         Reported by Bruno Haible.
44434
44435 2008-05-02  Jim Meyering  <meyering@redhat.com>
44436
44437         avoid compilation error on FreeBSD 6
44438         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
44439
44440 2008-05-01  Jim Meyering  <meyering@redhat.com>
44441
44442         useless-if-before-free: correct --help's exit status description
44443         * build-aux/useless-if-before-free (usage): Like grep, exit 0
44444         for one or more matches, etc.  Reported by Bruno Haible.
44445
44446         vc-list-files: make the stand-alone gnulib test work
44447         * modules/vc-list-files-tests (configure.ac):
44448         Define and AC_SUBST abs_aux_dir.
44449         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
44450         $(abs_top_srcdir) to each script and having each of them
44451         duplicate the work of setting PATH, set PATH here, using
44452         the new variable, abs_aux_dir instead.
44453         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
44454         * tests/test-vc-list-files-git.sh: Likewise.
44455         Reported by Bruno Haible.
44456
44457 2008-05-01  Bruno Haible  <bruno@clisp.org>
44458
44459         * lib/getndelim2.c (getndelim2): Fix newsize computation during
44460         reallocation. Rename 'done' to 'found_delimiter'.
44461
44462 2008-05-01  Jim Meyering  <meyering@redhat.com>
44463
44464         vc-list-files: accommodate /bin/sh like the one from Solaris 10
44465         * build-aux/vc-list-files: Use `...`, not $(...).
44466
44467 2008-04-30  Jim Meyering  <meyering@redhat.com>
44468
44469         add tests for vc-list-files
44470         * modules/vc-list-files-tests: New module.
44471         * tests/test-vc-list-files-cvs.sh: New file.
44472         * tests/test-vc-list-files-git.sh: New file.
44473
44474         avoid a warning from gcc
44475         * lib/getndelim2.c (IF_LINT): Define.
44476         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
44477
44478         vc-list-files: work properly with build-aux/cvsu, too
44479         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
44480         to all cvs-based clauses.
44481
44482         vc-list-files: work properly in the CVS+awk case, too
44483         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
44484
44485         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
44486         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
44487         take more than one file argument, so .  Add quotes, just in case $dir
44488         ever contains a shell meta-character.  Prompted by Soren Hansen in
44489         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
44490
44491 2008-04-29  Eric Blake  <ebb9@byu.net>
44492
44493         Optimize getndelim2 to use block operations when possible.
44494         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
44495         freadseek, and memchr2.
44496         * lib/getndelim2.c (getndelim2): Use them for block reads.
44497
44498 2008-04-29  Bruno Haible  <bruno@clisp.org>
44499
44500         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
44501         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
44502         * modules/inet_ntop (Depends-on): Add extensions.
44503         * modules/inet_pton (Depends-on): Likewise.
44504         Reported by Simon Josefsson.
44505
44506 2008-04-29  Jim Meyering  <meyering@redhat.com>
44507
44508         When the is more than one match in a block, match all of them.
44509         * build-aux/useless-if-before-free: Iterate through each block
44510         until there are no more matches.
44511
44512         Fix broken useless-if-before-free script.
44513         * build-aux/useless-if-before-free: Fix typo: missing "?" after
44514         the expression to match cast of argument to free-like function.
44515
44516 2008-04-29  Eric Blake  <ebb9@byu.net>
44517
44518         Use new header.
44519         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
44520
44521 2008-04-29  Jim Meyering  <meyering@redhat.com>
44522
44523         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
44524         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
44525         by gnulib to exist and to declare e.g., inet_ntop.
44526         Don't include "inet_ntop.h", now removed.
44527
44528         * m4/arpa_inet_h.m4: Remove trailing blanks.
44529
44530 2008-04-29  Eric Blake  <ebb9@byu.net>
44531
44532         Silence valgrind on safe reads beyond potential array bounds.
44533         * lib/rawmemchr.valgrind: New file.
44534         * lib/strchrnul.valgrind: Likewise.
44535         * modules/rawmemchr (Files): Distribute new file.
44536         * modules/strchrnul (Files): Likewise.
44537         Suggested by Bruno Haible.
44538
44539 2008-04-29  Bruno Haible  <bruno@clisp.org>
44540
44541         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
44542         (inet_ntop, inet_pton): Change portability warning's wording.
44543         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
44544         Invoke gl_CHECK_NEXT_HEADERS.
44545         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
44546         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
44547         set ARPA_INET_H.
44548         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
44549         * modules/arpa_inet (Description): No longer only for systems that
44550         lack it.
44551         (Depends-on): Add include_next.
44552         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
44553         HAVE_ARPA_INET_H.
44554
44555 2008-04-29  Jim Meyering  <meyering@redhat.com>
44556
44557         * modules/mkdir (License): Re-license as LGPLv2+.
44558
44559 2008-04-29  Bruno Haible  <bruno@clisp.org>
44560
44561         * modules/rawmemchr (Maintainer): Set to Eric.
44562         * modules/strchrnul (Maintainer): Likewise.
44563
44564 2008-04-29  Simon Josefsson  <simon@josefsson.org>
44565
44566         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
44567         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
44568
44569         * modules/arpa_inet (arpa/inet.h): Use them.
44570
44571 2008-04-28  Eric Blake  <ebb9@byu.net>
44572
44573         Test getndelim2.
44574         * modules/getndelim2-tests: New file.
44575         * tests/test-getndelim2.c: Likewise.
44576         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
44577         stream.
44578         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
44579
44580         * MODULES.html.sh: Document new module.
44581
44582 2008-04-20  Bruno Haible  <bruno@clisp.org>
44583
44584         * lib/c-stack.c (die): Use raise.
44585         * modules/c-stack (Depends-on): Add raise.
44586
44587 2008-04-28  Bruno Haible  <bruno@clisp.org>
44588
44589         Expect rpmatch to be declared.
44590         * lib/yesno.c (rpmatch): Remove declaration.
44591
44592         Declare rpmatch.
44593         * lib/stdlib.in.h (rpmatch): New declaration.
44594         * lib/rpmatch.c: Include <stdlib.h> first.
44595         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
44596         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
44597         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
44598         HAVE_RPMATCH.
44599         * modules/rpmatch (Depends-on): Add stdlib, extensions.
44600         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
44601         (Include): Set to <stdlib.h>.
44602         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
44603         HAVE_RPMATCH.
44604         * NEWS: Document the change.
44605
44606 2008-04-28  Bruno Haible  <bruno@clisp.org>
44607
44608         Change rpmatch to use nl_langinfo when appropriate.
44609         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
44610         (N_): New macro.
44611         (localized_pattern): New function/macro.
44612         (try): Remove match, nomatch arguments. Copy the pattern into safe
44613         memory before caching it.
44614         (rpmatch): Use localized_pattern. Add translator comments.
44615         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
44616         Suggested by Eric Blake.
44617         * modules/rpmatch (Depends-on): Add stdbool.
44618
44619 2008-04-28  Eric Blake  <ebb9@byu.net>
44620
44621         Add rawmemchr module, matching glibc.
44622         * modules/string (Makefile.am): New indicator.
44623         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
44624         * lib/string.in.h (rawmemchr): Declare when appropriate.
44625         * modules/rawmemchr: New file.
44626         * m4/rawmemchr.m4: Likewise.
44627         * lib/rawmemchr.c: Likewise.
44628         * modules/rawmemchr-tests: Likewise.
44629         * tests/test-rawmemchr.c: Likewise.
44630         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
44631         module.
44632         * modules/strchrnul (Depends-on): Add rawmemchr.
44633         * lib/strchrnul.c (strchrnul): Optimize a corner case.
44634
44635         Whitespace cleanup.
44636         * tests/test-strchrnul.c: Reindent.
44637         * lib/strchrnul.c: Likewise.
44638
44639         Optimize and test strchrnul.
44640         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
44641         * modules/strchrnul-tests: New file.
44642         * tests/test-strchrnul.c: Likewise.
44643
44644         Remove intprops dependency.
44645         * modules/memchr (Depends-on): Remove intprops.
44646         * modules/memrchr (Depends-on): Likewise.
44647         * modules/memchr2 (Depends-on): Likewise.
44648         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
44649         * lib/memrchr.c (__memrchr): Likewise.
44650         * lib/memrchr2.c (memchr2): Likewise.
44651         Reported by Simon Josefsson.
44652
44653 2008-04-28  Simon Josefsson  <simon@josefsson.org>
44654
44655         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
44656         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
44657
44658 2008-04-28  Simon Josefsson  <simon@josefsson.org>
44659
44660         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
44661
44662         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
44663
44664         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
44665
44666         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
44667         declarations.
44668         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
44669
44670         * m4/inet_pton.m4: Don't check for header files.
44671
44672         * m4/inet_ntop.m4: Don't check for header files.
44673
44674 2008-04-28  Simon Josefsson  <simon@josefsson.org>
44675
44676         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
44677         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
44678         trigger for cygwin).
44679         Reported by Bruno Haible  <bruno@clisp.org>.
44680
44681 2008-04-28  Bruno Haible  <bruno@clisp.org>
44682
44683         * doc/posix-functions/strdup.texi: Mention mingw problem.
44684
44685 2008-04-27  Bruno Haible  <bruno@clisp.org>
44686
44687         * modules/stat-time-tests (Depends-on): Add sleep.
44688         * tests/test-stat-time.c (force_unlink): New function.
44689         (cleanup): Use it.
44690         (test_mtime): Remove the ctime related tests.
44691         (test_ctime): New function, containing the ctime related tests.
44692         (main): Call test_ctime, except on native Windows platforms.
44693
44694 2008-04-27  Bruno Haible  <bruno@clisp.org>
44695
44696         * lib/rpmatch.c (rpmatch): Add some comments.
44697         Reported by James Youngman <jay@gnu.org>.
44698
44699 2008-04-27  Bruno Haible  <bruno@clisp.org>
44700
44701         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
44702         quiet NaNs.
44703
44704 2008-04-27  Bruno Haible  <bruno@clisp.org>
44705
44706         Make test-yesno.sh work on mingw.
44707         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
44708         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
44709         (main): Set stdin to binary mode.
44710         * modules/yesno-tests (Depends-on): Add binary-io.
44711
44712 2008-04-27  Bruno Haible  <bruno@clisp.org>
44713
44714         Fix 'isfinite' on x86, x86_64, ia64 platforms.
44715         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
44716         argument that lie outside the IEEE 854 domain.
44717         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
44718         (gl_ISFINITE): Use it.
44719         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
44720
44721 2008-04-27  Bruno Haible  <bruno@clisp.org>
44722
44723         Allow local renaming in config.h.
44724         * lib/memrchr.c (memrchr): Don't undefine outside libc.
44725
44726 2008-04-27  Bruno Haible  <bruno@clisp.org>
44727
44728         * lib/memchr.c (__memchr): Change type of 'i'.
44729         * lib/memchr2.c (memchr2): Likewise.
44730
44731 2008-04-26  Eric Blake  <ebb9@byu.net>
44732         and Bruno Haible  <bruno@clisp.org>
44733
44734         Optimize and test memrchr.
44735         * modules/memrchr (Depends-on): Add intprops.
44736         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
44737         * modules/memrchr-tests: New file.
44738         * tests/test-memrchr.c: New file.
44739
44740 2008-04-26  Bruno Haible  <bruno@clisp.org>
44741
44742         Add tentative support for DragonFly BSD.
44743         * lib/stdio-impl.h: Add macros for DragonFly BSD.
44744         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
44745         fp.
44746         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
44747         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
44748         * lib/fpurge.c (fpurge): Likewise.
44749         * lib/freadable.c (freaadable): Likewise.
44750         * lib/freadahead.c (freadahead): Likewise.
44751         * lib/freading.c (freading): Likewise.
44752         * lib/freadptr.c (freadptr): Likewise.
44753         * lib/freadseek.c (freadptrinc): Likewise.
44754         * lib/fseeko.c (fseeko): Likewise.
44755         * lib/fseterr.c (fseterr): Likewise.
44756         * lib/fwritable.c (fwritable): Likewise.
44757         * lib/fwriting.c (fwriting): Likewise.
44758
44759 2008-04-26  Bruno Haible  <bruno@clisp.org>
44760
44761         * lib/stdio-impl.h: New file.
44762         * lib/fbufmode.c: Include stdio-impl.h.
44763         (fbufmode): Use fp_, remove redundant #defines.
44764         * lib/fflush.c: Include stdio-impl.h.
44765         (clear_ungetc_buffer): Remove redundant #defines.
44766         * lib/fpurge.c: Include stdio-impl.h.
44767         (fpurge): Remove redundant #defines.
44768         * lib/freadable.c: Include stdio-impl.h.
44769         (freadable): Remove redundant #defines.
44770         * lib/freadahead.c: Include stdio-impl.h.
44771         (freadahead): Remove redundant #defines.
44772         * lib/freading.c: Include stdio-impl.h.
44773         (freading): Remove redundant #defines.
44774         * lib/freadptr.c: Include stdio-impl.h.
44775         (freadptr): Remove redundant #defines.
44776         * lib/freadseek.c: Include stdio-impl.h.
44777         (freadptrinc): Remove redundant #defines.
44778         * lib/fseeko.c: Include stdio-impl.h.
44779         (rpl_fseeko): Remove redundant #defines.
44780         * lib/fseterr.c: Include stdio-impl.h.
44781         (fseterr): Remove redundant #defines.
44782         * lib/fwritable.c: Include stdio-impl.h.
44783         (fwritable: Remove redundant #defines.
44784         * lib/fwriting.c: Include stdio-impl.h.
44785         (fwriting): Remove redundant #defines.
44786         * modules/fbufmode (Files): Add lib/stdio-impl.h.
44787         * modules/fflush (Files): Likewise.
44788         * modules/fpurge (Files): Likewise.
44789         * modules/freadable (Files): Likewise.
44790         * modules/freadahead (Files): Likewise.
44791         * modules/freading (Files): Likewise.
44792         * modules/freadptr (Files): Likewise.
44793         * modules/freadseek (Files): Likewise.
44794         * modules/fseeko (Files): Likewise.
44795         * modules/fseterr (Files): Likewise.
44796         * modules/fwritable (Files): Likewise.
44797         * modules/fwriting (Files): Likewise.
44798
44799 2008-04-26  Bruno Haible  <bruno@clisp.org>
44800
44801         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
44802         restore_seek_optimization, update_fpos_cache): New functions, extracted
44803         from rpl_fflush.
44804         (rpl_fflush): Use them.
44805         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
44806         (gl_REPLACE_FFLUSH): Use it.
44807
44808 2008-04-26  Bruno Haible  <bruno@clisp.org>
44809
44810         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
44811         on Solaris.
44812         * tests/test-xstrtoimax.sh: Likewise.
44813         * tests/test-xstrtoumax.sh: Likewise.
44814         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
44815
44816 2008-04-26  Bruno Haible  <bruno@clisp.org>
44817
44818         * modules/memchr-tests: New file.
44819         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
44820
44821 2008-04-26  Eric Blake  <ebb9@byu.net>
44822             Bruno Haible  <bruno@clisp.org>
44823
44824         * lib/memchr.c: Include intprops.h.
44825         (__memchr): Optimize parallel detection of matching bytes. Rename local
44826         variables. Add explanatory comments.
44827
44828 2008-04-26  Bruno Haible  <bruno@clisp.org>
44829
44830         Fix module 'memchr', broken since 2000-10-28.
44831         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
44832
44833 2008-04-26  Bruno Haible  <bruno@clisp.org>
44834
44835         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
44836         comments.
44837
44838 2008-04-25  Eric Blake  <ebb9@byu.net>
44839
44840         Use native fstatat on cygwin 1.7.0.
44841         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
44842         first.
44843
44844 2008-04-23  Eric Blake  <ebb9@byu.net>
44845
44846         Improve memchr2 performance.
44847         * lib/memchr2.c (memchr2): Further optimize parallel detection of
44848         NUL bytes.
44849         * modules/memchr2 (Depends-on): Use intprops.h.
44850
44851 2008-04-23  Simon Josefsson  <simon@josefsson.org>
44852
44853         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
44854         an inline function instead of a CPP macro.  Patch by Ben Pfaff
44855         <blp@cs.stanford.edu>.
44856
44857 2008-04-23  Simon Josefsson  <simon@josefsson.org>
44858
44859         * lib/arpa_inet.in.h: New file.
44860
44861         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
44862         (Makefile.am): Sed in substitute header file.
44863
44864         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
44865         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
44866
44867         * modules/inet_ntop (configure.ac): Use
44868         gl_ARPA_INET_MODULE_INDICATOR.
44869
44870         * modules/inet_pton (configure.ac): Use
44871         gl_ARPA_INET_MODULE_INDICATOR.
44872
44873 2008-04-22  Jim Meyering  <meyering@redhat.com>
44874
44875         * modules/verify (License): Re-license as LGPLv2+.
44876
44877 2008-04-22  Simon Josefsson  <simon@josefsson.org>
44878
44879         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
44880         parameter to void* as per POSIX standard (MinGW uses char*).
44881
44882 2008-04-21  Bruno Haible  <bruno@clisp.org>
44883
44884         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
44885         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
44886         Define to replacements if REPLACE_ISWCNTRL is 1.
44887         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
44888         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
44889         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
44890         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
44891         what it fixes.
44892         * doc/posix-functions/iswalpha.texi: Likewise.
44893         * doc/posix-functions/iswblank.texi: Likewise.
44894         * doc/posix-functions/iswcntrl.texi: Likewise.
44895         * doc/posix-functions/iswdigit.texi: Likewise.
44896         * doc/posix-functions/iswgraph.texi: Likewise.
44897         * doc/posix-functions/iswlower.texi: Likewise.
44898         * doc/posix-functions/iswprint.texi: Likewise.
44899         * doc/posix-functions/iswpunct.texi: Likewise.
44900         * doc/posix-functions/iswspace.texi: Likewise.
44901         * doc/posix-functions/iswupper.texi: Likewise.
44902         * doc/posix-functions/iswxdigit.texi: Likewise.
44903         Reported by Alain Guibert.
44904
44905 2008-04-21  Bruno Haible  <bruno@clisp.org>
44906
44907         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
44908         Patch by Alain Guibert.
44909
44910 2008-04-21  Bruno Haible  <bruno@clisp.org>
44911
44912         Fix test failures on mingw.
44913         * tests/test-xstrtol.c (print_no_progname): New function.
44914         (main): Install it in error_print_progname hook.
44915         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
44916         * tests/test-xstrtoimax.sh: Likewise.
44917         * tests/test-xstrtoumax.sh: Likewise.
44918
44919 2008-04-21  Bruno Haible  <bruno@clisp.org>
44920
44921         Fix test failure on mingw.
44922         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
44923
44924 2008-04-21  Bruno Haible  <bruno@clisp.org>
44925
44926         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
44927         Actually assign a value.
44928
44929 2008-04-20  Bruno Haible  <bruno@clisp.org>
44930
44931         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
44932         take 2.
44933         * lib/canonicalize.c (canonicalize_file_name): Elide if the
44934         'canonicalize-lgpl' module is also used.
44935         * lib/canonicalize-lgpl.c: Undo last change.
44936         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
44937
44938 2008-04-20  Bruno Haible  <bruno@clisp.org>
44939
44940         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
44941         config.h. Provide _mkdir based fallback for mingw.
44942         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
44943         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
44944         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
44945         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
44946         rather than defining mkdir in config.h.
44947         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
44948         (gl_SYS_STAT_H_DEFAULTS): New macro.
44949         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
44950         HAVE_IO_H any more.
44951         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
44952         HAVE_DECL_MKDIR and HAVE_IO_H.
44953
44954 2008-04-20  Bruno Haible  <bruno@clisp.org>
44955
44956         * lib/isapipe.c: Port to native Windows platforms.
44957
44958 2008-04-20  Bruno Haible  <bruno@clisp.org>
44959
44960         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
44961
44962 2008-04-21  Eric Blake  <ebb9@byu.net>
44963
44964         Work around preprocessors that don't handle UINTMAX_MAX.
44965         * lib/memchr2.c (memchr2): Avoid embedded #if.
44966         Reported by Alain Guibert, fix suggested by Bruno Haible.
44967
44968 2008-04-21  Simon Josefsson  <simon@josefsson.org>
44969
44970         * doc/posix-functions/strftime.texi (strftime): Explain better
44971         Windows incompatibility.  Suggested by Micah Cowan
44972         <micah@cowan.name>.
44973
44974 2008-04-20  Bruno Haible  <bruno@clisp.org>
44975
44976         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
44977         unistr/u8-mblen.
44978
44979 2008-04-20  Bruno Haible  <bruno@clisp.org>
44980
44981         Fix test failure on platforms with non-GNU iconv.
44982         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
44983         (U_TO_U8): Use it, rather than u16_to_u8.
44984         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
44985         units at the end of the input string.
44986         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
44987
44988 2008-04-20  Bruno Haible  <bruno@clisp.org>
44989
44990         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
44991         when the resulting length is 0.
44992         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
44993
44994 2008-04-20  Bruno Haible  <bruno@clisp.org>
44995
44996         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
44997         works.
44998         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
44999
45000 2008-04-20  Bruno Haible  <bruno@clisp.org>
45001
45002         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
45003         * modules/tsearch-tests (configure.ac): Test for initstate function.
45004
45005 2008-04-20  Bruno Haible  <bruno@clisp.org>
45006
45007         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
45008         for nlink_t if missing.
45009         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
45010
45011 2008-04-19  Bruno Haible  <bruno@clisp.org>
45012
45013         Work around snprintf bug on Linux libc5.
45014         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
45015         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
45016         gl_SNPRINTF_SIZE1.
45017         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
45018         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
45019         that test failed.
45020         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
45021         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
45022         * modules/snprintf (Files): Add m4/printf.m4.
45023         * modules/vsnprintf (Files): Likewise.
45024         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
45025         * doc/posix-functions/vsnprintf.texi: Likewise.
45026
45027 2008-04-19  Bruno Haible  <bruno@clisp.org>
45028
45029         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
45030         from 0.0058 to less than 10^-7.
45031
45032 2008-04-19  Bruno Haible  <bruno@clisp.org>
45033
45034         Fix rounding when a precision is given.
45035         * lib/vasnprintf.c (is_borderline): New function.
45036         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
45037         9...9x.
45038         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
45039         %e, %g.
45040         * tests/test-vasprintf-posix.c (test_function): Likewise.
45041         * tests/test-snprintf-posix.h (test_function): Likewise.
45042         * tests/test-sprintf-posix.h (test_function): Likewise.
45043         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
45044         * tests/test-printf-posix.h (test_function): Likewise.
45045         * tests/test-printf-posix.output: Update.
45046         Reported by John Darrington <john@darrington.wattle.id.au> via
45047         Ben Pfaff <blp@cs.stanford.edu>.
45048
45049 2008-04-18  Simon Josefsson  <simon@josefsson.org>
45050
45051         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
45052         Suggested by Bruno Haible <bruno@clisp.org>.
45053
45054 2008-04-17  Bruno Haible  <bruno@clisp.org>
45055
45056         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
45057         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
45058         implementation.
45059         Patch by Bruce Merry <bmerry@gmail.com>.
45060
45061 2008-04-17  Simon Josefsson  <simon@josefsson.org>
45062
45063         * doc/posix-functions/strftime.texi (strftime): Mention that %e
45064         doesn't work under Windows.
45065
45066 2008-04-16  Bruno Haible  <bruno@clisp.org>
45067
45068         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
45069         New macros.
45070         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
45071         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
45072         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
45073         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
45074         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
45075         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
45076         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
45077         macros.
45078         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
45079         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
45080         Northern Sotho, Uighur.
45081
45082 2008-04-16  Bruno Haible  <bruno@clisp.org>
45083
45084         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
45085         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
45086         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
45087         Reported by Daniel Bergström <daniel@octocode.com>.
45088
45089 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
45090             Bruno Haible  <bruno@clisp.org>
45091
45092         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
45093         function.
45094         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
45095         New functions, mostly extracted from gl_locale_name_default.
45096         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
45097
45098 2008-04-16  Eric Blake  <ebb9@byu.net>
45099
45100         Adjust strtod detection to catch glibc 2.7 bug.
45101         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
45102         Reported by John Gatewood Ham.
45103
45104 2008-04-16  Bruno Haible  <bruno@clisp.org>
45105
45106         Add tentative support for Linux libc5.
45107         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
45108         * lib/fpurge.c (fpurge): Likewise.
45109         * lib/freadable.c (freadable): Likewise.
45110         * lib/freadahead.c (freadahead): Likewise.
45111         * lib/freading.c (freading): Likewise.
45112         * lib/freadptr.c (freadptr): Likewise.
45113         * lib/freadseek.c (freadptrinc): Likewise.
45114         * lib/fseeko.c (rpl_fseeko): Likewise.
45115         * lib/fseterr.c (fseterr): Likewise.
45116         * lib/fwritable.c (fwritable): Likewise.
45117         * lib/fwriting.c (fwriting): Likewise.
45118         Reported by Alain Guibert <alguibert+bts@free.fr>.
45119
45120 2008-04-15  Bruno Haible  <bruno@clisp.org>
45121
45122         * modules/mathl (configure.ac): Define module indicator.
45123
45124 2008-04-15  Bruno Haible  <bruno@clisp.org>
45125
45126         * lib/logl.c (logl): Remove unused variables.
45127
45128 2008-04-15  Bruno Haible  <bruno@clisp.org>
45129
45130         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
45131         fails.
45132
45133 2008-04-15  Bruno Haible  <bruno@clisp.org>
45134
45135         * lib/trim.c (trim2): Fix argument of isspace() macro.
45136
45137 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
45138
45139         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
45140         to 0.
45141         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
45142
45143 2008-04-14  Bruno Haible  <bruno@clisp.org>
45144
45145         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
45146         AC_LANG_PROGRAM argument.
45147         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
45148         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
45149         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
45150         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
45151         * m4/math_h.m4 (gl_MATH_H): Likewise.
45152         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
45153         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
45154         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
45155         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
45156         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
45157         * m4/regex.m4 (gl_REGEX): Likewise.
45158         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
45159         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
45160         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
45161         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
45162         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
45163         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
45164         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
45165         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
45166
45167 2008-04-14  Jim Meyering  <meyering@redhat.com>
45168
45169         test-strtod: fix typos: s/abs/fabs/
45170         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
45171
45172 2008-04-13  Bruno Haible  <bruno@clisp.org>
45173
45174         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
45175         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
45176         module is also used and while not building the reloc-wrapper.
45177
45178 2008-04-13  Bruno Haible  <bruno@clisp.org>
45179
45180         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
45181
45182 2008-04-13  Bruno Haible  <bruno@clisp.org>
45183
45184         Fix AIX compilation failure introduced on 2008-04-02.
45185         * tests/test-frexp.c (exp): Undefine before redefining.
45186         * tests/test-frexpl.c (exp): Likewise.
45187
45188 2008-04-13  Bruno Haible  <bruno@clisp.org>
45189
45190         Work around a HP-UX stdio bug.
45191         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
45192         * tests/test-ftello.c (main): Likewise.
45193         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
45194         * doc/posix-functions/ftello.texi: Likewise.
45195
45196 2008-04-13  Bruno Haible  <bruno@clisp.org>
45197
45198         Make test-signbit pass on HP-UX/hppa.
45199         * tests/test-signbit.c (minus_zerol): New variable.
45200         (test_signbitl): Use it.
45201
45202 2008-04-13  Bruno Haible  <bruno@clisp.org>
45203
45204         Make truncl work on OSF/1 4.0.
45205         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
45206         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
45207         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
45208         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
45209         HAVE_DECL_TRUNCL.
45210         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
45211         HAVE_DECL_TRUNCL.
45212         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
45213
45214 2008-04-13  Bruno Haible  <bruno@clisp.org>
45215
45216         * lib/unictype.h: Remove trailing comma from enumeration definitions.
45217
45218 2008-04-13  Bruno Haible  <bruno@clisp.org>
45219
45220         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
45221         expression, so as to avoid HP-UX 11 cc compiler bug.
45222
45223 2008-04-13  Bruno Haible  <bruno@clisp.org>
45224
45225         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
45226
45227 2008-04-13  Bruno Haible  <bruno@clisp.org>
45228
45229         * lib/git-merge-changelog.c: Remove empty declaration outside of
45230         functions.
45231
45232 2008-04-13  Bruno Haible  <bruno@clisp.org>
45233
45234         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
45235
45236 2008-04-13  Bruno Haible  <bruno@clisp.org>
45237
45238         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
45239         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
45240         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
45241         also if it exists but lacks definitions of the SHUT_* macros.
45242         * modules/sys_socket (Description): Update.
45243         Reported by Elbert Pol <e.pol@chello.nl>.
45244
45245 2008-04-13  Bruno Haible  <bruno@clisp.org>
45246
45247         * lib/localcharset.c (OS2): Don't redefine if already defined.
45248         Reported by Elbert Pol <e.pol@chello.nl>.
45249
45250 2008-04-13  Bruno Haible  <bruno@clisp.org>
45251
45252         * lib/binary-io.h [__EMX__]: Include <io.h>.
45253         Reported by Elbert Pol <e.pol@chello.nl>.
45254
45255 2008-04-12  Bruno Haible  <bruno@clisp.org>
45256
45257         * lib/fpucw.h: Enable the definitions also for x86_64.
45258         Needed for NetBSD/x86_64.
45259         Reported by Thomas Klausner <tk@giga.or.at>.
45260
45261 2008-04-12  Bruno Haible  <bruno@clisp.org>
45262
45263         * tests/test-strtod.c: Include isnand.h.
45264         (main): Use isnand instead of isnan.
45265         Reported by Jim Meyering.
45266
45267 2008-04-12  Bruno Haible  <bruno@clisp.org>
45268
45269         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
45270         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
45271
45272 2008-04-12  Jim Meyering  <meyering@redhat.com>
45273
45274         * m4/math_h.m4 (gl_MATH_H): Fix typos.
45275
45276 2008-04-12  Bruno Haible  <bruno@clisp.org>
45277
45278         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
45279         Reported by Elbert Pol <e.pol@chello.nl>.
45280
45281 2008-04-12  Eric Blake  <ebb9@byu.net>
45282
45283         Work around Solaris 10 math.h bug.
45284         * m4/math_h.m4 (gl_MATH_H): Check for bug.
45285         (gl_MATH_H_DEFAULTS): Set up default.
45286         * modules/math (Makefile.am): Replace new indicators.
45287         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
45288         * tests/test-math.c (main): Test this.
45289         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
45290         * doc/posix-headers/math.texi (math.h): Mention bug.
45291         Reported by Nelson H. F. Beebe and Jim Meyering.
45292
45293 2008-04-11  Bruno Haible  <bruno@clisp.org>
45294
45295         Adapt to future versions of Apple GCC.
45296         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
45297         Reported by Peter O'Gorman <peter@pogma.com>.
45298
45299 2008-04-11  Bruno Haible  <bruno@clisp.org>
45300
45301         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
45302
45303 2008-04-11  Bruno Haible  <bruno@clisp.org>
45304
45305         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
45306
45307         * modules/getaddrinfo-tests (Makefile.am): Define
45308         test_getaddrinfo_LDADD.
45309
45310 2008-04-11  Bruno Haible  <bruno@clisp.org>
45311
45312         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
45313         (init): Fix syntax error.
45314         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
45315         is declared.
45316
45317 2008-04-11  Bruno Haible  <bruno@clisp.org>
45318
45319         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
45320         * modules/glob (Depends-on): Add stdbool.
45321
45322 2008-04-11  Bruno Haible  <bruno@clisp.org>
45323
45324         * lib/trim.c: Include <string.h>.
45325
45326 2008-04-11  Eric Blake  <ebb9@byu.net>
45327
45328         Avoid compile failure on OS/2.
45329         * lib/regex_internal.h (internal_function): Disable optimization
45330         on OS/2 (__EMX__), where it caused compiler error.
45331         Reported by Elbert Pol.
45332
45333 2008-04-11  Bruno Haible  <bruno@clisp.org>
45334
45335         Flush the standard error stream before aborting. Needed on mingw.
45336         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
45337         * tests/test-array_list.c (ASSERT): Likewise.
45338         * tests/test-array_oset.c (ASSERT): Likewise.
45339         * tests/test-avltree_list.c (ASSERT): Likewise.
45340         * tests/test-avltree_oset.c (ASSERT): Likewise.
45341         * tests/test-avltreehash_list.c (ASSERT): Likewise.
45342         * tests/test-binary-io.c (ASSERT): Likewise.
45343         * tests/test-byteswap.c (ASSERT): Likewise.
45344         * tests/test-c-ctype.c (ASSERT): Likewise.
45345         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
45346         * tests/test-c-strcasestr.c (ASSERT): Likewise.
45347         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
45348         * tests/test-c-strstr.c (ASSERT): Likewise.
45349         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
45350         * tests/test-canonicalize.c (ASSERT): Likewise.
45351         * tests/test-carray_list.c (ASSERT): Likewise.
45352         * tests/test-ceilf1.c (ASSERT): Likewise.
45353         * tests/test-ceilf2.c (ASSERT): Likewise.
45354         * tests/test-ceill.c (ASSERT): Likewise.
45355         * tests/test-count-one-bits.c (ASSERT): Likewise.
45356         * tests/test-fbufmode.c (ASSERT): Likewise.
45357         * tests/test-fflush2.c (ASSERT): Likewise.
45358         * tests/test-floorf1.c (ASSERT): Likewise.
45359         * tests/test-floorf2.c (ASSERT): Likewise.
45360         * tests/test-floorl.c (ASSERT): Likewise.
45361         * tests/test-fopen.c (ASSERT): Likewise.
45362         * tests/test-fpending.c (ASSERT): Likewise.
45363         * tests/test-fprintf-posix.c (ASSERT): Likewise.
45364         * tests/test-fpurge.c (ASSERT): Likewise.
45365         * tests/test-freadable.c (ASSERT): Likewise.
45366         * tests/test-freadahead.c (ASSERT): Likewise.
45367         * tests/test-freading.c (ASSERT): Likewise.
45368         * tests/test-freadptr.c (ASSERT): Likewise.
45369         * tests/test-freadptr2.c (ASSERT): Likewise.
45370         * tests/test-freadseek.c (ASSERT): Likewise.
45371         * tests/test-freopen.c (ASSERT): Likewise.
45372         * tests/test-frexp.c (ASSERT): Likewise.
45373         * tests/test-frexpl.c (ASSERT): Likewise.
45374         * tests/test-fseek.c (ASSERT): Likewise.
45375         * tests/test-fseeko.c (ASSERT): Likewise.
45376         * tests/test-fstrcmp.c (ASSERT): Likewise.
45377         * tests/test-ftell.c (ASSERT): Likewise.
45378         * tests/test-ftello.c (ASSERT): Likewise.
45379         * tests/test-func.c (ASSERT): Likewise.
45380         * tests/test-fwritable.c (ASSERT): Likewise.
45381         * tests/test-fwriting.c (ASSERT): Likewise.
45382         * tests/test-getdelim.c (ASSERT): Likewise.
45383         * tests/test-getline.c (ASSERT): Likewise.
45384         * tests/test-i-ring.c (ASSERT): Likewise.
45385         * tests/test-iconv-utf.c (ASSERT): Likewise.
45386         * tests/test-iconv.c (ASSERT): Likewise.
45387         * tests/test-isfinite.c (ASSERT): Likewise.
45388         * tests/test-isnand.c (ASSERT): Likewise.
45389         * tests/test-isnanf.c (ASSERT): Likewise.
45390         * tests/test-isnanl.h (ASSERT): Likewise.
45391         * tests/test-ldexpl.c (ASSERT): Likewise.
45392         * tests/test-linked_list.c (ASSERT): Likewise.
45393         * tests/test-linkedhash_list.c (ASSERT): Likewise.
45394         * tests/test-localename.c (ASSERT): Likewise.
45395         * tests/test-lseek.c (ASSERT): Likewise.
45396         * tests/test-mbscasecmp.c (ASSERT): Likewise.
45397         * tests/test-mbscasestr1.c (ASSERT): Likewise.
45398         * tests/test-mbscasestr2.c (ASSERT): Likewise.
45399         * tests/test-mbscasestr3.c (ASSERT): Likewise.
45400         * tests/test-mbscasestr4.c (ASSERT): Likewise.
45401         * tests/test-mbschr.c (ASSERT): Likewise.
45402         * tests/test-mbscspn.c (ASSERT): Likewise.
45403         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
45404         * tests/test-mbspbrk.c (ASSERT): Likewise.
45405         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
45406         * tests/test-mbsrchr.c (ASSERT): Likewise.
45407         * tests/test-mbsspn.c (ASSERT): Likewise.
45408         * tests/test-mbsstr1.c (ASSERT): Likewise.
45409         * tests/test-mbsstr2.c (ASSERT): Likewise.
45410         * tests/test-mbsstr3.c (ASSERT): Likewise.
45411         * tests/test-memchr2.c (ASSERT): Likewise.
45412         * tests/test-memmem.c (ASSERT): Likewise.
45413         * tests/test-open.c (ASSERT): Likewise.
45414         * tests/test-printf-frexp.c (ASSERT): Likewise.
45415         * tests/test-printf-frexpl.c (ASSERT): Likewise.
45416         * tests/test-printf-posix.c (ASSERT): Likewise.
45417         * tests/test-quotearg.c (ASSERT): Likewise.
45418         * tests/test-rbtree_list.c (ASSERT): Likewise.
45419         * tests/test-rbtree_oset.c (ASSERT): Likewise.
45420         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
45421         * tests/test-round1.c (ASSERT): Likewise.
45422         * tests/test-roundf1.c (ASSERT): Likewise.
45423         * tests/test-roundl.c (ASSERT): Likewise.
45424         * tests/test-signbit.c (ASSERT): Likewise.
45425         * tests/test-sleep.c (ASSERT): Likewise.
45426         * tests/test-snprintf-posix.c (ASSERT): Likewise.
45427         * tests/test-snprintf.c (ASSERT): Likewise.
45428         * tests/test-sprintf-posix.c (ASSERT): Likewise.
45429         * tests/test-stat-time.c (ASSERT): Likewise.
45430         * tests/test-strcasestr.c (ASSERT): Likewise.
45431         * tests/test-strerror.c (ASSERT): Likewise.
45432         * tests/test-striconv.c (ASSERT): Likewise.
45433         * tests/test-striconveh.c (ASSERT): Likewise.
45434         * tests/test-striconveha.c (ASSERT): Likewise.
45435         * tests/test-strsignal.c (ASSERT): Likewise.
45436         * tests/test-strstr.c (ASSERT): Likewise.
45437         * tests/test-strtod.c (ASSERT): Likewise.
45438         * tests/test-trunc1.c (ASSERT): Likewise.
45439         * tests/test-trunc2.c (ASSERT): Likewise.
45440         * tests/test-truncf1.c (ASSERT): Likewise.
45441         * tests/test-truncf2.c (ASSERT): Likewise.
45442         * tests/test-truncl.c (ASSERT): Likewise.
45443         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
45444         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
45445         * tests/test-vasnprintf.c (ASSERT): Likewise.
45446         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
45447         * tests/test-vasprintf.c (ASSERT): Likewise.
45448         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
45449         * tests/test-vprintf-posix.c (ASSERT): Likewise.
45450         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
45451         * tests/test-vsnprintf.c (ASSERT): Likewise.
45452         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
45453         * tests/test-wcwidth.c (ASSERT): Likewise.
45454         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
45455         * tests/test-xprintf-posix.c (ASSERT): Likewise.
45456         * tests/test-xvasprintf.c (ASSERT): Likewise.
45457         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
45458         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
45459         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
45460         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
45461         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
45462         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
45463         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
45464         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
45465         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
45466         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
45467         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
45468         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
45469         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
45470         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
45471         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
45472         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
45473         * tests/unictype/test-block_list.c (ASSERT): Likewise.
45474         * tests/unictype/test-block_of.c (ASSERT): Likewise.
45475         * tests/unictype/test-block_test.c (ASSERT): Likewise.
45476         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
45477         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
45478         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
45479         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
45480         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
45481         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
45482         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
45483         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
45484         * tests/unictype/test-combining.c (ASSERT): Likewise.
45485         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
45486         * tests/unictype/test-digit.c (ASSERT): Likewise.
45487         * tests/unictype/test-mirror.c (ASSERT): Likewise.
45488         * tests/unictype/test-numeric.c (ASSERT): Likewise.
45489         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
45490         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
45491         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
45492         * tests/unictype/test-scripts.c (ASSERT): Likewise.
45493         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
45494         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
45495         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
45496         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
45497         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
45498         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
45499         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
45500         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
45501         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
45502         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
45503         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
45504         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
45505         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
45506         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
45507         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
45508         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
45509         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
45510         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
45511         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
45512         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
45513         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
45514         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
45515         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
45516         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
45517         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
45518         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
45519         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
45520         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
45521         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
45522         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
45523         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
45524         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
45525         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
45526         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
45527         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
45528         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
45529         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
45530         Reported by Eric Blake.
45531
45532 2008-04-11  Bruno Haible  <bruno@clisp.org>
45533
45534         * lib/wchar.in.h: Tweak comment.
45535
45536 2008-04-11  Bruno Haible  <bruno@clisp.org>
45537
45538         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
45539         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
45540         gl_COMMON.
45541         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
45542
45543 2008-04-11  Bruno Haible  <bruno@clisp.org>
45544
45545         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
45546
45547 2008-04-11  Simon Josefsson  <simon@josefsson.org>
45548
45549         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
45550         of attempting to use non-existing /dev/*random.  Based on patch
45551         from Adam Strzelecki <ono@java.pl> in
45552         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
45553
45554 2008-04-08  Bruno Haible  <bruno@clisp.org>
45555
45556         Add tentative support for emx+gcc.
45557         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
45558         * lib/fpurge.c (fpurge): Likewise.
45559         * lib/freadable.c (freadable): Likewise.
45560         * lib/freadahead.c (freadahead): Likewise.
45561         * lib/freading.c (freading): Likewise.
45562         * lib/freadptr.c (freadptr): Likewise.
45563         * lib/freadseek.c (freadptrinc): Likewise.
45564         * lib/fseeko.c (rpl_fseeko): Likewise.
45565         * lib/fseterr.c (fseterr): Likewise.
45566         * lib/fwritable.c (fwritable): Likewise.
45567         * lib/fwriting.c (fwriting): Likewise.
45568         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
45569
45570 2008-04-09  Eric Blake  <ebb9@byu.net>
45571
45572         Avoid some autoconf warnings.
45573         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
45574         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
45575         * m4/afs.m4 (gl_AFS): Likewise.
45576         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
45577         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
45578         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
45579         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
45580         (gl_INTEGER_TYPE_SUFFIX): Likewise.
45581         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
45582         (AC_CHECK_DECLS_ONCE): Likewise.
45583         Rename file...
45584         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
45585         gnulib-tool requires autoconf 2.59 or better.
45586         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
45587
45588 2008-04-08  Eric Blake  <ebb9@byu.net>
45589
45590         Use 'git describe --match' if present (added in git 1.5.5).
45591         * build-aux/git-version-gen: Limit result to tags that match 'v*'
45592         if possible.
45593
45594 2008-04-08  Bruno Haible  <bruno@clisp.org>
45595
45596         Add tentative support for OpenServer.
45597         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
45598         _ptr, _cnt.
45599         * lib/fpurge.c (fpurge): Likewise.
45600         * lib/freadable.c (freadable): Likewise.
45601         * lib/freadahead.c (freadahead): Likewise.
45602         * lib/freading.c (freading): Likewise.
45603         * lib/freadptr.c (freadptr): Likewise.
45604         * lib/freadseek.c (freadptrinc): Likewise.
45605         * lib/fseeko.c (rpl_fseeko): Likewise.
45606         * lib/fseterr.c (fseterr): Likewise.
45607         * lib/fwritable.c (fwritable): Likewise.
45608         * lib/fwriting.c (fwriting): Likewise.
45609         Reported by Roger Cornelius <rac@tenzing.org> and
45610         Brian K. White <brian@aljex.com>.
45611
45612 2008-04-06  Jim Meyering  <meyering@redhat.com>
45613
45614         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
45615
45616 2008-04-06  Bruno Haible  <bruno@clisp.org>
45617
45618         Avoid possible error with non-ASCII bytes in UTF-8 locales.
45619         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
45620         * tests/test-printf-posix.sh: Likewise.
45621         * tests/test-vfprintf-posix.sh: Likewise.
45622         * tests/test-vprintf-posix.sh: Likewise.
45623         * tests/test-xprintf-posix.sh: Likewise.
45624
45625 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45626
45627         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
45628         hide error from 'ls', needed on OS/2.
45629         Report by Elbert Pol <elbert.pol@gmail.com>.
45630
45631 2008-04-04  Eric Blake  <ebb9@byu.net>
45632
45633         Make test-fseeko.c failures meaningful.
45634         * tests/test-fseeko.c: Print line number on failure.
45635         * tests/test-fseek.c: Likewise.
45636         Reported by Nelson H. F. Beebe.
45637
45638         Improve strtod bug detection check.
45639         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
45640         required for Solaris 10.
45641         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
45642
45643 2008-04-04  Bruno Haible  <bruno@clisp.org>
45644
45645         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
45646         by m4/setenv.m4.
45647
45648 2008-04-03  Eric Blake  <ebb9@byu.net>
45649
45650         Ensure sane .version contents.
45651         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
45652         version string.
45653         * build-aux/git-version-gen: Improve documentation.
45654
45655         Make GNU make output nicer.
45656         * top/GNUmakefile [!_have-Makefile]: Add dependency on
45657         MAKECMDGOALS to enforce message for all command line targets.  Set
45658         srcdir for use in maint.mk.
45659
45660         Another maintainer tweak.
45661         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
45662         a target that regenerates version.
45663
45664 2008-04-03  Jim Meyering  <meyering@redhat.com>
45665
45666         vc-list-files: don't cause coreutils "make po-check" failure
45667         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
45668
45669 2008-04-03  Eric Blake  <ebb9@byu.net>
45670
45671         Allow VPATH usage of vc-list-files.
45672         * build-aux/vc-list-files (scriptversion): Add timestamp.
45673         (options): Add --help, --version, -C.
45674         (CVS): Support installed cvsu.
45675
45676 2008-04-02  Bruno Haible  <bruno@clisp.org>
45677
45678         Avoid some "statement with no effect" warnings from gcc.
45679         * tests/test-wctype.c (main): Explicitly ignore unused values.
45680         Reported by Jim Meyering.
45681
45682 2008-04-02  Jim Meyering  <meyering@redhat.com>
45683
45684         Avoid some warnings from "gcc -Wshadow".
45685         * tests/test-frexp.c (exp): Define to a different identifier.
45686         * tests/test-frexpl.c (exp): Likewise.
45687
45688 2008-04-03  Jim Meyering  <meyering@redhat.com>
45689
45690         bootstrap: remove dangling *.[ch] symlinks from lib
45691         * build-aux/bootstrap [dangling symlink removal]: Move find's
45692         -depth option to precede all others, to avoid a warning.
45693         Remove *.[ch] files too, and from "$source_base" (usually lib/).
45694
45695 2008-04-02  Bruno Haible  <bruno@clisp.org>
45696
45697         Avoid some warnings from "gcc -Wshadow".
45698         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
45699         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
45700         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
45701         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
45702         Reported by Jim Meyering.
45703
45704 2008-04-01  Bruno Haible  <bruno@clisp.org>
45705
45706         Fix test to work on IRIX 6.5 with cc.
45707         * tests/test-math.c (numeric_equal): New function.
45708         (main): Use it.
45709
45710 2008-04-01  Bruno Haible  <bruno@clisp.org>
45711
45712         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
45713
45714 2008-04-01  Bruno Haible  <bruno@clisp.org>
45715
45716         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
45717         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
45718         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
45719         (Depends-on): Remove math.
45720
45721         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
45722         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
45723         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
45724         (Depends-on): Remove math.
45725
45726         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
45727         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
45728         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
45729         (Depends-on): Remove math.
45730         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
45731         (Depends-on): Remove math.
45732
45733         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
45734         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
45735         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
45736         (Depends-on): Remove math.
45737         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
45738         (Depends-on): Remove math.
45739
45740         * tests/test-round1.c: Include nan.h.
45741         (main): Use NaNd instead of NAN.
45742         * modules/round-tests (Files): Add tests/nan.h.
45743
45744         * tests/test-trunc1.c: Include nan.h.
45745         (main): Use NaNd instead of NAN.
45746         * modules/trunc-tests (Files): Add tests/nan.h.
45747
45748         * tests/test-roundf1.c: Include nan.h.
45749         (main): Use NaNf instead of NAN.
45750         * modules/roundf-tests (Files): Add tests/nan.h.
45751
45752         * tests/test-truncf1.c: Include nan.h.
45753         (main): Use NaNf instead of NAN.
45754         * modules/truncf-tests (Files): Add tests/nan.h.
45755
45756         * tests/test-ceilf1.c: Include nan.h.
45757         (main): Use NaNf instead of NAN.
45758         * modules/ceilf-tests (Files): Add tests/nan.h.
45759
45760         * tests/test-floorf1.c: Include nan.h.
45761         (main): Use NaNf instead of NAN.
45762         * modules/floorf-tests (Files): Add tests/nan.h.
45763
45764         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
45765         (main): Use NaNf instead of NAN.
45766         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
45767
45768         * tests/test-isnand.c: Include nan.h instead of <math.h>.
45769         (main): Use NaNd instead of NAN.
45770         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
45771
45772         * tests/test-frexp.c: Include nan.h.
45773         (main): Use NaNd instead of NAN.
45774         * modules/frexp-tests (Files): Add tests/nan.h.
45775
45776         * lib/isnan.c: Don't include <math.h>.
45777         (FUNC): Don't use NAN macro.
45778         * modules/isnand-nolibm (Depends-on): Remove math.
45779         * modules/isnanf-nolibm (Depends-on): Remove math.
45780         * modules/isnanl (Depends-on): Remove math.
45781         * modules/isnanl-nolibm (Depends-on): Remove math.
45782
45783         * tests/nan.h: New file.
45784
45785 2008-04-01  Eric Blake  <ebb9@byu.net>
45786
45787         Fix typos.
45788         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
45789         values to be the right type.
45790
45791         For now, cater to gnulib strtod inaccuracies.
45792         * tests/test-strtod.c (main): Allow 1-ulp error on expected
45793         fractional results.  While not as nice from a QoI perspective, it
45794         is a quicker patch than correctly implementing decimal to binary
45795         rounding.
45796
45797 2008-03-31  Eric Blake  <ebb9@byu.net>
45798
45799         Guarantee a definition of NAN.
45800         * lib/math.in.h (NAN): Define if missing.
45801         * tests/test-math.c (main): Test it.
45802         * doc/posix-headers/math.texi (math.h): Document this.
45803         * lib/isnan.c (rpl_isnand): Use it.
45804         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
45805         * tests/test-floorf1.c (NaN): Likewise.
45806         * tests/test-frexp.c (NaN): Likewise.
45807         * tests/test-isnand.c (NaN): Likewise.
45808         * tests/test-isnanf.c (NaN): Likewise.
45809         * tests/test-round1.c (NaN): Likewise.
45810         * tests/test-roundf1.c (NaN): Likewise.
45811         * tests/test-snprintf-posix.h (NaN): Likewise.
45812         * tests/test-sprintf-posix.h (NaN): Likewise.
45813         * tests/test-trunc1.c (NaN): Likewise.
45814         * tests/test-truncf1.c (NaN): Likewise.
45815         * tests/test-vasnprintf-posix.c (NaN): Likewise.
45816         * tests/test-vasprintf-posix.c (NaN): Likewise.
45817         * modules/isnand-nolibm (Depends-on): Add math.
45818         * modules/isnanf-nolibm (Depends-on): Likewise.
45819         * modules/isnanl (Depends-on): Likewise.
45820         * modules/isnanl-nolibm (Depends-on): Likewise.
45821         * modules/snprintf-posix-tests (Depends-on): Likewise.
45822         * modules/sprintf-posix-tests (Depends-on): Likewise.
45823         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
45824         * modules/vsprintf-posix-tests (Depends-on): Likewise.
45825         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
45826         * modules/vasprintf-posix-tests (Depends-on): Likewise.
45827
45828 2008-03-31  Bruno Haible  <bruno@clisp.org>
45829
45830         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
45831         * doc/posix-functions/strtod.texi: Likewise.
45832
45833 2008-03-31  Bruno Haible  <bruno@clisp.org>
45834
45835         * tests/test-strtod.c (main): Don't use C99 syntax.
45836
45837 2008-03-31  Bruno Haible  <bruno@clisp.org>
45838
45839         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
45840         Reported by Eric Blake.
45841
45842 2008-03-31  Jim Meyering  <meyering@redhat.com>
45843
45844         Don't compare actual signbit return values.
45845         * tests/test-strtod.c (main): Rather, compare only their
45846         zero/non-zero nature.
45847
45848 2008-03-31  Eric Blake  <ebb9@byu.net>
45849
45850         More strtod documentation.
45851         * doc/posix-functions/strtod.texi (strtod): Interpret more test
45852         failures as distinct bugs.
45853
45854 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
45855
45856         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
45857         Problem reported by Erik Benada in
45858         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
45859
45860 2008-03-30  Bruno Haible  <bruno@clisp.org>
45861
45862         * tests/test-strtod.c: Add comments about which assertion fails on which
45863         platform.
45864         * doc/posix-functions/strtod.texi: Add info about many more platforms.
45865
45866 2008-03-30  Eric Blake  <ebb9@byu.net>
45867
45868         Test signbit behavior on zeros.
45869         * tests/test-signbit.c (test_signbitf): Add tests for zero.
45870         (test_signbitd, test_signbitl): Likewise.
45871
45872         More strtod touchups.
45873         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
45874         sign of negative underflow, for now.  Use .5, not .1.
45875         * doc/posix-functions/strtod.texi (strtod): Mention these
45876         limitations.
45877         Reported by Jim Meyering.
45878
45879 2008-03-30  Bruno Haible  <bruno@clisp.org>
45880
45881         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
45882         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
45883
45884 2008-03-30  Bruno Haible  <bruno@clisp.org>
45885
45886         Avoid failure when attempting to return empty iconv results on some
45887         platforms.
45888         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
45889         allocation, don't report ENOMEM when the resulting string is empty.
45890
45891 2008-03-30  Bruno Haible  <bruno@clisp.org>
45892
45893         Fix buffer overrun.
45894         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
45895         Don't consider the width for tmp_length. Check count against tmp_length
45896         before doing the padding. Ensure enough allocation during padding.
45897
45898 2008-03-30  Eric Blake  <ebb9@byu.net>
45899
45900         strtod touchups.
45901         * lib/strtod.c (strtod): Avoid compiler warnings.
45902         Reported by Jim Meyering.
45903
45904 2008-03-30  Bruno Haible  <bruno@clisp.org>
45905
45906         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
45907         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
45908         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
45909         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
45910         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
45911         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
45912         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
45913         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
45914
45915         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
45916         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
45917         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
45918         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
45919         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
45920         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
45921         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
45922         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
45923
45924         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
45925         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
45926         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
45927         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
45928         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
45929         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
45930         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
45931         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
45932
45933         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
45934         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
45935
45936         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
45937         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
45938
45939         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
45940         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
45941
45942         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
45943         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
45944         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
45945
45946         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
45947         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
45948         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
45949
45950         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
45951         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
45952         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
45953
45954         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
45955         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
45956         * modules/vasprintf (Depends-on): Add EOVERFLOW.
45957
45958         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
45959         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
45960         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
45961         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
45962         (Depends-on): Add EOVERFLOW.
45963         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
45964         (Depends-on): Add EOVERFLOW.
45965         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
45966         (Depends-on): Add EOVERFLOW.
45967         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
45968         (Depends-on): Add EOVERFLOW.
45969         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
45970         (Depends-on): Add EOVERFLOW.
45971         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
45972         (Depends-on): Add EOVERFLOW.
45973         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
45974         (Depends-on): Add EOVERFLOW.
45975         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
45976         (Depends-on): Add EOVERFLOW.
45977
45978         * lib/sprintf.c (EOVERFLOW): Remove fallback.
45979         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
45980         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
45981
45982         * lib/snprintf.c (EOVERFLOW): Remove fallback.
45983         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
45984         * modules/snprintf (Depends-on): Add EOVERFLOW.
45985
45986         * lib/poll.c (EOVERFLOW): Remove fallback.
45987         * modules/poll (Depends-on): Add EOVERFLOW.
45988
45989         * lib/getugroups.c (EOVERFLOW): Remove fallback.
45990         * modules/getugroups (Depends-on): Add EOVERFLOW.
45991
45992         * lib/getdelim.c (EOVERFLOW): Remove fallback.
45993         * modules/getdelim (Depends-on): Add EOVERFLOW.
45994
45995         * lib/ftell.c (EOVERFLOW): Remove fallback.
45996         * modules/ftell (Depends-on): Add EOVERFLOW.
45997
45998         * lib/fprintf.c (EOVERFLOW): Remove fallback.
45999         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
46000         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
46001
46002         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
46003
46004         * modules/EOVERFLOW-tests: New file.
46005         * tests/test-EOVERFLOW.c: New file.
46006
46007         * modules/EOVERFLOW: New file.
46008         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
46009
46010 2008-03-30  Bruno Haible  <bruno@clisp.org>
46011
46012         Fix bug introduced on 2007-06-10.
46013         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
46014         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
46015
46016 2008-03-30  Bruno Haible  <bruno@clisp.org>
46017
46018         Improve freadseek's efficiency after ungetc.
46019         * lib/freadseek.c: Include freadahead.h.
46020         (freadptrinc): New function, extracted from freadseek.
46021         (freadseek): Use it in a loop. Use freadahead to determine the number
46022         of loop iterations.
46023         * modules/freadseek (Depends-on): Add freadahead.
46024         (configure.ac): Require AC_C_INLINE.
46025
46026 2008-03-30  Bruno Haible  <bruno@clisp.org>
46027
46028         * lib/freadseek.c (freadseek): Don't ignore the return value of
46029         freadptr.
46030
46031 2008-03-29  Eric Blake  <ebb9@byu.net>
46032
46033         Add hex float support.
46034         * modules/strtod (Depends-on): Add c-ctype.
46035         (Link): Mention POW_LIB.
46036         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
46037         whitespace between 'e' and exponent.
46038         * tests/test-strtod.c (main): Enable hex float tests.
46039         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
46040         now provides.
46041
46042         Document various strtod bugs, with some fixes.
46043         * doc/posix-functions/strtod.texi (strtod): Document bugs with
46044         "-0x", "inf", "nan", and hex constants.
46045         * doc/posix-functions/atof.texi (atof): Likewise.
46046         * modules/stdlib (Makefile.am): Support strtod.
46047         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
46048         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
46049         detect additional strtod bugs.
46050         * lib/stdlib.in.h (rpl_strtod): Add declarations.
46051         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
46052         bool where appropriate.  Parse 'inf' and 'nan'.
46053         * tests/test-strtod.c: New file.
46054         * modules/strtod (Depends-on): Add stdbool, stdlib.
46055         (configure.ac): Turn on module indicator.
46056         * modules/strtod-tests: New module.
46057
46058 2008-03-29  Eric Blake  <ebb9@byu.net>
46059
46060         Fix ftell on mingw.
46061         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
46062         * modules/ftell-tests (Depends-on): Add binary-io.
46063         * modules/ftello-tests (Depends-on): Likewise.
46064         * tests/test-ftell.c (main): Enhance test to cover behavior after
46065         ungetc.  Enforce binary mode.
46066         * tests/test-ftello.c (main): Likewise.
46067
46068         Pass test-freadseek on cygwin.
46069         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
46070         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
46071         ungetc buffer.
46072
46073         * tests/test-fflush2.c (main): Fix typo.
46074
46075 2008-03-29  Bruno Haible  <bruno@clisp.org>
46076
46077         * tests/test-fflush2.c (main): Temporarily disable the contents of
46078         this test.
46079         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
46080         Reported by Eric Blake.
46081
46082 2008-03-28  Simon Josefsson  <simon@josefsson.org>
46083
46084         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
46085         (GC_SHA224_DIGEST_SIZE): Add.
46086
46087         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
46088         (gc_hash_digest_length): Likewise.
46089         (gc_hash_buffer): Likewise.
46090
46091 2008-03-25  Bruno Haible  <bruno@clisp.org>
46092
46093         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
46094         detail which gettext release to use.
46095         Reported by Simon Josefsson.
46096
46097 2008-03-26  Jim Meyering  <meyering@redhat.com>
46098
46099         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
46100         * modules/gnumakefile (clean-GNUmakefile): Also, use
46101         test ... && ... || : syntax rather than if-then ... fi.
46102
46103         gnumakefile: Don't double-quote-expand $(VPATH) value.
46104         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
46105
46106 2008-03-24  Eric Blake  <ebb9@byu.net>
46107
46108         Alter GNUmakefile to install into top directory.
46109         * modules/maintainer-makefile: Split, and add dependency...
46110         * modules/gnumakefile: to this new module.
46111         * build-aux/GNUmakefile: Move...
46112         * top/GNUmakefile: ...here.
46113         * build-aux/maint.mk: Move...
46114         * top/maint.mk: ...here.
46115         * MODULES.html.sh (Support for maintaining...): Document new
46116         module.
46117
46118 2008-03-23  Bruno Haible  <bruno@clisp.org>
46119
46120         * gnulib-tool: New options --vc-files, --no-vc-files.
46121         (func_usage): Document them.
46122         (vc_files): New variable.
46123         (func_import): Consider vc_files.
46124         (func_create_testdir): Set vc_files to empty.
46125         Suggested by Jim Meyering and Karl Berry.
46126
46127 2008-03-23  Bruno Haible  <bruno@clisp.org>
46128
46129         Fix regex compilation error on HP-UX 11.
46130         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
46131         * modules/regex (Files): Add m4/mbstate_t.m4.
46132         Reported by Ton Voon <ton.voon@altinity.com>.
46133
46134 2008-03-23  Bruno Haible  <bruno@clisp.org>
46135
46136         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
46137
46138 2008-03-23  Eric Blake  <ebb9@byu.net>
46139             Bruno Haible  <bruno@clisp.org>
46140
46141         Install files from top/ in the destination directory.
46142         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
46143         augmentation also for the files from top/.
46144         (func_import, func_create_testdir): Rewrite file names:
46145         top/filename -> filename.
46146
46147 2008-03-23  Bruno Haible  <bruno@clisp.org>
46148
46149         Tweak "gnulib --version" output.
46150         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
46151
46152 2008-03-23  Bruno Haible  <bruno@clisp.org>
46153
46154         Tweak "gnulib --version" output.
46155         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
46156         rather than contents of ChangeLog, when possible.
46157
46158 2008-03-21  Eric Blake  <ebb9@byu.net>
46159
46160         More --version tweaks.
46161         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
46162         date of last ChangeLog entry.
46163
46164 2008-03-21  Jim Meyering  <meyering@redhat.com>
46165
46166         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
46167
46168 2008-03-20  Eric Blake  <ebb9@byu.net>
46169
46170         VPATH fix.
46171         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
46172
46173 2008-03-20  Simon Josefsson  <simon@josefsson.org>
46174
46175         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
46176         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
46177
46178 2008-03-20  Eric Blake  <ebb9@byu.net>
46179
46180         Sync GNUmakefile with coreutils.
46181         * build-aux/GNUmakefile (have-Makefile): Rename...
46182         (_have-Makefile): ...to this, for namespace consideration.
46183         (GNUmakefile.cfg): Include, if present.
46184         (_autoreconf): Define a default.
46185         (_is-dist-target): New rule for rebuilds to pick up intra-release
46186         version.
46187         (maint-cfg.mk): Rename...
46188         (cfg.mk): ...to this.
46189
46190 2008-03-18  Jim Meyering  <meyering@redhat.com>
46191
46192         New script and module: mktempd
46193         * MODULES.html.sh (maint+release support): Add mktempd.
46194         * build-aux/mktempd: New file.
46195         * modules/mktempd: New file.
46196
46197 2008-03-15  Jim Meyering  <meyering@redhat.com>
46198
46199         Undo last change.
46200         * lib/sha1.c, lib/md5.c: 63 != ~63.
46201         Reported by Andreas Schwab.
46202
46203         sha1.c, md5.c: Hoist a redundant expression.
46204         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
46205         "ctx->buflen" only once, before calling *_process_block.
46206         * lib/md5.c (md5_process_bytes): Likewise.
46207
46208 2008-03-14  Eric Blake  <ebb9@byu.net>
46209
46210         Bump copyright year in files generated by gnulib-tool.
46211         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
46212         gnulib-tool, rather than hard-coding it.
46213
46214         Fix 'gnulib-tool --version' output to work with git.
46215         * gnulib-tool (func_gnulib_dir): New function, extracted from...
46216         (startup): ...here.
46217         (func_version): Use it to invoke git-version-gen, rather than
46218         relying on CVS keyword expansion.  Modernize wording.
46219         (cvsdatestamp, last_checkin_date, version): Kill unused
46220         variables.
46221
46222 2008-03-12  Jim Meyering  <meyering@redhat.com>
46223
46224         Recognize optional cast of the argument to free.
46225         * build-aux/useless-if-before-free: Update regexps.
46226
46227         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
46228
46229 2008-03-11  Bruno Haible  <bruno@clisp.org>
46230
46231         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
46232         by a single package.
46233         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
46234         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
46235         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
46236         Reported by Sam Steingold <sds@gnu.org>.
46237
46238 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
46239
46240         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
46241         repositories.
46242
46243 2008-03-11  Bruno Haible  <bruno@clisp.org>
46244
46245         Avoid conflicts between local macro definitions.
46246         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
46247         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
46248
46249 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
46250             Bruno Haible  <bruno@clisp.org>
46251
46252         Make va_copy work with some version of xlc on AIX 5.1.
46253         * lib/stdarg.in.h: New file.
46254         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
46255         On AIX, use a <stdarg.h> file substitute.
46256         * modules/stdarg (Files): Add lib/stdarg.in.h.
46257         (Depends-on): Add include_next.
46258         (Makefile.am): Build a stdarg.h substitute if requested.
46259         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
46260
46261 2008-03-10  Bruno Haible  <bruno@clisp.org>
46262
46263         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
46264         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
46265         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
46266
46267 2008-03-10  Bruno Haible  <bruno@clisp.org>
46268
46269         * modules/stdlib (Depends-on): Add include_next, remove
46270         absolute-header.
46271
46272 2008-03-09  Bruno Haible  <bruno@clisp.org>
46273
46274         * lib/freadahead.h (freadahead): Document more precisely.
46275         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
46276         the sum of both buffer sizes.
46277         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
46278         * NEWS: Document the change.
46279
46280 2008-03-09  Bruno Haible  <bruno@clisp.org>
46281
46282         Extend freadptr to return also the buffer size.
46283         * lib/freadptr.h (freadptr): Add sizep argument.
46284         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
46285         (freadptr): Add sizep argument. Determine buffer size like freadahead
46286         does.
46287         * tests/test-freadptr.c: Don't include freadahead.h.
46288         (main): Adapt for new calling convention of freadptr.
46289         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
46290         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
46291         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
46292         tests/test-freadptr2.sh.
46293         (Depends): Remove freadahead.
46294         (TESTS): Add test-freadptr2.sh.
46295         (check_PROGRAMS): Add test-freadptr2.
46296
46297 2008-03-09  Bruno Haible  <bruno@clisp.org>
46298
46299         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
46300         Report and solution by Simon Josefsson.
46301
46302 2008-03-06  Bruno Haible  <bruno@clisp.org>
46303
46304         Make fflush after ungetc work on BSD platforms.
46305         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
46306         * tests/test-fflush2.c: New file.
46307         * tests/test-fflush2.sh: New file.
46308         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
46309         tests/test-fflush2.c.
46310         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
46311         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
46312
46313 2008-03-06  Eric Blake  <ebb9@byu.net>
46314
46315         Likewise for ftello.
46316         * modules/ftello (Dependencies): Add extensions.
46317         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
46318
46319 2008-03-06  Bruno Haible  <bruno@clisp.org>
46320
46321         * modules/fseeko (Dependencies): Add extensions.
46322         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
46323         Needed on glibc systems.
46324
46325 2008-03-06  Bruno Haible  <bruno@clisp.org>
46326
46327         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
46328         email address.
46329         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
46330
46331 2008-03-06  Bruno Haible  <bruno@clisp.org>
46332
46333         * users.txt: Add libgnupdf.
46334
46335 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
46336
46337         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
46338         (Header File Substitutes, Function Substitutes,
46339         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
46340         (Build robot for gnulib): Fix typo.
46341
46342 2008-03-06  Bruno Haible  <bruno@clisp.org>
46343
46344         * doc/gnulib-tool.texi (VCS Issues): Small updates.
46345         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
46346
46347 2008-03-06  Bruno Haible  <bruno@clisp.org>
46348
46349         * doc/func.texi: New file, extracted from doc/gnulib.texi.
46350         * doc/gnulib.texi: Include it.
46351
46352 2008-03-06  Simon Josefsson  <simon@josefsson.org>
46353
46354         * modules/func (License): Change license to unlimited; there was
46355         no LGPL parts in the module anyway.
46356
46357 2008-03-06  Simon Josefsson  <simon@josefsson.org>
46358
46359         * modules/__func__: Renamed to modules/func.
46360         * modules/__func__-tests: Renamed to modules/func-tests.
46361         * tests/test-__func__.c: Renamed to tests/test-func.c.
46362         * m4/__func__.m4: Renamed to m4/func.m4.
46363         * doc/gnulib.texi (__func__): Section renamed to func.
46364         Suggested by Eric Blake <ebb9@byu.net>.
46365
46366 2008-03-06  Simon Josefsson  <simon@josefsson.org>
46367
46368         * doc/gnulib.texi (__func__): Use C99 terminology when talking
46369         about __func__.  Make example self-contained.  Suggested by Eric
46370         Blake <ebb9@byu.net>.
46371
46372         * tests/test-__func__.c (main): Avoid extraneous () around __func.
46373         Suggested by Eric Blake <ebb9@byu.net>.
46374
46375 2008-03-06  Simon Josefsson  <simon@josefsson.org>
46376
46377         * modules/__func__: New file.
46378         * modules/__func__-tests: New file.
46379         * tests/test-__func__.c: New file.
46380         * m4/__func__.m4: New file.
46381         * doc/gnulib.texi (__func__): Document __func__ module.
46382
46383 2008-03-05  Simon Josefsson  <simon@josefsson.org>
46384
46385         * modules/byteswap (License): Re-license as LGPLv2+.
46386
46387 2008-03-05  Simon Josefsson  <simon@josefsson.org>
46388
46389         * doc/Makefile: Add pdf target.
46390
46391 2008-03-05  Simon Josefsson  <simon@josefsson.org>
46392
46393         * modules/inline (License): Use 'unlimited', since there are only
46394         *.m4 files in this module.
46395
46396 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
46397             Bruno Haible  <bruno@clisp.org>
46398
46399         Add support for HP C 7.1 on OpenVMS 8.3.
46400         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
46401
46402 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
46403
46404         Update VMS specifics.
46405         * lib/getopt.c [VMS]: Remove include of unixlib.h.
46406
46407 2008-03-02  Jim Meyering  <meyering@redhat.com>
46408
46409         Remove the last dependency on the "free" module.
46410         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
46411         Reported by Bob Proulx.
46412
46413         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
46414
46415         Remove useless "if" tests before free.  Deprecate "free" module.
46416         * doc/posix-functions/free.texi: Mention that this
46417         module is no longer useful.
46418         * modules/free (Notice): Say this module is obsolete.
46419         * modules/readutmp (Depends-on): Remove free.
46420         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
46421         * lib/putenv.c (putenv): Likewise.
46422         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
46423         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
46424         * tests/test-c-strcasestr.c (main): Likewise.
46425         * tests/test-c-strstr.c (main): Likewise.
46426         * tests/test-mbscasestr1.c (main): Likewise.
46427         * tests/test-mbscasestr2.c (main): Likewise.
46428         * tests/test-mbsstr1.c (main): Likewise.
46429         * tests/test-mbsstr2.c (main): Likewise.
46430         * tests/test-memmem.c (main): Likewise.
46431         * tests/test-strcasestr.c (main): Likewise.
46432         * tests/test-striconv.c (main): Likewise.
46433         * tests/test-striconveh.c (main): Likewise.
46434         * tests/test-striconveha.c (main): Likewise.
46435         * tests/test-strstr.c (main): Likewise.
46436
46437         * build-aux/git-version-gen: Adjust a comment and the Usage string.
46438
46439         bootstrap: sync from coreutils again
46440         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
46441
46442 2008-03-01  Jim Meyering  <meyering@redhat.com>
46443
46444         bootstrap: sync from coreutils
46445         * build-aux/bootstrap (update_po_files): Copy a .po file into place
46446         also when the target doesn't exist.
46447
46448 2008-03-01  Eric Blake  <ebb9@byu.net>
46449
46450         Fix bugs in last patch.
46451         * lib/memchr2.c (memchr2): Fix typo.
46452         * tests/test-memchr2.c: Test previous bug, and don't use GNU
46453         extension.
46454         Reported by Bruce Korb.
46455
46456         New module 'memchr2'.
46457         * modules/memchr2: New file.
46458         * modules/memchr2-tests: Likewise.
46459         * lib/memchr2.h: Likewise.
46460         * lib/memchr2.c: Likewise, based on memchr.c.
46461         * tests/test-memchr2.c: New test.
46462         * MODULES.html.sh (String handling): Add memchr2.
46463
46464 2008-02-29  Bruno Haible  <bruno@clisp.org>
46465
46466         * modules/freadseek-tests: New file.
46467         * tests/test-freadseek.sh: New file.
46468         * tests/test-freadseek.c: New file.
46469
46470         New module 'freadseek'.
46471         * modules/freadseek: New file.
46472         * lib/freadseek.h: New file.
46473         * lib/freadseek.c: New file.
46474         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
46475
46476 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
46477
46478         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
46479         wydawca.
46480
46481         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
46482         program_invocation_name and program_invocation_short_name are
46483         present.
46484
46485 2008-02-28  Bruno Haible  <bruno@clisp.org>
46486
46487         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
46488         * tests/test-freadptr.sh: Also test non-seekable stdin.
46489
46490 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
46491
46492         * build-aux/bootstrap (source_base, m4_base)
46493         (doc_base, tests_base): New variables.
46494         (gnulib_tool_options): Do not hardcode base directories, use
46495         the above variables instead.
46496
46497 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
46498
46499         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
46500
46501 2008-02-28  Bruno Haible  <bruno@clisp.org>
46502
46503         * modules/freadptr-tests: New file.
46504         * tests/test-freadptr.sh: New file.
46505         * tests/test-freadptr.c: New file.
46506
46507         New module 'freadptr'.
46508         * modules/freadptr: New file.
46509         * lib/freadptr.h: New file.
46510         * lib/freadptr.c: New file.
46511         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
46512
46513 2008-02-26  Karl Berry  <karl@freefriends.org>
46514
46515         Sync from Libtool:
46516         * libltdl/argz.c (argz_add, argz_count): New functions.
46517         * libltdl/argz.in.h: Declare them.
46518         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
46519
46520 2008-02-22  Bruno Haible  <bruno@clisp.org>
46521
46522         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
46523         is a pointer type.  Needed for HP-UX 10.
46524         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
46525         * doc/posix-functions/gmtime_r.texi: Likewise.
46526         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
46527
46528 2008-02-24  Bruno Haible  <bruno@clisp.org>
46529
46530         * modules/environ-tests: New file.
46531         * tests/test-environ.c: New file.
46532
46533         New module 'environ'.
46534         * modules/environ: New file.
46535         * lib/unistd.in.h (environ): New declaration.
46536         * m4/environ.m4: New file.
46537         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
46538         after use.
46539         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
46540         HAVE_DECL_ENVIRON.
46541         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
46542         HAVE_DECL_ENVIRON.
46543         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
46544         wrong claim that 'environ' is missing on some systems.
46545         * modules/execute (Depends-on): Add environ.
46546         * lib/execute.c (environ): Remove fallback declaration.
46547         * modules/pipe (Depends-on): Add environ.
46548         * lib/pipe.c (environ): Remove fallback declaration.
46549         * modules/setenv (Depends-on): Add environ.
46550         * lib/setenv.c (environ): Remove fallback declaration.
46551         * modules/unsetenv (Depends-on): Add environ.
46552         * lib/unsetenv.c (environ): Remove fallback declaration.
46553         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
46554         m4/environ.m4.
46555         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
46556         (gl_PREREQ_UNSETENV): Likewise.
46557
46558 2008-02-24  Bruno Haible  <bruno@clisp.org>
46559
46560         * doc/posix-functions/environ.texi: Document the MacOS X problem.
46561
46562 2008-02-20  Bob Proulx  <bob@proulx.com>
46563
46564         Enable use of older two part flavor 'git describe'.
46565         * build-aux/git-version-gen: If using the older two part flavor of
46566         git version then recreate the third part now present in the
46567         newer three part flavor of git describe.
46568
46569 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
46570
46571         * lib/fts.c (fts_build): Typo correction to comment.
46572
46573 2008-02-17  Bruno Haible  <bruno@clisp.org>
46574
46575         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
46576         generating no-op conflicts.
46577
46578 2008-02-17  Bruno Haible  <bruno@clisp.org>
46579
46580         Speed up by 10%.
46581         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
46582         result_entries, rather than an index-based loop.
46583
46584 2008-02-17  Bruno Haible  <bruno@clisp.org>
46585
46586         Speed up by 25%.
46587         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
46588         'hashcode_cached'.
46589         (entry_create): New function.
46590         (entry_hashcode): Use the cached hashcode if possible.
46591         (read_changelog_file, try_split_merged_entry): Use entry_create.
46592
46593 2008-02-17  Bruno Haible  <bruno@clisp.org>
46594
46595         Speed up from O(n^2) to O(n) for long ChangeLog files.
46596         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
46597         (read_changelog_file): Change implementation of entries_reversed list
46598         to rbtreehash.
46599         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
46600
46601 2008-02-17  Bruno Haible  <bruno@clisp.org>
46602
46603         New option --split-merged-entry.
46604         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
46605         (find_paragraph_end, try_split_merged_entry): New functions.
46606         (long_options): Add option --split-merged-entry.
46607         (usage): Document option --split-merged-entry.
46608         (main): Implement option --split-merged-entry.
46609         Reported by Eric Blake.
46610
46611 2008-02-17  Bruno Haible  <bruno@clisp.org>
46612
46613         * lib/git-merge-changelog.c: Include c-strstr.h.
46614         (main): Support the "git pull --rebase" situation.
46615         * modules/git-merge-changelog (Depends-on): Add c-strstr.
46616         Reported by Eric Blake.
46617
46618 2008-02-16  Eric Blake  <ebb9@byu.net>
46619
46620         Avoid doubling \ in common case of "c-maybe" quoting style.
46621         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
46622         eliding outer quotes.
46623         * lib/quotearg.h: Document this.
46624         * tests/test-quotearg.c (result_strings, inputs, results_g)
46625         (flag_results, locale_results): Test it by adding a new string to
46626         each test group.
46627         (compare_strings): Test new string.
46628
46629 2008-02-13  Eric Blake  <ebb9@byu.net>
46630
46631         Avoid trigraph quoting in default output.
46632         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
46633         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
46634         unless explicitly requested.
46635         * tests/test-quotearg.c (flag_results, main): Add additional tests.
46636
46637 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
46638
46639         Don't rely on signed integer overflowing to negative value.
46640         * lib/getugroups.c (getugroups): Include <limits.h>.
46641         Instead, compare against INT_MAX, and increment only if the test passes.
46642
46643 2008-02-13  Jim Meyering  <meyering@redhat.com>
46644         and Eric Blake  <ebb9@byu.net>
46645
46646         Avoid shadowing warning and compile errors on Linux.
46647         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
46648         forwarding macros on Linux.
46649         (dcgettext): Define a stub, for Linux.
46650         (results_g, main): Avoid warnings.
46651
46652 2008-02-12  Eric Blake  <ebb9@byu.net>
46653
46654         Silence warning in last patch.
46655         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
46656
46657         Quotearg part 4: add tests, fix c-maybe colon quoting.
46658         * lib/quotearg.h: Improve documentation.
46659         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
46660         escapes when adding outer quotes.  When quoting trigraphs, use
46661         valid C notation.  When quoting NUL, omit extra characters if next
46662         character is not digit.  Alter prototype.
46663         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
46664         callers.
46665         * modules/quotearg-tests: New module.
46666         * tests/test-quotearg.c: New test.
46667
46668 2008-02-07  Eric Blake  <ebb9@byu.net>
46669
46670         Quotearg part 3: add flag to control outer quote elision.
46671         * lib/quotearg.h (c_maybe_quoting_style): New style.
46672         (enum quoting_flags): Better documentation of flags.
46673         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
46674         c-maybe style.
46675         (quotearg_buffer_restyled): Handle new flag to elide outer
46676         quotes.
46677
46678         Quotearg part 2: add flag that can control NUL elision.
46679         * lib/quotearg.h (set_quoting_flags): New prototype.
46680         * lib/quotearg.c (struct quoting_options): Add flag field.
46681         (set_quoting_flags): New function.
46682         (quotearg_buffer_restyled): Add flags parameter.
46683         (quotearg_alloc_mem): Set the flag if length cannot be returned.
46684         (quotearg_n_options): Set the flag, since length cannot be
46685         returned.
46686         (quoting_options_from_style): Default flags correctly.
46687
46688         Quotearg part 1: more wrappers, restore quotearg_char state.
46689         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
46690         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
46691         (quotearg_colon_mem): New wrappers.
46692         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
46693         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
46694         functions.
46695         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
46696         (quotearg_colon_mem): New functions.
46697
46698 2008-02-11  Bruno Haible  <bruno@clisp.org>
46699
46700         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
46701         library in the current directory: it does not work with parallel make.
46702         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
46703
46704 2008-02-11  Bruno Haible  <bruno@clisp.org>
46705
46706         * .gitattributes: New file.
46707
46708 2008-02-11  Jim Meyering  <meyering@redhat.com>
46709
46710         useless-if-before-free: Fix reversed exit values.
46711         * build-aux/useless-if-before-free: Use correct values
46712         for EXIT_MATCH and EXIT_NO_MATCH.
46713
46714         * build-aux/useless-if-before-free: Close stdout carefully.
46715
46716 2008-02-10  Bruno Haible  <bruno@clisp.org>
46717
46718         New module 'git-merge-changelog'.
46719         * modules/git-merge-changelog: New file.
46720         * lib/git-merge-changelog.c: New file.
46721
46722 2008-02-10  Jim Meyering  <meyering@redhat.com>
46723
46724         useless-if-before-free: New option: --list (-l).
46725
46726         useless-if-before-free: Don't exit immediately upon open failure.
46727         * build-aux/useless-if-before-free: Exit 2 for errors.
46728         Upon failure to open a file, don't exit immediately.
46729         Rather, just warn and continue with any remaining files.
46730
46731 2008-02-10  Bruno Haible  <bruno@clisp.org>
46732
46733         New abstract list operation 'node_set_value'.
46734         * lib/gl_list.h (gl_list_node_set_value): New function.
46735         (struct gl_list_implementation): New field node_set_value.
46736         * lib/gl_list.c (gl_list_node_set_value): New function.
46737         * lib/gl_array_list.c (gl_array_node_set_value): New function.
46738         (gl_array_list_implementation): Update.
46739         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
46740         (gl_carray_list_implementation): Update.
46741         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
46742         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
46743         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
46744         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
46745         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
46746         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
46747         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
46748         Update.
46749         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
46750         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
46751         (gl_sublist_list_implementation): Update.
46752
46753 2008-02-10  Bruno Haible  <bruno@clisp.org>
46754
46755         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
46756         Needed when ELEMENT is #defined to 'some_type *'.
46757
46758 2008-02-10  Jim Meyering  <meyering@redhat.com>
46759
46760         New script and module: useless-if-before-free
46761         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
46762         * build-aux/useless-if-before-free: New file.
46763         * modules/useless-if-before-free: New file.
46764
46765         * build-aux/gitlog-to-changelog: Use committer date, not author date.
46766
46767         xstrtol_error: Fix typo.
46768         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
46769         s/exit_failure/exit_status/.
46770
46771 2008-02-09  Jim Meyering  <meyering@redhat.com>
46772
46773         New script and module: gitlog-to-changelog
46774         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
46775         * modules/gitlog-to-changelog: New file.
46776         * build-aux/gitlog-to-changelog: New file.
46777
46778 2008-02-08  Jim Meyering  <meyering@redhat.com>
46779
46780         Avoid two "parameter unused" warnings.
46781         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
46782         Mark "st" as used.
46783
46784         Use "git COMMAND", not "git-COMMAND".
46785         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
46786         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
46787         * build-aux/git-version-gen: Use "git status", not "git-status".
46788
46789 2008-02-07  Bruno Haible  <bruno@clisp.org>
46790
46791         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
46792         Avoids a crash on Windows Vista.
46793         Reported by Adam Strzelecki <ono@java.pl> via
46794         Simon Josefsson <simon@josefsson.org>.
46795
46796 2008-02-06  Bruno Haible  <bruno@clisp.org>
46797
46798         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
46799         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
46800         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
46801         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
46802         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
46803         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
46804         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
46805         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
46806         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
46807         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
46808         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
46809         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
46810         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
46811         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
46812         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
46813         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
46814         left-adjust flag.
46815         * tests/test-snprintf-posix.h (test_function): Likewise.
46816         * tests/test-sprintf-posix.h (test_function): Likewise.
46817         * tests/test-vasprintf-posix.c (test_function): Likewise.
46818         * doc/posix-functions/fprintf.texi: Update.
46819         * doc/posix-functions/printf.texi: Update.
46820         * doc/posix-functions/snprintf.texi: Update.
46821         * doc/posix-functions/sprintf.texi: Update.
46822         * doc/posix-functions/vfprintf.texi: Update.
46823         * doc/posix-functions/vprintf.texi: Update.
46824         * doc/posix-functions/vsnprintf.texi: Update.
46825         * doc/posix-functions/vsprintf.texi: Update.
46826         Reported by Peter Fales <psfales@alcatel-lucent.com>.
46827
46828 2008-02-06  Bruno Haible  <bruno@clisp.org>
46829
46830         Fix bug introduced on 2008-01-26.
46831         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
46832
46833 2008-02-06  Bruno Haible  <bruno@clisp.org>
46834
46835         Fix bug introduced on 2007-06-10.
46836         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
46837         !NEED_PRINTF_FLAG_ZERO.
46838
46839 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
46840
46841         getloadavg: use libperfstat on AIX5
46842         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
46843
46844 2008-02-03  Bruno Haible  <bruno@clisp.org>
46845
46846         * lib/diffseq.h: Add comments about required #includes.
46847         Reported by Michael Biggs <gnulib@doubleplum.net>.
46848
46849 2008-02-01  Bruno Haible  <bruno@clisp.org>
46850
46851         * users.txt: Add gnuit.
46852
46853 2008-01-31  Bruno Haible  <bruno@clisp.org>
46854
46855         * lib/md4.c (set_uint32): Mark as inline.
46856         * lib/md5.c (set_uint32): Likewise.
46857         * lib/sha1.c (set_uint32): Likewise.
46858         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
46859         * m4/md5.m4 (gl_MD5): Likewise.
46860         * m4/sha1.m4 (gl_SHA1): Likewise.
46861
46862 2008-01-31  Jim Meyering  <meyering@redhat.com>
46863
46864         Use "sizeof VAR", rather than a literal "4".
46865         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
46866         * lib/md4.c (md4_read_ctx): Likewise.
46867         * lib/sha1.c (sha1_read_ctx): Likewise.
46868
46869 2008-01-31  Simon Josefsson  <simon@josefsson.org>
46870
46871         * tests/test-sha1.c: New file, based on test-md5.c.
46872
46873         * modules/crypto/sha1-tests: New file.
46874
46875 2008-01-31  Simon Josefsson  <simon@josefsson.org>
46876
46877         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
46878
46879 2008-01-31  Jim Meyering  <meyering@redhat.com>
46880
46881         Prefer "sizeof v" over the equivalent "4".
46882         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
46883         * lib/md5.c (set_uint32): Likewise.
46884         * lib/sha1.c (set_uint32): Likewise.
46885
46886 2008-01-31  Simon Josefsson  <simon@josefsson.org>
46887
46888         * lib/sha1.c (set_uint32): Mark function as static.
46889
46890 2008-01-31  Simon Josefsson  <simon@josefsson.org>
46891
46892         md2: clarify comments to say that alignment is not required.
46893         * lib/md2.h: Remove warning about alignment in comment.
46894         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
46895         never been required.
46896
46897 2008-01-31  Simon Josefsson  <simon@josefsson.org>
46898
46899         md4: adapt alignment constraint fix from sha1.
46900         * lib/md4.c (set_uint32): New function, from sha1.c
46901         (md4_read_ctx): Use it.
46902         (md4_finish_ctx): Doc fix.
46903         * lib/md4.h: Doc fix.
46904
46905 2008-01-31  Simon Josefsson  <simon@josefsson.org>
46906
46907         md5: adapt alignment constraint fix from sha1.
46908         * lib/md5.c (set_uint32): New function, from sha1.c
46909         (md5_read_ctx): Use it.
46910         (md5_finish_ctx): Doc fix.
46911         * lib/md5.h: Doc fix.
46912
46913 2008-01-30  Peter Palfrader  <weasel@debian.org>
46914
46915         sha1: remove the result buffer alignment constraint
46916         * lib/sha1.c (set_uint32): New function.
46917         (sha1_read_ctx): Rewrite to remove the result buffer alignment
46918         constraint.
46919         (sha1_finish_ctx): Remove comment warning about alignment constraint.
46920         * lib/sha1.h: Likewise.
46921
46922 2008-01-30  Andreas Schwab  <schwab@suse.de>
46923             Bruno Haible  <bruno@clisp.org>
46924
46925         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
46926         correct definition of LDBL_MIN_EXP.
46927
46928 2008-01-30  Karl Berry  <karl@gnu.org>
46929
46930         * config/srclist-update: try to preserve x bit on updates.
46931         * config/srclistvars.sh: update for karl.
46932
46933 2008-01-29  Jim Meyering  <meyering@redhat.com>
46934
46935         vasnprintf.c: Avoid warning about unused label
46936         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
46937         "overflow" label definition and associated code with the
46938         same cpp condition that guards the sole use of that label.
46939
46940 2008-01-26  Bruno Haible  <bruno@clisp.org>
46941
46942         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
46943         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
46944         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
46945         * lib/isnanl-nolibm.h (isnanl): Likewise.
46946         Reported by Paul Eggert <eggert@cs.ucla.edu>.
46947
46948 2008-01-26  Bruno Haible  <bruno@clisp.org>
46949
46950         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
46951         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
46952
46953 2008-01-26  Bruno Haible  <bruno@clisp.org>
46954
46955         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
46956         GCC >= 4.0 built-in.
46957         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
46958
46959 2008-01-26  Bruno Haible  <bruno@clisp.org>
46960
46961         Rename isnan, applicable to 'double' only, to isnand.
46962         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
46963         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
46964         (configure.ac): Update.
46965         (Include): Replace "isnan.h" with "isnand.h".
46966         * m4/isnand.m4: Renamed from m4/isnan.m4.
46967         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
46968         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
46969         instead of isnan.c.
46970         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
46971         instead of HAVE_ISNAN_IN_LIBC.
46972         (isnand): Renamed from isnan.
46973         * lib/isnand.c: New file.
46974         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
46975         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
46976         (Makefile.am): Update.
46977         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
46978         Include isnand.h instead of isnan.h.
46979         (main): Test isnand instead of isnan.
46980         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
46981         isnan-nolibm.
46982         * modules/frexp (Depends-on): Likewise.
46983         * modules/frexp-tests (Depends-on): Likewise.
46984         * modules/frexp-nolibm (Depends-on): Likewise.
46985         * modules/frexp-nolibm-tests (Depends-on): Likewise.
46986         * modules/isfinite (Depends-on): Likewise.
46987         * modules/round-tests (Depends-on): Likewise.
46988         * modules/signbit (Depends-on): Likewise.
46989         * modules/signbit-tests (Depends-on): Likewise.
46990         * modules/snprintf-posix (Depends-on): Likewise.
46991         * modules/sprintf-posix (Depends-on): Likewise.
46992         * modules/trunc-tests (Depends-on): Likewise.
46993         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
46994         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
46995         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
46996         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
46997         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
46998         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
46999         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
47000         * modules/vasnprintf-posix (Depends-on): Likewise.
47001         * modules/vasprintf-posix (Depends-on): Likewise.
47002         * modules/vfprintf-posix (Depends-on): Likewise.
47003         * modules/vsnprintf-posix (Depends-on): Likewise.
47004         * modules/vsprintf-posix (Depends-on): Likewise.
47005         * lib/frexp.c: Include isnand.h instead of isnan.h.
47006         (ISNAN): Set to isnand instead of isnan.
47007         * lib/isfinite.c: Include isnand.h instead of isnan.h.
47008         (gl_isfinited): Use isnand instead of isnan.
47009         * lib/signbitd.c: Include isnand.h instead of isnan.h.
47010         (gl_signbitd): Use isnand instead of isnan.
47011         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
47012         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
47013         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
47014         (main): Use isnand instead of isnan.
47015         * tests/test-round1.c: Include isnand.h.
47016         (main): Use isnand instead of isnan.
47017         * tests/test-round2.c: Include isnand.h instead of isnan.h.
47018         (ISNAN): Set to isnand instead of isnan.
47019         * tests/test-trunc1.c: Include isnand.h.
47020         (main): Use isnand instead of isnan.
47021         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
47022         (equal): Use isnand instead of isnan.
47023         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
47024         isnand-nolibm.
47025         * NEWS: Mention the change.
47026
47027 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
47028             Bruno Haible  <bruno@clisp.org>
47029
47030         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
47031         the GCC builtins for signbits are present and set
47032         REPLACE_SIGNBIT_USING_GCC if so.
47033         * lib/math.in.h (signbit): Define using GCC builtins if
47034         REPLACE_SIGNBIT_USING_GCC is set.
47035         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
47036         REPLACE_SIGNBIT_USING_GCC.
47037         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
47038
47039 2008-01-25  Jim Meyering  <meyering@redhat.com>
47040
47041         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
47042         * lib/poll.c: Include <config.h>, not "config.h".
47043         * tests/test-getaddrinfo.c: Likewise.
47044
47045 2008-01-25  Simon Josefsson  <simon@josefsson.org>
47046
47047         * modules/sockets-tests: New file.
47048
47049 2008-01-24  Simon Josefsson  <simon@josefsson.org>
47050
47051         * modules/sockets: New module, can be used to call WSA_Startup and
47052         WSA_Cleanup when needed.
47053
47054         * lib/sockets.h, lib/sockets.c: New files.
47055
47056         * m4/sockets.m4: New file.
47057
47058         * tests/test-sockets.c: New file.
47059
47060 2008-01-19  Bruno Haible  <bruno@clisp.org>
47061
47062         * doc/posix-headers: Renamed from doc/headers.
47063         * doc/posix-functions: Renamed from doc/functions.
47064         * doc/gnulib.texi: Update.
47065
47066 2008-01-19  Bruno Haible  <bruno@clisp.org>
47067
47068         * doc/glibc-functions/strcasestr.texi: Include contents of
47069         doc/functions/strcasestr.texi, fixing the list of platforms.
47070         * doc/functions/strcasestr.texi: Remove file.
47071
47072 2008-01-19  Bruno Haible  <bruno@clisp.org>
47073
47074         * doc/glibc-functions/memmem.texi: Include contents of
47075         doc/functions/memmem.texi.
47076         * doc/functions/memmem.texi: Remove file.
47077
47078 2008-01-18  Bruno Haible  <bruno@clisp.org>
47079
47080         * doc/glibc-functions/*.texi: New files.
47081         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
47082         to use the new files.
47083
47084 2008-01-17  Bruno Haible  <bruno@clisp.org>
47085
47086         * tests/test-gethostname.c (main): Fix printf statement.
47087
47088 2008-01-17  Simon Josefsson  <simon@josefsson.org>
47089
47090         * modules/gethostname-tests: New file.
47091
47092         * tests/test-gethostname.c: New file.
47093
47094 2008-01-17  Simon Josefsson  <simon@josefsson.org>
47095
47096         * lib/gethostname.c: Include string.h unconditionally, strncpy is
47097         used by the UNAME case.  Reported by Bruno Haible
47098         <bruno@clisp.org>.
47099
47100 2008-01-17  Eric Blake  <ebb9@byu.net>
47101
47102         Convert c-strcasestr to be more efficient.
47103         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
47104         (Depends-on): Add c-strcase, remove malloca, strnlen.
47105         * tests/test-c-strcasestr.c (main): Enhance test.
47106         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
47107
47108 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
47109
47110         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
47111         Use it in creating po/Makevars.
47112
47113 2008-01-15  Simon Josefsson  <simon@josefsson.org>
47114
47115         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
47116         Applications that requires it should initialize libgcrypt
47117         manually.
47118
47119 2008-01-16  Simon Josefsson  <simon@josefsson.org>
47120
47121         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
47122
47123 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
47124
47125         Fix problem with getdate on mingw32 reported by Simon Josefsson
47126         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
47127         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
47128         tzname", when deciding whether to declare tzname.
47129         * lib/strftime.c (tzname): Likewise.
47130
47131 2008-01-15  Bruno Haible  <bruno@clisp.org>
47132
47133         Work around a MacOS X 10.5 bug in frexpl().
47134         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
47135         * doc/functions/frexpl.texi: Document the bug.
47136         Reported by Elias Pipping <pipping@gentoo.org>.
47137
47138 2008-01-14  Eric Blake  <ebb9@byu.net>
47139
47140         Touch up previous patch.
47141         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
47142         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
47143
47144         Convert strcasestr module to use Two-Way algorithm.
47145         * modules/strcasestr-simple: New module, based on the old
47146         strcasestr, but with Two-Way rather than KMP.
47147         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
47148         * lib/string.in.h (rpl_strcasestr): Declare.
47149         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
47150         performance.
47151         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
47152         * modules/string (Makefile.am): Support strcasestr.
47153         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
47154         * modules/strcasestr-tests (Depends-on): Check for alarm.
47155         * tests/test-strcasestr.c: Augment test.
47156         * lib/str-two-way.h: Clean up stray macro.
47157         * NEWS: Document new module.
47158         * MODULES.html.sh (string handling): Likewise.
47159         * doc/functions/strcasestr.texi: New file.
47160         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
47161         here, since it is not a POSIX function.
47162
47163 2008-01-14  Colin Watson  <cjwatson@debian.org>
47164             Bruno Haible  <bruno@clisp.org>
47165
47166         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
47167         works fine; if not, set REPLACE_STRSIGNAL.
47168         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
47169         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
47170         REPLACE_STRSIGNAL.
47171         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
47172         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
47173         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
47174
47175 2008-01-14  Bruno Haible  <bruno@clisp.org>
47176
47177         * modules/strsignal (Include): Change to <string.h>.
47178
47179 2008-01-14  Colin Watson  <cjwatson@debian.org>
47180
47181         * modules/argp (Notice): Add a notice recommending to change
47182         XGETTEXT_OPTIONS.
47183         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
47184
47185 2008-01-13  Colin Watson  <cjwatson@debian.org>
47186
47187         * modules/strsignal-tests: New file.
47188         * tests/test-strsignal.c: New file.
47189
47190         * lib/strsignal.c: New file, from glibc with modifications.
47191         * lib/siglist.h: New file, from glibc with modifications.
47192         * lib/string.in.h (strsignal): New declaration.
47193         * m4/strsignal.m4: New file.
47194         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
47195         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
47196         * modules/strsignal: New file.
47197         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
47198         HAVE_DECL_STRSIGNAL.
47199
47200 2008-01-13  Bruno Haible  <bruno@clisp.org>
47201
47202         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
47203         locale encoding is not ASCII. Needed for OpenBSD 4.0.
47204         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
47205         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
47206
47207 2008-01-13  Bruno Haible  <bruno@clisp.org>
47208
47209         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
47210         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
47211         * lib/argp.h (__attribute__): Likewise.
47212         * lib/c-stack.c (__attribute__): Likewise.
47213         * lib/error.h (__attribute__): Likewise.
47214         * lib/fts.c (__attribute__): Likewise.
47215         * lib/openat.h (__attribute__): Likewise.
47216         * lib/stdio.in.h (__attribute__): Likewise.
47217         * lib/string.in.h (__attribute__): Likewise.
47218         * lib/utimens.c (__attribute__): Likewise.
47219         * lib/vasnprintf.h (__attribute__): Likewise.
47220         * lib/xalloc.h (__attribute__): Likewise.
47221         * lib/xprintf.h (__attribute__): Likewise.
47222         * lib/xstrtol.h (__attribute__): Likewise.
47223         * lib/xvasprintf.h (__attribute__): Likewise.
47224
47225 2008-01-12  Bruno Haible  <bruno@clisp.org>
47226
47227         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
47228         * doc/glibc-headers/a.out.texi: New file.
47229         * doc/glibc-headers/aliases.texi: New file.
47230         * doc/glibc-headers/alloca.texi: New file.
47231         * doc/glibc-headers/ar.texi: New file.
47232         * doc/glibc-headers/argp.texi: New file.
47233         * doc/glibc-headers/argz.texi: New file.
47234         * doc/glibc-headers/byteswap.texi: New file.
47235         * doc/glibc-headers/crypt.texi: New file.
47236         * doc/glibc-headers/endian.texi: New file.
47237         * doc/glibc-headers/envz.texi: New file.
47238         * doc/glibc-headers/err.texi: New file.
47239         * doc/glibc-headers/error.texi: New file.
47240         * doc/glibc-headers/execinfo.texi: New file.
47241         * doc/glibc-headers/fpu_control.texi: New file.
47242         * doc/glibc-headers/fstab.texi: New file.
47243         * doc/glibc-headers/fts.texi: New file.
47244         * doc/glibc-headers/getopt.texi: New file.
47245         * doc/glibc-headers/ieee754.texi: New file.
47246         * doc/glibc-headers/ifaddrs.texi: New file.
47247         * doc/glibc-headers/libintl.texi: New file.
47248         * doc/glibc-headers/mcheck.texi: New file.
47249         * doc/glibc-headers/mntent.texi: New file.
47250         * doc/glibc-headers/obstack.texi: New file.
47251         * doc/glibc-headers/paths.texi: New file.
47252         * doc/glibc-headers/printf.texi: New file.
47253         * doc/glibc-headers/pty.texi: New file.
47254         * doc/glibc-headers/resolv.texi: New file.
47255         * doc/glibc-headers/shadow.texi: New file.
47256         * doc/glibc-headers/sysexits.texi: New file.
47257         * doc/glibc-headers/ttyent.texi: New file.
47258
47259 2008-01-12  Jim Meyering  <meyering@redhat.com>
47260
47261         announce-gen: emit Gnulib's git-based version string.
47262         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
47263         New option --gnulib-version=V, where V is expected to be
47264         the output of running git describe in the gnulib directory.
47265         (get_tool_versions): Request feedback on xdelta.  I suspect it's
47266         not useful, and plan to stop publishing an xdelta file with each
47267         coreutils release.
47268
47269         * build-aux/announce-gen: Also check for lzma-compressed files.
47270
47271 2008-01-11  Bruno Haible  <bruno@clisp.org>
47272
47273         * tests/test-memmem.c (main): Increase maximum allowed time.
47274         * tests/test-strstr.c (main): Likewise.
47275
47276 2008-01-11  Bruno Haible  <bruno@clisp.org>
47277
47278         * doc/functions/memmem.texi: Add more precisions about platforms.
47279         * doc/functions/strstr.texi: Likewise.
47280
47281 2008-01-10  Eric Blake  <ebb9@byu.net>
47282
47283         * m4/strstr.m4: Delete cruft from copy-n-paste.
47284         Reported by Bruno Haible.
47285
47286 2008-01-10  Bruno Haible  <bruno@clisp.org>
47287
47288         Make c-strstr rely on strstr.
47289         * lib/c-strstr.c: Don't include str-kmp.h.
47290         (c_strstr): Define in terms of strstr.
47291         * modules/c-strstr (Files): Remove lib/str-kmp.h.
47292         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
47293
47294 2008-01-10  Bruno Haible  <bruno@clisp.org>
47295
47296         * doc/gnulib.texi (String Functions in C Locale): New section.
47297         * doc/c-ctype.texi: New file.
47298         * doc/c-strcase.texi: New file.
47299         * doc/c-strcaseeq.texi: New file.
47300         * doc/c-strcasestr.texi: New file.
47301         * doc/c-strstr.texi: New file.
47302         * doc/c-strtod.texi: New file.
47303         * doc/c-strtold.texi: New file.
47304
47305 2008-01-10  Eric Blake  <ebb9@byu.net>
47306
47307         * lib/relocatable.h: Fix a comment.
47308
47309 2008-01-10  Eric Blake  <ebb9@byu.net>
47310
47311         Share two-way algorithm.
47312         * lib/str-two-way.h: New file, merged from...
47313         * lib/memmem.c: ...here...
47314         * lib/strstr.c: ...and here.
47315         * modules/memmem (Files): Use it.
47316         * modules/strstr (Files): Likewise.
47317
47318         Avoid quadratic strstr implementations.
47319         * lib/strstr.c: New file.
47320         * m4/strstr.m4: Likewise.
47321         * modules/strstr: Likewise.
47322         * modules/strstr-tests: Likewise.
47323         * tests/test-strstr.c: Likewise.
47324         * lib/string.in.h (rpl_strstr): Declare.
47325         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
47326         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
47327         * modules/string (Makefile.am): Likewise.
47328         * MODULES.html.sh (string handling): Mention new module.
47329         * doc/functions/strstr.texi (strstr): Document the bug.
47330
47331 2008-01-10  Bruno Haible  <bruno@clisp.org>
47332
47333         * lib/relocatable.h (relocate): State whether result is freshly
47334         allocated or not.
47335         * lib/relocatable.c (relocate): Return a freshly allocated string
47336         instead of a pointer to a privately held string.
47337         Reported by Sylvain Beucler <beuc@gnu.org>.
47338
47339 2008-01-10  Colin Watson  <cjwatson@debian.org>
47340
47341         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
47342         s/S_ISNLK/S_ISLNK/.
47343
47344 2008-01-09  Bruno Haible  <bruno@clisp.org>
47345
47346         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
47347         and other files.
47348         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
47349         if it's only a guess.
47350         * modules/memmem: Simplify by depending on memmem-simple.
47351
47352 2008-01-09  Bruno Haible  <bruno@clisp.org>
47353
47354         Work around OpenBSD 4.0 tdelete() bug.
47355         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
47356         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
47357         macros and don't redefine the enum values.
47358         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
47359         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
47360         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
47361
47362 2008-01-09  Bruno Haible  <bruno@clisp.org>
47363
47364         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
47365         (main): Don't perform the tests if setlocale did not install a UTF-8
47366         locale. Needed on OpenBSD 4.0.
47367         * modules/wcwidth-tests (Depends-on): Add localcharset.
47368
47369 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
47370
47371         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
47372         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
47373         * NEWS: announce this.
47374         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
47375
47376 2008-01-09  Simon Josefsson  <simon@josefsson.org>
47377         and Eric Blake  <ebb9@byu.net>
47378
47379         Add memmem-simple module.
47380         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
47381         (gl_FUNC_MEMMEM): Separate performance from presence checks.
47382         * modules/memmem-simple: New file.
47383         * modules/memmem (Description): Tweak.
47384         * MODULES.html.sh (string handling): Mention new module.
47385         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
47386         addressed by memmem-simple.
47387         * NEWS: Document the difference.
47388
47389 2008-01-09  Eric Blake  <ebb9@byu.net>
47390
47391         Give gcc some memmem optimization hints.
47392         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
47393         (strcasestr): Declare as pure.
47394         * modules/memmem (Maintainer): Claim my implementation.
47395
47396 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47397
47398         Support AIX 6.1 and higher.
47399         * build-aux/config.libpath: Likewise.
47400         * build-aux/config.rpath: Likewise.
47401
47402 2008-01-08  Jim Meyering  <meyering@redhat.com>
47403             Bruno Haible  <bruno@clisp.org>
47404
47405         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
47406         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
47407         Reported by Peter Fales in
47408         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
47409
47410 2008-01-08  Bruno Haible  <bruno@clisp.org>
47411
47412         * modules/unictype/category-of (Depends-on): Add
47413         unictype/category-none.
47414         * modules/unictype/category-and-tests (Depends-on): Add
47415         unictype/category-{L,N,Lu,Nd}.
47416         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
47417         * modules/unictype/category-or-tests (Depends-on): Add
47418         unictype/category-{L,N}.
47419         * modules/unictype/category-name-tests (Depends-on): Add
47420         unictype/category-{Z,Nl}.
47421         Reported by Simon Josefsson.
47422
47423 2008-01-08  Bruno Haible  <bruno@clisp.org>
47424
47425         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
47426         convention better.
47427         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
47428         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
47429         Reported by Peter Miller <millerp@canb.auug.org.au>.
47430
47431 2008-01-08  Eric Blake  <ebb9@byu.net>
47432
47433         Rewrite memmem to guarantee linear complexity without malloc.
47434         * lib/memmem.c (memmem): Use Two-Way rather than
47435         Knuth-Morris-Pratt, to allow O(1) space usage.
47436         (critical_factorization, two_way_short_needle)
47437         (two_way_long_needle): New functions.
47438         (knuth_morris_pratt): Delete.
47439         * modules/memmem (Depends-on): No longer need malloca or stdbool.
47440         Add stdint.
47441         * tests/test-memmem.c (main): Add tests for periodic needle and
47442         sublinear performance.
47443         * doc/functions/memmem.texi (memmem): Document other deficiencies
47444         in cygwin and older glibc.
47445
47446 2008-01-08  Bruno Haible  <bruno@clisp.org>
47447
47448         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
47449         augmentation.
47450
47451 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
47452
47453         Add a configure time option: --disable-acl.
47454         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
47455         AC_ARG_ENABLE(acl).
47456
47457 2008-01-06  Simon Josefsson  <simon@josefsson.org>
47458
47459         * tests/test-localename.c: Don't include obsolete "setenv.h".
47460
47461         * modules/localename-tests (Depends-on): Need unsetenv.
47462
47463 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47464
47465         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
47466
47467 2008-01-06  Colin Watson  <cjwatson@debian.org>
47468
47469         * users.txt: Add man-db.
47470
47471 2008-01-07  Bruno Haible  <bruno@clisp.org>
47472
47473         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
47474         previous section name.
47475
47476 2008-01-07  Bruno Haible  <bruno@clisp.org>
47477
47478         * lib/progname.c (set_program_name): Don't strip off a leading
47479         "lt-" prefix outside a .libs directory.
47480         Suggested by Paul Eggert.
47481
47482 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
47483             Bruno Haible  <bruno@clisp.org>
47484
47485         Improve memory cleanup in 'relocatable' module.
47486         * lib/relocatable.h (compute_curr_prefix): Change return type to
47487         'char *'.
47488         * lib/relocatable.c (compute_curr_prefix): Change return type to
47489         'char *'. Free curr_installdir after use.
47490         (relocate): Free curr_prefix_better after use.
47491         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
47492
47493 2008-01-01  Bruno Haible  <bruno@clisp.org>
47494
47495         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
47496         failure on older glibc systems.
47497         Reported by Peter Fales <psfales@alcatel-lucent.com>.
47498
47499 2008-01-05  Eric Blake  <ebb9@byu.net>
47500
47501         Avoid quadratic system memmem.
47502         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
47503         Reported by Ralf Wildenhues.
47504
47505         Fix memmem test for mingw.
47506         * modules/memmem-tests (configure.ac): Check for alarm.
47507         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
47508         it.
47509         * doc/functions/memmem.texi: New file.
47510         * doc/gnulib.texi (Function Substitutes): Add memmem.
47511         Reported by Bruno Haible.
47512
47513 2008-01-04  Bruno Haible  <bruno@clisp.org>
47514
47515         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
47516         Require gl_HEADER_STRINGS_H_DEFAULTS, not
47517         gl_HEADER_STRING_H_DEFAULTS.
47518
47519 2008-01-04  Eric Blake  <ebb9@byu.net>
47520
47521         Shorten duration of memmem test.
47522         * tests/test-memmem.c (main): Use alarm to declare failure if test
47523         is taking too long.
47524         Reported by Ralf Wildenhues.
47525
47526 2007-12-21  Simon Josefsson  <simon@josefsson.org>
47527
47528         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
47529         string, needed by strerror.
47530
47531 2008-01-03  Colin Watson  <cjwatson@debian.org>
47532             Bruno Haible  <bruno@clisp.org>
47533
47534         * doc/gnulib-tool.texi (Localization): New section.
47535
47536 2008-01-02  Bruno Haible  <bruno@clisp.org>
47537
47538         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
47539         variables to 'unsigned char *' type.
47540         Reported by Paul Eggert.
47541
47542 2008-01-02  Jim Meyering  <jim@meyering.net>
47543
47544         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
47545
47546 2007-12-31  Jim Meyering  <jim@meyering.net>
47547
47548         Avoid use of private FTS type name.
47549         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
47550
47551 2007-12-30  Karl Berry  <karl@gnu.org>
47552
47553         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
47554         work around defect in Texinfo and/or the standalone Info browser.
47555
47556 2007-12-30  Bruno Haible  <bruno@clisp.org>
47557
47558         Unify 5 copies of the KMP code.
47559         * lib/str-kmp.h: New file.
47560         * lib/c-strcasestr.c: Include str-kmp.h.
47561         (knuth_morris_pratt): Remove function.
47562         (c_strcasestr): Update.
47563         * lib/c-strstr.c: Include str-kmp.h.
47564         (knuth_morris_pratt): Remove function.
47565         (c_strcasestr): Update.
47566         * lib/mbscasestr.c: Include str-kmp.h.
47567         (knuth_morris_pratt_unibyte): Remove function.
47568         * lib/mbsstr.c: Include str-kmp.h.
47569         (knuth_morris_pratt_unibyte): Remove function.
47570         * lib/strcasestr.c: Include str-kmp.h.
47571         (knuth_morris_pratt): Remove function.
47572         (strcasestr): Update.
47573         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
47574         * modules/c-strstr (Files): Likewise.
47575         * modules/mbscasestr (Files): Likewise.
47576         * modules/mbsstr (Files): Likewise.
47577         * modules/strcasestr (Files): Likewise.
47578         Suggested by Paul Eggert.
47579
47580 2007-12-30  Bruno Haible  <bruno@clisp.org>
47581
47582         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
47583         defined.
47584
47585 2007-12-30  Bruno Haible  <bruno@clisp.org>
47586
47587         * lib/xmalloca.h: Include xalloc.h.
47588         (xnmalloca): New macro.
47589
47590 2007-12-30  Bruno Haible  <bruno@clisp.org>
47591
47592         * lib/malloca.h (nmalloca): New macro.
47593         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
47594         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
47595         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
47596         knuth_morris_pratt_multibyte): Likewise.
47597         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
47598         knuth_morris_pratt_multibyte): Likewise.
47599         * lib/memmem.c (knuth_morris_pratt): Likewise.
47600         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
47601
47602 2007-12-25  Bruno Haible  <bruno@clisp.org>
47603
47604         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
47605         * lib/glob.c: Don't include openat.h.
47606         (link_exists2_p): Add back the code that deals with the
47607         !GLOB_ALTDIRFUNC case.
47608         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
47609         let it do the filename concatenation.
47610         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
47611         * modules/glob (Depends-on): Remove openat.
47612
47613 2007-12-31  Bruno Haible  <bruno@clisp.org>
47614
47615         * modules/dirfd (License): Change to LGPLv2+.
47616         Approved by Jim Meyering.
47617
47618 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
47619
47620         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
47621         when multiplying M by sizeof (size_t).
47622
47623 2007-12-10  Martin Lambers  <marlam@marlam.de>
47624
47625         Override getpagesize on mingw.
47626         * lib/getpagesize.c: New file.
47627         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
47628         * modules/getpagesize (Files): Add lib/getpagesize.c.
47629         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
47630         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
47631         REPLACE_GETPAGESIZE.
47632         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
47633
47634 2007-12-25  Bruno Haible  <bruno@clisp.org>
47635
47636         * modules/localcharset (Notice): New field.
47637         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
47638         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
47639
47640 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
47641             Bruno Haible  <bruno@clisp.org>
47642
47643         Avoid using the syntax symbol() in formatted documentation.
47644         * MODULES.html.sh (func_module): When replacing symbol() with a
47645         hyperlink, remove the parentheses. Show an error if some remain.
47646         Recognize and render the '...' syntax.
47647         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
47648         Rework. Add paragraph about GCC's inlining.
47649         * doc/alloca.texi: Likewise.
47650         * doc/error.texi: Remove parentheses from symbol reference.
47651         * doc/gnulib-intro.texi: Likewise.
47652         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
47653         * modules/fnmatch (Description): Reword to say "the ... function".
47654         * modules/full-read (Description): Likewise.
47655         * modules/full-write (Description): Likewise.
47656         * modules/safe-read (Description): Likewise.
47657         * modules/safe-write (Description): Likewise.
47658         * modules/strchrnul (Description): Likewise.
47659         * modules/trim (Description): Likewise.
47660         * modules/error (Description): Remove parentheses from symbol
47661         references.
47662         * modules/verror (Description): Likewise.
47663         Reported by Karl Berry.
47664
47665 2007-12-25  Bruno Haible  <bruno@clisp.org>
47666
47667         Fixup after 2007-10-16 commit.
47668         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
47669
47670 2007-12-24  Bruno Haible  <bruno@clisp.org>
47671
47672         Make --enable-relocatable work with DESTDIR.
47673         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
47674         to compute installdir from destprog.
47675         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
47676         also set the RELOC_DESTDIR variable.
47677         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
47678
47679 2007-12-24  Bruno Haible  <bruno@clisp.org>
47680
47681         Fix link error due to xalloc_die().
47682         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
47683         of xreadlink.
47684         * lib/relocwrapper.c: Update comments.
47685         * build-aux/install-reloc: Remove xreadlink.c from file list.
47686         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
47687         xreadlink.c.
47688         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
47689
47690 2007-12-24  Bruno Haible  <bruno@clisp.org>
47691
47692         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
47693         * lib/setenv.h: Remove file.
47694         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
47695         lib/setenv.h.
47696         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
47697         (Depends-on): Add stdlib.
47698         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
47699         gl_FUNC_UNSETENV.
47700         (Include): Replace setenv.h with <stdlib.h>.
47701         * modules/unsetenv: New file.
47702         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
47703         * lib/unsetenv.c: Include <stdlib.h> first.
47704         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
47705         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
47706         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
47707         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
47708         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
47709         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
47710         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
47711         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
47712         * doc/functions/unsetenv.texi: Update.
47713         * modules/xsetenv (Depends-on): Add unsetenv.
47714         * modules/getdate (Depends-on): Likewise.
47715         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
47716         * lib/xsetenv.c: Don't include setenv.h.
47717         * lib/getdate.y: Likewise.
47718         * lib/relocwrapper.c: Likewise.
47719         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
47720         (Depends-on): Add stdlib.
47721         * NEWS: Mention the changes.
47722         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
47723
47724 2007-12-23  Bruno Haible  <bruno@clisp.org>
47725
47726         * lib/memmem.c (memmem): Use lowercase variable names. Tab
47727         indentation.
47728
47729 2007-12-23  Bruno Haible  <bruno@clisp.org>
47730
47731         * lib/c-strcasestr.c: Add more comments.
47732         * lib/c-strstr.c: Likewise.
47733         * lib/mbscasestr.c: Likewise.
47734         * lib/mbsstr.c: Likewise.
47735         * lib/strcasestr.c: Likewise.
47736         * lib/memmem.c: Likewise.
47737
47738 2007-12-23  Bruno Haible  <bruno@clisp.org>
47739
47740         * tests/test-memmem.c: Include <string.h> first.
47741
47742 2007-12-22  Bruno Haible  <bruno@clisp.org>
47743
47744         * gnulib-tool (func_create_testdir): Change $auxdir while generating
47745         the contents of $testsbase.
47746         Reported by Ralf Wildenhues.
47747
47748 2007-12-22  Bruno Haible  <bruno@clisp.org>
47749
47750         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
47751         two variables local_ldadd_before, local_ldadd_last.
47752
47753 2007-12-20  Eric Blake  <ebb9@byu.net>
47754
47755         Work around circular library issue when cross-compiling.
47756         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
47757         that progname.o does not need to pull in rpl_memcmp.
47758
47759 2007-12-19  Eric Blake  <ebb9@byu.net>
47760
47761         Fix memmem to avoid O(n^2) worst-case complexity.
47762         * lib/memmem.c (knuth_morris_pratt): New function.
47763         (memmem): Use it if first few naive iterations fail.
47764         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
47765         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
47766         * modules/memchr (License): Likewise.
47767         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
47768         malloca.
47769         * tests/test-memmem.c: Rewrite, borrowing ideas from
47770         test-mbsstr1.c; the old version wouldn't even compile!
47771         * modules/memmem-tests: New file.
47772         * lib/string.in.h (rpl_memmem): Add declaration.
47773         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
47774         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
47775         REPLACE_MEMMEM.
47776
47777 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
47778
47779         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
47780         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
47781         before any system include files, and undef after them all.  This
47782         should fix a problem on VMS reported by John E. Malmberg in
47783         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
47784
47785 2007-12-17  Eric Blake  <ebb9@byu.net>
47786
47787         Revert addition of verify, for BSD/OS.
47788         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
47789         can't handle large files, for the sake of obsolete platforms.
47790         * modules/fseeko (Depends-on): Remove verify.
47791         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
47792         * doc/functions/ftello.texi (ftello): Likewise.
47793         * doc/functions/fgetpos.texi (fgetpos): Likewise.
47794         Reported by Larry Jones.
47795
47796 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
47797
47798         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
47799         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
47800
47801 2007-12-17  Jim Meyering  <meyering@redhat.com>
47802
47803         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
47804         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
47805         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
47806         * modules/getcwd (Depends-on): Add openat.
47807         Reported by Petr Salinger.
47808
47809 2007-12-17  Bruno Haible  <bruno@clisp.org>
47810
47811         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
47812         avoid a segmentation fault of the configure test on x86_64 systems.
47813
47814 2007-12-15  Jim Meyering  <meyering@redhat.com>
47815
47816         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
47817
47818 2007-12-13  Eric Blake  <ebb9@byu.net>
47819
47820         Another fseek test.
47821         * tests/test-fseek.c (main): Also test ungetc handling.
47822         * tests/test-fseeko.c (main): Likewise.
47823         * modules/fseeko (Depends-on): Add verify.
47824         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
47825         large.
47826         Reported by Larry Jones.
47827
47828         Fix fseeko on mingw.
47829         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
47830         seek.
47831
47832         Beef up fseek tests.
47833         * tests/test-fseek.c (main): Also test eof handling.
47834         * tests/test-fseeko.c (main): Likewise.
47835         Reported by Larry Jones.
47836
47837 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
47838
47839         Fix fseeko on BSD-based platforms.
47840         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
47841         successful seek.
47842
47843 2007-12-12  Eric Blake  <ebb9@byu.net>
47844
47845         Allow circular dependency of separate libtests.a
47846         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
47847         when use_libtests.
47848
47849 2007-12-11  Eric Blake  <ebb9@byu.net>
47850
47851         Fix bug with -0.0L in previous patch.
47852         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
47853         * tests/test-isnan.c (main): Also test on zeroes.
47854         * tests/test-isnanf.c (main): Likewise.
47855         * tests/test-isnanl.h (main): Likewise.
47856
47857         Detect pseudo-denormals on x86 even when cross-compiling.
47858         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
47859         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
47860         invalid bit patterns that happen to satisfy ==.
47861
47862         Avoid link failures with separate libtests.a.
47863         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
47864         last, to satisfy circular dependencies.
47865
47866 2007-12-11  Eric Blake  <ebb9@byu.net>
47867         and Bruno Haible  <bruno@clisp.org>
47868
47869         Fix OpenBSD 4.0 <float.h> handling of long double.
47870         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
47871         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
47872         * doc/headers/float.texi (float.h): Document OpenBSD bug.
47873
47874 2007-12-11  Jim Meyering  <meyering@redhat.com>
47875
47876         * users.txt: Add libvirt.
47877
47878         Support versions of autoconf prior to 2.59c.
47879         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
47880         if it is not already defined.
47881
47882 2007-12-09  Bruno Haible  <bruno@clisp.org>
47883
47884         Let 'gnulib-tool --import' collect sources needed for the tests in
47885         tests/ rather than in lib/.
47886         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
47887         argument. If true, add rules to generate libtests.a, and put libtests.a
47888         into $(LDADD). Consider source files in subdirectories and set
47889         uses_subdirs.
47890         (func_emit_initmacro_start, func_emit_initmacro_end,
47891         func_emit_initmacro_done): Pass all arguments explicitly.
47892         (func_import): Determine two module lists main_modules,
47893         testsrelated_modules. Determine use_libtests. Determine two variables
47894         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
47895         instead of just sed_transform_lib_file. Determine two variables
47896         main_files and testsrelated_files. Compute 'files' as the union of
47897         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
47898         func_add_or_update. In the generated gnulib-comp.m4, collect the
47899         object files for tests/ in different variables than those for lib/.
47900         Substitute LIBTESTS_LIBDEPS.
47901         (func_create_testdir): Combine the uses_subdirs results from
47902         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
47903
47904 2007-12-09  Bruno Haible  <bruno@clisp.org>
47905
47906         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
47907         the build-aux directory.
47908
47909 2007-12-09  Bruno Haible  <bruno@clisp.org>
47910
47911         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
47912         introduced on 2006-09-09.
47913
47914 2007-12-07  Jim Meyering  <meyering@redhat.com>
47915
47916         Let these macros work also with autoconf-2.59.
47917         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
47918         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
47919         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
47920
47921 2007-12-06  Jim Meyering  <meyering@redhat.com>
47922
47923         Avoid a configure-time syntax error in gl_FUNC_ACL.
47924         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
47925         function in each branch, before testing the cache variable.
47926
47927 2007-12-04  Eric Blake  <ebb9@byu.net>
47928
47929         Make scripts executable.
47930         * build-aux/config.guess: Add execute permissions.
47931         * build-aux/config.sub: Likewise.
47932         * build-aux/gendocs.sh: Likewise.
47933
47934         Fix frexp on mingw.
47935         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
47936         cross-compiling.
47937         * doc/functions/frexp.texi (frexp): Document the bug.
47938
47939         Make cygwin fseeko check more reliable.
47940         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
47941         version numbers, rather than unrelated feature check.
47942         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
47943         * doc/functions/ftello.texi (ftello): Likewise.
47944         Reported by Bruno Haible.
47945
47946         * m4/strerror.m4: Bump version number.
47947
47948 2007-12-03  Bruno Haible  <bruno@clisp.org>
47949
47950         * doc/functions/mprotect.texi: Mention the mingw problem.
47951
47952 2007-12-03  Eric Blake  <ebb9@byu.net>
47953
47954         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
47955         REPLACE_STRERROR is initialized before this macro.
47956
47957 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
47958
47959         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
47960         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
47961         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
47962         put -lsec in even for programs other than 'ls'.  This fixes a problem
47963         for gettext reported by Bruno Haible in
47964         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
47965         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
47966         Add support for Solaris 10.  This isn't efficient, but should get the
47967         job done for now.
47968
47969 2007-12-03  James Youngman  <jay@gnu.org>
47970
47971         * doc/regexprops-generic.texi: change "an close-group" to "a
47972         close-group" and "illegal" to "not allowed".
47973
47974 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47975
47976         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
47977         pr_byname.h. Needed for the rare case when the maintainer has done
47978         "make maintainer-clean" in the source directory and then attempts a
47979         build outside the source directory.
47980         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
47981         scripts_byname.h.
47982
47983 2007-12-02  Martin Lambers <marlam@marlam.de>
47984             Bruno Haible  <bruno@clisp.org>
47985
47986         * lib/getpagesize.h: Remove file.
47987         * lib/unistd.in.h: Include declaration of getpagesize here.
47988         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
47989         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
47990         HAVE_SYS_PARAM_H.
47991         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
47992         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
47993         * modules/getpagesize (Files): Remove lib/getpagesize.h.
47994         (Depends-on): Add unistd.
47995         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
47996         (Include): Use <unistd.h> instead of getpagesize.h.
47997         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
47998         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
47999         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
48000         gl_GETPAGESIZE invocation, already handled by module dependency.
48001         * lib/pagealign_alloc.c: Don't include getpagesize.h.
48002
48003 2007-12-02  Bruno Haible  <bruno@clisp.org>
48004
48005         * modules/strings-tests: New file.
48006         * tests/test-strings.c: New file.
48007
48008         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
48009         * lib/strings.in.h: New file.
48010         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
48011         * m4/strings_h.m4: New file.
48012         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
48013         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
48014         * modules/strings: New file.
48015         * modules/string (Makefile.am): Update.
48016         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
48017         Reported by Karl Berry.
48018
48019 2007-12-01  Eric Blake  <ebb9@byu.net>
48020
48021         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
48022         accomodate fix in cygwin 1.5.25.
48023
48024 2007-12-01  Jim Meyering  <meyering@redhat.com>
48025
48026         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
48027         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
48028         that would inhibit utf8-optimization of a regexp containing line-
48029         or buffer-anchors, e.g., `^', `$'.
48030
48031 2007-11-30  Bruno Haible  <bruno@clisp.org>
48032
48033         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
48034         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
48035         glthread_recursive_lock_init.
48036         * lib/lock.c (glthread_recursive_lock_init)
48037         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
48038         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
48039
48040 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
48041
48042         New function qset_acl, like set_acl but with syscall semantics.
48043         * lib/acl.h (qset_acl): New decl.
48044         * lib/acl.c (qset_acl): New function.
48045         (set_acl): Use new function.  Use more-consistent diagnostics.
48046
48047 2007-11-28  Jim Meyering  <meyering@redhat.com>
48048
48049         * modules/physmem (License): Change from GPL to LGPLv2+.
48050
48051 2007-11-26  Bruno Haible  <bruno@clisp.org>
48052
48053         * lib/vasnprintf.c (decode_long_double): Don't abort if the
48054         'long double' type has excess precision.
48055         Reported by Jim Meyering in
48056         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
48057
48058 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48059
48060         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
48061         Sync from <http://gnu.org/licenses>.
48062         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
48063         with license text from same location.
48064         * doc/maintain.texi, doc/standards.texi:  Sync from
48065         <http://savannah.gnu.org/projects/gnustandards>.
48066
48067 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
48068         and Jim Meyering  <meyering@redhat.com>
48069
48070         Adjust getdate' grammar to accept a slightly more regular language.
48071         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
48072         Before, the former was rejected.
48073         * lib/getdate.y (digits_to_date_time): New function, factored
48074         out of ...
48075         (number): ...here.  Just call digits_to_date_time.
48076         (hybrid): New non-terminal to handle an <unsigned number,
48077         signed relative offset> sequence consistently.
48078
48079 2007-11-18  Jim Meyering  <meyering@redhat.com>
48080
48081         Pull my changes from coreutils:
48082         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
48083         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
48084         use of $gnulib_tool_option_extras, so that it's separated from the
48085         preceding argument.
48086
48087         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
48088         * build-aux/bootstrap (cp_mark_as_generated): Create any required
48089         parent destination directories before copying a file into place.
48090
48091 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
48092
48093         bootstrap: work also with 4-argument variant of AC_INIT
48094         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
48095
48096 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
48097
48098         Port test-getaddrinfo to Solaris.
48099         Problem reported by Bruno Haible in
48100         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
48101         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
48102         explanation of setting 'hints'.
48103         Don't reject an implementation merely because it returns EAI_SERVICE.
48104         (EAI_SERVICE): Define to 0 if not defined.
48105
48106 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
48107
48108         The license of gnu-make and posix-shell is now "GPLed build tool".
48109         * modules/gnu-make (License): Likewise.
48110         * modules/posix-shell (License): Likewise.
48111
48112         New module posix-shell, for determining a POSIX shell
48113         or perhaps something that is close enough to a POSIX shell.
48114         * m4/posix-shell.m4: New file.
48115         * modules/posix-shell: New file.
48116
48117         * MODULES.html.sh: Mention new module.
48118
48119         New module gnu-make, for determining whether we're using GNU Make.
48120         * m4/gnu-make.m4: New file.
48121         * modules/gnu-make: New file.
48122         * MODULES.html.sh: Mention new module.
48123
48124 2007-11-14  Jim Meyering  <meyering@redhat.com>
48125
48126         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
48127         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
48128         use this macro to create a function _definition_.
48129         Remove useless "#undef ARGMATCH_DIE".
48130
48131 2007-11-14  Bruno Haible  <bruno@clisp.org>
48132
48133         * lib/config.charset: Update for OpenBSD 4.1.
48134         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
48135
48136 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
48137
48138         Document 64-bit #if problems in stdint.texi.
48139         * doc/headers/stdint.texi (stdint.h): Mention problems with
48140         64-bit-#if, and how to work around them.
48141
48142         Don't insist on 'long long int' support in the preprocessor.  It
48143         breaks too many things.  For example, PRIdMAX still uses a 'long
48144         long int' format with the latest Sun compiler, even though
48145         HAVE_LONG_LONG_INT isn't defined due to that compiler's
48146         preprocessor problem.  This causes the latest coreutils to dump
48147         core on Solaris 10 sparc with the Sun C compiler.
48148         Instead, fix the 2007-10-16 problem in a different way, by evaluating
48149         the troublesome expressions at configure-time, not at #if-time.
48150         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
48151         preprocessor.
48152         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
48153         compile-time C checks, done at 'configure'-time.
48154         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
48155         * modules/inttypes (Makefile): Substitute the new symbols that
48156         gl_INTTYPES_H now generates.
48157         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
48158
48159 2007-11-12  Bruno Haible  <bruno@clisp.org>
48160
48161         Tests for Unicode character classification functions.
48162
48163         * modules/unictype/bidicategory-byname-tests: New file.
48164         * modules/unictype/bidicategory-name-tests: New file.
48165         * modules/unictype/bidicategory-of-tests: New file.
48166         * modules/unictype/bidicategory-test-tests: New file.
48167         * modules/unictype/block-list-tests: New file.
48168         * modules/unictype/block-of-tests: New file.
48169         * modules/unictype/block-test-tests: New file.
48170         * modules/unictype/category-C-tests: New file.
48171         * modules/unictype/category-Cc-tests: New file.
48172         * modules/unictype/category-Cf-tests: New file.
48173         * modules/unictype/category-Cn-tests: New file.
48174         * modules/unictype/category-Co-tests: New file.
48175         * modules/unictype/category-Cs-tests: New file.
48176         * modules/unictype/category-L-tests: New file.
48177         * modules/unictype/category-Ll-tests: New file.
48178         * modules/unictype/category-Lm-tests: New file.
48179         * modules/unictype/category-Lo-tests: New file.
48180         * modules/unictype/category-Lt-tests: New file.
48181         * modules/unictype/category-Lu-tests: New file.
48182         * modules/unictype/category-M-tests: New file.
48183         * modules/unictype/category-Mc-tests: New file.
48184         * modules/unictype/category-Me-tests: New file.
48185         * modules/unictype/category-Mn-tests: New file.
48186         * modules/unictype/category-N-tests: New file.
48187         * modules/unictype/category-Nd-tests: New file.
48188         * modules/unictype/category-Nl-tests: New file.
48189         * modules/unictype/category-No-tests: New file.
48190         * modules/unictype/category-P-tests: New file.
48191         * modules/unictype/category-Pc-tests: New file.
48192         * modules/unictype/category-Pd-tests: New file.
48193         * modules/unictype/category-Pe-tests: New file.
48194         * modules/unictype/category-Pf-tests: New file.
48195         * modules/unictype/category-Pi-tests: New file.
48196         * modules/unictype/category-Po-tests: New file.
48197         * modules/unictype/category-Ps-tests: New file.
48198         * modules/unictype/category-S-tests: New file.
48199         * modules/unictype/category-Sc-tests: New file.
48200         * modules/unictype/category-Sk-tests: New file.
48201         * modules/unictype/category-Sm-tests: New file.
48202         * modules/unictype/category-So-tests: New file.
48203         * modules/unictype/category-Z-tests: New file.
48204         * modules/unictype/category-Zl-tests: New file.
48205         * modules/unictype/category-Zp-tests: New file.
48206         * modules/unictype/category-Zs-tests: New file.
48207         * modules/unictype/category-and-not-tests: New file.
48208         * modules/unictype/category-and-tests: New file.
48209         * modules/unictype/category-byname-tests: New file.
48210         * modules/unictype/category-name-tests: New file.
48211         * modules/unictype/category-none-tests: New file.
48212         * modules/unictype/category-of-tests: New file.
48213         * modules/unictype/category-or-tests: New file.
48214         * modules/unictype/category-test-withtable-tests: New file.
48215         * modules/unictype/combining-class-tests: New file.
48216         * modules/unictype/ctype-alnum-tests: New file.
48217         * modules/unictype/ctype-alpha-tests: New file.
48218         * modules/unictype/ctype-blank-tests: New file.
48219         * modules/unictype/ctype-cntrl-tests: New file.
48220         * modules/unictype/ctype-digit-tests: New file.
48221         * modules/unictype/ctype-graph-tests: New file.
48222         * modules/unictype/ctype-lower-tests: New file.
48223         * modules/unictype/ctype-print-tests: New file.
48224         * modules/unictype/ctype-punct-tests: New file.
48225         * modules/unictype/ctype-space-tests: New file.
48226         * modules/unictype/ctype-upper-tests: New file.
48227         * modules/unictype/ctype-xdigit-tests: New file.
48228         * modules/unictype/decimal-digit-tests: New file.
48229         * modules/unictype/digit-tests: New file.
48230         * modules/unictype/mirror-tests: New file.
48231         * modules/unictype/numeric-tests: New file.
48232         * modules/unictype/property-alphabetic-tests: New file.
48233         * modules/unictype/property-ascii-hex-digit-tests: New file.
48234         * modules/unictype/property-bidi-arabic-digit-tests: New file.
48235         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
48236         * modules/unictype/property-bidi-block-separator-tests: New file.
48237         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
48238         * modules/unictype/property-bidi-common-separator-tests: New file.
48239         * modules/unictype/property-bidi-control-tests: New file.
48240         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
48241         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
48242         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
48243         * modules/unictype/property-bidi-european-digit-tests: New file.
48244         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
48245         * modules/unictype/property-bidi-left-to-right-tests: New file.
48246         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
48247         * modules/unictype/property-bidi-other-neutral-tests: New file.
48248         * modules/unictype/property-bidi-pdf-tests: New file.
48249         * modules/unictype/property-bidi-segment-separator-tests: New file.
48250         * modules/unictype/property-bidi-whitespace-tests: New file.
48251         * modules/unictype/property-byname-tests: New file.
48252         * modules/unictype/property-combining-tests: New file.
48253         * modules/unictype/property-composite-tests: New file.
48254         * modules/unictype/property-currency-symbol-tests: New file.
48255         * modules/unictype/property-dash-tests: New file.
48256         * modules/unictype/property-decimal-digit-tests: New file.
48257         * modules/unictype/property-default-ignorable-code-point-tests: New file.
48258         * modules/unictype/property-deprecated-tests: New file.
48259         * modules/unictype/property-diacritic-tests: New file.
48260         * modules/unictype/property-extender-tests: New file.
48261         * modules/unictype/property-format-control-tests: New file.
48262         * modules/unictype/property-grapheme-base-tests: New file.
48263         * modules/unictype/property-grapheme-extend-tests: New file.
48264         * modules/unictype/property-grapheme-link-tests: New file.
48265         * modules/unictype/property-hex-digit-tests: New file.
48266         * modules/unictype/property-hyphen-tests: New file.
48267         * modules/unictype/property-id-continue-tests: New file.
48268         * modules/unictype/property-id-start-tests: New file.
48269         * modules/unictype/property-ideographic-tests: New file.
48270         * modules/unictype/property-ids-binary-operator-tests: New file.
48271         * modules/unictype/property-ids-trinary-operator-tests: New file.
48272         * modules/unictype/property-ignorable-control-tests: New file.
48273         * modules/unictype/property-iso-control-tests: New file.
48274         * modules/unictype/property-join-control-tests: New file.
48275         * modules/unictype/property-left-of-pair-tests: New file.
48276         * modules/unictype/property-line-separator-tests: New file.
48277         * modules/unictype/property-logical-order-exception-tests: New file.
48278         * modules/unictype/property-lowercase-tests: New file.
48279         * modules/unictype/property-math-tests: New file.
48280         * modules/unictype/property-non-break-tests: New file.
48281         * modules/unictype/property-not-a-character-tests: New file.
48282         * modules/unictype/property-numeric-tests: New file.
48283         * modules/unictype/property-other-alphabetic-tests: New file.
48284         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
48285         * modules/unictype/property-other-grapheme-extend-tests: New file.
48286         * modules/unictype/property-other-id-continue-tests: New file.
48287         * modules/unictype/property-other-id-start-tests: New file.
48288         * modules/unictype/property-other-lowercase-tests: New file.
48289         * modules/unictype/property-other-math-tests: New file.
48290         * modules/unictype/property-other-uppercase-tests: New file.
48291         * modules/unictype/property-paired-punctuation-tests: New file.
48292         * modules/unictype/property-paragraph-separator-tests: New file.
48293         * modules/unictype/property-pattern-syntax-tests: New file.
48294         * modules/unictype/property-pattern-white-space-tests: New file.
48295         * modules/unictype/property-private-use-tests: New file.
48296         * modules/unictype/property-punctuation-tests: New file.
48297         * modules/unictype/property-quotation-mark-tests: New file.
48298         * modules/unictype/property-radical-tests: New file.
48299         * modules/unictype/property-sentence-terminal-tests: New file.
48300         * modules/unictype/property-soft-dotted-tests: New file.
48301         * modules/unictype/property-space-tests: New file.
48302         * modules/unictype/property-terminal-punctuation-tests: New file.
48303         * modules/unictype/property-test-tests: New file.
48304         * modules/unictype/property-titlecase-tests: New file.
48305         * modules/unictype/property-unassigned-code-value-tests: New file.
48306         * modules/unictype/property-unified-ideograph-tests: New file.
48307         * modules/unictype/property-uppercase-tests: New file.
48308         * modules/unictype/property-variation-selector-tests: New file.
48309         * modules/unictype/property-white-space-tests: New file.
48310         * modules/unictype/property-xid-continue-tests: New file.
48311         * modules/unictype/property-xid-start-tests: New file.
48312         * modules/unictype/property-zero-width-tests: New file.
48313         * modules/unictype/scripts-tests: New file.
48314         * modules/unictype/syntax-c-ident-tests: New file.
48315         * modules/unictype/syntax-c-whitespace-tests: New file.
48316         * modules/unictype/syntax-java-ident-tests: New file.
48317         * modules/unictype/syntax-java-whitespace-tests: New file.
48318         * tests/unictype/test-bidi_byname.c: New file.
48319         * tests/unictype/test-bidi_name.c: New file.
48320         * tests/unictype/test-bidi_of.c: New file.
48321         * tests/unictype/test-bidi_test.c: New file.
48322         * tests/unictype/test-block_list.c: New file.
48323         * tests/unictype/test-block_of.c: New file.
48324         * tests/unictype/test-block_test.c: New file.
48325         * tests/unictype/test-categ_and.c: New file.
48326         * tests/unictype/test-categ_and_not.c: New file.
48327         * tests/unictype/test-categ_byname.c: New file.
48328         * tests/unictype/test-categ_name.c: New file.
48329         * tests/unictype/test-categ_none.c: New file.
48330         * tests/unictype/test-categ_of.c: New file.
48331         * tests/unictype/test-categ_or.c: New file.
48332         * tests/unictype/test-categ_test_withtable.c: New file.
48333         * tests/unictype/test-combining.c: New file.
48334         * tests/unictype/test-decdigit.c: New file.
48335         * tests/unictype/test-digit.c: New file.
48336         * tests/unictype/test-mirror.c: New file.
48337         * tests/unictype/test-numeric.c: New file.
48338         * tests/unictype/test-pr_byname.c: New file.
48339         * tests/unictype/test-pr_test.c: New file.
48340         * tests/unictype/test-predicate-part1.h: New file.
48341         * tests/unictype/test-predicate-part2.h: New file.
48342         * tests/unictype/test-scripts.c: New file.
48343         * tests/unictype/test-sy_c_ident.c: New file.
48344         * tests/unictype/test-sy_java_ident.c: New file.
48345
48346         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
48347         for Unicode 5.0.0.
48348         * tests/unictype/test-categ_Cc.c: Likewise.
48349         * tests/unictype/test-categ_Cf.c: Likewise.
48350         * tests/unictype/test-categ_Cn.c: Likewise.
48351         * tests/unictype/test-categ_Co.c: Likewise.
48352         * tests/unictype/test-categ_Cs.c: Likewise.
48353         * tests/unictype/test-categ_L.c: Likewise.
48354         * tests/unictype/test-categ_Ll.c: Likewise.
48355         * tests/unictype/test-categ_Lm.c: Likewise.
48356         * tests/unictype/test-categ_Lo.c: Likewise.
48357         * tests/unictype/test-categ_Lt.c: Likewise.
48358         * tests/unictype/test-categ_Lu.c: Likewise.
48359         * tests/unictype/test-categ_M.c: Likewise.
48360         * tests/unictype/test-categ_Mc.c: Likewise.
48361         * tests/unictype/test-categ_Me.c: Likewise.
48362         * tests/unictype/test-categ_Mn.c: Likewise.
48363         * tests/unictype/test-categ_N.c: Likewise.
48364         * tests/unictype/test-categ_Nd.c: Likewise.
48365         * tests/unictype/test-categ_Nl.c: Likewise.
48366         * tests/unictype/test-categ_No.c: Likewise.
48367         * tests/unictype/test-categ_P.c: Likewise.
48368         * tests/unictype/test-categ_Pc.c: Likewise.
48369         * tests/unictype/test-categ_Pd.c: Likewise.
48370         * tests/unictype/test-categ_Pe.c: Likewise.
48371         * tests/unictype/test-categ_Pf.c: Likewise.
48372         * tests/unictype/test-categ_Pi.c: Likewise.
48373         * tests/unictype/test-categ_Po.c: Likewise.
48374         * tests/unictype/test-categ_Ps.c: Likewise.
48375         * tests/unictype/test-categ_S.c: Likewise.
48376         * tests/unictype/test-categ_Sc.c: Likewise.
48377         * tests/unictype/test-categ_Sk.c: Likewise.
48378         * tests/unictype/test-categ_Sm.c: Likewise.
48379         * tests/unictype/test-categ_So.c: Likewise.
48380         * tests/unictype/test-categ_Z.c: Likewise.
48381         * tests/unictype/test-categ_Zl.c: Likewise.
48382         * tests/unictype/test-categ_Zp.c: Likewise.
48383         * tests/unictype/test-categ_Zs.c: Likewise.
48384         * tests/unictype/test-ctype_alnum.c: Likewise.
48385         * tests/unictype/test-ctype_alpha.c: Likewise.
48386         * tests/unictype/test-ctype_blank.c: Likewise.
48387         * tests/unictype/test-ctype_cntrl.c: Likewise.
48388         * tests/unictype/test-ctype_digit.c: Likewise.
48389         * tests/unictype/test-ctype_graph.c: Likewise.
48390         * tests/unictype/test-ctype_lower.c: Likewise.
48391         * tests/unictype/test-ctype_print.c: Likewise.
48392         * tests/unictype/test-ctype_punct.c: Likewise.
48393         * tests/unictype/test-ctype_space.c: Likewise.
48394         * tests/unictype/test-ctype_upper.c: Likewise.
48395         * tests/unictype/test-ctype_xdigit.c: Likewise.
48396         * tests/unictype/test-decdigit.h: Likewise.
48397         * tests/unictype/test-digit.h: Likewise.
48398         * tests/unictype/test-numeric.h: Likewise.
48399         * tests/unictype/test-pr_alphabetic.c: Likewise.
48400         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
48401         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
48402         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
48403         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
48404         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
48405         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
48406         * tests/unictype/test-pr_bidi_control.c: Likewise.
48407         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
48408         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
48409         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
48410         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
48411         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
48412         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
48413         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
48414         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
48415         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
48416         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
48417         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
48418         * tests/unictype/test-pr_combining.c: Likewise.
48419         * tests/unictype/test-pr_composite.c: Likewise.
48420         * tests/unictype/test-pr_currency_symbol.c: Likewise.
48421         * tests/unictype/test-pr_dash.c: Likewise.
48422         * tests/unictype/test-pr_decimal_digit.c: Likewise.
48423         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
48424         * tests/unictype/test-pr_deprecated.c: Likewise.
48425         * tests/unictype/test-pr_diacritic.c: Likewise.
48426         * tests/unictype/test-pr_extender.c: Likewise.
48427         * tests/unictype/test-pr_format_control.c: Likewise.
48428         * tests/unictype/test-pr_grapheme_base.c: Likewise.
48429         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
48430         * tests/unictype/test-pr_grapheme_link.c: Likewise.
48431         * tests/unictype/test-pr_hex_digit.c: Likewise.
48432         * tests/unictype/test-pr_hyphen.c: Likewise.
48433         * tests/unictype/test-pr_id_continue.c: Likewise.
48434         * tests/unictype/test-pr_id_start.c: Likewise.
48435         * tests/unictype/test-pr_ideographic.c: Likewise.
48436         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
48437         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
48438         * tests/unictype/test-pr_ignorable_control.c: Likewise.
48439         * tests/unictype/test-pr_iso_control.c: Likewise.
48440         * tests/unictype/test-pr_join_control.c: Likewise.
48441         * tests/unictype/test-pr_left_of_pair.c: Likewise.
48442         * tests/unictype/test-pr_line_separator.c: Likewise.
48443         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
48444         * tests/unictype/test-pr_lowercase.c: Likewise.
48445         * tests/unictype/test-pr_math.c: Likewise.
48446         * tests/unictype/test-pr_non_break.c: Likewise.
48447         * tests/unictype/test-pr_not_a_character.c: Likewise.
48448         * tests/unictype/test-pr_numeric.c: Likewise.
48449         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
48450         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
48451         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
48452         * tests/unictype/test-pr_other_id_continue.c: Likewise.
48453         * tests/unictype/test-pr_other_id_start.c: Likewise.
48454         * tests/unictype/test-pr_other_lowercase.c: Likewise.
48455         * tests/unictype/test-pr_other_math.c: Likewise.
48456         * tests/unictype/test-pr_other_uppercase.c: Likewise.
48457         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
48458         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
48459         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
48460         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
48461         * tests/unictype/test-pr_private_use.c: Likewise.
48462         * tests/unictype/test-pr_punctuation.c: Likewise.
48463         * tests/unictype/test-pr_quotation_mark.c: Likewise.
48464         * tests/unictype/test-pr_radical.c: Likewise.
48465         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
48466         * tests/unictype/test-pr_soft_dotted.c: Likewise.
48467         * tests/unictype/test-pr_space.c: Likewise.
48468         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
48469         * tests/unictype/test-pr_titlecase.c: Likewise.
48470         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
48471         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
48472         * tests/unictype/test-pr_uppercase.c: Likewise.
48473         * tests/unictype/test-pr_variation_selector.c: Likewise.
48474         * tests/unictype/test-pr_white_space.c: Likewise.
48475         * tests/unictype/test-pr_xid_continue.c: Likewise.
48476         * tests/unictype/test-pr_xid_start.c: Likewise.
48477         * tests/unictype/test-pr_zero_width.c: Likewise.
48478         * tests/unictype/test-sy_c_whitespace.c: Likewise.
48479         * tests/unictype/test-sy_java_whitespace.c: Likewise.
48480
48481 2007-11-12  Bruno Haible  <bruno@clisp.org>
48482
48483         Unicode character classification functions.
48484         * lib/unictype.h: New file.
48485         * modules/unictype/base: New file.
48486         * modules/unictype/category-L: New file.
48487         * modules/unictype/category-Lu: New file.
48488         * modules/unictype/category-Ll: New file.
48489         * modules/unictype/category-Lt: New file.
48490         * modules/unictype/category-Lm: New file.
48491         * modules/unictype/category-Lo: New file.
48492         * modules/unictype/category-M: New file.
48493         * modules/unictype/category-Mn: New file.
48494         * modules/unictype/category-Mc: New file.
48495         * modules/unictype/category-Me: New file.
48496         * modules/unictype/category-N: New file.
48497         * modules/unictype/category-Nd: New file.
48498         * modules/unictype/category-Nl: New file.
48499         * modules/unictype/category-No: New file.
48500         * modules/unictype/category-P: New file.
48501         * modules/unictype/category-Pc: New file.
48502         * modules/unictype/category-Pd: New file.
48503         * modules/unictype/category-Ps: New file.
48504         * modules/unictype/category-Pe: New file.
48505         * modules/unictype/category-Pi: New file.
48506         * modules/unictype/category-Pf: New file.
48507         * modules/unictype/category-Po: New file.
48508         * modules/unictype/category-S: New file.
48509         * modules/unictype/category-Sm: New file.
48510         * modules/unictype/category-Sc: New file.
48511         * modules/unictype/category-Sk: New file.
48512         * modules/unictype/category-So: New file.
48513         * modules/unictype/category-Z: New file.
48514         * modules/unictype/category-Zs: New file.
48515         * modules/unictype/category-Zl: New file.
48516         * modules/unictype/category-Zp: New file.
48517         * modules/unictype/category-C: New file.
48518         * modules/unictype/category-Cc: New file.
48519         * modules/unictype/category-Cf: New file.
48520         * modules/unictype/category-Cs: New file.
48521         * modules/unictype/category-Co: New file.
48522         * modules/unictype/category-Cn: New file.
48523         * modules/unictype/category-or: New file.
48524         * modules/unictype/category-of: New file.
48525         * modules/unictype/category-test: New file.
48526         * modules/unictype/category-test-withtable: New file.
48527         * modules/unictype/category-byname: New file.
48528         * modules/unictype/category-none: New file.
48529         * modules/unictype/category-and: New file.
48530         * modules/unictype/category-and-not: New file.
48531         * modules/unictype/category-name: New file.
48532         * modules/unictype/combining-class: New file.
48533         * modules/unictype/category-all: New file.
48534         * modules/unictype/bidicategory-all: New file.
48535         * modules/unictype/bidicategory-byname: New file.
48536         * modules/unictype/bidicategory-name: New file.
48537         * modules/unictype/bidicategory-of: New file.
48538         * modules/unictype/bidicategory-test: New file.
48539         * modules/unictype/decimal-digit: New file.
48540         * modules/unictype/digit: New file.
48541         * modules/unictype/numeric: New file.
48542         * modules/unictype/mirror: New file.
48543         * modules/unictype/property-white-space: New file.
48544         * modules/unictype/property-alphabetic: New file.
48545         * modules/unictype/property-other-alphabetic: New file.
48546         * modules/unictype/property-not-a-character: New file.
48547         * modules/unictype/property-default-ignorable-code-point: New file.
48548         * modules/unictype/property-other-default-ignorable-code-point: New
48549         file.
48550         * modules/unictype/property-deprecated: New file.
48551         * modules/unictype/property-logical-order-exception: New file.
48552         * modules/unictype/property-variation-selector: New file.
48553         * modules/unictype/property-private-use: New file.
48554         * modules/unictype/property-unassigned-code-value: New file.
48555         * modules/unictype/property-uppercase: New file.
48556         * modules/unictype/property-other-uppercase: New file.
48557         * modules/unictype/property-lowercase: New file.
48558         * modules/unictype/property-other-lowercase: New file.
48559         * modules/unictype/property-titlecase: New file.
48560         * modules/unictype/property-soft-dotted: New file.
48561         * modules/unictype/property-id-start: New file.
48562         * modules/unictype/property-other-id-start: New file.
48563         * modules/unictype/property-id-continue: New file.
48564         * modules/unictype/property-other-id-continue: New file.
48565         * modules/unictype/property-xid-start: New file.
48566         * modules/unictype/property-xid-continue: New file.
48567         * modules/unictype/property-pattern-white-space: New file.
48568         * modules/unictype/property-pattern-syntax: New file.
48569         * modules/unictype/property-join-control: New file.
48570         * modules/unictype/property-grapheme-base: New file.
48571         * modules/unictype/property-grapheme-extend: New file.
48572         * modules/unictype/property-other-grapheme-extend: New file.
48573         * modules/unictype/property-grapheme-link: New file.
48574         * modules/unictype/property-bidi-control: New file.
48575         * modules/unictype/property-bidi-left-to-right: New file.
48576         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
48577         * modules/unictype/property-bidi-arabic-right-to-left: New file.
48578         * modules/unictype/property-bidi-european-digit: New file.
48579         * modules/unictype/property-bidi-eur-num-separator: New file.
48580         * modules/unictype/property-bidi-eur-num-terminator: New file.
48581         * modules/unictype/property-bidi-arabic-digit: New file.
48582         * modules/unictype/property-bidi-common-separator: New file.
48583         * modules/unictype/property-bidi-block-separator: New file.
48584         * modules/unictype/property-bidi-segment-separator: New file.
48585         * modules/unictype/property-bidi-whitespace: New file.
48586         * modules/unictype/property-bidi-non-spacing-mark: New file.
48587         * modules/unictype/property-bidi-boundary-neutral: New file.
48588         * modules/unictype/property-bidi-pdf: New file.
48589         * modules/unictype/property-bidi-embedding-or-override: New file.
48590         * modules/unictype/property-bidi-other-neutral: New file.
48591         * modules/unictype/property-hex-digit: New file.
48592         * modules/unictype/property-ascii-hex-digit: New file.
48593         * modules/unictype/property-ideographic: New file.
48594         * modules/unictype/property-unified-ideograph: New file.
48595         * modules/unictype/property-radical: New file.
48596         * modules/unictype/property-ids-binary-operator: New file.
48597         * modules/unictype/property-ids-trinary-operator: New file.
48598         * modules/unictype/property-zero-width: New file.
48599         * modules/unictype/property-space: New file.
48600         * modules/unictype/property-non-break: New file.
48601         * modules/unictype/property-iso-control: New file.
48602         * modules/unictype/property-format-control: New file.
48603         * modules/unictype/property-dash: New file.
48604         * modules/unictype/property-hyphen: New file.
48605         * modules/unictype/property-punctuation: New file.
48606         * modules/unictype/property-line-separator: New file.
48607         * modules/unictype/property-paragraph-separator: New file.
48608         * modules/unictype/property-quotation-mark: New file.
48609         * modules/unictype/property-sentence-terminal: New file.
48610         * modules/unictype/property-terminal-punctuation: New file.
48611         * modules/unictype/property-currency-symbol: New file.
48612         * modules/unictype/property-math: New file.
48613         * modules/unictype/property-other-math: New file.
48614         * modules/unictype/property-paired-punctuation: New file.
48615         * modules/unictype/property-left-of-pair: New file.
48616         * modules/unictype/property-combining: New file.
48617         * modules/unictype/property-composite: New file.
48618         * modules/unictype/property-decimal-digit: New file.
48619         * modules/unictype/property-numeric: New file.
48620         * modules/unictype/property-diacritic: New file.
48621         * modules/unictype/property-extender: New file.
48622         * modules/unictype/property-ignorable-control: New file.
48623         * modules/unictype/property-test: New file.
48624         * modules/unictype/property-byname: New file.
48625         * modules/unictype/property-all: New file.
48626         * modules/unictype/scripts: New file.
48627         * modules/unictype/scripts-all: New file.
48628         * modules/unictype/block-of: New file.
48629         * modules/unictype/block-test: New file.
48630         * modules/unictype/block-list: New file.
48631         * modules/unictype/block-all: New file.
48632         * modules/unictype/syntax-c-whitespace: New file.
48633         * modules/unictype/syntax-java-whitespace: New file.
48634         * modules/unictype/syntax-c-ident: New file.
48635         * modules/unictype/syntax-java-ident: New file.
48636         * modules/unictype/ctype-alnum: New file.
48637         * modules/unictype/ctype-alpha: New file.
48638         * modules/unictype/ctype-cntrl: New file.
48639         * modules/unictype/ctype-digit: New file.
48640         * modules/unictype/ctype-graph: New file.
48641         * modules/unictype/ctype-lower: New file.
48642         * modules/unictype/ctype-print: New file.
48643         * modules/unictype/ctype-punct: New file.
48644         * modules/unictype/ctype-space: New file.
48645         * modules/unictype/ctype-upper: New file.
48646         * modules/unictype/ctype-xdigit: New file.
48647         * modules/unictype/ctype-blank: New file.
48648         * lib/unictype/bidi_byname.c: New file.
48649         * lib/unictype/bidi_name.c: New file.
48650         * lib/unictype/bidi_of.c: New file.
48651         * lib/unictype/bidi_test.c: New file.
48652         * lib/unictype/bitmap.h: New file.
48653         * lib/unictype/block_test.c: New file.
48654         * lib/unictype/blocks.c: New file.
48655         * lib/unictype/categ_C.c: New file.
48656         * lib/unictype/categ_Cc.c: New file.
48657         * lib/unictype/categ_Cf.c: New file.
48658         * lib/unictype/categ_Cn.c: New file.
48659         * lib/unictype/categ_Co.c: New file.
48660         * lib/unictype/categ_Cs.c: New file.
48661         * lib/unictype/categ_L.c: New file.
48662         * lib/unictype/categ_Ll.c: New file.
48663         * lib/unictype/categ_Lm.c: New file.
48664         * lib/unictype/categ_Lo.c: New file.
48665         * lib/unictype/categ_Lt.c: New file.
48666         * lib/unictype/categ_Lu.c: New file.
48667         * lib/unictype/categ_M.c: New file.
48668         * lib/unictype/categ_Mc.c: New file.
48669         * lib/unictype/categ_Me.c: New file.
48670         * lib/unictype/categ_Mn.c: New file.
48671         * lib/unictype/categ_N.c: New file.
48672         * lib/unictype/categ_Nd.c: New file.
48673         * lib/unictype/categ_Nl.c: New file.
48674         * lib/unictype/categ_No.c: New file.
48675         * lib/unictype/categ_P.c: New file.
48676         * lib/unictype/categ_Pc.c: New file.
48677         * lib/unictype/categ_Pd.c: New file.
48678         * lib/unictype/categ_Pe.c: New file.
48679         * lib/unictype/categ_Pf.c: New file.
48680         * lib/unictype/categ_Pi.c: New file.
48681         * lib/unictype/categ_Po.c: New file.
48682         * lib/unictype/categ_Ps.c: New file.
48683         * lib/unictype/categ_S.c: New file.
48684         * lib/unictype/categ_Sc.c: New file.
48685         * lib/unictype/categ_Sk.c: New file.
48686         * lib/unictype/categ_Sm.c: New file.
48687         * lib/unictype/categ_So.c: New file.
48688         * lib/unictype/categ_Z.c: New file.
48689         * lib/unictype/categ_Zl.c: New file.
48690         * lib/unictype/categ_Zp.c: New file.
48691         * lib/unictype/categ_Zs.c: New file.
48692         * lib/unictype/categ_and.c: New file.
48693         * lib/unictype/categ_and_not.c: New file.
48694         * lib/unictype/categ_byname.c: New file.
48695         * lib/unictype/categ_name.c: New file.
48696         * lib/unictype/categ_none.c: New file.
48697         * lib/unictype/categ_of.c: New file.
48698         * lib/unictype/categ_or.c: New file.
48699         * lib/unictype/categ_test.c: New file.
48700         * lib/unictype/combining.c: New file.
48701         * lib/unictype/ctype_alnum.c: New file.
48702         * lib/unictype/ctype_alpha.c: New file.
48703         * lib/unictype/ctype_blank.c: New file.
48704         * lib/unictype/ctype_cntrl.c: New file.
48705         * lib/unictype/ctype_digit.c: New file.
48706         * lib/unictype/ctype_graph.c: New file.
48707         * lib/unictype/ctype_lower.c: New file.
48708         * lib/unictype/ctype_print.c: New file.
48709         * lib/unictype/ctype_punct.c: New file.
48710         * lib/unictype/ctype_space.c: New file.
48711         * lib/unictype/ctype_upper.c: New file.
48712         * lib/unictype/ctype_xdigit.c: New file.
48713         * lib/unictype/decdigit.c: New file.
48714         * lib/unictype/digit.c: New file.
48715         * lib/unictype/identsyntaxmap.h: New file.
48716         * lib/unictype/mirror.c: New file.
48717         * lib/unictype/numeric.c: New file.
48718         * lib/unictype/pr_alphabetic.c: New file.
48719         * lib/unictype/pr_ascii_hex_digit.c: New file.
48720         * lib/unictype/pr_bidi_arabic_digit.c: New file.
48721         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
48722         * lib/unictype/pr_bidi_block_separator.c: New file.
48723         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
48724         * lib/unictype/pr_bidi_common_separator.c: New file.
48725         * lib/unictype/pr_bidi_control.c: New file.
48726         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
48727         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
48728         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
48729         * lib/unictype/pr_bidi_european_digit.c: New file.
48730         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
48731         * lib/unictype/pr_bidi_left_to_right.c: New file.
48732         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
48733         * lib/unictype/pr_bidi_other_neutral.c: New file.
48734         * lib/unictype/pr_bidi_pdf.c: New file.
48735         * lib/unictype/pr_bidi_segment_separator.c: New file.
48736         * lib/unictype/pr_bidi_whitespace.c: New file.
48737         * lib/unictype/pr_byname.c: New file.
48738         * lib/unictype/pr_byname.gperf: New file.
48739         * lib/unictype/pr_combining.c: New file.
48740         * lib/unictype/pr_composite.c: New file.
48741         * lib/unictype/pr_currency_symbol.c: New file.
48742         * lib/unictype/pr_dash.c: New file.
48743         * lib/unictype/pr_decimal_digit.c: New file.
48744         * lib/unictype/pr_default_ignorable_code_point.c: New file.
48745         * lib/unictype/pr_deprecated.c: New file.
48746         * lib/unictype/pr_diacritic.c: New file.
48747         * lib/unictype/pr_extender.c: New file.
48748         * lib/unictype/pr_format_control.c: New file.
48749         * lib/unictype/pr_grapheme_base.c: New file.
48750         * lib/unictype/pr_grapheme_extend.c: New file.
48751         * lib/unictype/pr_grapheme_link.c: New file.
48752         * lib/unictype/pr_hex_digit.c: New file.
48753         * lib/unictype/pr_hyphen.c: New file.
48754         * lib/unictype/pr_id_continue.c: New file.
48755         * lib/unictype/pr_id_start.c: New file.
48756         * lib/unictype/pr_ideographic.c: New file.
48757         * lib/unictype/pr_ids_binary_operator.c: New file.
48758         * lib/unictype/pr_ids_trinary_operator.c: New file.
48759         * lib/unictype/pr_ignorable_control.c: New file.
48760         * lib/unictype/pr_iso_control.c: New file.
48761         * lib/unictype/pr_join_control.c: New file.
48762         * lib/unictype/pr_left_of_pair.c: New file.
48763         * lib/unictype/pr_line_separator.c: New file.
48764         * lib/unictype/pr_logical_order_exception.c: New file.
48765         * lib/unictype/pr_lowercase.c: New file.
48766         * lib/unictype/pr_math.c: New file.
48767         * lib/unictype/pr_non_break.c: New file.
48768         * lib/unictype/pr_not_a_character.c: New file.
48769         * lib/unictype/pr_numeric.c: New file.
48770         * lib/unictype/pr_other_alphabetic.c: New file.
48771         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
48772         * lib/unictype/pr_other_grapheme_extend.c: New file.
48773         * lib/unictype/pr_other_id_continue.c: New file.
48774         * lib/unictype/pr_other_id_start.c: New file.
48775         * lib/unictype/pr_other_lowercase.c: New file.
48776         * lib/unictype/pr_other_math.c: New file.
48777         * lib/unictype/pr_other_uppercase.c: New file.
48778         * lib/unictype/pr_paired_punctuation.c: New file.
48779         * lib/unictype/pr_paragraph_separator.c: New file.
48780         * lib/unictype/pr_pattern_syntax.c: New file.
48781         * lib/unictype/pr_pattern_white_space.c: New file.
48782         * lib/unictype/pr_private_use.c: New file.
48783         * lib/unictype/pr_punctuation.c: New file.
48784         * lib/unictype/pr_quotation_mark.c: New file.
48785         * lib/unictype/pr_radical.c: New file.
48786         * lib/unictype/pr_sentence_terminal.c: New file.
48787         * lib/unictype/pr_soft_dotted.c: New file.
48788         * lib/unictype/pr_space.c: New file.
48789         * lib/unictype/pr_terminal_punctuation.c: New file.
48790         * lib/unictype/pr_test.c: New file.
48791         * lib/unictype/pr_titlecase.c: New file.
48792         * lib/unictype/pr_unassigned_code_value.c: New file.
48793         * lib/unictype/pr_unified_ideograph.c: New file.
48794         * lib/unictype/pr_uppercase.c: New file.
48795         * lib/unictype/pr_variation_selector.c: New file.
48796         * lib/unictype/pr_white_space.c: New file.
48797         * lib/unictype/pr_xid_continue.c: New file.
48798         * lib/unictype/pr_xid_start.c: New file.
48799         * lib/unictype/pr_zero_width.c: New file.
48800         * lib/unictype/scripts.c: New file.
48801         * lib/unictype/sy_c_ident.c: New file.
48802         * lib/unictype/sy_c_whitespace.c: New file.
48803         * lib/unictype/sy_java_ident.c: New file.
48804         * lib/unictype/sy_java_whitespace.c: New file.
48805
48806         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
48807         Unicode 5.0.0.
48808         * lib/unictype/blocks.h: Likewise.
48809         * lib/unictype/categ_C.h: Likewise.
48810         * lib/unictype/categ_Cc.h: Likewise.
48811         * lib/unictype/categ_Cf.h: Likewise.
48812         * lib/unictype/categ_Cn.h: Likewise.
48813         * lib/unictype/categ_Co.h: Likewise.
48814         * lib/unictype/categ_Cs.h: Likewise.
48815         * lib/unictype/categ_L.h: Likewise.
48816         * lib/unictype/categ_Ll.h: Likewise.
48817         * lib/unictype/categ_Lm.h: Likewise.
48818         * lib/unictype/categ_Lo.h: Likewise.
48819         * lib/unictype/categ_Lt.h: Likewise.
48820         * lib/unictype/categ_Lu.h: Likewise.
48821         * lib/unictype/categ_M.h: Likewise.
48822         * lib/unictype/categ_Mc.h: Likewise.
48823         * lib/unictype/categ_Me.h: Likewise.
48824         * lib/unictype/categ_Mn.h: Likewise.
48825         * lib/unictype/categ_N.h: Likewise.
48826         * lib/unictype/categ_Nd.h: Likewise.
48827         * lib/unictype/categ_Nl.h: Likewise.
48828         * lib/unictype/categ_No.h: Likewise.
48829         * lib/unictype/categ_P.h: Likewise.
48830         * lib/unictype/categ_Pc.h: Likewise.
48831         * lib/unictype/categ_Pd.h: Likewise.
48832         * lib/unictype/categ_Pe.h: Likewise.
48833         * lib/unictype/categ_Pf.h: Likewise.
48834         * lib/unictype/categ_Pi.h: Likewise.
48835         * lib/unictype/categ_Po.h: Likewise.
48836         * lib/unictype/categ_Ps.h: Likewise.
48837         * lib/unictype/categ_S.h: Likewise.
48838         * lib/unictype/categ_Sc.h: Likewise.
48839         * lib/unictype/categ_Sk.h: Likewise.
48840         * lib/unictype/categ_Sm.h: Likewise.
48841         * lib/unictype/categ_So.h: Likewise.
48842         * lib/unictype/categ_Z.h: Likewise.
48843         * lib/unictype/categ_Zl.h: Likewise.
48844         * lib/unictype/categ_Zp.h: Likewise.
48845         * lib/unictype/categ_Zs.h: Likewise.
48846         * lib/unictype/categ_of.h: Likewise.
48847         * lib/unictype/combining.h: Likewise.
48848         * lib/unictype/ctype_alnum.h: Likewise.
48849         * lib/unictype/ctype_alpha.h: Likewise.
48850         * lib/unictype/ctype_blank.h: Likewise.
48851         * lib/unictype/ctype_cntrl.h: Likewise.
48852         * lib/unictype/ctype_digit.h: Likewise.
48853         * lib/unictype/ctype_graph.h: Likewise.
48854         * lib/unictype/ctype_lower.h: Likewise.
48855         * lib/unictype/ctype_print.h: Likewise.
48856         * lib/unictype/ctype_punct.h: Likewise.
48857         * lib/unictype/ctype_space.h: Likewise.
48858         * lib/unictype/ctype_upper.h: Likewise.
48859         * lib/unictype/ctype_xdigit.h: Likewise.
48860         * lib/unictype/decdigit.h: Likewise.
48861         * lib/unictype/digit.h: Likewise.
48862         * lib/unictype/mirror.h: Likewise.
48863         * lib/unictype/numeric.h: Likewise.
48864         * lib/unictype/pr_alphabetic.h: Likewise.
48865         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
48866         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
48867         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
48868         * lib/unictype/pr_bidi_block_separator.h: Likewise.
48869         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
48870         * lib/unictype/pr_bidi_common_separator.h: Likewise.
48871         * lib/unictype/pr_bidi_control.h: Likewise.
48872         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
48873         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
48874         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
48875         * lib/unictype/pr_bidi_european_digit.h: Likewise.
48876         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
48877         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
48878         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
48879         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
48880         * lib/unictype/pr_bidi_pdf.h: Likewise.
48881         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
48882         * lib/unictype/pr_bidi_whitespace.h: Likewise.
48883         * lib/unictype/pr_combining.h: Likewise.
48884         * lib/unictype/pr_composite.h: Likewise.
48885         * lib/unictype/pr_currency_symbol.h: Likewise.
48886         * lib/unictype/pr_dash.h: Likewise.
48887         * lib/unictype/pr_decimal_digit.h: Likewise.
48888         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
48889         * lib/unictype/pr_deprecated.h: Likewise.
48890         * lib/unictype/pr_diacritic.h: Likewise.
48891         * lib/unictype/pr_extender.h: Likewise.
48892         * lib/unictype/pr_format_control.h: Likewise.
48893         * lib/unictype/pr_grapheme_base.h: Likewise.
48894         * lib/unictype/pr_grapheme_extend.h: Likewise.
48895         * lib/unictype/pr_grapheme_link.h: Likewise.
48896         * lib/unictype/pr_hex_digit.h: Likewise.
48897         * lib/unictype/pr_hyphen.h: Likewise.
48898         * lib/unictype/pr_id_continue.h: Likewise.
48899         * lib/unictype/pr_id_start.h: Likewise.
48900         * lib/unictype/pr_ideographic.h: Likewise.
48901         * lib/unictype/pr_ids_binary_operator.h: Likewise.
48902         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
48903         * lib/unictype/pr_ignorable_control.h: Likewise.
48904         * lib/unictype/pr_iso_control.h: Likewise.
48905         * lib/unictype/pr_join_control.h: Likewise.
48906         * lib/unictype/pr_left_of_pair.h: Likewise.
48907         * lib/unictype/pr_line_separator.h: Likewise.
48908         * lib/unictype/pr_logical_order_exception.h: Likewise.
48909         * lib/unictype/pr_lowercase.h: Likewise.
48910         * lib/unictype/pr_math.h: Likewise.
48911         * lib/unictype/pr_non_break.h: Likewise.
48912         * lib/unictype/pr_not_a_character.h: Likewise.
48913         * lib/unictype/pr_numeric.h: Likewise.
48914         * lib/unictype/pr_other_alphabetic.h: Likewise.
48915         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
48916         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
48917         * lib/unictype/pr_other_id_continue.h: Likewise.
48918         * lib/unictype/pr_other_id_start.h: Likewise.
48919         * lib/unictype/pr_other_lowercase.h: Likewise.
48920         * lib/unictype/pr_other_math.h: Likewise.
48921         * lib/unictype/pr_other_uppercase.h: Likewise.
48922         * lib/unictype/pr_paired_punctuation.h: Likewise.
48923         * lib/unictype/pr_paragraph_separator.h: Likewise.
48924         * lib/unictype/pr_pattern_syntax.h: Likewise.
48925         * lib/unictype/pr_pattern_white_space.h: Likewise.
48926         * lib/unictype/pr_private_use.h: Likewise.
48927         * lib/unictype/pr_punctuation.h: Likewise.
48928         * lib/unictype/pr_quotation_mark.h: Likewise.
48929         * lib/unictype/pr_radical.h: Likewise.
48930         * lib/unictype/pr_sentence_terminal.h: Likewise.
48931         * lib/unictype/pr_soft_dotted.h: Likewise.
48932         * lib/unictype/pr_space.h: Likewise.
48933         * lib/unictype/pr_terminal_punctuation.h: Likewise.
48934         * lib/unictype/pr_titlecase.h: Likewise.
48935         * lib/unictype/pr_unassigned_code_value.h: Likewise.
48936         * lib/unictype/pr_unified_ideograph.h: Likewise.
48937         * lib/unictype/pr_uppercase.h: Likewise.
48938         * lib/unictype/pr_variation_selector.h: Likewise.
48939         * lib/unictype/pr_white_space.h: Likewise.
48940         * lib/unictype/pr_xid_continue.h: Likewise.
48941         * lib/unictype/pr_xid_start.h: Likewise.
48942         * lib/unictype/pr_zero_width.h: Likewise.
48943         * lib/unictype/scripts.h: Likewise.
48944         * lib/unictype/scripts_byname.gperf: Likewise.
48945         * lib/unictype/sy_c_ident.h: Likewise.
48946         * lib/unictype/sy_c_whitespace.h: Likewise.
48947         * lib/unictype/sy_java_ident.h: Likewise.
48948         * lib/unictype/sy_java_whitespace.h: Likewise.
48949
48950         * lib/unictype/Makefile: New file.
48951         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
48952         glibc.
48953         * lib/unictype/3level.h: New file, copied from glibc.
48954         * lib/unictype/3levelbit.h: New file.
48955
48956 2007-11-11  Bruno Haible  <bruno@clisp.org>
48957
48958         * modules/gperf: New file.
48959         * modules/iconv_open (Depends-on): Add it.
48960         (Makefile.am): Remove the GPERF definition.
48961
48962 2007-11-11  Bruno Haible  <bruno@clisp.org>
48963
48964         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
48965         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
48966
48967 2007-11-11  Bruno Haible  <bruno@clisp.org>
48968
48969         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
48970         (usage): Remove function.
48971
48972 2007-11-11  Bruno Haible  <bruno@clisp.org>
48973
48974         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
48975         gl_FUNC_CEILF_LIBS.
48976         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
48977         gl_FUNC_CEIL_LIBS.
48978         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
48979         gl_FUNC_CEILL_LIBS.
48980         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
48981         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
48982         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
48983
48984 2007-11-11  Bruno Haible  <bruno@clisp.org>
48985
48986         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
48987         roundf were declared but do not exist on functions.
48988         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
48989         roundl were declared but do not exist on functions.
48990         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
48991         HAVE_FLOORL_AND_CEILL, respectively.
48992         Needed for Sun C on Solaris 10.
48993
48994 2007-11-11  Bruno Haible  <bruno@clisp.org>
48995
48996         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
48997         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
48998         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
48999         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
49000         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
49001         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
49002         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
49003         HAVE_DECL_ROUNDF.
49004         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
49005         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
49006         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
49007         of HAVE_DECL_ROUND*.
49008         * modules/math (Makefile.am): Update.
49009
49010 2007-11-10  Bruno Haible  <bruno@clisp.org>
49011
49012         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
49013         ptrdiff_t as m4/intl.m4.
49014
49015 2007-11-10  Jim Meyering  <meyering@redhat.com>
49016
49017         Avoid link failure for the argmatch test.
49018         * tests/test-argmatch.c (usage): Define function to avoid a link
49019         failure: argmatch_die requires a usage function.
49020
49021 2007-11-09  Bruno Haible  <bruno@clisp.org>
49022
49023         * doc/functions/snprintf.texi: Mention BeOS deficiency.
49024         * doc/functions/vsnprintf.texi: Likewise.
49025         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
49026         with a size argument < 2.
49027
49028 2007-11-09  Bruno Haible  <bruno@clisp.org>
49029
49030         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
49031         buffer. Fixes an inefficiency introduced on 2007-11-03.
49032
49033 2007-11-09  Bruno Haible  <bruno@clisp.org>
49034
49035         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
49036         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
49037
49038 2007-11-08  Jim Meyering  <meyering@redhat.com>
49039
49040         Change cache variable name prefix "jm_" to "gl_" everywhere.
49041         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
49042         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
49043         * m4/uptime.m4: s/gl_/jm_/
49044
49045 2007-11-07  Bruno Haible  <bruno@clisp.org>
49046
49047         Update to GNU gettext 0.17.
49048         * m4/intl.m4: Update to GNU gettext 0.17.
49049         * m4/po.m4: Likewise.
49050         * modules/gettext (Files): Remove m4/ulonglong.m4.
49051         (configure.ac): Require gettext infrastructure from version 0.17.
49052
49053 2007-11-06  Bruno Haible  <bruno@clisp.org>
49054
49055         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
49056         symbolic values are not defined in a public header.
49057         * lib/freadable.c (freadable) [QNX]: Likewise.
49058         * lib/freadahead.c (freadahead) [QNX]: Likewise.
49059         * lib/freading.c (freading) [QNX]: Likewise.
49060         * lib/fseterr.c (fseterr) [QNX]: Likewise.
49061         * lib/fwritable.c (fwritable) [QNX]: Likewise.
49062         * lib/fwriting.c (fwriting) [QNX]: Likewise.
49063         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
49064         Reported by Alain Magloire.
49065
49066         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
49067
49068 2007-11-05  Bruno Haible  <bruno@clisp.org>
49069
49070         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
49071         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
49072         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
49073         Reported by Eric Blake.
49074
49075 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49076             Bruno Haible  <bruno@clisp.org>
49077
49078         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
49079         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
49080         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
49081         (malloc): Undefine also before including <stdlib.h>.
49082         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
49083         Needed on OSF/1 4.0.
49084
49085 2007-11-05  Jim Meyering  <meyering@redhat.com>
49086
49087         git-version-gen: sync from coreutils.
49088         * build-aux/git-version-gen: Add comments.
49089         Change the first '-' to '.' in the snapshot version string,
49090         e.g., 6.9-377-08144 -> 6.9.377-08144
49091         Remove first parameter.
49092         Don't declare a version "-dirty" merely because a time
49093         stamp has changed.
49094
49095 2007-11-04  Bruno Haible  <bruno@clisp.org>
49096
49097         * lib/lock.h: Protect all macro definitions containing an 'if'
49098         statement through a "do { ... } while (0)".
49099         * lib/tls.h: Likewise.
49100
49101 2007-11-04  Bruno Haible  <bruno@clisp.org>
49102
49103         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
49104
49105 2007-11-04  Bruno Haible  <bruno@clisp.org>
49106
49107         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
49108         * modules/fprintf-posix (Depends-on): Add nocrash.
49109         * modules/snprintf-posix (Depends-on): Likewise.
49110         * modules/sprintf-posix (Depends-on): Likewise.
49111         * modules/vasnprintf-posix (Depends-on): Likewise.
49112         * modules/vasprintf-posix (Depends-on): Likewise.
49113         * modules/vfprintf-posix (Depends-on): Likewise.
49114         * modules/vsnprintf-posix (Depends-on): Likewise.
49115         * modules/vsprintf-posix (Depends-on): Likewise.
49116         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
49117         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
49118         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
49119         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
49120         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
49121         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
49122         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
49123
49124 2007-11-04  Bruno Haible  <bruno@clisp.org>
49125
49126         * modules/nocrash: New file.
49127         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
49128         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
49129
49130 2007-11-04  Bruno Haible  <bruno@clisp.org>
49131
49132         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
49133         precision handling.
49134         * tests/test-vasprintf-posix.c (test_function): Likewise.
49135         * tests/test-snprintf-posix.h (test_function): Likewise.
49136         * tests/test-sprintf-posix.h (test_function): Likewise.
49137
49138         Fix *printf behaviour for large precisions on mingw and BeOS.
49139         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
49140         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
49141         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
49142         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
49143         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
49144         gl_PRINTF_PRECISION and test its result. Invoke
49145         gl_PREREQ_VASNPRINTF_PRECISION.
49146         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
49147         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
49148         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
49149         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
49150         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
49151         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
49152         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
49153         * doc/functions/fprintf.texi: Update.
49154         * doc/functions/printf.texi: Update.
49155         * doc/functions/snprintf.texi: Update.
49156         * doc/functions/sprintf.texi: Update.
49157         * doc/functions/vfprintf.texi: Update.
49158         * doc/functions/vprintf.texi: Update.
49159         * doc/functions/vsnprintf.texi: Update.
49160         * doc/functions/vsprintf.texi: Update.
49161
49162 2007-11-04  Bruno Haible  <bruno@clisp.org>
49163
49164         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
49165
49166 2007-11-04  Bruno Haible  <bruno@clisp.org>
49167
49168         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
49169         Reported by Sylvain Beucler <beuc@gnu.org>.
49170
49171 2007-11-03  Bruno Haible  <bruno@clisp.org>
49172
49173         * tests/test-fprintf-posix2.sh: New file.
49174         * tests/test-fprintf-posix2.c: New file.
49175         * modules/fprintf-posix-tests (Files): Add them.
49176         (TESTS): Add test-fprintf-posix2.sh.
49177         (configure.ac): Check for getrlimit and setrlimit.
49178         (check_PROGRAMS): Add test-fprintf-posix2.
49179
49180         * tests/test-printf-posix2.sh: New file.
49181         * tests/test-printf-posix2.c: New file.
49182         * modules/printf-posix-tests (Files): Add them.
49183         (TESTS): Add test-printf-posix2.sh.
49184         (configure.ac): Check for getrlimit and setrlimit.
49185         (check_PROGRAMS): Add test-printf-posix2.
49186
49187         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
49188         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
49189         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
49190         (decode_double): New function, copied from decode_long_double.
49191         (scale10_round_decimal_decoded): New function, extracted from
49192         scale10_round_decimal_long_double.
49193         (scale10_round_decimal_long_double): Use it.
49194         (scale10_round_decimal_double): New function.
49195         (floorlog10): New function.
49196         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
49197         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
49198         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
49199         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
49200         gl_PRINTF_ENOMEM and test its result. Invoke
49201         gl_PREREQ_VASNPRINTF_ENOMEM.
49202         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
49203         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
49204         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
49205         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
49206         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
49207         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
49208         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
49209         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
49210         * modules/snprintf-posix (Depends-on): Likewise.
49211         * modules/sprintf-posix (Depends-on): Likewise.
49212         * modules/vasnprintf-posix (Depends-on): Likewise.
49213         * modules/vasprintf-posix (Depends-on): Likewise.
49214         * modules/vfprintf-posix (Depends-on): Likewise.
49215         * modules/vsnprintf-posix (Depends-on): Likewise.
49216         * modules/vsprintf-posix (Depends-on): Likewise.
49217         * doc/functions/fprintf.texi: Update.
49218         * doc/functions/printf.texi: Update.
49219         * doc/functions/snprintf.texi: Update.
49220         * doc/functions/sprintf.texi: Update.
49221         * doc/functions/vfprintf.texi: Update.
49222         * doc/functions/vprintf.texi: Update.
49223         * doc/functions/vsnprintf.texi: Update.
49224         * doc/functions/vsprintf.texi: Update.
49225
49226 2007-11-03  Bruno Haible  <bruno@clisp.org>
49227
49228         * modules/frexp-nolibm-tests: New file.
49229
49230         * modules/frexp-nolibm: New file.
49231         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
49232
49233 2007-11-03  Bruno Haible  <bruno@clisp.org>
49234
49235         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
49236         value is C99 compliant.
49237         Needed for OSF/1 5.1.
49238
49239 2007-11-03  Bruno Haible  <bruno@clisp.org>
49240
49241         Fix out-of-memory handling of vasnprintf.
49242         * lib/printf-parse.c: Include <errno.h>.
49243         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
49244         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
49245         is already set.
49246
49247 2007-11-02  Eric Blake  <ebb9@byu.net>
49248
49249         Fix tests on cygwin.
49250         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
49251
49252 2007-11-01  Bruno Haible  <bruno@clisp.org>
49253
49254         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
49255         warning.
49256         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
49257         needed for POSIX compatibility.
49258
49259 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
49260
49261         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
49262         for compatibility with GNU.
49263
49264 2007-11-01  Bruno Haible  <bruno@clisp.org>
49265
49266         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
49267         (putenv): Renamed from rpl_putenv. Change argument type from
49268         'const char *' to 'char *'.
49269         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
49270         of defining putenv in config.h, just set REPLACE_PUTENV.
49271         * modules/putenv (Depends-on): Add stdlib.
49272         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
49273         (Include): Use <stdlib.h>.
49274         * lib/stdlib.in.h (putenv): New declaration.
49275         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
49276         REPLACE_PUTENV.
49277         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
49278         REPLACE_PUTENV.
49279         Needed for MacOS X 10.5.0.
49280         Reported by Peter O'Gorman <peter@pogma.com>.
49281
49282 2007-11-01  Jim Meyering  <meyering@redhat.com>
49283
49284         Treat an empty date string exactly like "0".
49285         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
49286         if the remaining date string (to be parsed) is empty, use "0".
49287         Reported by Mischa Molhoek and discussed in this thread:
49288         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
49289
49290 2007-10-31  Bruno Haible  <bruno@clisp.org>
49291
49292         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
49293         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
49294         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
49295         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
49296         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
49297         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
49298
49299 2007-10-31  Bruno Haible  <bruno@clisp.org>
49300
49301         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
49302         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
49303         (AC_TYPE_LONG_LONG_INT): Use it.
49304         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
49305         it as well.
49306         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
49307         to m4/longlong.m4.
49308         * modules/stdint (Files): Remove m4/ulonglong.m4.
49309         * modules/strtoull (Files): Use m4/longlong.m4 instead of
49310         m4/ulonglong.m4.
49311         * modules/strtoumax (Files): Likewise.
49312
49313 2007-10-30  Bruno Haible  <bruno@clisp.org>
49314
49315         * modules/xvasprintf-posix: New file.
49316         Suggested by Eric Blake.
49317
49318 2007-10-30  Bruno Haible  <bruno@clisp.org>
49319
49320         * modules/xprintf-posix-tests: New file.
49321         * tests/test-xprintf-posix.sh: New file.
49322         * tests/test-xprintf-posix.c: New file.
49323         * tests/test-xfprintf-posix.c: New file.
49324
49325         * modules/xprintf-posix: New file.
49326
49327 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49328
49329         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
49330         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
49331         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
49332
49333 2007-10-29  Bruno Haible  <bruno@clisp.org>
49334
49335         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
49336         contain the special marker '_cv_'.
49337         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
49338         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
49339         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
49340         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
49341         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
49342         Reported by Ralf Wildenhues.
49343
49344 2007-10-29  Bruno Haible  <bruno@clisp.org>
49345
49346         * gnulib-tool (func_import): When --lgpl is not specified, set
49347         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
49348         GPLv3.
49349         Reported by Simon Josefsson.
49350
49351 2007-10-28  Bruno Haible  <bruno@clisp.org>
49352
49353         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
49354         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
49355         HAVE_DECL_ISFINITE.
49356         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
49357         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
49358         HAVE_DECL_ISFINITE.
49359
49360 2007-10-28  Bruno Haible  <bruno@clisp.org>
49361
49362         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
49363         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
49364
49365 2007-10-28  Bruno Haible  <bruno@clisp.org>
49366
49367         Fix link errors with Sun C 5.0 on Solaris 10.
49368         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
49369         function is declared but not present in the compiler's libm.
49370         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
49371         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
49372         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
49373         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
49374         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
49375         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
49376         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
49377         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
49378         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
49379         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
49380         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
49381         HAVE_DECL_FLOORL.
49382
49383 2007-10-28  Bruno Haible  <bruno@clisp.org>
49384
49385         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
49386         gl_FUNC_FLOORL. Cache the result.
49387         (gl_FUNC_FLOORL): Use it.
49388         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
49389         gl_FUNC_CEILL. Cache the result.
49390         (gl_FUNC_CEILL): Use it.
49391
49392         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
49393         gl_FUNC_FLOOR. Cache the result.
49394         (gl_FUNC_FLOOR): Use it.
49395         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
49396         gl_FUNC_CEIL. Cache the result.
49397         (gl_FUNC_CEIL): Use it.
49398
49399         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
49400         gl_FUNC_FLOORF. Cache the result.
49401         (gl_FUNC_FLOORF): Use it.
49402         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
49403         gl_FUNC_CEILF. Cache the result.
49404         (gl_FUNC_CEILF): Use it.
49405
49406 2007-10-28  Bruno Haible  <bruno@clisp.org>
49407
49408         * gnulib-tool: Allow specifying the LGPL version number through
49409         --lgpl=2 or --lgpl=3.
49410         (func_usage): Document --lgpl with argument.
49411         Handle --lgpl=... arguments.
49412         (func_import): Recognize also gl_LGPL calls with an argument. When
49413         --lgpl=2 is used and the module's license is just LGPL, report an
49414         error. Set sed_transform_lib_file according to the lgpl variable. In
49415         the generated files, use --lgpl or gl_LGPL invocations with argument,
49416         if necessary.
49417         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
49418         an LGPv2+ license.
49419         * doc/gnulib-tool.texi (Modified imports): Update explanation of
49420         gl_LGPL macro.
49421
49422 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49423             Bruno Haible  <bruno@clisp.org>
49424
49425         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
49426         (u16_uctomb_aux): Likewise.
49427         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
49428         !HAVE_INLINE.
49429         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
49430
49431 2007-10-28  Bruno Haible  <bruno@clisp.org>
49432
49433         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
49434         Invoke AM_GETTEXT_OPTION if it exists.
49435         * modules/vasprintf: Likewise.
49436         * modules/verror: Likewise.
49437         * modules/xprintf: Likewise.
49438         * modules/xvasprintf: Likewise.
49439
49440 2007-10-27  Ben Pfaff  <blp@gnu.org>
49441
49442         * lib/math.in.h: Define isfinite macro and prototypes for
49443         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
49444         implementations.
49445         * m4/math_h.m4: New substitutions for isfinite module.
49446         * lib/isfinite.c: New file.
49447         * m4/isfinite.m4: New file.
49448         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
49449         * modules/isfinite: New file.
49450         * modules/isfinite-tests: New file.
49451         * tests/tests-isfinite.c: New file.
49452         * doc/functions/isfinite.texi: Mention isfinite module.
49453         * MODULES.html.sh: Mention new module.
49454
49455 2007-10-27  Ben Pfaff  <blp@gnu.org>
49456
49457         Ralf Wildenhues reported that Tru64 4.0D declares the round
49458         functions but does not have definitions.
49459         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
49460         cannot be found in any library, set the output variable to
49461         "missing" instead of "".
49462         * m4/round.m4: Also use our substitute if we cannot find round in
49463         any library, even if it is declared.
49464         * m4/roundf.m4: Likewise for roundf.
49465         * m4/roundl.m4: Likewise for roundl.
49466         * lib/math.in.h: Undefine roundf, round, roundl before defining
49467         their replacements, to allow for hypothetical systems where these
49468         may be defined as macros but not available in libraries.
49469
49470 2007-10-27  Bruno Haible  <bruno@clisp.org>
49471
49472         * doc/gnulib.texi: Invoke @firstparagraphindent.
49473         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
49474         changes in gnulib.
49475         (Source changes): New section.
49476
49477 2007-10-26  Bruno Haible  <bruno@clisp.org>
49478
49479         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
49480         borrowed from autoconf.
49481
49482 2007-10-26  Bruno Haible  <bruno@clisp.org>
49483
49484         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
49485         strerror returned the empty string. Needed on HP-UX 11.00.
49486
49487 2007-10-24  Micah Cowan  <micah@cowan.name>
49488
49489         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
49490         * build-aux/bootstrap: Remove support for now-unnecessary option,
49491         --cvs-user, and envvars CVS_USER, CVS_RSH.
49492
49493 2007-10-24  Jim Meyering  <meyering@redhat.com>
49494
49495         Avoid diagnostics from sha1sum when there is no cached checksum.
49496         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
49497         if the po.s1 file hasn't been created yet.
49498
49499         * build-aux/bootstrap: Sync from coreutils:
49500         2007-10-24  Jim Meyering  <meyering@redhat.com>
49501         Get gnulib from the git repository, not from an obsolete cvs one.
49502         * build-aux/bootstrap: Suggestion from Micah Cowan.
49503         2007-10-04  Jim Meyering  <jim@meyering.net>
49504         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
49505         (update_po_files): Work also when there are no .po files in po/.
49506
49507 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
49508
49509         * README: Append ".git" to git and cg examples.
49510         Problem reported by Benoit Sigoure.
49511
49512 2007-10-23  Micah Cowan  <micah@cowan.name>
49513
49514         * users.txt: Add wget.
49515
49516 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49517
49518         Fix linking of some unistdio tests on FreeBSD.
49519         * modules/unistdio/u16-vsnprintf-tests
49520         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
49521         * modules/unistdio/u16-vsprintf-tests
49522         (test_u16_vsnprintf1_LDADD): Likewise.
49523         * modules/unistdio/u32-vsnprintf-tests
49524         (test_u32_vsnprintf1_LDADD): Likewise.
49525         * modules/unistdio/u32-vsprintf-tests
49526         (test_u32_vsprintf1_LDADD): Likewise.
49527         * modules/unistdio/u8-vsnprintf-tests
49528         (test_u8_vsnprintf1_LDADD): Likewise.
49529         * modules/unistdio/u8-vsprintf-tests
49530         (test_u8_vsprintf1_LDADD): Likewise.
49531         * modules/unistdio/ulc-vsnprintf-tests
49532         (test_ulc_vsnprintf1_LDADD): Likewise.
49533         * modules/unistdio/ulc-vsprintf-tests
49534         (test_ulc_vsprintf1_LDADD): Likewise.
49535
49536         Fix linking of some uniconv tests on FreeBSD.
49537         * modules/uniconv/u16-conv-from-enc-tests
49538         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
49539         * modules/uniconv/u16-conv-to-enc-tests
49540         (test_u16_conv_to_enc_LDADD): Likewise.
49541         * modules/uniconv/u16-strconv-from-enc-tests
49542         (test_u16_strconv_from_enc_LDADD): Likewise.
49543         * modules/uniconv/u16-strconv-to-enc-tests
49544         (test_u16_strconv_to_enc_LDADD): Likewise.
49545         * modules/uniconv/u32-conv-from-enc-tests
49546         (test_u32_conv_from_enc_LDADD): Likewise.
49547         * modules/uniconv/u32-conv-to-enc-tests
49548         (test_u32_conv_to_enc_LDADD): Likewise.
49549         * modules/uniconv/u32-strconv-from-enc-tests
49550         (test_u32_strconv_from_enc_LDADD): Likewise.
49551         * modules/uniconv/u32-strconv-to-enc-tests
49552         (test_u32_strconv_to_enc_LDADD): Likewise.
49553         * modules/uniconv/u8-conv-from-enc-tests
49554         (test_u8_conv_from_enc_LDADD): Likewise.
49555         * modules/uniconv/u8-conv-to-enc-tests
49556         (test_u8_conv_to_enc_LDADD): Likewise.
49557         * modules/uniconv/u8-strconv-from-enc-tests
49558         (test_u8_strconv_from_enc_LDADD): Likewise.
49559         * modules/uniconv/u8-strconv-to-enc-tests
49560         (test_u8_strconv_to_enc_LDADD): Likewise.
49561
49562 2007-10-22  Bruno Haible  <bruno@clisp.org>
49563
49564         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
49565         size.
49566
49567 2007-10-22  Eric Blake  <ebb9@byu.net>
49568
49569         Tweak x*printf documentation.
49570         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
49571         variable name and comments.
49572         Suggested by Bruno Haible.
49573
49574 2007-10-22  Bruno Haible  <bruno@clisp.org>
49575
49576         * lib/acl.c (copy_acl): Fix file name in comment.
49577
49578 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
49579
49580         Fix Tru64 problem with stdbool.h.
49581         * lib/stdbool.in.h (false, true):
49582         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
49583         Don't declare as an enum in this situation; it runs afoul of Tru64.
49584         Problem reported by Steven M. Schweda in
49585         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
49586
49587 2007-10-22  Eric Blake  <ebb9@byu.net>
49588
49589         Also wrap vf?printf.
49590         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
49591         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
49592         (xvprintf, xvfprintf): New functions.
49593
49594 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49595
49596         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
49597         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
49598
49599         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
49600         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
49601
49602 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
49603
49604         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
49605         by Bruno Haible.
49606
49607 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49608
49609         * lib/getloadavg.c
49610         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
49611         Undef `sys' after including sys/table.h, for Tru64 4.0D.
49612
49613         * tests/test-i-ring.c: Work for C89.
49614
49615 2007-10-22  Bruno Haible  <bruno@clisp.org>
49616
49617         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
49618         -1u, in preprocessor expression, so that we don't test for the bug
49619         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
49620         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
49621
49622 2007-10-22  Eric Blake  <ebb9@byu.net>
49623
49624         * tests/test-yesno.sh: Silence stderr during test.
49625
49626 2007-10-22  Simon Josefsson  <simon@josefsson.org>
49627
49628         * modules/crypto/gc-camellia: New file.
49629
49630         * m4/gc-camellia.m4: New file.
49631
49632         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
49633
49634         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
49635
49636 2007-10-22  Simon Josefsson  <simon@josefsson.org>
49637
49638         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
49639         --help to stdout.  Reported by sms@antinode.org (Steven
49640         M. Schweda).
49641
49642 2007-10-22  Simon Josefsson  <simon@josefsson.org>
49643
49644         * users.txt: Fix link to libksba.
49645
49646 2007-10-21  Ben Pfaff  <blp@gnu.org>
49647
49648         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
49649         round.c roundf implementation that depends on floorf and ceilf to
49650         be tested unconditionally.
49651
49652 2007-10-21  Ben Pfaff  <blp@gnu.org>
49653
49654         * m4/check-libm-func.m4: Removed.
49655         * m4/check-math-lib.m4: New file.
49656         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
49657         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
49658         definition and lack of AC_LIBOBJ([roundf]).
49659         * m4/roundl.m4: Ditto, and similarly for roundl.
49660         * modules/round: Reference new m4 file.
49661         * modules/roundf: Ditto.
49662         * modules/roundl: Ditto.
49663         * tests/test-round2.c (main): Use ROUND instead of round.
49664         Bug report from Bruno Haible.
49665
49666 2007-10-21  Bruno Haible  <bruno@clisp.org>
49667
49668         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
49669         context.
49670
49671 2007-10-21  Bruno Haible  <bruno@clisp.org>
49672
49673         * tests/test-wcwidth.c (main): Allow negative result for some control
49674         characters.
49675
49676         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
49677         Needed on OSF/1 5.1.
49678
49679 2007-10-21  Bruno Haible  <bruno@clisp.org>
49680
49681         * tests/test-floorf1.c: Include isnanf.h.
49682         (main): Use isnanf() instead of isnan().
49683         * tests/test-ceilf1.c: Include isnanf.h.
49684         (main): Use isnanf() instead of isnan().
49685         * tests/test-truncf1.c: Include isnanf.h.
49686         (main): Use isnanf() instead of isnan().
49687         * tests/test-roundf1.c: Include isnanf.h.
49688         (main): Use isnanf() instead of isnan().
49689
49690 2007-10-21  Eric Blake  <ebb9@byu.net>
49691
49692         * users.txt: Update URL for m4.
49693
49694 2007-10-21  Bruno Haible  <bruno@clisp.org>
49695
49696         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
49697
49698 2007-10-21  Bruno Haible  <bruno@clisp.org>
49699
49700         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
49701         Git's management files if the CVS files are not present.
49702
49703 2007-10-20  Bruno Haible  <bruno@clisp.org>
49704
49705         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
49706         gcc-3.4.x.
49707
49708 2007-10-20  Ben Pfaff  <blp@gnu.org>
49709
49710         * lib/math.in.h: Declare round, roundf, roundl if we are providing
49711         implementations.
49712         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
49713         * lib/round.c: New file.
49714         * lib/roundf.c: New file.
49715         * lib/roundl.c: New file.
49716         * m4/round.m4: New file.
49717         * m4/roundf.m4: New file.
49718         * m4/roundl.m4: New file.
49719         * m4/check-libm-func-m4: New file.
49720         * modules/math: Replace round, roundf, roundl related @VARS@ in
49721         math.in.h.
49722         * modules/round: New file.
49723         * modules/round-tests: New file.
49724         * modules/roundf: New file.
49725         * modules/roundf-tests: New file.
49726         * modules/roundl: New file.
49727         * modules/roundl-tests: New file.
49728         * tests/test-round1.c: New file.
49729         * tests/test-round2.c: New file.
49730         * tests/test-roundf1.c: New file.
49731         * tests/test-roundf2.c: New file.
49732         * tests/test-roundl.c: New file.
49733         * doc/functions/round.texi: Mention round module.
49734         * doc/functions/roundf.texi: Mention roundf module.
49735         * doc/functions/roundl.texi: Mention roundl module.
49736         * MODULES.html.sh: Mention new modules.
49737         Thanks to Bruno Haible for suggestions.
49738
49739 2007-10-20  Jim Meyering  <meyering@redhat.com>
49740
49741         * lib/xprintf.c: Include <config.h> unconditionally.
49742
49743         Change xprintf's license to GPL.
49744         * modules/xprintf (License): s/LGPL/GPL/, since this module
49745         depends on modules (exit and exitfail) which are GPL.
49746         Suggestion from Bruno Haible.
49747
49748         xprintf fixes.
49749         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
49750         Use a clearer diagnostic.
49751         Patch from Bruno Haible.
49752
49753 2007-10-20  Bruno Haible  <bruno@clisp.org>
49754
49755         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
49756         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
49757         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
49758
49759 2007-10-20  Bruno Haible  <bruno@clisp.org>
49760
49761         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
49762         precision in the comparison result > x - 1 or similar.
49763         * tests/test-ceilf2.c (correct_result_p): Likewise.
49764         * tests/test-truncf2.c (correct_result_p): Likewise.
49765         * tests/test-trunc2.c (correct_result_p): Likewise.
49766         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
49767
49768 2007-10-20  Bruno Haible  <bruno@clisp.org>
49769
49770         * modules/ceil: New file.
49771         * m4/ceil.m4: New file.
49772         * doc/functions/ceil.texi: Mention the 'ceil' module.
49773
49774 2007-10-20  Bruno Haible  <bruno@clisp.org>
49775
49776         * modules/floor: New file.
49777         * m4/floor.m4: New file.
49778         * doc/functions/floor.texi: Mention the 'floor' module.
49779
49780 2007-10-20  Bruno Haible  <bruno@clisp.org>
49781
49782         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
49783         of %a.
49784         * modules/floorf-tests (Depends-on): Likewise.
49785         * modules/truncf-tests (Depends-on): Likewise.
49786         * modules/trunc-tests (Depends-on): Likewise.
49787         Reported by Ben Pfaff.
49788
49789 2007-10-19  Jim Meyering  <meyering@redhat.com>
49790
49791         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
49792         Don't bother testing specific errno values.  Just test ferror.
49793
49794         New module: xprintf
49795         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
49796
49797 2007-10-19  Bruno Haible  <bruno@clisp.org>
49798
49799         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
49800         syntax.
49801         * modules/javaexec (Makefile.am): Likewise.
49802         * modules/relocatable-prog (Makefile.am): Likewise.
49803         Suggested by Jim Meyering.
49804
49805 2007-10-18  Bruno Haible  <bruno@clisp.org>
49806
49807         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
49808         Reported by Jim Meyering.
49809
49810 2007-10-18  Eric Blake  <ebb9@byu.net>
49811
49812         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
49813
49814 2007-10-18  Bruno Haible  <bruno@clisp.org>
49815
49816         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
49817         the format string into writable memory. Needed in Fortify conditions.
49818
49819 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
49820             Bruno Haible  <bruno@clisp.org>
49821
49822         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
49823         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
49824         * modules/trim (Depends-on): Add mbchar.
49825         (configure.ac): Add gl_FUNC_MBRTOWC.
49826         (Makefile.am): Augment lib_SOURCES.
49827
49828 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
49829
49830         Modify glob.c to use fstatat and dirfd, to simplify it.
49831         Suggested by Eric Blake.
49832         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
49833         Don't include <stdbool.h>; not used.
49834         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
49835         (link_exists_p): Simplify implementation, since we can now assume
49836         dirfd and fstatat.
49837         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
49838
49839 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49840
49841         * gnulib-tool (func_get_dependencies): Fix sed script to
49842         match only tests.
49843
49844 2007-10-17  Bruno Haible  <bruno@clisp.org>
49845
49846         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
49847         allow locale names without encoding suffix.
49848         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
49849         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
49850
49851 2007-10-16  Bruno Haible  <bruno@clisp.org>
49852
49853         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
49854         * lib/getgroups.c (getgroups): Likewise.
49855         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
49856
49857 2007-10-16  Bruno Haible  <bruno@clisp.org>
49858
49859         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
49860         * modules/malloc-posix (License): Likewise.
49861         * modules/realloc-posix (License): Likewise.
49862         * modules/calloc-posix (License): Likewise.
49863         * modules/intprops (License): Change from GPL to LGPL, with
49864         Paul Eggert's approval.
49865
49866 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
49867
49868         Merge glibc changes into lib/glob.c.
49869
49870         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
49871         2007-10-15 04:59:03 UTC.  Here are the changes:
49872
49873         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
49874
49875         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
49876
49877         * lib/glob.c: Add some branch prediction throughout.
49878
49879         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
49880
49881         [BZ #5103]
49882         * lib/glob.c (glob): Recognize patterns starting \/.
49883
49884         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
49885
49886         [BZ #3996]
49887         * lib/glob.c (attribute_hidden): Define if not defined.
49888         (glob): Unescape dirname, filename or username when needed and not
49889         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
49890         is NULL.  Handle unescaped [ in pattern without closing ].
49891         Don't pass GLOB_CHECK down to recursive glob for directories.
49892         (__glob_pattern_type): New function.
49893         (__glob_pattern_p): Implement using __glob_pattern_type.
49894         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
49895         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
49896         Remove unreachable code.
49897
49898         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
49899
49900         * lib/glob.c (glob_in_dir): Add some comments and asserts to
49901         explain why there are no leaks.
49902
49903         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
49904
49905         [BZ #3253]
49906         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
49907         time, rather allocate increasingly bigger arrays of pointers, if
49908         possible with alloca, if too large with malloc.
49909
49910 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
49911
49912         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
49913         Problem reported by H.Merijn Brand in
49914         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
49915         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
49916         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
49917
49918 2007-10-15  Bruno Haible  <bruno@clisp.org>
49919
49920         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
49921         with explicit rpl_ prefix.
49922         * lib/fopen.c (fopen): Likewise.
49923         * lib/freopen.c (freopen): Likewise.
49924         * lib/iconv.c (iconv): Likewise.
49925         * lib/iconv_close.c (iconv_close): Likewise.
49926
49927 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49928
49929         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
49930
49931 2007-10-15  Bruno Haible  <bruno@clisp.org>
49932
49933         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
49934         <stddef.h> instead of <stdlib.h> since we only need NULL.
49935         Reported by Ben Pfaff <blp@cs.stanford.edu>.
49936
49937 2007-10-15  Bruno Haible  <bruno@clisp.org>
49938
49939         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
49940         Replace paragraph talking about LIBOBJS.
49941         Reported by Colin Watson <cjwatson@debian.org>.
49942
49943 2007-10-15  Bruno Haible  <bruno@clisp.org>
49944
49945         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
49946         <stdlib.h> before using NULL.
49947
49948 2007-10-15  Simon Josefsson  <simon@josefsson.org>
49949
49950         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
49951         Reported by Albert Chin <china@thewrittenword.com>.
49952
49953 2007-10-14  Bruno Haible  <bruno@clisp.org>
49954
49955         * modules/iconv_open-utf-tests: New file.
49956         * tests/test-iconv-utf.c: New file.
49957
49958         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
49959         * modules/iconv_open-utf: New file.
49960         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
49961         (iconv, iconv_close): New declarations.
49962         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
49963         be defined.
49964         (iconv_open): Add special handling of conversion between UTF-8 and
49965         UTF-{16,32}{BE,LE}.
49966         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
49967         * lib/iconv_close.c: New file.
49968         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
49969         gl_FUNC_ICONV_OPEN.
49970         (gl_FUNC_ICONV_OPEN): Use it.
49971         (gl_FUNC_ICONV_OPEN_UTF): New macro.
49972         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
49973         and REPLACE_ICONV_UTF.
49974         * modules/iconv_open (Depends-on): Add c-strcase.
49975         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
49976         ICONV_CONST.
49977         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
49978
49979 2007-10-13  Albert Chin  <china@thewrittenword.com>
49980             Bruno Haible  <bruno@clisp.org>
49981
49982         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
49983         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
49984
49985 2007-10-13  Bruno Haible  <bruno@clisp.org>
49986
49987         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
49988         defined, use the ISO C99 inline semantics.
49989         * lib/argp.h (ARGP_EI): Likewise.
49990
49991 2007-10-13  Bruno Haible  <bruno@clisp.org>
49992
49993         Handle 'inline' change in gcc 4.3.0.
49994         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
49995         argp_fmtstream_write, argp_fmtstream_set_lmargin,
49996         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
49997         argp_fmtstream_point): Disable 'extern' declaration if the function
49998         definition is going to be provided inline.
49999         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
50000         semantics, not the ISO C99 inline semantics.
50001         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
50002         'extern' declaration if the function definition is going to be provided
50003         inline.
50004         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
50005         the GNU C inline semantics, not the ISO C99 inline semantics. With
50006         GCC 4.2, avoid a warning.
50007
50008 2007-10-13  Bruno Haible  <bruno@clisp.org>
50009
50010         * lib/freading.h (freading): Enable the use of __freading for
50011         glibc >= 2.7.
50012         * lib/freading.c (freading): Likewise.
50013
50014 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
50015
50016         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
50017         "warning: C99 inline functions are not supported; using GNU89".
50018
50019 2007-10-12  Bruno Haible  <bruno@clisp.org>
50020
50021         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
50022         of 2.
50023         * tests/test-ceilf2.c: New file.
50024         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
50025
50026         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
50027         * modules/ceilf-tests: Update.
50028
50029 2007-10-12  Bruno Haible  <bruno@clisp.org>
50030
50031         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
50032         of 2.
50033         * tests/test-floorf2.c: New file.
50034         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
50035
50036         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
50037         * modules/floorf-tests: Update.
50038
50039 2007-10-12  Bruno Haible  <bruno@clisp.org>
50040
50041         * tests/test-trunc2.c: New file.
50042         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
50043
50044         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
50045         * modules/trunc-tests: Update.
50046
50047 2007-10-12  Bruno Haible  <bruno@clisp.org>
50048
50049         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
50050         of 2.
50051         * tests/test-truncf2.c: New file.
50052         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
50053
50054         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
50055         * modules/truncf-tests: Update.
50056
50057 2007-10-11  Eric Blake  <ebb9@byu.net>
50058
50059         Don't claim strerror is broken on Interix.
50060         * doc/functions/strerror.texi (strerror): Known broken systems are
50061         now Solaris 8, and not Interix.
50062         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
50063         Interix on cross-compile.
50064         Reported by Martin Koeppe in
50065         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
50066
50067 2007-10-11  Bruno Haible  <bruno@clisp.org>
50068
50069         * modules/i-ring-tests: New file.
50070         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
50071         instead of assert.
50072
50073 2007-10-11  Bruno Haible  <bruno@clisp.org>
50074
50075         * modules/filenamecat-tests: New file.
50076         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
50077         * lib/filenamecat.c: Remove test code.
50078
50079 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
50080
50081         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
50082
50083         * lib/strerror.c: Include <string.h> always, to test interface,
50084         and to remove the need for the dummy.
50085         Include intprops.h to compute width instead of doing it ourselves
50086         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
50087         (strerror): Define it to return NULL if there's no system strerror.
50088         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
50089         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
50090         ancient pre-strerror Unix systems well any more.  Saying "unknown
50091         system error" is enough.
50092         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
50093         simpler strerror.c implementation.
50094         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
50095         Simplify the tests to reflect the simpler strerror implementation.
50096         * modules/strerror (Depends-on): Add intprops.
50097
50098 2007-10-09  Eric Blake  <ebb9@byu.net>
50099
50100         Silence test-fpending.
50101         * modules/fpending-tests (Files): Add wrapper script.
50102         * tests/test-fpending.sh: New file.
50103
50104 2007-10-09  Bruno Haible  <bruno@clisp.org>
50105
50106         * MODULES.html.sh (func_module): Don't create a hyperlink for
50107         function names like 'printf_frexp'.
50108         (Misc): Add crc, memxor.
50109         (Characteristics of floating types): New section.
50110         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
50111         isnanf-nolibm, signbit, trunc, truncf, truncl.
50112         (Enhancements for ISO C 99 functions): New subsection Input/output.
50113         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
50114         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
50115         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
50116         (Compatibility checks for POSIX:2001 functions): Add clock-time.
50117         (Enhancements for POSIX:2001 functions): Add chdir-long.
50118         (File system functions): Add areadlink, chdir-safer, read-file.
50119         Remove cycle-check.
50120         (File system as inode set): New section.
50121         (Date and time): Add gethrxtime.
50122         (Multithreading): Add openmp.
50123         (Internationalization functions): Add localename.
50124         (Unicode string functions): Add unistr/u*-mbsnlen.
50125         (Support for maintaining and releasing projects): Add git-version-gen.
50126         (Lone files): Remove directories.
50127
50128 2007-10-08  Ben Pfaff  <blp@gnu.org>
50129
50130         * lib/xmalloca.h: Fix typo in comment.
50131
50132 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
50133
50134         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
50135         when avoiding problems with integer overflow.  Use a portable test
50136         instead.
50137
50138 2007-10-08  Simon Josefsson  <simon@josefsson.org>
50139
50140         * modules/dummy (License): Change to LGPLv2+.
50141         * modules/float (License): Likewise
50142         * modules/realloc (License): Likewise
50143         * modules/stdlib (License): Likewise
50144
50145 2007-10-07  Bruno Haible  <bruno@clisp.org>
50146
50147         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
50148         * floor.c (TWO_MANT_DIG): Likewise.
50149         * ceil.c (TWO_MANT_DIG): Likewise.
50150         Reported by Ben Pfaff.
50151
50152 2007-10-07  Bruno Haible  <bruno@clisp.org>
50153
50154         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
50155         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
50156         * lib/frexp.c (FUNC): Likewise.
50157         * lib/printf-frexp.h (printf_frexp): Likewise.
50158         * lib/printf-frexpl.h (printf_frexpl): Likewise.
50159         * lib/printf-frexp.c (FUNC): Likewise.
50160         Suggested by Jim Meyering.
50161
50162 2007-10-07  Jim Meyering  <meyering@redhat.com>
50163
50164         Make xnanosleep's integer overflow test more robust.
50165         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
50166         so that gcc-4.3.0 doesn't optimize away this test for overflow.
50167
50168 2007-10-07  Bruno Haible  <bruno@clisp.org>
50169
50170         * NEWS: Mention the license change.
50171
50172         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
50173         abbreviations in the modules files.
50174
50175         Change copyright notice from GPLv2+ to GPLv3+.
50176         * README: Change copyright notice.
50177         * MODULES.html.sh: Likewise.
50178         * build-aux/bootstrap.conf: Likewise.
50179         * build-aux/config.libpath: Likewise.
50180         * build-aux/csharpcomp.sh.in: Likewise.
50181         * build-aux/csharpexec.sh.in: Likewise.
50182         * build-aux/install-reloc: Likewise.
50183         * build-aux/javacomp.sh.in: Likewise.
50184         * build-aux/javaexec.sh.in: Likewise.
50185         * build-aux/ldd.sh.in: Likewise.
50186         * build-aux/reloc-ldflags: Likewise.
50187         * build-aux/relocatable.sh.in: Likewise.
50188         * build-aux/x-to-1.in: Likewise.
50189         * check-module: Likewise.
50190         * config/srclistvars.sh: Likewise.
50191         * gnulib-tool: Likewise.
50192         * lib/acl-internal.h: Likewise.
50193         * lib/acl.c: Likewise.
50194         * lib/acl.h: Likewise.
50195         * lib/acl_entries.c: Likewise.
50196         * lib/areadlink-with-size.c: Likewise.
50197         * lib/areadlink.c: Likewise.
50198         * lib/areadlink.h: Likewise.
50199         * lib/argmatch.c: Likewise.
50200         * lib/argmatch.h: Likewise.
50201         * lib/argp-ba.c: Likewise.
50202         * lib/argp-eexst.c: Likewise.
50203         * lib/argp-fmtstream.c: Likewise.
50204         * lib/argp-fmtstream.h: Likewise.
50205         * lib/argp-fs-xinl.c: Likewise.
50206         * lib/argp-help.c: Likewise.
50207         * lib/argp-namefrob.h: Likewise.
50208         * lib/argp-parse.c: Likewise.
50209         * lib/argp-pin.c: Likewise.
50210         * lib/argp-pv.c: Likewise.
50211         * lib/argp-pvh.c: Likewise.
50212         * lib/argp-xinl.c: Likewise.
50213         * lib/argp.h: Likewise.
50214         * lib/at-func.c: Likewise.
50215         * lib/atanl.c: Likewise.
50216         * lib/backupfile.c: Likewise.
50217         * lib/backupfile.h: Likewise.
50218         * lib/basename.c: Likewise.
50219         * lib/binary-io.h: Likewise.
50220         * lib/byteswap.in.h: Likewise.
50221         * lib/c-stack.c: Likewise.
50222         * lib/c-stack.h: Likewise.
50223         * lib/c-strcasestr.c: Likewise.
50224         * lib/c-strcasestr.h: Likewise.
50225         * lib/c-strstr.c: Likewise.
50226         * lib/c-strstr.h: Likewise.
50227         * lib/c-strtod.c: Likewise.
50228         * lib/calloc.c: Likewise.
50229         * lib/canon-host.c: Likewise.
50230         * lib/canon-host.h: Likewise.
50231         * lib/canonicalize-lgpl.c: Likewise.
50232         * lib/canonicalize.c: Likewise.
50233         * lib/canonicalize.h: Likewise.
50234         * lib/ceil.c: Likewise.
50235         * lib/ceilf.c: Likewise.
50236         * lib/ceill.c: Likewise.
50237         * lib/chdir-long.c: Likewise.
50238         * lib/chdir-long.h: Likewise.
50239         * lib/chdir-safer.c: Likewise.
50240         * lib/chdir-safer.h: Likewise.
50241         * lib/chown.c: Likewise.
50242         * lib/classpath.c: Likewise.
50243         * lib/classpath.h: Likewise.
50244         * lib/clean-temp.c: Likewise.
50245         * lib/clean-temp.h: Likewise.
50246         * lib/cloexec.c: Likewise.
50247         * lib/close-stream.c: Likewise.
50248         * lib/closein.c: Likewise.
50249         * lib/closein.h: Likewise.
50250         * lib/closeout.c: Likewise.
50251         * lib/closeout.h: Likewise.
50252         * lib/concat-filename.c: Likewise.
50253         * lib/copy-file.c: Likewise.
50254         * lib/copy-file.h: Likewise.
50255         * lib/count-one-bits.h: Likewise.
50256         * lib/crc.c: Likewise.
50257         * lib/crc.h: Likewise.
50258         * lib/creat-safer.c: Likewise.
50259         * lib/csharpcomp.c: Likewise.
50260         * lib/csharpcomp.h: Likewise.
50261         * lib/csharpexec.c: Likewise.
50262         * lib/csharpexec.h: Likewise.
50263         * lib/cycle-check.c: Likewise.
50264         * lib/cycle-check.h: Likewise.
50265         * lib/diacrit.c: Likewise.
50266         * lib/diacrit.h: Likewise.
50267         * lib/diffseq.h: Likewise.
50268         * lib/dirchownmod.c: Likewise.
50269         * lib/dirent.in.h: Likewise.
50270         * lib/dirfd.c: Likewise.
50271         * lib/dirfd.h: Likewise.
50272         * lib/dirname.c: Likewise.
50273         * lib/dirname.h: Likewise.
50274         * lib/dummy.c: Likewise.
50275         * lib/dup-safer.c: Likewise.
50276         * lib/dup2.c: Likewise.
50277         * lib/eealloc.h: Likewise.
50278         * lib/error.c: Likewise.
50279         * lib/error.h: Likewise.
50280         * lib/euidaccess.c: Likewise.
50281         * lib/exclude.c: Likewise.
50282         * lib/exclude.h: Likewise.
50283         * lib/execute.c: Likewise.
50284         * lib/execute.h: Likewise.
50285         * lib/exitfail.c: Likewise.
50286         * lib/exitfail.h: Likewise.
50287         * lib/expl.c: Likewise.
50288         * lib/fatal-signal.c: Likewise.
50289         * lib/fatal-signal.h: Likewise.
50290         * lib/fbufmode.c: Likewise.
50291         * lib/fbufmode.h: Likewise.
50292         * lib/fchdir.c: Likewise.
50293         * lib/fchmodat.c: Likewise.
50294         * lib/fchownat.c: Likewise.
50295         * lib/fcntl--.h: Likewise.
50296         * lib/fcntl-safer.h: Likewise.
50297         * lib/fcntl.in.h: Likewise.
50298         * lib/fd-safer.c: Likewise.
50299         * lib/fflush.c: Likewise.
50300         * lib/file-has-acl.c: Likewise.
50301         * lib/file-set.c: Likewise.
50302         * lib/file-type.c: Likewise.
50303         * lib/file-type.h: Likewise.
50304         * lib/fileblocks.c: Likewise.
50305         * lib/filemode.c: Likewise.
50306         * lib/filemode.h: Likewise.
50307         * lib/filename.h: Likewise.
50308         * lib/filenamecat.c: Likewise.
50309         * lib/filenamecat.h: Likewise.
50310         * lib/findprog.c: Likewise.
50311         * lib/findprog.h: Likewise.
50312         * lib/float.in.h: Likewise.
50313         * lib/floor.c: Likewise.
50314         * lib/floorf.c: Likewise.
50315         * lib/floorl.c: Likewise.
50316         * lib/fopen-safer.c: Likewise.
50317         * lib/fopen.c: Likewise.
50318         * lib/fpending.c: Likewise.
50319         * lib/fpending.h: Likewise.
50320         * lib/fprintf.c: Likewise.
50321         * lib/fprintftime.h: Likewise.
50322         * lib/fpucw.h: Likewise.
50323         * lib/fpurge.c: Likewise.
50324         * lib/fpurge.h: Likewise.
50325         * lib/freadable.c: Likewise.
50326         * lib/freadable.h: Likewise.
50327         * lib/freadahead.c: Likewise.
50328         * lib/freadahead.h: Likewise.
50329         * lib/freading.c: Likewise.
50330         * lib/freading.h: Likewise.
50331         * lib/free.c: Likewise.
50332         * lib/freopen.c: Likewise.
50333         * lib/frexp.c: Likewise.
50334         * lib/frexpl.c: Likewise.
50335         * lib/fseek.c: Likewise.
50336         * lib/fseterr.c: Likewise.
50337         * lib/fseterr.h: Likewise.
50338         * lib/fstatat.c: Likewise.
50339         * lib/fstrcmp.c: Likewise.
50340         * lib/fstrcmp.h: Likewise.
50341         * lib/fsusage.c: Likewise.
50342         * lib/fsusage.h: Likewise.
50343         * lib/ftell.c: Likewise.
50344         * lib/ftello.c: Likewise.
50345         * lib/fts-cycle.c: Likewise.
50346         * lib/fts.c: Likewise.
50347         * lib/fts_.h: Likewise.
50348         * lib/full-read.c: Likewise.
50349         * lib/full-read.h: Likewise.
50350         * lib/full-write.c: Likewise.
50351         * lib/full-write.h: Likewise.
50352         * lib/fwritable.c: Likewise.
50353         * lib/fwritable.h: Likewise.
50354         * lib/fwriteerror.c: Likewise.
50355         * lib/fwriteerror.h: Likewise.
50356         * lib/fwriting.c: Likewise.
50357         * lib/fwriting.h: Likewise.
50358         * lib/gcd.c: Likewise.
50359         * lib/gcd.h: Likewise.
50360         * lib/getcwd.c: Likewise.
50361         * lib/getdate.h: Likewise.
50362         * lib/getdate.y: Likewise.
50363         * lib/getdomainname.c: Likewise.
50364         * lib/getdomainname.h: Likewise.
50365         * lib/getgroups.c: Likewise.
50366         * lib/gethostname.c: Likewise.
50367         * lib/gethrxtime.c: Likewise.
50368         * lib/gethrxtime.h: Likewise.
50369         * lib/getloadavg.c: Likewise.
50370         * lib/getndelim2.c: Likewise.
50371         * lib/getndelim2.h: Likewise.
50372         * lib/getnline.c: Likewise.
50373         * lib/getnline.h: Likewise.
50374         * lib/getopt.c: Likewise.
50375         * lib/getopt.in.h: Likewise.
50376         * lib/getopt1.c: Likewise.
50377         * lib/getopt_int.h: Likewise.
50378         * lib/getpagesize.h: Likewise.
50379         * lib/getsubopt.c: Likewise.
50380         * lib/gettime.c: Likewise.
50381         * lib/getugroups.c: Likewise.
50382         * lib/getugroups.h: Likewise.
50383         * lib/getusershell.c: Likewise.
50384         * lib/gl_anyavltree_list1.h: Likewise.
50385         * lib/gl_anyavltree_list2.h: Likewise.
50386         * lib/gl_anyhash_list1.h: Likewise.
50387         * lib/gl_anyhash_list2.h: Likewise.
50388         * lib/gl_anylinked_list1.h: Likewise.
50389         * lib/gl_anylinked_list2.h: Likewise.
50390         * lib/gl_anyrbtree_list1.h: Likewise.
50391         * lib/gl_anyrbtree_list2.h: Likewise.
50392         * lib/gl_anytree_list1.h: Likewise.
50393         * lib/gl_anytree_list2.h: Likewise.
50394         * lib/gl_anytree_oset.h: Likewise.
50395         * lib/gl_anytreehash_list1.h: Likewise.
50396         * lib/gl_anytreehash_list2.h: Likewise.
50397         * lib/gl_array_list.c: Likewise.
50398         * lib/gl_array_list.h: Likewise.
50399         * lib/gl_array_oset.c: Likewise.
50400         * lib/gl_array_oset.h: Likewise.
50401         * lib/gl_avltree_list.c: Likewise.
50402         * lib/gl_avltree_list.h: Likewise.
50403         * lib/gl_avltree_oset.c: Likewise.
50404         * lib/gl_avltree_oset.h: Likewise.
50405         * lib/gl_avltreehash_list.c: Likewise.
50406         * lib/gl_avltreehash_list.h: Likewise.
50407         * lib/gl_carray_list.c: Likewise.
50408         * lib/gl_carray_list.h: Likewise.
50409         * lib/gl_linked_list.c: Likewise.
50410         * lib/gl_linked_list.h: Likewise.
50411         * lib/gl_linkedhash_list.c: Likewise.
50412         * lib/gl_linkedhash_list.h: Likewise.
50413         * lib/gl_list.c: Likewise.
50414         * lib/gl_list.h: Likewise.
50415         * lib/gl_oset.c: Likewise.
50416         * lib/gl_oset.h: Likewise.
50417         * lib/gl_rbtree_list.c: Likewise.
50418         * lib/gl_rbtree_list.h: Likewise.
50419         * lib/gl_rbtree_oset.c: Likewise.
50420         * lib/gl_rbtree_oset.h: Likewise.
50421         * lib/gl_rbtreehash_list.c: Likewise.
50422         * lib/gl_rbtreehash_list.h: Likewise.
50423         * lib/gl_sublist.c: Likewise.
50424         * lib/gl_sublist.h: Likewise.
50425         * lib/group-member.c: Likewise.
50426         * lib/group-member.h: Likewise.
50427         * lib/hard-locale.c: Likewise.
50428         * lib/hard-locale.h: Likewise.
50429         * lib/hash-pjw.c: Likewise.
50430         * lib/hash-pjw.h: Likewise.
50431         * lib/hash-triple.c: Likewise.
50432         * lib/hash.c: Likewise.
50433         * lib/hash.h: Likewise.
50434         * lib/human.c: Likewise.
50435         * lib/human.h: Likewise.
50436         * lib/i-ring.c: Likewise.
50437         * lib/i-ring.h: Likewise.
50438         * lib/idcache.c: Likewise.
50439         * lib/imaxabs.c: Likewise.
50440         * lib/imaxdiv.c: Likewise.
50441         * lib/inet_pton.c: Likewise.
50442         * lib/inet_pton.h: Likewise.
50443         * lib/intprops.h: Likewise.
50444         * lib/inttostr.c: Likewise.
50445         * lib/inttostr.h: Likewise.
50446         * lib/inttypes.in.h: Likewise.
50447         * lib/isapipe.c: Likewise.
50448         * lib/isdir.c: Likewise.
50449         * lib/isnan.c: Likewise.
50450         * lib/isnan.h: Likewise.
50451         * lib/isnanf.c: Likewise.
50452         * lib/isnanf.h: Likewise.
50453         * lib/isnanl-nolibm.h: Likewise.
50454         * lib/isnanl.c: Likewise.
50455         * lib/isnanl.h: Likewise.
50456         * lib/javacomp.c: Likewise.
50457         * lib/javacomp.h: Likewise.
50458         * lib/javaexec.c: Likewise.
50459         * lib/javaexec.h: Likewise.
50460         * lib/javaversion.c: Likewise.
50461         * lib/javaversion.h: Likewise.
50462         * lib/javaversion.java: Likewise.
50463         * lib/lbrkprop.h: Likewise.
50464         * lib/lchmod.h: Likewise.
50465         * lib/lchown.c: Likewise.
50466         * lib/ldexpl.c: Likewise.
50467         * lib/linebreak.c: Likewise.
50468         * lib/linebreak.h: Likewise.
50469         * lib/linebuffer.c: Likewise.
50470         * lib/linebuffer.h: Likewise.
50471         * lib/locale.in.h: Likewise.
50472         * lib/logl.c: Likewise.
50473         * lib/long-options.c: Likewise.
50474         * lib/long-options.h: Likewise.
50475         * lib/lstat.c: Likewise.
50476         * lib/lstat.h: Likewise.
50477         * lib/math.in.h: Likewise.
50478         * lib/mbchar.c: Likewise.
50479         * lib/mbchar.h: Likewise.
50480         * lib/mbfile.h: Likewise.
50481         * lib/mbiter.h: Likewise.
50482         * lib/mbscasecmp.c: Likewise.
50483         * lib/mbscasestr.c: Likewise.
50484         * lib/mbschr.c: Likewise.
50485         * lib/mbscspn.c: Likewise.
50486         * lib/mbslen.c: Likewise.
50487         * lib/mbsncasecmp.c: Likewise.
50488         * lib/mbsnlen.c: Likewise.
50489         * lib/mbspbrk.c: Likewise.
50490         * lib/mbspcasecmp.c: Likewise.
50491         * lib/mbsrchr.c: Likewise.
50492         * lib/mbssep.c: Likewise.
50493         * lib/mbsspn.c: Likewise.
50494         * lib/mbsstr.c: Likewise.
50495         * lib/mbstok_r.c: Likewise.
50496         * lib/mbswidth.c: Likewise.
50497         * lib/mbswidth.h: Likewise.
50498         * lib/mbuiter.h: Likewise.
50499         * lib/memcasecmp.c: Likewise.
50500         * lib/memcasecmp.h: Likewise.
50501         * lib/memchr.c: Likewise.
50502         * lib/memcmp.c: Likewise.
50503         * lib/memcoll.c: Likewise.
50504         * lib/memcoll.h: Likewise.
50505         * lib/memcpy.c: Likewise.
50506         * lib/memrchr.c: Likewise.
50507         * lib/mkancesdirs.c: Likewise.
50508         * lib/mkdir-p.c: Likewise.
50509         * lib/mkdir-p.h: Likewise.
50510         * lib/mkdir.c: Likewise.
50511         * lib/mkdirat.c: Likewise.
50512         * lib/mkdtemp.c: Likewise.
50513         * lib/mkstemp-safer.c: Likewise.
50514         * lib/mkstemp.c: Likewise.
50515         * lib/modechange.c: Likewise.
50516         * lib/modechange.h: Likewise.
50517         * lib/mountlist.c: Likewise.
50518         * lib/mountlist.h: Likewise.
50519         * lib/mpsort.c: Likewise.
50520         * lib/nanosleep.c: Likewise.
50521         * lib/obstack.c: Likewise.
50522         * lib/obstack.h: Likewise.
50523         * lib/open-safer.c: Likewise.
50524         * lib/open.c: Likewise.
50525         * lib/openat-die.c: Likewise.
50526         * lib/openat-priv.h: Likewise.
50527         * lib/openat-proc.c: Likewise.
50528         * lib/openat.c: Likewise.
50529         * lib/openat.h: Likewise.
50530         * lib/pagealign_alloc.c: Likewise.
50531         * lib/pagealign_alloc.h: Likewise.
50532         * lib/physmem.c: Likewise.
50533         * lib/physmem.h: Likewise.
50534         * lib/pipe-safer.c: Likewise.
50535         * lib/pipe.c: Likewise.
50536         * lib/pipe.h: Likewise.
50537         * lib/posixtm.c: Likewise.
50538         * lib/posixtm.h: Likewise.
50539         * lib/posixver.c: Likewise.
50540         * lib/printf-frexp.c: Likewise.
50541         * lib/printf-frexp.h: Likewise.
50542         * lib/printf-frexpl.c: Likewise.
50543         * lib/printf-frexpl.h: Likewise.
50544         * lib/printf.c: Likewise.
50545         * lib/progname.c: Likewise.
50546         * lib/progname.h: Likewise.
50547         * lib/progreloc.c: Likewise.
50548         * lib/putenv.c: Likewise.
50549         * lib/quote.c: Likewise.
50550         * lib/quote.h: Likewise.
50551         * lib/quotearg.c: Likewise.
50552         * lib/quotearg.h: Likewise.
50553         * lib/raise.c: Likewise.
50554         * lib/readline.c: Likewise.
50555         * lib/readline.h: Likewise.
50556         * lib/readlink.c: Likewise.
50557         * lib/readtokens.c: Likewise.
50558         * lib/readtokens.h: Likewise.
50559         * lib/readtokens0.c: Likewise.
50560         * lib/readtokens0.h: Likewise.
50561         * lib/readutmp.c: Likewise.
50562         * lib/readutmp.h: Likewise.
50563         * lib/realloc.c: Likewise.
50564         * lib/relocwrapper.c: Likewise.
50565         * lib/rename-dest-slash.c: Likewise.
50566         * lib/rename.c: Likewise.
50567         * lib/rmdir.c: Likewise.
50568         * lib/rpmatch.c: Likewise.
50569         * lib/safe-read.c: Likewise.
50570         * lib/safe-read.h: Likewise.
50571         * lib/safe-write.c: Likewise.
50572         * lib/safe-write.h: Likewise.
50573         * lib/same-inode.h: Likewise.
50574         * lib/same.c: Likewise.
50575         * lib/same.h: Likewise.
50576         * lib/save-cwd.c: Likewise.
50577         * lib/save-cwd.h: Likewise.
50578         * lib/savedir.c: Likewise.
50579         * lib/savedir.h: Likewise.
50580         * lib/savewd.c: Likewise.
50581         * lib/savewd.h: Likewise.
50582         * lib/search.in.h: Likewise.
50583         * lib/setenv.c: Likewise.
50584         * lib/setenv.h: Likewise.
50585         * lib/settime.c: Likewise.
50586         * lib/sh-quote.c: Likewise.
50587         * lib/sh-quote.h: Likewise.
50588         * lib/sig2str.c: Likewise.
50589         * lib/sig2str.h: Likewise.
50590         * lib/signal.in.h: Likewise.
50591         * lib/signbitd.c: Likewise.
50592         * lib/signbitf.c: Likewise.
50593         * lib/signbitl.c: Likewise.
50594         * lib/sigprocmask.c: Likewise.
50595         * lib/sincosl.c: Likewise.
50596         * lib/sleep.c: Likewise.
50597         * lib/sprintf.c: Likewise.
50598         * lib/sqrtl.c: Likewise.
50599         * lib/stat-time.h: Likewise.
50600         * lib/stdio--.h: Likewise.
50601         * lib/stdio-safer.h: Likewise.
50602         * lib/stdlib--.h: Likewise.
50603         * lib/stdlib-safer.h: Likewise.
50604         * lib/stdlib.in.h: Likewise.
50605         * lib/stpcpy.c: Likewise.
50606         * lib/stpncpy.c: Likewise.
50607         * lib/strchrnul.c: Likewise.
50608         * lib/strcspn.c: Likewise.
50609         * lib/strerror.c: Likewise.
50610         * lib/strftime.c: Likewise.
50611         * lib/strftime.h: Likewise.
50612         * lib/striconveh.c: Likewise.
50613         * lib/striconveh.h: Likewise.
50614         * lib/striconveha.c: Likewise.
50615         * lib/striconveha.h: Likewise.
50616         * lib/stripslash.c: Likewise.
50617         * lib/strnlen1.c: Likewise.
50618         * lib/strnlen1.h: Likewise.
50619         * lib/strtod.c: Likewise.
50620         * lib/strtoimax.c: Likewise.
50621         * lib/strtok_r.c: Likewise.
50622         * lib/strtol.c: Likewise.
50623         * lib/strtoll.c: Likewise.
50624         * lib/strtoul.c: Likewise.
50625         * lib/strtoull.c: Likewise.
50626         * lib/sysexits.in.h: Likewise.
50627         * lib/tempname.c: Likewise.
50628         * lib/tempname.h: Likewise.
50629         * lib/timespec.h: Likewise.
50630         * lib/tls.c: Likewise.
50631         * lib/tls.h: Likewise.
50632         * lib/tmpdir.c: Likewise.
50633         * lib/tmpdir.h: Likewise.
50634         * lib/tmpfile-safer.c: Likewise.
50635         * lib/tmpfile.c: Likewise.
50636         * lib/trigl.c: Likewise.
50637         * lib/trigl.h: Likewise.
50638         * lib/trim.c: Likewise.
50639         * lib/trim.h: Likewise.
50640         * lib/trunc.c: Likewise.
50641         * lib/truncf.c: Likewise.
50642         * lib/truncl.c: Likewise.
50643         * lib/tsearch.c: Likewise.
50644         * lib/unicodeio.c: Likewise.
50645         * lib/unicodeio.h: Likewise.
50646         * lib/unistd--.h: Likewise.
50647         * lib/unistd-safer.h: Likewise.
50648         * lib/unistdio/ulc-fprintf.c: Likewise.
50649         * lib/unistdio/ulc-vfprintf.c: Likewise.
50650         * lib/unlinkdir.c: Likewise.
50651         * lib/unlinkdir.h: Likewise.
50652         * lib/unlocked-io.h: Likewise.
50653         * lib/unsetenv.c: Likewise.
50654         * lib/userspec.c: Likewise.
50655         * lib/utime.c: Likewise.
50656         * lib/utimecmp.c: Likewise.
50657         * lib/utimecmp.h: Likewise.
50658         * lib/utimens.c: Likewise.
50659         * lib/verify.h: Likewise.
50660         * lib/verror.c: Likewise.
50661         * lib/verror.h: Likewise.
50662         * lib/version-etc-fsf.c: Likewise.
50663         * lib/version-etc.c: Likewise.
50664         * lib/version-etc.h: Likewise.
50665         * lib/vfprintf.c: Likewise.
50666         * lib/vprintf.c: Likewise.
50667         * lib/vsprintf.c: Likewise.
50668         * lib/w32spawn.h: Likewise.
50669         * lib/wait-process.c: Likewise.
50670         * lib/wait-process.h: Likewise.
50671         * lib/wcwidth.c: Likewise.
50672         * lib/write-any-file.c: Likewise.
50673         * lib/xalloc-die.c: Likewise.
50674         * lib/xalloc.h: Likewise.
50675         * lib/xasprintf.c: Likewise.
50676         * lib/xgetcwd.c: Likewise.
50677         * lib/xgetcwd.h: Likewise.
50678         * lib/xgetdomainname.c: Likewise.
50679         * lib/xgetdomainname.h: Likewise.
50680         * lib/xgethostname.c: Likewise.
50681         * lib/xmalloc.c: Likewise.
50682         * lib/xmalloca.c: Likewise.
50683         * lib/xmalloca.h: Likewise.
50684         * lib/xmemcoll.c: Likewise.
50685         * lib/xnanosleep.c: Likewise.
50686         * lib/xreadlink.c: Likewise.
50687         * lib/xreadlink.h: Likewise.
50688         * lib/xsetenv.c: Likewise.
50689         * lib/xsetenv.h: Likewise.
50690         * lib/xstriconv.c: Likewise.
50691         * lib/xstriconv.h: Likewise.
50692         * lib/xstrndup.c: Likewise.
50693         * lib/xstrndup.h: Likewise.
50694         * lib/xstrtod.c: Likewise.
50695         * lib/xstrtod.h: Likewise.
50696         * lib/xstrtol-error.c: Likewise.
50697         * lib/xstrtol.c: Likewise.
50698         * lib/xstrtol.h: Likewise.
50699         * lib/xtime.h: Likewise.
50700         * lib/xvasprintf.c: Likewise.
50701         * lib/xvasprintf.h: Likewise.
50702         * lib/yesno.c: Likewise.
50703         * lib/yesno.h: Likewise.
50704         * posix-modules: Likewise.
50705         * tests/test-alloca-opt.c: Likewise.
50706         * tests/test-arcfour.c: Likewise.
50707         * tests/test-arctwo.c: Likewise.
50708         * tests/test-argmatch.c: Likewise.
50709         * tests/test-argp-2.sh: Likewise.
50710         * tests/test-argp.c: Likewise.
50711         * tests/test-arpa_inet.c: Likewise.
50712         * tests/test-array_list.c: Likewise.
50713         * tests/test-array_oset.c: Likewise.
50714         * tests/test-atexit.c: Likewise.
50715         * tests/test-avltree_list.c: Likewise.
50716         * tests/test-avltree_oset.c: Likewise.
50717         * tests/test-avltreehash_list.c: Likewise.
50718         * tests/test-base64.c: Likewise.
50719         * tests/test-binary-io.c: Likewise.
50720         * tests/test-byteswap.c: Likewise.
50721         * tests/test-c-ctype.c: Likewise.
50722         * tests/test-c-strcasecmp.c: Likewise.
50723         * tests/test-c-strcasestr.c: Likewise.
50724         * tests/test-c-strncasecmp.c: Likewise.
50725         * tests/test-c-strstr.c: Likewise.
50726         * tests/test-canonicalize-lgpl.c: Likewise.
50727         * tests/test-canonicalize.c: Likewise.
50728         * tests/test-carray_list.c: Likewise.
50729         * tests/test-ceilf.c: Likewise.
50730         * tests/test-ceill.c: Likewise.
50731         * tests/test-count-one-bits.c: Likewise.
50732         * tests/test-crc.c: Likewise.
50733         * tests/test-dirname.c: Likewise.
50734         * tests/test-fbufmode.c: Likewise.
50735         * tests/test-fcntl.c: Likewise.
50736         * tests/test-fflush.c: Likewise.
50737         * tests/test-floorf.c: Likewise.
50738         * tests/test-floorl.c: Likewise.
50739         * tests/test-fopen.c: Likewise.
50740         * tests/test-fprintf-posix.c: Likewise.
50741         * tests/test-fprintf-posix.h: Likewise.
50742         * tests/test-fpurge.c: Likewise.
50743         * tests/test-freadable.c: Likewise.
50744         * tests/test-freadahead.c: Likewise.
50745         * tests/test-freading.c: Likewise.
50746         * tests/test-freopen.c: Likewise.
50747         * tests/test-frexp.c: Likewise.
50748         * tests/test-frexpl.c: Likewise.
50749         * tests/test-fseek.c: Likewise.
50750         * tests/test-fseeko.c: Likewise.
50751         * tests/test-fseterr.c: Likewise.
50752         * tests/test-fstrcmp.c: Likewise.
50753         * tests/test-ftell.c: Likewise.
50754         * tests/test-ftello.c: Likewise.
50755         * tests/test-fwritable.c: Likewise.
50756         * tests/test-fwriting.c: Likewise.
50757         * tests/test-getaddrinfo.c: Likewise.
50758         * tests/test-getpass.c: Likewise.
50759         * tests/test-gettimeofday.c: Likewise.
50760         * tests/test-hmac-md5.c: Likewise.
50761         * tests/test-hmac-sha1.c: Likewise.
50762         * tests/test-iconv.c: Likewise.
50763         * tests/test-iconvme.c: Likewise.
50764         * tests/test-inttypes.c: Likewise.
50765         * tests/test-isnan.c: Likewise.
50766         * tests/test-isnanf.c: Likewise.
50767         * tests/test-isnanl-nolibm.c: Likewise.
50768         * tests/test-isnanl.c: Likewise.
50769         * tests/test-isnanl.h: Likewise.
50770         * tests/test-ldexpl.c: Likewise.
50771         * tests/test-linked_list.c: Likewise.
50772         * tests/test-linkedhash_list.c: Likewise.
50773         * tests/test-locale.c: Likewise.
50774         * tests/test-localename.c: Likewise.
50775         * tests/test-lock.c: Likewise.
50776         * tests/test-lseek.c: Likewise.
50777         * tests/test-malloca.c: Likewise.
50778         * tests/test-math.c: Likewise.
50779         * tests/test-mbscasecmp.c: Likewise.
50780         * tests/test-mbscasestr1.c: Likewise.
50781         * tests/test-mbscasestr2.c: Likewise.
50782         * tests/test-mbscasestr3.c: Likewise.
50783         * tests/test-mbscasestr4.c: Likewise.
50784         * tests/test-mbschr.c: Likewise.
50785         * tests/test-mbscspn.c: Likewise.
50786         * tests/test-mbsncasecmp.c: Likewise.
50787         * tests/test-mbspbrk.c: Likewise.
50788         * tests/test-mbspcasecmp.c: Likewise.
50789         * tests/test-mbsrchr.c: Likewise.
50790         * tests/test-mbsspn.c: Likewise.
50791         * tests/test-mbsstr1.c: Likewise.
50792         * tests/test-mbsstr2.c: Likewise.
50793         * tests/test-mbsstr3.c: Likewise.
50794         * tests/test-md5.c: Likewise.
50795         * tests/test-memmem.c: Likewise.
50796         * tests/test-netinet_in.c: Likewise.
50797         * tests/test-open.c: Likewise.
50798         * tests/test-printf-frexp.c: Likewise.
50799         * tests/test-printf-frexpl.c: Likewise.
50800         * tests/test-printf-posix.c: Likewise.
50801         * tests/test-printf-posix.h: Likewise.
50802         * tests/test-rbtree_list.c: Likewise.
50803         * tests/test-rbtree_oset.c: Likewise.
50804         * tests/test-rbtreehash_list.c: Likewise.
50805         * tests/test-read-file.c: Likewise.
50806         * tests/test-rijndael.c: Likewise.
50807         * tests/test-search.c: Likewise.
50808         * tests/test-signbit.c: Likewise.
50809         * tests/test-sleep.c: Likewise.
50810         * tests/test-snprintf-posix.c: Likewise.
50811         * tests/test-snprintf-posix.h: Likewise.
50812         * tests/test-snprintf.c: Likewise.
50813         * tests/test-sprintf-posix.c: Likewise.
50814         * tests/test-sprintf-posix.h: Likewise.
50815         * tests/test-stat-time.c: Likewise.
50816         * tests/test-stdbool.c: Likewise.
50817         * tests/test-stdint.c: Likewise.
50818         * tests/test-stdio.c: Likewise.
50819         * tests/test-stdlib.c: Likewise.
50820         * tests/test-stpncpy.c: Likewise.
50821         * tests/test-strcasestr.c: Likewise.
50822         * tests/test-striconv.c: Likewise.
50823         * tests/test-striconveh.c: Likewise.
50824         * tests/test-striconveha.c: Likewise.
50825         * tests/test-string.c: Likewise.
50826         * tests/test-sys_select.c: Likewise.
50827         * tests/test-sys_socket.c: Likewise.
50828         * tests/test-sys_stat.c: Likewise.
50829         * tests/test-sys_time.c: Likewise.
50830         * tests/test-sysexits.c: Likewise.
50831         * tests/test-time.c: Likewise.
50832         * tests/test-tls.c: Likewise.
50833         * tests/test-trunc.c: Likewise.
50834         * tests/test-truncf.c: Likewise.
50835         * tests/test-truncl.c: Likewise.
50836         * tests/test-unistd.c: Likewise.
50837         * tests/test-vasnprintf-posix.c: Likewise.
50838         * tests/test-vasnprintf-posix2.c: Likewise.
50839         * tests/test-vasnprintf.c: Likewise.
50840         * tests/test-vasprintf-posix.c: Likewise.
50841         * tests/test-vasprintf.c: Likewise.
50842         * tests/test-verify.c: Likewise.
50843         * tests/test-vfprintf-posix.c: Likewise.
50844         * tests/test-vprintf-posix.c: Likewise.
50845         * tests/test-vsnprintf-posix.c: Likewise.
50846         * tests/test-vsnprintf.c: Likewise.
50847         * tests/test-vsprintf-posix.c: Likewise.
50848         * tests/test-wchar.c: Likewise.
50849         * tests/test-wctype.c: Likewise.
50850         * tests/test-wcwidth.c: Likewise.
50851         * tests/test-xstrtol.c: Likewise.
50852         * tests/test-xvasprintf.c: Likewise.
50853         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
50854         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
50855         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
50856         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
50857         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
50858         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
50859         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
50860         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
50861         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
50862         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
50863         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
50864         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
50865         * tests/uniname/test-uninames.c: Likewise.
50866         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
50867         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
50868         * tests/unistdio/test-u16-printf1.h: Likewise.
50869         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
50870         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
50871         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
50872         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
50873         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
50874         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
50875         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
50876         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
50877         * tests/unistdio/test-u32-printf1.h: Likewise.
50878         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
50879         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
50880         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
50881         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
50882         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
50883         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
50884         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
50885         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
50886         * tests/unistdio/test-u8-printf1.h: Likewise.
50887         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
50888         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
50889         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
50890         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
50891         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
50892         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
50893         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
50894         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
50895         * tests/unistdio/test-ulc-printf1.h: Likewise.
50896         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
50897         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
50898         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
50899         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
50900         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
50901         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
50902         * tests/uniwidth/test-u16-strwidth.c: Likewise.
50903         * tests/uniwidth/test-u16-width.c: Likewise.
50904         * tests/uniwidth/test-u32-strwidth.c: Likewise.
50905         * tests/uniwidth/test-u32-width.c: Likewise.
50906         * tests/uniwidth/test-u8-strwidth.c: Likewise.
50907         * tests/uniwidth/test-u8-width.c: Likewise.
50908         * tests/uniwidth/test-uc_width.c: Likewise.
50909         * config/srclist-update: Likewise.
50910         (fixlicense): Update to GPLv3+.
50911
50912         Change copyright notice from LGPLv2.1+ to LGPLv3+.
50913         * tests/test-tsearch.c: Change copyright notice.
50914
50915         Change copyright notice from LGPLv2.0+ to LGPLv3+.
50916         * lib/c-strcaseeq.h: Change copyright notice.
50917         * lib/streq.h: Likewise.
50918         * lib/uniconv.h: Likewise.
50919         * lib/uniconv/u-conv-from-enc.h: Likewise.
50920         * lib/uniconv/u-conv-to-enc.h: Likewise.
50921         * lib/uniconv/u-strconv-from-enc.h: Likewise.
50922         * lib/uniconv/u-strconv-to-enc.h: Likewise.
50923         * lib/uniconv/u16-conv-from-enc.c: Likewise.
50924         * lib/uniconv/u16-conv-to-enc.c: Likewise.
50925         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
50926         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
50927         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
50928         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
50929         * lib/uniconv/u32-conv-from-enc.c: Likewise.
50930         * lib/uniconv/u32-conv-to-enc.c: Likewise.
50931         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
50932         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
50933         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
50934         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
50935         * lib/uniconv/u8-conv-from-enc.c: Likewise.
50936         * lib/uniconv/u8-conv-to-enc.c: Likewise.
50937         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
50938         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
50939         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
50940         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
50941         * lib/uniname.h: Likewise.
50942         * lib/uniname/uniname.c: Likewise.
50943         * lib/unistdio.h: Likewise.
50944         * lib/unistdio/u-asnprintf.h: Likewise.
50945         * lib/unistdio/u-asprintf.h: Likewise.
50946         * lib/unistdio/u-printf-args.c: Likewise.
50947         * lib/unistdio/u-printf-args.h: Likewise.
50948         * lib/unistdio/u-printf-parse.h: Likewise.
50949         * lib/unistdio/u-snprintf.h: Likewise.
50950         * lib/unistdio/u-sprintf.h: Likewise.
50951         * lib/unistdio/u-vasprintf.h: Likewise.
50952         * lib/unistdio/u-vsnprintf.h: Likewise.
50953         * lib/unistdio/u-vsprintf.h: Likewise.
50954         * lib/unistdio/u16-asnprintf.c: Likewise.
50955         * lib/unistdio/u16-asprintf.c: Likewise.
50956         * lib/unistdio/u16-printf-parse.c: Likewise.
50957         * lib/unistdio/u16-snprintf.c: Likewise.
50958         * lib/unistdio/u16-sprintf.c: Likewise.
50959         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
50960         * lib/unistdio/u16-u16-asprintf.c: Likewise.
50961         * lib/unistdio/u16-u16-snprintf.c: Likewise.
50962         * lib/unistdio/u16-u16-sprintf.c: Likewise.
50963         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
50964         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
50965         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
50966         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
50967         * lib/unistdio/u16-vasnprintf.c: Likewise.
50968         * lib/unistdio/u16-vasprintf.c: Likewise.
50969         * lib/unistdio/u16-vsnprintf.c: Likewise.
50970         * lib/unistdio/u16-vsprintf.c: Likewise.
50971         * lib/unistdio/u32-asnprintf.c: Likewise.
50972         * lib/unistdio/u32-asprintf.c: Likewise.
50973         * lib/unistdio/u32-printf-parse.c: Likewise.
50974         * lib/unistdio/u32-snprintf.c: Likewise.
50975         * lib/unistdio/u32-sprintf.c: Likewise.
50976         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
50977         * lib/unistdio/u32-u32-asprintf.c: Likewise.
50978         * lib/unistdio/u32-u32-snprintf.c: Likewise.
50979         * lib/unistdio/u32-u32-sprintf.c: Likewise.
50980         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
50981         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
50982         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
50983         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
50984         * lib/unistdio/u32-vasnprintf.c: Likewise.
50985         * lib/unistdio/u32-vasprintf.c: Likewise.
50986         * lib/unistdio/u32-vsnprintf.c: Likewise.
50987         * lib/unistdio/u32-vsprintf.c: Likewise.
50988         * lib/unistdio/u8-asnprintf.c: Likewise.
50989         * lib/unistdio/u8-asprintf.c: Likewise.
50990         * lib/unistdio/u8-printf-parse.c: Likewise.
50991         * lib/unistdio/u8-snprintf.c: Likewise.
50992         * lib/unistdio/u8-sprintf.c: Likewise.
50993         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
50994         * lib/unistdio/u8-u8-asprintf.c: Likewise.
50995         * lib/unistdio/u8-u8-snprintf.c: Likewise.
50996         * lib/unistdio/u8-u8-sprintf.c: Likewise.
50997         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
50998         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
50999         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
51000         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
51001         * lib/unistdio/u8-vasnprintf.c: Likewise.
51002         * lib/unistdio/u8-vasprintf.c: Likewise.
51003         * lib/unistdio/u8-vsnprintf.c: Likewise.
51004         * lib/unistdio/u8-vsprintf.c: Likewise.
51005         * lib/unistdio/ulc-asnprintf.c: Likewise.
51006         * lib/unistdio/ulc-asprintf.c: Likewise.
51007         * lib/unistdio/ulc-printf-parse.c: Likewise.
51008         * lib/unistdio/ulc-snprintf.c: Likewise.
51009         * lib/unistdio/ulc-sprintf.c: Likewise.
51010         * lib/unistdio/ulc-vasnprintf.c: Likewise.
51011         * lib/unistdio/ulc-vasprintf.c: Likewise.
51012         * lib/unistdio/ulc-vsnprintf.c: Likewise.
51013         * lib/unistdio/ulc-vsprintf.c: Likewise.
51014         * lib/unistr.h: Likewise.
51015         * lib/unistr/u-cpy-alloc.h: Likewise.
51016         * lib/unistr/u-cpy.h: Likewise.
51017         * lib/unistr/u-endswith.h: Likewise.
51018         * lib/unistr/u-move.h: Likewise.
51019         * lib/unistr/u-set.h: Likewise.
51020         * lib/unistr/u-startswith.h: Likewise.
51021         * lib/unistr/u-stpcpy.h: Likewise.
51022         * lib/unistr/u-stpncpy.h: Likewise.
51023         * lib/unistr/u-strcat.h: Likewise.
51024         * lib/unistr/u-strcpy.h: Likewise.
51025         * lib/unistr/u-strcspn.h: Likewise.
51026         * lib/unistr/u-strdup.h: Likewise.
51027         * lib/unistr/u-strlen.h: Likewise.
51028         * lib/unistr/u-strncat.h: Likewise.
51029         * lib/unistr/u-strncpy.h: Likewise.
51030         * lib/unistr/u-strnlen.h: Likewise.
51031         * lib/unistr/u-strpbrk.h: Likewise.
51032         * lib/unistr/u-strspn.h: Likewise.
51033         * lib/unistr/u-strstr.h: Likewise.
51034         * lib/unistr/u-strtok.h: Likewise.
51035         * lib/unistr/u16-check.c: Likewise.
51036         * lib/unistr/u16-chr.c: Likewise.
51037         * lib/unistr/u16-cmp.c: Likewise.
51038         * lib/unistr/u16-cpy-alloc.c: Likewise.
51039         * lib/unistr/u16-cpy.c: Likewise.
51040         * lib/unistr/u16-endswith.c: Likewise.
51041         * lib/unistr/u16-mblen.c: Likewise.
51042         * lib/unistr/u16-mbsnlen.c: Likewise.
51043         * lib/unistr/u16-mbtouc-aux.c: Likewise.
51044         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
51045         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
51046         * lib/unistr/u16-mbtouc.c: Likewise.
51047         * lib/unistr/u16-mbtoucr.c: Likewise.
51048         * lib/unistr/u16-move.c: Likewise.
51049         * lib/unistr/u16-next.c: Likewise.
51050         * lib/unistr/u16-prev.c: Likewise.
51051         * lib/unistr/u16-set.c: Likewise.
51052         * lib/unistr/u16-startswith.c: Likewise.
51053         * lib/unistr/u16-stpcpy.c: Likewise.
51054         * lib/unistr/u16-stpncpy.c: Likewise.
51055         * lib/unistr/u16-strcat.c: Likewise.
51056         * lib/unistr/u16-strchr.c: Likewise.
51057         * lib/unistr/u16-strcmp.c: Likewise.
51058         * lib/unistr/u16-strcpy.c: Likewise.
51059         * lib/unistr/u16-strcspn.c: Likewise.
51060         * lib/unistr/u16-strdup.c: Likewise.
51061         * lib/unistr/u16-strlen.c: Likewise.
51062         * lib/unistr/u16-strmblen.c: Likewise.
51063         * lib/unistr/u16-strmbtouc.c: Likewise.
51064         * lib/unistr/u16-strncat.c: Likewise.
51065         * lib/unistr/u16-strncmp.c: Likewise.
51066         * lib/unistr/u16-strncpy.c: Likewise.
51067         * lib/unistr/u16-strnlen.c: Likewise.
51068         * lib/unistr/u16-strpbrk.c: Likewise.
51069         * lib/unistr/u16-strrchr.c: Likewise.
51070         * lib/unistr/u16-strspn.c: Likewise.
51071         * lib/unistr/u16-strstr.c: Likewise.
51072         * lib/unistr/u16-strtok.c: Likewise.
51073         * lib/unistr/u16-to-u32.c: Likewise.
51074         * lib/unistr/u16-to-u8.c: Likewise.
51075         * lib/unistr/u16-uctomb-aux.c: Likewise.
51076         * lib/unistr/u16-uctomb.c: Likewise.
51077         * lib/unistr/u32-check.c: Likewise.
51078         * lib/unistr/u32-chr.c: Likewise.
51079         * lib/unistr/u32-cmp.c: Likewise.
51080         * lib/unistr/u32-cpy-alloc.c: Likewise.
51081         * lib/unistr/u32-cpy.c: Likewise.
51082         * lib/unistr/u32-endswith.c: Likewise.
51083         * lib/unistr/u32-mblen.c: Likewise.
51084         * lib/unistr/u32-mbsnlen.c: Likewise.
51085         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
51086         * lib/unistr/u32-mbtouc.c: Likewise.
51087         * lib/unistr/u32-mbtoucr.c: Likewise.
51088         * lib/unistr/u32-move.c: Likewise.
51089         * lib/unistr/u32-next.c: Likewise.
51090         * lib/unistr/u32-prev.c: Likewise.
51091         * lib/unistr/u32-set.c: Likewise.
51092         * lib/unistr/u32-startswith.c: Likewise.
51093         * lib/unistr/u32-stpcpy.c: Likewise.
51094         * lib/unistr/u32-stpncpy.c: Likewise.
51095         * lib/unistr/u32-strcat.c: Likewise.
51096         * lib/unistr/u32-strchr.c: Likewise.
51097         * lib/unistr/u32-strcmp.c: Likewise.
51098         * lib/unistr/u32-strcpy.c: Likewise.
51099         * lib/unistr/u32-strcspn.c: Likewise.
51100         * lib/unistr/u32-strdup.c: Likewise.
51101         * lib/unistr/u32-strlen.c: Likewise.
51102         * lib/unistr/u32-strmblen.c: Likewise.
51103         * lib/unistr/u32-strmbtouc.c: Likewise.
51104         * lib/unistr/u32-strncat.c: Likewise.
51105         * lib/unistr/u32-strncmp.c: Likewise.
51106         * lib/unistr/u32-strncpy.c: Likewise.
51107         * lib/unistr/u32-strnlen.c: Likewise.
51108         * lib/unistr/u32-strpbrk.c: Likewise.
51109         * lib/unistr/u32-strrchr.c: Likewise.
51110         * lib/unistr/u32-strspn.c: Likewise.
51111         * lib/unistr/u32-strstr.c: Likewise.
51112         * lib/unistr/u32-strtok.c: Likewise.
51113         * lib/unistr/u32-to-u16.c: Likewise.
51114         * lib/unistr/u32-to-u8.c: Likewise.
51115         * lib/unistr/u32-uctomb.c: Likewise.
51116         * lib/unistr/u8-check.c: Likewise.
51117         * lib/unistr/u8-chr.c: Likewise.
51118         * lib/unistr/u8-cmp.c: Likewise.
51119         * lib/unistr/u8-cpy-alloc.c: Likewise.
51120         * lib/unistr/u8-cpy.c: Likewise.
51121         * lib/unistr/u8-endswith.c: Likewise.
51122         * lib/unistr/u8-mblen.c: Likewise.
51123         * lib/unistr/u8-mbsnlen.c: Likewise.
51124         * lib/unistr/u8-mbtouc-aux.c: Likewise.
51125         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
51126         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
51127         * lib/unistr/u8-mbtouc.c: Likewise.
51128         * lib/unistr/u8-mbtoucr.c: Likewise.
51129         * lib/unistr/u8-move.c: Likewise.
51130         * lib/unistr/u8-next.c: Likewise.
51131         * lib/unistr/u8-prev.c: Likewise.
51132         * lib/unistr/u8-set.c: Likewise.
51133         * lib/unistr/u8-startswith.c: Likewise.
51134         * lib/unistr/u8-stpcpy.c: Likewise.
51135         * lib/unistr/u8-stpncpy.c: Likewise.
51136         * lib/unistr/u8-strcat.c: Likewise.
51137         * lib/unistr/u8-strchr.c: Likewise.
51138         * lib/unistr/u8-strcmp.c: Likewise.
51139         * lib/unistr/u8-strcpy.c: Likewise.
51140         * lib/unistr/u8-strcspn.c: Likewise.
51141         * lib/unistr/u8-strdup.c: Likewise.
51142         * lib/unistr/u8-strlen.c: Likewise.
51143         * lib/unistr/u8-strmblen.c: Likewise.
51144         * lib/unistr/u8-strmbtouc.c: Likewise.
51145         * lib/unistr/u8-strncat.c: Likewise.
51146         * lib/unistr/u8-strncmp.c: Likewise.
51147         * lib/unistr/u8-strncpy.c: Likewise.
51148         * lib/unistr/u8-strnlen.c: Likewise.
51149         * lib/unistr/u8-strpbrk.c: Likewise.
51150         * lib/unistr/u8-strrchr.c: Likewise.
51151         * lib/unistr/u8-strspn.c: Likewise.
51152         * lib/unistr/u8-strstr.c: Likewise.
51153         * lib/unistr/u8-strtok.c: Likewise.
51154         * lib/unistr/u8-to-u16.c: Likewise.
51155         * lib/unistr/u8-to-u32.c: Likewise.
51156         * lib/unistr/u8-uctomb-aux.c: Likewise.
51157         * lib/unistr/u8-uctomb.c: Likewise.
51158         * lib/unitypes.h: Likewise.
51159         * lib/uniwidth.h: Likewise.
51160         * lib/uniwidth/cjk.h: Likewise.
51161         * lib/uniwidth/u16-strwidth.c: Likewise.
51162         * lib/uniwidth/u16-width.c: Likewise.
51163         * lib/uniwidth/u32-strwidth.c: Likewise.
51164         * lib/uniwidth/u32-width.c: Likewise.
51165         * lib/uniwidth/u8-strwidth.c: Likewise.
51166         * lib/uniwidth/u8-width.c: Likewise.
51167         * lib/uniwidth/width.c: Likewise.
51168
51169 2007-10-07  Bruno Haible  <bruno@clisp.org>
51170
51171         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
51172         The file is still under LGPL (see modules/inttypes).
51173
51174 2007-10-06  Bruno Haible  <bruno@clisp.org>
51175
51176         * modules/trunc (Dependencies): Add 'extensions'.
51177         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
51178         Reported by Ben Pfaff <blp@gnu.org>.
51179
51180 2007-10-06  Bruno Haible  <bruno@clisp.org>
51181
51182         * modules/freopen-tests: New file.
51183         * tests/test-freopen.c: New file.
51184
51185         * modules/fopen-tests: New file.
51186         * tests/test-fopen.c: New file.
51187
51188         * modules/fopen: New file.
51189         * lib/fopen.c: New file.
51190         * m4/fopen.m4: New file.
51191         * modules/freopen: New file.
51192         * lib/freopen.c: New file.
51193         * m4/freopen.m4: New file.
51194         * lib/stdio.in.h (fopen, freopen): New declarations.
51195         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
51196         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
51197         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
51198         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
51199         * doc/functions/fopen.texi: Mention the 'fopen' module.
51200         * doc/functions/freopen.texi: Mention the 'freopen' module.
51201
51202 2007-10-06  Bruno Haible  <bruno@clisp.org>
51203
51204         * modules/open-tests: New file.
51205         * tests/test-open.c: New file.
51206
51207         * modules/open: New file.
51208         * lib/open.c: New file.
51209         * m4/open.m4: New file.
51210         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
51211         lib/open.c does.
51212         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
51213         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
51214         macros.
51215         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
51216         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
51217         REPLACE_OPEN.
51218         * doc/functions/open.texi: Mention the 'open' module.
51219
51220 2007-10-04  Bruno Haible  <bruno@clisp.org>
51221
51222         * modules/ceill-tests: New file.
51223         * tests/test-ceill.c: New file.
51224
51225         * modules/ceill: New file.
51226         * lib/ceill.c: Replace entire file.
51227         * m4/ceill.m4: New file.
51228         * lib/math.in.h (ceill): Replace declaration.
51229         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
51230         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
51231         * doc/functions/ceill.texi: Mention the 'ceill' module.
51232         * modules/mathl (Files): Remove lib/ceill.c.
51233         (Depends-on): Add ceill.
51234
51235 2007-10-04  Bruno Haible  <bruno@clisp.org>
51236
51237         * modules/ceilf-tests: New file.
51238         * tests/test-ceilf.c: New file.
51239
51240         * modules/ceilf: New file.
51241         * lib/ceil.c: New file.
51242         * lib/ceilf.c: New file.
51243         * m4/ceilf.m4: New file.
51244         * lib/math.in.h (ceilf): New declaration.
51245         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
51246         HAVE_DECL_CEILF.
51247         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
51248         HAVE_DECL_CEILF.
51249         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
51250
51251 2007-10-04  Bruno Haible  <bruno@clisp.org>
51252
51253         * modules/floorl-tests: New file.
51254         * tests/test-floorl.c: New file.
51255
51256         * modules/floorl: New file.
51257         * lib/floorl.c: Replace entire file.
51258         * m4/floorl.m4: New file.
51259         * lib/math.in.h (floorl): Replace declaration.
51260         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
51261         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
51262         * doc/functions/floorl.texi: Mention the 'floorl' module.
51263         * modules/mathl (Files): Remove lib/floorl.c.
51264         (Depends-on): Add floorl.
51265
51266 2007-10-04  Bruno Haible  <bruno@clisp.org>
51267
51268         * modules/floorf-tests: New file.
51269         * tests/test-floorf.c: New file.
51270
51271         * modules/floorf: New file.
51272         * lib/floor.c: New file.
51273         * lib/floorf.c: New file.
51274         * m4/floorf.m4: New file.
51275         * lib/math.in.h (floorf): New declaration.
51276         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
51277         HAVE_DECL_FLOORF.
51278         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
51279         HAVE_DECL_FLOORF.
51280         * doc/functions/floorf.texi: Mention the 'floorf' module.
51281
51282 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
51283             Bruno Haible  <bruno@clisp.org>
51284
51285         Advertise for the Git server instead of the CVS server.
51286         * doc/gnulib-intro.texi (Steady Development): Mention the Git
51287         repository instead of the CVS one.
51288         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
51289         about all VCS systems generically.
51290         * doc/gnulib.texi (Introduction): Capitalize `Git'.
51291
51292 2007-10-04  Bruno Haible  <bruno@clisp.org>
51293
51294         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
51295         means.
51296         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
51297
51298 2007-10-04  Bruno Haible  <bruno@clisp.org>
51299
51300         * modules/truncl-tests: New file.
51301         * tests/test-truncl.c: New file.
51302
51303         * modules/truncl: New file.
51304         * lib/truncl.c: New file.
51305         * m4/truncl.m4: New file.
51306         * lib/math.in.h (truncl): New declaration.
51307         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
51308         HAVE_DECL_TRUNCL.
51309         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
51310         HAVE_DECL_TRUNCL.
51311         * doc/functions/truncl.texi: Mention the 'truncl' module.
51312
51313 2007-10-04  Bruno Haible  <bruno@clisp.org>
51314
51315         * modules/truncf-tests: New file.
51316         * tests/test-truncf.c: New file.
51317
51318         * modules/truncf: New file.
51319         * lib/trunc.c: Make paramerizable through USE_* macros.
51320         * lib/truncf.c: New file.
51321         * m4/truncf.m4: New file.
51322         * lib/math.in.h (truncf): New declaration.
51323         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
51324         HAVE_DECL_TRUNCF.
51325         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
51326         HAVE_DECL_TRUNCF.
51327         * doc/functions/truncf.texi: Mention the 'truncf' module.
51328
51329 2007-10-03  Bruno Haible  <bruno@clisp.org>
51330
51331         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
51332         augmentation also for tests modules.
51333         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
51334         * modules/atexit-tests (Makefile.am): Likewise.
51335         * modules/binary-io-tests (Makefile.am): Likewise.
51336         * modules/c-strcase-tests (Makefile.am): Likewise.
51337         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
51338         * modules/canonicalize-tests (Makefile.am): Likewise.
51339         * modules/closein-tests (Makefile.am): Likewise.
51340         * modules/fprintf-posix-tests (Makefile.am): Likewise.
51341         * modules/freadahead-tests (Makefile.am): Likewise.
51342         * modules/fseek-tests (Makefile.am): Likewise.
51343         * modules/fseeko-tests (Makefile.am): Likewise.
51344         * modules/ftell-tests (Makefile.am): Likewise.
51345         * modules/ftello-tests (Makefile.am): Likewise.
51346         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
51347         * modules/isnanl-tests (Makefile.am): Likewise.
51348         * modules/lseek-tests (Makefile.am): Likewise.
51349         * modules/mbscasecmp-tests (Makefile.am): Likewise.
51350         * modules/mbscasestr-tests (Makefile.am): Likewise.
51351         * modules/mbschr-tests (Makefile.am): Likewise.
51352         * modules/mbscspn-tests (Makefile.am): Likewise.
51353         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
51354         * modules/mbspbrk-tests (Makefile.am): Likewise.
51355         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
51356         * modules/mbsrchr-tests (Makefile.am): Likewise.
51357         * modules/mbsspn-tests (Makefile.am): Likewise.
51358         * modules/mbsstr-tests (Makefile.am): Likewise.
51359         * modules/printf-posix-tests (Makefile.am): Likewise.
51360         * modules/snprintf-posix-tests (Makefile.am): Likewise.
51361         * modules/sprintf-posix-tests (Makefile.am): Likewise.
51362         * modules/tsearch-tests (Makefile.am): Likewise.
51363         * modules/uniname/uniname-tests (Makefile.am): Likewise.
51364         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
51365         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
51366         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
51367         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
51368         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
51369         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
51370         * modules/vprintf-posix-tests (Makefile.am): Likewise.
51371         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
51372         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
51373         * modules/xstrtoimax-tests (Makefile.am): Likewise.
51374         * modules/xstrtol-tests (Makefile.am): Likewise.
51375         * modules/xstrtoumax-tests (Makefile.am): Likewise.
51376         * modules/yesno-tests (Makefile.am): Likewise.
51377
51378 2007-10-03  Bruno Haible  <bruno@clisp.org>
51379
51380         * modules/trunc-tests: New file.
51381         * tests/test-trunc.c: New file.
51382
51383         * modules/trunc: New file.
51384         * lib/trunc.c: New file.
51385         * m4/trunc.m4: New file.
51386         * lib/math.in.h (trunc): New declaration.
51387         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
51388         HAVE_DECL_TRUNC.
51389         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
51390         HAVE_DECL_TRUNC.
51391         * doc/functions/trunc.texi: Mention the 'trunc' module.
51392
51393 2007-10-03  Bruno Haible  <bruno@clisp.org>
51394
51395         * tests/test-fpending.c: New file, mostly copied
51396         from coreutils/lib/t-fpending.c.
51397         * modules/fpending-tests: New file.
51398
51399 2007-10-03  Bruno Haible  <bruno@clisp.org>
51400
51401         Port the stdio extensions to QNX (untested).
51402         * lib/fseterr.c (fseterr): Add support for QNX.
51403         * lib/fbufmode.c (fbufmode): Likewise.
51404         * lib/freadable.c (freadable): Likewise.
51405         * lib/fwritable.c (fwritable): Likewise.
51406         * lib/freading.c (freading): Likewise.
51407         * lib/fwriting.c (fwriting): Likewise.
51408         * lib/freadahead.c (freadahed): Likewise.
51409         * lib/fpurge.c (fpurge): Likewise.
51410         * lib/fseeko.c (rpl_fseeko): Likewise.
51411
51412 2007-10-03  Bruno Haible  <bruno@clisp.org>
51413             Jim Meyering  <jim@meyering.net>
51414             Eric Blake  <ebb9@byu.net>
51415
51416         * doc/relocatable.texi: Use @command instead of @program.
51417
51418 2007-10-02  Jim Meyering  <jim@meyering.net>
51419
51420         Perform one more "_.h" -> ".in.h" substitution.
51421         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
51422         instead of unistd_.h here, too.
51423
51424 2007-10-01  Bruno Haible  <bruno@clisp.org>
51425
51426         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
51427         Needed for the alloca-opt module.
51428
51429 2007-09-30  Bruno Haible  <bruno@clisp.org>
51430
51431         * lib/alloca.in.h: Renamed from lib/alloca_.h.
51432         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
51433         alloca_.h.
51434         * lib/argz.in.h: Renamed from lib/argz_.h.
51435         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
51436         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
51437         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
51438         byteswap_.h.
51439         * lib/dirent.in.h: Renamed from lib/dirent_.h.
51440         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
51441         dirent_.h.
51442         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
51443         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
51444         fcntl_.h.
51445         * lib/float.in.h: Renamed from lib/float_.h.
51446         * modules/float (Files, Makefile.am): Use float.in.h instead of
51447         float_.h.
51448         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
51449         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
51450         fnmatch_.h.
51451         * lib/getopt.in.h: Renamed from lib/getopt_.h.
51452         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
51453         getopt_.h.
51454         * lib/glob.in.h: Renamed from lib/glob_.h.
51455         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
51456         * lib/iconv.in.h: Renamed from lib/iconv_.h.
51457         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
51458         iconv_.h.
51459         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
51460         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
51461         inttypes_.h.
51462         * lib/locale.in.h: Renamed from lib/locale_.h.
51463         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
51464         locale_.h.
51465         * lib/math.in.h: Renamed from lib/math_.h.
51466         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
51467         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
51468         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
51469         of netinet_in_.h. Add dependency.
51470         * lib/poll.in.h: Renamed from lib/poll_.h.
51471         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
51472         * lib/search.in.h: Renamed from lib/search_.h.
51473         * modules/search (Files, Makefile.am): Use search.in.h instead of
51474         search_.h.
51475         * lib/signal.in.h: Renamed from lib/signal_.h.
51476         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
51477         _signal.h.
51478         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
51479         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
51480         stdbool_.h.
51481         * lib/stdint.in.h: Renamed from lib/stdint_.h.
51482         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
51483         stdint_.h.
51484         * lib/stdio.in.h: Renamed from lib/stdio_.h.
51485         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
51486         stdio_.h.
51487         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
51488         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
51489         stdlib_.h.
51490         * lib/string.in.h: Renamed from lib/string_.h.
51491         * modules/string (Files, Makefile.am): Use string.in.h instead of
51492         string_.h.
51493         * doc/gnulib-tool.texi (Initial import): Update.
51494         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
51495         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
51496         of sys_select_.h. Add dependency.
51497         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
51498         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
51499         of sys_socket_.h.
51500         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
51501         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
51502         sys_stat_.h.
51503         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
51504         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
51505         sys_time_.h.
51506         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
51507         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
51508         sysexits_.h.
51509         * lib/time.in.h: Renamed from lib/time_.h.
51510         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
51511         * lib/unistd.in.h: Renamed from lib/unistd_.h.
51512         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
51513         unistd_.h.
51514         * lib/wchar.in.h: Renamed from lib/wchar_.h.
51515         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
51516         wchar_.h.
51517         * lib/wctype.in.h: Renamed from lib/wctype_.h.
51518         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
51519         wctype_.h.
51520         * build-aux/bootstrap (slurp): Update.
51521         * lib/.cppi-disable: Update.
51522
51523 2007-09-30  Bruno Haible  <bruno@clisp.org>
51524
51525         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
51526         Needed on BeOS.
51527
51528 2007-09-30  Bruno Haible  <bruno@clisp.org>
51529
51530         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
51531
51532 2007-09-29  Bruno Haible  <bruno@clisp.org>
51533
51534         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
51535
51536 2007-09-29  Bruno Haible  <bruno@clisp.org>
51537
51538         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
51539         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
51540         * build-aux/install-reloc: Compile also areadlink.c.
51541         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
51542
51543 2007-09-29  Bruno Haible  <bruno@clisp.org>
51544
51545         * gnulib-tool (func_emit_initmacro_done): Indentation.
51546
51547 2007-09-29  Bruno Haible  <bruno@clisp.org>
51548
51549         * README: Add CVS checkout update instructions.
51550         Info from Bob Proulx <bob@proulx.com>.
51551
51552 2007-09-28  Eric Blake  <ebb9@byu.net>
51553
51554         Provide move-if-change.
51555         * build-aux/move-if-change: New file, based on best practice
51556         rather than any canonical upstream location.
51557
51558 2007-09-28  Jim Meyering  <jim@meyering.net>
51559
51560         Fix canonicalize loop-detection corner case.
51561         Do not attempt to stat the symlink values stored via seen_triple.
51562         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
51563         on linux-2.6.18, (but not 2.6.22).
51564         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
51565         triple_compare.  The former compares dev,ino,filename, while the latter
51566         would actually stat dirname(filename) when dev and ino were equal.
51567         * lib/hash-triple.c: Install <string.h>.
51568         (STREQ): Define.
51569         (triple_compare_ino_str): New function.
51570         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
51571
51572 2007-09-28  Eric Blake  <ebb9@byu.net>
51573
51574         Enforce that AC_REPLACE_FUNCS files exist.
51575         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
51576         override check for typos.
51577
51578         Fix test-closein on Solaris 10.
51579         * tests/test-closein.c (main): Don't assume stdin can be inherited
51580         closed on all systems.
51581         * tests/test-closein.sh: Likewise.
51582         Reported by Piotr Tarnowski.
51583
51584 2007-09-28  Jim Meyering  <jim@meyering.net>
51585
51586         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
51587
51588 2007-09-27  Jim Meyering  <jim@meyering.net>
51589
51590         canonicalize: Avoid a false-positive cycle failure.
51591         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
51592         Sort.  Remove cycle-check.
51593         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
51594         not cycle-check.h.
51595         (seen_triple): New function.
51596         (canonicalize_filename_mode): Use it instead of cycle-check.
51597         * tests/test-canonicalize.c: Add a test for this bug.
51598         * tests/test-canonicalize.sh: Set up and run the test.
51599
51600         New module, file-set, from coreutils.
51601         * modules/file-set: Define it.
51602         * lib/file-set.c, lib/file-set.h: Implement.
51603
51604         New module, hash-triple, from coreutils.
51605         * modules/hash-triple: Define it.
51606         * lib/hash-triple.c, lib/hash-triple.h: Implement.
51607
51608 2007-09-25  Eric Blake  <ebb9@byu.net>
51609
51610         Fix strerror on Interix.
51611         * lib/string_.h (strerror): Declare replacement.
51612         * doc/functions/strerror.texi (strerror): Document the Interix
51613         shortcoming.
51614         * modules/string (Makefile.am): Support new hooks.
51615         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
51616         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
51617         gl_FUNC_STRERROR_SEPARATE.
51618         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
51619         * lib/strerror.c (rpl_strerror): Provide replacement.
51620         * modules/strerror (Depends-on): Add string.
51621         (configure.ac): Detect use of module.
51622         * tests/test-strerror.c: New file.
51623         * modules/strerror-tests: New test module.
51624         * modules/argp (Depends-on): Add strerror.
51625         * modules/error (Depends-on): Likewise.
51626         Reported by Martin Koeppe.
51627
51628 2007-09-24  Bruno Haible  <bruno@clisp.org>
51629
51630         * README: Update git instructions.
51631
51632 2007-09-24  Eric Blake  <ebb9@byu.net>
51633
51634         Revert fpending breakage from 2007-09-08.
51635         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
51636         __fpending.c.
51637
51638 2007-09-24  Jim Meyering  <jim@meyering.net>
51639
51640         filenamecat.c: Add a test.
51641         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
51642         showing how the function works when DIR is the empty string.
51643
51644 2007-09-21  Simon Josefsson  <simon@josefsson.org>
51645
51646         * tests/test-canonicalize.sh: Turn on executable bit.
51647
51648 2007-09-19  Eric Blake  <ebb9@byu.net>
51649
51650         * README: Update CVS instructions.
51651
51652 2007-09-18  Bruno Haible  <bruno@clisp.org>
51653
51654         * modules/areadlink: New file.
51655         * lib/areadlink.h (areadlink): New declaration.
51656         * lib/areadlink.c: New file, based on lib/xreadlink.c.
51657
51658 2007-09-17  Jim Meyering  <jim@meyering.net>
51659
51660         * lib/savewd.c (ESTALE) [!defined]: Define.
51661         Reported to be required on Interix by Martin Koeppe.
51662
51663 2007-09-17  Bruno Haible  <bruno@clisp.org>
51664
51665         * gnulib-tool (func_version): Use $version.
51666
51667 2007-09-16  Bruno Haible  <bruno@clisp.org>
51668
51669         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
51670         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
51671         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
51672         Reported by Greg Schafer <gschafer@zip.com.au>.
51673
51674 2007-09-15  Bruno Haible  <bruno@clisp.org>
51675
51676         * gnulib-tool (sed): Try a little harder to make bash understand the
51677         alias.
51678         Reported by Bruce Korb <bruce.korb@gmail.com>.
51679
51680 2007-09-13  Eric Blake  <ebb9@byu.net>
51681
51682         * ChangeLog: Remove conflict markers.
51683
51684 2007-09-13  Simon Josefsson  <simon@josefsson.org>
51685
51686         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
51687         Reported by Bruno Haible <bruno@clisp.org>.
51688
51689 2007-09-12  Bruno Haible  <bruno@clisp.org>
51690
51691         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
51692         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
51693         is not defined.
51694
51695 2007-09-12  Eric Blake  <ebb9@byu.net>
51696
51697         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
51698         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
51699         Autoconf definition.
51700         * modules/euidaccess (Depends-on): Add extensions, for
51701         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
51702         * modules/fnmatch (Depends-on): Likewise.
51703         * modules/getaddrinfo (Depends-on): Likewise.
51704         * modules/getdelim (Depends-on): Likewise.
51705         * modules/getline (Depends-on): Likewise.
51706         * modules/getsubopt (Depends-on): Likewise.
51707         * modules/gettext (Depends-on): Likewise.
51708         * modules/group-member (Depends-on): Likewise.
51709         * modules/mbchar (Depends-on): Likewise.
51710         * modules/memmem (Depends-on): Likewise.
51711         * modules/mempcpy (Depends-on): Likewise.
51712         * modules/memrchr (Depends-on): Likewise.
51713         * modules/pagealign_alloc (Depends-on): Likewise.
51714         * modules/readutmp (Depends-on): Likewise.
51715         * modules/stpcpy (Depends-on): Likewise.
51716         * modules/stpncpy (Depends-on): Likewise.
51717         * modules/strchrnul (Depends-on): Likewise.
51718         * modules/strndup (Depends-on): Likewise.
51719         * modules/strsep (Depends-on): Likewise.
51720         * modules/strverscmp (Depends-on): Likewise.
51721         * modules/vasprintf (Depends-on): Likewise.
51722         * modules/wcwidth (Depends-on): Likewise.
51723         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
51724         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
51725         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
51726         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
51727         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
51728         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
51729         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
51730         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
51731         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
51732         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
51733         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
51734         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
51735         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
51736         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
51737         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
51738         * m4/readutmp.m4 (gl_READUTMP): Likewise.
51739         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
51740         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
51741         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
51742         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
51743         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
51744         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
51745         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
51746         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
51747         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
51748         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
51749         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
51750         so that lock.m4 can be used in gettext without extensions module.
51751
51752 2007-09-11  Bruno Haible  <bruno@clisp.org>
51753
51754         * m4/isc-posix.m4: Remove file.
51755         Suggested by Eric Blake.
51756
51757 2007-09-11  Eric Blake  <ebb9@byu.net>
51758
51759         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
51760
51761 2007-09-10  Bruno Haible  <bruno@clisp.org>
51762
51763         * posix-modules: Fix typo in error message.
51764         Reported by Matt <mkraai@beckman.com>.
51765
51766 2007-09-09  Bruno Haible  <bruno@clisp.org>
51767
51768         * doc/functions/getdelim.texi: Update list of platforms lacking the
51769         function.
51770         * doc/functions/getline.texi: Likewise.
51771
51772 2007-09-09  Jim Meyering  <jim@meyering.net>
51773
51774         * lib/hash.c (hash_initialize): Detect calloc failure.
51775         Reported by Bruno Haible.
51776
51777 2007-09-09  Bruno Haible  <bruno@clisp.org>
51778
51779         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
51780         malloc or realloc fails.
51781
51782 2007-09-09  Bruno Haible  <bruno@clisp.org>
51783
51784         * modules/getcwd (Depends-on): Add malloc-posix.
51785         * modules/glob (Depends-on): Likewise.
51786         * modules/putenv (Depends-on): Likewise.
51787         * modules/strdup (Depends-on): Likewise.
51788         * modules/getdelim (Depends-on): Add realloc-posix.
51789         * modules/read-file (Depends-on): Likewise.
51790
51791 2007-09-09  Bruno Haible  <bruno@clisp.org>
51792
51793         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
51794         (gl_FUNC_MALLOC_POSIX): Require it.
51795         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
51796         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
51797         * modules/realloc (Files): Add m4/malloc.m4.
51798         * modules/calloc (Files): Likewise.
51799
51800 2007-09-09  Bruno Haible  <bruno@clisp.org>
51801
51802         * modules/malloc-posix: New file.
51803         * modules/malloc (Depends-on): Add malloc-posix.
51804         * lib/malloc.c: Include errno.h.
51805         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
51806         and a POSIX-compatible malloc into a single function. Set ENOMEM
51807         when returning NULL.
51808         * m4/malloc.m4: New file.
51809         * doc/functions/malloc.texi: Mention the malloc-posix module.
51810         * lib/stdlib_.h (malloc): New declaration.
51811         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
51812         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
51813         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
51814         and HAVE_MALLOC_POSIX.
51815
51816 2007-09-09  Bruno Haible  <bruno@clisp.org>
51817
51818         * modules/realloc-posix: New file.
51819         * modules/realloc (Depends-on): Add realloc-posix.
51820         * lib/realloc.c: Include errno.h.
51821         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
51822         and a POSIX-compatible realloc into a single function. Set ENOMEM
51823         when returning NULL.
51824         * m4/realloc.m4: New file.
51825         * doc/functions/realloc.texi: Mention the realloc-posix module.
51826         * lib/stdlib_.h (realloc): New declaration.
51827         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
51828         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
51829         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
51830         and HAVE_REALLOC_POSIX.
51831
51832 2007-09-09  Bruno Haible  <bruno@clisp.org>
51833
51834         * modules/calloc-posix: New file.
51835         * modules/calloc (Depends-on): Add calloc-posix.
51836         * lib/calloc.c: Include errno.h.
51837         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
51838         and a POSIX-compatible calloc into a single function. Set ENOMEM
51839         when returning NULL.
51840         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
51841         * doc/functions/calloc.texi: Mention the calloc-posix module.
51842         * lib/stdlib_.h (calloc): New declaration.
51843         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
51844         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
51845         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
51846         and HAVE_CALLOC_POSIX.
51847
51848 2007-09-09  Bruno Haible  <bruno@clisp.org>
51849
51850         Allow for modules to show an arbitrary notice.
51851         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
51852         * gnulib-tool: New option --extract-notice.
51853         (func_usage): Document it.
51854         (sed_extract_prog): Update.
51855         (func_get_notice): New function.
51856         (func_modules_notice): New function.
51857         (func_import, func_create_testdir): Invoke it.
51858         Suggested by Jim Meyering.
51859
51860 2007-09-09  Bruno Haible  <bruno@clisp.org>
51861
51862         * gnulib-tool: New options --verbose, --quiet.
51863         (func_usage): Document them.
51864         (verbose): New variable.
51865         (func_execute_command): New function.
51866         (func_import): Don't show the module list and the file list if
51867         $verbose < 0.
51868         (func_create_testdir): Likewise. Use func_execute_command.
51869         (func_create_megatestdir): Use func_execute_command.
51870
51871 2007-09-08  Bruno Haible  <bruno@clisp.org>
51872
51873         * gnulib-tool (func_import): Prefer rsync over wget when available,
51874         for fetching the PO files.
51875
51876 2007-09-08  Bruno Haible  <bruno@clisp.org>
51877
51878         * posix-modules: New file. Portions copied from gnulib-tool.
51879         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
51880
51881 2007-09-08  Jim Meyering  <jim@meyering.net>
51882
51883         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
51884         * lib/fpending.h: Rename from __fpending.h.
51885         * lib/fpending.c: Rename from __fpending.c.
51886         Include "fpending.h", not "__fpending.h".
51887         * lib/__fpending.h, lib/__fpending.c: Remove files.
51888         * modules/fpending (Files): Reflect new file names.
51889         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
51890
51891 2007-09-08  Bruno Haible  <bruno@clisp.org>
51892
51893         * m4/inttypes-h.m4: Remove stub file.
51894
51895 2007-09-07  Simon Josefsson  <simon@josefsson.org>
51896
51897         * doc/headers/stdint.texi: Discuss #include_next issue.
51898
51899 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
51900
51901         * build-aux/bootstrap: Remove obsolete comment about wget --help.
51902
51903 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51904
51905         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
51906         in variable name.
51907
51908 2007-09-03  Jim Meyering  <jim@meyering.net>
51909
51910         New module: git-version-gen.
51911         * modules/git-version-gen: New file.
51912
51913         Import changes from coreutils for bootstrap script.
51914
51915         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
51916
51917         bootstrap: uses rsync to download the .po files
51918         * build-aux/bootstrap (po_download_command_format): New global.
51919         (download_po_files): Use rsync.
51920         (update_po_files): Don't remove .po files after download,
51921         so future rsync runs can take advantage of the copies.
51922
51923         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
51924
51925         Solve the unnecessary-.po-file-regeneration problem once and for all.
51926         * build-aux/bootstrap (download_po_files): New function, renamed from
51927         get_translations.  Now, downloads, but doesn't update LINGUAS.
51928         (update_po_files): New function.
51929
51930         bootstrap: Ignore more.
51931         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
51932         uniwidth to e.g., lib/.gitignore.
51933         (slurp): Handle the sys_stat_.h -> sys mapping, too.
51934
51935         * build-aux/bootstrap: New setting: vc_ignore.
51936         (insert_sorted_if_absent): Create $file if absent.
51937         Adapt to new, possibly empty, list: $vc_ignore.
51938
51939         bootstrap: generate more ignorable names
51940         * build-aux/bootstrap (slurp): When generating ignorable names,
51941         also map .sin to .sed, .gperf to .c, and .y to .c.
51942
51943 2007-09-03  Jim Meyering  <jim@meyering.net>
51944
51945         * build-aux/git-version-gen: New file, from coreutils.  For details, see
51946         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
51947
51948 2007-09-02  Bruno Haible  <bruno@clisp.org>
51949
51950         Fix mis-recognition of 'mcs' on QNX 6.
51951         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
51952         output contains the string "Mono".
51953         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
51954         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
51955
51956 2007-09-01  Bruno Haible  <bruno@clisp.org>
51957
51958         Fix collision between uniwidth/* and linebreak modules.
51959         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
51960         u32_width): Remove declarations.
51961         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
51962         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
51963         streq3, streq2, streq1, streq0): Remove functions.
51964         (STREQ): Remove macro.
51965         (is_cjk_encoding): Remove function.
51966         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
51967         (uc_width, u8_width, u16_width, u32_width): Remove functions.
51968         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
51969         * NEWS: Document the change.
51970
51971 2007-09-01  Bruno Haible  <bruno@clisp.org>
51972
51973         * lib/streq.h: Add double-inclusion guard.
51974
51975 2007-09-01  Karl Berry  <karl@gnu.org>
51976
51977         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
51978
51979 2007-08-28  Jim Meyering  <jim@meyering.net>
51980
51981         Rename mreadlink_with_size to areadlink_with_size.
51982         * NEWS: Document the change.
51983         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
51984         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
51985         * lib/mreadlink.h: Rename this to...
51986         * lib/areadlink.h: ...this.
51987         * modules/mreadlink-with-size: Rename this to...
51988         * modules/areadlink-with-size: ...this.
51989         * lib/canonicalize.c: Reflect the renaming.
51990         * modules/canonicalize: Likewise.
51991
51992 2007-08-26  Bruno Haible  <bruno@clisp.org>
51993
51994         * gnulib-tool (func_import): When deciding which files to remove,
51995         consider also dangling symbolic links.
51996         Reported by Eric Blake.
51997
51998 2007-08-26  Bruno Haible  <bruno@clisp.org>
51999
52000         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
52001
52002 2007-08-23  Simon Josefsson  <simon@josefsson.org>
52003
52004         * lib/readline.c: Don't include getline.h, the prototype is now
52005         found in stdio.h.
52006
52007 2007-08-23  Jim Meyering  <jim@meyering.net>
52008
52009         Getdelim touchup.
52010         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
52011         around the funlockfile call, since funlockfile never sets errno.
52012         Don't set errno upon failed realloc.
52013
52014 2007-08-22  Eric Blake  <ebb9@byu.net>
52015
52016         Getline touchups.
52017         * lib/getdelim.c (getdelim): Revert regression that required *n to
52018         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
52019         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
52020         getdelim, rather than whether implementation is missing.
52021         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
52022         * lib/stdio_.h (getline): Also declare if replacement is
52023         required.
52024         * doc/functions/getdelim.texi: New file.
52025         * doc/functions/getline.texi: Likewise.
52026         * doc/gnulib.texi (Function Substitutes): Add new files.
52027         Reported by Bruno Haible.
52028
52029 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
52030
52031         * users.txt: Add Guile.
52032
52033 2007-08-22  Eric Blake  <ebb9@byu.net>
52034
52035         * tests/test-getdelim.c (main): Use remove, not unlink.
52036         * tests/test-getline.c (main): Likewise.
52037
52038         Move getline and getdelim into stdio.h, per POSIX 200x.
52039         * modules/getline (Files): Remove getline.h.
52040         (Depends-on): Add stdio.
52041         (configure.ac): Add module indicator.
52042         * modules/getdelim (Files): Remove getdelim.h.
52043         (Depends-on): Add stdio.
52044         (configure.ac): Add module indicator.
52045         * modules/stdio (Makefile.am): Work with new indicators.
52046         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
52047         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
52048         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
52049         * lib/getdelim.h: Delete.
52050         * lib/getline.h: Delete.
52051         * lib/stdio_.h (getdelim, getline): Declare.
52052         * modules/getdelim-tests: New module.
52053         * modules/getline-tests: Likewise.
52054         * tests/test-getdelim.c: New file.
52055         * tests/test-getline.c: Likewise.
52056         * NEWS: Document the change.
52057         * lib/getline.c: Update choice of header.
52058         * lib/csharpcomp.c: Likewise.
52059         * lib/getpass.c: Likewise.
52060         * lib/javacomp.c: Likewise.
52061         * lib/javaversion.c: Likewise.
52062         * lib/yesno.c: Likewise.
52063         * lib/getdelim.c: Likewise.
52064         (getdelim): Set errno on failure, and avoid memory leak.
52065
52066 2007-08-19  Bruno Haible  <bruno@clisp.org>
52067
52068         * modules/closein (Depends-on): Add freadahead.
52069         * lib/closein.c: Include freadahead.h.
52070         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
52071         is zero.
52072
52073 2007-08-19  Bruno Haible  <bruno@clisp.org>
52074
52075         * modules/freadahead-tests: New file.
52076         * tests/test-freadahead.sh: New file.
52077         * tests/test-freadahead.c: New file.
52078
52079         * modules/freadahead: New file.
52080         * lib/freadahead.h: New file.
52081         * lib/freadahead.c: New file.
52082         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
52083         fbufmode, fpurge, freadable, fwritable.
52084
52085 2007-08-19  Eric Blake  <ebb9@byu.net>
52086
52087         Test yesno in combination with closein.
52088         * lib/yesno.c (yesno): Document use of stdin.
52089         * modules/yesno-tests (Files): New module.
52090         * tests/test-yesno.c (main): New file.
52091         * tests/test-yesno.sh: Likewise.
52092
52093 2007-08-19  Bruno Haible  <bruno@clisp.org>
52094
52095         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
52096         * lib/fseeko.c (rpl_fseeko): Likewise.
52097         * lib/fseterr.c (fseterr): Likewise.
52098
52099 2007-08-19  Bruno Haible  <bruno@clisp.org>
52100
52101         * tests/test-lseek.c (main): Disable a test for BeOS.
52102         * doc/functions/lseek.texi: Document the BeOS bug.
52103
52104 2007-08-19  Bruno Haible  <bruno@clisp.org>
52105             Eric Blake  <ebb9@byu.net>
52106
52107         * lib/lseek.c: Include <sys/stat.h>.
52108         (rpl_lseek): Add workaround code also for Unix platforms.
52109         Needed for BeOS.
52110         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
52111         * doc/functions/lseek.texi: Document BeOS definiency.
52112
52113 2007-08-18  Bruno Haible  <bruno@clisp.org>
52114
52115         * modules/fstrcmp-tests: New file.
52116         * tests/test-fstrcmp.c: New file.
52117
52118 2007-08-18  Bruno Haible  <bruno@clisp.org>
52119
52120         * modules/fstrcmp: New file, from GNU gettext with modifications.
52121         * lib/fstrcmp.h: New file, from GNU gettext.
52122         * lib/fstrcmp.c: New file, from GNU gettext.
52123         * MODULES.html.sh (String handling): Add fstrcmp.
52124
52125 2007-08-18  Bruno Haible  <bruno@clisp.org>
52126
52127         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
52128         'bool'.
52129         (diag, compareseq): Remove const from the ctxt argument.
52130         (USE_HEURISTIC): Undefine at the end.
52131
52132 2007-08-18  Jim Meyering  <jim@meyering.net>
52133
52134         New file: lib/idcache.h
52135         * NEWS: Mention the addition.
52136         * modules/idcache (Files): Add lib/idcache.h
52137         * lib/idcache.c: Include "idcache.h".
52138         Don't include <sys/types.h>.
52139         Add a FIXME comment.
52140         Move file-scoped "static" declarations to the top.
52141         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
52142
52143 2007-08-17  Bruno Haible  <bruno@clisp.org>
52144         and Paul Eggert  <eggert@cs.ucla.edu>
52145
52146         * MODULES.html.sh: Add diffseq.
52147         * modules/diffseq: New file.
52148         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
52149         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
52150
52151 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
52152
52153         Import changes from coreutils for bootstrap script.
52154
52155         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
52156
52157         * build-aux/bootstrap (slurp): Work even in environments where
52158         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
52159         current code does not slurp files whose names start with ".", and
52160         this looks like it might be a troublesome area.
52161
52162         2007-07-11  Jim Meyering  <jim@meyering.net>
52163
52164         If there's a GPL vN copyright comment, require that N == 3.
52165
52166         2007-07-08  Jim Meyering  <jim@meyering.net>
52167
52168         Run the coreutils-specific code only if tests/Makefile.am.in exists.
52169         * build-aux/bootstrap (mam_template): Move definition out of loop.
52170
52171         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
52172
52173         * build-aux/bootstrap (symlink_to_dir): Rename function from
52174         symlink_to_gnulib.  Add a directory parameter.  Update all
52175         callers.
52176         (cp_mark_as_generated): Also check for -- and link to -- files in
52177         gl/.
52178
52179         2007-07-08  Jim Meyering  <jim@meyering.net>
52180
52181         Adapt to deeper hierarchy in gnulib.
52182         * build-aux/bootstrap (symlink_to_dir): If the destination
52183         directory doesn't exist, create it. This is required at least for
52184         "lib/uniwidth/cjk.h".
52185
52186         2007-05-15  Jim Meyering  <jim@meyering.net>
52187
52188         * build-aux/bootstrap: Now that generated Makefile.am files
52189         are no longer under version control, they must be created at
52190         bootstrap time.
52191
52192 2007-08-14  Ben Pfaff  <blp@gnu.org>
52193
52194         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
52195
52196 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
52197
52198         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
52199         given the changes below.
52200         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
52201         even on hosts that have padding bits beyond the supported 64.
52202
52203 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
52204
52205         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
52206         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
52207         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
52208         depends on it.
52209         (xstrtol_error): Remove.
52210         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
52211         but with a different signature.
52212         (ATTRIBUTE_NORETURN, __attribute__): New macros.
52213         * lib/xstrtol-error.c: Include exitfail.h.
52214         (xstrtol_fatal): New function, with a different signature from the
52215         old xstrtol_error, so that the caller need not worry about passing
52216         in an exit status, or about storage management of the option argument.
52217         (xstrtol_error): Now a static function.  Redo signature to
52218         implement xstrtol_fatal.  Output the correct number of hyphens in
52219         front of the option so that the caller need not worry about
52220         storage management.
52221         (N_): New macro.
52222         (_): Remove; not used now.
52223         * modules/xstrtol: Depend on getopt.
52224         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
52225         of old STRTOL_FATAL_ERROR macro.
52226         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
52227         of test program.
52228         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
52229         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
52230
52231 2007-08-08  Eric Blake  <ebb9@byu.net>
52232
52233         * lib/xstrtol-error.c: Add missing include.
52234
52235         Move xstrtol messages into gnulib domain, when --pobase is used.
52236         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
52237         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
52238         * modules/xstrtol (Files): Distribute new file.
52239         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
52240         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
52241         * tests/test-xstrtol.c: ...into new file.
52242         * tests/test-xstrtoul.c: Also test xstrtoul.
52243         * tests/test-xstrtoimax.c: Also test xstrtoimax.
52244         * tests/test-xstrtoumax.c: Also test xstrtoumax.
52245         * tests/test-xstrtol.sh: Drive the tests.
52246         * tests/test-xstrtoimax.sh: Likewise.
52247         * tests/test-xstrtoumax.sh: Likewise.
52248         * modules/xstrtol-tests: New module.
52249         * modules/xstrtoimax-tests: Likewise.
52250         * modules/xstrtoumax-tests: Likewise.
52251
52252 2007-08-08  Jim Meyering  <jim@meyering.net>
52253
52254         New function: mfile_name_concat.
52255         * lib/filenamecat.c (mfile_name_concat): New function, just like
52256         file_name_concat, but return NULL upon failure rather than exiting
52257         with a diagnostic.
52258         * lib/filenamecat.h: Declare it.
52259
52260 2007-08-07  Bruno Haible  <bruno@clisp.org>
52261
52262         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
52263         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
52264         warning from gcc.
52265         Reported by Eric Blake.
52266
52267 2007-08-07  Simon Josefsson  <simon@josefsson.org>
52268
52269         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
52270         * modules/crypto/arcfour (License): Likewise.
52271         * modules/crypto/des-tests (License): Likewise.
52272         * modules/crypto/gc-arctwo-tests (License): Likewise.
52273         * modules/crypto/gc-des-tests (License): Likewise.
52274         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
52275         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
52276         * modules/crypto/gc-md2-tests (License): Likewise.
52277         * modules/crypto/gc-md4-tests (License): Likewise.
52278         * modules/crypto/gc-md5-tests (License): Likewise.
52279         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
52280         * modules/crypto/gc-rijndael-tests (License): Likewise.
52281         * modules/crypto/gc-sha1-tests (License): Likewise.
52282         * modules/crypto/gc-tests (License): Likewise.
52283         * modules/crypto/hmac-md5 (License): Likewise.
52284         * modules/crypto/hmac-sha1 (License): Likewise.
52285         * modules/crypto/md2-tests (License): Likewise.
52286         * modules/crypto/md4-tests (License): Likewise.
52287         * modules/crypto/md5 (License): Likewise.
52288         * modules/crypto/rijndael (License): Likewise.
52289         * modules/crypto/sha1 (License): Likewise.
52290         * modules/memxor (License): Likewise.
52291
52292 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
52293         and Bruno Haible  <bruno@clisp.org>
52294
52295         * NEWS: Describe interface changes to human, xstrtol.
52296         * lib/human.h: Include <xstrtol.h>.
52297         (human_options): Return enum strtol_error, not int.  Remove
52298         bool arg; take int * instead.
52299         * lib/human.c: Don't include "gettext.h".
52300         (_): Remove; no longer used.
52301         Don't include <xstrtol.h>, since human.h does it.
52302         (human_options): Adjust to abovementioned interface changes.
52303         Do not report error to stderr; that's now the caller's
52304         responsibility.
52305         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
52306         interface change.
52307         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
52308         Str, Argument_type_string.  All uses changed.  Put " argument"
52309         in diagnostics to make them clearer.  Change wording of suffix
52310         message for clarity.
52311         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
52312         Argument_type_string.
52313         (STRTOL_FATAL_WARN): Remove; no longer used.
52314         * modules/human (Depends-on): Remove gettext-h.
52315
52316 2007-08-06  Simon Josefsson  <simon@josefsson.org>
52317
52318         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
52319
52320 2007-07-31  Bruno Haible  <bruno@clisp.org>
52321
52322         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
52323         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
52324         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
52325
52326 2007-07-31  Bruno Haible  <bruno@clisp.org>
52327
52328         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
52329         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
52330
52331 2007-07-30  Bruno Haible  <bruno@clisp.org>
52332
52333         * modules/base64 (License): Use the synonymous term "LGPLv2+".
52334         * modules/c-ctype (License): Likewise.
52335         * modules/c-strcase (License): Likewise.
52336         * modules/check-version (License): Likewise.
52337         * modules/iconv (License): Likewise.
52338         * modules/iconv_open (License): Likewise.
52339         * modules/read-file (License): Likewise.
52340         * modules/striconv (License): Likewise.
52341         * modules/strverscmp (License): Likewise.
52342         * modules/vasprintf (License): Likewise.
52343         * modules/crypto/des (License): Likewise.
52344         * modules/crypto/gc (License): Likewise.
52345         * modules/crypto/gc-arcfour (License): Likewise.
52346         * modules/crypto/gc-arctwo (License): Likewise.
52347         * modules/crypto/gc-des (License): Likewise.
52348         * modules/crypto/gc-hmac-md5 (License): Likewise.
52349         * modules/crypto/gc-hmac-sha1 (License): Likewise.
52350         * modules/crypto/gc-md2 (License): Likewise.
52351         * modules/crypto/gc-md4 (License): Likewise.
52352         * modules/crypto/gc-md5 (License): Likewise.
52353         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
52354         * modules/crypto/gc-random (License): Likewise.
52355         * modules/crypto/gc-rijndael (License): Likewise.
52356         * modules/crypto/gc-sha1 (License): Likewise.
52357         * modules/crypto/md2 (License): Likewise.
52358         * modules/crypto/md4 (License): Likewise.
52359
52360 2007-07-30  Jim Meyering  <jim@meyering.net>
52361
52362         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
52363         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
52364         it has valid stat data.  This bug would cause du not to count the
52365         sizes of inaccessible directories.
52366         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
52367         in <http://bugzilla.redhat.com/250077>.
52368
52369 2007-07-25  Peter O'Gorman  <peter@pogma.com>
52370             Bruno Haible  <bruno@clisp.org>
52371
52372         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
52373         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
52374         #include_next, gives a diagnostic about it, but reports no error in
52375         the exit code.
52376         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
52377
52378 2007-07-24  Ben Pfaff  <blp@gnu.org>
52379
52380         Improve name: "count-one-bits" is better than "popcount".
52381         * MODULES.html.sh: Update name.
52382         * lib/popcount.h: Renamed lib/count-one-bits.h.
52383         (popcount): Renamed count_one_bits.
52384         (popcountl): Renamed count_one_bits_l.
52385         (popcountll): Renamed count_one_bits_ll.
52386         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
52387         * modules/popcount: Renamed module/count-one-bits.
52388         * modules/popcount-tests: Renamed module/count-one-bits-tests.
52389         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
52390
52391 2007-07-23  Ben Pfaff  <blp@gnu.org>
52392
52393         * lib/popcount.h (popcount32): Reduce size of constants, to allow
52394         better code generation, and add U to large constants to avoid
52395         warnings, in non-GCC case.
52396         Suggested by Bruno Haible.
52397
52398 2007-07-23  Ben Pfaff  <blp@gnu.org>
52399
52400         * lib/popcount.h: Use verify_true instead of if...abort.
52401         * modules/popcount: Depend on verify module.
52402         Suggested by Jim Meyering.
52403
52404 2007-07-23  Bruno Haible  <bruno@clisp.org>
52405
52406         * gnulib-tool (func_import): Create a .cvsignore file also when the
52407         directory is not yet in CVS but the toplevel directory is. When
52408         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
52409         Reported by Karl Berry.
52410
52411 2007-07-22  Ben Pfaff  <blp@gnu.org>
52412
52413         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
52414         case.
52415         Suggested by Eric Blake.
52416
52417 2007-07-22  Ben Pfaff  <blp@gnu.org>
52418
52419         New module: popcount.
52420         * MODULES.html.sh: Add popcount.
52421         * modules/popcount: New file.
52422         * modules/popcount-tests: New file.
52423         * tests/test-popcount.c: New file.
52424         * lib/popcount.h: New file.
52425         * m4/popcount.m4: New file.
52426
52427 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
52428
52429         * build-aux/announce-gen: Update to GPLv3.
52430
52431         * build-aux/config.guess: Update from config.
52432
52433 2007-07-21  Bruno Haible  <bruno@clisp.org>
52434
52435         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
52436         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
52437
52438 2007-07-20  Jim Meyering  <jim@meyering.net>
52439
52440         * check-module: Diagnose a self-dependency.
52441
52442 2007-07-19  Bruno Haible  <bruno@clisp.org>
52443
52444         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
52445         empty.
52446         Reported by Eric Blake.
52447
52448 2007-07-18  Bruno Haible  <bruno@clisp.org>
52449
52450         * gnulib-tool: New options --po-base, --po-domain.
52451         (func_usage): Document them.
52452         (pobase, po_domain): New variables.
52453         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
52454         DEFAULT_TEXT_DOMAIN.
52455         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
52456         (func_import): Consider pobase and po_domain. Create a po/ directory.
52457         (func_create_testdir): Set pobase and po_domain to empty.
52458         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
52459         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
52460
52461 2007-07-18  Bruno Haible  <bruno@clisp.org>
52462
52463         * gnulib-tool (func_get_automake_snippet): Synthesize also an
52464         EXTRA_DIST augmentation for files in build-aux/.
52465
52466 2007-07-16  Bruno Haible  <bruno@clisp.org>
52467
52468         * modules/lseek (License): Use the synonymous term "LGPLv2+".
52469         * modules/getdelim (License): Likewise.
52470
52471 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52472
52473         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
52474         * modules/d-type (License): Likewise.
52475         * modules/extensions (License): Likewise.
52476         * modules/fnmatch (License): Likewise.
52477         * modules/fseeko (License): Likewise.
52478         * modules/getaddrinfo (License): Likewise.
52479         * modules/getline (License): Likewise.
52480         * modules/getlogin_r (License): Likewise.
52481         * modules/getpass (License): Likewise.
52482         * modules/gettimeofday (License): Likewise.
52483         * modules/glob (License): Likewise.
52484         * modules/inet_ntop (License): Likewise.
52485         * modules/malloc (License): Likewise.
52486         * modules/malloca (License): Likewise.
52487         * modules/memmem (License): Likewise.
52488         * modules/mempcpy (License): Likewise.
52489         * modules/memset (License): Likewise.
52490         * modules/minmax (License): Likewise.
52491         * modules/mktime (License): Likewise.
52492         * modules/netinet_in (License): Likewise.
52493         * modules/pathmax (License): Likewise.
52494         * modules/poll (License): Likewise.
52495         * modules/regex (License): Likewise.
52496         * modules/snprintf (License): Likewise.
52497         * modules/stdbool (License): Likewise.
52498         * modules/stdint (License): Likewise.
52499         * modules/stdio (License): Likewise.
52500         * modules/strcase (License): Likewise.
52501         * modules/strcasestr (License): Likewise.
52502         * modules/strdup (License): Likewise.
52503         * modules/string (License): Likewise.
52504         * modules/strndup (License): Likewise.
52505         * modules/strnlen (License): Likewise.
52506         * modules/strpbrk (License): Likewise.
52507         * modules/strptime (License): Likewise.
52508         * modules/strsep (License): Likewise.
52509         * modules/sys_select (License): Likewise.
52510         * modules/sys_socket (License): Likewise.
52511         * modules/sys_stat (License): Likewise.
52512         * modules/sys_time (License): Likewise.
52513         * modules/time (License): Likewise.
52514         * modules/time_r (License): Likewise.
52515         * modules/timegm (License): Likewise.
52516         * modules/unistd (License): Likewise.
52517         * modules/vsnprintf (License): Likewise.
52518         * modules/wctype (License): Likewise.
52519
52520 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52521
52522         * modules/argz (License): LGPLv2+.
52523
52524 2007-07-15  Karl Berry  <karl@gnu.org>
52525
52526         * doc/gnulib.texi: revise node structure per new fdl.texi.
52527
52528 2007-07-14  Bruno Haible  <bruno@clisp.org>
52529
52530         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
52531         the output file.
52532         * lib/uniname/uninames.h: Regenerated.
52533
52534 2007-07-14  Karl Berry  <karl@gnu.org>
52535
52536         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
52537         omitting sectioning and index commands.
52538
52539 2007-07-13  Bruno Haible  <bruno@clisp.org>
52540
52541         New gnulib-tool option --more-symlinks.
52542         * gnulib-tool (func_usage): Document --more-symlinks.
52543         (do_copyrights): New variable.
52544         Recognize option --more-symlinks.
52545         (func_import): Don't add a copyright notice transform to
52546         sed_transform_lib_file if do_copyrights is empty.
52547
52548 2007-07-13  Bruno Haible  <bruno@clisp.org>
52549
52550         * lib/vasnprintf.c (decimal_point_char): Define also if
52551         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
52552         && !NEED_PRINTF_DIRECTIVE_A.
52553         Reported by Clemens Koller <clemens.koller@anagramm.de> via
52554         Gary V. Vaughan <gary@gnu.org>.
52555
52556 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
52557
52558         * lib/inttypes_.h: Undo previous change, since it was fixed
52559         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
52560
52561 2007-07-13  Bruno Haible  <bruno@clisp.org>
52562
52563         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
52564         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
52565
52566 2007-07-13  Jim Meyering  <jim@meyering.net>
52567
52568         df: Don't fail for Tru64's "file-on-file mount".
52569         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
52570         so we fall through and use statfs instead.  Details here:
52571         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
52572         Reported by Albert Chin.
52573
52574 2007-07-13  Bruno Haible  <bruno@clisp.org>
52575
52576         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
52577         * modules/configmake (License): Likewise.
52578         * modules/gettext (License): Likewise.
52579         * modules/gettext-h (License): Likewise.
52580         * modules/include_next (License): Likewise.
52581         * modules/link-warning (License): Likewise.
52582         * modules/localcharset (License): Likewise.
52583         * modules/localename (License): Likewise.
52584         * modules/lock (License): Likewise.
52585         * modules/relocatable-lib-lgpl (License): Likewise.
52586         * modules/size_max (License): Likewise.
52587         * modules/vasnprintf (License): Likewise.
52588         * modules/wchar (License): Likewise.
52589         * modules/xsize (License): Likewise.
52590
52591 2007-07-13  Bruno Haible  <bruno@clisp.org>
52592
52593         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
52594         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
52595
52596 2007-07-12  Bruno Haible  <bruno@clisp.org>
52597
52598         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
52599         in the modules files.
52600
52601 2007-07-11  Karl Berry  <karl@gnu.org>
52602
52603         * MODULES.html.sh (func_module): use
52604          sed -e '\|^'"${includefile}"'$|d'
52605          instead of /.../d, to avoid errors on $includefile's containing /.
52606
52607 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
52608
52609         * gnulib-tool (func_import): Avoid duplication of --avoid
52610         statements
52611         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
52612         names to `_' in variable names.
52613
52614 2007-07-10  Eric Blake  <ebb9@byu.net>
52615
52616         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
52617         * NEWS: Document this change.
52618
52619 2007-07-08  Bruno Haible  <bruno@clisp.org>
52620
52621         Update to Unicode 5.0.
52622         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
52623         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
52624         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
52625         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
52626         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
52627         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
52628         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
52629         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
52630         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
52631         U+10A3F, U+1D242..U+1D244.
52632         (nonspacing_table_ind): Update.
52633         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
52634         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
52635
52636 2007-07-08  Bruno Haible  <bruno@clisp.org>
52637
52638         Update to Unicode 5.0.
52639         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
52640         code transform. Extend the name index field of unicode_name_to_code and
52641         unicode_code_to_name from 16 to 24 bits.
52642         * lib/uniname/uniname.c (unicode_character_name,
52643         unicode_name_character): Add the range 0x12xxx to the code transform.
52644         * lib/uniname/uninames.h: Regenerated.
52645         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
52646
52647 2007-07-07  Bruno Haible  <bruno@clisp.org>
52648
52649         * modules/wcwidth-tests: New file.
52650         * tests/test-wcwidth.c: New file.
52651
52652         Work around MacOS X wcwidth() bug.
52653         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
52654         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
52655         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
52656         original wcwidth in non-UTF-8 locales.
52657         * modules/wcwidth (Depends-on): Add localcharset, streq,
52658         uniwidth/width.
52659         * doc/functions/wcwidth.texi: Update.
52660
52661 2007-07-07  Bruno Haible  <bruno@clisp.org>
52662
52663         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
52664         (wcwidth): New declaration.
52665         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
52666         macros.
52667         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
52668         here. Prepare for creating <wchar.h> unconditionally.
52669         * modules/wchar (Depends-on): Add link-warning.
52670         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
52671         REPLACE_WCWIDTH, and GL_LINK_WARNING.
52672         * lib/wcwidth.h: Remove file.
52673         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
52674         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
52675         * modules/wcwidth (Files): Remove lib/wcwidth.h.
52676         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
52677         (Include): Replace wcwidth.h with <wchar.h>.
52678         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
52679         * lib/mbchar.h: Don't include wcwidth.h.
52680         * lib/mbswidth.c: Likewise.
52681         * NEWS: Mention the change.
52682
52683 2007-07-07  Bruno Haible  <bruno@clisp.org>
52684
52685         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
52686         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
52687         definition with an external declaration.
52688         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
52689         defined as a function. Remove AC_C_INLINE requirement.
52690         * modules/wcwidth (Files): Add lib/wcwidth.c.
52691         (Makefile.am): Remove redundant statement.
52692
52693 2007-07-07  Bruno Haible  <bruno@clisp.org>
52694
52695         * MODULES.html.sh (Unicode string functions): Add the new modules.
52696
52697         * tests/uniwidth/test-u32-strwidth.c: New file.
52698         * modules/uniwidth/u32-strwidth-tests: New file.
52699
52700         * lib/uniwidth/u32-strwidth.c: New file.
52701         * modules/uniwidth/u32-strwidth: New file.
52702
52703         * tests/uniwidth/test-u16-strwidth.c: New file.
52704         * modules/uniwidth/u16-strwidth-tests: New file.
52705
52706         * lib/uniwidth/u16-strwidth.c: New file.
52707         * modules/uniwidth/u16-strwidth: New file.
52708
52709         * tests/uniwidth/test-u8-strwidth.c: New file.
52710         * modules/uniwidth/u8-strwidth-tests: New file.
52711
52712         * lib/uniwidth/u8-strwidth.c: New file.
52713         * modules/uniwidth/u8-strwidth: New file.
52714
52715         * tests/uniwidth/test-u32-width.c: New file.
52716         * modules/uniwidth/u32-width-tests: New file.
52717
52718         * lib/uniwidth/u32-width.c: New file.
52719         * modules/uniwidth/u32-width: New file.
52720
52721         * tests/uniwidth/test-u16-width.c: New file.
52722         * modules/uniwidth/u16-width-tests: New file.
52723
52724         * lib/uniwidth/u16-width.c: New file.
52725         * modules/uniwidth/u16-width: New file.
52726
52727         * tests/uniwidth/test-u8-width.c: New file.
52728         * modules/uniwidth/u8-width-tests: New file.
52729
52730         * lib/uniwidth/u8-width.c: New file.
52731         * modules/uniwidth/u8-width: New file.
52732
52733         * tests/uniwidth/test-uc_width.c: New file.
52734         * modules/uniwidth/width-tests: New file.
52735
52736         * lib/uniwidth/width.c: New file, from GNU libiconv.
52737         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
52738         * modules/uniwidth/width: New file.
52739
52740         * lib/uniwidth.h: New file, from GNU libiconv.
52741         * modules/uniwidth/base: New file.
52742
52743 2007-07-07  Bruno Haible  <bruno@clisp.org>
52744
52745         * lib/uniname.h: New file, from GNU gettext.
52746         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
52747         * lib/uniname/uninames.h: New file, from GNU gettext.
52748         * lib/uniname/uniname.c: New file, from GNU gettext.
52749         * tests/uniname/test-uninames.sh: New file.
52750         * tests/uniname/test-uninames.c: New file, from GNU gettext.
52751         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
52752         * modules/uniname/base: New file.
52753         * modules/uniname/uniname: New file.
52754         * modules/uniname/uniname-tests: New file.
52755         * MODULES.html.sh (Unicode string functions): Add the new modules.
52756
52757 2007-07-06  Bruno Haible  <bruno@clisp.org>
52758
52759         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
52760
52761 2007-07-06  Bruno Haible  <bruno@clisp.org>
52762
52763         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
52764         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
52765         includes <cygwin/sys_time.h> which includes <sys/select.h> which
52766         include <sys/time.h>.
52767         Reported by Eric Blake.
52768
52769 2007-07-06  Eric Blake  <ebb9@byu.net>
52770
52771         Fix testing canonicalize on cygwin.
52772         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
52773         Revert patch from 2007-06-19.
52774         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
52775         canonicalize module is also in use.
52776         * tests/test-canonicalize.c: New file.
52777         * tests/test-canonicalize.sh: Likewise.
52778         * modules/canonicalize-tests: Likewise.
52779
52780 2007-07-06  Jim Meyering  <jim@meyering.net>
52781
52782         * lib/getugroups.c (getugroups): Detect getgrent failure.
52783         Adjust comment to reflect reality: this function may return -1.
52784
52785 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
52786
52787         * build-aux/bootstrap (TP_URL,get_translations): Update to use
52788         the new TP address.
52789         (usage): Fix typo
52790         (gnulib_mk): New variable.
52791
52792 2007-07-05  Jim Meyering  <jim@meyering.net>
52793
52794         Don't let endgrent clobber errno, no matter how improbable.
52795         * lib/getugroups.c (getugroups): Save and restore errno around
52796         endgrent call.
52797
52798         Close the group DB even when failing with 2^31 or more members.
52799         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
52800
52801 2007-07-04  Jim Meyering  <jim@meyering.net>
52802
52803         * lib/getugroups.h: New file.
52804         * lib/getugroups.c: Include "getugroups.h".
52805         Remove uses of "register" keyword.
52806         Move local variable, "cp", down into scope where used.
52807         Give "username" parameter the "const" attribute.
52808         * modules/getugroups (Files): Add lib/getugroups.h
52809
52810 2007-07-04  Karl Berry  <karl@gnu.org>
52811
52812         * MODULES.html.sh (func_all_modules): Complete rename of
52813         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
52814
52815 2007-07-02  Bruno Haible  <bruno@clisp.org>
52816
52817         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
52818         mode, when inttypes.h comes from gnulib.
52819         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
52820
52821 2007-07-02  Simon Josefsson  <simon@josefsson.org>
52822
52823         * NEWS: Mention lgpl module name change.
52824
52825         * modules/lgpl-2.1: Renamed from lgpl.
52826
52827         * NEWS: Mention gpl module name change.
52828
52829         * modules/gpl-3.0: New file, based on gpl-2.0.
52830
52831         * modules/gpl-2.0: Renamed from gpl.
52832
52833         * modules/gpl: Fix filename, doc/gpl.texi is now found at
52834         doc/gpl-2.0.texi.
52835
52836 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
52837
52838         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
52839         #define __STDC_LIMIT_MACROS temporarily while including
52840         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
52841         Problem reported by Joel E. Denny in
52842         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
52843
52844 2007-07-01  Bruno Haible  <bruno@clisp.org>
52845
52846         * lib/unistdio.h: New file.
52847         * lib/unistdio/u-asnprintf.h: New file.
52848         * lib/unistdio/u-asprintf.h: New file.
52849         * lib/unistdio/u-printf-args.c: New file.
52850         * lib/unistdio/u-printf-args.h: New file.
52851         * lib/unistdio/u-printf-parse.h: New file.
52852         * lib/unistdio/u-snprintf.h: New file.
52853         * lib/unistdio/u-sprintf.h: New file.
52854         * lib/unistdio/u-vasprintf.h: New file.
52855         * lib/unistdio/u-vsnprintf.h: New file.
52856         * lib/unistdio/u-vsprintf.h: New file.
52857         * lib/unistdio/ulc-asnprintf.c: New file.
52858         * lib/unistdio/ulc-asprintf.c: New file.
52859         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
52860         * lib/unistdio/ulc-printf-parse.c: New file.
52861         * lib/unistdio/ulc-snprintf.c: New file.
52862         * lib/unistdio/ulc-sprintf.c: New file.
52863         * lib/unistdio/ulc-vasnprintf.c: New file.
52864         * lib/unistdio/ulc-vasprintf.c: New file.
52865         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
52866         * lib/unistdio/ulc-vsnprintf.c: New file.
52867         * lib/unistdio/ulc-vsprintf.c: New file.
52868         * lib/unistdio/u8-asnprintf.c: New file.
52869         * lib/unistdio/u8-asprintf.c: New file.
52870         * lib/unistdio/u8-printf-parse.c: New file.
52871         * lib/unistdio/u8-snprintf.c: New file.
52872         * lib/unistdio/u8-sprintf.c: New file.
52873         * lib/unistdio/u8-vasnprintf.c: New file.
52874         * lib/unistdio/u8-vasprintf.c: New file.
52875         * lib/unistdio/u8-vsnprintf.c: New file.
52876         * lib/unistdio/u8-vsprintf.c: New file.
52877         * lib/unistdio/u8-u8-asnprintf.c: New file.
52878         * lib/unistdio/u8-u8-asprintf.c: New file.
52879         * lib/unistdio/u8-u8-snprintf.c: New file.
52880         * lib/unistdio/u8-u8-sprintf.c: New file.
52881         * lib/unistdio/u8-u8-vasnprintf.c: New file.
52882         * lib/unistdio/u8-u8-vasprintf.c: New file.
52883         * lib/unistdio/u8-u8-vsnprintf.c: New file.
52884         * lib/unistdio/u8-u8-vsprintf.c: New file.
52885         * lib/unistdio/u16-asnprintf.c: New file.
52886         * lib/unistdio/u16-asprintf.c: New file.
52887         * lib/unistdio/u16-printf-parse.c: New file.
52888         * lib/unistdio/u16-snprintf.c: New file.
52889         * lib/unistdio/u16-sprintf.c: New file.
52890         * lib/unistdio/u16-vasnprintf.c: New file.
52891         * lib/unistdio/u16-vasprintf.c: New file.
52892         * lib/unistdio/u16-vsnprintf.c: New file.
52893         * lib/unistdio/u16-vsprintf.c: New file.
52894         * lib/unistdio/u16-u16-asnprintf.c: New file.
52895         * lib/unistdio/u16-u16-asprintf.c: New file.
52896         * lib/unistdio/u16-u16-snprintf.c: New file.
52897         * lib/unistdio/u16-u16-sprintf.c: New file.
52898         * lib/unistdio/u16-u16-vasnprintf.c: New file.
52899         * lib/unistdio/u16-u16-vasprintf.c: New file.
52900         * lib/unistdio/u16-u16-vsnprintf.c: New file.
52901         * lib/unistdio/u16-u16-vsprintf.c: New file.
52902         * lib/unistdio/u32-asnprintf.c: New file.
52903         * lib/unistdio/u32-asprintf.c: New file.
52904         * lib/unistdio/u32-printf-parse.c: New file.
52905         * lib/unistdio/u32-snprintf.c: New file.
52906         * lib/unistdio/u32-sprintf.c: New file.
52907         * lib/unistdio/u32-vasnprintf.c: New file.
52908         * lib/unistdio/u32-vasprintf.c: New file.
52909         * lib/unistdio/u32-vsnprintf.c: New file.
52910         * lib/unistdio/u32-vsprintf.c: New file.
52911         * lib/unistdio/u32-u32-asnprintf.c: New file.
52912         * lib/unistdio/u32-u32-asprintf.c: New file.
52913         * lib/unistdio/u32-u32-snprintf.c: New file.
52914         * lib/unistdio/u32-u32-sprintf.c: New file.
52915         * lib/unistdio/u32-u32-vasnprintf.c: New file.
52916         * lib/unistdio/u32-u32-vasprintf.c: New file.
52917         * lib/unistdio/u32-u32-vsnprintf.c: New file.
52918         * lib/unistdio/u32-u32-vsprintf.c: New file.
52919         * tests/unistdio/test-ulc-asnprintf1.c: New file.
52920         * tests/unistdio/test-ulc-asnprintf1.h: New file.
52921         * tests/unistdio/test-ulc-printf1.h: New file.
52922         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
52923         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
52924         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
52925         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
52926         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
52927         * tests/unistdio/test-ulc-vasprintf1.c: New file.
52928         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
52929         * tests/unistdio/test-ulc-vsprintf1.c: New file.
52930         * tests/unistdio/test-u8-asnprintf1.c: New file.
52931         * tests/unistdio/test-u8-asnprintf1.h: New file.
52932         * tests/unistdio/test-u8-printf1.h: New file.
52933         * tests/unistdio/test-u8-vasnprintf1.c: New file.
52934         * tests/unistdio/test-u8-vasnprintf2.c: New file.
52935         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
52936         * tests/unistdio/test-u8-vasnprintf3.c: New file.
52937         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
52938         * tests/unistdio/test-u8-vasprintf1.c: New file.
52939         * tests/unistdio/test-u8-vsnprintf1.c: New file.
52940         * tests/unistdio/test-u8-vsprintf1.c: New file.
52941         * tests/unistdio/test-u16-asnprintf1.c: New file.
52942         * tests/unistdio/test-u16-asnprintf1.h: New file.
52943         * tests/unistdio/test-u16-printf1.h: New file.
52944         * tests/unistdio/test-u16-vasnprintf1.c: New file.
52945         * tests/unistdio/test-u16-vasnprintf2.c: New file.
52946         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
52947         * tests/unistdio/test-u16-vasnprintf3.c: New file.
52948         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
52949         * tests/unistdio/test-u16-vasprintf1.c: New file.
52950         * tests/unistdio/test-u16-vsnprintf1.c: New file.
52951         * tests/unistdio/test-u16-vsprintf1.c: New file.
52952         * tests/unistdio/test-u32-asnprintf1.c: New file.
52953         * tests/unistdio/test-u32-asnprintf1.h: New file.
52954         * tests/unistdio/test-u32-printf1.h: New file.
52955         * tests/unistdio/test-u32-vasnprintf1.c: New file.
52956         * tests/unistdio/test-u32-vasnprintf2.c: New file.
52957         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
52958         * tests/unistdio/test-u32-vasnprintf3.c: New file.
52959         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
52960         * tests/unistdio/test-u32-vasprintf1.c: New file.
52961         * tests/unistdio/test-u32-vsnprintf1.c: New file.
52962         * tests/unistdio/test-u32-vsprintf1.c: New file.
52963         * modules/unistdio/base: New file.
52964         * modules/unistdio/u-printf-args: New file.
52965         * modules/unistdio/ulc-asnprintf: New file.
52966         * modules/unistdio/ulc-asprintf: New file.
52967         * modules/unistdio/ulc-fprintf: New file.
52968         * modules/unistdio/ulc-printf-parse: New file.
52969         * modules/unistdio/ulc-snprintf: New file.
52970         * modules/unistdio/ulc-sprintf: New file.
52971         * modules/unistdio/ulc-vasnprintf: New file.
52972         * modules/unistdio/ulc-vasprintf: New file.
52973         * modules/unistdio/ulc-vfprintf: New file.
52974         * modules/unistdio/ulc-vsnprintf: New file.
52975         * modules/unistdio/ulc-vsprintf: New file.
52976         * modules/unistdio/u8-asnprintf: New file.
52977         * modules/unistdio/u8-asprintf: New file.
52978         * modules/unistdio/u8-printf-parse: New file.
52979         * modules/unistdio/u8-snprintf: New file.
52980         * modules/unistdio/u8-sprintf: New file.
52981         * modules/unistdio/u8-vasnprintf: New file.
52982         * modules/unistdio/u8-vasprintf: New file.
52983         * modules/unistdio/u8-vsnprintf: New file.
52984         * modules/unistdio/u8-vsprintf: New file.
52985         * modules/unistdio/u8-u8-asnprintf: New file.
52986         * modules/unistdio/u8-u8-asprintf: New file.
52987         * modules/unistdio/u8-u8-snprintf: New file.
52988         * modules/unistdio/u8-u8-sprintf: New file.
52989         * modules/unistdio/u8-u8-vasnprintf: New file.
52990         * modules/unistdio/u8-u8-vasprintf: New file.
52991         * modules/unistdio/u8-u8-vsnprintf: New file.
52992         * modules/unistdio/u8-u8-vsprintf: New file.
52993         * modules/unistdio/u16-asnprintf: New file.
52994         * modules/unistdio/u16-asprintf: New file.
52995         * modules/unistdio/u16-printf-parse: New file.
52996         * modules/unistdio/u16-snprintf: New file.
52997         * modules/unistdio/u16-sprintf: New file.
52998         * modules/unistdio/u16-vasnprintf: New file.
52999         * modules/unistdio/u16-vasprintf: New file.
53000         * modules/unistdio/u16-vsnprintf: New file.
53001         * modules/unistdio/u16-vsprintf: New file.
53002         * modules/unistdio/u16-u16-asnprintf: New file.
53003         * modules/unistdio/u16-u16-asprintf: New file.
53004         * modules/unistdio/u16-u16-snprintf: New file.
53005         * modules/unistdio/u16-u16-sprintf: New file.
53006         * modules/unistdio/u16-u16-vasnprintf: New file.
53007         * modules/unistdio/u16-u16-vasprintf: New file.
53008         * modules/unistdio/u16-u16-vsnprintf: New file.
53009         * modules/unistdio/u16-u16-vsprintf: New file.
53010         * modules/unistdio/u32-asnprintf: New file.
53011         * modules/unistdio/u32-asprintf: New file.
53012         * modules/unistdio/u32-printf-parse: New file.
53013         * modules/unistdio/u32-snprintf: New file.
53014         * modules/unistdio/u32-sprintf: New file.
53015         * modules/unistdio/u32-vasnprintf: New file.
53016         * modules/unistdio/u32-vasprintf: New file.
53017         * modules/unistdio/u32-vsnprintf: New file.
53018         * modules/unistdio/u32-vsprintf: New file.
53019         * modules/unistdio/u32-u32-asnprintf: New file.
53020         * modules/unistdio/u32-u32-asprintf: New file.
53021         * modules/unistdio/u32-u32-snprintf: New file.
53022         * modules/unistdio/u32-u32-sprintf: New file.
53023         * modules/unistdio/u32-u32-vasnprintf: New file.
53024         * modules/unistdio/u32-u32-vasprintf: New file.
53025         * modules/unistdio/u32-u32-vsnprintf: New file.
53026         * modules/unistdio/u32-u32-vsprintf: New file.
53027         * modules/unistdio/ulc-asnprintf-tests: New file.
53028         * modules/unistdio/ulc-vasnprintf-tests: New file.
53029         * modules/unistdio/ulc-vasprintf-tests: New file.
53030         * modules/unistdio/ulc-vsnprintf-tests: New file.
53031         * modules/unistdio/ulc-vsprintf-tests: New file.
53032         * modules/unistdio/u8-asnprintf-tests: New file.
53033         * modules/unistdio/u8-vasnprintf-tests: New file.
53034         * modules/unistdio/u8-vasprintf-tests: New file.
53035         * modules/unistdio/u8-vsnprintf-tests: New file.
53036         * modules/unistdio/u8-vsprintf-tests: New file.
53037         * modules/unistdio/u16-asnprintf-tests: New file.
53038         * modules/unistdio/u16-vasnprintf-tests: New file.
53039         * modules/unistdio/u16-vasprintf-tests: New file.
53040         * modules/unistdio/u16-vsnprintf-tests: New file.
53041         * modules/unistdio/u16-vsprintf-tests: New file.
53042         * modules/unistdio/u32-asnprintf-tests: New file.
53043         * modules/unistdio/u32-vasnprintf-tests: New file.
53044         * modules/unistdio/u32-vasprintf-tests: New file.
53045         * modules/unistdio/u32-vsnprintf-tests: New file.
53046         * modules/unistdio/u32-vsprintf-tests: New file.
53047         * MODULES.html.sh (Unicode string functions): Add the new modules.
53048
53049 2007-07-01  Bruno Haible  <bruno@clisp.org>
53050
53051         * lib/sprintf.c (sprintf): Limit the available length estimation,
53052         to avoid address wraparound.
53053         * lib/vsprintf.c (vsprintf): Likewise.
53054         * modules/sprintf-posix (Dependencies): Add stdint.
53055         * modules/vsprintf-posix (Dependencies): Likewise.
53056
53057 2007-07-01  Bruno Haible  <bruno@clisp.org>
53058
53059         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
53060         Windows PATH as well. Conservative double-quoting. Comments.
53061
53062 2007-07-01  Bruno Haible  <bruno@clisp.org>
53063             Eric Blake  <ebb9@byu.net>
53064             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53065
53066         * gnulib-tool (self_abspathname): Fix algorithm to cope with
53067         empty components in $PATH, denoting '.'.
53068
53069 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53070
53071         * gnulib-tool: Fix indentation.
53072         (func_create_megatestdir): Likewise.
53073         Report by Bruno Haible.
53074
53075 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53076
53077         Sync from Automake.
53078         * build-aux/gnupload: Fix shell portability issues with for loops.
53079         Report by Karl Berry.
53080
53081 2007-06-29  Simon Josefsson  <simon@josefsson.org>
53082
53083         * build-aux/maint.mk (POURL): Use translationproject.org.
53084
53085 2007-06-27  Simon Josefsson  <simon@josefsson.org>
53086             Bruno Haible  <bruno@clisp.org>
53087
53088         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
53089         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
53090         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
53091         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
53092         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
53093
53094 2007-06-27  Bruno Haible  <bruno@clisp.org>
53095
53096         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
53097         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
53098
53099 2007-06-26  Karl Berry  <karl@gnu.org>
53100
53101         * MODULES.html.sh: remove xreadlink-with-size.
53102
53103 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
53104
53105         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
53106         method that I hope also handles the double-include problem noted
53107         by Bruno Haible in
53108         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
53109
53110 2007-06-23  Bruno Haible  <bruno@clisp.org>
53111
53112         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
53113         Don't let the 'mostlyclean' target fail if the last subdirectory could
53114         not be removed.
53115         Reported by Karl Berry.
53116
53117 2007-06-23  Bruno Haible  <bruno@clisp.org>
53118
53119         * gnulib-tool (echo): Add a speedier workaround for ksh.
53120         * tests/test-echo.sh: Likewise.
53121
53122 2007-06-23  Bruno Haible  <bruno@clisp.org>
53123
53124         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
53125         * tests/test-echo.sh: Likewise.
53126
53127 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53128
53129         * gnulib-tool (IFS): Initialize early, so we don't set it to
53130         empty later.
53131         (self_abspathname): Rewrite algorithm to set it, reindent.
53132         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
53133         (func_create_megatestdir): Merge some sed scripts.
53134
53135 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
53136
53137         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
53138         exposed by Sun Studio 11 cc on Solaris 8.
53139
53140 2007-06-22  Bruno Haible  <bruno@clisp.org>
53141
53142         * gnulib-tool (echo): Ensure the echo primitive does not interpret
53143         backslashes.
53144         * tests/test-echo.sh: New file.
53145
53146 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53147
53148         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
53149         simplify `sed_replace_build_aux' scripts, they are portable but
53150         echoing them with `echo' is not.
53151         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
53152
53153 2007-06-21  Karl Berry  <karl@gnu.org>
53154
53155         * config/srclist.txt: guess we can't handle the licenses via
53156         srclist at the moment.
53157
53158 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
53159
53160         * MODULES.html.sh: Add include_next.
53161         * modules/include_next: New file.
53162
53163 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
53164
53165         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
53166         INCLUDE_NEXT.
53167         (gl_CHECK_NEXT_HEADERS): New macro.
53168         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
53169         the obsolescent gl_ABSOLUTE_HEADER.
53170         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
53171         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
53172         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
53173         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
53174         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
53175         * m4/math_h.m4 (gl_MATH_H): Likewise.
53176         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
53177         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
53178         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
53179         * m4/stdint.m4 (gl_STDINT_H): Likewise.
53180         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
53181         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
53182         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
53183         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
53184         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
53185         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
53186         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
53187         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
53188         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
53189         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
53190         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
53191         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
53192         * m4/inttypes.m4 (gl_INTTYPES_H): Define
53193         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
53194         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
53195         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
53196         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
53197         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
53198         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
53199         * lib/float_.h: Likewise.
53200         * lib/inttypes_.h: Likewise.
53201         * lib/math_.h: Likewise.
53202         * lib/search_.h: Likewise.
53203         * lib/signal_.h: Likewise.
53204         * lib/stdint_.h: Likewise.
53205         * lib/stdio_.h: Likewise.
53206         * lib/stdlib_.h: Likewise.
53207         * lib/string_.h: Likewise.
53208         * lib/sys_stat_.h: Likewise.
53209         * lib/sys_time_.h: Likewise.
53210         * lib/time_.h: Likewise.
53211         * lib/unistd_.h: Likewise.
53212         * lib/wchar_.h: Likewise.
53213         * lib/wctype_.h: Likewise.
53214         * lib/dirent_.h: Likewise.
53215         * lib/iconv_.h: Likewise.
53216         * lib/locale_.h: Likewise.
53217         * lib/netinet_in_.h: Likewise.
53218         * lib/sys_select_.h: Likewise.
53219         * lib/sys_socket_.h: Likewise.
53220         * lib/sysexits_.h: Likewise.
53221         * modules/fcntl (Depends-on): Depend on include_next, not
53222         absolute_header.
53223         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
53224         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
53225         * modules/fchdir: Likewise.
53226         * modules/float: Likewise.
53227         * modules/iconv_open: Likewise.
53228         * modules/inttypes: Likewise.
53229         * modules/locale: Likewise.
53230         * modules/math: Likewise.
53231         * modules/netinet_in: Likewise.
53232         * modules/search: Likewise.
53233         * modules/signal: Likewise.
53234         * modules/stdint: Likewise.
53235         * modules/stdio: Likewise.
53236         * modules/stdlib: Likewise.
53237         * modules/string: Likewise.
53238         * modules/sys_select: Likewise.
53239         * modules/sys_socket: Likewise.
53240         * modules/sys_stat: Likewise.
53241         * modules/sys_time: Likewise.
53242         * modules/sysexits: Likewise.
53243         * modules/time: Likewise.
53244         * modules/unistd: Likewise.
53245         * modules/wchar: Likewise.
53246         * modules/wctype: Likewise.
53247         * modules/sys_stat: Change maintainer to "all".
53248         * modules/unistd: Likewise.
53249
53250 2007-06-20  Karl Berry  <karl@gnu.org>
53251
53252         * config/srclist.txt: track www changes in license files.
53253
53254 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
53255
53256         * build-aux/bootstrap: Remove stray dot.
53257         Make sure build_aux settings are honored when linking
53258         gnulib_extra_files.
53259
53260 2007-06-19  Eric Blake  <ebb9@byu.net>
53261
53262         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
53263         Allow compilation on cygwin.
53264
53265 2007-06-19  Jim Meyering  <jim@meyering.net>
53266
53267         xreadlink-with-size: Remove module.  No longer used.
53268         Ex-callers now use xreadlink or mreadlink-with-size.
53269         * modules/xreadlink-with-size: Remove module.
53270         * lib/xreadlink-with-size.c: Remove file.
53271         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
53272         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
53273         just before the function definition *is* accurate.
53274
53275         Eliminate one way canonicalize_filename_mode could exit.
53276         * lib/canonicalize.c (canonicalize_filename_mode):
53277         Use mreadlink_with_size, not xreadlink_with_size.
53278
53279 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
53280
53281         Detect porting problems to FreeBSD/arm, which has time_t wider than
53282         long int.  Original problem reported for GNU diff by Xin Li in
53283         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
53284         * modules/getdate (Depends-on): Add intprops, verify.
53285         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
53286         is an integer type no wider than long int.
53287
53288 2007-06-18  Jim Meyering  <jim@meyering.net>
53289
53290         New module: mreadlink-with-size.
53291         * MODULES.html.sh: Add mreadlink-with-size.
53292         * modules/mreadlink-with-size: New module
53293         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
53294         not xreadlink-with-size.
53295         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
53296
53297 2007-06-16  Bruno Haible  <bruno@clisp.org>
53298
53299         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
53300         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
53301         Reported by Gary V. Vaughan <gary@gnu.org>.
53302
53303 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
53304
53305         Revamp lchown so that it lives in unistd.h where it belongs.
53306         * lib/lchown.h: Remove.
53307         * lib/dirchownmod.c: Don't include lib/lchown.h.
53308         * lib/fchownat.c: Likewise.
53309         * lib/openat.c: Likewise.
53310         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
53311         does not follow symlinks.
53312         (EOPNOTSUPP): Define if not defined.
53313         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
53314         is defined to 0.
53315         (lchown): New decl.
53316         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
53317         Do not check for lchown decl.
53318         Set REPLACE_LCHOWN.
53319         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
53320         REPLACE_LCHOWN.
53321         * modules/chown: Make it clear it follows symlinks.
53322         * modules/lchown: Make it clear it doesn't follow symlinks.
53323         (Files): Remove lib/lchown.h
53324         (Depends-on): Add unistd.
53325         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
53326         (Include): Include <unistd.h>, not "lchown.h".
53327         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
53328         REPLACE_LCHOWN.
53329
53330 2007-06-15  Jim Meyering  <jim@meyering.net>
53331
53332         Change license (GPL to LGPL) of fsusage and dependents.
53333         * modules/fsusage (License): Change to LGPL.
53334         * modules/full-read (License): Likewise.
53335         * modules/full-write (License): Likewise.
53336         * modules/safe-read (License): Likewise.
53337         * modules/safe-write (License): Likewise.
53338
53339 2007-06-14  Ben Pfaff  <blp@gnu.org>
53340
53341         Missing part of allocsa -> malloca transition.
53342         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
53343         gl_MALLOCA.
53344
53345 2007-06-12  Bruno Haible  <bruno@clisp.org>
53346
53347         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
53348         to ia64, x86_64, i386.
53349         Reported by Eric Blake.
53350
53351 2007-06-12  Bruno Haible  <bruno@clisp.org>
53352
53353         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
53354         cross-compiling to x86_64.
53355
53356 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
53357
53358         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
53359         glitch reported by Ralf Wildenhues in
53360         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
53361
53362         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
53363         Vin Shelton.
53364
53365 2007-06-11  Bruno Haible  <bruno@clisp.org>
53366
53367         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
53368         replacement string.
53369         Reported by Eric Blake.
53370
53371 2007-06-10  Bruno Haible  <bruno@clisp.org>
53372
53373         Prepare vasnprintf code for use with Unicode strings.
53374         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
53375         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
53376         TYPE_U32_STRING.
53377         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
53378         a_u32_string variants.
53379         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
53380         * lib/printf-args.c: Don't include config.h and the specification
53381         header if PRINTF_FETCHARGS is already defined.
53382         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
53383         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
53384         TYPE_U16_STRING, TYPE_U32_STRING.
53385         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
53386         u16_directive, u16_directives, u32_directive, u32_directives): New
53387         types.
53388         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
53389         New declarations.
53390         * lib/printf-parse.c: Don't include config.h and the specification
53391         header if PRINTF_PARSE is already defined. Eliminate the set of
53392         parameters for WIDE_CHAR_VERSION; the user of this file must provide
53393         them now. Include c-ctype.h.
53394         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
53395         directive and CHAR_T_ONLY_ASCII.
53396         * lib/vasnprintf.c: Don't include config.h and the specification header
53397         if VASNPRINTF is already defined.
53398         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
53399         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
53400         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
53401         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
53402         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
53403         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
53404         code accordingly.
53405         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
53406         pad_ourselves also in this case, with the 'c' and 's' directives, and
53407         with a different notion of "width".
53408         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
53409
53410 2007-06-10  Bruno Haible  <bruno@clisp.org>
53411
53412         * modules/unistr/u32-mbsnlen: New file.
53413         * lib/unistr/u32-mbsnlen.c: New file.
53414
53415         * modules/unistr/u16-mbsnlen: New file.
53416         * lib/unistr/u16-mbsnlen.c: New file.
53417
53418         * modules/unistr/u8-mbsnlen: New file.
53419         * lib/unistr/u8-mbsnlen.c: New file.
53420
53421         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
53422         declarations.
53423
53424 2007-06-10  Bruno Haible  <bruno@clisp.org>
53425
53426         * lib/string_.h (mbsnlen): New declaration.
53427         * lib/mbsnlen.c: New file.
53428         * m4/mbsnlen.m4: New file.
53429         * modules/mbsnlen: New file.
53430         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
53431         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
53432         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
53433
53434 2007-06-10  Bruno Haible  <bruno@clisp.org>
53435
53436         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
53437
53438 2007-06-10  Bruno Haible  <bruno@clisp.org>
53439
53440         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
53441         * lib/mbuiter.h: Likewise.
53442
53443 2007-06-10  Bruno Haible  <bruno@clisp.org>
53444
53445         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
53446         declaration.
53447
53448 2007-06-10  Karl Berry  <karl@gnu.org>
53449
53450         * config/srclist.txt: remove gettext entries, Bruno prefers
53451         to update individually.
53452
53453 2007-06-10  Bruno Haible  <bruno@clisp.org>
53454
53455         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
53456         'maxlen'. Ensure only length + width bytes are allocated, not
53457         length + 1 + width.
53458
53459 2007-06-09  Bruno Haible  <bruno@clisp.org>
53460
53461         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
53462         (CHAR_T): Remove macro.
53463         (VASNPRINTF): Update.
53464
53465 2007-06-09  Bruno Haible  <bruno@clisp.org>
53466
53467         * MODULES.html.sh (Unicode string functions): Add the new modules.
53468
53469         * modules/uniconv/u32-conv-to-enc: New file.
53470         * lib/uniconv/u32-conv-to-enc.c: New file.
53471         * modules/uniconv/u32-conv-to-enc-tests: New file.
53472         * tests/uniconv/test-u32-conv-to-enc.c: New file.
53473
53474         * modules/uniconv/u16-conv-to-enc: New file.
53475         * lib/uniconv/u16-conv-to-enc.c: New file.
53476         * lib/uniconv/u-conv-to-enc.h: New file.
53477         * modules/uniconv/u16-conv-to-enc-tests: New file.
53478         * tests/uniconv/test-u16-conv-to-enc.c: New file.
53479
53480         * modules/uniconv/u8-conv-to-enc: New file.
53481         * lib/uniconv/u8-conv-to-enc.c: New file.
53482         * modules/uniconv/u8-conv-to-enc-tests: New file.
53483         * tests/uniconv/test-u8-conv-to-enc.c: New file.
53484
53485         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
53486         u32_conv_to_encoding): New declarations.
53487
53488 2007-06-09  Bruno Haible  <bruno@clisp.org>
53489
53490         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
53491
53492 2007-06-09  Bruno Haible  <bruno@clisp.org>
53493
53494         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
53495         * modules/malloca: Renamed from modules/allocsa, updated.
53496         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
53497         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
53498         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
53499         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
53500         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
53501         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
53502         * modules/xmalloca: Renamed from modules/xallocsa, updated.
53503         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
53504         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
53505         * modules/c-strcasestr (Depends-on): Update.
53506         * lib/c-strcasestr.c: Update.
53507         * modules/c-strstr (Depends-on): Update.
53508         * lib/c-strstr.c: Update.
53509         * modules/canonicalize-lgpl (Depends-on): Update.
53510         * lib/canonicalize-lgpl.c: Update.
53511         * modules/clean-temp (Depends-on): Update.
53512         * lib/clean-temp.c: Update.
53513         * modules/csharpcomp (Depends-on): Update.
53514         * lib/csharpcomp.c: Update.
53515         * modules/csharpexec (Depends-on): Update.
53516         * lib/csharpexec.c: Update.
53517         * modules/javacomp (Depends-on): Update.
53518         * lib/javacomp.c: Update.
53519         * modules/javaexec (Depends-on): Update.
53520         * lib/javaexec.c: Update.
53521         * modules/mbscasestr (Depends-on): Update.
53522         * lib/mbscasestr.c: Update.
53523         * modules/mbsstr (Depends-on): Update.
53524         * lib/mbsstr.c: Update.
53525         * modules/setenv (Depends-on): Update.
53526         * lib/setenv.c: Update.
53527         * modules/strcasestr (Depends-on): Update.
53528         * lib/strcasestr.c: Update.
53529         * modules/striconveha (Depends-on): Update.
53530         * lib/striconveha.c: Update.
53531         * modules/relocatable-prog-wrapper (Files): Update.
53532         * lib/relocwrapper.c: Update.
53533         * build-aux/install-reloc: Update.
53534         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
53535
53536 2007-06-08  Bruno Haible  <bruno@clisp.org>
53537
53538         Port to uClibc.
53539         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
53540         * lib/fpurge.c (fpurge): Likewise.
53541         * lib/freading.c (freading): Likewise.
53542         * lib/fseeko.c (rpl_fseeko): Likewise.
53543         * lib/fseterr.c (fseterr): Likewise.
53544         * lib/fwriting.c (fwriting): Likewise.
53545         * tests/test-fflush.c (main): Avoid a failure on uClibc.
53546
53547 2007-06-08  Bruno Haible  <bruno@clisp.org>
53548
53549         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
53550         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
53551         * modules/gettext (Files): Add m4/intlmacosx.m4.
53552
53553 2007-06-07  Bruno Haible  <bruno@clisp.org>
53554
53555         * modules/localename-tests: New file.
53556         * tests/test-localename.c: New file.
53557
53558         New module 'localename'.
53559         * lib/localename.h: New file.
53560         * lib/localename.c: New file, from GNU gettext.
53561         * m4/localename.m4: New file.
53562         * modules/localename: New file.
53563
53564 2007-06-07  Bruno Haible  <bruno@clisp.org>
53565
53566         Work around the lack of <wchar.h> on some builds of uClibc.
53567         * doc/headers/wchar.texi: Update.
53568         * lib/wchar_.h: Include <wchar.h> only if it exists.
53569         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
53570         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
53571         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
53572         doesn't exist.
53573         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
53574         * modules/mbfile (Depends-on): Add wchar.
53575         * modules/mbiter (Depends-on): Likewise.
53576         * modules/mbuiter (Depends-on): Likewise.
53577         Reported by Simon Josefsson.
53578
53579 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
53580
53581         Work around problem reported by Steven M. Schweda in
53582         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
53583         Tru64 5.1B with the Compaq compiler environment installed declares
53584         an 'isblank' function but does not define it in the C library.
53585         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
53586         * lib/regex_internal.h (isblank): Likewise.
53587         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
53588         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
53589
53590 2007-06-05  Bruno Haible  <bruno@clisp.org>
53591
53592         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
53593         ia64.
53594         * modules/printf-safe: New file.
53595         * modules/fprintf-posix (Depends-on): Add printf-safe.
53596         * modules/printf-posix (Depends-on): Likewise.
53597         * modules/snprintf-posix (Depends-on): Likewise.
53598         * modules/sprintf-posix (Depends-on): Likewise.
53599         * modules/vasnprintf-posix (Depends-on): Likewise.
53600         * modules/vasprintf-posix (Depends-on): Likewise.
53601         * modules/vfprintf-posix (Depends-on): Likewise.
53602         * modules/vprintf-posix (Depends-on): Likewise.
53603         * modules/vsnprintf-posix (Depends-on): Likewise.
53604         * modules/vsprintf-posix (Depends-on): Likewise.
53605         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
53606         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
53607         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
53608         "no" on i386, x86_64, ia64.
53609         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
53610         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
53611         on i386, x86_64, ia64.
53612         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
53613         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
53614         on i386, x86_64, ia64.
53615         * tests/test-vasnprintf-posix.c: Include float.h.
53616         (LDBL80_WORDS): New macro.
53617         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
53618         on i386, x86_64, ia64.
53619         * tests/test-vasprintf-posix.c: Include float.h.
53620         (LDBL80_WORDS): New macro.
53621         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
53622         on i386, x86_64, ia64.
53623         * tests/test-snprintf-posix.c: Include float.h.
53624         * tests/test-sprintf-posix.c: Likewise.
53625         * tests/test-vsnprintf-posix.c: Likewise.
53626         * tests/test-vsprintf-posix.c: Likewise.
53627
53628 2007-06-05  Bruno Haible  <bruno@clisp.org>
53629
53630         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
53631         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
53632         non-IEEE numbers on i386, x86_64, ia64.
53633         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
53634         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
53635         * tests/test-isnanl.h: Include float.h.
53636         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
53637
53638 2007-06-05  Bruno Haible  <bruno@clisp.org>
53639
53640         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
53641         also the %a / %A. Handle the %a / %A code before this extra handling.
53642
53643 2007-06-05  Bruno Haible  <bruno@clisp.org>
53644
53645         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
53646         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
53647
53648 2007-06-05  Bruno Haible  <bruno@clisp.org>
53649
53650         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
53651         typo in variable name.
53652
53653 2007-06-05  Eric Blake  <ebb9@byu.net>
53654
53655         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
53656         Reported by Simon Josefsson.
53657
53658 2007-06-04  Bruno Haible  <bruno@clisp.org>
53659
53660         Avoid test failures on some PowerPC platforms.
53661         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
53662         Define differently for PowerPC.
53663         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
53664         Reported by Gary V. Vaughan <gary@gnu.org>.
53665
53666 2007-06-02  Bruno Haible  <bruno@clisp.org>
53667
53668         Fix test-stdint failure on FreeBSD/ia64.
53669         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
53670         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
53671         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
53672         * doc/headers/stdint.texi: Update.
53673
53674 2007-06-01  Bruno Haible  <bruno@clisp.org>
53675
53676         * tests/test-binary-io.c (main): Pass a third argument to open().
53677         Reported by Gary V. Vaughan <gary@gnu.org>.
53678
53679 2007-06-01  Bruno Haible  <bruno@clisp.org>
53680
53681         * doc/functions/frexpl.texi: Update for mingw.
53682
53683 2007-06-01  Bruno Haible  <bruno@clisp.org>
53684
53685         * tests/test-lseek.c (main): Disable test of errno for invalid third
53686         argument.
53687         * doc/functions/lseek.texi: Update.
53688         Reported by Gary V. Vaughan <gary@gnu.org>.
53689
53690 2007-05-28  Bruno Haible  <bruno@clisp.org>
53691
53692         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
53693
53694 2007-05-31  Eric Blake  <ebb9@byu.net>
53695
53696         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
53697         cross compiling.
53698
53699 2007-05-30  Eric Blake  <ebb9@byu.net>
53700         and Bruno Haible  <bruno@clisp.org>
53701
53702         Work around mingw test failures exposed by m4-1.4.9b.
53703         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
53704         * tests/test-unistd.c: Disable uid_t and git_t tests for the
53705         moment.
53706
53707 2007-05-30  Bruno Haible  <bruno@clisp.org>
53708
53709         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
53710         assuming that they are closed. Needed on HP-UX 11.
53711
53712 2007-05-29  Bruno Haible  <bruno@clisp.org>
53713
53714         Fix a problem with #include_next.
53715         * lib/dirent_.h: Split the double-inclusion guard.
53716         * lib/fcntl_.h: Likewise.
53717         * lib/float_.h: Likewise.
53718         * lib/iconv_.h: Likewise.
53719         * lib/inttypes_.h: Likewise.
53720         * lib/locale_.h: Likewise.
53721         * lib/math_.h: Likewise.
53722         * lib/netinet_in_.h: Likewise.
53723         * lib/search_.h: Likewise.
53724         * lib/signal_.h: Likewise.
53725         * lib/stdint_.h: Likewise.
53726         * lib/stdio_.h: Likewise.
53727         * lib/stdlib_.h: Likewise.
53728         * lib/string_.h: Likewise.
53729         * lib/sys_select_.h: Likewise.
53730         * lib/sys_socket_.h: Likewise.
53731         * lib/sys_stat_.h: Likewise.
53732         * lib/sys_time_.h: Likewise.
53733         * lib/sysexits_.h: Likewise.
53734         * lib/time_.h: Likewise.
53735         * lib/unistd_.h: Likewise.
53736         * lib/wchar_.h: Likewise.
53737         * lib/wctype_.h: Likewise.
53738
53739 2007-05-29  Bruno Haible  <bruno@clisp.org>
53740
53741         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
53742         for the moment.
53743
53744 2007-05-29  Bruno Haible  <bruno@clisp.org>
53745
53746         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
53747         invocation.
53748         Reported by Eric Blake.
53749
53750 2007-05-29  Bruno Haible  <bruno@clisp.org>
53751
53752         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
53753         compiling case.
53754
53755 2007-05-29  Eric Blake  <ebb9@byu.net>
53756             Bruno Haible  <bruno@clisp.org>
53757
53758         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
53759         cross compiles.
53760
53761 2007-05-28  Eric Blake  <ebb9@byu.net>
53762
53763         * modules/closein-tests (test_closein_LDADD): Support test on
53764         cygwin with libtool.
53765
53766 2007-05-28  Bruno Haible  <bruno@clisp.org>
53767
53768         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
53769         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
53770         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
53771         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
53772         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
53773         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
53774         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
53775         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
53776         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
53777
53778 2007-05-28  Eric Blake  <ebb9@byu.net>
53779
53780         Unconditionally include <config.h> in unit tests.
53781         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
53782         * tests/test-allocsa.c, tests/test-arcfour.c,
53783         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
53784         tests/test-array_list.c, tests/test-array_oset.c,
53785         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
53786         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
53787         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
53788         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
53789         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
53790         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
53791         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
53792         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
53793         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
53794         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
53795         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
53796         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
53797         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
53798         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
53799         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
53800         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
53801         test-md5.c, test-memmem.c, test-printf-posix.c,
53802         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
53803         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
53804         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
53805         test-strcasestr.c, test-striconv.c, test-striconveh.c,
53806         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
53807         test-vasnprintf-posix2.c, test-vasnprintf.c,
53808         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
53809         test-vfprintf-posix.c, test-vprintf-posix.c,
53810         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
53811         test-xvasprintf.c: Likewise.
53812
53813 2007-05-28  Bruno Haible  <bruno@clisp.org>
53814
53815         * gnulib-tool (func_import): Remember the --with-tests command-line
53816         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
53817         Reported by Eric Blake.
53818
53819 2007-05-28  Bruno Haible  <bruno@clisp.org>
53820
53821         * modules/ftell-tests: New file.
53822         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
53823         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
53824
53825         * lib/ftell.c: New file.
53826         * modules/ftell: New file.
53827         * m4/ftell.m4: New file.
53828         * doc/functions/ftell.texi: Update.
53829         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
53830         REPLACE_FTELL.
53831         * lib/stdio_.h (rpl_ftell): New declaration.
53832         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
53833         REPLACE_FTELL.
53834
53835 2007-05-28  Eric Blake  <ebb9@byu.net>
53836
53837         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
53838
53839 2007-05-28  Bruno Haible  <bruno@clisp.org>
53840
53841         * modules/fseek-tests: New file.
53842         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
53843         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
53844
53845         * lib/fseek.c: New file.
53846         * modules/fseek: New file.
53847         * m4/fseek.m4: New file.
53848         * doc/functions/fseek.texi: Update.
53849         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
53850         REPLACE_FSEEK.
53851         * lib/stdio_.h (rpl_fseek): New declaration.
53852         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
53853         REPLACE_FSEEK.
53854
53855 2007-05-28  Bruno Haible  <bruno@clisp.org>
53856
53857         * lib/stdio_.h (fflush): More comments.
53858
53859 2007-05-28  Bruno Haible  <bruno@clisp.org>
53860
53861         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
53862         runtime test.
53863
53864 2007-05-28  Eric Blake  <ebb9@byu.net>
53865
53866         Improve lseek module.
53867         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
53868         * lib/unistd_.h (lseek): Scale back link warning message.
53869         * tests/test-lseek.c: Beef up test.
53870         * tests/test-lseek.sh: Exercise more facets of lseek.
53871         Reported by Bruno Haible.
53872
53873 2007-05-28  Bruno Haible  <bruno@clisp.org>
53874
53875         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
53876         to define.
53877
53878 2007-05-27  Bruno Haible  <bruno@clisp.org>
53879
53880         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
53881
53882 2007-05-27  Bruno Haible  <bruno@clisp.org>
53883
53884         * modules/openmp: New file.
53885         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
53886         Noah Misch.
53887
53888 2007-05-26  Bruno Haible  <bruno@clisp.org>
53889
53890         * modules/chdir-long (Depends-on): Add fchdir.
53891         * modules/chdir-safer (Depends-on): Likewise.
53892         * modules/fts (Depends-on): Likewise.
53893         * modules/fts-lgpl (Depends-on): Likewise.
53894         * modules/openat (Depends-on): Likewise.
53895         * modules/savewd (Depends-on): Likewise.
53896
53897 2007-05-24  Eric Blake  <ebb9@byu.net>
53898
53899         Fix lseek on mingw.
53900         * modules/lseek: New module.
53901         * m4/lseek.m4: New file.
53902         * lib/lseek.c: New file.
53903         * modules/lseek-tests: New file.
53904         * tests/test-lseek.c: New file.
53905         * tests/test-lseek.sh: New file.
53906         * MODULES.html.sh: Document lseek module.
53907         * modules/fflush (Depends-on): Add lseek, fseeko.
53908         * modules/fseeko (Depends-on): Likewise.
53909         * modules/ftello (Depends-on): Likewise.
53910         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
53911         broken.
53912         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
53913         broken.
53914         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
53915         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
53916         * lib/ftello.c (rpl_ftello): Likewise.
53917         * tests/test-fseeko.c (main): Test this.
53918         * tests/test-fseeko.sh: Likewise.
53919         * tests/test-ftello.c (main): Likewise.
53920         * tests/test-ftello.sh: Likewise.
53921         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
53922         implies replacing fseek.
53923         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
53924         HAVE_FTELLO.
53925         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
53926         * modules/unistd (Makefile.am): Likewise.
53927         * lib/unistd_.h (lseek): Declare a replacement.
53928         * doc/functions/lseek.texi (lseek): Document this fix.
53929         * doc/functions/fseek.texi (fseek): Likewise.
53930         * doc/functions/ftell.texi (ftell): Likewise.
53931
53932 2007-05-24  Bruno Haible  <bruno@clisp.org>
53933
53934         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
53935         in the printed representation of a NaN.
53936         * tests/test-vasprintf-posix.c (test_function): Likewise.
53937         * tests/test-snprintf-posix.h (test_function): Likewise.
53938         * tests/test-sprintf-posix.h (test_function): Likewise.
53939         Reported by Eric Blake.
53940
53941 2007-05-23  Eric Blake  <ebb9@byu.net>
53942
53943         Fix fseeko/ftello on cygwin 1.5.24.
53944         * doc/functions/fseeko.texi (fseeko): Document the fix.
53945         * doc/functions/ftello.texi (ftello): Document the fix.
53946         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
53947         * doc/functions/stdout.text (stdout): New file.
53948         * doc/functions/stderr.text (stderr): New file.
53949         * doc/gnulib.texi (Function Substitutes): Use new files.
53950         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
53951         prior to 1.7.0.
53952         * tests/test-ftello.c (main): Likewise for ftello.
53953         * tests/test-fseeko.sh: New file.
53954         * tests/test-ftello.sh: New file.
53955         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
53956         with seekable stdin.
53957         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
53958         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
53959         (gl_REPLACE_FSEEKO): New macro.
53960         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
53961         * modules/fseeko (Files): Distribute fseeko.c.
53962         * modules/ftello (Files): Distribute ftello.c.
53963         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
53964         mode.
53965         * lib/ftello.c (rpl_ftello): New file.
53966         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
53967         fseeko, ftello.
53968         (gl_STDIN_LARGE_OFFSET): New macro.
53969         * modules/stdio (Makefile.am): Perform the replacement.
53970         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
53971
53972 2007-05-23  Bruno Haible  <bruno@clisp.org>
53973
53974         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
53975         GNULIB_POSIXCHECK is defined.
53976
53977 2007-05-21  Bruno Haible  <bruno@clisp.org>
53978
53979         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
53980         Check also the output for NaN arguments. When cross-compiling, guess
53981         no on IRIX.
53982         * lib/vasnprintf.c: Update comments.
53983         * tests/test-vasnprintf-posix.c (strisnan): New function.
53984         (test_function): Use it.
53985         * tests/test-vasprintf-posix.c (strisnan): New function.
53986         (test_function): Use it.
53987         * tests/test-snprintf-posix.h (strisnan): New function.
53988         (test_function): Use it.
53989         * tests/test-sprintf-posix.h (strisnan): New function.
53990         (test_function): Use it.
53991         Reported by Eric Blake.
53992
53993 2007-05-20  Bruno Haible  <bruno@clisp.org>
53994
53995         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
53996         numbers that fails on BeOS.
53997         * doc/functions/frexpl.texi: Update.
53998
53999 2007-05-20  Jim Meyering  <jim@meyering.net>
54000
54001         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
54002         forced upon us by glibc-2.6.
54003
54004 2007-05-20  Bruno Haible  <bruno@clisp.org>
54005
54006         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
54007         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
54008         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
54009         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
54010         NEED_PRINTF_INFINITE.
54011         (is_infinitel): New function.
54012         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
54013         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
54014         gl_PREREQ_VASNPRINTF_INFINITE.
54015         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
54016         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
54017         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
54018         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
54019         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
54020         gl_PREREQ_VASNPRINTF_INFINITE.
54021         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
54022         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
54023         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
54024         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
54025         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
54026         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
54027         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
54028         * doc/functions/fprintf.texi: Update.
54029         * doc/functions/printf.texi: Update.
54030         * doc/functions/snprintf.texi: Update.
54031         * doc/functions/sprintf.texi: Update.
54032         * doc/functions/vfprintf.texi: Update.
54033         * doc/functions/vprintf.texi: Update.
54034         * doc/functions/vsnprintf.texi: Update.
54035         * doc/functions/vsprintf.texi: Update.
54036
54037 2007-05-20  Bruno Haible  <bruno@clisp.org>
54038
54039         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
54040         was not found in libc.
54041         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
54042
54043 2007-05-20  Bruno Haible  <bruno@clisp.org>
54044
54045         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
54046         printed as "-nan" instead of "nan".
54047         * tests/test-vasprintf-posix.c (test_function): Likewise.
54048         * tests/test-snprintf-posix.h (test_function): Likewise.
54049         * tests/test-sprintf-posix.h (test_function): Likewise.
54050         Needed for HP-UX 11.
54051
54052 2007-05-20  Jim Meyering  <jim@meyering.net>
54053
54054         Fix buggy test for the fchownat-deref bug.
54055         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
54056         symlink required for the run-test.  Without it, this test would
54057         always declare that fchownat doesn't work, and client code would
54058         unnecessarily use the replacement function with fixed libc.
54059         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
54060         Reported by Greg Schafer.
54061
54062 2007-05-19  Bruno Haible  <bruno@clisp.org>
54063
54064         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
54065         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
54066         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
54067         Needed for IRIX 6.5 and Solaris 2.5.1.
54068
54069 2007-05-19  Bruno Haible  <bruno@clisp.org>
54070
54071         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
54072         (test_function): Skip tests involving -0.0 on platforms where
54073         -0.0 = 0.0.
54074         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
54075         (test_function): Skip tests involving -0.0 on platforms where
54076         -0.0 = 0.0.
54077         * tests/test-snprintf-posix.h (have_minus_zero): New function.
54078         (test_function): Skip tests involving -0.0 on platforms where
54079         -0.0 = 0.0.
54080         * tests/test-sprintf-posix.h (have_minus_zero): New function.
54081         (test_function): Skip tests involving -0.0 on platforms where
54082         -0.0 = 0.0.
54083         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
54084         tests.
54085         * tests/test-printf-posix.h (test_function): Likewise.
54086         * tests/test-printf-posix.output: Remove all -0.0 related results.
54087         Needed for IRIX 6.5.
54088
54089 2007-05-19  Bruno Haible  <bruno@clisp.org>
54090
54091         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
54092         printed as "nan0x7fffffff" instead of "nan".
54093         * tests/test-vasprintf-posix.c (test_function): Likewise.
54094         * tests/test-snprintf-posix.h (test_function): Likewise.
54095         * tests/test-sprintf-posix.h (test_function): Likewise.
54096         * tests/test-fprintf-posix.h (NaN): Remove macro.
54097         (test_function): Remove all NaN related tests.
54098         * tests/test-printf-posix.h (NaN): Remove macro.
54099         (test_function): Remove all NaN related tests.
54100         * tests/test-printf-posix.output: Remove all NaN related results.
54101         Needed for IRIX 6.5.
54102
54103 2007-05-19  Bruno Haible  <bruno@clisp.org>
54104
54105         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
54106         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
54107
54108 2007-05-19  Bruno Haible  <bruno@clisp.org>
54109
54110         * lib/float_.h: New file.
54111         * m4/float_h.m4: New file.
54112         * modules/float: New file.
54113         * modules/isnanl (Dependencies): Add float.
54114         * modules/isnanl-nolibm (Dependencies): Likewise.
54115         * modules/mathl (Dependencies): Likewise.
54116         * modules/printf-frexpl (Dependencies): Likewise.
54117         * modules/signbit (Dependencies): Likewise.
54118         * modules/vasnprintf (Dependencies): Likewise.
54119         * doc/headers/float.texi: Update.
54120
54121 2007-05-19  Jim Meyering  <jim@meyering.net>
54122
54123         * lib/utimens.c (gl_futimens): Rename from futimens,
54124         now that glibc-2.6 declares futimens.
54125         * lib/utimens.h: Likewise.
54126
54127 2007-05-19  Bruno Haible  <bruno@clisp.org>
54128
54129         Avoid test failures on mingw.
54130         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
54131         * tests/test-printf-posix.sh: Likewise.
54132         * tests/test-vfprintf-posix.sh: Likewise.
54133         * tests/test-vprintf-posix.sh: Likewise.
54134
54135 2007-05-19  Bruno Haible  <bruno@clisp.org>
54136
54137         Fix *printf result for NaN, Inf, -0.0 on mingw.
54138         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
54139         * lib/vasnprintf.c: Include math.h and isnan.h.
54140         (is_infinite_or_zero): New function.
54141         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
54142         values in the %f, %F, %e, %E, %g, %G directives.
54143         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
54144         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
54145         gl_PRINTF_INFINITE and test its result. Invoke
54146         gl_PREREQ_VASNPRINTF_INFINITE.
54147         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
54148         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
54149         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
54150         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
54151         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
54152         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
54153         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
54154         * doc/functions/fprintf.texi: Update.
54155         * doc/functions/printf.texi: Update.
54156         * doc/functions/snprintf.texi: Update.
54157         * doc/functions/sprintf.texi: Update.
54158         * doc/functions/vfprintf.texi: Update.
54159         * doc/functions/vprintf.texi: Update.
54160         * doc/functions/vsnprintf.texi: Update.
54161         * doc/functions/vsprintf.texi: Update.
54162
54163 2007-05-19  Bruno Haible  <bruno@clisp.org>
54164
54165         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
54166         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
54167         Instead of multiplying with 10^k, set extra_zeroes to k.
54168         (scale10_round_long_double): Remove function.
54169
54170 2007-05-18  Bruno Haible  <bruno@clisp.org>
54171
54172         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
54173         introduced on 2007-05-06.
54174
54175 2007-05-18  Bruno Haible  <bruno@clisp.org>
54176
54177         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
54178         %g directives.
54179         * tests/test-vasprintf-posix.c (test_function): Likewise.
54180         * tests/test-snprintf-posix.h (test_function): Likewise.
54181         * tests/test-sprintf-posix.h (test_function): Likewise.
54182
54183 2007-05-18  Bruno Haible  <bruno@clisp.org>
54184
54185         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
54186         (strmatch): New function.
54187         (test_function): Test the %f directive on numbers of various exponents.
54188         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
54189         (strmatch): New function.
54190         (test_function): Test the %f directive on numbers of various exponents.
54191         * tests/test-snprintf-posix.h (strmatch): New function.
54192         (test_function): Test the %f directive on numbers of various exponents.
54193         * tests/test-sprintf-posix.h (strmatch): New function.
54194         (test_function): Test the %f directive on numbers of various exponents.
54195         * tests/test-snprintf-posix.c (SIZEOF): New macro.
54196         * tests/test-sprintf-posix.c (SIZEOF): New macro.
54197         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
54198         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
54199
54200 2007-05-18  Bruno Haible  <bruno@clisp.org>
54201
54202         Add support for 'long double' number output.
54203         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
54204         * lib/vasnprintf.c: Include math.h and float+.h.
54205         (mp_limb_t): New type.
54206         (GMP_LIMB_BITS): New macro.
54207         (mp_twolimb_t): New type.
54208         (GMP_TWOLIMB_BITS): New macro.
54209         (mpn_t): New type.
54210         (multiply, divide, convert_to_decimal, decode_long_double,
54211         scale10_round_long_double, scale10_round_decimal_long_double,
54212         floorlog10l): New functions.
54213         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
54214         for the %f, %F, %e, %E, %g, %G directives.
54215         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
54216         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
54217         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
54218         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
54219         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
54220         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
54221         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
54222         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
54223         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
54224         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
54225         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
54226         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
54227         * modules/snprintf-posix (Depends-on): Likewise.
54228         * modules/sprintf-posix (Depends-on): Likewise.
54229         * modules/vasnprintf-posix (Depends-on): Likewise.
54230         * modules/vasprintf-posix (Depends-on): Likewise.
54231         * modules/vfprintf-posix (Depends-on): Likewise.
54232         * modules/vsnprintf-posix (Depends-on): Likewise.
54233         * modules/vsprintf-posix (Depends-on): Likewise.
54234         * modules/vasnprintf (Files): Add lib/float+.h.
54235         * doc/functions/fprintf.texi: Update.
54236         * doc/functions/printf.texi: Update.
54237         * doc/functions/snprintf.texi: Update.
54238         * doc/functions/sprintf.texi: Update.
54239         * doc/functions/vfprintf.texi: Update.
54240         * doc/functions/vprintf.texi: Update.
54241         * doc/functions/vsnprintf.texi: Update.
54242         * doc/functions/vsprintf.texi: Update.
54243
54244 2007-05-18  Bruno Haible  <bruno@clisp.org>
54245
54246         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
54247
54248 2007-05-18  Bruno Haible  <bruno@clisp.org>
54249
54250         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
54251         for printing 64-bit integers. Needed for mingw.
54252
54253 2007-05-18  Bruno Haible  <bruno@clisp.org>
54254
54255         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
54256         gl_FUNC_FREXPL_WORKS.
54257         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
54258
54259 2007-05-18  Bruno Haible  <bruno@clisp.org>
54260
54261         * modules/frexpl-nolibm-tests: New file.
54262
54263         * modules/frexpl-nolibm: New file.
54264         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
54265
54266 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
54267
54268         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
54269         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
54270         GCC 4.2, which otherwise issues a lot of warnings.
54271         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
54272         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
54273         Likewise.
54274         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
54275         * modules/iconv_open (iconv.h): Likewise.
54276         * modules/locale (locale.h): Likewise.
54277         * modules/netinet_in (netinet/in.h): Likewise.
54278         * modules/sys_select (sys_select.h): Likewise.
54279         * modules/sys_socket (sys/socket.h): Likewise.
54280         * modules/sys_stat (sys/stat.h): Likewise.
54281         * modules/sysexits (sysexits.h): Likewise.
54282         * modules/unistd (unistd.h): Likewise.
54283
54284 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54285
54286         * modules/closein-tests (Makefile.am): Distribute
54287         `test-closein.sh'.
54288
54289 2007-05-17  Bruno Haible  <bruno@clisp.org>
54290
54291         * tests/test-printf-posix.output: Renamed from
54292         tests/test-fprintf-posix.out.
54293         * modules/fprintf-posix-tests: Update.
54294         * modules/printf-posix-tests: Update.
54295         * modules/vfprintf-posix-tests: Update.
54296         * modules/vprintf-posix-tests: Update.
54297         * tests/test-fprintf-posix.sh: Update.
54298         * tests/test-printf-posix.sh: Update.
54299         * tests/test-vfprintf-posix.sh: Update.
54300         * tests/test-vprintf-posix.sh: Update.
54301         Reported by Ralf Wildenhues.
54302
54303 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
54304
54305         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
54306         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
54307         GCC 4.2, which otherwise issues a lot of warnings.
54308         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
54309         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
54310         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
54311         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
54312         it should no longer be needed.
54313         * lib/string_.h: Likewise.
54314         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
54315         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
54316         * modules/inttypes (inttypes.h): Likewise.
54317         * modules/math (math.h): Likewise.
54318         * modules/search (search.h): Likewise.
54319         * modules/signal (signal.h): Likewise.
54320         * modules/stdint (stdint.h): Likewise.
54321         * modules/stdio (stdio.h): Likewise.
54322         * modules/stdlib (stdlib.h): Likewise.
54323         * modules/string (string.h): Likewise.
54324         * modules/sys_time (sys/time.h): Likewise.
54325         * modules/time (time.h): Likewise.
54326         * modules/wchar (wchar.h): Likewise.
54327         * modules/wctype (wtype.h): Likewise.
54328
54329 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
54330
54331         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
54332
54333 2007-05-13  Bruno Haible  <bruno@clisp.org>
54334
54335         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
54336         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
54337         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
54338         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
54339         (gl_PREREQ_STRTOK_R): Don't require it here.
54340
54341 2007-05-13  Bruno Haible  <bruno@clisp.org>
54342
54343         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
54344         when used in C++ mode.
54345
54346 2007-05-12  Bruno Haible  <bruno@clisp.org>
54347
54348         * lib/linebuffer.h: Tweak doc.
54349         * lib/linebuffer.c: Likewise.
54350
54351 2007-05-12  James Youngman  <jay@gnu.org>
54352
54353         * lib/linebuffer.c (readlinebuffer_delim): New function,
54354         like readlinebuffer, but use a caller-specified delimiter.
54355         (readlinebuffer): Just call readlinebuffer_delim with '\n'
54356         as the delimiter.
54357         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
54358
54359 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
54360
54361         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
54362         * modules/openat (Files): Remove openat-die.c.
54363         (Depends-on): Add openat-die.
54364         * modules/openat-die: New module.
54365
54366 2007-05-06  Bruno Haible  <bruno@clisp.org>
54367
54368         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
54369         Update with info about Cygwin.
54370         * doc/functions/fprintf.texi: Update.
54371         * doc/functions/printf.texi: Update.
54372         * doc/functions/snprintf.texi: Update.
54373         * doc/functions/sprintf.texi: Update.
54374         * doc/functions/vfprintf.texi: Update.
54375         * doc/functions/vprintf.texi: Update.
54376         * doc/functions/vsnprintf.texi: Update.
54377         * doc/functions/vsprintf.texi: Update.
54378         Reported by Eric Blake.
54379
54380 2007-05-06  Bruno Haible  <bruno@clisp.org>
54381
54382         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
54383         padding ourselves for the floating-point directives.
54384         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
54385         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
54386         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
54387         gl_PRINTF_FLAG_ZERO and test its result. Invoke
54388         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
54389         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
54390         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
54391         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
54392         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
54393         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
54394         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
54395         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
54396         * tests/test-snprintf-posix.h (test_function): Also check the width
54397         and some flags in the %f directive.
54398         * tests/test-sprintf-posix.h (test_function): Likewise.
54399         * tests/test-vasnprintf-posix.c (test_function): Likewise.
54400         * tests/test-vasprintf-posix.c (test_function): Likewise.
54401         * doc/functions/fprintf.texi: Update.
54402         * doc/functions/printf.texi: Update.
54403         * doc/functions/snprintf.texi: Update.
54404         * doc/functions/sprintf.texi: Update.
54405         * doc/functions/vfprintf.texi: Update.
54406         * doc/functions/vprintf.texi: Update.
54407         * doc/functions/vsnprintf.texi: Update.
54408         * doc/functions/vsprintf.texi: Update.
54409
54410 2007-05-06  Bruno Haible  <bruno@clisp.org>
54411
54412         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
54413         pass the ' flag character to sprintf or snprintf.
54414         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
54415         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
54416         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
54417         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
54418         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
54419         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
54420         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
54421         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
54422         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
54423         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
54424         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
54425         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
54426         * tests/test-snprintf-posix.h (test_function): Also check the grouping
54427         flag.
54428         * tests/test-sprintf-posix.h (test_function): Likewise.
54429         * tests/test-vasnprintf-posix.c (test_function): Likewise.
54430         * tests/test-vasprintf-posix.c (test_function): Likewise.
54431         * doc/functions/fprintf.texi: Update.
54432         * doc/functions/printf.texi: Update.
54433         * doc/functions/snprintf.texi: Update.
54434         * doc/functions/sprintf.texi: Update.
54435         * doc/functions/vfprintf.texi: Update.
54436         * doc/functions/vprintf.texi: Update.
54437         * doc/functions/vsnprintf.texi: Update.
54438         * doc/functions/vsprintf.texi: Update.
54439
54440 2007-05-01  Bruno Haible  <bruno@clisp.org>
54441
54442         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
54443
54444 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
54445
54446         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
54447         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
54448
54449 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
54450
54451         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
54452         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
54453         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
54454
54455 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
54456
54457         * lib/argp-help.c (struct hol_entry): New member `ord'.
54458         (HOL_ENTRY_PTRCMP): Use ord for comparison
54459         (hol_sort): Initialize ord.
54460
54461 2007-05-01  Bruno Haible  <bruno@clisp.org>
54462
54463         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
54464         Reported by Eric Blake.
54465         * doc/gnulib.texi (Function Substitutes): Update.
54466
54467 2007-05-01  Bruno Haible  <bruno@clisp.org>
54468
54469         * doc/functions.texi: Remove file, now redundant through
54470         doc/functions/*.texi.
54471
54472 2007-05-01  Bruno Haible  <bruno@clisp.org>
54473
54474         * modules/argp (Depends-on): Add sleep.
54475
54476 2007-05-01  Bruno Haible  <bruno@clisp.org>
54477
54478         * modules/sleep-tests: New file.
54479         * tests/test-sleep.c: New file.
54480
54481         * modules/sleep: New file.
54482         * lib/sleep.c: New file.
54483         * m4/sleep.m4: New file.
54484         * lib/unistd_.h (sleep): New declaration.
54485         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
54486         HAVE_SLEEP.
54487         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
54488         * doc/functions/sleep.texi: Document the sleep module.
54489
54490 2007-05-01  Bruno Haible  <bruno@clisp.org>
54491
54492         * lib/sigprocmask.h: Remove file.
54493         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
54494         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
54495         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
54496         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
54497         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
54498         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
54499         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
54500         HAVE_SIGSET_T as a shell variable.
54501         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
54502         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
54503         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
54504         (Depends-on): Add signal. Remove verify.
54505         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
54506         (Include): Mention <signal.h> instead of sigprocmask.h.
54507         * NEWS: Mention the change.
54508         * lib/fatal-signal.c: Don't include sigprocmask.h.
54509
54510 2007-05-01  Bruno Haible  <bruno@clisp.org>
54511
54512         * modules/signal: New file.
54513         * lib/signal_.h: New file.
54514         * m4/signal_h.m4: New file.
54515
54516 2007-05-01  Bruno Haible  <bruno@clisp.org>
54517
54518         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
54519         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
54520         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
54521         HAVE_WCTYPE_CTMP_BUG into wctype.h.
54522
54523 2007-05-01  Bruno Haible  <bruno@clisp.org>
54524
54525         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
54526         configure time.
54527         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
54528         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
54529         * modules/sys_stat (Makefile.am): Substitute their values into
54530         sys/stat.h.
54531
54532 2007-05-01  Bruno Haible  <bruno@clisp.org>
54533
54534         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
54535         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
54536         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
54537
54538 2007-05-01  Bruno Haible  <bruno@clisp.org>
54539
54540         * doc/header/assert.texi: Undo last change: don't mention the gnulib
54541         'assert' module here.
54542
54543 2007-05-01  Bruno Haible  <bruno@clisp.org>
54544
54545         * doc/functions/*.texi: New files.
54546         * doc/functions/google-ranking.txt: New file.
54547         * doc/gnulib.texi (Function Substitutes): New chapter.
54548         (ctime, inet_ntoa): Remove sections.
54549         * doc/ctime.texi: Remove file.
54550         * doc/inet_ntoa.texi: Remove file.
54551         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
54552         dependencies.
54553         (%.info): New rule, specifying a --reference-limit.
54554
54555 2007-05-01  Bruno Haible  <bruno@clisp.org>
54556
54557         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
54558
54559 2007-05-01  Bruno Haible  <bruno@clisp.org>
54560
54561         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
54562         the portability of 'mkdir' to mingw systems.
54563
54564 2007-05-01  Bruno Haible  <bruno@clisp.org>
54565
54566         * doc/headers/google-ranking.txt: New file.
54567
54568 2007-04-30  Eric Blake  <ebb9@byu.net>
54569
54570         Prefer fseeko to fseek.
54571         * modules/getpass (Depends-on): Add fseeko.
54572         * lib/getpass.c (getpass): Use fseeko, not fseek.
54573
54574 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
54575
54576         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
54577         assumes the sorting is stable, while most qsort implementations
54578         are not.  Use argument addresses to ensure they never compare as
54579         equal.
54580
54581         * tests/test-argp-2.sh (usage-indent test): Fix output
54582         (func_compare): Restore diff options
54583         * tests/test-argp.c: Restore #include "progname.h"
54584
54585 2007-04-29  Bruno Haible  <bruno@clisp.org>
54586
54587         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
54588         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
54589         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
54590         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
54591         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
54592         (configure.ac): Define CHECK_SNPRINTF_POSIX.
54593         (TESTS, check_PROGRAMS): Add test-snprintf.
54594         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
54595         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
54596         (TESTS, check_PROGRAMS): Add test-vsnprintf.
54597         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
54598         assertions that fail on HP-UX, OSF/1, or IRIX.
54599         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
54600
54601 2007-04-29  Bruno Haible  <bruno@clisp.org>
54602
54603         * MODULES.html.sh (posix_functions): Remove 'contents'.
54604
54605 2007-04-29  Karl Berry  <karl@gnu.org>
54606
54607         * config/srclist.txt (gendocs_template_min): new entry.
54608
54609 2007-04-29  Bruno Haible  <bruno@clisp.org>
54610
54611         Work around fpurge bug on BSD systems.
54612         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
54613         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
54614         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
54615         fpurge to rpl_fpurge if the system already has this function.
54616         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
54617         the case where the system already has this function. Correct invariants
54618         on BSD systems.
54619         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
54620         BSD systems.
54621
54622 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
54623
54624         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
54625         proposed by Sven Verdoolaege.
54626
54627         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
54628         options.
54629         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
54630         (usage and help tests): Update
54631
54632 2007-04-29  Bruno Haible  <bruno@clisp.org>
54633
54634         * tests/test-fflush.c (main): Use a file of size 17, not 10.
54635         Print more information in case of failure. Disable a test on BeOS.
54636
54637 2007-04-29  Bruno Haible  <bruno@clisp.org>
54638
54639         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
54640         This helps debugging on systems on which no gdb is available.
54641
54642 2007-04-29  Bruno Haible  <bruno@clisp.org>
54643
54644         * lib/freading.h: Improve comments.
54645         * lib/fwriting.h: Likewise.
54646         * tests/test-freading.c (main): Don't check freading immediately after
54647         repositioning. Needed for glibc.
54648
54649 2007-04-29  Bruno Haible  <bruno@clisp.org>
54650
54651         * lib/freading.c (freading): Trivial simplification.
54652
54653 2007-04-28  Bruno Haible  <bruno@clisp.org>
54654
54655         * tests/test-fwriting.c (main): Also test the interaction between
54656         fflush and fwriting.
54657         * modules/fwriting-tests (Depends-on): Add fflush.
54658
54659         * tests/test-freading.c (main): Also test the interaction between
54660         fflush and freading.
54661         * modules/freading-tests (Depends-on): Add fflush.
54662
54663 2007-04-28  Bruno Haible  <bruno@clisp.org>
54664
54665         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
54666         fseeko and ftello.
54667         Suggested by Eric Blake.
54668
54669 2007-04-28  Jim Meyering  <jim@meyering.net>
54670
54671         Avoid false-negative in gl_STDINT_H's C99 conformance test.
54672         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
54673         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
54674
54675 2007-04-27  Eric Blake  <ebb9@byu.net>
54676
54677         * doc/headers/assert.texi (assert.h): Document assert module use.
54678
54679 2007-04-27  Bruno Haible  <bruno@clisp.org>
54680
54681         * doc/headers/*.texi: New files.
54682         * doc/gnulib.texi (Header File Substitutes): New chapter.
54683         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
54684         dependencies.
54685         (standards.info ,standards.html, standards.dvi): Update dependencies.
54686         (mostlyclean, clean): New targets.
54687
54688 2007-04-27  Bruno Haible  <bruno@clisp.org>
54689
54690         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
54691         * modules/sysexits (Files, Makefile.am): Update.
54692
54693         * lib/sys_socket_.h: Renamed from lib/socket_.h.
54694         * modules/sys_socket (Files, Makefile.am): Update.
54695
54696         * lib/sys_stat_.h: Renamed from lib/stat_.h.
54697         * modules/sys_stat (Files, Makefile.am): Update.
54698
54699 2007-04-27  Eric Blake  <ebb9@byu.net>
54700
54701         * lib/freading.h: Improve comments.
54702         * lib/fwriting.h: Likewise.
54703         * lib/fflush.c: Likewise.
54704
54705         Fix closein for mingw.
54706         * modules/closein-tests: Add tests for closein.
54707         * tests/test-closein.c: New file.
54708         * tests/test-closein.sh: Likewise.
54709         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
54710         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
54711
54712 2007-04-27  Bruno Haible  <bruno@clisp.org>
54713
54714         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
54715         version is < 6.
54716         * lib/math_.h [__DECC]: Likewise.
54717         * lib/stdio_.h [__DECC]: Likewise.
54718         * lib/stdlib_.h [__DECC]: Likewise.
54719         * lib/string_.h [__DECC]: Likewise.
54720         * lib/time_.h [__DECC]: Likewise.
54721         * lib/wchar_.h [__DECC]: Likewise.
54722         * lib/wctype_.h [__DECC]: Likewise.
54723
54724 2007-04-27  Bruno Haible  <bruno@clisp.org>
54725
54726         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
54727
54728 2007-04-27  Bruno Haible  <bruno@clisp.org>
54729
54730         * lib/fflush.c: Add comments.
54731         * modules/fpurge-tests (Depends-on): Add fflush.
54732         * modules/freadable-tests (Depends-on): Likewise.
54733         * modules/fwritable-tests (Depends-on): Likewise.
54734
54735 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
54736
54737         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
54738         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
54739         Report by Bruno Haible <bruno@clisp.org>.
54740
54741 2007-04-26  Eric Blake  <ebb9@byu.net>
54742
54743         Fix fflush on mingw.
54744         * modules/fflush (Depends-on): Add freading.
54745         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
54746         but unread data.
54747
54748 2007-04-26  Eric Blake  <ebb9@byu.net>
54749         and Bruno Haible  <bruno@clisp.org>
54750
54751         Implement freading and fwriting.
54752         * lib/freading.c: New file.
54753         * lib/freading.h: Likewise.
54754         * m4/freading.m4: Likewise.
54755         * modules/freading: Likewise.
54756         * modules/freading-tests: Likewise.
54757         * tests/test-freading.c: Likewise.
54758         * lib/fwriting.c: New file.
54759         * lib/fwriting.h: Likewise.
54760         * m4/fwriting.m4: Likewise.
54761         * modules/fwriting: Likewise.
54762         * modules/fwriting-tests: Likewise.
54763         * tests/test-fwriting.c: Likewise.
54764         * MODULES.html.sh (File stream based Input/Output): Mention them.
54765
54766 2007-04-26  Bruno Haible  <bruno@clisp.org>
54767
54768         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
54769         'long' when we assume it.
54770         Suggested by Eric Blake.
54771
54772 2007-04-26  Bruno Haible  <bruno@clisp.org>
54773
54774         Ensure fseeko, ftello are declared on glibc systems.
54775         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
54776         * modules/fseeko (configure.ac-early): Likewise.
54777         * modules/ftello (configure.ac-early): Likewise.
54778         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
54779         AC_FUNC_FSEEKO for this.
54780         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
54781         (gl_CHECK_FSEEKO): Remove macro.
54782
54783 2007-04-26  Bruno Haible  <bruno@clisp.org>
54784
54785         * tests/test-fflush.c (main): Also check the ftell result after
54786         fflush and fseek/fseeko.
54787         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
54788         file descriptor position cache in the stream.
54789         * lib/fseeko.c (rpl_fseeko): Likewise.
54790
54791 2007-04-26  Bruno Haible  <bruno@clisp.org>
54792
54793         * modules/fflush-tests (Depends-on): Add fseeko.
54794
54795 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
54796             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54797
54798         * lib/argz_.h: ensure error_t definition is obtained in same
54799         mechanism system argz.h would have.
54800         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
54801         argz facilities are known bad.  Err on the side of caution if
54802         cross-compiling.
54803
54804 2007-04-25  Eric Blake  <ebb9@byu.net>
54805
54806         * lib/fpurge.c (includes): Use stdlib.h for free.
54807         * tests/test-fflush.c (main): Also test fflush-fseeko.
54808
54809 2007-04-25  Bruno Haible  <bruno@clisp.org>
54810
54811         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
54812         * lib/fseeko.c: New file.
54813         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
54814         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
54815         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
54816         gl_FUNC_FSEEKO.
54817         (gl_FUNC_FSEEKO): Invoke it.
54818         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
54819         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
54820         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
54821
54822 2007-04-25  Bruno Haible  <bruno@clisp.org>
54823
54824         * modules/fflush (Depends-on): Add ftello.
54825
54826 2007-04-25  Bruno Haible  <bruno@clisp.org>
54827
54828         * modules/ftello-tests: New file.
54829         * tests/test-ftello.c: New file.
54830
54831         * modules/ftello: New file.
54832         * m4/ftello.m4: New file.
54833         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
54834         HAVE_FTELLO.
54835         * lib/stdio_.h (ftello): New declaration.
54836         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
54837         HAVE_FTELLO.
54838
54839 2007-04-25  Bruno Haible  <bruno@clisp.org>
54840
54841         * modules/fseeko-tests: New file.
54842         * tests/test-fseeko.c: New file.
54843
54844         * modules/fseeko: New file.
54845         * m4/fseeko.m4: New file.
54846         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
54847         HAVE_FSEEKO.
54848         * lib/stdio_.h (fseeko): New declaration.
54849         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
54850         HAVE_FSEEKO.
54851
54852 2007-04-25  Bruno Haible  <bruno@clisp.org>
54853
54854         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
54855
54856 2007-04-25  Bruno Haible  <bruno@clisp.org>
54857
54858         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
54859         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
54860         * tests/test-unistd.c: Likewise.
54861         * tests/test-fcntl.c: Likewise.
54862
54863 2007-04-23  Eric Blake  <ebb9@byu.net>
54864
54865         * lib/fflush.c: Fix missing include.
54866         Reported by Bruno Haible.
54867
54868 2007-04-23  Bruno Haible  <bruno@clisp.org>
54869
54870         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
54871         Reported by Eric Blake.
54872
54873 2007-04-23  Bruno Haible  <bruno@clisp.org>
54874
54875         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
54876
54877 2007-04-23  Bruno Haible  <bruno@clisp.org>
54878
54879         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
54880
54881 2007-04-23  Bruno Haible  <bruno@clisp.org>
54882
54883         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
54884         Needed on HP-UX 11.
54885
54886 2007-04-16  Eric Blake  <ebb9@byu.net>
54887
54888         Make fflush rely on fpurge.
54889         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
54890         open coding all variants.
54891         * modules/fflush (Depends-on): Add fpurge and unistd.
54892         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
54893         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
54894
54895         Fix --with-tests compilation on cygwin.
54896         * modules/argmatch-tests (Makefile.am): List gnulib library first
54897         in LDADD.
54898         * modules/argp-tests (Makefile.am): Likewise.
54899         * modules/array-list-tests (Makefile.am): Likewise.
54900         * modules/array-oset-tests (Makefile.am): Likewise.
54901         * modules/avltree-list-tests (Makefile.am): Likewise.
54902         * modules/avltree-oset-tests (Makefile.am): Likewise.
54903         * modules/avltreehash-list-tests (Makefile.am): Likewise.
54904         * modules/carray-list-tests (Makefile.am): Likewise.
54905         * modules/dirname-tests (Makefile.am): Likewise.
54906         * modules/frexp-tests (Makefile.am): Likewise.
54907         * modules/isnanl-tests (Makefile.am): Likewise.
54908         * modules/linked-list-tests (Makefile.am): Likewise.
54909         * modules/linkedhash-list-tests (Makefile.am): Likewise.
54910         * modules/lock-tests (Makefile.am): Likewise.
54911         * modules/rbtree-list-tests (Makefile.am): Likewise.
54912         * modules/rbtree-oset-tests (Makefile.am): Likewise.
54913         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
54914         * modules/tls-tests (Makefile.am): Likewise.
54915         * modules/tsearch-tests (Makefile.am): Likewise.
54916         * modules/xvasprintf-tests (Makefile.am): Likewise.
54917
54918         Fix fpurge for cygwin.
54919         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
54920         value.
54921         * modules/fpurge-tests (Depends-on): Clean up trash.
54922
54923 2007-04-16  Simon Josefsson  <simon@josefsson.org>
54924
54925         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
54926
54927         * m4/autobuild.m4: Re-indent.
54928
54929 2007-04-13  Bruno Haible  <bruno@clisp.org>
54930
54931         * modules/fpurge-tests: New file.
54932         * tests/test-fpurge.c: New file.
54933
54934         * modules/fpurge: New file.
54935         * lib/fpurge.h: New file.
54936         * lib/fpurge.c: New file.
54937         * m4/fpurge.m4: New file.
54938
54939 2007-04-13  Bruno Haible  <bruno@clisp.org>
54940
54941         * modules/fbufmode-tests: New file.
54942         * tests/test-fbufmode.c: New file.
54943
54944         * modules/fbufmode: New file.
54945         * lib/fbufmode.h: New file.
54946         * lib/fbufmode.c: New file.
54947         * m4/fbufmode.m4: New file.
54948
54949 2007-04-13  Bruno Haible  <bruno@clisp.org>
54950
54951         * modules/fwritable-tests: New file.
54952         * tests/test-fwritable.c: New file.
54953
54954         * modules/fwritable: New file.
54955         * lib/fwritable.h: New file.
54956         * lib/fwritable.c: New file.
54957         * m4/fwritable.m4: New file.
54958
54959 2007-04-13  Bruno Haible  <bruno@clisp.org>
54960
54961         * modules/freadable-tests: New file.
54962         * tests/test-freadable.c: New file.
54963
54964         * modules/freadable: New file.
54965         * lib/freadable.h: New file.
54966         * lib/freadable.c: New file.
54967         * m4/freadable.m4: New file.
54968
54969 2007-04-13  Bruno Haible  <bruno@clisp.org>
54970
54971         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
54972         MOSTLYCLEANFILES.
54973
54974 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
54975
54976         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
54977         gzip bootstrap.conf to avoid dragging in i18n machinery.
54978         (gnulib_tool_option): Use it.
54979
54980 2007-04-13  Bruno Haible  <bruno@clisp.org>
54981
54982         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
54983         %F directives.
54984         * tests/test-vasprintf-posix.c (test_function): Likewise.
54985         * tests/test-snprintf-posix.h (test_function): Likewise.
54986         * tests/test-sprintf-posix.h (test_function): Likewise.
54987         * tests/test-fprintf-posix.h (test_function): Likewise.
54988         * tests/test-printf-posix.h (test_function): Likewise.
54989         * tests/test-fprintf-posix.out: Likewise.
54990
54991 2007-04-13  Bruno Haible  <bruno@clisp.org>
54992
54993         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
54994         * modules/tls-tests (configure.ac): Likewise.
54995         Reported by Arto C. Nirkko <anirkko@insel.ch>.
54996
54997 2007-04-13  Bruno Haible  <bruno@clisp.org>
54998
54999         * lib/tls.c (glthread_tls_get): Fix return type.
55000         Patch by Arto C. Nirkko <anirkko@insel.ch>.
55001
55002 2007-04-12  Eric Blake  <ebb9@byu.net>
55003
55004         * modules/gettime (Depends-on): Remove gettime.
55005         Reported by Dmitry V. Levin.
55006
55007 2007-04-12  Bruno Haible  <bruno@clisp.org>
55008
55009         * modules/fflush (Include): Mention <stdio.h>.
55010         * modules/strtoimax (Include): Mention <inttypes.h>.
55011         * modules/strtoumax (Include): Likewise.
55012
55013 2007-04-12  Eric Blake  <ebb9@byu.net>
55014
55015         * .cvsignore: New file.
55016         * .gitignore: Likewise.
55017
55018 2007-04-12  Bruno Haible  <bruno@clisp.org>
55019
55020         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
55021         not before, since $(LDADD) often contains libgnu.a.
55022         * modules/striconv-tests (test_striconv_LDADD): Likewise.
55023         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
55024         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
55025         Needed on Cygwin.
55026
55027 2007-04-12  Eric Blake  <ebb9@byu.net>
55028
55029         Work around glibc's failure to flush stdin on fclose.
55030         * lib/closein.c (close_stdin): Flush stdin before closing.
55031
55032         Work around glibc's failure to reset seekable stdin on exit.
55033         * modules/closein: New module.
55034         * lib/closein.c: New file.
55035         * lib/closein.h: Likewise.
55036         * m4/closein.m4: Likewise.
55037         * MODULES.html.sh (File stream based Input/Output): Document it.
55038
55039 2007-04-12  Simon Josefsson  <simon@josefsson.org>
55040
55041         * gnulib-tool: Rename generated 'autobuild' script to
55042         'do-autobuild' in --create-megatestdir output.
55043
55044         * doc/gnulib.texi (Build robot for gnulib): Fix.
55045
55046 2007-04-12  Simon Josefsson  <simon@josefsson.org>
55047
55048         * modules/sysexits (Depends-on): Add absolute-header.
55049
55050 2007-04-12  Eric Blake  <ebb9@byu.net>
55051
55052         No need to preserve errno on success.
55053         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
55054         Reported by Bruno Haible.
55055
55056 2007-04-12  Simon Josefsson  <simon@josefsson.org>
55057
55058         * MODULES.html.sh (Support for maintaining and releasing
55059         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
55060
55061 2007-04-12  Simon Josefsson  <simon@josefsson.org>
55062
55063         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
55064
55065 2007-04-12  Simon Josefsson  <simon@josefsson.org>
55066
55067         * modules/autobuild: New module.
55068
55069         * m4/autobuild.m4: New file.
55070
55071 2007-04-11  Bruno Haible  <bruno@clisp.org>
55072
55073         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
55074         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
55075         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
55076         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
55077         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
55078         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
55079         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
55080         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
55081         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
55082         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
55083         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
55084         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
55085         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
55086         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
55087         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
55088         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
55089         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
55090         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
55091         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
55092         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
55093         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
55094         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
55095         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
55096         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
55097         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
55098         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
55099         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
55100         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
55101         Reported by Eric Blake.
55102
55103 2007-04-11  Bruno Haible  <bruno@clisp.org>
55104
55105         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
55106
55107 2007-04-10  Bruno Haible  <bruno@clisp.org>
55108
55109         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
55110         for NaN and Infinity. Needed on FreeBSD 6.1.
55111         * tests/test-vasnprintf-posix.c (test_function): Undo last change
55112         regarding results for "%010a" of Infinity and NaN.
55113         * tests/test-vasprintf-posix.c (test_function): Likewise.
55114         * tests/test-snprintf-posix.h (test_function): Likewise.
55115         * tests/test-sprintf-posix.h (test_function): Likewise.
55116         * tests/test-fprintf-posix.h (test_function): Likewise.
55117         * tests/test-printf-posix.h (test_function): Likewise.
55118         * tests/test-fprintf-posix.out: Likewise.
55119
55120 2007-04-10  Bruno Haible  <bruno@clisp.org>
55121
55122         * modules/locale-tests: New file.
55123         * tests/test-locale.c: New file.
55124
55125         * modules/locale: New file.
55126         * lib/locale_.h: New file.
55127         * m4/locale_h.m4: New file.
55128
55129 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
55130             Bruno Haible  <bruno@clisp.org>
55131
55132         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
55133         be determined, test for availability of the copysignf, copysign,
55134         copysignl functions.
55135         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
55136         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
55137         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
55138
55139 2007-04-09  Eric Blake  <ebb9@byu.net>
55140
55141         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
55142         * modules/stdio (Makefile.am): Support fflush.
55143         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
55144         * modules/fflush: New file.
55145         * lib/fflush.c: Likewise.
55146         * m4/fflush.m4: Likewise.
55147         * modules/fflush-tests: New test.
55148         * tests/test-fflush.c: Likewise.
55149         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
55150
55151 2007-04-06  Bruno Haible  <bruno@clisp.org>
55152
55153         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
55154         (VASNPRINTF): Use signbit for faster determination whether to print a
55155         minus sign.
55156         * modules/vasnprintf (Files): Remove lib/float+.h.
55157         * modules/fprintf-posix (Depends-on): Add signbit.
55158         * modules/snprintf-posix (Depends-on): Likewise.
55159         * modules/sprintf-posix (Depends-on): Likewise.
55160         * modules/vasnprintf-posix (Depends-on): Likewise.
55161         * modules/vasprintf-posix (Depends-on): Likewise.
55162         * modules/vfprintf-posix (Depends-on): Likewise.
55163         * modules/vsnprintf-posix (Depends-on): Likewise.
55164         * modules/vsprintf-posix (Depends-on): Likewise.
55165
55166 2007-04-06  Bruno Haible  <bruno@clisp.org>
55167
55168         * tests/test-frexp.c (main): Test also the sign bit of zero results.
55169         * tests/test-frexpl.c (main): Likewise.
55170         * tests/test-ldexpl.c (main): Likewise.
55171         * modules/frexp-tests (Depends-on): Add signbit.
55172         * modules/frexpl-tests (Depdends-on): Likewise.
55173         * modules/ldexpl-tests (Depdends-on): Likewise.
55174
55175 2007-04-06  Bruno Haible  <bruno@clisp.org>
55176
55177         * modules/signbit-tests: New file.
55178         * tests/test-signbit.c: New file.
55179
55180         * modules/signbit: New file.
55181         * lib/signbitf.c: New file.
55182         * lib/signbitd.c: New file.
55183         * lib/signbitl.c: New file.
55184         * m4/signbit.m4: New file.
55185         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
55186         (signbit): New macro.
55187         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
55188         REPLACE_SIGNBIT.
55189         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
55190         REPLACE_FREXPL into math.h.
55191
55192 2007-04-06  Bruno Haible  <bruno@clisp.org>
55193
55194         * modules/isnanf-nolibm-tests: New file.
55195         * tests/test-isnanf.c: New file.
55196
55197         * modules/isnanf-nolibm: New file.
55198         * lib/isnanf.h: New file.
55199         * lib/isnanf.c: New file.
55200         * lib/isnan.c: Consider the USE_FLOAT macro.
55201         * m4/isnanf.m4: New file.
55202
55203 2007-04-06  Bruno Haible  <bruno@clisp.org>
55204
55205         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
55206         (Link): New section.
55207
55208         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
55209
55210 2007-04-06  Bruno Haible  <bruno@clisp.org>
55211
55212         Assume the 'long double' type.
55213         * m4/longdouble.m4: Remove file.
55214         * config/srclist.txt: Don't mention longdouble.m4.
55215         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
55216         * lib/float+.h: Likewise.
55217         * lib/frexp.c: Likewise.
55218         * lib/printf-args.h: Likewise.
55219         * lib/printf-args.c: Likewise.
55220         * lib/printf-frexp.c: Likewise.
55221         * lib/printf-parse.c: Likewise.
55222         * lib/vasnprintf.c: Likewise.
55223         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
55224         * m4/intl.m4: Likewise.
55225         * m4/isnanl.m4: Likewise.
55226         * m4/printf.m4: Likewise.
55227         * m4/printf-frexpl.m4: Likewise.
55228         * m4/vasnprintf.m4: Likewise.
55229         * modules/allocsa (Files): Remove m4/longdouble.m4.
55230         * modules/gettext (Files): Likewise.
55231         * modules/relocatable-prog-wrapper (Files): Likewise.
55232         * modules/vasnprintf (Files): Likewise.
55233         * modules/isnanl (Files): Likewise.
55234         (Include): Simplify.
55235         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
55236         (Include): Simplify.
55237         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
55238         (Include): Simplify.
55239         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
55240         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
55241         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
55242         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
55243         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
55244         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
55245         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
55246         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
55247         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
55248         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
55249         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
55250         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
55251         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
55252         * tests/test-isnanl.c: Likewise.
55253         * tests/test-snprintf-posix.h: Likewise.
55254         * tests/test-sprintf-posix.h: Likewise.
55255         * tests/test-vasnprintf-posix.c: Likewise.
55256         * tests/test-vasnprintf-posix2.c: Likewise.
55257         * tests/test-vasprintf-posix.c: Likewise.
55258
55259 2007-04-06  Bruno Haible  <bruno@clisp.org>
55260
55261         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
55262         * lib/math_.h [__DECC]: Include the overridden include file through
55263         #include_next, outside the double-inclusion guard.
55264         * lib/stdio_.h [__DECC]: Likewise.
55265         * lib/stdlib_.h [__DECC]: Likewise.
55266         * lib/string_.h [__DECC]: Likewise.
55267         * lib/time_.h [__DECC]: Likewise.
55268         * lib/wchar_.h [__DECC]: Likewise.
55269         * lib/wctype_.h [__DECC]: Likewise.
55270         * lib/inttypes_.h [__DECC]: Likewise.
55271         Reported by Albert Chin <china@thewrittenword.com> in
55272         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
55273
55274 2007-04-04  Eric Blake  <ebb9@byu.net>
55275
55276         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
55277         1.5.x.
55278
55279 2007-04-04  Bruno Haible  <bruno@clisp.org>
55280
55281         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
55282         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
55283
55284 2007-04-04  Bruno Haible  <bruno@clisp.org>
55285
55286         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
55287         results for "%010a" of Infinity and NaN.
55288         * tests/test-vasprintf-posix.c (test_function): Likewise.
55289         * tests/test-snprintf-posix.h (test_function): Likewise.
55290         * tests/test-sprintf-posix.h (test_function): Likewise.
55291         * tests/test-fprintf-posix.h (test_function): Remove these tests.
55292         * tests/test-printf-posix.h (test_function): Likewise.
55293         * tests/test-fprintf-posix.out: Update.
55294         Needed for FreeBSD 6.1.
55295
55296 2007-04-04  Bruno Haible  <bruno@clisp.org>
55297
55298         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
55299         directly used by the gnulib modules nor by gnulib-tool.
55300
55301 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
55302
55303         * DEPENDENCIES: Give overall description of version dependency
55304         desirability.  Use more-typical names for apps.
55305         Add shell, coreutils, diffutils, grep, tar, gzip.
55306
55307 2007-04-04  Simon Josefsson  <simon@josefsson.org>
55308
55309         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
55310
55311 2007-04-04  Karl Berry  <karl@gnu.org>
55312
55313         * MODULES.html.sh (func_module): missing '.
55314
55315 2007-04-03  Bruno Haible  <bruno@clisp.org>
55316
55317         * modules/argmatch-tests (Makefile.am): New variable
55318         test_argmatch_LDADD.
55319         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
55320         * modules/array-list-tests (Makefile.am): New variable
55321         test_array_list_LDADD.
55322         * modules/array-oset-tests (Makefile.am): New variable
55323         test_array_oset_LDADD.
55324         * modules/avltree-list-tests (Makefile.am): New variable
55325         test_avltree_list_LDADD.
55326         * modules/avltree-oset-tests (Makefile.am): New variable
55327         test_avltree_oset_LDADD.
55328         * modules/avltreehash-list-tests (Makefile.am): New variable
55329         test_avltreehash_list_LDADD.
55330         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
55331         test_canonicalize_lgpl_LDADD.
55332         * modules/carray-list-tests (Makefile.am): New variable
55333         test_carray_list_LDADD.
55334         * modules/dirname-tests (Makefile.am): New variable
55335         test_dirname_LDADD.
55336         * modules/linked-list-tests (Makefile.am): New variable
55337         test_linked_list_LDADD.
55338         * modules/linkedhash-list-tests (Makefile.am): New variable
55339         test_linkedhash_list_LDADD.
55340         * modules/rbtree-list-tests (Makefile.am): New variable
55341         test_rbtree_list_LDADD.
55342         * modules/rbtree-oset-tests (Makefile.am): New variable
55343         test_rbtree_oset_LDADD.
55344         * modules/rbtreehash-list-tests (Makefile.am): New variable
55345         test_rbtreehash_list_LDADD.
55346         * modules/xvasprintf-tests (Makefile.am): New variable
55347         test_xvasprintf_LDADD.
55348         Reported by Eric Blake.
55349
55350 2007-04-03  Eric Blake  <ebb9@byu.net>
55351
55352         * DEPENDENCIES: Weaken m4 requirements.
55353
55354 2007-04-03  Bruno Haible  <bruno@clisp.org>
55355
55356         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
55357         * modules/isnanl-tests (configure.ac): Likewise.
55358
55359 2007-04-03  Ben Pfaff  <blp@gnu.org>
55360
55361         * modules/iconv_open: Add $(srcdir)/ to source directory
55362         references in Makefile fragments that call gperf, to fix VPATH
55363         builds.
55364
55365 2007-04-03  Bruno Haible  <bruno@clisp.org>
55366
55367         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
55368         * lib/ldexpl.c: Undo last change.
55369
55370 2007-04-03  Bruno Haible  <bruno@clisp.org>
55371
55372         * modules/printf-frexpl (Depends-on): Undo last change.
55373         (Files): Add m4/ldexpl.m4.
55374
55375 2007-04-03  Bruno Haible  <bruno@clisp.org>
55376
55377         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
55378         * modules/isnanl (Link): New section.
55379
55380         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
55381         * modules/frexp (Link): New section.
55382
55383         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
55384         * modules/frexpl (Link): New section.
55385
55386         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
55387         * modules/ldexpl (Link): New section.
55388
55389 2007-04-03  Bruno Haible  <bruno@clisp.org>
55390
55391         * modules/TEMPLATE-EXTENDED: New file.
55392         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
55393
55394 2007-04-03  Bruno Haible  <bruno@clisp.org>
55395
55396         * DEPENDENCIES: New file.
55397         Suggested by Simon Josefsson.
55398
55399 2007-04-03  Bruno Haible  <bruno@clisp.org>
55400
55401         * doc/gnulib.texi: Escape @.
55402
55403 2007-04-03  James Youngman  <jay@gnu.org>
55404         and Paul Eggert  <eggert@cs.ucla.edu>
55405
55406         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
55407         birthtime on all systems that have birthtime, not just those which
55408         use st_birthtimensec rather than st_birthtim.  Putting zero in
55409         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
55410         that the birth time is not available for files on an NFS mount.
55411
55412 2007-04-03  Simon Josefsson  <simon@josefsson.org>
55413
55414         * modules/memxor: Move back from crypto/, suggested by Bruno.
55415         * modules/crypto/hmac-sha1: Fix memxor dependency.
55416
55417         * modules/crypto/gc: Moved from ../.
55418
55419 2007-04-02  Eric Blake  <ebb9@byu.net>
55420
55421         * lib/ldexpl.c (includes): Avoid libm.
55422
55423         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
55424
55425 2007-04-02  Bruno Haible  <bruno@clisp.org>
55426
55427         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
55428         on IRIX.
55429
55430 2007-04-02  Bruno Haible  <bruno@clisp.org>
55431
55432         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
55433         x86 or x86_64 platforms running MacOS X.
55434         Reported by Ryan Schmidt <@ryandesign.com>.
55435
55436 2007-04-02  Bruno Haible  <bruno@clisp.org>
55437
55438         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
55439         i386.
55440
55441 2007-04-01  Simon Josefsson  <simon@josefsson.org>
55442
55443         * modules/crypto/arcfour: Moved from ../.
55444         * modules/crypto/arcfour-tests: Moved from ../.
55445         * modules/crypto/arctwo: Moved from ../.
55446         * modules/crypto/arctwo-tests: Moved from ../.
55447         * modules/crypto/des: Moved from ../.
55448         * modules/crypto/des-tests: Moved from ../.
55449         * modules/crypto/gc-arcfour: Moved from ../.
55450         * modules/crypto/gc-arcfour-tests: Moved from ../.
55451         * modules/crypto/gc-arctwo: Moved from ../.
55452         * modules/crypto/gc-arctwo-tests: Moved from ../.
55453         * modules/crypto/gc-des: Moved from ../.
55454         * modules/crypto/gc-des-tests: Moved from ../.
55455         * modules/crypto/gc-hmac-md5: Moved from ../.
55456         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
55457         * modules/crypto/gc-hmac-sha1: Moved from ../.
55458         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
55459         * modules/crypto/gc-md2: Moved from ../.
55460         * modules/crypto/gc-md2-tests: Moved from ../.
55461         * modules/crypto/gc-md4: Moved from ../.
55462         * modules/crypto/gc-md4-tests: Moved from ../.
55463         * modules/crypto/gc-md5: Moved from ../.
55464         * modules/crypto/gc-md5-tests: Moved from ../.
55465         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
55466         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
55467         * modules/crypto/gc-random: Moved from ../.
55468         * modules/crypto/gc-rijndael: Moved from ../.
55469         * modules/crypto/gc-rijndael-tests: Moved from ../.
55470         * modules/crypto/gc-sha1: Moved from ../.
55471         * modules/crypto/gc-sha1-tests: Moved from ../.
55472         * modules/crypto/gc-tests: Moved from ../.
55473         * modules/crypto/hmac-md5: Moved from ../.
55474         * modules/crypto/hmac-md5-tests: Moved from ../.
55475         * modules/crypto/hmac-sha1: Moved from ../.
55476         * modules/crypto/hmac-sha1-tests: Moved from ../.
55477         * modules/crypto/md2: Moved from ../.
55478         * modules/crypto/md2-tests: Moved from ../.
55479         * modules/crypto/md4: Moved from ../.
55480         * modules/crypto/md4-tests: Moved from ../.
55481         * modules/crypto/md5: Moved from ../.
55482         * modules/crypto/md5-tests: Moved from ../.
55483         * modules/crypto/memxor: Moved from ../.
55484         * modules/crypto/rijndael: Moved from ../.
55485         * modules/crypto/rijndael-tests: Moved from ../.
55486         * modules/crypto/sha1: Moved from ../.
55487
55488 2007-03-30  James Youngman  <jay@gnu.org>
55489
55490         * tests/test-stat-time.c (prepare_test): use chmod() rather than
55491         rename() to change the ctime of a file (because ctime is unaffected
55492         by rename on jfs2 on AIX 5.1).
55493         (main): Start by doing cleanup, in case a previous run failed leaving
55494         test files behind.
55495
55496 2007-03-31  Bruno Haible  <bruno@clisp.org>
55497
55498         Support old proprietary implementations of iconv.
55499         * modules/iconv_open: New file.
55500         * lib/iconv_.h: New file.
55501         * m4/iconv_h.m4: New file.
55502         * lib/iconv_open.c: New file.
55503         * lib/iconv_open-aix.gperf: New file.
55504         * lib/iconv_open-hpux.gperf: New file.
55505         * lib/iconv_open-irix.gperf: New file.
55506         * lib/iconv_open-osf.gperf: New file.
55507         * m4/iconv_open.m4: New file.
55508         * modules/linebreak (Depends-on): Add iconv_open.
55509         * modules/striconv (Depends-on): Likewise.
55510         * modules/striconveh (Depends-on): Likewise.
55511         * modules/unicodeio (Depends-on): Likewise.
55512         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
55513         (iconv_t)(-1).
55514         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
55515         conversion if cd is (iconv_t)(-1).
55516         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
55517         is not possible.
55518
55519 2007-03-31  Bruno Haible  <bruno@clisp.org>
55520
55521         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
55522         work on Solaris either. Protect also second use of "autodetect_jp".
55523
55524 2007-03-31  Bruno Haible  <bruno@clisp.org>
55525
55526         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
55527         the function is not present.
55528
55529 2007-03-31  Bruno Haible  <bruno@clisp.org>
55530
55531         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
55532         the function is not present.
55533
55534 2007-03-31  Bruno Haible  <bruno@clisp.org>
55535
55536         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
55537         a bug in HP-UX iconv_open().
55538
55539 2007-03-31  Bruno Haible  <bruno@clisp.org>
55540
55541         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
55542         (Mathematics <math.h>): New section, add fpieee.
55543         (Input/output <stdio.h>): Add fseterr.
55544         (Mathematics <math.h>): New section, add printf-frexp.
55545         (Container data structures): Add sublist.
55546         (Core language properties): Add fpucw, inline.
55547         (Functions for greatest-width integer types <inttypes.h>): Add
55548         imaxabs, imaxdiv, inttypes.
55549         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
55550         isnanl-nolibm, ldexp.
55551         (Mathematics <math.h>): New section, add printf-frexpl.
55552         (Support for systems lacking POSIX:2001): Add fprintf-posix,
55553         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
55554         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
55555         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
55556         (Unicode string functions): Add unistr/u*-mbtoucr.
55557         (Java): Add javacomp-script, javaexec-script.
55558         (C#): Add csharpcomp-script, csharpexec-script.
55559         (Support for building libraries and executables): Add havelib,
55560         relocatable-*.
55561         (Support for maintaining and releasing projects): Renamed from
55562         'Support for maintaining and release projects'. Add announce-gen.
55563
55564 2007-03-31  Bruno Haible  <bruno@clisp.org>
55565
55566         * README: Talk primarily about git.
55567         (git and CVS): Renamed from CVS.
55568         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
55569         gnulib is available through git.
55570         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
55571
55572 2007-03-30  Bruno Haible  <bruno@clisp.org>
55573
55574         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
55575         * lib/poll_.h: Likewise.
55576         * lib/stat_.h: Likewise.
55577         * lib/sys_time_.h: Likewise.
55578         * lib/sysexit_.h: Likewise.
55579         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
55580         * lib/stdbool_.h: Likewise.
55581         * lib/byteswap_.h: Add double-inclusion guard.
55582
55583 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
55584
55585         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
55586
55587 2007-03-30  Karl Berry  <karl@gnu.org>
55588
55589         * config/srclist-update: double space after USA in the license
55590         substitution, since that's how it's usually (?) written.
55591
55592 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
55593
55594         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
55595         reported by Bruno Haible.
55596
55597 2007-03-29  Bruno Haible  <bruno@clisp.org>
55598
55599         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
55600         a bug in AIX iconv().
55601
55602 2007-03-29  Bruno Haible  <bruno@clisp.org>
55603
55604         * modules/ldexpl-tests: New file.
55605         * tests/test-ldexpl.c: New file.
55606
55607 2007-03-29  Bruno Haible  <bruno@clisp.org>
55608
55609         * lib/ldexpl.c: Include fpucw.h.
55610         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
55611         multiplication.
55612         * modules/ldexpl (Depends-on): Add fpucw.
55613
55614 2007-03-29  Bruno Haible  <bruno@clisp.org>
55615
55616         * modules/ldexpl: New file.
55617         * m4/ldexpl.m4: New file.
55618         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
55619         set.
55620         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
55621         REPLACE_LDEXPL.
55622         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
55623         REPLACE_LDEXPL.
55624         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
55625         gl_FUNC_LDEXPL_WORKS.
55626         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
55627         * modules/mathl (Files): Remove lib/ldexpl.c.
55628         (Depends-on): Add ldexpl.
55629
55630 2007-03-29  Bruno Haible  <bruno@clisp.org>
55631
55632         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
55633
55634 2007-03-29  Bruno Haible  <bruno@clisp.org>
55635
55636         * tests/test-striconveh.c (main): Don't assume that a direct conversion
55637         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
55638         and possibly also HP-UX.
55639         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
55640         work on AIX, IRIX, HP-UX, OSF/1.
55641         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
55642         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
55643         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
55644         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
55645         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
55646         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
55647
55648 2007-03-29  Bruno Haible  <bruno@clisp.org>
55649
55650         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
55651
55652 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
55653
55654         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
55655         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
55656
55657 2007-03-29  Eric Blake  <ebb9@byu.net>
55658
55659         * lib/acl-internal.h: Remove redundant include.
55660         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
55661         Cygwin when a file is locked.
55662
55663 2007-03-29  Bruno Haible  <bruno@clisp.org>
55664
55665         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
55666         file.
55667         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
55668
55669 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
55670
55671         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
55672         try to remove a parent directory if the child couldn't be removed
55673         (except for the first rmdir, which could fail because the child
55674         doesn't exist).  Problem reported by Jeff Blaine in
55675         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
55676
55677 2007-03-28  Bruno Haible  <bruno@clisp.org>
55678
55679         * lib/striconveh.c (utf8conv_carefully): New function.
55680         (mem_cd_iconveh_internal): Invoke it.
55681
55682 2007-03-28  Bruno Haible  <bruno@clisp.org>
55683
55684         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
55685         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
55686         input.
55687         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
55688         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
55689         unistr/u8-uctomb.
55690
55691 2007-03-28  Bruno Haible  <bruno@clisp.org>
55692
55693         * modules/unistr/u8-mbtoucr: New file.
55694         * lib/unistr/u8-mbtoucr.c: New file.
55695         * modules/unistr/u16-mbtoucr: New file.
55696         * lib/unistr/u16-mbtoucr.c: New file.
55697         * modules/unistr/u16-mbtoucr: New file.
55698         * lib/unistr/u16-mbtoucr.c: New file.
55699         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
55700
55701 2007-03-27  Simon Josefsson  <simon@josefsson.org>
55702             Bruno Haible  <bruno@clisp.org>
55703
55704         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
55705         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
55706         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
55707
55708         * m4/stdio_h.m4: Add stubs for vasprintf too.
55709
55710         * modules/stdio: Support vasprintf in sed command.
55711
55712         * modules/vasprintf: Depend on stdio for prototypes.  Remove
55713         vasprintf.h.  Add stdio module indicator.
55714
55715         * lib/stdio_.h: Declare asprintf and vasprintf, based on
55716         vasprintf.h.
55717
55718         * lib/vasprintf.h: File removed.
55719
55720         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
55721         * lib/vasprintf.c: Ditto.
55722         * lib/xvasprintf.c: Ditto.
55723         * tests/test-vasprintf-posix.c: Ditto.
55724         * tests/test-vasprintf.c: Ditto.
55725
55726 2007-03-27  Bruno Haible  <bruno@clisp.org>
55727
55728         Make vasnprintf multithread-safe.
55729         * lib/vasnprintf.c (decimal_point_char): New function.
55730         (VASNPRINTF): Use it.
55731         Suggested by Simon Josefsson.
55732
55733 2007-03-27  Eric Blake  <ebb9@byu.net>
55734
55735         Support sub-second birthtime on cygwin.
55736         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
55737         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
55738         (get_stat_birthtime): Also work with st_birthtim.
55739
55740 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
55741
55742         * lib/stat-time.h (USE_BIRTHTIME): Remove.
55743         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
55744         (get_stat_birthtime_ns): Do not try to use "spare" fields.
55745         (get_stat_birthtime_ns): Simplify compile-time tests.
55746         (get_stat_birthtime): Change the API to look like
55747         get_stat_mtime etc., except return a negative tv_nsec on error.
55748         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
55749         Don't check for "spare" fields.
55750         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
55751         or for struct stat.st_birthtime, as these tests aren't used.
55752         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
55753
55754 2007-03-27  Bruno Haible  <bruno@clisp.org>
55755
55756         * lib/stat-time.h: Include <sys/stat.h>.
55757
55758 2007-03-27  James Youngman  <jay@gnu.org>
55759
55760         * lib/stat-time.h (get_stat_birthtime): New function for
55761           retrieving st_birthtime as provided by UFS2 (hence *BSD).
55762         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
55763           and its variants.
55764         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
55765         * modules/stat-time-test: New file.
55766         * tests/test-stat-time.c: New test, devised by Bruno Haible.
55767
55768 2007-03-26  Bruno Haible  <bruno@clisp.org>
55769
55770         Better support of signalling NaNs.
55771         * lib/atanl.c: Include isnanl.h.
55772         (atanl): Perform test for NaN at the beginning of the function and
55773         through a call to isnanl.
55774         * lib/cosl.c: Include isnanl.h.
55775         (cosl): Perform test for NaN at the beginning of the function and
55776         through a call to isnanl.
55777         * lib/ldexpl.c: Include isnanl.h.
55778         (ldexpl): Perform test for NaN through a call to isnanl.
55779         * lib/logl.c: Include isnanl.h.
55780         (logl): Perform test for NaN at the beginning of the function and
55781         through a call to isnanl.
55782         * lib/sinl.c: Include isnanl.h.
55783         (sinl): Perform test for NaN at the beginning of the function and
55784         through a call to isnanl.
55785         * lib/sqrtl.c: Include isnanl.h.
55786         (sqrtl): Perform test for NaN at the beginning of the function and
55787         through a call to isnanl.
55788         * lib/tanl.c: Include isnanl.h.
55789         (tanl): Perform test for NaN at the beginning of the function and
55790         through a call to isnanl.
55791         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
55792         * modules/mathl (Depends-on): Add isnanl.
55793
55794 2007-03-26  Eric Blake  <ebb9@byu.net>
55795
55796         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
55797         regression in logic sense of previous patch.
55798
55799 2007-03-26  Bruno Haible  <bruno@clisp.org>
55800
55801         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
55802         unportable shell command "if ! ...".
55803         Reported by Ralf Wildenhues.
55804
55805 2007-03-25  Bruno Haible  <bruno@clisp.org>
55806
55807         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
55808         <sysexits.h> file, and only add EX_CONFIG.
55809         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
55810         absolute file name and whether it is sufficient. Substitute also
55811         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
55812         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
55813         ABSOLUTE_SYSEXITS_H into sysexits.h.
55814
55815 2007-03-25  Bruno Haible  <bruno@clisp.org>
55816
55817         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
55818         hints is NULL.
55819
55820 2007-03-25  Bruno Haible  <bruno@clisp.org>
55821
55822         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
55823         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
55824
55825 2007-03-25  Bruno Haible  <bruno@clisp.org>
55826
55827         * lib/vasnprintf.c: Include langinfo.h.
55828         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
55829         multithread-safe.
55830         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
55831         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
55832         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
55833         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
55834         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
55835         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
55836         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
55837         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
55838         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
55839         Reported by Simon Josefsson.
55840
55841 2007-03-25  Bruno Haible  <bruno@clisp.org>
55842
55843         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
55844         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
55845         * modules/vasnprintf (Depends-on): Add stdint.
55846
55847 2007-03-25  Bruno Haible  <bruno@clisp.org>
55848
55849         * modules/fpieee: New file.
55850         * m4/fpieee.m4: New file.
55851         * modules/isnan-nolibm (Depends-on): Add fpieee.
55852         * modules/isnanl-nolibm (Depends-on): Add fpieee.
55853         * modules/isnanl (Depends-on): Add fpieee.
55854
55855 2007-03-25  Bruno Haible  <bruno@clisp.org>
55856
55857         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
55858
55859 2007-03-25  Bruno Haible  <bruno@clisp.org>
55860
55861         Avoid test failures on IRIX 6.5.
55862         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
55863         (main): Use it.
55864         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
55865         macros.
55866         (main): Use them.
55867
55868 2007-03-25  Bruno Haible  <bruno@clisp.org>
55869
55870         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
55871         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
55872         exists but doesn't work.
55873         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
55874         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
55875         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
55876         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
55877         math.h.
55878
55879 2007-03-25  Bruno Haible  <bruno@clisp.org>
55880
55881         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
55882         returns inf. Needed on IRIX 6.5.
55883
55884 2007-03-25  Bruno Haible  <bruno@clisp.org>
55885
55886         * tests/test-frexpl.c: Include isnanl-nolibm.h.
55887         (main): Use isnanl instead of x != x idiom.
55888         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
55889
55890         * tests/test-frexp.c: Include isnan.h.
55891         (main): Use isnan instead of x != x idiom.
55892         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
55893
55894 2007-03-25  Bruno Haible  <bruno@clisp.org>
55895
55896         * tests/test-frexp.c (NaN): New function/macro.
55897         (main): Use it instead of 0.0 / 0.0.
55898         * tests/test-isnan.c (NaN): New function/macro.
55899         (main): Use it instead of 0.0 / 0.0.
55900         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
55901         (test_function): Use it instead of 0.0 / 0.0.
55902         * tests/test-vasprintf-posix.c (NaN): New function/macro.
55903         (test_function): Use it instead of 0.0 / 0.0.
55904         * tests/test-snprintf-posix.h (NaN): New function/macro.
55905         (test_function): Use it instead of 0.0 / 0.0.
55906         * tests/test-sprintf-posix.h (NaN): New function/macro.
55907         (test_function): Use it instead of 0.0 / 0.0.
55908         * tests/test-fprintf-posix.h (NaN): New function/macro.
55909         (test_function): Use it instead of 0.0 / 0.0.
55910         * tests/test-printf-posix.h (NaN): New function/macro.
55911         (test_function): Use it instead of 0.0 / 0.0.
55912
55913         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
55914
55915 2007-03-25  Bruno Haible  <bruno@clisp.org>
55916
55917         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
55918
55919 2007-03-25  Bruno Haible  <bruno@clisp.org>
55920
55921         * lib/regexec.c (merge_state_with_log): Make static.
55922
55923 2007-03-25  Bruno Haible  <bruno@clisp.org>
55924
55925         * lib/trigl.c (kernel_rem_pio2): Make static.
55926
55927 2007-03-25  Bruno Haible  <bruno@clisp.org>
55928
55929         * lib/sincosl.c (sincosl_table): Make static.
55930
55931 2007-03-25  Bruno Haible  <bruno@clisp.org>
55932
55933         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
55934         if the compiler does not support C99.
55935
55936 2007-03-25  Bruno Haible  <bruno@clisp.org>
55937
55938         * modules/time (Makefile.am): Ensure all rule action lines start with a
55939         tab.
55940
55941 2007-03-24  Bruno Haible  <bruno@clisp.org>
55942
55943         * modules/tsearch-tests: New file.
55944         * tests/test-tsearch.sh: New file.
55945         * tests/test-tsearch.c: New file, mostly copied from glibc.
55946
55947         * modules/search-tests: New file.
55948         * tests/test-search.c: New file.
55949
55950         * modules/search: New file.
55951         * lib/search_.h: New file, incorporating lib/tsearch.h.
55952         * m4/search_h.m4: New file.
55953         * lib/tsearch.h: Remove file.
55954         * lib/tsearch.c: Include search.h instead of tsearch.h.
55955         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
55956         HAVE_TSEARCH.
55957         * modules/tsearch (Files): Remove lib/tsearch.h.
55958         (Depends-on): Add search.
55959         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
55960         (Include): Change tsearch.h into search.h.
55961
55962 2007-03-24  Bruno Haible  <bruno@clisp.org>
55963
55964         * modules/fpucw: New file.
55965         * lib/fpucw.h: New file.
55966         * lib/frexp.c: Include fpucw.h.
55967         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
55968         (FUNC): Use them.
55969         * lib/printf-frexp.c: Include fpucw.h.
55970         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
55971         (FUNC): Use them.
55972         * lib/vasnprintf.c: Include fpucw.h.
55973         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
55974         'long double' calculations.
55975         * tests/test-frexpl.c: Include fpucw.h.
55976         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
55977         * tests/test-printf-frexpl.c: Include fpucw.h.
55978         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
55979         * modules/frexpl (Depends-on): Add fpucw.
55980         * modules/printf-frexpl (Depends-on): Likewise.
55981         * modules/fprintf-posix (Depends-on): Likewise.
55982         * modules/snprintf-posix (Depends-on): Likewise.
55983         * modules/sprintf-posix (Depends-on): Likewise.
55984         * modules/vasnprintf-posix (Depends-on): Likewise.
55985         * modules/vasprintf-posix (Depends-on): Likewise.
55986         * modules/vfprintf-posix (Depends-on): Likewise.
55987         * modules/vsnprintf-posix (Depends-on): Likewise.
55988         * modules/vsprintf-posix (Depends-on): Likewise.
55989         * modules/frexpl-tests (Depends-on): Likewise.
55990         * modules/printf-frexpl-tests (Depends-on): Likewise.
55991
55992 2007-03-24  Bruno Haible  <bruno@clisp.org>
55993
55994         * lib/float+.h: New file.
55995         * lib/isnan.c: Include float+.h.
55996         (SIZE): New macro.
55997         (FUNC): Compare only SIZE bytes of the value.
55998         * lib/vasnprintf.c: Include float+.h.
55999         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
56000         SIZEOF_LDBL or SIZEOF_DBL bytes.
56001         * modules/isnan-nolibm (Files): Add lib/float+.h.
56002         * modules/isnanl-nolibm (Files): Add lib/float+.h.
56003         * modules/isnanl (Files): Add lib/float+.h.
56004         * modules/vasnprintf (Files): Add lib/float+.h.
56005
56006 2007-03-24  Bruno Haible  <bruno@clisp.org>
56007
56008         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
56009         include isnanl-nolibm.h.
56010
56011 2007-03-24  Bruno Haible  <bruno@clisp.org>
56012
56013         * tests/test-read-file.c (main): Don't produce spurious output for
56014         expected situations. Make the test fail if it encountered unexpected
56015         results.
56016
56017 2007-03-24  Bruno Haible  <bruno@clisp.org>
56018
56019         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
56020         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
56021
56022 2007-03-24  Bruno Haible  <bruno@clisp.org>
56023
56024         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
56025
56026 2007-03-24  Bruno Haible  <bruno@clisp.org>
56027
56028         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
56029         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
56030
56031         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
56032         * modules/utf8-ucs4: Turn into a symbolic link to module
56033         unistr/u8-mbtouc.
56034
56035         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
56036         utf8-ucs4-unsafe.
56037         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
56038         unistr/u8-mbtouc-unsafe.
56039
56040         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
56041         * modules/utf16-ucs4: Turn into a symbolic link to module
56042         unistr/u16-mbtouc.
56043
56044         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
56045         utf16-ucs4-unsafe.
56046         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
56047         unistr/u16-mbtouc-unsafe.
56048
56049         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
56050         * modules/ucs4-utf8: Turn into a symbolic link to module
56051         unistr/u8-ubtomb.
56052
56053         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
56054         * modules/ucs4-utf16: Turn into a symbolic link to module
56055         unistr/u16-ubtomb.
56056
56057 2007-03-24  Bruno Haible  <bruno@clisp.org>
56058
56059         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
56060         Enable the function only if HAVE_INLINE.
56061         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
56062         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
56063         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
56064         Enable the function only if HAVE_INLINE.
56065         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
56066         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
56067         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
56068         Enable the function only if HAVE_INLINE.
56069         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
56070         Enable the function only if HAVE_INLINE.
56071         * modules/utf8-ucs4: Update.
56072         * modules/utf8-ucs4-unsafe: Update.
56073         * modules/utf16-ucs4: Update.
56074         * modules/utf16-ucs4-unsafe: Update.
56075         * modules/ucs4-utf8: Update.
56076         * modules/ucs4-utf16: Update.
56077
56078 2007-03-24  Bruno Haible  <bruno@clisp.org>
56079
56080         * lib/utf8-ucs4.h: Remove file.
56081         * lib/utf8-ucs4-unsafe.h: Remove file.
56082         * lib/utf16-ucs4.h: Remove file.
56083         * lib/utf16-ucs4-unsafe.h: Remove file.
56084         * lib/ucs4-utf8.h: Remove file.
56085         * lib/ucs4-utf16.h: Remove file.
56086         * lib/unistr.h: Include their previous contents.
56087         * m4/utf-ucs4.m4: Remove file.
56088         * m4/ucs4-utf.m4: Remove file.
56089         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
56090         (Depends-on): Add unistr/base.
56091         (configure.ac): Remove gl_UTF_UCS4.
56092         (Makefile.am): Update.
56093         (Include): Change to unistr.h.
56094         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
56095         (Depends-on): Add unistr/base.
56096         (configure.ac): Remove gl_UTF_UCS4.
56097         (Makefile.am): Update.
56098         (Include): Change to unistr.h.
56099         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
56100         (Depends-on): Add unistr/base.
56101         (configure.ac): Remove gl_UTF_UCS4.
56102         (Makefile.am): Update.
56103         (Include): Change to unistr.h.
56104         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
56105         (Depends-on): Add unistr/base.
56106         (configure.ac): Remove gl_UTF_UCS4.
56107         (Makefile.am): Update.
56108         (Include): Change to unistr.h.
56109         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
56110         (Depends-on): Add unistr/base.
56111         (configure.ac): Remove gl_UCS4_UTF.
56112         (Makefile.am): Update.
56113         (Include): Change to unistr.h.
56114         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
56115         (Depends-on): Add unistr/base.
56116         (configure.ac): Remove gl_UCS4_UTF.
56117         (Makefile.am): Update.
56118         (Include): Change to unistr.h.
56119         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
56120         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
56121         utf8-ucs4-unsafe.h.
56122         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
56123         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
56124         utf16-ucs4-unsafe.h.
56125         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
56126         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
56127         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
56128         * lib/unistr/u8-strchr.c: Likewise.
56129         * lib/unistr/u8-strrchr.c: Likewise.
56130         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
56131         * lib/unistr/u16-strchr.c: Likewise.
56132         * lib/unistr/u16-strrchr.c: Likewise.
56133         * lib/striconveh.c: Update.
56134         * lib/linebreak.c: Update.
56135
56136 2007-03-24  Bruno Haible  <bruno@clisp.org>
56137
56138         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
56139         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
56140
56141 2007-03-22  Bruno Haible  <bruno@clisp.org>
56142
56143         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
56144
56145 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
56146
56147         * MODULES.html.sh (File system functions): New module write-any-file.
56148         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
56149         * m4/write-any-file.m4: New files.
56150
56151 2007-03-23  Eric Blake  <ebb9@byu.net>
56152
56153         * gnulib-tool: Rearrange space-tab sequences, since some editors
56154         like to eat them.
56155
56156 2007-03-23  Eric Blake  <ebb9@byu.net>
56157
56158         * lib/version-etc.c (version_etc_va): Update license wording to
56159         be more concise.  Recommended by Richard Stallman.
56160
56161 2007-03-22  Bruno Haible  <bruno@clisp.org>
56162
56163         * lib/poll.c (MSG_PEEK): New fallback definition.
56164
56165 2007-03-22  Bruno Haible  <bruno@clisp.org>
56166
56167         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
56168         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
56169         (main): Update.
56170         Fixes a compilation error on BeOS.
56171
56172 2007-03-22  Bruno Haible  <bruno@clisp.org>
56173
56174         * modules/frexpl-tests: New file.
56175         * tests/test-frexpl.c: New file.
56176
56177         * modules/frexpl: New file.
56178         * m4/frexpl.m4: New file.
56179         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
56180         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
56181         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
56182         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
56183         (Depends-on): Add frexpl. Remove isnanl-nolibm.
56184         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
56185
56186 2007-03-22  Bruno Haible  <bruno@clisp.org>
56187
56188         * lib/frexpl.c: Share code with lib/frexp.c.
56189         * modules/mathl (Files): Add lib/frexp.c.
56190         (Depends-on): Add isnanl-nolibm.
56191
56192 2007-03-22  Bruno Haible  <bruno@clisp.org>
56193
56194         * modules/printf-frexp (Files): Add m4/frexp.m4.
56195         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
56196         only if the found frexp function actually works.
56197
56198 2007-03-22  Bruno Haible  <bruno@clisp.org>
56199
56200         * lib/frexp.c: Remove older implementation that uses divisions.
56201
56202 2007-03-21  Bruno Haible  <bruno@clisp.org>
56203
56204         * modules/frexp-tests: New file.
56205         * tests/test-frexp.c: New file.
56206
56207         * modules/frexp: New file.
56208         * lib/frexp.c: New file.
56209         * m4/frexp.m4: New file.
56210         * lib/math_.h (frexp): New declaration.
56211         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
56212         REPLACE_FREXP.
56213         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
56214
56215 2007-03-21  Bruno Haible  <bruno@clisp.org>
56216
56217         * modules/isnanl-tests: New file.
56218         * tests/test-isnanl.c: New file.
56219
56220         * modules/isnanl: New file.
56221         * lib/isnanl.h: New file.
56222         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
56223         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
56224         gl_FUNC_ISNANL_WORKS.
56225         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
56226         New macros.
56227
56228 2007-03-21  Bruno Haible  <bruno@clisp.org>
56229
56230         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
56231         lib/isnanl.h.
56232         (Include): Update.
56233         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
56234         * lib/vasnprintf.c: Update.
56235         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
56236         tests/test-isnanl.h, remove tests/test-isnanl.c.
56237         (Makefile.am): Update.
56238         * tests/test-isnanl-nolibm.c: New file.
56239         * tests/test-isnanl.h: New file.
56240         * tests/test-isnanl.c: Remove file.
56241
56242 2007-03-21  Jim Meyering  <jim@meyering.net>
56243
56244         When trying to open ".", treat ESTALE like EACCES.
56245         * lib/savewd.c (savewd_save): Resort to forking not just upon
56246         failure with EACCES, but also when errno is ESTALE.
56247
56248 2007-03-20  Bruno Haible  <bruno@clisp.org>
56249
56250         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
56251         Needed on AIX 5.1. Reported by Matthew Woehlke.
56252
56253 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
56254
56255         Suggestions by Bruno Haible:
56256         * lib/acl-internal.h: Include "gettext.h" rather than rolling
56257         our own.
56258         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
56259         * modules/acl (Depends-on): Add gettext.
56260
56261 2007-03-19  Bruno Haible  <bruno@clisp.org>
56262
56263         * modules/iconvme: Remove file.
56264         * lib/iconvme.h: Remove file.
56265         * lib/iconvme.c: Remove file.
56266         * m4/iconvme.m4: Remove file.
56267
56268 2007-03-19  Bruno Haible  <bruno@clisp.org>
56269
56270         * doc/relocatable-maint.texi: Break long shell script line.
56271         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
56272
56273 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
56274
56275         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
56276         handle file_has_acl.
56277         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
56278         * lib/acl.c: Move header inclusions and related macro defns into
56279         lib/acl-internal.h.
56280         (S_ISLNK): Remove defn, since that's now done for us.
56281         (file_has_acl): Move to lib/file-has-acl.c.
56282         Call acl_trivial if available.  This is the crucial part of the fix.
56283         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
56284         shared within the library.  Rewrite a bit, partly to make it compatible
56285         with the GNU coding style.
56286         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
56287         Remove unnecessary double-quotes.
56288         Don't test for acl_to_text; the build will catch that.
56289         Replace acl_entries if it doesn't exist and it is needed.
56290         Check for -lsec and acl_trivial (as used on Solaris 10).
56291         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
56292         lib/file-has-acl.c.
56293         (Depends-on): Add sys_stat, for S_ISLNK.
56294
56295 2007-03-19  Ben Pfaff  <blp@gnu.org>
56296
56297         * doc/gnulib.texi: Fix typos.
56298         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
56299
56300 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
56301
56302         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
56303         If size is zero here, buf must be zero.
56304
56305 2007-03-19  Simon Josefsson  <simon@josefsson.org>
56306
56307         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
56308         <bruno@clisp.org>.
56309
56310 2007-03-18  Bruno Haible  <bruno@clisp.org>
56311
56312         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
56313         Suggested by Eric Blake.
56314
56315 2007-03-18  Ben Pfaff  <blp@gnu.org>
56316
56317         * doc/relocatable.texi: Recommend using as prefix a directory
56318         that does not exist and will never be created.  Based on
56319         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
56320         and others.
56321
56322 2007-03-17  Bruno Haible  <bruno@clisp.org>
56323
56324         * lib/fchownat.c: Include lchown.h.
56325
56326 2007-03-17  Bruno Haible  <bruno@clisp.org>
56327
56328         Fix endless loop when the given allocated size was > INT_MAX.
56329         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
56330         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
56331         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
56332         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
56333         * lib/sprintf.c (sprintf): Likewise.
56334
56335 2007-03-17  Bruno Haible  <bruno@clisp.org>
56336
56337         * tests/test-argp-2.sh (func_compare): Output a context diff.
56338
56339 2007-03-17  Bruno Haible  <bruno@clisp.org>
56340
56341         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
56342         locale's decimal-point character.
56343
56344 2007-03-17  Bruno Haible  <bruno@clisp.org>
56345
56346         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
56347         before comparing it. Needed because on some platforms (e.g. x86) a
56348         'long double' occupies less bytes than sizeof (long double).
56349
56350 2007-03-17  Bruno Haible  <bruno@clisp.org>
56351
56352         * tests/test-crc.c (main): Make printf statements 64-bit clean.
56353         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
56354         * tests/test-getaddrinfo.c (simple): Likewise.
56355         * tests/test-read-file.c (main): Likewise.
56356
56357 2007-03-17  Bruno Haible  <bruno@clisp.org>
56358
56359         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
56360
56361 2007-03-17  Bruno Haible  <bruno@clisp.org>
56362
56363         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
56364         unused variable.
56365
56366 2007-03-17  Bruno Haible  <bruno@clisp.org>
56367
56368         * tests/test-c-strcasecmp.c: Include c-strcase.h.
56369         * tests/test-c-strncasecmp.c: Likewise.
56370
56371 2007-03-17  Bruno Haible  <bruno@clisp.org>
56372
56373         * modules/stdlib (Depends-on): Add unistd.
56374         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
56375         Needed for MacOS X 10.3.
56376
56377 2007-03-17  Bruno Haible  <bruno@clisp.org>
56378
56379         * lib/unistr/u-strdup.h: Include <stdlib.h>.
56380
56381 2007-03-17  Bruno Haible  <bruno@clisp.org>
56382
56383         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
56384
56385 2007-03-17  Bruno Haible  <bruno@clisp.org>
56386
56387         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
56388         to reflect files copied from gnulib (with or without modifications).
56389         Suggested by Jim Meyering.
56390
56391 2007-03-17  Eric Blake  <ebb9@byu.net>
56392
56393         * NEWS: Document stdlib change from 2007-02-18.
56394
56395 2007-03-17  Jim Meyering  <jim@meyering.net>
56396
56397         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
56398         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
56399         someone uses a name containing shell meta-characters.
56400         Reported by Alfred M. Szmidt.
56401
56402         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
56403
56404 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
56405
56406         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
56407         and copy gettext configuration files only if configure.ac contains
56408         a use of AM_GNU_GETTEXT_VERSION.
56409
56410 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
56411
56412         * build-aux/bootstrap (gnulib_name): New variable.
56413         (gnulib_tool_options): Use it.
56414
56415 2007-03-13  Simon Josefsson  <simon@josefsson.org>
56416
56417         * tests/test-des.c: Use new namespace.
56418
56419 2007-03-15  Bruno Haible  <bruno@clisp.org>
56420
56421         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
56422         Reported by James Youngman <jay@gnu.org>.
56423
56424 2007-03-15  Bruno Haible  <bruno@clisp.org>
56425
56426         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
56427         declared prototype. Needed with cc on OSF/1 5.1.
56428
56429 2007-03-15  Bruno Haible  <bruno@clisp.org>
56430
56431         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
56432         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
56433         (struct gl_list_implementation): Add dispose_fn argument to the
56434         'create_empty', 'create' methods.
56435         (struct gl_list_impl_base): Add field 'dispose_fn'.
56436         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
56437         argument.
56438         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
56439         dispose_fn argument.
56440         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
56441         dispose_fn on the dropped values.
56442         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
56443         dispose_fn argument.
56444         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
56445         dropped values.
56446         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
56447         (gl_tree_remove_node): Call dispose_fn on the dropped value.
56448         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
56449         (gl_tree_remove_node): Call dispose_fn on the dropped value.
56450         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
56451         argument.
56452         (gl_tree_list_free): Call dispose_fn on the dropped values.
56453         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
56454         the dropped values.
56455         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
56456         Add dispose_fn argument.
56457         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
56458         Call dispose_fn on the dropped values.
56459         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
56460         Add dispose_fn argument.
56461         (gl_sublist_create): Initialize the 'dispose_fn' field.
56462         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
56463         * tests/test-array_list.c (main): Update.
56464         * tests/test-carray_list.c (main): Update.
56465         * tests/test-avltree_list.c (main): Update.
56466         * tests/test-rbtree_list.c (main): Update.
56467         * tests/test-avltreehash_list.c (main): Update.
56468         * tests/test-rbtreehash_list.c (main): Update.
56469         * tests/test-linked_list.c (main): Update.
56470         * tests/test-linkedhash_list.c (main): Update.
56471         * tests/test-array_oset.c (main): Update.
56472
56473 2007-03-15  Bruno Haible  <bruno@clisp.org>
56474
56475         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
56476         (gl_oset_create_empty): Add dispose_fn argument.
56477         (struct gl_oset_implementation): Add dispose_fn argument to
56478         'create_empty' method.
56479         (struct gl_oset_impl_base): Add dispose_fn field.
56480         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
56481         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
56482         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
56483         values.
56484         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
56485         (gl_tree_oset_free): Call dispose_fn on the dropped values.
56486         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
56487         dropped value.
56488         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
56489         dropped value.
56490         * tests/test-array_oset.c (main): Update.
56491         * tests/test-avltree_oset.c (main): Update.
56492         * tests/test-rbtree_oset.c (main): Update.
56493         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
56494
56495 2007-03-13  Bruno Haible  <bruno@clisp.org>
56496
56497         * tests/test-stdbool.c (i): Update after last patch.
56498
56499 2007-03-12  Bruno Haible  <bruno@clisp.org>
56500
56501         * lib/quotearg.c: Include <wctype.h> early, before the definition of
56502         the iswprint macro. Needed on Solaris 2.5.1.
56503
56504 2007-03-12  Bruno Haible  <bruno@clisp.org>
56505
56506         * tests/test-printf-frexp.c (main): Declare x as volatile.
56507
56508 2007-03-12  Simon Josefsson  <simon@josefsson.org>
56509
56510         * doc/gnulib.texi (Build robot for gnulib): New section.
56511
56512 2007-03-12  Jim Meyering  <jim@meyering.net>
56513
56514         * build-aux/bootstrap: New file.
56515         * build-aux/bootstrap.conf: New file, from coreutils.
56516
56517 2007-03-11  Bruno Haible  <bruno@clisp.org>
56518
56519         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
56520
56521 2007-03-12  Simon Josefsson  <simon@josefsson.org>
56522
56523         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
56524         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
56525         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
56526
56527 2007-03-11  Bruno Haible  <bruno@clisp.org>
56528
56529         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
56530         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
56531
56532 2007-03-11  Bruno Haible  <bruno@clisp.org>
56533
56534         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
56535         formula. Needed for SunPRO C 5.0.
56536
56537 2007-03-11  Bruno Haible  <bruno@clisp.org>
56538
56539         * modules/long-options (Depends-on): Add getopt.
56540
56541 2007-03-11  Bruno Haible  <bruno@clisp.org>
56542
56543         * modules/modechange (Depends-on): Add stdbool.
56544
56545 2007-03-11  Bruno Haible  <bruno@clisp.org>
56546
56547         * modules/i-ring (Depends-on): Add stdbool.
56548
56549 2007-03-11  Bruno Haible  <bruno@clisp.org>
56550
56551         * modules/gc-des (Depends-on): Add stdbool.
56552
56553 2007-03-11  Bruno Haible  <bruno@clisp.org>
56554
56555         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
56556
56557 2007-03-11  Bruno Haible  <bruno@clisp.org>
56558
56559         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
56560
56561 2007-03-11  Bruno Haible  <bruno@clisp.org>
56562
56563         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
56564
56565 2007-03-11  Bruno Haible  <bruno@clisp.org>
56566
56567         * lib/vasnprintf.c (sprintf): Undefine.
56568
56569 2007-03-11  Bruno Haible  <bruno@clisp.org>
56570
56571         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
56572         initializers in SunPRO C and Compaq C compilers.
56573
56574 2007-03-11  Bruno Haible  <bruno@clisp.org>
56575
56576         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
56577         decrementing code ANSI C compliant.
56578
56579 2007-03-11  Bruno Haible  <bruno@clisp.org>
56580
56581         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
56582         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
56583
56584 2007-03-11  Bruno Haible  <bruno@clisp.org>
56585
56586         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
56587         <stdbool.h> substitute doesn't pass.
56588
56589 2007-03-11  Bruno Haible  <bruno@clisp.org>
56590
56591         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
56592
56593 2007-03-11  Bruno Haible  <bruno@clisp.org>
56594
56595         * gnulib-tool (func_create_megatestdir): Create also an autobuild
56596         script, for submission to autobuild.josefsson.org.
56597
56598 2007-03-10  Bruno Haible  <bruno@clisp.org>
56599
56600         * modules/canonicalize-lgpl-tests: New file.
56601         * tests/test-canonicalize-lgpl.sh: New file.
56602         * tests/test-canonicalize-lgpl.c: New file.
56603
56604         * modules/c-strcase-tests: New file.
56605         * tests/test-c-strcase.sh: New file.
56606         * tests/test-c-strcasecmp.c: New file.
56607         * tests/test-c-strncasecmp.c: New file.
56608
56609         * modules/atexit-tests: New file.
56610         * tests/test-atexit.sh: New file.
56611         * tests/test-atexit.c: New file.
56612
56613 2007-03-10  Bruno Haible  <bruno@clisp.org>
56614
56615         * tests/test-binary-io.sh: Use temporary filenames that are not so
56616         likely to clash with those of other tests (in a parallel make).
56617         * tests/test-binary-io.c: Likewise.
56618
56619 2007-03-10  Bruno Haible  <bruno@clisp.org>
56620
56621         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
56622         fallback; use #error instead.
56623         Suggested by Simon Josefsson.
56624
56625 2007-03-10  Bruno Haible  <bruno@clisp.org>
56626
56627         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
56628         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
56629         first and the last.
56630
56631 2007-03-10  Bruno Haible  <bruno@clisp.org>
56632
56633         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
56634
56635 2007-03-10  Bruno Haible  <bruno@clisp.org>
56636
56637         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
56638         "make distcheck".
56639         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
56640         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
56641         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
56642
56643 2007-03-10  Bruno Haible  <bruno@clisp.org>
56644
56645         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
56646         variable.
56647         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
56648         variable.
56649
56650 2007-03-09  Eric Blake  <ebb9@byu.net>
56651         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
56652
56653         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
56654         types are not being provided by gnulib.
56655         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
56656         types are supported.
56657
56658 2007-03-10  Bruno Haible  <bruno@clisp.org>
56659
56660         * lib/stdio_.h (__attribute__): New macro.
56661         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
56662         vsprintf): Specify __attribute__ __format__ for GCC.
56663         Suggested by Eric Blake.
56664
56665 2007-03-09  Bruno Haible  <bruno@clisp.org>
56666
56667         * modules/printf-posix-tests: New file.
56668         * tests/test-printf-posix.sh: New file.
56669         * tests/test-printf-posix.c: New file.
56670
56671         * modules/printf-posix: New file.
56672         * lib/printf.c: New file.
56673         * m4/printf-posix-rpl.m4: New file.
56674         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
56675         REPLACE_PRINTF.
56676         * lib/stdio_.h (printf): New declaration.
56677         (format, __format__, ____printf____, ____scanf____, ____strftime____,
56678         ____strfmon____): New macros.
56679         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
56680         REPLACE_PRINTF.
56681
56682 2007-03-09  Bruno Haible  <bruno@clisp.org>
56683
56684         * tests/test-vasnprintf-posix2.sh: New file.
56685         * tests/test-vasnprintf-posix2.c: New file.
56686         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
56687         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
56688         (Makefile.am): Activate test-vasnprintf-posix2.sh.
56689
56690         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
56691         a locale dependent decimal point, rather than always '.'.
56692
56693 2007-03-09  Eric Blake  <ebb9@byu.net>
56694
56695         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
56696         spite of platforms like Tandem/NSK that define it to -1.
56697
56698 2007-03-08  Bruno Haible  <bruno@clisp.org>
56699
56700         * modules/vprintf-posix-tests: New file.
56701         * tests/test-vprintf-posix.sh: New file.
56702         * tests/test-vprintf-posix.c: New file.
56703         * tests/test-printf-posix.h: New file.
56704
56705         * modules/vprintf-posix: New file.
56706         * lib/vprintf.c: New file.
56707         * m4/vprintf-posix.m4: New file.
56708         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
56709         REPLACE_VPRINTF.
56710         * lib/stdio_.h (vprintf): New declaration.
56711         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
56712         REPLACE_VPRINTF.
56713
56714 2007-03-08  Bruno Haible  <bruno@clisp.org>
56715
56716         * modules/fprintf-posix-tests: New file.
56717         * tests/test-fprintf-posix.sh: New file.
56718         * tests/test-fprintf-posix.c: New file.
56719
56720         * modules/fprintf-posix: New file.
56721         * lib/fprintf.c: New file.
56722         * m4/fprintf-posix.m4: New file.
56723         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
56724         REPLACE_FPRINTF.
56725         * lib/stdio_.h (fprintf): New declaration.
56726         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
56727         REPLACE_FPRINTF.
56728
56729 2007-03-08  Bruno Haible  <bruno@clisp.org>
56730
56731         * modules/vfprintf-posix-tests: New file.
56732         * tests/test-vfprintf-posix.sh: New file.
56733         * tests/test-vfprintf-posix.c: New file.
56734         * tests/test-fprintf-posix.h: New file.
56735         * tests/test-fprintf-posix.out: New file.
56736
56737         * modules/vfprintf-posix: New file.
56738         * lib/vfprintf.c: New file.
56739         * m4/vfprintf-posix.m4: New file.
56740         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
56741         REPLACE_VFPRINTF.
56742         * lib/stdio_.h (vfprintf): New declaration.
56743         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
56744         REPLACE_VFPRINTF.
56745
56746 2007-03-08  Bruno Haible  <bruno@clisp.org>
56747
56748         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
56749
56750 2007-03-08  Bruno Haible  <bruno@clisp.org>
56751
56752         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
56753         instead of 'expr' invocations.
56754         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
56755         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
56756         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
56757         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
56758         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
56759         Suggested by Paul Eggert.
56760
56761 2007-03-08  Bruno Haible  <bruno@clisp.org>
56762
56763         * modules/fseterr-tests: New file.
56764         * tests/test-fseterr.c: New file.
56765
56766         * modules/fseterr: New file.
56767         * lib/fseterr.h: New file.
56768         * lib/fseterr.c: New file.
56769
56770 2007-03-08  Bruno Haible  <bruno@clisp.org>
56771
56772         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
56773         * lib/getopt_.h: Likewise.
56774         * lib/mbswidth.h: Likewise.
56775         * lib/setenv.h: Likewise.
56776         * lib/vasnprintf.h: Likewise.
56777         * lib/vasprintf.h: Likewise.
56778         * lib/verror.h: Likewise.
56779         * lib/xsetenv.h: Likewise.
56780         * lib/xvasprintf.h: Likewise.
56781
56782 2007-03-08  Jim Meyering  <jim@meyering.net>
56783
56784         * users.txt: Add parted.
56785
56786         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
56787
56788 2007-03-07  Bruno Haible  <bruno@clisp.org>
56789
56790         * m4/printf.m4: Make the shell script snippets copy&pastable.
56791
56792 2007-03-02  Bruno Haible  <bruno@clisp.org>
56793
56794         * lib/netinet_in_.h: New file.
56795         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
56796         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
56797         * modules/netinet_in (Files): Add lib/netinet_in_.h.
56798         (Depends-on): Add absolute-header.
56799         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
56800         into netinet/in.h.
56801
56802 2007-03-03  Bruno Haible  <bruno@clisp.org>
56803
56804         * lib/sys_select_.h: New file.
56805         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
56806         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
56807         * modules/sys_select (Files): Add lib/sys_select_.h.
56808         (Depends-on): Add absolute-header.
56809         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
56810         into sys/select.h.
56811
56812 2007-03-02  Bruno Haible  <bruno@clisp.org>
56813
56814         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
56815         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
56816         values.
56817         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
56818         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
56819         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
56820         * modules/sys_socket (Depends-on): Add absolute-header.
56821         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
56822         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
56823         (Include): Remove requirement of inclusion of <sys/types.h>.
56824
56825 2007-03-02  Bruno Haible  <bruno@clisp.org>
56826
56827         * lib/byteswap_.h (bswap_32): Fix formula.
56828
56829 2007-03-06  Bruno Haible  <bruno@clisp.org>
56830
56831         * modules/sprintf-posix-tests: New file.
56832         * tests/test-sprintf-posix.c: New file.
56833
56834         * modules/sprintf-posix: New file.
56835         * lib/sprintf.c: New file.
56836         * m4/sprintf-posix.m4: New file.
56837         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
56838         REPLACE_SPRINTF.
56839         * lib/stdio_.h (sprintf): New declaration.
56840         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
56841         REPLACE_SPRINTF.
56842
56843 2007-03-06  Bruno Haible  <bruno@clisp.org>
56844
56845         * modules/vsprintf-posix-tests: New file.
56846         * tests/test-vsprintf-posix.c: New file.
56847         * tests/test-sprintf-posix.h: New file.
56848
56849         * modules/vsprintf-posix: New file.
56850         * lib/vsprintf.c: New file.
56851         * m4/vsprintf-posix.m4: New file.
56852         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
56853         REPLACE_VSPRINTF.
56854         * lib/stdio_.h (vsprintf): New declaration.
56855         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
56856         REPLACE_VSPRINTF.
56857
56858 2007-03-06  Bruno Haible  <bruno@clisp.org>
56859
56860         * modules/vsnprintf (Depend-on): Remove minmax.
56861
56862 2007-03-06  Bruno Haible  <bruno@clisp.org>
56863
56864         * modules/snprintf-posix-tests: New file.
56865         * tests/test-snprintf-posix.c: New file.
56866
56867         * modules/snprintf-posix: New file.
56868         * m4/snprintf-posix.m4: New file.
56869         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
56870         gl_FUNC_SNPRINTF.
56871         (gl_FUNC_SNPRINTF): Invoke it.
56872         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
56873         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
56874         is set.
56875         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
56876
56877 2007-03-06  Bruno Haible  <bruno@clisp.org>
56878
56879         * modules/vsnprintf-posix-tests: New file.
56880         * tests/test-vsnprintf-posix.c: New file.
56881         * tests/test-snprintf-posix.h: New file.
56882
56883         * modules/vsnprintf-posix: New file.
56884         * m4/vsnprintf-posix.m4: New file.
56885         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
56886         gl_FUNC_VSNPRINTF.
56887         (gl_FUNC_VSNPRINTF): Invoke it.
56888         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
56889         * lib/stdio_.h (vsnprintf): Define as a replacement if
56890         REPLACE_VSNPRINTF is set.
56891         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
56892
56893 2007-03-06  Bruno Haible  <bruno@clisp.org>
56894
56895         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
56896         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
56897
56898 2007-03-06  Bruno Haible  <bruno@clisp.org>
56899
56900         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
56901         (asinl): Declare also if HAVE_DECL_ASINL is set.
56902         (atanl): Declare also if HAVE_DECL_ATANL is set.
56903         (ceill): Declare also if HAVE_DECL_CEILL is set.
56904         (cosl): Declare also if HAVE_DECL_COSL is set.
56905         (expl): Declare also if HAVE_DECL_EXPL is set.
56906         (floorl): Declare also if HAVE_DECL_FLOORL is set.
56907         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
56908         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
56909         (logl): Declare also if HAVE_DECL_LOGL is set.
56910         (sinl): Declare also if HAVE_DECL_SINL is set.
56911         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
56912         (tanl): Declare also if HAVE_DECL_TANL is set.
56913         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
56914         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
56915         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
56916         declaration of frexpl, ldexpl.
56917         * modules/printf-frexpl (Depends-on): Add math.
56918         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
56919
56920 2007-03-05  Bruno Haible  <bruno@clisp.org>
56921
56922         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
56923         frexpl and ldexpl are declared.
56924         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
56925
56926 2007-03-05  Bruno Haible  <bruno@clisp.org>
56927
56928         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
56929         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
56930
56931 2007-03-05  Bruno Haible  <bruno@clisp.org>
56932
56933         * lib/stdio_.h: Include <stddef.h>.
56934
56935 2007-03-05  Bruno Haible  <bruno@clisp.org>
56936
56937         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
56938
56939 2007-03-05  Bruno Haible  <bruno@clisp.org>
56940
56941         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
56942         NetBSD 4, from Ralf Wildenhues.
56943
56944 2007-03-04  Bruno Haible  <bruno@clisp.org>
56945
56946         * lib/vasprintf.h: Update #if logic for the case when the functions
56947         exist but are overridden.
56948
56949 2007-03-04  Bruno Haible  <bruno@clisp.org>
56950
56951         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
56952         implementations: glibc-2.4 and MacOS X 10.3.
56953         * tests/test-vasnprintf-posix.c (test_function): Test also the case
56954         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
56955         * tests/test-vasprintf-posix.c (test_function): Likewise.
56956
56957 2007-03-04  Bruno Haible  <bruno@clisp.org>
56958
56959         * modules/vasprintf-posix-tests: New file.
56960         * tests/test-vasprintf-posix.c: New file.
56961
56962         * modules/vasprintf-posix: New file.
56963         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
56964         defined.
56965         * m4/vasprintf-posix.m4: New file.
56966         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
56967         gl_FUNC_VASPRINTF.
56968         (gl_FUNC_VASPRINTF): Invoke it.
56969         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
56970         here.
56971         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
56972
56973 2007-03-04  Bruno Haible  <bruno@clisp.org>
56974
56975         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
56976         REPLACE_GETTIMEOFDAY.
56977         * modules/sys_time (Makefile.am): Likewise.
56978         * m4/sys_time_h.m4: Likewise.
56979         * m4/gettimeofday.m4: Likewise.
56980
56981 2007-03-04  Bruno Haible  <bruno@clisp.org>
56982
56983         * modules/vasnprintf-posix-tests: New file.
56984         * tests/test-vasnprintf-posix.c: New file.
56985
56986         * modules/vasnprintf-posix: New file.
56987         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
56988         printf-frexpl.h.
56989         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
56990         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
56991         REPLACE_VASNPRINTF is defined.
56992         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
56993         gl_FUNC_VASNPRINTF.
56994         (gl_FUNC_VASNPRINTF): Invoke it.
56995         * m4/vasnprintf-posix.m4: New file.
56996         * m4/printf.m4: New file.
56997
56998 2007-03-04  Bruno Haible  <bruno@clisp.org>
56999
57000         Compile progreloc.c only if --enable-relocatable is specified.
57001         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
57002         if --enable-relocatable was specified.
57003         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
57004         lib_SOURCES.
57005
57006 2007-03-04  Jim Meyering  <jim@meyering.net>
57007
57008         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
57009         Use it consistently, rather than enumerating errno constants.
57010
57011 2007-03-04  Bruno Haible  <bruno@clisp.org>
57012
57013         * modules/xvasprintf-tests: New file.
57014         * tests/test-xvasprintf.c: New file.
57015
57016         * modules/vasprintf-tests: New file.
57017         * tests/test-vasprintf.c: New file.
57018
57019         * modules/vasnprintf-tests: New file.
57020         * tests/test-vasnprintf.c: New file.
57021
57022         * modules/vsnprintf-tests: New file.
57023         * tests/test-vsnprintf.c: New file.
57024
57025         * modules/snprintf-tests: New file.
57026         * tests/test-snprintf.c: New file.
57027
57028 2007-03-04  Bruno Haible  <bruno@clisp.org>
57029
57030         Compile relocatable.c only if --enable-relocatable is specified.
57031         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
57032         gl_RELOCATABLE_LIBRARY.
57033         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
57034         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
57035         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
57036         gl_RELOCATABLE_LIBRARY.
57037         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
57038         (Makefile.am): Remove lib_SOURCES.
57039         * modules/relocatable-lib-lgpl (configure.ac): Invoke
57040         gl_RELOCATABLE_LIBRARY.
57041         (Makefile.am): Remove lib_SOURCES.
57042         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
57043         always.
57044         * modules/relocatable-prog-wrapper (configure.ac): Invoke
57045         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
57046
57047 2007-03-04  Bruno Haible  <bruno@clisp.org>
57048
57049         * modules/argmatch-tests: New file.
57050         * tests/test-argmatch.c: New file.
57051
57052         * tests/test-allocsa.c (main): Halve the number of loop runs.
57053
57054         * modules/alloca-opt-tests: New file.
57055         * tests/test-alloca-opt.c: New file.
57056
57057 2007-03-04  Jim Meyering  <jim@meyering.net>
57058
57059         Work around difference between Linux ACLs and Solaris 10 ZFS.
57060         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
57061         for EINVAL.
57062
57063 2007-03-03  Bruno Haible  <bruno@clisp.org>
57064
57065         * modules/relocatable-prog (Depends-on): Add back progreloc's
57066         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
57067
57068 2007-03-03  Bruno Haible  <bruno@clisp.org>
57069
57070         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
57071         * modules/relocatable-lib: New file.
57072
57073 2007-03-03  Bruno Haible  <bruno@clisp.org>
57074
57075         * modules/relocatable-prog: Renamed from modules/relocatable.
57076         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
57077
57078 2007-03-03  Bruno Haible  <bruno@clisp.org>
57079
57080         * modules/relocatable-script (Files): Add doc/relocatable.texi,
57081         m4/relocatable-lib.m4.
57082         (Depends-on): Remove 'relocatable'.
57083         (configure.ac): Add gl_RELOCATABLE_NOP.
57084
57085 2007-03-03  Bruno Haible  <bruno@clisp.org>
57086
57087         * modules/relocatable-prog-wrapper: New file.
57088         * modules/relocatable (Depends-on): Add it. Remove all other
57089         dependencies except progname.
57090         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
57091
57092         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
57093         (gl_FUNC_STRERROR): Nop.
57094         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
57095
57096         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
57097         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
57098
57099         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
57100         (gl_FUNC_READLINK): Update.
57101
57102         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
57103
57104 2007-03-03  Bruno Haible  <bruno@clisp.org>
57105
57106         * lib/xreadlink.c: Include <unistd.h> unconditionally.
57107         * modules/xreadlink (Depends-on): Add unistd.
57108         * modules/xreadlink-with-size (Depends-on): Likewise.
57109
57110 2007-03-03  Bruno Haible  <bruno@clisp.org>
57111
57112         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
57113         extracted from gt_FUNC_SETENV.
57114         (gt_FUNC_SETENV): Remove macro.
57115         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
57116         remove gt_FUNC_SETENV.
57117
57118 2007-03-03  Bruno Haible  <bruno@clisp.org>
57119
57120         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
57121         ENABLE_RELOCATABLE here.
57122         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
57123
57124 2007-03-03  Bruno Haible  <bruno@clisp.org>
57125
57126         * modules/rbtreehash-list-tests (Depends-on): Add progname.
57127         * tests/test-rbtreehash_list.c: Include progname.h.
57128         (main): Call set_program_name.
57129
57130         * modules/rbtree-oset-tests (Depends-on): Add progname.
57131         * tests/test-rbtree_oset.c: Include progname.h.
57132         (main): Call set_program_name.
57133
57134         * modules/rbtree-list-tests (Depends-on): Add progname.
57135         * tests/test-rbtree_list.c: Include progname.h.
57136         (main): Call set_program_name.
57137
57138         * modules/linked-list-tests (Depends-on): Add progname.
57139         * tests/test-linked_list.c: Include progname.h.
57140         (main): Call set_program_name.
57141
57142 2007-03-03  Bruno Haible  <bruno@clisp.org>
57143
57144         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
57145         All uses of __restrict changed to _Restrict_.
57146         * lib/glob_.h (__restrict): Remove macro.
57147
57148 2007-03-02  Bruno Haible  <bruno@clisp.org>
57149
57150         * modules/gettext (configure.ac): Require gettext infrastructure
57151         from version 0.16.1.
57152
57153 2007-03-02  Bruno Haible  <bruno@clisp.org>
57154
57155         * modules/linkedhash-list-tests (Depends-on): Add progname.
57156         * tests/test-linkedhash_list.c: Include progname.h.
57157         (main): Call set_program_name.
57158
57159         * modules/carray-list-tests (Depends-on): Add progname.
57160         * tests/test-carray_list.c: Include progname.h.
57161         (main): Call set_program_name.
57162
57163         * modules/avltreehash-list-tests (Depends-on): Add progname.
57164         * tests/test-avltreehash_list.c: Include progname.h.
57165         (main): Call set_program_name.
57166
57167         * modules/avltree-oset-tests (Depends-on): Add progname.
57168         * tests/test-avltree_oset.c: Include progname.h.
57169         (main): Call set_program_name.
57170
57171         * modules/avltree-list-tests (Depends-on): Add progname.
57172         * tests/test-avltree_list.c: Include progname.h.
57173         (main): Call set_program_name.
57174
57175         * modules/array-oset-tests (Depends-on): Add progname.
57176         * tests/test-array_oset.c: Include progname.h.
57177         (main): Call set_program_name.
57178
57179         * modules/array-list-tests (Depends-on): Add progname.
57180         * tests/test-array_list.c: Include progname.h.
57181         (main): Call set_program_name.
57182
57183         * modules/argp-tests (Depends-on): Add progname.
57184         * tests/test-argp.c: Include argp.h first. Include progname.h.
57185         (main): Call set_program_name.
57186
57187 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
57188
57189         * doc/gnulib-tool.texi (Initial import): Reword description of
57190         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
57191         limited effect even if defined after the first system include.
57192
57193 2007-03-01  Bruno Haible  <bruno@clisp.org>
57194
57195         * build-aux/config.libpath: Update to libtool-1.5.22.
57196         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
57197
57198 2007-03-01  Bruno Haible  <bruno@clisp.org>
57199
57200         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
57201         foo_CFLAGS.
57202         Reported by Ralf Wildenhues.
57203
57204 2007-03-01  Bruno Haible  <bruno@clisp.org>
57205
57206         * build-aux/install-reloc: Remove object files left over by some
57207         compilers.
57208         Reported by Ralf Wildenhues.
57209
57210 2007-03-01  Bruno Haible  <bruno@clisp.org>
57211
57212         * build-aux/install-reloc: Break long lines.
57213
57214 2007-03-01  Bruno Haible  <bruno@clisp.org>
57215
57216         * doc/relocatable.texi: Document that it may not work on OpenBSD.
57217         Reported by Ralf Wildenhues.
57218
57219 2007-03-01  Bruno Haible  <bruno@clisp.org>
57220
57221         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
57222         include ordering constraints.
57223
57224 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
57225
57226         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
57227         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
57228         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
57229         as another example.
57230         * lib/time_.h: Fix misspelling.
57231         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
57232         Require gl_HEADER_TIME_H_DEFAULTS.
57233         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
57234         * m4/time_r.m4 (gl_TIME_R): Likewise.
57235         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
57236
57237 2007-03-01  Bruno Haible  <bruno@clisp.org>
57238
57239         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
57240         * m4/utimens.m4 (gl_UTIMENS): Likewise.
57241
57242 2007-03-01  Jim Meyering  <jim@meyering.net>
57243
57244         * modules/xreadlink (Maintainer): Add my name.
57245         * modules/xreadlink-with-size (Depends-on): Alphabetize.
57246
57247 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
57248             Bruno Haible  <bruno@clisp.org>
57249
57250         * build-aux/install-reloc: Compile also c-ctype.c.
57251         * build-aux/relocatable.sh.in: New file.
57252         * doc/relocatable.texi: New file.
57253         * doc/relocatable-maint.texi: New file.
57254         * doc/gnulib.texi: Include relocatable-maint.texi.
57255         * lib/progreloc.c: Include unistd.h unconditionally.
57256         * lib/relocwrapper.c: Include unistd.h unconditionally.
57257         Include c-ctype.h.
57258         (add_dotbin): Use c_tolower.
57259         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
57260         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
57261         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
57262         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
57263         to m4/relocatable-lib.m4.
57264         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
57265         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
57266         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
57267         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
57268         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
57269         * modules/relocatable: New file.
57270         * modules/relocatable-lib: New file.
57271         * modules/relocatable-script: New file.
57272
57273 2007-02-28  Bruno Haible  <bruno@clisp.org>
57274
57275         Import --enable-relocatable infrastructure.
57276         * build-aux/config.libpath: New file, from GNU gettext.
57277         * build-aux/install-reloc: New file, from GNU gettext.
57278         * build-aux/reloc-ldflags: New file, from GNU gettext.
57279         * lib/relocatable.h: New file, from GNU gettext.
57280         * lib/relocatable.c: New file, from GNU gettext.
57281         * lib/relocwrapper.c: New file, from GNU gettext.
57282         * m4/relocatable.m4: New file, from GNU gettext.
57283
57284 2007-02-28  Bruno Haible  <bruno@clisp.org>
57285
57286         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
57287
57288         * modules/xreadlink: New file, from GNU gettext with modifications.
57289         * lib/xreadlink.c: New file, from GNU gettext.
57290         * lib/xreadlink.h: Add comments.
57291         (xreadlink): New declaration.
57292
57293         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
57294         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
57295         lib/xreadlink-with-size.c.
57296         (configure.ac): Remove gl_XREADLINK invocation.
57297         (Makefile.am): Augment lib_SOURCES.
57298         * m4/xreadlink.m4: Remove file.
57299         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
57300         (xreadlink_with_size): Renamed from xreadink.
57301         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
57302         * modules/canonicalize (Depends-on): Replace xreadlink with
57303         xreadlink-with-size.
57304         * lib/canonicalize.c (canonicalize_filename_mode): Update.
57305
57306 2007-02-25  Jim Meyering  <jim@meyering.net>
57307
57308         * build-aux/announce-gen: When complaining about excess arguments,
57309         list them.
57310
57311 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
57312
57313         * README: Document signed integer overflow situation more
57314         accurately.
57315
57316 2007-02-25  Bruno Haible  <bruno@clisp.org>
57317
57318         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
57319         'a' or 'A' conversion.
57320
57321 2007-02-25  Bruno Haible  <bruno@clisp.org>
57322
57323         * modules/filename: Renamed from modules/pathname.
57324         (Files): Replace lib/pathname.h with lib/filename.h. Replace
57325         lib/concatpath.c with lib/concat-filename.c.
57326         (Makefile.am): Update.
57327         (Include): Replace pathname.h with filename.h.
57328         * lib/filename.h: Renamed from lib/pathname.h.
57329         (concatenated_filename): Renamed from concatenated_pathname.
57330         * lib/concat-filename.c: Renamed from lib/concatpath.c.
57331         (concatenated_filename): Renamed from concatenated_pathname.
57332         * lib/findprog.c: Include filename.h instead of pathname.h.
57333         (find_in_path): Update.
57334         * lib/javacomp.c: Include filename.h instead of pathname.h.
57335         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
57336         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
57337         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
57338         is_oldgcj_14_13_usable, is_javac_usable): Update.
57339         * lib/javaexec.c: Include filename.h instead of pathname.h.
57340         (execute_java_class): Update.
57341         * modules/findprog: Update.
57342         * modules/javacomp: Update.
57343         * modules/javaexec: Update.
57344         * MODULES.html.sh (File system functions): Add 'filename', remove
57345         'pathname'.
57346
57347 2007-02-25  Bruno Haible  <bruno@clisp.org>
57348
57349         * modules/printf-frexpl-tests: New file.
57350         * tests/test-printf-frexpl.c: New file.
57351
57352         * modules/printf-frexpl: New file.
57353         * lib/printf-frexpl.h: New file.
57354         * lib/printf-frexpl.c: New file.
57355         * m4/printf-frexpl.m4: New file.
57356
57357 2007-02-25  Bruno Haible  <bruno@clisp.org>
57358
57359         * modules/printf-frexp-tests: New file.
57360         * tests/test-printf-frexp.c: New file.
57361
57362         * modules/printf-frexp: New file.
57363         * lib/printf-frexp.h: New file.
57364         * lib/printf-frexp.c: New file.
57365         * m4/printf-frexp.m4: New file.
57366
57367 2007-02-25  Bruno Haible  <bruno@clisp.org>
57368
57369         Assume automake >= 1.10 for the tests.
57370         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
57371         * modules/arctwo-tests: Likewise.
57372         * modules/argp-tests: Likewise.
57373         * modules/avltree-list-tests: Likewise.
57374         * modules/avltree-oset-tests: Likewise.
57375         * modules/avltreehash-list-tests: Likewise.
57376         * modules/carray-list-tests: Likewise.
57377         * modules/crc-tests: Likewise.
57378         * modules/des-tests: Likewise.
57379         * modules/gc-arcfour-tests: Likewise.
57380         * modules/gc-arctwo-tests: Likewise.
57381         * modules/gc-des-tests: Likewise.
57382         * modules/gc-hmac-md5-tests: Likewise.
57383         * modules/gc-hmac-sha1-tests: Likewise.
57384         * modules/gc-md2-tests: Likewise.
57385         * modules/gc-md4-tests: Likewise.
57386         * modules/gc-md5-tests: Likewise.
57387         * modules/gc-pbkdf2-sha1-tests: Likewise.
57388         * modules/gc-rijndael-tests: Likewise.
57389         * modules/gc-sha1-tests: Likewise.
57390         * modules/gc-tests: Likewise.
57391         * modules/getaddrinfo-tests: Likewise.
57392         * modules/hmac-md5-tests: Likewise.
57393         * modules/hmac-sha1-tests: Likewise.
57394         * modules/linked-list-tests: Likewise.
57395         * modules/linkedhash-list-tests: Likewise.
57396         * modules/lock-tests: Likewise.
57397         * modules/md2-tests: Likewise.
57398         * modules/md4-tests: Likewise.
57399         * modules/md5-tests: Likewise.
57400         * modules/rbtree-list-tests: Likewise.
57401         * modules/rbtree-oset-tests: Likewise.
57402         * modules/rbtreehash-list-tests: Likewise.
57403         * modules/read-file-tests: Likewise.
57404         * modules/rijndael-tests: Likewise.
57405         * modules/stdint-tests: Likewise.
57406         * modules/tls-tests: Likewise.
57407
57408 2007-02-24  Bruno Haible  <bruno@clisp.org>
57409
57410         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
57411         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
57412         function; instead check whether isnan with a double argument links.
57413         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
57414         function; instead check whether isnan with a 'long double' argument
57415         links.
57416         Reported by Eric Blake <ebb9@byu.net>.
57417
57418 2007-02-24  Bruno Haible  <bruno@clisp.org>
57419
57420         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
57421         defined.
57422         * lib/isnanl.c: Remove all code. Just include isnan.c.
57423         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
57424
57425 2007-02-25  Jim Meyering  <jim@meyering.net>
57426
57427         Avoid conflicting types for 'unsetenv' on FreeBSD.
57428         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
57429         conflicting with FreeBSD's (5.0 and 6.1) function declaration
57430         in stdlib.h.
57431
57432 2007-02-24  Bruno Haible  <bruno@clisp.org>
57433
57434         * modules/isnanl-nolibm-tests: New file.
57435         * tests/test-isnanl.c: New file.
57436
57437         * modules/isnanl-nolibm: New file.
57438         * lib/isnanl.h: New file.
57439         * lib/isnanl.c: New file.
57440         * m4/isnanl.m4: New file.
57441
57442 2007-02-24  Bruno Haible  <bruno@clisp.org>
57443
57444         * modules/isnan-nolibm-tests: New file.
57445         * tests/test-isnan.c: New file.
57446
57447         * modules/isnan-nolibm: New file.
57448         * lib/isnan.h: New file.
57449         * lib/isnan.c: New file.
57450         * m4/isnan.m4: New file.
57451
57452 2007-02-24  Bruno Haible  <bruno@clisp.org>
57453
57454         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
57455         assume that an exponent fits in 20 bits.
57456
57457 2007-02-24  Jim Meyering  <jim@meyering.net>
57458
57459         * m4/regex.m4: Update the description of the configure-time option,
57460         --without-included-regex, to state accurately what the defaults are,
57461         and perhaps to give people an idea why using this option is risky.
57462
57463 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
57464
57465         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
57466         loops on small arguments.  This attempts to avoid the problem
57467         Bruno Haible reported for AIX 4.3.2 in
57468         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
57469
57470 2007-02-23  Bruno Haible  <bruno@clisp.org>
57471
57472         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
57473         Needed for help2man.
57474
57475 2007-02-23  Karl Berry  <karl@gnu.org>
57476
57477         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
57478         exists, foo.h should be cvs-ignored, not committed.
57479
57480 2007-02-23  Eric Blake  <ebb9@byu.net>
57481
57482         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
57483         * lib/stat-time.h (includes): Likewise.
57484         * lib/utimecmp.c (includes): Likewise.
57485         * lib/utimens.h (includes): Likewise.
57486         * lib/getdate.y (includes): Also include "timespec.h" for use
57487         internal to the module.
57488         * modules/utimens (Depends-on): Revert yesterday's patch.
57489         * modules/nanosleep (Depends-on): Add missing dependency.
57490
57491 2007-02-22  Bruno Haible  <bruno@clisp.org>
57492
57493         * lib/glob.c: Don't include getlogin_r.h.
57494
57495 2007-02-22  Jim Meyering  <jim@meyering.net>
57496
57497         * modules/utimens (Depends-on): Add timespec, required for
57498         utimens.h's inclusion of timespec.h.
57499
57500 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
57501
57502         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
57503         long unreadable paths in GNU/Linux.  Problem reported by Andreas
57504         Schwab in
57505         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
57506         I'll try to think of a better way to fix the Solaris problem.
57507
57508         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
57509         like glibc; on Solaris 10, it fails with errno == EINVAL.
57510         POSIX says the behavior is unspecified if the first argument is NULL,
57511         so play it safe and never pass NULL to the system getcwd.
57512
57513 2007-02-21  Jim Meyering  <jim@meyering.net>
57514
57515         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
57516         of gettimeofday.  It would conflict with the one now always
57517         provided via sys_time_.h.  Reported by Matthew Woehlke, as
57518         an IRIX 6.5 build failure.
57519
57520 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
57521
57522         Minor fixups to port to Solaris 10 with Sun C 5.8.
57523         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
57524         * modules/getcwd (Depends-on): Add dirfd.
57525         * lib/putenv.c (putenv): #undef it.
57526         (rpl_putenv): New decl.
57527         (malloc, free): Include <stdlib.h> rather than prototyping separately.
57528
57529 2007-02-20  Bruno Haible  <bruno@clisp.org>
57530
57531         * modules/stdio-tests: New file.
57532         * tests/test-stdio.c: New file.
57533
57534         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
57535         (Depends-on): Add stdio.
57536         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
57537         (Include): Use <stdio.h> instead of vsnprintf.h.
57538         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
57539         HAVE_DECL_VSNPRINTF.
57540         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
57541
57542         * modules/snprintf (Files): Remove lib/snprintf.h.
57543         (Depends-on): Add stdio.
57544         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
57545         (Include): Use <stdio.h> instead of snprintf.h.
57546         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
57547         HAVE_DECL_SNPRINTF.
57548         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
57549         * lib/getaddrinfo.c: Likewise.
57550
57551         * modules/stdio: New file.
57552         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
57553         * lib/snprintf.h: Remove file.
57554         * lib/vsnprintf.h: Remove file.
57555         * lib/.cppi-disable: Remove snprintf.h.
57556         * m4/stdio_h.m4: New file.
57557         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
57558
57559 2007-02-20  Jim Meyering  <jim@meyering.net>
57560
57561         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
57562         used by e.g., mingw.  From Bruno Haible.
57563
57564 2007-02-19  Bruno Haible  <bruno@clisp.org>
57565
57566         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
57567         warnings.
57568         Reported by Ben Pfaff <blp@cs.stanford.edu>.
57569
57570 2007-02-19  Bruno Haible  <bruno@clisp.org>
57571
57572         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
57573         from mingw users.
57574
57575 2007-02-19  Bruno Haible  <bruno@clisp.org>
57576
57577         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
57578         warnings.
57579         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
57580
57581 2007-02-19  Jim Meyering  <jim@meyering.net>
57582
57583         Don't use FD after a successful "fdopendir (fd)".
57584         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
57585         Reset it by calling dirfd on the just-obtained DIR*.
57586
57587         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
57588         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
57589
57590 2007-02-18  Bruno Haible  <bruno@clisp.org>
57591
57592         * lib/readlink.c: Include <unistd.h>.
57593         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
57594         HAVE_READLINK.
57595         * modules/readlink (Depends-on): Add unistd.
57596         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
57597         (Include): Add <unistd.h>.
57598
57599         * lib/getlogin_r.h: Remove file.
57600         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
57601         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
57602         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
57603         HAVE_DECL_GETLOGIN_R.
57604         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
57605         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
57606         (Include): Use <unistd.h> instead of getlogin_r.h.
57607
57608         * lib/getcwd.h: Remove file.
57609         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
57610         * lib/xgetcwd.c: Likewise.
57611         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
57612         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
57613         * modules/getcwd (Files): Remove lib/getcwd.h.
57614         (Depends-on): Add unistd.
57615         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
57616         (Include): Use <unistd.h> instad of getcwd.h.
57617
57618         * lib/ftruncate.c: Include <unistd.h> first.
57619         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
57620         Set HAVE_FTRUNCATE.
57621         * modules/ftruncate (Depends-on): Add unistd.
57622         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
57623
57624         * lib/fchdir.c: Include <unistd.h> first.
57625         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
57626         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
57627         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
57628         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
57629         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
57630
57631         * lib/dup2.c: Include <unistd.h> first.
57632         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
57633         HAVE_DUP2.
57634         * modules/dup2 (Depends-on): Add unistd.
57635         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
57636
57637         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
57638         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
57639         REPLACE_CHOWN. Don't define chown as a macro here.
57640         * modules/chown (Depends-on): Add unistd.
57641         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
57642
57643         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
57644         Add definition for GL_LINK_WARNING.
57645         (chown, dup2): New declarations.
57646         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
57647         link warning.
57648         (ftruncate): New declaration.
57649         (getcwd): New declaration, taken from old getcwd.h.
57650         (getlogin_r): New declaration, taken from old getlogin_r.h.
57651         (readlink): New declaration.
57652         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
57653         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
57654         (gl_PREREQ_UNISTD): Remove macro.
57655         (gl_UNISTD_MODULE_INDICATOR): New macro.
57656         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
57657         many new variables. Don't set UNISTD_H.
57658         * modules/unistd (Description): Change.
57659         (Depends-on): Add link-warning.
57660         (configure.ac): Update.
57661         (Makefile.am): Create unistd.h always. Substitute many new variables
57662         into it.
57663
57664 2007-02-18  Bruno Haible  <bruno@clisp.org>
57665
57666         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
57667         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
57668         HAVE_GETSUBOPT.
57669         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
57670         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
57671         * lib/getsubopt.h: Remove file.
57672         * modules/getsubopt (Files): Remove lib/getsubopt.h.
57673         (Depends-on): Add stdlib.
57674         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
57675         (Includes): Use <stdlib.h> instead of getsubopt.h.
57676         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
57677         Set HAVE_GETSUBOPT.
57678         * lib/getsubopt.c: Don't include getsubopt.h.
57679
57680 2007-02-18  Bruno Haible  <bruno@clisp.org>
57681
57682         * modules/fchdir (Depends-on): Add dup2.
57683
57684 2007-02-18  Bruno Haible  <bruno@clisp.org>
57685
57686         * lib/stdlib_.h: Handle glibc's special invocation convention
57687         specially.
57688
57689 2007-02-18  Bruno Haible  <bruno@clisp.org>
57690
57691         * modules/stdlib-tests: New file.
57692         * tests/test-stdlib.c: New file.
57693
57694         * modules/mkstemp (Files): Remove lib/mkstemp.h.
57695         (Depends-on): Add stdlib.
57696         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
57697         (Includes): Use <stdlib.h> instead of mkstemp.h.
57698         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
57699         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
57700         * lib/mkstemp.c: Don't include mkstemp.h.
57701         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
57702         * lib/stdlib--.h: Don't include mkstemp.h.
57703
57704         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
57705         (Depends-on): Add stdlib.
57706         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
57707         (Includes): Use <stdlib.h> instead of mkdtemp.h.
57708         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
57709         HAVE_MKDTEMP.
57710         * lib/mkdtemp.c: Don't include mkdtemp.h.
57711         * lib/clean-temp.c: Don't include mkdtemp.h.
57712
57713         * modules/exit (Files): Remove lib/exit.h.
57714         (Depends-on): Add stdlib.
57715         (Makefile.am): Remove lib_SOURCES.
57716         (Include): Use <stdlib.h> instead of exit.h.
57717         * lib/argmatch.c: Don't include exit.h.
57718         * lib/execute.c: Likewise.
57719         * lib/pagealign_alloc.c: Likewise.
57720         * lib/pipe.c: Likewise.
57721         * lib/wait-process.c: Likewise.
57722         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
57723         * lib/exitfail.c: Likewise.
57724         * lib/savewd.c: Likewise.
57725         * lib/xsetenv.c: Likewise.
57726
57727         * modules/stdlib: New file.
57728         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
57729         and extra comments about mkstemp().
57730         * lib/exit.h: Remove file.
57731         * lib/mkdtemp.h: Remove file.
57732         * lib/mkstemp.h: Remove file.
57733         * m4/stdlib_h.m4: New file.
57734         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
57735
57736 2007-02-18  Bruno Haible  <bruno@clisp.org>
57737
57738         * modules/math-tests: New file.
57739         * tests/test-math.c: New file.
57740
57741         * modules/math: New file.
57742         * modules/mathl (Files): Remove lib/mathl.h.
57743         (Depends-on): Add math.
57744         (Makefile.am): Don't mention mathl.h.
57745         (Include): Use <math.h> instead of mathl.h.
57746         * lib/math_.h: New file.
57747         * lib/mathl.h: Remove file.
57748         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
57749         mathl.h.
57750         * lib/asinl.c: Likewise.
57751         * lib/atanl.c: Likewise.
57752         * lib/ceill.c: Likewise.
57753         * lib/cosl.c: Likewise.
57754         * lib/expl.c: Likewise.
57755         * lib/floorl.c: Likewise.
57756         * lib/frexpl.c: Likewise.
57757         * lib/ldexpl.c: Likewise.
57758         * lib/logl.c: Likewise.
57759         * lib/sincosl.c: Likewise.
57760         * lib/sinl.c: Likewise.
57761         * lib/sqrtl.c: Likewise.
57762         * lib/tanl.c: Likewise.
57763         * lib/trigl.c: Likewise.
57764         * m4/math_h.m4: New file.
57765         * MODULES.html.sh (Mathematics): Add math.
57766
57767 2007-02-17  Bruno Haible  <bruno@clisp.org>
57768
57769         * modules/wctype-tests: New file.
57770         * tests/test-wctype.c: New file.
57771
57772         * modules/wchar-tests: New file.
57773         * tests/test-wchar.c: New file.
57774
57775         * modules/unistd-tests: New file.
57776         * tests/test-unistd.c: New file.
57777
57778         * modules/time-tests: New file.
57779         * tests/test-time.c: New file.
57780
57781         * modules/sysexits-tests: New file.
57782         * tests/test-sysexits.c: New file.
57783
57784         * modules/sys_time-tests: New file.
57785         * tests/test-sys_time.c: New file.
57786
57787         * modules/sys_stat-tests: New file.
57788         * tests/test-sys_stat.c: New file.
57789
57790         * modules/sys_socket-tests: New file.
57791         * tests/test-sys_socket.c: New file.
57792
57793         * modules/sys_select-tests: New file.
57794         * tests/test-sys_select.c: New file.
57795
57796         * modules/string-tests: New file.
57797         * tests/test-string.c: New file.
57798
57799         * modules/stdbool-tests: New file.
57800         * tests/test-stdbool.c: New file.
57801
57802         * modules/netinet_in-tests: New file.
57803         * tests/test-netinet_in.c: New file.
57804
57805         * modules/inttypes-tests: New file.
57806         * tests/test-inttypes.c: New file.
57807
57808         * modules/fcntl-tests: New file.
57809         * tests/test-fcntl.c: New file.
57810
57811         * modules/byteswap-tests: New file.
57812         * tests/test-byteswap.c: New file.
57813
57814         * modules/arpa_inet-tests: New file.
57815         * tests/test-arpa_inet.c: New file.
57816
57817 2007-02-17  Bruno Haible  <bruno@clisp.org>
57818
57819         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
57820         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
57821         if the corresponding module is not enabled. Emit link warnings if
57822         the function is used nevertheless.
57823         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
57824         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
57825         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
57826         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
57827         * modules/inttypes (Depends-on): Add link-warning.
57828         (Makefile.am): Copy the contents of build-aux/link-warning.h into
57829         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
57830         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
57831         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
57832         * modules/imaxdiv (configure.ac): Likewise.
57833         * modules/strtoimax (configure.ac): Likewise.
57834         * modules/strtoumax (configure.ac): Likewise.
57835
57836 2007-02-17  Bruno Haible  <bruno@clisp.org>
57837
57838         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
57839         gl_STRING_MODULE_INDICATOR_DEFAULTS.
57840         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
57841         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
57842
57843 2007-02-17  Bruno Haible  <bruno@clisp.org>
57844
57845         * modules/link-warning: New file.
57846         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
57847         * lib/string_.h (GL_LINK_WARNING): Remove definition.
57848         * modules/string (Depends-on): Add link-warning.
57849         (Makefile.am): Copy the contents of build-aux/link-warning.h into
57850         string.h.
57851         * MODULES.html.sh (Support for building libraries and executables): Add
57852         link-warning.
57853
57854 2007-02-17  Bruno Haible  <bruno@clisp.org>
57855
57856         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
57857         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
57858         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
57859         long lines.
57860
57861 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
57862             Bruno Haible  <bruno@clisp.org>
57863
57864         * modules/tmpfile: New file.
57865         * lib/tmpfile.c: New file.
57866         * m4/tmpfile.m4: New file.
57867         * MODULES.html.sh (func_all_modules): New section "Input/output".
57868
57869 2007-02-15  Bruno Haible  <bruno@clisp.org>
57870
57871         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
57872         (supports_delete_on_close): New function.
57873         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
57874
57875 2007-02-14  Bruno Haible  <bruno@clisp.org>
57876
57877         * modules/mbspcasecmp-tests: New file.
57878         * tests/test-mbspcasecmp.sh: New file.
57879         * tests/test-mbspcasecmp.c: New file.
57880
57881         New module mbspcasecmp.
57882         * modules/mbspcasecmp: New file.
57883         * lib/mbspcasecmp.c: New file.
57884         * lib/string_.h (strncasecmp): Change warning message.
57885         (mbspcasecmp): New declaration.
57886         * m4/mbspcasecmp.m4: New file.
57887         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
57888         GNULIB_MBSPCASECMP.
57889         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
57890         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
57891
57892 2007-02-14  Bruno Haible  <bruno@clisp.org>
57893
57894         * modules/mbsncasecmp-tests: New file.
57895         * tests/test-mbsncasecmp.sh: New file.
57896         * tests/test-mbsncasecmp.c: New file.
57897
57898         New module mbsncasecmp.
57899         * modules/mbsncasecmp: New file.
57900         * lib/mbsncasecmp.c: New file.
57901         * lib/string_.h (mbsncasecmp): New declaration.
57902         * m4/mbsncasecmp.m4: New file.
57903         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
57904         GNULIB_MBSNCASECMP.
57905         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
57906         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
57907
57908 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
57909
57910         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
57911         Verify that it doesn't overlap with our flags.
57912         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
57913         do not have the desired effect in multibyte locales; instead, use
57914         mbscasecmp.
57915         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
57916         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
57917         we don't require GNU fnmatch ourselves (if our users require it, they
57918         should do so explicitly).
57919
57920         Fix regex code so it doesn't rely on strcasecmp.
57921         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
57922         Otherwise, include gnulib's langinfo.h.
57923         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
57924         undesirable behavior in non-C locales.  Instead, rely on localecharset.
57925         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
57926         * modules/regex (FILES): Remove m4/codeset.m4.
57927         (Depends-on): Add localcharset.  Remove strcase.
57928
57929 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57930
57931         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
57932         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
57933
57934 2007-02-13  Bruno Haible  <bruno@clisp.org>
57935
57936         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
57937         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
57938
57939 2007-02-12  Bruno Haible  <bruno@clisp.org>
57940
57941         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
57942         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
57943         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
57944         time warning rather than a link error.
57945
57946 2007-02-12  Bruno Haible  <bruno@clisp.org>
57947
57948         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
57949         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
57950         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
57951
57952 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
57953
57954         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
57955         args, not 2.
57956
57957 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
57958
57959         New module 'time', so that apps can include <time.h> as per
57960         POSIX and GNU instead of separate include files like time_r.h
57961         and timegm.h.  This implementation tries out a simpler approach
57962         for replacing decls in standard include files (as compared to
57963         the string module), somewhat as an experiment.
57964
57965         * config/srclist.txt: Comment out mktime.c for now.
57966         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
57967         since it doesn't apply any more.  Use generic wording instead.
57968         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
57969         'time'.
57970         * lib/time_.h, m4/time_h.m4, modules/time: New files.
57971         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
57972         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
57973         Don't include <sys/types.h>; no longer needed since we assume C89.
57974         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
57975         * lib/strftime.c: Likewise.
57976         * lib/time_r.c: Likewise.
57977         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
57978         * lib/nanosleep.c: Include <time.h> first, to check interface.
57979         * lib/strptime.c: Likewise.
57980         * lib/time_r.c: Likewise.
57981         * lib/timegm.c: Likewise.
57982         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
57983         needed.
57984         * lib/timegm.c: Don't include timegm.h; no longer needed.
57985         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
57986         time.h now handles any problems in that area.
57987         (struct timespec, nanosleep): Remove; time.h now arranges for these.
57988         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
57989         that time.h defines struct timespec.
57990         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
57991         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
57992         handles that.
57993         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
57994         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
57995         needed.  Set REPLACE_LOCALTIME.
57996         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
57997         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
57998         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
57999         nanosleep; time_h.m4 now does that.  Don't require
58000         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
58001         module handles this now.
58002         * modules/getdate (Depends-on): Remove timespec.  Add time.
58003         * modules/nanosleep (Depends-on): Likewise.
58004         * modules/stat-time (Depends-on): Likewise.
58005         * modules/nanosleep (Include): Include time.h, not timespec.h.
58006         * modules/strptime (Files): Remove lib/strptime.h.
58007         (Depends-on): Add extensions, time.
58008         (Include): Include time.h, not strptime.h.
58009         * modules/time_r (Files): Remove lib/time_r.h.
58010         (Depends-on): Add time.
58011         (Include): Include time.h, not time_r.h.
58012         * modules/timegm: Likewise.
58013         * modules/timespec (Description): Now does timespec-related decls
58014         of our own, instead of struct timespec itself.
58015         (Depends-on): Add time; remove extensions.
58016         (Maintainer): Add self.
58017         * modules/utimecmp (Depends-on): Add time; remove timespec.
58018         * modules/utimens (Depends-on): Likewise.
58019         * modules/xnanosleep (Depends-on): Likewise.
58020
58021 2007-02-11  Bruno Haible  <bruno@clisp.org>
58022
58023         * lib/c-strstr.c: Include allocsa.h.
58024         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
58025         * lib/c-strcasestr.c: Include allocsa.h.
58026         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
58027         * lib/strcasestr.c: Include allocsa.h.
58028         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
58029         * lib/mbsstr.c: Include allocsa.h.
58030         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
58031         allocsa/freesa instead of malloc/free.
58032         * lib/mbscasestr.c: Include allocsa.h.
58033         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
58034         allocsa/freesa instead of malloc/free.
58035         * modules/c-strstr (Depends-on): Add allocsa.
58036         * modules/c-strcasestr (Depends-on): Likewise.
58037         * modules/strcasestr (Depends-on): Likewise.
58038         * modules/mbsstr (Depends-on): Likewise.
58039         * modules/mbscasestr (Depends-on): Likewise.
58040
58041 2007-02-11  Bruno Haible  <bruno@clisp.org>
58042
58043         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
58044
58045         * modules/mbsspn-tests: New file.
58046         * tests/test-mbsspn.sh: New file.
58047         * tests/test-mbsspn.c: New file.
58048
58049 2007-02-11  Bruno Haible  <bruno@clisp.org>
58050
58051         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
58052
58053         * modules/mbspbrk-tests: New file.
58054         * tests/test-mbspbrk.sh: New file.
58055         * tests/test-mbspbrk.c: New file.
58056
58057 2007-02-11  Bruno Haible  <bruno@clisp.org>
58058
58059         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
58060         unneeded cast.
58061
58062         * modules/mbscspn-tests: New file.
58063         * tests/test-mbscspn.sh: New file.
58064         * tests/test-mbscspn.c: New file.
58065
58066 2007-02-11  Bruno Haible  <bruno@clisp.org>
58067
58068         * modules/mbscasecmp-tests: New file.
58069         * tests/test-mbscasecmp.sh: New file.
58070         * tests/test-mbscasecmp.c: New file.
58071
58072 2007-02-11  Bruno Haible  <bruno@clisp.org>
58073
58074         Ensure O(n) worst-case complexity of mbscasestr.
58075         * lib/mbscasestr.c: Include stdbool.h.
58076         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
58077         functions.
58078         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
58079         the bookkeeping indicates that it's worth it.
58080         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
58081
58082         * modules/mbscasestr-tests: New file.
58083         * tests/test-mbscasestr1.c: New file.
58084         * tests/test-mbscasestr2.sh: New file.
58085         * tests/test-mbscasestr2.c: New file.
58086         * tests/test-mbscasestr3.sh: New file.
58087         * tests/test-mbscasestr3.c: New file.
58088         * tests/test-mbscasestr4.sh: New file.
58089         * tests/test-mbscasestr4.c: New file.
58090         * m4/locale-tr.m4: New file.
58091
58092 2007-02-11  Bruno Haible  <bruno@clisp.org>
58093
58094         Ensure O(n) worst-case complexity of mbsstr.
58095         * lib/mbsstr.c: Include stdbool.h.
58096         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
58097         functions.
58098         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
58099         bookkeeping indicates that it's worth it.
58100         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
58101
58102         * modules/mbsstr-tests: New file.
58103         * tests/test-mbsstr1.c: New file.
58104         * tests/test-mbsstr2.sh: New file.
58105         * tests/test-mbsstr2.c: New file.
58106         * tests/test-mbsstr3.sh: New file.
58107         * tests/test-mbsstr3.c: New file.
58108         * m4/locale-fr.m4: New file.
58109
58110 2007-02-11  Bruno Haible  <bruno@clisp.org>
58111
58112         * lib/mbsrchr.c (mbsrchr): Fix bug.
58113
58114         * modules/mbsrchr-tests: New file.
58115         * tests/test-mbsrchr.sh: New file.
58116         * tests/test-mbsrchr.c: New file.
58117
58118 2007-02-11  Bruno Haible  <bruno@clisp.org>
58119
58120         * lib/mbschr.c (mbschr): Fix bug.
58121
58122         * modules/mbschr-tests: New file.
58123         * tests/test-mbschr.sh: New file.
58124         * tests/test-mbschr.c: New file.
58125         * m4/locale-zh.m4: New file.
58126
58127 2007-02-11  Bruno Haible  <bruno@clisp.org>
58128
58129         Support for copying multibyte string iterators.
58130         * lib/mbiter.h: Include <string.h>.
58131         (mbiter_multi_copy): New function.
58132         (mbi_copy): New macro.
58133         * lib/mbuiter.h: Include <string.h>.
58134         (mbuiter_multi_copy): New function.
58135         (mbui_copy): New macro.
58136
58137 2007-02-11  Bruno Haible  <bruno@clisp.org>
58138
58139         New module mbslen.
58140         * modules/mbslen: New file.
58141         * lib/mbslen.c: New file.
58142         * lib/string_.h (mbslen): New declaration.
58143         * m4/mbslen.m4: New file.
58144         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
58145         GNULIB_MBSLEN.
58146         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
58147         * MODULES.html.sh (Internationalization functions): Add mbslen.
58148
58149 2007-02-11  Bruno Haible  <bruno@clisp.org>
58150
58151         Ensure O(n) worst-case complexity of strcasestr substitute.
58152         * lib/strcasestr.c: Include stdbool.h.
58153         (knuth_morris_pratt): New function.
58154         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
58155         bookkeeping indicates that it's worth it.
58156         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
58157
58158         * modules/strcasestr-tests: New file.
58159         * tests/test-strcasestr.c: New file.
58160
58161 2007-02-11  Bruno Haible  <bruno@clisp.org>
58162
58163         Ensure O(n) worst-case complexity of c_strcasestr.
58164         * lib/c-strcasestr.c: Include stdbool.h, string.h.
58165         (knuth_morris_pratt): New function.
58166         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
58167         the bookkeeping indicates that it's worth it.
58168         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
58169
58170         * modules/c-strcasestr-tests: New file.
58171         * tests/test-c-strcasestr.c: New file.
58172
58173 2007-02-11  Bruno Haible  <bruno@clisp.org>
58174
58175         Ensure O(n) worst-case complexity of c_strstr.
58176         * lib/c-strstr.c: Include stdbool.h, string.h.
58177         (knuth_morris_pratt): New function.
58178         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
58179         bookkeeping indicates that it's worth it.
58180         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
58181
58182         * lib/c-strstr.c: Complete rewrite for maintainability.
58183
58184         * modules/c-strstr-tests: New file.
58185         * tests/test-c-strstr.c: New file.
58186
58187 2007-02-11  Bruno Haible  <bruno@clisp.org>
58188
58189         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
58190         5.2.1 and earlier, whereby \055 was treated just like the range
58191         delimiter '-'.
58192         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
58193
58194 2007-02-08  Bruno Haible  <bruno@clisp.org>
58195
58196         * modules/regex (Depends-on): Add stdbool.
58197         Reported by Dalibor Topic <robilad@kaffe.org>.
58198
58199 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
58200
58201         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
58202         Prefer returning from main to exiting from it.
58203         Remove unnecessary parens after sizeof.
58204
58205 2007-02-05  Bruno Haible  <bruno@clisp.org>
58206
58207         New module mbssep.
58208         * modules/mbssep: New file.
58209         * lib/mbssep.c: New file.
58210         * lib/string_.h (strsep): Add a conditional link warning.
58211         (mbssep): New declaration.
58212         * m4/mbssep.m4: New file.
58213         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
58214         GNULIB_MBSSEP.
58215         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
58216         * MODULES.html.sh (Internationalization functions): Add mbssep.
58217
58218 2007-02-05  Bruno Haible  <bruno@clisp.org>
58219
58220         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
58221         Optimize search in case of 1 delimiter.
58222
58223 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
58224
58225         * lib/acl.h: Include sys/types.h before sys/acl.h.
58226
58227 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
58228
58229         Merge upstream fix for glibc bugzilla #3957:
58230
58231         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
58232
58233         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
58234         bit for RE_HAT_LISTS_NOT_NEWLINE.
58235         (build_charclass_op): Remove bogus comment.
58236
58237 2007-02-05  Simon Josefsson  <simon@josefsson.org>
58238
58239         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
58240
58241 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
58242
58243         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
58244         * lib/memmem.c [!defined _LIBC]: Include config.h.
58245
58246 2007-02-04  Bruno Haible  <bruno@clisp.org>
58247
58248         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
58249         warning message.
58250
58251 2007-02-04  Bruno Haible  <bruno@clisp.org>
58252
58253         New module mbstok_r.
58254         * modules/mbstok_r: New file.
58255         * lib/mbstok_r.c: New file.
58256         * lib/string_.h (strtok_r): Change argument names to match the
58257         comments. Add a conditional link warning.
58258         (mbstok_r): New declaration.
58259         * m4/mbstok_r.m4: New file.
58260         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
58261         GNULIB_MBSTOK_R.
58262         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
58263         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
58264
58265 2007-02-04  Bruno Haible  <bruno@clisp.org>
58266
58267         New module mbsspn.
58268         * modules/mbsspn: New file.
58269         * lib/mbsspn.c: New file.
58270         * lib/string_.h (strspn): Add a conditional link warning.
58271         (mbsspn): New declaration.
58272         * m4/mbsspn.m4: New file.
58273         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
58274         GNULIB_MBSSPN.
58275         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
58276         * MODULES.html.sh (Internationalization functions): Add mbsspn.
58277
58278 2007-02-04  Bruno Haible  <bruno@clisp.org>
58279
58280         New module mbspbrk.
58281         * modules/mbspbrk: New file.
58282         * lib/mbspbrk.c: New file.
58283         * lib/string_.h (strpbrk): Add a conditional link warning.
58284         (mbspbrk): New declaration.
58285         * m4/mbspbrk.m4: New file.
58286         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
58287         GNULIB_MBSPBRK.
58288         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
58289         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
58290
58291 2007-02-04  Bruno Haible  <bruno@clisp.org>
58292
58293         New module mbscspn.
58294         * modules/mbscspn: New file.
58295         * lib/mbscspn.c: New file.
58296         * lib/string_.h (strcspn): Add a conditional link warning.
58297         (mbscspn): New declaration.
58298         * m4/mbscspn.m4: New file.
58299         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
58300         GNULIB_MBSCSPN.
58301         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
58302         * MODULES.html.sh (Internationalization functions): Add mbscspn.
58303
58304 2007-02-04  Bruno Haible  <bruno@clisp.org>
58305
58306         New module mbscasestr, reduced goal of strcasestr.
58307         * modules/mbscasestr: New file.
58308         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
58309         (mbscasestr): Renamed from strcasestr.
58310         * lib/strcasestr.c: Don't include mbuiter.h.
58311         (strcasestr): Remove support for multibyte locales.
58312         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
58313         Change the conditional link warning.
58314         (mbscasestr): New declaration.
58315         * m4/mbscasestr.m4: New file.
58316         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
58317         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
58318         REPLACE_STRCASESTR.
58319         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
58320         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
58321         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
58322         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
58323         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
58324         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
58325         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
58326         (Depends-on): Remove mbuiter.
58327         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
58328
58329 2007-02-04  Bruno Haible  <bruno@clisp.org>
58330
58331         Simplify handling of strncasecmp.
58332         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
58333         the conditional link warning.
58334         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
58335         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
58336         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
58337         * modules/strcase (configure.ac): Don't invoke
58338         gl_STRING_MODULE_INDICATOR.
58339         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
58340
58341 2007-02-04  Bruno Haible  <bruno@clisp.org>
58342
58343         New module mbscasecmp, reduced goal of strcasecmp.
58344         * modules/mbscasecmp: New file.
58345         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
58346         (mbscasecmp): Renamed from strcasecmp.
58347         * lib/strcasecmp.c: Don't include mbuiter.h.
58348         (strcasecmp): Remove support for multibyte locales.
58349         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
58350         Change the conditional link warning.
58351         (mbscasecmp): New declaration.
58352         * m4/mbscasecmp.m4: New file.
58353         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
58354         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
58355         REPLACE_STRCASECMP.
58356         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
58357         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
58358         GNULIB_MBSCASECMP.
58359         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
58360         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
58361         * modules/strcase (Files): Remove m4/mbrtowc.m4.
58362         (Depends-on): Remove mbuiter.
58363         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
58364
58365 2007-02-04  Bruno Haible  <bruno@clisp.org>
58366
58367         New module mbsstr. Remove module strstr.
58368         * modules/mbsstr: New file.
58369         * modules/strstr: Remove file.
58370         * lib/mbsstr.c: Renamed from lib/strstr.c.
58371         (mbsstr): Renamed from strstr.
58372         * lib/string_.h (strstr): Remove declaration. Change the conditional
58373         link warning.
58374         (mbsstr): New declaration.
58375         * m4/mbsstr.m4: New file.
58376         * m4/strstr.m4: Remove file.
58377         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
58378         REPLACE_STRSTR.
58379         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
58380         Don't initialize GNULIB_STRSTR.
58381         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
58382         substitute GNULIB_STRSTR and REPLACE_STRSTR.
58383         * MODULES.html.sh (Internationalization functions): Add mbsstr.
58384         (Support for systems lacking ANSI C 89): Remove strstr.
58385
58386 2007-02-04  Bruno Haible  <bruno@clisp.org>
58387
58388         New module mbsrchr.
58389         * modules/mbsrchr: New file.
58390         * lib/mbsrchr.c: New file.
58391         * lib/string_.h (strrchr): Add a conditional link warning.
58392         (mbsrchr): New declaration.
58393         * m4/mbsrchr.m4: New file.
58394         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
58395         GNULIB_MBSRCHR.
58396         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
58397         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
58398
58399 2007-02-04  Bruno Haible  <bruno@clisp.org>
58400
58401         New module mbschr.
58402         * modules/mbschr: New file.
58403         * lib/mbschr.c: New file.
58404         * lib/string_.h (strchr): Add a conditional link warning.
58405         (mbschr): New declaration.
58406         * m4/mbschr.m4: New file.
58407         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
58408         GNULIB_MBSCHR.
58409         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
58410         * MODULES.html.sh (Internationalization functions): Add mbschr.
58411
58412 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
58413
58414         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
58415
58416         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
58417
58418 2007-02-04  Bruno Haible  <bruno@clisp.org>
58419
58420         New module description section 'configure.ac-early'.
58421         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
58422         (func_get_autoconf_early_snippet): New function.
58423         (func_import, func_create_testdir): Use it. Remove special cases for
58424         modules 'extensions' and 'lock'.
58425         * modules/extensions (configure.ac-early): Require
58426         gl_USE_SYSTEM_EXTENSIONS.
58427         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
58428
58429 2007-02-04  Bruno Haible  <bruno@clisp.org>
58430
58431         Make use of gcj-4.3's -fsource and -ftarget option.
58432         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
58433         and if so try the options -fsource and -ftarget.
58434         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
58435         source_version, ftarget_option, target_version arguments.
58436         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
58437         (is_envjavac_oldgcj_14_14_usable): Renamed from
58438         is_envjavac_gcj_14_14_usable.
58439         (is_envjavac_oldgcj_14_13_usable): Renamed from
58440         is_envjavac_gcj_14_13_usable.
58441         (is_gcj_present): Update.
58442         (is_gcj_43, is_gcj43_usable): New functions.
58443         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
58444         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
58445         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
58446         try the options -fsource and -ftarget.
58447
58448 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
58449
58450         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
58451         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
58452         larger value.
58453
58454 2007-02-03  Jim Meyering  <jim@meyering.net>
58455
58456         Give tools a better chance to allocate space for very large buffers.
58457         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
58458
58459         Make pwd and readlink work also when run with an unreadable parent dir
58460         on systems with openat support.
58461         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
58462         provided getcwd function, even when we have openat support.
58463         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
58464
58465 2007-02-02  Bruno Haible  <bruno@clisp.org>
58466
58467         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
58468         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
58469         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
58470         portability problems if one of these functions is only used on specific
58471         platforms.
58472         Reported by Paul Eggert.
58473
58474 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
58475
58476         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
58477         is causing more trouble than it's curing.
58478         * lib/regex_internal.h (__mempcpy): Remove.
58479         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
58480         (and make the code a tad smaller to boot).
58481         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
58482
58483 2007-02-02  Jim Meyering  <jim@meyering.net>
58484
58485         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
58486         section, not in the Makefile.am: one.
58487
58488 2007-02-02  Eric Blake  <ebb9@byu.net>
58489
58490         * lib/strchrnul.c: Always include config.h first.
58491
58492         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
58493         gnulib strstr is not necessary here.
58494
58495 2007-02-02  Simon Josefsson  <simon@josefsson.org>
58496
58497         * m4/socklen.m4: Fix typo.
58498
58499 2007-02-02  Eric Blake  <ebb9@byu.net>
58500
58501         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
58502         * modules/netinet_in (Makefile.am): Likewise.
58503
58504 2007-02-01  Bruno Haible  <bruno@clisp.org>
58505
58506         * lib/string_.h (GL_LINK_WARNING): New macro.
58507         (strcasecmp, strstr, strcasestr): If provided by the system,
58508         conditionally define as a macro that leads to a warning instead of to
58509         an error.
58510         (strncasecmp): Conditionally define as a macro that leads to a warning.
58511
58512 2007-02-01  Karl Berry  <karl@gnu.org>
58513
58514         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
58515
58516 2007-02-01  Bruno Haible  <bruno@clisp.org>
58517
58518         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
58519         renamings.
58520
58521 2007-02-01  Eric Blake  <ebb9@byu.net>
58522
58523         * modules/regex (Depends-on): Revert dependence on mempcpy.
58524         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
58525         module's definition of mempcpy.
58526         Reported by Paul Eggert.
58527
58528 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
58529
58530         * lib/string_.h: If the gnulib module XYZ is not present, undefine
58531         the symbol XYZ before redefining it.  This fixes a problem with
58532         programs that don't use XYZ, when compiled on systems that define
58533         XYZ to something else.
58534
58535 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
58536
58537         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
58538         occurs when "mkdir -m foo" creates a setgid directory that is (1)
58539         writeable to group or other and (2) is intended to have a special
58540         mode bit that is set or cleared.  In such a case, the directory
58541         should be neither group- nor other-writeable until the special
58542         mode bits are right.
58543
58544 2007-01-31  Eric Blake  <ebb9@byu.net>
58545
58546         * modules/mountlist (Depends-on): Add strstr.
58547
58548         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
58549         bug.
58550         * modules/string (Makefile.am): Remove redundant replacement.
58551         * modules/regex (Depends-on): Add mempcpy.
58552
58553 2007-01-31  Bruno Haible  <bruno@clisp.org>
58554
58555         New module description field 'Link'.
58556         * gnulib-tool (func_usage): Document --extract-link-directive.
58557         (sed_extract_prog): Recognize 'Link' directive.
58558         (func_get_link_directive): New function.
58559         (func_import): Show summary of link directives.
58560         Handle --extract-link-directive option.
58561         * modules/acl (Link): New section.
58562         * modules/clock-time (Link): New section.
58563         * modules/euidaccess (Link): New section.
58564         * modules/gettext (Link): New section.
58565         * modules/iconv (Link): New section.
58566         * modules/lock (Link): New section.
58567         * modules/nanosleep (Link): New section.
58568         * modules/readline (Link): New section.
58569
58570 2007-01-27  Bruno Haible  <bruno@clisp.org>
58571
58572         Enforce the use of gnulib modules for unportable <string.h> functions.
58573         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
58574         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
58575         (gl_HEADER_STRING_H_BODY): Require it.
58576         * lib/string_.h: If the gnulib module XYZ is not present, redefine
58577         the symbol XYZ to one that gives a link error.
58578         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
58579         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
58580         * modules/mempcpy (configure.ac): Likewise.
58581         * modules/memrchr (configure.ac): Likewise.
58582         * modules/stpcpy (configure.ac): Likewise.
58583         * modules/stpncpy (configure.ac): Likewise.
58584         * modules/strcase (configure.ac): Likewise.
58585         * modules/strcasestr (configure.ac): Likewise.
58586         * modules/strchrnul (configure.ac): Likewise.
58587         * modules/strdup (configure.ac): Likewise.
58588         * modules/strndup (configure.ac): Likewise.
58589         * modules/strnlen (configure.ac): Likewise.
58590         * modules/strpbrk (configure.ac): Likewise.
58591         * modules/strsep (configure.ac): Likewise.
58592         * modules/strstr (configure.ac): Likewise.
58593         * modules/strtok_r (configure.ac): Likewise.
58594
58595 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
58596
58597         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
58598
58599 2007-01-30  Jim Meyering  <jim@meyering.net>
58600
58601         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
58602
58603 2007-01-29  Bruno Haible  <bruno@clisp.org>
58604
58605         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
58606         * lib/execute.c: Likewise.
58607         * lib/pipe.c: Likewise.
58608         * lib/printf-args.h: Likewise.
58609         * lib/printf-args.c: Likewise.
58610         * lib/printf-parse.c: Likewise.
58611         * lib/vasnprintf.c: Likewise.
58612
58613 2007-01-29  Eric Blake  <ebb9@byu.net>
58614
58615         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
58616         declaration.
58617
58618 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
58619
58620         * lib/strptime.h (strptime): Use 'restrict' for args where
58621         POSIX requires this.
58622         * lib/strptime.c (strptime): Likewise.
58623         Change license notice from LGPL to GPL, since gnulib-tool will
58624         change this as needed.
58625         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
58626         defined.
58627         Include "strptime.h" first, to check interface.
58628         Do not #undef _LIBC and _NL_CURRENT.
58629         Do not include <stdlib.h>; no longer needed.
58630         Include "time_r.h" and declare ptime_locale_status
58631         only if _LIBC is not defined.
58632         (__P): Remove unused macro.
58633         (match_string): Bring back glibc version, but use it only if _LIBC
58634         is defined.
58635         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
58636         Remove unnecessary assertion and abort() call.
58637         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
58638         * m4/strptime.m4: Fix serial number comment.
58639         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
58640         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
58641         (Depends-on): Add time_r.
58642
58643 2007-01-29  Bruno Haible  <bruno@clisp.org>
58644
58645         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
58646         strptime.
58647         * modules/strptime (Depends-on): Add stdbool.
58648         * lib/strptime.h: Include <time.h> always. Add comments.
58649
58650 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
58651
58652         * modules/strptime: New file.
58653         * lib/strptime.h: New file.
58654         * lib/strptime.c: New file.
58655         * m4/strptime.m4: New file.
58656
58657 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
58658
58659         * MODULES.html.sh: New module mpsort.
58660         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
58661
58662         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
58663         a circularity problem with HP-UX ia64 reported by Bob Proulx in
58664         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
58665         All uses changed.
58666         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
58667         All uses changed.
58668         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
58669         to _Restrict_.
58670         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
58671         the parameter matches the prototype.
58672
58673 2007-01-28  Jim Meyering  <jim@meyering.net>
58674
58675         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
58676         sys/time.h here, reverting that part of the previous patch:
58677         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
58678
58679 2007-01-28  Bruno Haible  <bruno@clisp.org>
58680
58681         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
58682         value of $(SYS_TIME_H).
58683         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
58684         remove it conditionally, too. [added by Jim Meyering]
58685         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
58686         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
58687         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
58688         GETTIMEOFDAY_REPLACEMENT to 1.
58689
58690 2007-01-28  Bruno Haible  <bruno@clisp.org>
58691
58692         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
58693         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
58694         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
58695         Set UNISTD_H instead of UNISTD_H2.
58696         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
58697
58698 2007-01-28  Bruno Haible  <bruno@clisp.org>
58699
58700         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
58701         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
58702
58703 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58704
58705         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
58706         (func_create_testdir): Ensure C locale for `grep' and `tr'
58707         character ranges.
58708         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
58709         ACLOCAL_AMFLAGS parsing state machine.
58710
58711 2007-01-27  Bruno Haible  <bruno@clisp.org>
58712
58713         * modules/unistr/base: Update.
58714
58715 2007-01-27  Bruno Haible  <bruno@clisp.org>
58716
58717         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
58718         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
58719         * modules/unistr/u32-mbtouc-unsafe: Renamed from
58720         modules/unistr/u32-mbtouc.
58721         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
58722         * lib/unistr.h: Update.
58723         * lib/linebreak.c: Update.
58724         * modules/unistr/u32-mbtouc: Renamed from
58725         modules/unistr/u32-mbtouc-safe.
58726         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
58727         * lib/unistr.h: Update.
58728         * lib/unistr/u32-to-u8.c: Update.
58729         * lib/unistr/u32-to-u16.c: Update.
58730
58731 2007-01-27  Bruno Haible  <bruno@clisp.org>
58732
58733         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
58734         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
58735         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
58736         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
58737         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
58738         * modules/unistr/u16-mbtouc-unsafe: Renamed from
58739         modules/unistr/u16-mbtouc.
58740         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
58741         * lib/unistr.h: Update.
58742         * lib/linebreak.c: Update.
58743         * modules/linebreak: Update.
58744         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
58745         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
58746         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
58747         * modules/unistr/u16-mbtouc: Renamed from
58748         modules/unistr/u16-mbtouc-safe.
58749         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
58750         * lib/unistr.h: Update.
58751         * lib/unistr/u16-to-u8.c: Update.
58752         * modules/unistr/u16-to-u8: Update.
58753         * lib/unistr/u16-to-u32.c: Update.
58754         * modules/unistr/u16-to-u32: Update.
58755
58756 2007-01-27  Bruno Haible  <bruno@clisp.org>
58757
58758         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
58759         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
58760         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
58761         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
58762         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
58763         * modules/unistr/u8-mbtouc-unsafe: Renamed from
58764         modules/unistr/u8-mbtouc.
58765         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
58766         * lib/unistr.h: Update.
58767         * lib/striconveh.c: Update.
58768         * modules/striconveh: Update.
58769         * lib/linebreak.c: Update.
58770         * modules/linebreak: Update.
58771         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
58772         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
58773         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
58774         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
58775         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
58776         * lib/unistr.h: Update.
58777         * lib/striconveh.c: Update.
58778         * modules/striconveh: Update.
58779         * lib/unistr/u8-to-u16.c: Update.
58780         * modules/unistr/u8-to-u16: Update.
58781         * lib/unistr/u8-to-u32.c: Update.
58782         * modules/unistr/u8-to-u32: Update.
58783
58784 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58785
58786         Sync from Libtool.
58787         * lib/argz.c: Do not include strings.h nor memory.h, include
58788         string.h unconditionally.  Patch by Simon Josefsson.
58789
58790 2007-01-27  Bruno Haible  <bruno@clisp.org>
58791
58792         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
58793         from gl_HEADER_STRING_H_BODY.
58794         (gl_HEADER_STRING_H_BODY): Require it.
58795         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
58796         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
58797         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
58798         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
58799         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
58800         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
58801         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
58802         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
58803         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
58804         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
58805         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
58806         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
58807         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
58808         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
58809         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
58810
58811 2007-01-27  Bruno Haible  <bruno@clisp.org>
58812
58813         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
58814         check_PROGRAMS into noinst_PROGRAMS.
58815         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
58816         check_PROGRAMS in this case.
58817         (func_import): Set for_test to false.
58818         (func_create_testdir): Set for_test to true.
58819
58820 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
58821             Bruno Haible  <bruno@clisp.org>
58822
58823         * modules/strcasestr (Files): Remove lib/strcasestr.h.
58824         (Depends-on): Add string.
58825         (Includes): Use <string.h> instead of strcasestr.h.
58826         * modules/string (Makefile.am): Also substitute the value of
58827         REPLACE_STRCASESTR.
58828         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
58829         assume strcasestr is declared in <string.h> not <strings.h>. Also
58830         set REPLACE_STRCASESTR.
58831         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
58832         REPLACE_STRCASESTR.
58833         * lib/strcasestr.h: Remove file.
58834         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
58835         * lib/string_.h (strcasestr): New declaration.
58836
58837 2007-01-27  Bruno Haible  <bruno@clisp.org>
58838
58839         * lib/string_.h: Use 'extern'.
58840
58841 2007-01-27  Jim Meyering  <jim@meyering.net>
58842
58843         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
58844         of set-but-not-used local, "q".
58845
58846         * lib/mempcpy.c: Include <config.h> before <string.h>.
58847         This fixes a compilation error on HP-UX, due to the system's
58848         "restrict"-using mempcpy prototype.
58849
58850 2007-01-26  Bruno Haible  <bruno@clisp.org>
58851
58852         Small optimization.
58853         * lib/javacomp.c: Include c-strstr.h.
58854          (is_envjavac_gcj): Use c_strstr instead of strstr.
58855         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
58856
58857 2007-01-26  Bruno Haible  <bruno@clisp.org>
58858
58859         * MODULES.html.sh (Unicode string functions): Add the new modules.
58860
58861         * modules/uniconv/u32-strconv-to-locale: New file.
58862         * lib/uniconv/u32-strconv-to-locale.c: New file.
58863
58864         * modules/uniconv/u16-strconv-to-locale: New file.
58865         * lib/uniconv/u16-strconv-to-locale.c: New file.
58866
58867         * modules/uniconv/u8-strconv-to-locale: New file.
58868         * lib/uniconv/u8-strconv-to-locale.c: New file.
58869
58870         * modules/uniconv/u32-strconv-from-locale: New file.
58871         * lib/uniconv/u32-strconv-from-locale.c: New file.
58872
58873         * modules/uniconv/u16-strconv-from-locale: New file.
58874         * lib/uniconv/u16-strconv-from-locale.c: New file.
58875
58876         * modules/uniconv/u8-strconv-from-locale: New file.
58877         * lib/uniconv/u8-strconv-from-locale.c: New file.
58878
58879         * modules/uniconv/u32-strconv-to-enc: New file.
58880         * lib/uniconv/u32-strconv-to-enc.c: New file.
58881         * modules/uniconv/u32-strconv-to-enc-tests: New file.
58882         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
58883
58884         * modules/uniconv/u16-strconv-to-enc: New file.
58885         * lib/uniconv/u16-strconv-to-enc.c: New file.
58886         * lib/uniconv/u-strconv-to-enc.h: New file.
58887         * modules/uniconv/u16-strconv-to-enc-tests: New file.
58888         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
58889
58890         * modules/uniconv/u8-strconv-to-enc: New file.
58891         * lib/uniconv/u8-strconv-to-enc.c: New file.
58892         * modules/uniconv/u8-strconv-to-enc-tests: New file.
58893         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
58894
58895         * modules/uniconv/u32-strconv-from-enc: New file.
58896         * lib/uniconv/u32-strconv-from-enc.c: New file.
58897         * modules/uniconv/u32-strconv-from-enc-tests: New file.
58898         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
58899
58900         * modules/uniconv/u16-strconv-from-enc: New file.
58901         * lib/uniconv/u16-strconv-from-enc.c: New file.
58902         * modules/uniconv/u16-strconv-from-enc-tests: New file.
58903         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
58904
58905         * modules/uniconv/u8-strconv-from-enc: New file.
58906         * lib/uniconv/u8-strconv-from-enc.c: New file.
58907         * lib/uniconv/u-strconv-from-enc.h: New file.
58908         * modules/uniconv/u8-strconv-from-enc-tests: New file.
58909         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
58910
58911         * modules/uniconv/u32-conv-from-enc: New file.
58912         * lib/uniconv/u32-conv-from-enc.c: New file.
58913         * modules/uniconv/u32-conv-from-enc-tests: New file.
58914         * tests/uniconv/test-u32-conv-from-enc.c: New file.
58915
58916         * modules/uniconv/u16-conv-from-enc: New file.
58917         * lib/uniconv/u16-conv-from-enc.c: New file.
58918         * lib/uniconv/u-conv-from-enc.h: New file.
58919         * modules/uniconv/u16-conv-from-enc-tests: New file.
58920         * tests/uniconv/test-u16-conv-from-enc.c: New file.
58921
58922         * modules/uniconv/u8-conv-from-enc: New file.
58923         * lib/uniconv/u8-conv-from-enc.c: New file.
58924         * modules/uniconv/u8-conv-from-enc-tests: New file.
58925         * tests/uniconv/test-u8-conv-from-enc.c: New file.
58926
58927         * modules/uniconv/base: New file.
58928         * lib/uniconv.h: New file.
58929
58930 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
58931
58932         * doc/gnulib-tool.texi (Initial import): Update to match current
58933         behavior with strdup module.
58934         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
58935         * lib/memmem.h: Remove; all uses removed.  This is now done
58936         by <string.h>.
58937         * lib/mempcpy.h: Likewise.
58938         * lib/memrchr.h: Likewise.
58939         * lib/stpcpy.h: Likewise.
58940         * lib/stpncpy.h: Likewise.
58941         * lib/strcase.h: Likewise.
58942         * lib/strchrnul.h: Likewise.
58943         * lib/strdup.h: Likewise.
58944         * lib/strndup.h: Likewise.
58945         * lib/strnlen.h: Likewise.
58946         * lib/strpbrk.h: Likewise.
58947         * lib/strsep.h: Likewise.
58948         * lib/strstr.h: Likewise.
58949         * lib/strtok_r.h: Likewise.
58950         * lib/string_.h: New file.
58951         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
58952         Rely on <string.h> instead.
58953         * lib/canon-host.c: Likewise.
58954         * lib/chdir-long.c: Likewise.
58955         * lib/concatpath.c: Likewise.
58956         * lib/exclude.c: Likewise.
58957         * lib/fchdir.c: Likewise.
58958         * lib/getaddrinfo.c: Likewise.
58959         * lib/getcwd.c: Likewise.
58960         * lib/getsubopt.c: Likewise.
58961         * lib/glob.c: Likewise.
58962         * lib/hard-locale.c: Likewise.
58963         * lib/iconvme.c: Likewise.
58964         * lib/javacomp.c: Likewise.
58965         * lib/mempcpy.c: Likewise.
58966         * lib/memrchr.c: Likewise.
58967         * lib/regex_internal.h: Likewise.
58968         * lib/stpncpy.c: Likewise.
58969         * lib/strcasecmp.c: Likewise.
58970         * lib/strchrnul.c: Likewise.
58971         * lib/strdup.c: Likewise.
58972         * lib/striconv.c: Likewise.
58973         * lib/striconveh.c: Likewise.
58974         * lib/striconveha.c: Likewise.
58975         * lib/strncasecmp.c: Likewise.
58976         * lib/strndup.c: Likewise.
58977         * lib/strnlen.c: Likewise.
58978         * lib/strsep.c: Likewise.
58979         * lib/strstr.c: Likewise.
58980         * lib/strtok_r.c: Likewise.
58981         * lib/userspec.c: Likewise.
58982         * lib/w32spawn.h: Likewise.
58983         * lib/xstrndup.c: Likewise.
58984         * lib/mountlist.c (strstr): Remove decl.
58985         * m4/string_h.m4: New file.
58986         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
58987         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
58988         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
58989         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
58990         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
58991         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
58992         Set REPLACE_STRCASECMP if necessary.
58993         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
58994         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
58995         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
58996         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
58997         HAVE_DECL_STRDUP if necessary.
58998         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
58999         since gl_FUNC_STRNDUP does that now.
59000         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
59001         Check for decl here...
59002         (gl_PREREQ_STRNLEN): ... not here.
59003         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
59004         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
59005         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
59006         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
59007         necessary.
59008         * modules/string: New file.
59009         * modules/memmem (Files): Remove special-purpose include file.
59010         (Depends-on): Add string.
59011         (Include): Include <string.h>, not the removed file.
59012         * modules/mempcpy: Likewise.
59013         * modules/memrchr: Likewise.
59014         * modules/stpcpy: Likewise.
59015         * modules/stpncpy: Likewise.
59016         * modules/strcase: Likewise.
59017         * modules/strchrnul: Likewise.
59018         * modules/strdup: Likewise.
59019         * modules/strndup: Likewise.
59020         * modules/strnlen: Likewise.
59021         * modules/strpbrk: Likewise.
59022         * modules/strsep: Likewise.
59023         * modules/strstr: Likewise.
59024         * modules/strtok_r: Likewise.
59025         * tests/test-dirname.c: Don't include "strdup.h", since
59026         <string.h> now suffices.
59027         * tests/test-memmem.c: Don't include "memmem.h", since
59028         <string.h> now suffices.
59029
59030 2007-01-25  Bruno Haible  <bruno@clisp.org>
59031
59032         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
59033         *resultp is 0.
59034
59035         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
59036         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
59037         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
59038         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
59039
59040         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
59041         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
59042         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
59043         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
59044         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
59045         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
59046
59047 2007-01-24  Bruno Haible  <bruno@clisp.org>
59048
59049         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
59050         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
59051         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
59052         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
59053         gl_FUNC_FTS_CORE.
59054         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
59055         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
59056         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
59057         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
59058         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
59059         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
59060         gl_FUNC_FCHOWNAT.
59061         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
59062         gl_FUNC_STRFTIME.
59063         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
59064         Reported by Ralf Wildenhues.
59065
59066 2007-01-24  Bruno Haible  <bruno@clisp.org>
59067
59068         Drop AC_REQUIRE calls that are redundant with the module dependencies.
59069         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
59070         gl_GETADDRINFO.
59071         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
59072         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
59073         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
59074
59075 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
59076
59077         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
59078         Don't use 'exit'; just return from 'main'.
59079         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
59080
59081         * lib/fnmatch_.h: Readjust white space and comments to match
59082         glibc, to avoid spurious diffs.
59083
59084 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
59085
59086         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
59087         2004-12-01 change by Jakub Jelinek, since this code won't compile
59088         if !LIBC.  Problem reported by Bob Proulx.
59089
59090 2007-01-23  Bruno Haible  <bruno@clisp.org>
59091
59092         * lib/striconveh.c: Include c-strcaseeq.h.
59093         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
59094         * modules/striconveh (Depends-on): Add c-strcaseeq.
59095
59096 2007-01-23  Bruno Haible  <bruno@clisp.org>
59097
59098         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
59099
59100         * modules/c-strcaseeq: New file.
59101         * lib/c-strcaseeq.h: New file.
59102
59103         * modules/streq: New file.
59104         * lib/streq.h: New file.
59105
59106 2007-01-23  Bruno Haible  <bruno@clisp.org>
59107
59108         * modules/striconveha-tests: New file.
59109         * tests/test-striconveha.c: New file.
59110
59111         * lib/striconveha.h: Include <stdbool.h>.
59112         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
59113         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
59114         (mem_iconveha_notranslit): Renamed from mem_iconveha.
59115         (mem_iconveha): New function.
59116         (str_iconveha_notranslit): Renamed from str_iconveha.
59117         (str_iconveha): New function.
59118         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
59119         c-strcase.
59120
59121 2007-01-23  Bruno Haible  <bruno@clisp.org>
59122
59123         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
59124         encodings without forgiving before trying any encoding with handler.
59125         (str_iconveha): Try all encodings without forgiving before trying any
59126         encoding with handler.
59127
59128 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
59129
59130         Import the following changes from libc.
59131
59132         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
59133
59134         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
59135
59136         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
59137
59138         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
59139         normal_bracket label.
59140
59141         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
59142
59143         [BZ #361]
59144         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
59145         to normal_bracket after fetching the next character.
59146
59147 2007-01-22  Bruno Haible  <bruno@clisp.org>
59148
59149         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
59150         argument.
59151         * lib/striconveh.c (iconv_carefully_1): New function.
59152         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
59153         argument.
59154         (str_cd_iconveh): Update.
59155         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
59156         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
59157         * tests/test-striconveh.c (MAGIC): New macro.
59158         (new_offsets): New function.
59159         (main): Test call with and without offsets.
59160
59161 2007-01-22  Bruno Haible  <bruno@clisp.org>
59162
59163         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
59164         * modules/sys_select (Makefile.am): Likewise.
59165         * modules/sys_socket (Makefile.am): Likewise.
59166         * modules/sys_time (Makefile.am): Likewise.
59167
59168 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
59169
59170         * modules/gettimeofday (License): Change from GPL to LGPL, since
59171         gettimeofday is a library function.
59172
59173 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
59174
59175         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
59176
59177 2007-01-21  Bruno Haible  <bruno@clisp.org>
59178
59179         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
59180
59181 2007-01-21  Bruno Haible  <bruno@clisp.org>
59182
59183         * modules/striconveha: New file.
59184         * lib/striconveha.h: New file.
59185         * lib/striconveha.c: New file.
59186         * MODULES.html.sh (Internationalization functions): Add striconveha.
59187         * lib/striconv.c (str_iconv): Optimize the case of an empty input
59188         string.
59189         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
59190
59191 2007-01-21  Bruno Haible  <bruno@clisp.org>
59192
59193         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
59194         * lib/striconveh.c (str_iconveh): Likewise.
59195
59196 2007-01-21  Bruno Haible  <bruno@clisp.org>
59197
59198         * lib/striconveh.h (mem_iconveh): New declaration.
59199         * lib/striconveh.c (mem_iconveh): New function.
59200         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
59201
59202 2007-01-21  Bruno Haible  <bruno@clisp.org>
59203
59204         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
59205
59206         * lib/striconveh.h (mem_cd_iconveh): Change specification.
59207         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
59208         original result buffer.
59209         (str_cd_iconveh): Update.
59210         * tests/test-striconveh.c (main): Update.
59211
59212         * lib/striconv.h (mem_cd_iconv): Change specification.
59213         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
59214         result buffer.
59215         (str_cd_iconv): Update.
59216         * tests/test-striconv.c (main): Update.
59217
59218 2007-01-21  Bruno Haible  <bruno@clisp.org>
59219
59220         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
59221
59222 2007-01-20  Jim Meyering  <jim@meyering.net>
59223
59224         * lib/userspec.c (parse_with_separator): If a user or group string
59225         starts with "+", skip the corresponding name-to-ID look-up, since
59226         such a look-up must fail: user and group names may not include "+".
59227
59228 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
59229
59230         * lib/poll.c: Include sys/time.h and time.h unconditionally,
59231         since we now assume the sys_time module.
59232         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
59233         check for sys/time.h; no longer needed.
59234         * modules/poll (Depends-on): Depend on sys_time.
59235
59236 2007-01-18  Bruno Haible  <bruno@clisp.org>
59237
59238         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
59239         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
59240
59241         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
59242         gettimeofday.
59243
59244         * tests/test-gettimeofday.c: Include <time.h>.
59245         (dummy): Remove variable.
59246
59247         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
59248         gl_HEADER_SYS_TIME_H.
59249         (gl_HEADER_SYS_TIME_H): New macro.
59250
59251         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
59252         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
59253         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
59254         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
59255         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
59256         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
59257         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
59258         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
59259         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
59260         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
59261         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
59262
59263         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
59264         last change; it caused a compilation error when cross-compiling to
59265         Cygwin.
59266
59267 2007-01-18  Jim Meyering  <jim@meyering.net>
59268
59269         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
59270         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
59271         than the race-prone "test -d sys || mkdir sys".
59272         (configure.ac): Use AC_PROG_MKDIR_P.
59273         * modules/sys_select: Likewise.
59274         * modules/sys_socket: Likewise.
59275         * modules/sys_time: Likewise.
59276
59277 2007-01-18  Eric Blake  <ebb9@byu.net>
59278
59279         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
59280         replace gettimeofday.
59281         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
59282         name, to avoid infinite recursion.
59283
59284 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
59285
59286         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
59287         module sys_time.
59288         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
59289         assume timespec.h defines struct timeval.
59290         * lib/settime.c: Likewise.
59291         * lib/utimens.c: Likewise.
59292         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
59293         since we now assume the gettimeofday module.
59294         * lib/tempname.c (__gen_tempname): Likewise.
59295         * lib/gettimeofday.h: Remove.
59296         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
59297         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
59298         Include <time.h>, for 'time()'.
59299         (localtime_buffer_addr): Also use this workaround if
59300         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
59301         to simplify the uses.  All uses changed.
59302         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
59303         that #undef is inside {}, and 'const' follows type name consistently.
59304         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
59305         (gettimeofday): Do not use the maximum possible value for
59306         tv->tv_usec, since that might break usages other than ls.c.
59307         Instead, we'll leave ls.c alone.  This undoes today's patch
59308         by Bruno.  Add a compile-time warning for 1s-clock resolution;
59309         we've never observed the problem but might as well keep the
59310         canary.
59311         * lib/nanosleep.c: Include timespec.h first, for interface check.
59312         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
59313         now assume the sys_time module.
59314         * lib/tempname.c: Likewise.
59315         * lib/timespec.h: Likewise.
59316         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
59317         needed.
59318         * lib/strftime.c: Likewise.
59319         * lib/timespec.h: Likewise.
59320         * lib/posixtm.c: Include posixtm.h first, for interface check.
59321         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
59322         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
59323         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
59324         * lib/sys_time_.h: New file.
59325         * lib/timespec.h (struct timespec): Use long int, not long.
59326         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
59327         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
59328         Remove obsolescent call to AC_HEADER_TIME.
59329         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
59330         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
59331         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
59332         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
59333         Likewise.
59334         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
59335         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
59336         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
59337         into the sys_time module.  Check for gettimeofday just once.
59338         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
59339         for gettimeofday signature to just check the signature.  Merely
59340         compile it, since linking doesn't test signature.  Improve test for
59341         whether gettimeofday.o is actually needed.
59342         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
59343         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
59344         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
59345         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
59346         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
59347         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
59348         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
59349         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
59350         than worrying about sys/time.h.
59351         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
59352         Don't bother worrying about TIME_WITH_SYS_TIME.
59353         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
59354         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
59355         * m4/sys_time_h.m4: New file.
59356         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
59357         Don't include sys/time.h.  Return from main rather than exiting.
59358         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
59359         all uses changed.
59360         * modules/gethrxtime (Depends-on): Add sys_time.
59361         * modules/gettime (Depends-on): Likewise.
59362         * modules/gettimeofday (Depends-on): Likewise.
59363         * modules/nanosleep (Depends-on): Likewise.
59364         * modules/settime (Depends-on): Likewise.
59365         * modules/tempname (Depends-on): Likewise.
59366         * modules/utimens (Depends-on): Likewise.
59367         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
59368         (Include): Change back to <sys/time.h>.
59369         (Maintainer): Add self.
59370         * modules/sys_time: New file.
59371         * modules/tempname (Depends-on): Add gettimeofday.
59372         * tests/test-gettimeofday.c: Include <sys/time.h>
59373         rather than gettimeofday.h.
59374
59375 2007-01-17  Bruno Haible  <bruno@clisp.org>
59376
59377         * gnulib-tool (func_get_license): Revert last patch. Instead, let
59378         the license default to GPL.
59379         (func_create_testdir): Don't complain if a module is LGPL and its
59380         tests module depends on GPLed modules.
59381
59382 2007-01-17  Bruno Haible  <bruno@clisp.org>
59383
59384         * lib/gettimeofday.c (gettimeofday): Add code for the case
59385         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
59386         maximum possible value for tv->tv_usec, rather than the minimum one.
59387
59388 2005-10-08  Martin Lambers  <marlam@marlam.de>
59389 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
59390 2007-01-16  Bruno Haible  <bruno@clisp.org>
59391
59392         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
59393         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
59394         gl_FUNC_GETTIMEOFDAY.
59395         (Include): Add gettimeofday.h.
59396         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
59397         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
59398         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
59399         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
59400         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
59401         * lib/gettimeofday.h: New file.
59402         * lib/gettimeofday.c: Include <sys/timeb.h>.
59403         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
59404         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
59405         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
59406         fall back on time().
59407
59408         * tests/test-gettimeofday.c: New file.
59409         * modules/gettimeofday-tests: New file.
59410
59411 2007-01-16  Eric Blake  <ebb9@byu.net>
59412
59413         * modules/fnmatch (Depends-on): Depend on wchar.
59414         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
59415         * m4/fnmatch.m4: Likewise.
59416         * modules/mbchar (Makefile.am): Assume <wchar.h>.
59417         * m4/mbchar.m4: Likewise.
59418         * modules/mbswidth (Depends-on): Depend on wchar.
59419         * lib/mbswidth.c: Assume <wchar.h>.
59420         * m4/mbswidth.m4: Likewise.
59421         * modules/quotearg (Depends-on): Depend on wchar.
59422         * lib/quotearg.c: Assume <wchar.h>.
59423         * m4/quotearg.m4: Likewise.
59424         * modules/regex (Depends-on): Depend on wchar.
59425         * lib/regex_internal.h: Assume <wchar.h>.
59426         * m4/regex.m4: Likewise.
59427         * modules/stdint (Depends-on): Depend on wchar.
59428         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
59429         * m4/stdint.m4: Likewise.
59430         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
59431         * modules/strftime (Depends-on): Depend on wchar.
59432         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
59433         * modules/strtol (Depends-on): Depend on wchar.
59434         * lib/strtol.c: Assume <wchar.h>.
59435         * modules/wcwidth (Depends-on): Depend on wchar.
59436         * lib/wcwidth.h: Assume <wchar.h>.
59437         * m4/wcwidth.m4: Likewise.
59438
59439 2007-01-16  Bruno Haible  <bruno@clisp.org>
59440
59441         * modules/csharpexec-script: New, created from...
59442         * modules/csharpexec: ... this.
59443
59444 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
59445
59446         * modules/javaexec-script: New, created from...
59447         * modules/javaexec: ... this.
59448
59449 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
59450
59451         * modules/poll (Dependencies): Add sys_select.
59452
59453 2007-01-15  Jim Meyering  <jim@meyering.net>
59454
59455         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
59456         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
59457         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
59458         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
59459
59460 2007-01-15  Bruno Haible  <bruno@clisp.org>
59461
59462         * modules/striconveh: New file.
59463         * lib/striconveh.h: New file.
59464         * lib/striconveh.c: New file.
59465         * MODULES.html.sh (Internationalization functions): Add striconveh.
59466
59467         * modules/striconveh-tests: New file.
59468         * tests/test-striconveh.c: New file.
59469
59470 2007-01-15  Bruno Haible  <bruno@clisp.org>
59471
59472         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
59473         not from GNU libiconv or GNU libc.
59474
59475 2007-01-15  Bruno Haible  <bruno@clisp.org>
59476
59477         * doc/gnulib-intro.texi (Copyright): Explain the different license
59478         terms for module descriptions, autoconf macros, tests, documentation.
59479
59480 2007-01-14  Bruno Haible  <bruno@clisp.org>
59481
59482         * modules/striconv-tests: New file.
59483         * tests/test-striconv.c: New file.
59484
59485 2007-01-14  Bruno Haible  <bruno@clisp.org>
59486
59487         * modules/iconv-tests: New file.
59488         * tests/test-iconv.c: New file.
59489
59490 2007-01-14  Bruno Haible  <bruno@clisp.org>
59491
59492         * gnulib-tool (func_get_license): For test modules, use the license of
59493         the main module.
59494
59495 2007-01-14  Bruno Haible  <bruno@clisp.org>
59496
59497         * modules/iconv (Include): Clarify that <iconv.h> can only be included
59498         if iconv is found to exist.
59499
59500 2007-01-14  Bruno Haible  <bruno@clisp.org>
59501
59502         * modules/c-ctype-tests: New file.
59503         * tests/test-c-ctype.c: New file.
59504
59505 2007-01-14  Bruno Haible  <bruno@clisp.org>
59506
59507         * modules/binary-io-tests: New file.
59508         * tests/test-binary-io.sh: New file.
59509         * tests/test-binary-io.c: New file.
59510
59511 2007-01-14  Bruno Haible  <bruno@clisp.org>
59512
59513         * modules/array-oset-tests: New file.
59514         * tests/test-array_oset.c: New file.
59515
59516 2007-01-14  Bruno Haible  <bruno@clisp.org>
59517
59518         * modules/array-list-tests: New file.
59519         * tests/test-array_list.c: New file.
59520
59521 2007-01-14  Bruno Haible  <bruno@clisp.org>
59522
59523         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
59524         and make.
59525         Reported by Simon Josefsson in
59526         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
59527
59528 2007-01-14  Bruno Haible  <bruno@clisp.org>
59529
59530         * modules/allocsa-tests: New file.
59531         * tests/test-allocsa.c: New file.
59532
59533 2007-01-14  Bruno Haible  <bruno@clisp.org>
59534
59535         * modules/fchdir (Depends-on): Add absolute-header.
59536         * modules/unistd (Depends-on): Likewise.
59537
59538 2006-12-30  Bruno Haible  <bruno@clisp.org>
59539
59540         * modules/fchdir: New file.
59541         * modules/unistd (Files): Add lib/unistd_.h.
59542         (Makefile.am): Generate unistd.h from unistd_.h.
59543         * lib/fchdir.c: New file.
59544         * lib/dirent_.h: New file.
59545         * lib/unistd_.h: New file.
59546         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
59547         * m4/fchdir.m4: New file.
59548         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
59549         (gl_HEADER_UNISTD): Invoke it.
59550         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
59551         function.
59552         * lib/backupfile.c (opendir, closedir): Undefine.
59553         * lib/chown.c (open, close): Undefine.
59554         * lib/clean-temp.c (open, close): Undefine.
59555         * lib/copy-file.c (open, close): Undefine.
59556         * lib/execute.c (open, close): Undefine.
59557         * lib/fsusage.c (open, close): Undefine.
59558         * lib/gc-gnulib.c (open, close): Undefine.
59559         * lib/getcwd.c (opendir, closedir): Undefine.
59560         * lib/glob.c (opendir, closedir): Undefine.
59561         * lib/javacomp.c (open, close): Undefine.
59562         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
59563         * lib/openat-proc.c (open, close): Undefine.
59564         * lib/pagealign_alloc.c (open, close): Undefine.
59565         * lib/pipe.c (open, close): Undefine.
59566         * lib/progreloc.c (open, close): Undefine.
59567         * lib/savedir.c (opendir, closedir): Undefine.
59568         * lib/utime.c (open, close): Undefine.
59569         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
59570
59571 2007-01-10  Bruno Haible  <bruno@clisp.org>
59572
59573         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
59574
59575 2007-01-12  Eric Blake  <ebb9@byu.net>
59576
59577         Provide a robust <wchar.h>.  Further simplifications are now
59578         possible in other modules, but not included here.
59579         * modules/wchar: New module.
59580         * m4/wchar.m4: New file.
59581         * lib/wchar_.h: Likewise.
59582         * modules/mbchar (Depends-on): Depend on wchar, as the first use
59583         of the new module.
59584         * MODULES.html.sh (Extended multibyte and wide character utilities):
59585         New section.
59586
59587 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
59588
59589         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
59590         to a reasonable default for memory allocation.
59591         (xreadlink): Don't allocate a huge buffer, to work around a buggy
59592         file system that reports garbage st_size values for symlinks.
59593         Problem reported by Liyang Hu.
59594
59595 2007-01-11  Simon Josefsson  <simon@josefsson.org>
59596
59597         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
59598         Emacs .#* auto-save files).
59599
59600 2007-01-11  Bruno Haible  <bruno@clisp.org>
59601
59602         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
59603         directory.
59604
59605 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
59606
59607         Use @...@ consistently in lib/wctype_.h.
59608         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
59609         on it being set to 1 or 0.
59610         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
59611         go back to AC_SUBSTing it.
59612         * modules/wctype (Makefile.am): Undo previous change.
59613
59614 2007-01-10  Eric Blake  <ebb9@byu.net>
59615
59616         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
59617         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
59618         * modules/wctype (Makefile.am): Likewise.
59619         Reported by Chris McGuire.
59620
59621 2007-01-10  Jim Meyering  <jim@meyering.net>
59622
59623         fts.c: a small readability/maintainability improvement
59624         * lib/fts.c (fts_read): Make this code slightly more readable and
59625         maintainable by hoisting the "sp->fts_cur = p" assignments to
59626         immediately follow the statements that set P.  Derived from
59627         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
59628
59629 2007-01-10  Eric Blake  <ebb9@byu.net>
59630
59631         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
59632         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
59633         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
59634         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
59635         Reported by Chris McGuire.
59636
59637 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59638
59639         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
59640         in sed script.
59641
59642 2007-01-09  Bruno Haible  <bruno@clisp.org>
59643
59644         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
59645         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
59646         variables.
59647         (func_module): Use them.
59648
59649 2007-01-09  Bruno Haible  <bruno@clisp.org>
59650
59651         * modules/unistr/base: New file.
59652         * lib/unistr.h: New file.
59653
59654         * modules/unistr/u8-to-u16: New file.
59655         * lib/unistr/u8-to-u16.c: New file.
59656
59657         * modules/unistr/u8-to-u32: New file.
59658         * lib/unistr/u8-to-u32.c: New file.
59659
59660         * modules/unistr/u16-to-u8: New file.
59661         * lib/unistr/u16-to-u8.c: New file.
59662
59663         * modules/unistr/u16-to-u32: New file.
59664         * lib/unistr/u16-to-u32.c: New file.
59665
59666         * modules/unistr/u32-to-u8: New file.
59667         * lib/unistr/u32-to-u8.c: New file.
59668
59669         * modules/unistr/u32-to-u16: New file.
59670         * lib/unistr/u32-to-u16.c: New file.
59671
59672         * modules/unistr/u8-check: New file.
59673         * modules/unistr/u16-check: New file.
59674         * modules/unistr/u32-check: New file.
59675         * lib/unistr/u8-check.c: New file.
59676         * lib/unistr/u16-check.c: New file.
59677         * lib/unistr/u32-check.c: New file.
59678
59679         * modules/unistr/u8-chr: New file.
59680         * modules/unistr/u16-chr: New file.
59681         * modules/unistr/u32-chr: New file.
59682         * lib/unistr/u8-chr.c: New file.
59683         * lib/unistr/u16-chr.c: New file.
59684         * lib/unistr/u32-chr.c: New file.
59685
59686         * modules/unistr/u8-cmp: New file.
59687         * modules/unistr/u16-cmp: New file.
59688         * modules/unistr/u32-cmp: New file.
59689         * lib/unistr/u8-cmp.c: New file.
59690         * lib/unistr/u16-cmp.c: New file.
59691         * lib/unistr/u32-cmp.c: New file.
59692
59693         * modules/unistr/u8-cpy: New file.
59694         * modules/unistr/u16-cpy: New file.
59695         * modules/unistr/u32-cpy: New file.
59696         * lib/unistr/u8-cpy.c: New file.
59697         * lib/unistr/u16-cpy.c: New file.
59698         * lib/unistr/u32-cpy.c: New file.
59699         * lib/unistr/u-cpy.h: New file.
59700
59701         * modules/unistr/u8-cpy-alloc: New file.
59702         * modules/unistr/u16-cpy-alloc: New file.
59703         * modules/unistr/u32-cpy-alloc: New file.
59704         * lib/unistr/u8-cpy-alloc.c: New file.
59705         * lib/unistr/u16-cpy-alloc.c: New file.
59706         * lib/unistr/u32-cpy-alloc.c: New file.
59707         * lib/unistr/u-cpy-alloc.h: New file.
59708
59709         * modules/unistr/u8-endswith: New file.
59710         * modules/unistr/u16-endswith: New file.
59711         * modules/unistr/u32-endswith: New file.
59712         * lib/unistr/u8-endswith.c: New file.
59713         * lib/unistr/u16-endswith.c: New file.
59714         * lib/unistr/u32-endswith.c: New file.
59715         * lib/unistr/u-endswith.h: New file.
59716
59717         * modules/unistr/u8-mblen: New file.
59718         * modules/unistr/u16-mblen: New file.
59719         * modules/unistr/u32-mblen: New file.
59720         * lib/unistr/u8-mblen.c: New file.
59721         * lib/unistr/u16-mblen.c: New file.
59722         * lib/unistr/u32-mblen.c: New file.
59723
59724         * modules/unistr/u8-mbtouc: New file.
59725         * modules/unistr/u16-mbtouc: New file.
59726         * modules/unistr/u32-mbtouc: New file.
59727         * lib/unistr/u8-mbtouc.c: New file.
59728         * lib/unistr/u16-mbtouc.c: New file.
59729         * lib/unistr/u32-mbtouc.c: New file.
59730
59731         * modules/unistr/u8-mbtouc-safe: New file.
59732         * modules/unistr/u16-mbtouc-safe: New file.
59733         * modules/unistr/u32-mbtouc-safe: New file.
59734         * lib/unistr/u8-mbtouc-safe.c: New file.
59735         * lib/unistr/u16-mbtouc-safe.c: New file.
59736         * lib/unistr/u32-mbtouc-safe.c: New file.
59737
59738         * modules/unistr/u8-move: New file.
59739         * modules/unistr/u16-move: New file.
59740         * modules/unistr/u32-move: New file.
59741         * lib/unistr/u8-move.c: New file.
59742         * lib/unistr/u16-move.c: New file.
59743         * lib/unistr/u32-move.c: New file.
59744         * lib/unistr/u-move.h: New file.
59745
59746         * modules/unistr/u8-next: New file.
59747         * modules/unistr/u16-next: New file.
59748         * modules/unistr/u32-next: New file.
59749         * lib/unistr/u8-next.c: New file.
59750         * lib/unistr/u16-next.c: New file.
59751         * lib/unistr/u32-next.c: New file.
59752
59753         * modules/unistr/u8-prev: New file.
59754         * modules/unistr/u16-prev: New file.
59755         * modules/unistr/u32-prev: New file.
59756         * lib/unistr/u8-prev.c: New file.
59757         * lib/unistr/u16-prev.c: New file.
59758         * lib/unistr/u32-prev.c: New file.
59759
59760         * modules/unistr/u8-set: New file.
59761         * modules/unistr/u16-set: New file.
59762         * modules/unistr/u32-set: New file.
59763         * lib/unistr/u8-set.c: New file.
59764         * lib/unistr/u16-set.c: New file.
59765         * lib/unistr/u32-set.c: New file.
59766         * lib/unistr/u-set.h: New file.
59767
59768         * modules/unistr/u8-startswith: New file.
59769         * modules/unistr/u16-startswith: New file.
59770         * modules/unistr/u32-startswith: New file.
59771         * lib/unistr/u8-startswith.c: New file.
59772         * lib/unistr/u16-startswith.c: New file.
59773         * lib/unistr/u32-startswith.c: New file.
59774         * lib/unistr/u-startswith.h: New file.
59775
59776         * modules/unistr/u8-stpcpy: New file.
59777         * modules/unistr/u16-stpcpy: New file.
59778         * modules/unistr/u32-stpcpy: New file.
59779         * lib/unistr/u8-stpcpy.c: New file.
59780         * lib/unistr/u16-stpcpy.c: New file.
59781         * lib/unistr/u32-stpcpy.c: New file.
59782         * lib/unistr/u-stpcpy.h: New file.
59783
59784         * modules/unistr/u8-stpncpy: New file.
59785         * modules/unistr/u16-stpncpy: New file.
59786         * modules/unistr/u32-stpncpy: New file.
59787         * lib/unistr/u8-stpncpy.c: New file.
59788         * lib/unistr/u16-stpncpy.c: New file.
59789         * lib/unistr/u32-stpncpy.c: New file.
59790         * lib/unistr/u-stpncpy.h: New file.
59791
59792         * modules/unistr/u8-strcat: New file.
59793         * modules/unistr/u16-strcat: New file.
59794         * modules/unistr/u32-strcat: New file.
59795         * lib/unistr/u8-strcat.c: New file.
59796         * lib/unistr/u16-strcat.c: New file.
59797         * lib/unistr/u32-strcat.c: New file.
59798         * lib/unistr/u-strcat.h: New file.
59799
59800         * modules/unistr/u8-strchr: New file.
59801         * modules/unistr/u16-strchr: New file.
59802         * modules/unistr/u32-strchr: New file.
59803         * lib/unistr/u8-strchr.c: New file.
59804         * lib/unistr/u16-strchr.c: New file.
59805         * lib/unistr/u32-strchr.c: New file.
59806
59807         * modules/unistr/u8-strcmp: New file.
59808         * modules/unistr/u16-strcmp: New file.
59809         * modules/unistr/u32-strcmp: New file.
59810         * lib/unistr/u8-strcmp.c: New file.
59811         * lib/unistr/u16-strcmp.c: New file.
59812         * lib/unistr/u32-strcmp.c: New file.
59813
59814         * modules/unistr/u8-strcpy: New file.
59815         * modules/unistr/u16-strcpy: New file.
59816         * modules/unistr/u32-strcpy: New file.
59817         * lib/unistr/u8-strcpy.c: New file.
59818         * lib/unistr/u16-strcpy.c: New file.
59819         * lib/unistr/u32-strcpy.c: New file.
59820         * lib/unistr/u-strcpy.h: New file.
59821
59822         * modules/unistr/u8-strcspn: New file.
59823         * modules/unistr/u16-strcspn: New file.
59824         * modules/unistr/u32-strcspn: New file.
59825         * lib/unistr/u8-strcspn.c: New file.
59826         * lib/unistr/u16-strcspn.c: New file.
59827         * lib/unistr/u32-strcspn.c: New file.
59828         * lib/unistr/u-strcspn.h: New file.
59829
59830         * modules/unistr/u8-strdup: New file.
59831         * modules/unistr/u16-strdup: New file.
59832         * modules/unistr/u32-strdup: New file.
59833         * lib/unistr/u8-strdup.c: New file.
59834         * lib/unistr/u16-strdup.c: New file.
59835         * lib/unistr/u32-strdup.c: New file.
59836         * lib/unistr/u-strdup.h: New file.
59837
59838         * modules/unistr/u8-strlen: New file.
59839         * modules/unistr/u16-strlen: New file.
59840         * modules/unistr/u32-strlen: New file.
59841         * lib/unistr/u8-strlen.c: New file.
59842         * lib/unistr/u16-strlen.c: New file.
59843         * lib/unistr/u32-strlen.c: New file.
59844         * lib/unistr/u-strlen.h: New file.
59845
59846         * modules/unistr/u8-strmblen: New file.
59847         * modules/unistr/u16-strmblen: New file.
59848         * modules/unistr/u32-strmblen: New file.
59849         * lib/unistr/u8-strmblen.c: New file.
59850         * lib/unistr/u16-strmblen.c: New file.
59851         * lib/unistr/u32-strmblen.c: New file.
59852
59853         * modules/unistr/u8-strmbtouc: New file.
59854         * modules/unistr/u16-strmbtouc: New file.
59855         * modules/unistr/u32-strmbtouc: New file.
59856         * lib/unistr/u8-strmbtouc.c: New file.
59857         * lib/unistr/u16-strmbtouc.c: New file.
59858         * lib/unistr/u32-strmbtouc.c: New file.
59859
59860         * modules/unistr/u8-strncat: New file.
59861         * modules/unistr/u16-strncat: New file.
59862         * modules/unistr/u32-strncat: New file.
59863         * lib/unistr/u8-strncat.c: New file.
59864         * lib/unistr/u16-strncat.c: New file.
59865         * lib/unistr/u32-strncat.c: New file.
59866         * lib/unistr/u-strncat.h: New file.
59867
59868         * modules/unistr/u8-strncmp: New file.
59869         * modules/unistr/u16-strncmp: New file.
59870         * modules/unistr/u32-strncmp: New file.
59871         * lib/unistr/u8-strncmp.c: New file.
59872         * lib/unistr/u16-strncmp.c: New file.
59873         * lib/unistr/u32-strncmp.c: New file.
59874
59875         * modules/unistr/u8-strncpy: New file.
59876         * modules/unistr/u16-strncpy: New file.
59877         * modules/unistr/u32-strncpy: New file.
59878         * lib/unistr/u8-strncpy.c: New file.
59879         * lib/unistr/u16-strncpy.c: New file.
59880         * lib/unistr/u32-strncpy.c: New file.
59881         * lib/unistr/u-strncpy.h: New file.
59882
59883         * modules/unistr/u8-strnlen: New file.
59884         * modules/unistr/u16-strnlen: New file.
59885         * modules/unistr/u32-strnlen: New file.
59886         * lib/unistr/u8-strnlen.c: New file.
59887         * lib/unistr/u16-strnlen.c: New file.
59888         * lib/unistr/u32-strnlen.c: New file.
59889         * lib/unistr/u-strnlen.h: New file.
59890
59891         * modules/unistr/u8-strpbrk: New file.
59892         * modules/unistr/u16-strpbrk: New file.
59893         * modules/unistr/u32-strpbrk: New file.
59894         * lib/unistr/u8-strpbrk.c: New file.
59895         * lib/unistr/u16-strpbrk.c: New file.
59896         * lib/unistr/u32-strpbrk.c: New file.
59897         * lib/unistr/u-strpbrk.h: New file.
59898
59899         * modules/unistr/u8-strrchr: New file.
59900         * modules/unistr/u16-strrchr: New file.
59901         * modules/unistr/u32-strrchr: New file.
59902         * lib/unistr/u8-strrchr.c: New file.
59903         * lib/unistr/u16-strrchr.c: New file.
59904         * lib/unistr/u32-strrchr.c: New file.
59905
59906         * modules/unistr/u8-strspn: New file.
59907         * modules/unistr/u16-strspn: New file.
59908         * modules/unistr/u32-strspn: New file.
59909         * lib/unistr/u8-strspn.c: New file.
59910         * lib/unistr/u16-strspn.c: New file.
59911         * lib/unistr/u32-strspn.c: New file.
59912         * lib/unistr/u-strspn.h: New file.
59913
59914         * modules/unistr/u8-strstr: New file.
59915         * modules/unistr/u16-strstr: New file.
59916         * modules/unistr/u32-strstr: New file.
59917         * lib/unistr/u8-strstr.c: New file.
59918         * lib/unistr/u16-strstr.c: New file.
59919         * lib/unistr/u32-strstr.c: New file.
59920         * lib/unistr/u-strstr.h: New file.
59921
59922         * modules/unistr/u8-strtok: New file.
59923         * modules/unistr/u16-strtok: New file.
59924         * modules/unistr/u32-strtok: New file.
59925         * lib/unistr/u8-strtok.c: New file.
59926         * lib/unistr/u16-strtok.c: New file.
59927         * lib/unistr/u32-strtok.c: New file.
59928         * lib/unistr/u-strtok.h: New file.
59929
59930         * modules/unistr/u8-uctomb: New file.
59931         * modules/unistr/u16-uctomb: New file.
59932         * modules/unistr/u32-uctomb: New file.
59933         * lib/unistr/u8-uctomb.c: New file.
59934         * lib/unistr/u16-uctomb.c: New file.
59935         * lib/unistr/u32-uctomb.c: New file.
59936
59937         * MODULES.html.sh (Unicode string functions): Add the new modules.
59938
59939 2007-01-08  Bruno Haible  <bruno@clisp.org>
59940
59941         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
59942         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
59943         subdirectories.
59944
59945 2007-01-08  Karl Berry  <karl@gnu.org>
59946
59947         * doc/error.texi: mention that main() fns must set program_name
59948         when progname is used.
59949
59950 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
59951
59952         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
59953         WCTYPE_H is empty, for the benefit of builds from non-distclean
59954         directories.  Problem reported by Eric Blake in
59955         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
59956
59957 2007-01-08  Bruno Haible  <bruno@clisp.org>
59958
59959         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
59960         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
59961         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
59962         PROVIDE_CANONICALIZE_FILENAME_MODE.
59963         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
59964
59965 2007-01-08  Bruno Haible  <bruno@clisp.org>
59966
59967         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
59968         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
59969         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
59970         * lib/fts.c: Likewise.
59971         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
59972
59973 2006-12-25  Bruno Haible  <bruno@clisp.org>
59974
59975         * modules/utf8-ucs4-safe: New file.
59976         * lib/utf8-ucs4-safe.h: New file.
59977         * lib/unistr/utf8-ucs4-safe.c: New file.
59978
59979         * modules/utf16-ucs4-safe: New file.
59980         * lib/utf16-ucs4-safe.h: New file.
59981         * lib/unistr/utf16-ucs4-safe.c: New file.
59982
59983         * MODULES.html.sh (Unicode string functions): Add the new modules.
59984
59985 2007-01-08  Bruno Haible  <bruno@clisp.org>
59986
59987         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
59988         (Depends-on): Add unitypes.
59989         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
59990         (u8_mbtouc_aux): Move out to separate file.
59991         (u8_mbtouc): Use ucs4_t, uint8_t types.
59992         * lib/unistr/utf8-ucs4.c: New file.
59993
59994         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
59995         (Depends-on): Add unitypes.
59996         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
59997         (u16_mbtouc_aux): Move out to separate file.
59998         (u16_mbtouc): Use ucs4_t, uint16_t types.
59999         * lib/unistr/utf16-ucs4.c: New file.
60000
60001         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
60002         (Depends-on): Add unitypes.
60003         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
60004         (u8_uctomb_aux): Move out to separate file.
60005         (u8_uctomb): Use ucs4_t, uint8_t types.
60006         * lib/unistr/ucs4-utf8.c: New file.
60007
60008         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
60009         (Depends-on): Add unitypes.
60010         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
60011         (u16_uctomb_aux): Move out to separate file.
60012         (u16_uctomb): Use ucs4_t, uint16_t types.
60013         * lib/unistr/ucs4-utf16.c: New file.
60014
60015 2006-12-25  Bruno Haible  <bruno@clisp.org>
60016
60017         * modules/unitypes: New file.
60018         * lib/unitypes.h: New file.
60019         * MODULES.html.sh (func_all_modules): New section "Unicode string
60020         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
60021         this section. Add unitypes.
60022
60023 2007-01-08  Bruno Haible  <bruno@clisp.org>
60024
60025         Avoid variable names that conflict with those from libtool.
60026         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
60027         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
60028         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
60029         library_names_spec to acl_library_names_spec, hardcode_* to
60030         acl_hardcode_*.
60031         Reported by Ralf Wildenhues.
60032
60033 2007-01-08  Bruno Haible  <bruno@clisp.org>
60034
60035         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
60036         definition.
60037         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
60038         definition.
60039         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
60040         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
60041         definition.
60042         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
60043         definition.
60044         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
60045         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
60046         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
60047         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
60048         definition.
60049         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
60050         definition.
60051         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
60052         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
60053         GC_USE_<algorithm>.
60054         * lib/gc-libgcrypt.c: Likewise.
60055         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
60056         * modules/gc-arctwo (configure.ac): Likewise.
60057         * modules/gc-des (configure.ac): Likewise.
60058         * modules/gc-hmac-md5 (configure.ac): Likewise.
60059         * modules/gc-hmac-sha1 (configure.ac): Likewise.
60060         * modules/gc-md2 (configure.ac): Likewise.
60061         * modules/gc-md4 (configure.ac): Likewise.
60062         * modules/gc-md5 (configure.ac): Likewise.
60063         * modules/gc-random (configure.ac): Likewise.
60064         * modules/gc-rijndael (configure.ac): Likewise.
60065         * modules/gc-sha1 (configure.ac): Likewise.
60066
60067 2007-01-08  Bruno Haible  <bruno@clisp.org>
60068
60069         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
60070         macro definition.
60071         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
60072         definition.
60073         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
60074         definition.
60075         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
60076         * modules/fcntl-safer (configure.ac): Likewise.
60077         * modules/fopen-safer (configure.ac): Likewise.
60078         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
60079         GNULIB_FWRITEERROR macro definition.
60080
60081 2007-01-08  Bruno Haible  <bruno@clisp.org>
60082
60083         * m4/gnulib-common.m4: New file.
60084         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
60085         (func_get_filelist): Add m4/gnulib-common.m4.
60086
60087 2007-01-08  Bruno Haible  <bruno@clisp.org>
60088
60089         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
60090         command.
60091
60092 2007-01-08  Jim Meyering  <jim@meyering.net>
60093
60094         Use a more robust test for a "can't happen" condition.
60095         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
60096         narrowed the st_size value.  Presuming the "can't happen" condition
60097         is true, that narrowing could conceivably convert an invalid st_size
60098         value into a valid one.  Instead, use a change based on Matthew
60099         Woehlke's original patch.
60100
60101         Slight readability improvement: use an assert-like macro
60102         in place of literal "abort ()" uses.
60103         * lib/fts.c (fts_assert): Define.
60104         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
60105         Use this macro instead of a bare 'abort'.
60106
60107 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
60108
60109         Don't worry about using IRIX 5.3's wctype.h broken definitions;
60110         simply work around them.
60111         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
60112         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
60113         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
60114         declaring.
60115         Don't bother to define as macros, since the standard doesn't require it.
60116         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
60117         longer worry about IRIX 5.3.
60118         (HAVE_WCTYPE_CTMP_BUG): Remove.
60119
60120 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
60121
60122         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
60123         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
60124         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
60125         Problems reported by Georg Schwarz for IRIX 5.3.
60126
60127         * gnulib-tool (autoconf_minversion): Take the maximum version number
60128         found, not the minimum.  Problem reported by James Youngman.
60129
60130 2007-01-03  Karl Berry  <karl@gnu.org>
60131
60132         * doc/error.texi: new file, explaining interaction with progname.
60133         * doc/gnulib.texi: include it.  Update copyright.
60134
60135 2007-01-03  Simon Josefsson  <simon@josefsson.org>
60136
60137         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
60138         AC_CANONICAL_HOST, to improve autobuild outputs.
60139
60140 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
60141             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
60142
60143         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
60144         sockets, server sockets, and other file descriptors.  Count errors
60145         to compute the return value.  Reorder the code a bit to be easier
60146         to follow.  Don't set event bits that were not requested (except
60147         POLLERR and POLLHUP).
60148
60149 2007-01-01  Bruno Haible  <bruno@clisp.org>
60150
60151         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
60152
60153 2007-01-03  Jim Meyering  <jim@meyering.net>
60154
60155         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
60156
60157 2007-01-02  Bruno Haible  <bruno@clisp.org>
60158
60159         * modules/settime (Include): Require timespec.h.
60160         * modules/nanosleep (Include): Likewise.
60161
60162 2007-01-01  Bruno Haible  <bruno@clisp.org>
60163
60164         * gnulib-tool (func_emit_copyright_notice): Bump year.
60165         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
60166
60167 2007-01-01  Bruno Haible  <bruno@clisp.org>
60168
60169         Improve support for OpenBSD.
60170         * build-aux/config.rpath (libname_spec): Export.
60171         (library_names_spec): New variable. Export.
60172         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
60173         library_names_spec from the config.rpath output. Locate shared library
60174         through the name pattern in library_names_spec.
60175
60176 2007-01-01  Eric Blake  <ebb9@byu.net>
60177
60178         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
60179
60180 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
60181
60182         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
60183         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
60184         assume the C locale, and avoid an "eval" that could cause trouble.
60185         Problem with SORT reported by Bob Proulx.
60186
60187         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
60188         Define.  Trivial patch from Henning Nielsen Lund, originally
60189         sent to bug-grep@gnu.org today.
60190
60191 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
60192
60193         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
60194         struct stat.  Problem reported by Henning Nielsen Lund.
60195         * lib/acl.c: Include acl.h first, to check interface.  Don't
60196         bother to include sys/types.h and sys/stat.h again.
60197
60198 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
60199
60200         Import the following change from libc; problem reported by
60201         Sven Verdoolaege.
60202
60203         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
60204
60205         [BZ #1373]
60206         * lib/argp.h: Remove __NTH for __argp_usage inline function.
60207
60208 2006-12-28  Jim Meyering  <jim@meyering.net>
60209
60210         * build-aux/announce-gen: Do not assume that the package
60211         builds any of tar.gz, tar.bz2, and .xdelta files.
60212         Suggestion from Simon Josefsson.
60213
60214 2006-12-28  Simon Josefsson  <simon@josefsson.org>
60215
60216         * modules/announce-gen: New file.
60217
60218 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
60219
60220         * lib/mbchar.h: Just include <wctype.h>; the wctype module
60221         handles its gotchas now.
60222         * lib/mbswidth.c: Likewise.
60223         * lib/wcwidth.h: Likewise.
60224         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
60225         and iswcntrl; the wctype module does this stuff now.
60226         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
60227         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
60228         * modules/mbchar (Depends-on): Add wctype.
60229         * modules/mbswidth (Depends-on): Likewise.
60230         * modules/wcwidth (Depends-on): Likewise.
60231
60232 2006-12-27  Eric Blake  <ebb9@byu.net>
60233
60234         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
60235         module uses more than what <wctype.h> is required to provide.
60236
60237 2006-12-26  Eric Blake  <ebb9@byu.net>
60238
60239         * gnulib-tool (sed_extract_prog): Avoid space-tab.
60240
60241 2006-12-26  Eric Blake  <ebb9@byu.net>
60242
60243         * modules/absolute-header: New module.
60244         * modules/fcntl (Depends-on): Depend on it.
60245         * modules/inttypes (Depends-on): Likewise.
60246         * modules/stdint (Depends-on): Likewise.
60247         * modules/sys_stat (Depends-on): Likewise.
60248         * modules/wctype (Depends-on): Likewise.
60249         * MODULES.html.sh (Support for building libraries and
60250         executables): Document it.
60251
60252 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
60253
60254         * gnulib-tool (SED): Remove, undoing previous change.
60255         The problem was that it broke coreutils on Solaris, because
60256         "sed --posix" leaked into a makefile.
60257         (sed): New alias, if 'alias' and GNU sed.
60258
60259 2006-12-24  Jim Meyering  <jim@meyering.net>
60260
60261         Work around an fchownat bug in glibc-2.4:
60262         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
60263         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
60264         in spite of the -P option.
60265         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
60266         New macros.
60267         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
60268         * modules/openat (Files): Add lib/fchownat.c.
60269         * lib/openat.c (fchownat): Don't define here.  Move to...
60270         * lib/fchownat.c: ...this new file.
60271
60272 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
60273
60274         Fix bug reported by Bruno Haible in
60275         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
60276         where quotearg.c didn't compile on Mac OS X 10.2 because it
60277         lacks <wchar.h> and wint_t.
60278         * lib/wctype_.h (__wctype_wint_t): New type.
60279         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
60280         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
60281         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
60282         Arg is now of type __wctype_wint_t, not wint_t.
60283         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
60284         substitute HAVE_WINT_T.
60285         * modules/wctype (Files): Add m4/wint_t.m4.
60286         (wctype.h): Substitute HAVE_WINT_T.
60287
60288 2006-12-23  Bruno Haible  <bruno@clisp.org>
60289
60290         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
60291
60292 2006-12-23  Bruno Haible  <bruno@clisp.org>
60293
60294         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
60295         S_ISLNK.
60296         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
60297         mingw.
60298
60299 2006-12-22  Bruno Haible  <bruno@clisp.org>
60300
60301         * lib/copy-file.c: Include acl.h.
60302         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
60303         Close the file descriptors only after being done with copy_acl.
60304         * modules/copy-file (Depends-on): Add acl.
60305
60306 2006-12-22  Bruno Haible  <bruno@clisp.org>
60307
60308         * gnulib-tool (SED): New variable.
60309         Use $SED instead of sed everywhere.
60310
60311 2006-12-22  Bruno Haible  <bruno@clisp.org>
60312
60313         * modules/no-c++: New file.
60314         * m4/no-c++.m4: New file.
60315         * MODULES.html.sh (Support for building libraries and executables):
60316         Add no-c++.
60317
60318 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
60319
60320         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
60321         Include <limits.h>, and use its INT_MAX to rewrite the
60322         j loop so that it does not overflow 'int'.  Problem reported by
60323         Ralf Wildenhues in
60324         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
60325         Play it safe by shifting left by 1 rather than multiplying by 2,
60326         as GCC is less likely to optimize this away when the value
60327         is signed (when it assumes overflow leads to undefined behavior).
60328         Also, don't assume time_t uses two's complement.
60329
60330 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
60331
60332         * MODULES.html.sh: New module wctype.
60333         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
60334         * lib/fnmatch.c: Don't bother to include <wchar.h> before
60335         <wctype.h>, since the new wctype module should fix this.
60336         * lib/quotearg.c: Include <wctype.h> unconditionally, since
60337         the wctype module should arrange for it.
60338         * lib/regex_internal.h: Likewise.
60339         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
60340         since the wctype module should handle this now.
60341         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
60342         * modules/fnmatch (Depends-on): Add wctype.
60343         * modules/quotearg (Depends-on): Likewise.
60344         * modules/regex (Depends-on): Likewise.
60345
60346 2006-12-19  Bruno Haible  <bruno@clisp.org>
60347
60348         * lib/strdup.h [C++]: Wrap definitions in extern "C".
60349         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
60350
60351 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60352
60353         * modules/savewd (Depends-on): Fix dependency on fcntl.
60354
60355 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
60356
60357         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
60358         conforms to C99, rather than relying on the user's environment
60359         setting of STDINT_H.
60360
60361 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
60362         and Eric Blake  <ebb9@byu.net>
60363
60364         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
60365         This is more consistent with the other defines here.
60366         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
60367         Port to z/OS.  Problem reported by Paul Gilmartin.
60368         Change local vars to use gl_ prefix rather than ac_.
60369         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
60370         with other defines.
60371         * modules/double-slash-root: New module.
60372         * modules/dirname (Files): Remove m4/double-slash-root.m4.
60373         (Depends-on): Add double-slash-root.
60374         * MODULES.html.sh (File system functions): Mention new module.
60375
60376 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
60377
60378         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
60379         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
60380         This is for the benefit of gzip, which doesn't do i18n.
60381
60382 2006-12-12  Jim Meyering  <jim@meyering.net>
60383
60384         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
60385         Reported by Andreas Schwab <schwab@suse.de>.
60386
60387 2006-12-12  Bruno Haible  <bruno@clisp.org>
60388
60389         Merge these changes.
60390         2006-09-05  Bruno Haible  <bruno@clisp.org>
60391         * lib/iconvme.c (iconv_string): No need to save and restore errno when
60392         iconv_alloc succeeded.
60393         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
60394         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
60395         test for " && dest " at the end - dest is always != NULL there. Call
60396         iconv with 4xNULL arguments initially, to reset the state. Call iconv
60397         with 2xNULL arguments, also to flush the state storage. Handle the
60398         IRIX iconv behaviour. Realloc the final result, to throw away unused
60399         memory.
60400
60401 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
60402
60403         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
60404         and fchmodat unconditionally, since glibc 2.4 has them.
60405         Problem reported by Arkadiusz Miskiewicz.
60406
60407 2006-12-10  Bruno Haible  <bruno@clisp.org>
60408
60409         * gnulib-tool (func_import): Show the include files only for those
60410         modules that are copied and specified.
60411         Reported by Karl Berry.
60412
60413 2006-12-08  Jim Meyering  <jim@meyering.net>
60414
60415         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
60416         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
60417
60418         * build-aux/announce-gen: Add two new options, both optional:
60419         --bootstrap-tools=TOOL_LIST
60420               a comma-separated list of tools, e.g.,
60421               autoconf,automake,bison,gnulib
60422         --gnulib-snapshot-date=DATE
60423               if gnulib is in the bootstrap tool list,
60424               then report this as the snapshot date.
60425               If not specified, use the current date/time.
60426               If you specify a date here, be sure it's UTC.
60427
60428 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60429
60430         * tests/test-argp-2.sh: Fix test to match actual output.
60431         (func_compare): Fix sed script to be portable.
60432
60433 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
60434
60435         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
60436         workaround for this case.  It is not autoconfigured now; offhand
60437         it's hard to see how to autoconfigure it.
60438
60439 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
60440
60441         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
60442         a directory that is about to be chowned.  Such a directory's
60443         initial file permissions should permit the owner only and this
60444         should not be changed until after the chown, since the group and
60445         other bits would be incorrect if they granted permission before
60446         the chown.
60447
60448         Fix porting problem for iswctype reported by Georg Schwarz in:
60449         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
60450         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
60451         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
60452         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
60453         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
60454
60455 2006-12-03  Jim Meyering  <jim@meyering.net>
60456
60457         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
60458         p->fts_statp may not yet be defined.
60459         (fts_read): Instead, set it in the caller, once p->fts_statp is
60460         sure to be defined, and corresponds to a top-level directory.
60461         This bug made du -x fail.  Here's the coreutils test case:
60462         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
60463         Reported by Mike Frysinger.
60464
60465 2006-12-01  Jim Meyering  <jim@meyering.net>
60466
60467         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
60468         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
60469         Reported by Simon Josefsson.
60470
60471 2006-11-30  Jim Meyering  <jim@meyering.net>
60472
60473         * m4/warning.m4: Use the all-permissive copyright notice
60474         recommended by RMS (rather than LGPL).
60475         * m4/vararrays.m4: Likewise.
60476         * m4/flexmember.m4: Likewise.
60477
60478 2006-11-29  Bruno Haible  <bruno@clisp.org>
60479
60480         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
60481         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
60482         using +=.
60483         Reported by Simon Josefsson <simon@josefsson.org>.
60484
60485 2006-11-28  James Youngman <jay@gnu.org>
60486
60487         * README: Advise users that they might find the bug-gnulib@gnu.org
60488         and autotools-announce@gnu.org mailing lists useful.
60489
60490 2006-11-28  Bruno Haible  <bruno@clisp.org>
60491
60492         * m4/ptrdiff_max.m4: Remove file.
60493
60494 2006-11-21  Bruno Haible  <bruno@clisp.org>
60495
60496         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
60497         _AC_COMPUTE_INT.
60498         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
60499         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
60500         _AC_COMPUTE_INT.
60501         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
60502         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
60503         _AC_COMPUTE_INT.
60504         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
60505
60506 2006-11-28  Jim Meyering  <jim@meyering.net>
60507
60508         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
60509         warning from "gcc -Wshadow" about shadowing the builtin.
60510
60511 2006-11-27  Bruno Haible  <bruno@clisp.org>
60512
60513         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
60514         _AC_COMPUTE_INT.
60515         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
60516
60517 2006-11-27  Bruno Haible  <bruno@clisp.org>
60518             Paul Eggert  <eggert@cs.ucla.edu>
60519
60520         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
60521
60522 2006-11-26  Bruno Haible  <bruno@clisp.org>
60523
60524         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
60525         noinst_LTLIBRARIES.
60526
60527 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
60528             Bruno Haible  <bruno@clisp.org>
60529
60530         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
60531         if compiling with "gcc -ansi".
60532
60533 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
60534
60535         Fix some incompatibilities with gcc -ansi -pedantic.
60536         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
60537         if compiling pedantically with GCC, unless it's C99 or later.
60538         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
60539         it mishandles gcc -ansi -pedantic as well.
60540         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
60541         if gcc -pedantic.
60542         * lib/regexec.c (check_node_accept_bytes): Don't use auto
60543         initializers for struct if -pedantic, unless it's C99 or later.
60544
60545 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
60546
60547         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
60548         Don't close an fd more than once. Identical atimes indicate
60549         success, not failure.
60550
60551 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
60552
60553         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
60554
60555 2006-11-23  Jim Meyering  <jim@meyering.net>
60556
60557         * build-aux/announce-gen: New file.  From coreutils.
60558
60559 2006-11-22  Jim Meyering  <jim@meyering.net>
60560
60561         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
60562         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
60563         (fts_read): Use a temporary to narrow the overused st_size member
60564         before using it in a switch statement.  Reported by Matthew Woehlke.
60565
60566         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
60567         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
60568
60569 2006-11-20  Bruno Haible  <bruno@clisp.org>
60570
60571         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
60572         changequote instead of pairs of brackets.
60573         Reported by Andreas Schwab <schwab@suse.de>.
60574
60575 2006-11-21  Jim Meyering  <jim@meyering.net>
60576
60577         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
60578         so as to remain compatible with older compilers.
60579         Patch from Michael Deutschmann.
60580
60581 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
60582
60583         * MODULES.html.sh (File system functions): Add openat.
60584
60585         * lib/openat.h (rpl_fstatat): New macro, if
60586         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
60587         (fstatat): Define to rpl_fstatat under the same conditions,
60588         unless COMPILING_FSTATAT.
60589         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
60590         seems to have the bug.
60591         * lib/fstatat.c: New file.
60592         * modules/openat (Files): Add it.
60593
60594 2006-11-20  Bruno Haible  <bruno@clisp.org>
60595
60596         * Makefile: New file.
60597
60598 2006-11-20  Jim Meyering  <jim@meyering.net>
60599
60600         The beginnings of syntax-related checks for gnulib.
60601         * lib/Makefile: New file.
60602         * lib/t-idcache: New script.  Ensure that the two halves of
60603         idcache.c stay in sync.
60604
60605         * lib/idcache.c: Adjust comments in user- and group- portions to
60606         be more accurate, and to be consistent with one another.
60607
60608 2006-11-20  Jim Meyering  <jim@meyering.net>
60609
60610         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
60611         continue using the flexible array member (thus, this module performs
60612         half as many malloc calls), with the addition that...
60613         (getgroup, getuser): Consistently record a non-match via an empty
60614         "name" string, and map an empty string match to a NULL return value.
60615         * modules/idcache (Depends-on): Re-add flexmember.
60616
60617         * lib/idcache.c (getuser): Remove all uses of the register keyword.
60618         (getuidbyname, getgroup, getgidbyname): Likewise.
60619
60620         Use cleaner syntax: NULL rather than 0.
60621         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
60622
60623 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
60624
60625         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
60626         It mishandled the case where the group was missing.
60627         Problem reported by Greg Schafer.
60628         * modules/idcache: Likewise.
60629
60630 2006-11-18  Jim Meyering  <jim@meyering.net>
60631
60632         * check-module (%exempt_header): Add exception for some
60633         conditionally-included headers.
60634
60635         * modules/i-ring (Depends-on): Add verify.
60636         (License): Change to LGPL.
60637
60638 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
60639
60640         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
60641         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
60642         and inttostr.h.  Use snprintf rather than uinttostr, so that
60643         LGPLed code doesn't depend on GPLed.
60644
60645 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
60646
60647         * modules/inline (License): Change from GPL to LGPL.
60648
60649 2006-11-17  Jim Meyering  <jim@meyering.net>
60650
60651         * modules/d-type (License): Switch to LGPL.
60652
60653 2006-11-15  Bruno Haible  <bruno@clisp.org>
60654
60655         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
60656
60657 2006-11-15  Eric Blake  <ebb9@byu.net>
60658
60659         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
60660         the module dependency.
60661
60662 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
60663             Bruno Haible  <bruno@clisp.org>
60664
60665         * gnulib-tool (func_create_testdir): Add license consistency check.
60666
60667 2006-11-15  Eric Blake  <ebb9@byu.net>
60668
60669         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
60670         random "(cached)" in configure output.
60671
60672 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60673
60674         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
60675         test for conforming inttypes.h is both announced and cached.
60676
60677         * MODULES.html.sh (seen_modules, seen_files): New variables.
60678         (func_module): Rewrite to use a few less gnulib-tool and sed
60679         invocations.  Avoid a couple of quadratic algorithms for ...
60680         (missed_modules, missed_files): ... these, with ...
60681         (func_append, func_tmpdir): ... these new functions, from
60682         gnulib-tool.  Analogously, install traps for cleanup.
60683
60684         * tests/test-gc.c (main): Remove unused variables.
60685         * tests/test-read-file.c: Include stdlib.h, for 'free'.
60686
60687 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
60688
60689         * modules/inttostr (License): Change to LGPL.
60690
60691 2006-11-14  Eric Blake  <ebb9@byu.net>
60692
60693         * modules/tempname (License): Change to LGPL.
60694
60695 2006-11-14  Eric Blake  <ebb9@byu.net>
60696
60697         * doc/functions.texi (Function Portability): *printf functions on
60698         Cygwin now understand all POSIX size specifiers.
60699
60700 2006-11-14  Bruno Haible  <bruno@clisp.org>
60701
60702         * modules/c-ctype (License): Change to LGPL.
60703
60704 2006-11-12  Bruno Haible  <bruno@clisp.org>
60705
60706         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
60707         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
60708         for GNOME libraries, for which the include files are installed in
60709         subdirectories of $prefix/include.
60710
60711 2006-11-12  Bruno Haible  <bruno@clisp.org>
60712
60713         * m4/lib-link.m4: Require at least autoconf-2.54.
60714         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
60715         name to underscores for the --with option.
60716
60717 2006-11-13  Bruno Haible  <bruno@clisp.org>
60718
60719         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
60720         the tests directory.
60721         Reported by Ralf Wildenhues.
60722
60723 2006-11-13  Bruno Haible  <bruno@clisp.org>
60724
60725         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
60726         (func_emit_initmacro_end): Undo the override here.
60727         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
60728         Works around the famous automake error in coreutils.
60729
60730 2006-11-13  Eric Blake  <ebb9@byu.net>
60731
60732         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
60733         element, not its node.
60734
60735 2006-11-12  Bruno Haible  <bruno@clisp.org>
60736
60737         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
60738         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
60739
60740 2006-11-12  Bruno Haible  <bruno@clisp.org>
60741
60742         * gnulib-tool: New option --local-symlink.
60743         (func_usage): Document it.
60744         (lsymbolic): New variable.
60745         (func_import, func_create_testdir): If --symlink was not specified,
60746         test whether --local-symlink was specified and the file comes from
60747         the local_gnulib_dir.
60748
60749 2006-11-12  Bruno Haible  <bruno@clisp.org>
60750
60751         * gnulib-tool (func_ln): New function.
60752         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
60753
60754 2006-11-12  Bruno Haible  <bruno@clisp.org>
60755
60756         Finish support for source files in subdirectories.
60757         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
60758         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
60759         AUTOMAKE_OPTIONS.
60760         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
60761
60762 2006-11-12  Bruno Haible  <bruno@clisp.org>
60763
60764         * gnulib-tool (func_get_automake_snippet): Synthesize also an
60765         EXTRA_lib_SOURCES augmentation.
60766         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
60767
60768 2006-11-12  Jim Meyering  <jim@meyering.net>
60769
60770         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
60771         file descriptors.  This also averts a failure on systems with
60772         native openat support when a traversed directory lacks "x" access.
60773         * lib/fts_.h: Include "i-ring.h"
60774         (struct FTS) [fts_fd_ring]: New member.
60775         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
60776         (FCHDIR): Add parentheses.
60777         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
60778         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
60779         When descending, rather than simply closing the previous
60780         fts_cwd_fd value, push that file descriptor onto the ring.
60781         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
60782         (fts_open): Initialize the new fd_ring member.
60783         (fts_close): Clear the ring.
60784         (fts_safe_changedir): When possible, use our new fd_ring to skip
60785         the diropen and fstat and dev/ino comparison that would normally
60786         accompany a virtual `chdir ("..")'.
60787
60788         * modules/fts (Depends-on): Add i-ring.
60789         * modules/i-ring: New module.
60790         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
60791         * m4/i-ring.m4: New file.
60792
60793 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60794
60795         * gnulib-tool (func_create_testdir): Fix replacement of
60796         `build-aux' in configure.ac.  Run autotools in gltests
60797         subdirectory.
60798         (func_create_testdir, func_create_megatestdir, test): There is
60799         no need for '--force' in most autotool invocations in a new
60800         tree.  Actually fail the whole test if any of the tools, or the
60801         configure or make stages fail.
60802
60803         Sync from Automake.
60804         * build-aux/gnupload: Revert last change.  Add pointer to upload
60805         instructions of the GNU Maintenance Instructions.
60806         Suggestion by Karl Berry.
60807
60808 2006-11-10  Jim Meyering  <jim@meyering.net>
60809
60810         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
60811
60812 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
60813
60814         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
60815         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
60816         (bind_textdomain_codeset) [! ENABLE_NLS]:
60817         Evaluate all the arguments.  That way, callers get compatible behavior
60818         if the arguments have side effects.  Also, it avoids some GCC
60819         diagnostics in some cases; Joel E. Denny reported problems when Bison
60820         was configured with --enable-gcc-warnigs.
60821
60822 2006-11-10  Jim Meyering  <jim@meyering.net>
60823
60824         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
60825         relevant options in CFLAGS (like -O, -fno-inline) are taken into
60826         account.
60827
60828 2006-11-10  Jim Meyering  <jim@meyering.net>
60829
60830         * modules/inline: New file/module.
60831         * modules/xalloc (Files): Remove m4/inline.m4.
60832         (Depends-on): Add inline, instead.
60833         * modules/oset: Likewise.
60834         * modules/list: Likewise.
60835
60836 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
60837
60838         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
60839         Problem reported by Matthew Woehlke.
60840
60841 2006-11-09  Bruno Haible  <bruno@clisp.org>
60842
60843         * lib/tempname.c (gen_tempname): Remove variant that invokes
60844         __gen_tempname.
60845         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
60846         __gen_tempname.
60847
60848 2006-11-08  Bruno Haible  <bruno@clisp.org>
60849
60850         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
60851         to 'yes' instead of 'cross-compiling'.
60852
60853 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
60854
60855         * lib/quotearg.h (quotearg_free): New decl.
60856         * lib/quotearg.c (quotearg_free): New function.
60857         (slot0, nslots, slotvec0, slotvec):
60858         Now file-scope so that quotearg_free can get at them.
60859
60860 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60861
60862         Sync from Automake.
60863         * build-aux/gnupload: Add missing 'gnu' to example URL.
60864         Report by Karl Berry.
60865
60866 2006-11-08  Bruno Haible  <bruno@clisp.org>
60867
60868         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
60869         Suggested by Paul Eggert.
60870
60871 2006-11-08  Jim Meyering  <jim@meyering.net>
60872
60873         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
60874         It's already included if !_LIBC.
60875         (fts_safe_changedir): Add a comment.
60876
60877 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
60878
60879         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
60880         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
60881         Matthew Woehlke.
60882
60883         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
60884         definitions up, to avoid colliding with change below.
60885         (static_inline) [HAVE_INLINE]: New macro.
60886         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
60887         Provide extern decls when !HAVE_INLINE.  Do not define unless
60888         static_inline is defined, either by us or by xmalloc.c.  Use
60889         static_inline rather than static inline.
60890         (XCALLOC): Optimize sizeof(T) = 1 case.
60891         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
60892
60893 2006-11-07  Bruno Haible  <bruno@clisp.org>
60894
60895         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
60896         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
60897         AC_C_INLINE.
60898         * modules/xalloc (Files): Add m4/inline.m4.
60899
60900 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60901
60902         * README: Fix typo.
60903         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
60904         (Miscellanous Notes): ...from this.
60905
60906 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
60907
60908         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
60909         Mention that offsetof should be used instead of sizeof.
60910         From Bruno Haible.
60911
60912 2006-11-07  Bruno Haible  <bruno@clisp.org>
60913
60914         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
60915
60916 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
60917
60918         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
60919         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
60920         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
60921         (gl_tree_add_before, gl_tree_add_after):
60922         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
60923         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
60924         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
60925         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
60926         (gl_linked_add_after, gl_linked_add_at): Likewise.
60927         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
60928         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
60929         (gl_tree_add_before, gl_tree_add_after): Likewise.
60930         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
60931         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
60932         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
60933
60934 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60935
60936         * lib/gl_oset.h: Use C comment style, not C++ comment style.
60937
60938 2006-11-06  Bruno Haible  <bruno@clisp.org>
60939
60940         * m4/inline.m4: New file.
60941         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
60942         * modules/list (Files): Add m4/inline.m4.
60943         * modules/oset (Files): Likewise.
60944
60945 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
60946
60947         * lib/idcache.c: Include <stddef.h>, for offsetof.
60948         (struct userid.name): Change from char * to a flexible array member.
60949         All uses changed.
60950         * modules/idcache (Depends-on): Add flexmember.
60951
60952         * MODULES.html.sh (Core language properties): New module flexmember.
60953         * modules/flexmember, m4/flexmember.m4: New files.
60954
60955         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
60956         inline functions that are identical with the old xnmalloc_inline,
60957         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
60958         that we can avoid some unnecessary integer multiplications and
60959         divisions in the common case where the element size is known at
60960         compile time.
60961         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
60962         needed.
60963         (xnboundedmalloc): Remove.
60964         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
60965         arguments, for consistency with rest of this header.
60966         (xcharalloc): Rewrite using XNMALLOC.
60967         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
60968         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
60969         versions have been moved to lib/xalloc.h and renamed to be the
60970         non-*_inline versions.
60971         (xmalloc, xrealloc): Implement without reference to the xnmalloc
60972         and xnrealloc functions, since those functions are now inline and
60973         now call us.
60974         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
60975         renaming described above.
60976         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
60977         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
60978         captures the dependency in AC_C_INLINE.
60979
60980         New module canonicalize-lgpl, proposed by Charles Wilson in
60981         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
60982         with a few small changes afterwards.
60983         * MODULES.html.sh (File system functions): New module
60984         canonicalize-lgpl.
60985         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
60986         and canonicalize_file_name.
60987         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
60988         * modules/canonicalize-lgpl: New files.
60989
60990 2006-11-05  Bruno Haible  <bruno@clisp.org>
60991
60992         * gnulib-tool (func_import, func_create_testdir): Create directories
60993         also for files in subdirectories of lib/.
60994
60995 2006-11-05  Bruno Haible  <bruno@clisp.org>
60996
60997         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
60998         ANSI C compliant.
60999
61000 2006-11-03  Bruno Haible  <bruno@clisp.org>
61001
61002         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
61003         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
61004         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
61005         (xnboundedmalloc): New inline function.
61006         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
61007         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
61008         xmalloc.
61009         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
61010         xmalloc.
61011         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
61012         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
61013         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
61014         xmalloc.
61015         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
61016         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
61017         xmalloc.
61018         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
61019         gl_tree_add_after): Use XMALLOC instead of xmalloc.
61020         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
61021         xmalloc.
61022         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
61023         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
61024         gl_tree_add_after): Use XMALLOC instead of xmalloc.
61025         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
61026         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
61027         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
61028         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
61029
61030 2006-11-03  Bruno Haible  <bruno@clisp.org>
61031
61032         * lib/c-ctype.h [C++]: Define functions without name mangling.
61033         * lib/fwriteerror.h [C++]: Likewise.
61034         * lib/gcd.h [C++]: Likewise.
61035         * lib/linebreak.h [C++]: Likewise.
61036
61037 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
61038
61039         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
61040         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
61041         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
61042         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
61043         Check for functions and headers just once.
61044         Check for declaration of canonicalize_file_name.
61045         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
61046
61047 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
61048
61049         * gnulib-tool (func_import): Fix typo in actioncmd.
61050
61051 2006-11-02  Bruno Haible  <bruno@clisp.org>
61052
61053         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
61054         newline sequence in the Makefile.am snippet as a space, like "make"
61055         does.
61056         Reported by Roger Persson <perrog@gmail.com>.
61057
61058 2006-11-01  Bruno Haible  <bruno@clisp.org>
61059
61060         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
61061         already declared in <string.h>.
61062         * lib/strcase.h (strncasecmp): Don't declare it if yes.
61063
61064 2006-11-01  Bruno Haible  <bruno@clisp.org>
61065
61066         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
61067         * lib/strcase.h: Include <string.h>.
61068         (strcasecmp): Define to rpl_strcasecmp here.
61069
61070 2006-11-01  Bruno Haible  <bruno@clisp.org>
61071
61072         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
61073
61074 2006-11-01  Eric Blake  <ebb9@byu.net>
61075
61076         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
61077
61078         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
61079
61080 2006-10-29  Bruno Haible  <bruno@clisp.org>
61081
61082         Make it compile in C++ mode.
61083         * lib/full-write.c (full_rw): Add a cast.
61084
61085 2006-11-01  Bruno Haible  <bruno@clisp.org>
61086
61087         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
61088         be POSIX compliant.
61089         Reported by Roger Persson <perrog@gmail.com>.
61090
61091 2006-11-01  Eric Blake  <ebb9@byu.net>
61092
61093         * lib/getopt_.h: Fix comments.
61094
61095 2006-10-31  Eric Blake  <ebb9@byu.net>
61096
61097         * modules/tmpdir (Depends-on): Add sys_stat.
61098         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
61099         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
61100         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
61101         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
61102         tempname.
61103
61104 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
61105
61106         Avoid some C++ diagnostics reported by Bruno Haible.
61107         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
61108         xmalloc.
61109         (quotearg_alloc): Use xcharalloc rather than xmalloc.
61110         (struct slotvec): Move to top level.
61111         (quotearg_n_options): Rewrite to avoid xmalloc.
61112         * lib/xalloc.h (xcharalloc): New function.
61113         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
61114         [defined __cplusplus]: Add function template that provides result
61115         type propagation.  This part of the change is from Bruno Haible.
61116
61117 2006-10-29  Bruno Haible  <bruno@clisp.org>
61118
61119         Make it compile in C++ mode.
61120         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
61121         * lib/strnlen1.c (strnlen1): Cast memchr result.
61122         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
61123         * lib/clean-temp.c (string_equals, string_hash): Add casts.
61124         (create_temp_dir): Rename local variable 'template'.
61125         (compile_csharp_using_sscli): Add cast.
61126         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
61127         * lib/findprog.c (find_in_path): Likewise.
61128         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
61129         * lib/wait-process.c (register_slave_subprocess): Likewise.
61130
61131 2006-10-22  Bruno Haible  <bruno@clisp.org>
61132
61133         * modules/tsearch: New file.
61134         * lib/tsearch.h: New file.
61135         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
61136         * m4/tsearch.m4: New file.
61137         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
61138
61139 2006-10-29  Eric Blake  <ebb9@byu.net>
61140
61141         * lib/arcfour.c: Assume config.h.
61142         * lib/arctwo.c: Likewise.
61143         * lib/base64.c: Likewise.
61144         * lib/check-version.c: Likewise.
61145         * lib/crc.c: Likewise.
61146         * lib/des.c: Likewise.
61147         * lib/gc-gnulib.c: Likewise.
61148         * lib/gc-libgcrypt.c: Likewise.
61149         * lib/gc-pbkdf2-sha1.c: Likewise.
61150         * lib/getaddrinfo.c: Likewise.
61151         * lib/getdelim.c: Likewise.
61152         * lib/getline.c: Likewise.
61153         * lib/hmac-md5.c: Likewise.
61154         * lib/hmac-sha1.c: Likewise.
61155         * lib/iconvme.c: Likewise.
61156         * lib/md2.c: Likewise.
61157         * lib/md4.c: Likewise.
61158         * lib/memxor.c: Likewise.
61159         * lib/read-file.c: Likewise.
61160         * lib/readline.c: Likewise.
61161         * lib/rijndael-alg-fst.c: Likewise.
61162         * lib/rijndael-api-fst.c: Likewise.
61163         * lib/xgetdomainname.c: Likewise.
61164
61165 2006-10-28  Eric Blake  <ebb9@byu.net>
61166
61167         * lib/xstrndup.c: Assume config.h.
61168
61169 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
61170
61171         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
61172         stat-macros.h is now for our own macros, whereas stat_h is for
61173         macros in the <sys/stat.h> name space.
61174         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
61175         (STAT_MACROS_H): Remove.
61176         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
61177         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
61178         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
61179         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
61180         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
61181         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
61182         Move these macros to ...
61183         * lib/stat_.h: here.  Don't include stat-macros.h.
61184         * lib/canonicalize.c: Don't include stat-macros.h.
61185         * lib/chown.c: Likewise.
61186         * lib/euidaccess.c: Likewise.
61187         * lib/file-type.c: Likewise.
61188         * lib/filemode.c: Likewise.
61189         * lib/glob.c: Likewise.
61190         * lib/isapipe.c: Likewise.
61191         * lib/lchown.c: Likewise.
61192         * lib/lstat.c: Likewise.
61193         * lib/mkdir-p.c: Likewise.
61194         * lib/rmdir.c: Likewise.
61195         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
61196         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
61197         unless mkdir isn't declared, to speed up 'configure'.
61198         Always create sys/stat.h, since it's unlikely any real sys/stat.h
61199         would define all the S_* symbols.
61200         * modules/canonicalize (Depends-on):
61201         Depend on sys_stat, not stat-macros.
61202         * modules/chown: Likewise.
61203         * modules/euidaccess: Likewise.
61204         * modules/filemode: Likewise.
61205         * modules/file-type: Likewise.
61206         * modules/glob: Likewise.
61207         * modules/isapipe: Likewise.
61208         * modules/lchown: Likewise.
61209         * modules/lstat: Likewise.
61210         * modules/mkancesdirs: Likewise.
61211         * modules/rmdir: Likewise.
61212         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
61213         * modules/modechange: Likewise.
61214         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
61215         (configure.ac): Remove gl_STAT_MACROS.
61216         * modules/sys_stat (Depends-on): Remove stat-macros.
61217
61218 2006-10-27  Bruno Haible  <bruno@clisp.org>
61219
61220         * m4/signed.m4: Remove file.
61221         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
61222         invocation.
61223         * modules/vasnprintf (Files): Remove m4/signed.m4.
61224
61225 2006-10-27  Bruno Haible  <bruno@clisp.org>
61226
61227         Update to GNU gettext 0.16.
61228         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
61229         m4/inttypes-h.m4, m4/signed.m4.
61230         * m4/gettext.m4: Update to GNU gettext 0.16.
61231         * m4/intl.m4: New file, from GNU gettext.
61232         * m4/intldir.m4: New file, from GNU gettext.
61233         * config/srclist.txt: Update
61234
61235 2006-10-27  Eric Blake  <ebb9@byu.net>
61236
61237         * MODULES.html.sh: Document tempname.
61238         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
61239         dependencies.
61240         (Files): Move lib/tempname.c...
61241         * modules/tempname: ...to this new module.
61242         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
61243         (gl_PREREQ_TEMPNAME): Move...
61244         * m4/tempname.m4: ...to this new file.
61245         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
61246         * modules/sys_stat (Depends-on): Add stat-macros.
61247         * lib/stat_.h (includes): Pick up stat macros.
61248         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
61249         if stat macros are broken.
61250         * lib/tempname.c (includes): No need to include "stat-macros.h".
61251         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
61252         (direxists, __path_search) [!_LIBC]: Don't compile these in
61253         gnulib; the tmpdir module covers that.
61254         * lib/tempname.h: New file.
61255
61256 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
61257
61258         * COPYING: Explain how gnulib-tool converts licence headers.
61259         Almost all wording by Eric Blake.
61260
61261 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
61262
61263         * lib/mbchar.h (is_basic_table): Make read-only.
61264         * lib/mbchar.c (is_basic_table): Likewise.
61265         Reported by John Darrington.
61266
61267 2006-10-25  Bruno Haible  <bruno@clisp.org>
61268
61269         * lib/progname.h (set_program_name): Undefine before defining.
61270
61271 2006-10-25  Bruno Haible  <bruno@clisp.org>
61272
61273         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
61274         false for non-gcc C++ compilers.
61275         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
61276
61277 2006-10-24  Bruno Haible  <bruno@clisp.org>
61278
61279         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
61280         iconv implementations like Irix iconv.
61281
61282 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
61283
61284         * modules/vararrays: New file.
61285         * m4/vararrays.m4: New file, taken from diffutils.
61286         * MODULES.html.sh: New module vararrays.
61287
61288 2006-10-24  Karl Berry  <karl@gnu.org>
61289
61290         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
61291         Don't call GNU Unix.
61292
61293 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61294
61295         * users.txt: Add Libtool.
61296
61297         Sync from Libtool:
61298
61299         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
61300
61301         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
61302         to gnulib's policy of including config.h unconditionally.
61303
61304 2006-10-24  Bruno Haible  <bruno@clisp.org>
61305
61306         * modules/wcwidth (Files): Add m4/wint_t.m4.
61307         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
61308         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
61309
61310 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
61311
61312         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
61313         to pacify GCC with some -W flags enabled.  Problem reported by
61314         Bruno Haible.
61315
61316 2006-10-24  Jim Meyering  <jim@meyering.net>
61317
61318         * MODULES.html.sh: Remove uinttostr.  It's not a module.
61319         Reported by Karl Berry.
61320
61321 2006-10-23  Bruno Haible  <bruno@clisp.org>
61322
61323         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
61324
61325 2006-10-24  Bruno Haible  <bruno@clisp.org>
61326
61327         * lib/gl_list.h: Use C comment style, not C++ comment style.
61328
61329 2006-10-23  Eric Blake  <ebb9@byu.net>
61330
61331         * lib/getaddrinfo.c (includes): Add missing include.
61332
61333 2006-10-23  Bruno Haible  <bruno@clisp.org>
61334             Paul Eggert  <eggert@cs.ucla.edu>
61335
61336         Ability to rename obstack_free.
61337         * lib/obstack.h (__obstack_free): New macro. Declare instead of
61338         obstack_free.
61339         (obstack_free): Invoke the __obstack_free macro.
61340         * lib/obstack.c (obstack_free): Use __obstack_free macro.
61341
61342 2006-10-23  Bruno Haible  <bruno@clisp.org>
61343             Paul Eggert  <eggert@cs.ucla.edu>
61344
61345         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
61346         __argc, __argv from the declaration. (They are defined as macros on
61347         mingw.)
61348
61349 2006-10-22  Bruno Haible  <bruno@clisp.org>
61350
61351         * doc/gnulib-intro.texi: New file.
61352         * doc/gnulib.texi: Include it.
61353
61354 2006-10-21  Bruno Haible  <bruno@clisp.org>
61355
61356         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
61357         "Introduction", "Miscellanous Notes", "Particular Modules".
61358
61359 2006-10-21  Bruno Haible  <bruno@clisp.org>
61360
61361         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
61362         Change mostlyclean-local rule to avoid sh syntax error from bash
61363         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
61364
61365 2006-10-23  Jim Meyering  <jim@meyering.net>
61366
61367         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
61368         in place of snprintf.
61369
61370         * modules/inttostr (Files): Add lib/uinttostr.c.
61371         * lib/uinttostr.c (inttostr): New file/function.
61372         * lib/inttostr.h (uinttostr): Declare.
61373         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
61374         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
61375         Add uinttostr.
61376         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
61377
61378 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
61379
61380         * lib/canonicalize.c (ELOOP): Define if not already defined.
61381         Problem reported by Bruno Haible in
61382         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
61383
61384 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
61385
61386         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
61387         Problem reported by Perry Smith and Ville Laurikari.
61388
61389         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
61390         uses.
61391
61392 2006-10-19  Bruno Haible  <bruno@clisp.org>
61393
61394         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
61395         for mingw.
61396
61397 2006-10-19  Bruno Haible  <bruno@clisp.org>
61398
61399         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
61400         Needed for mingw.
61401
61402 2006-10-19  Bruno Haible  <bruno@clisp.org>
61403
61404         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
61405
61406 2006-10-19  Bruno Haible  <bruno@clisp.org>
61407
61408         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
61409         it.
61410
61411 2006-10-19  Bruno Haible  <bruno@clisp.org>
61412
61413         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
61414         invocation.
61415
61416 2006-10-19  Bruno Haible  <bruno@clisp.org>
61417
61418         * gnulib-tool (func_create_testdir): Don't include ftruncate and
61419         mountlist by default.
61420
61421 2006-10-16  Bruno Haible  <bruno@clisp.org>
61422
61423         * lib/c-strstr.c: Include c-strstr.h.
61424
61425 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
61426
61427         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
61428         in a slash.
61429
61430 2006-10-18  Bruno Haible  <bruno@clisp.org>
61431
61432         * lib/lock.h [C++]: Wrap definitions in extern "C".
61433
61434 2006-10-18  Bruno Haible  <bruno@clisp.org>
61435
61436         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
61437         gl_LIBOBJS list.
61438
61439 2006-10-18  Bruno Haible  <bruno@clisp.org>
61440
61441         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
61442
61443 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
61444
61445         * lib/xstrtol.h: Include gettext.h.
61446         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
61447         Problem reported by Eric Blake.
61448         * modules/xstrtol (Depends-on): Add gettext-h.
61449
61450 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
61451
61452         * lib/strftime.c (advance): New macro.
61453         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
61454         incomplete type, so you can't add 0 to it.  Problem and patch
61455         reported by Eelco Dolstra for dietlibc.
61456
61457 2006-10-18  Jim Meyering  <jim@meyering.net>
61458
61459         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
61460         type for a local, and rename it: s/up/user_proc/.
61461
61462 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
61463
61464         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
61465         READ_UTMP_USER_PROCESS.
61466         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
61467
61468 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
61469
61470         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
61471         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
61472
61473 2006-10-17  Eric Blake  <ebb9@byu.net>
61474
61475         * lib/sigprocmask.c (sigprocmask): Fix typo.
61476
61477         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
61478
61479         * modules/clean-temp (Makefile.am): Don't add to make output...
61480         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
61481         config.h.
61482
61483 2006-10-17  Bruno Haible  <bruno@clisp.org>
61484
61485         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
61486         differently if DEFAULT_TEXT_DOMAIN is set.
61487
61488 2006-10-16  Bruno Haible  <bruno@clisp.org>
61489
61490         * lib/clean-temp.c: Include fwriteerror.h.
61491
61492 2006-10-16  Bruno Haible  <bruno@clisp.org>
61493
61494         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
61495
61496 2006-10-16  Bruno Haible  <bruno@clisp.org>
61497
61498         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
61499         * lib/sigprocmask.h: Include <sys/types.h>.
61500         (sigset_t): Use the system's definition if present.
61501
61502 2006-10-17  Eric Blake  <ebb9@byu.net>
61503
61504         * lib/xvasprintf.c (includes): Assume config.h.
61505         * lib/xasprintf.c (includes): Likewise.
61506
61507 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
61508
61509         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
61510         at least as wide as intmax_t.
61511
61512 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
61513
61514         (Imported from Automake.)
61515         * build-aux/gnupload: Update to version 1.1 of directive file.
61516
61517 2006-10-16  Eric Blake  <ebb9@byu.net>
61518
61519         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
61520         match Automake 1.10a.
61521
61522 2006-10-14  Bruno Haible  <bruno@clisp.org>
61523
61524         * modules/sigprocmask: New file.
61525         * lib/sigprocmask.h: New file.
61526         * lib/sigprocmask.c: New file.
61527         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
61528         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
61529         request sigprocmask.o.
61530         (gl_PREREQ_SIGPROCMASK): New macro.
61531         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
61532         (Depends-on): Add sigprocmask.
61533         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
61534         gt_SIGNALBLOCKING. Test for 'raise' only once.
61535         * lib/fatal-signal.c: Include sigprocmask.h.
61536         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
61537         unblock_fatal_signals): Define always.
61538         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
61539         sigprocmask.
61540
61541 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
61542
61543         Sync from Automake.
61544         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
61545         which incorrectly sets the mode of an existing destination
61546         directory.  In some cases the unpatched install-sh could do the
61547         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
61548         system.  We hope this is rare in practice, but it's clearly worth
61549         fixing.  Problem reported by Alex Unleashed in
61550         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
61551         Also, don't bother to check for -m bugs unless we're using -m;
61552         suggested by Stepan Kasal.
61553
61554 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61555
61556         Sync from Automake.
61557         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
61558         `-c' flag, so they appear at the same position as in %FASTDEP%
61559         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
61560         which ignores unknown options only after the first non-option.
61561         Bug report against M4 by Nelson H. F. Beebe.
61562
61563 2006-10-13  Jim Meyering  <jim@meyering.net>
61564
61565         Fix a bug in yesterday's change.
61566         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
61567         p->fts_statp->st_dev would be used uninitialized.
61568         Ensures that we always call fts_stat on the very first entry.
61569         Miklos Szeredi reported that find -xdev stopped working.
61570
61571 2006-10-12  Bruno Haible  <bruno@clisp.org>
61572
61573         * gnulib-tool (func_get_automake_snippet): Append an automatically
61574         computed EXTRA_DIST augmentation.
61575         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
61576         * modules/alloca-opt (Makefile.am): Likewise.
61577         * modules/allocsa (Makefile.am): Likewise.
61578         * modules/arcfour (Makefile.am): Likewise.
61579         * modules/arctwo (Makefile.am): Likewise.
61580         * modules/argmatch (Makefile.am): Likewise.
61581         * modules/argz (Makefile.am): Likewise.
61582         * modules/atexit (Makefile.am): Likewise.
61583         * modules/backupfile (Makefile.am): Likewise.
61584         * modules/byteswap (Makefile.am): Likewise.
61585         * modules/c-strtod (Makefile.am): Likewise.
61586         * modules/c-strtold (Makefile.am): Likewise.
61587         * modules/calloc (Makefile.am): Likewise.
61588         * modules/canon-host (Makefile.am): Likewise.
61589         * modules/canonicalize (Makefile.am): Likewise.
61590         * modules/chdir-long (Makefile.am): Likewise.
61591         * modules/chdir-safer (Makefile.am): Likewise.
61592         * modules/check-version (Makefile.am): Likewise.
61593         * modules/chown (Makefile.am): Likewise.
61594         * modules/cloexec (Makefile.am): Likewise.
61595         * modules/close-stream (Makefile.am): Likewise.
61596         * modules/closeout (Makefile.am): Likewise.
61597         * modules/crc (Makefile.am): Likewise.
61598         * modules/csharpexec (Makefile.am): Likewise.
61599         * modules/cycle-check (Makefile.am): Likewise.
61600         * modules/des (Makefile.am): Likewise.
61601         * modules/dev-ino (Makefile.am): Likewise.
61602         * modules/dirfd (Makefile.am): Likewise.
61603         * modules/dirname (Makefile.am): Likewise.
61604         * modules/dup2 (Makefile.am): Likewise.
61605         * modules/eealloc (Makefile.am): Likewise.
61606         * modules/error (Makefile.am): Likewise.
61607         * modules/euidaccess (Makefile.am): Likewise.
61608         * modules/exclude (Makefile.am): Likewise.
61609         * modules/exitfail (Makefile.am): Likewise.
61610         * modules/fcntl-safer (Makefile.am): Likewise.
61611         * modules/fcntl (Makefile.am): Likewise.
61612         * modules/file-type (Makefile.am): Likewise.
61613         * modules/fileblocks (Makefile.am): Likewise.
61614         * modules/filemode (Makefile.am): Likewise.
61615         * modules/filenamecat (Makefile.am): Likewise.
61616         * modules/fnmatch (Makefile.am): Likewise.
61617         * modules/fopen-safer (Makefile.am): Likewise.
61618         * modules/fpending (Makefile.am): Likewise.
61619         * modules/fprintftime (Makefile.am): Likewise.
61620         * modules/free (Makefile.am): Likewise.
61621         * modules/fsusage (Makefile.am): Likewise.
61622         * modules/ftruncate (Makefile.am): Likewise.
61623         * modules/fts (Makefile.am): Likewise.
61624         * modules/gc-arcfour (Makefile.am): Likewise.
61625         * modules/gc-des (Makefile.am): Likewise.
61626         * modules/gc-hmac-md5 (Makefile.am): Likewise.
61627         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
61628         * modules/gc-md4 (Makefile.am): Likewise.
61629         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
61630         * modules/gc-sha1 (Makefile.am): Likewise.
61631         * modules/gc (Makefile.am): Likewise.
61632         * modules/getaddrinfo (Makefile.am): Likewise.
61633         * modules/getcwd (Makefile.am): Likewise.
61634         * modules/getdelim (Makefile.am): Likewise.
61635         * modules/getdomainname (Makefile.am): Likewise.
61636         * modules/getgroups (Makefile.am): Likewise.
61637         * modules/gethostname (Makefile.am): Likewise.
61638         * modules/gethrxtime (Makefile.am): Likewise.
61639         * modules/getline (Makefile.am): Likewise.
61640         * modules/getloadavg (Makefile.am): Likewise.
61641         * modules/getlogin_r (Makefile.am): Likewise.
61642         * modules/getndelim2 (Makefile.am): Likewise.
61643         * modules/getopt (Makefile.am): Likewise.
61644         * modules/getpagesize (Makefile.am): Likewise.
61645         * modules/getpass-gnu (Makefile.am): Likewise.
61646         * modules/getpass (Makefile.am): Likewise.
61647         * modules/getsubopt (Makefile.am): Likewise.
61648         * modules/gettime (Makefile.am): Likewise.
61649         * modules/gettimeofday (Makefile.am): Likewise.
61650         * modules/getugroups (Makefile.am): Likewise.
61651         * modules/getusershell (Makefile.am): Likewise.
61652         * modules/glob (Makefile.am): Likewise.
61653         * modules/group-member (Makefile.am): Likewise.
61654         * modules/hard-locale (Makefile.am): Likewise.
61655         * modules/hash (Makefile.am): Likewise.
61656         * modules/hmac-md5 (Makefile.am): Likewise.
61657         * modules/hmac-sha1 (Makefile.am): Likewise.
61658         * modules/human (Makefile.am): Likewise.
61659         * modules/idcache (Makefile.am): Likewise.
61660         * modules/imaxabs (Makefile.am): Likewise.
61661         * modules/imaxdiv (Makefile.am): Likewise.
61662         * modules/inet_ntop (Makefile.am): Likewise.
61663         * modules/inet_pton (Makefile.am): Likewise.
61664         * modules/intprops (Makefile.am): Likewise.
61665         * modules/inttostr (Makefile.am): Likewise.
61666         * modules/inttypes (Makefile.am): Likewise.
61667         * modules/isapipe (Makefile.am): Likewise.
61668         * modules/javaversion (Makefile.am): Likewise.
61669         * modules/lchmod (Makefile.am): Likewise.
61670         * modules/lchown (Makefile.am): Likewise.
61671         * modules/localcharset (Makefile.am): Likewise.
61672         * modules/long-options (Makefile.am): Likewise.
61673         * modules/lstat (Makefile.am): Likewise.
61674         * modules/malloc (Makefile.am): Likewise.
61675         * modules/mathl (Makefile.am): Likewise.
61676         * modules/mbchar (Makefile.am): Likewise.
61677         * modules/md2 (Makefile.am): Likewise.
61678         * modules/md4 (Makefile.am): Likewise.
61679         * modules/md5 (Makefile.am): Likewise.
61680         * modules/memcasecmp (Makefile.am): Likewise.
61681         * modules/memchr (Makefile.am): Likewise.
61682         * modules/memcmp (Makefile.am): Likewise.
61683         * modules/memcoll (Makefile.am): Likewise.
61684         * modules/memcpy (Makefile.am): Likewise.
61685         * modules/memmem (Makefile.am): Likewise.
61686         * modules/memmove (Makefile.am): Likewise.
61687         * modules/mempcpy (Makefile.am): Likewise.
61688         * modules/memrchr (Makefile.am): Likewise.
61689         * modules/memset (Makefile.am): Likewise.
61690         * modules/memxor (Makefile.am): Likewise.
61691         * modules/mkancesdirs (Makefile.am): Likewise.
61692         * modules/mkdir-p (Makefile.am): Likewise.
61693         * modules/mkdir (Makefile.am): Likewise.
61694         * modules/mkdtemp (Makefile.am): Likewise.
61695         * modules/mkstemp (Makefile.am): Likewise.
61696         * modules/mktime (Makefile.am): Likewise.
61697         * modules/modechange (Makefile.am): Likewise.
61698         * modules/mountlist (Makefile.am): Likewise.
61699         * modules/nanosleep (Makefile.am): Likewise.
61700         * modules/obstack (Makefile.am): Likewise.
61701         * modules/openat (Makefile.am): Likewise.
61702         * modules/pagealign_alloc (Makefile.am): Likewise.
61703         * modules/pathmax (Makefile.am): Likewise.
61704         * modules/physmem (Makefile.am): Likewise.
61705         * modules/poll (Makefile.am): Likewise.
61706         * modules/posixtm (Makefile.am): Likewise.
61707         * modules/posixver (Makefile.am): Likewise.
61708         * modules/putenv (Makefile.am): Likewise.
61709         * modules/quote (Makefile.am): Likewise.
61710         * modules/quotearg (Makefile.am): Likewise.
61711         * modules/raise (Makefile.am): Likewise.
61712         * modules/read-file (Makefile.am): Likewise.
61713         * modules/readline (Makefile.am): Likewise.
61714         * modules/readlink (Makefile.am): Likewise.
61715         * modules/readtokens (Makefile.am): Likewise.
61716         * modules/readutmp (Makefile.am): Likewise.
61717         * modules/realloc (Makefile.am): Likewise.
61718         * modules/regex (Makefile.am): Likewise.
61719         * modules/rename-dest-slash (Makefile.am): Likewise.
61720         * modules/rename (Makefile.am): Likewise.
61721         * modules/rijndael (Makefile.am): Likewise.
61722         * modules/rmdir (Makefile.am): Likewise.
61723         * modules/rpmatch (Makefile.am): Likewise.
61724         * modules/safe-read (Makefile.am): Likewise.
61725         * modules/safe-write (Makefile.am): Likewise.
61726         * modules/same-inode (Makefile.am): Likewise.
61727         * modules/same (Makefile.am): Likewise.
61728         * modules/save-cwd (Makefile.am): Likewise.
61729         * modules/savedir (Makefile.am): Likewise.
61730         * modules/setenv (Makefile.am): Likewise.
61731         * modules/settime (Makefile.am): Likewise.
61732         * modules/sha1 (Makefile.am): Likewise.
61733         * modules/sig2str (Makefile.am): Likewise.
61734         * modules/snprintf (Makefile.am): Likewise.
61735         * modules/stat-macros (Makefile.am): Likewise.
61736         * modules/stat-time (Makefile.am): Likewise.
61737         * modules/stdbool (Makefile.am): Likewise.
61738         * modules/stdint (Makefile.am): Likewise.
61739         * modules/stdlib-safer (Makefile.am): Likewise.
61740         * modules/stpcpy (Makefile.am): Likewise.
61741         * modules/stpncpy (Makefile.am): Likewise.
61742         * modules/strcase (Makefile.am): Likewise.
61743         * modules/strcasestr (Makefile.am): Likewise.
61744         * modules/strchrnul (Makefile.am): Likewise.
61745         * modules/strcspn (Makefile.am): Likewise.
61746         * modules/strdup (Makefile.am): Likewise.
61747         * modules/strerror (Makefile.am): Likewise.
61748         * modules/strftime (Makefile.am): Likewise.
61749         * modules/strndup (Makefile.am): Likewise.
61750         * modules/strnlen (Makefile.am): Likewise.
61751         * modules/strpbrk (Makefile.am): Likewise.
61752         * modules/strsep (Makefile.am): Likewise.
61753         * modules/strstr (Makefile.am): Likewise.
61754         * modules/strtod (Makefile.am): Likewise.
61755         * modules/strtoimax (Makefile.am): Likewise.
61756         * modules/strtok_r (Makefile.am): Likewise.
61757         * modules/strtol (Makefile.am): Likewise.
61758         * modules/strtoll (Makefile.am): Likewise.
61759         * modules/strtoul (Makefile.am): Likewise.
61760         * modules/strtoull (Makefile.am): Likewise.
61761         * modules/strtoumax (Makefile.am): Likewise.
61762         * modules/strverscmp (Makefile.am): Likewise.
61763         * modules/sys_socket (Makefile.am): Likewise.
61764         * modules/sys_stat (Makefile.am): Likewise.
61765         * modules/sysexits (Makefile.am): Likewise.
61766         * modules/time_r (Makefile.am): Likewise.
61767         * modules/timegm (Makefile.am): Likewise.
61768         * modules/timespec (Makefile.am): Likewise.
61769         * modules/tmpfile-safer (Makefile.am): Likewise.
61770         * modules/trim (Makefile.am): Likewise.
61771         * modules/unistd-safer (Makefile.am): Likewise.
61772         * modules/unlinkdir (Makefile.am): Likewise.
61773         * modules/unlocked-io (Makefile.am): Likewise.
61774         * modules/userspec (Makefile.am): Likewise.
61775         * modules/utime (Makefile.am): Likewise.
61776         * modules/utimecmp (Makefile.am): Likewise.
61777         * modules/utimens (Makefile.am): Likewise.
61778         * modules/vasnprintf (Makefile.am): Likewise.
61779         * modules/vasprintf (Makefile.am): Likewise.
61780         * modules/vsnprintf (Makefile.am): Likewise.
61781         * modules/xalloc (Makefile.am): Likewise.
61782         * modules/xgetcwd (Makefile.am): Likewise.
61783         * modules/xnanosleep (Makefile.am): Likewise.
61784         * modules/xreadlink (Makefile.am): Likewise.
61785         * modules/xstrtod (Makefile.am): Likewise.
61786         * modules/xstrtol (Makefile.am): Likewise.
61787         * modules/xstrtold (Makefile.am): Likewise.
61788         * modules/yesno (Makefile.am): Likewise.
61789         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
61790
61791 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
61792
61793         * modules/error (Makefile.am): Distribute files through
61794         EXTRA_DIST, not lib_SOURCES.
61795
61796 2006-10-12  Eric Blake  <ebb9@byu.net>
61797
61798         * modules/error (Makefile.am): Distribute files in /lib.
61799         * modules/obstack (Makefile.am): Likewise.
61800
61801 2006-10-12  Bruno Haible  <bruno@clisp.org>
61802
61803         * modules/acl (Makefile.am): Distribute all files in lib/ through
61804         EXTRA_DIST.
61805         * modules/arcfour (Makefile.am): Likewise.
61806         * modules/arctwo (Makefile.am): Likewise.
61807         * modules/argmatch (Makefile.am): Likewise.
61808         * modules/argz (Makefile.am): Likewise.
61809         * modules/atexit (Makefile.am): Likewise.
61810         * modules/backupfile (Makefile.am): Likewise.
61811         * modules/c-strtod (Makefile.am): Likewise.
61812         * modules/c-strtold (Makefile.am): Likewise.
61813         * modules/calloc (Makefile.am): Likewise.
61814         * modules/canon-host (Makefile.am): Likewise.
61815         * modules/canonicalize (Makefile.am): Likewise.
61816         * modules/chdir-long (Makefile.am): Likewise.
61817         * modules/chdir-safer (Makefile.am): Likewise.
61818         * modules/check-version (Makefile.am): Likewise.
61819         * modules/chown (Makefile.am): Likewise.
61820         * modules/cloexec (Makefile.am): Likewise.
61821         * modules/close-stream (Makefile.am): Likewise.
61822         * modules/closeout (Makefile.am): Likewise.
61823         * modules/crc (Makefile.am): Likewise.
61824         * modules/cycle-check (Makefile.am): Likewise.
61825         * modules/des (Makefile.am): Likewise.
61826         * modules/dirfd (Makefile.am): Likewise.
61827         * modules/dirname (Makefile.am): Likewise.
61828         * modules/dup2 (Makefile.am): Likewise.
61829         * modules/euidaccess (Makefile.am): Likewise.
61830         * modules/exclude (Makefile.am): Likewise.
61831         * modules/exitfail (Makefile.am): Likewise.
61832         * modules/fcntl-safer (Makefile.am): Likewise.
61833         * modules/file-type (Makefile.am): Likewise.
61834         * modules/fileblocks (Makefile.am): Likewise.
61835         * modules/filemode (Makefile.am): Likewise.
61836         * modules/filenamecat (Makefile.am): Likewise.
61837         * modules/fnmatch (Makefile.am): Likewise.
61838         * modules/fopen-safer (Makefile.am): Likewise.
61839         * modules/fpending (Makefile.am): Likewise.
61840         * modules/fprintftime (Makefile.am): Likewise.
61841         * modules/free (Makefile.am): Likewise.
61842         * modules/fsusage (Makefile.am): Likewise.
61843         * modules/ftruncate (Makefile.am): Likewise.
61844         * modules/fts (Makefile.am): Likewise.
61845         * modules/gc (Makefile.am): Likewise.
61846         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
61847         * modules/getaddrinfo (Makefile.am): Likewise.
61848         * modules/getcwd (Makefile.am): Likewise.
61849         * modules/getdelim (Makefile.am): Likewise.
61850         * modules/getdomainname (Makefile.am): Likewise.
61851         * modules/getgroups (Makefile.am): Likewise.
61852         * modules/gethostname (Makefile.am): Likewise.
61853         * modules/gethrxtime (Makefile.am): Likewise.
61854         * modules/getline (Makefile.am): Likewise.
61855         * modules/getloadavg (Makefile.am): Likewise.
61856         * modules/getlogin_r (Makefile.am): Likewise.
61857         * modules/getopt (Makefile.am): Likewise.
61858         * modules/getpass (Makefile.am): Likewise.
61859         * modules/getpass-gnu (Makefile.am): Likewise.
61860         * modules/getsubopt (Makefile.am): Likewise.
61861         * modules/gettime (Makefile.am): Likewise.
61862         * modules/gettimeofday (Makefile.am): Likewise.
61863         * modules/getugroups (Makefile.am): Likewise.
61864         * modules/getusershell (Makefile.am): Likewise.
61865         * modules/glob (Makefile.am): Likewise.
61866         * modules/group-member (Makefile.am): Likewise.
61867         * modules/hard-locale (Makefile.am): Likewise.
61868         * modules/hash (Makefile.am): Likewise.
61869         * modules/hmac-md5 (Makefile.am): Likewise.
61870         * modules/hmac-sha1 (Makefile.am): Likewise.
61871         * modules/human (Makefile.am): Likewise.
61872         * modules/idcache (Makefile.am): Likewise.
61873         * modules/imaxabs (Makefile.am): Likewise.
61874         * modules/imaxdiv (Makefile.am): Likewise.
61875         * modules/inet_ntop (Makefile.am): Likewise.
61876         * modules/inet_pton (Makefile.am): Likewise.
61877         * modules/inttostr (Makefile.am): Likewise.
61878         * modules/isapipe (Makefile.am): Likewise.
61879         * modules/lchown (Makefile.am): Likewise.
61880         * modules/long-options (Makefile.am): Likewise.
61881         * modules/lstat (Makefile.am): Likewise.
61882         * modules/malloc (Makefile.am): Likewise.
61883         * modules/mathl (Makefile.am): Likewise.
61884         * modules/mbchar (Makefile.am): Likewise.
61885         * modules/md2 (Makefile.am): Likewise.
61886         * modules/md4 (Makefile.am): Likewise.
61887         * modules/md5 (Makefile.am): Likewise.
61888         * modules/memcasecmp (Makefile.am): Likewise.
61889         * modules/memchr (Makefile.am): Likewise.
61890         * modules/memcmp (Makefile.am): Likewise.
61891         * modules/memcoll (Makefile.am): Likewise.
61892         * modules/memcpy (Makefile.am): Likewise.
61893         * modules/memmem (Makefile.am): Likewise.
61894         * modules/memmove (Makefile.am): Likewise.
61895         * modules/mempcpy (Makefile.am): Likewise.
61896         * modules/memrchr (Makefile.am): Likewise.
61897         * modules/memset (Makefile.am): Likewise.
61898         * modules/memxor (Makefile.am): Likewise.
61899         * modules/mkancesdirs (Makefile.am): Likewise.
61900         * modules/mkdir (Makefile.am): Likewise.
61901         * modules/mkdir-p (Makefile.am): Likewise.
61902         * modules/mkdtemp (Makefile.am): Likewise.
61903         * modules/mkstemp (Makefile.am): Likewise.
61904         * modules/mktime (Makefile.am): Likewise.
61905         * modules/modechange (Makefile.am): Likewise.
61906         * modules/mountlist (Makefile.am): Likewise.
61907         * modules/nanosleep (Makefile.am): Likewise.
61908         * modules/openat (Makefile.am): Likewise.
61909         * modules/pagealign_alloc (Makefile.am): Likewise.
61910         * modules/physmem (Makefile.am): Likewise.
61911         * modules/poll (Makefile.am): Likewise.
61912         * modules/posixtm (Makefile.am): Likewise.
61913         * modules/posixver (Makefile.am): Likewise.
61914         * modules/putenv (Makefile.am): Likewise.
61915         * modules/quote (Makefile.am): Likewise.
61916         * modules/quotearg (Makefile.am): Likewise.
61917         * modules/raise (Makefile.am): Likewise.
61918         * modules/read-file (Makefile.am): Likewise.
61919         * modules/readline (Makefile.am): Likewise.
61920         * modules/readlink (Makefile.am): Likewise.
61921         * modules/readtokens (Makefile.am): Likewise.
61922         * modules/readutmp (Makefile.am): Likewise.
61923         * modules/realloc (Makefile.am): Likewise.
61924         * modules/regex (Makefile.am): Likewise.
61925         * modules/rename (Makefile.am): Likewise.
61926         * modules/rename-dest-slash (Makefile.am): Likewise.
61927         * modules/rijndael (Makefile.am): Likewise.
61928         * modules/rmdir (Makefile.am): Likewise.
61929         * modules/rpmatch (Makefile.am): Likewise.
61930         * modules/safe-read (Makefile.am): Likewise.
61931         * modules/safe-write (Makefile.am): Likewise.
61932         * modules/same (Makefile.am): Likewise.
61933         * modules/save-cwd (Makefile.am): Likewise.
61934         * modules/savedir (Makefile.am): Likewise.
61935         * modules/setenv (Makefile.am): Likewise.
61936         * modules/settime (Makefile.am): Likewise.
61937         * modules/sha1 (Makefile.am): Likewise.
61938         * modules/sig2str (Makefile.am): Likewise.
61939         * modules/snprintf (Makefile.am): Likewise.
61940         * modules/stdlib-safer (Makefile.am): Likewise.
61941         * modules/stpcpy (Makefile.am): Likewise.
61942         * modules/stpncpy (Makefile.am): Likewise.
61943         * modules/strcase (Makefile.am): Likewise.
61944         * modules/strcasestr (Makefile.am): Likewise.
61945         * modules/strchrnul (Makefile.am): Likewise.
61946         * modules/strcspn (Makefile.am): Likewise.
61947         * modules/strdup (Makefile.am): Likewise.
61948         * modules/strerror (Makefile.am): Likewise.
61949         * modules/strftime (Makefile.am): Likewise.
61950         * modules/strndup (Makefile.am): Likewise.
61951         * modules/strnlen (Makefile.am): Likewise.
61952         * modules/strpbrk (Makefile.am): Likewise.
61953         * modules/strsep (Makefile.am): Likewise.
61954         * modules/strstr (Makefile.am): Likewise.
61955         * modules/strtod (Makefile.am): Likewise.
61956         * modules/strtoimax (Makefile.am): Likewise.
61957         * modules/strtok_r (Makefile.am): Likewise.
61958         * modules/strtol (Makefile.am): Likewise.
61959         * modules/strtoll (Makefile.am): Likewise.
61960         * modules/strtoul (Makefile.am): Likewise.
61961         * modules/strtoull (Makefile.am): Likewise.
61962         * modules/strtoumax (Makefile.am): Likewise.
61963         * modules/strverscmp (Makefile.am): Likewise.
61964         * modules/time_r (Makefile.am): Likewise.
61965         * modules/timegm (Makefile.am): Likewise.
61966         * modules/tmpfile-safer (Makefile.am): Likewise.
61967         * modules/unistd-safer (Makefile.am): Likewise.
61968         * modules/unlinkdir (Makefile.am): Likewise.
61969         * modules/userspec (Makefile.am): Likewise.
61970         * modules/utime (Makefile.am): Likewise.
61971         * modules/utimecmp (Makefile.am): Likewise.
61972         * modules/utimens (Makefile.am): Likewise.
61973         * modules/vasnprintf (Makefile.am): Likewise.
61974         * modules/vasprintf (Makefile.am): Likewise.
61975         * modules/vsnprintf (Makefile.am): Likewise.
61976         * modules/xalloc (Makefile.am): Likewise.
61977         * modules/xgetcwd (Makefile.am): Likewise.
61978         * modules/xnanosleep (Makefile.am): Likewise.
61979         * modules/xreadlink (Makefile.am): Likewise.
61980         * modules/xstrtod (Makefile.am): Likewise.
61981         * modules/xstrtol (Makefile.am): Likewise.
61982         * modules/xstrtold (Makefile.am): Likewise.
61983         * modules/yesno (Makefile.am): Likewise.
61984
61985 2006-10-12  Jim Meyering  <jim@meyering.net>
61986
61987         * m4/getloadavg.m4: Revert the change below.
61988
61989         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
61990         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
61991         fail with a symlink, which is what coreutils' ./bootstrap now
61992         creates by default.
61993
61994 2006-10-12  Bruno Haible  <bruno@clisp.org>
61995
61996         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
61997         mingw.
61998         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
61999         MSVC and mingw explicitly.
62000
62001 2006-10-11  Simon Josefsson  <jas@extundo.com>
62002             Bruno Haible  <bruno@clisp.org>
62003
62004         Add support for multiple gnulib-tool invocations in the scope of a
62005         single configure.ac file.
62006         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
62007         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
62008         with the same contents as the _LIBADD variable.
62009         (func_emit_initmacro_start, func_emit_initmacro_end,
62010         func_emit_initmacro_done): New functions.
62011         (func_import, func_create_testdir): Invoke them. Allow the identifiers
62012         gl_LIBOBJS and gl_LTLIBOBJS.
62013
62014 2006-10-11  Bruno Haible  <bruno@clisp.org>
62015
62016         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
62017         (func_create_testdir): Don't create po/Makefile.am, don't invoke
62018         autoreconf. Instead, invoke autopoint explicitly but move back the
62019         *.m4 files from gnulib.
62020
62021 2006-10-11  Bruno Haible  <bruno@clisp.org>
62022
62023         * gnulib-tool (func_usage): Make module names after --create-testdir
62024         optional.
62025         (func_create_testdir): If no module was specified, use nearly all
62026         modules.
62027
62028 2006-10-12  Jim Meyering  <jim@meyering.net>
62029
62030         Big performance improvement for fts-based tools that use FTS_NOSTAT.
62031         Avoid spurious inode-mismatch problems on non-POSIX file systems.
62032         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
62033         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
62034         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
62035         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
62036         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
62037         (fts_set_stat_required): New function.
62038         (fts_open): Defer the calls to fts_stat, if possible or requested.
62039         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
62040         into fts_stat itself.
62041         (fts_read): Perform any required (deferred) fts_stat call.
62042         (fts_build): Likewise, for the directory we're about to open and read.
62043         In the readdir loop, carefully decide whether each entry will require
62044         an eventual call to fts_stat, using dirent.d_type info if available.
62045         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
62046         a command line argument into this function.  Update all callers.
62047         Map a return value of FTS_DOT to FTS_D for a command line argument.
62048         * modules/fts (Depends-on): Add d-type.  Alphabetize.
62049         Thanks to Miklos Szeredi for his tenacity and for the initial
62050         bug report about "find" failing on a FUSE-based file system.
62051
62052         * lib/fts.c (fts_open): Use consistent indentation.
62053
62054 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
62055
62056         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
62057         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
62058         reported by Jim Meyering.  All uses of cache variables renamed
62059         to match Autoconf's.
62060         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
62061         the other one.
62062
62063         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
62064         Fix misspelling in diagnostic.
62065
62066 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
62067
62068         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
62069         defined.  Problem reported by Matthew Woehlke.
62070
62071         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
62072         Add support for Tandem NonStop R series.
62073         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
62074         Use new macro.
62075
62076         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
62077         (has_trailing_slash): Omit size arg; all callers changed.
62078         Omit 'inline', since it doesn't help performance and we'd
62079         need to configure it.
62080         Don't count //, ///, etc. as having a trailing slash.
62081         As a side effect, this removes a C99ism reported by Matthew Woehlke.
62082         (rpl_rename_dest_slash): On failure, use rename's errno rather
62083         than (in some cases) an incorrect or junk errno.
62084         Simplify code by removing need to compute length; this does
62085         cause it to make two passes instead of one over the file name,
62086         but it's worth it.
62087
62088         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
62089         change, since Autoconf's version may no longer be appropriate now
62090         that we are using CVS Autoconf's version.  Add support for Tandem.
62091
62092 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
62093             Bruno Haible  <bruno@clisp.org>
62094
62095         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
62096         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
62097         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
62098         gl_AC_TYPE_LONG_LONG.
62099
62100         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
62101         instead of HAVE_LONG_LONG.
62102         * lib/printf-args.c (printf_fetchargs): Likewise.
62103         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
62104         * lib/vasnprintf.c (VASNPRINTF): Likewise.
62105         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
62106         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
62107         gl_AC_TYPE_LONG_LONG.
62108
62109 2006-10-11  Bruno Haible  <bruno@clisp.org>
62110
62111         * m4/longlong.m4: Add comments.
62112         * m4/ulonglong.m4: Likewise.
62113
62114 2006-10-10  Bruno Haible  <bruno@clisp.org>
62115
62116         Make it possible to #define stpcpy, strdup to aliases.
62117         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
62118         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
62119
62120 2006-10-10  Bruno Haible  <bruno@clisp.org>
62121
62122         Make it possible to #define gcd to an alias.
62123         * lib/gcd.c: Include config.h.
62124
62125 2006-10-10  Bruno Haible  <bruno@clisp.org>
62126
62127         Make it possible to #define c_isascii to an alias.
62128         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
62129         defined. Undefine the macros before defining them, to avoid gcc
62130         warnings.
62131         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
62132         define NO_C_CTYPE_MACROS early.
62133
62134 2006-10-10  Bruno Haible  <bruno@clisp.org>
62135
62136         Make it possible to #define set_program_name to an alias.
62137         * lib/progname.c: Don't undefine set_program_name; instead, undefine
62138         ENABLE_RELOCATABLE early.
62139
62140 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
62141
62142         Port to Tandem NSK OSS, which has 64-bit signed int but at most
62143         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
62144         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
62145         More generally, don't assume that 64-bit signed int is available
62146         if unsigned int is, and vice versa.
62147         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
62148         unsigned symbols, not on their signed counterparts.
62149         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
62150         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
62151         (UINT64_C, UINTMAX_C):
62152         Likewise.
62153         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
62154         unsigned counterparts.
62155         (Have_long_long, Unsigned): New macros.
62156         (Int): Renamed from INT.
62157         (strtoimax): Use the new macros.
62158         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
62159         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
62160         * modules/inttypes (inttypes.h): Substitute
62161         HAVE_UNSIGNED_LONG_LONG_INT.
62162         * modules/stdint (stdint.h): Likewise.
62163         (Files): Add m4/ulonglong.m4.
62164
62165 2006-10-10  Bruno Haible  <bruno@clisp.org>
62166
62167         Fix a gcc -Wshadow warning.
62168         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
62169         to 'bucket'.
62170         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
62171         gl_linked_indexof_from_to): Likewise.
62172         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
62173         Likewise.
62174         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
62175         Likewise.
62176         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
62177         Reported by Eric Blake.
62178
62179 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
62180
62181         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
62182         for NetBSD.  Problem reported by Bruno Haible.
62183
62184 2006-10-09  Jim Meyering  <jim@meyering.net>
62185
62186         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
62187         Patch from Bruno Haible.
62188
62189 2006-10-09  Jim Meyering  <jim@meyering.net>
62190
62191         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
62192         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
62193         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
62194
62195 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
62196
62197         Don't include <config.h> twice; this doesn't work in some cases,
62198         e.g., when config.h has "#define intmax_t long long int" and
62199         we include <config.h>, <inttypes.h>, <config.h> in that order.
62200         Problem reported by Matthew Woehlke in:
62201         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
62202         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
62203         * lib/fts-cycle.c: Don't include config.h.
62204         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
62205         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
62206         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
62207         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
62208         inttypes.h.
62209         * lib/xstrtoumax.c: Likewise.
62210         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
62211         __strtol and the like, so that this module is more like its siblings.
62212         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
62213         Remove; no longer needed now that we assume gnulib inttypes.h.
62214
62215 2006-10-08  Bruno Haible  <bruno@clisp.org>
62216
62217         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
62218         option.
62219
62220 2006-10-07  Jim Meyering  <jim@meyering.net>
62221
62222         * modules/inttypes (inttypes.h): Revert what seems to have been
62223         an inadvertent part of today's change: use "|", not "/" in the
62224         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
62225
62226 2006-10-07  Bruno Haible  <bruno@clisp.org>
62227
62228         * modules/sublist: New file.
62229
62230 2006-10-07  Bruno Haible  <bruno@clisp.org>
62231
62232         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
62233         * modules/argz (argz.h): Likewise.
62234         * modules/arpa_inet (arpa/inet.h): Likewise.
62235         * modules/byteswap (byteswap.h): Likewise.
62236         * modules/configmake (configmake.h): Likewise.
62237         * modules/fcntl (fcntl.h): Likewise.
62238         * modules/fnmatch (fnmatch.h): Likewise.
62239         * modules/getopt (getopt.h): Likewise.
62240         * modules/glob (glob.h): Likewise.
62241         * modules/inttypes (inttypes.h): Likewise.
62242         * modules/netinet_in (netinet/in.h): Likewise.
62243         * modules/poll (poll.h): Likewise.
62244         * modules/stdbool (stdbool.h): Likewise.
62245         * modules/stdint (stdint.h): Likewise.
62246         * modules/sys_select (sys/select.h): Likewise.
62247         * modules/sys_socket (sys/socket.h): Likewise.
62248         * modules/sys_stat (sys/stat.h): Likewise.
62249         * modules/sysexits (sysexits.h): Likewise.
62250         * modules/unistd (unistd.h): Likewise.
62251         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
62252         Add a "DO NOT EDIT" comment to the generated file.
62253         (func_import): Likewise for gnulib-comp.m4.
62254
62255 2006-10-07  Bruno Haible  <bruno@clisp.org>
62256
62257         * lib/gl_sublist.h: New file.
62258         * lib/gl_sublist.c: New file.
62259
62260 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
62261
62262         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
62263         name (relative to the original working directory) and the file
62264         name component (relative to the temporary working directory).  All
62265         callers changed.
62266         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
62267         * lib/mkdir-p.c (make_dir_parents): Likewise.
62268         * lib/mkdir-p.h (make_dir_parents): Likewise.
62269
62270 2006-10-06  Eric Blake  <ebb9@byu.net>
62271
62272         Define several macros for use by the clean-temp module.
62273         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
62274         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
62275         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
62276
62277         * lib/clean-temp.h (close_stream_temp): New declaration.
62278         * lib/clean-temp.c (includes): Pull in headers according to what
62279         other modules are in use.
62280         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
62281
62282 2006-10-06  Bruno Haible  <bruno@clisp.org>
62283
62284         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
62285         instead of fopen, fwriteerror.
62286
62287 2006-10-06  Bruno Haible  <bruno@clisp.org>
62288
62289         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
62290         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
62291         int.
62292         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
62293         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
62294         Return an error indicator.
62295         Suggested by Eric Blake.
62296
62297 2006-10-06  Bruno Haible  <bruno@clisp.org>
62298
62299         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
62300         Reported by Eric Blake.
62301
62302 2006-10-06  Bruno Haible  <bruno@clisp.org>
62303
62304         * modules/closeout (Description): Mention stderr too.
62305
62306 2006-10-06  Bruno Haible  <bruno@clisp.org>
62307         and Paul Eggert  <eggert@cs.ucla.edu>
62308
62309         * lib/closeout.c (close_stdout): Also close stderr.
62310         * lib/closeout.h: Update comment.
62311
62312 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
62313
62314         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
62315         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
62316         * lib/dirchownmod.c: Include lchown.h.
62317         * lib/lchown.c: Don't include files that lchown.h now includes.
62318         Don't declare chown, since lchown.h now does that.
62319         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
62320         (lchown): Define to rpl_chown if lchown is declared but
62321         does not exist.  Declare using a prototype if lchown is not
62322         declared.  Add a copyright notice.
62323         * lib/mkstemp.h: Include <unistd.h>.
62324         * lib/openat.c: Include lchown.h.
62325
62326         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
62327         we now test for that separately.
62328         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
62329         rather than O_NOFOLLOW, when testing whether it's possible to
62330         avoid a race condition reliably.
62331         * lib/savewd.c (savewd_chdir): Likewise.
62332
62333         Remove macros that are no longer needed now that stdint.h is
62334         reliable.
62335         * lib/fsusage.c (UINTMAX_MAX): Remove.
62336         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
62337         * lib/utimecmp.c (SIZE_MAX): Remove.
62338
62339         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
62340
62341         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
62342         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
62343         O_NOATIME works.
62344
62345 2006-10-05  Bruno Haible  <bruno@clisp.org>
62346
62347         * lib/gl_list.h (gl_sortedlist_search_from_to,
62348         gl_sortedlist_indexof_from_to): New declarations.
62349         (gl_list_implementation): New fields sortedlist_search_from_to,
62350         sortedlist_indexof_from_to.
62351         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
62352         inline functions.
62353         * lib/gl_list.c (gl_sortedlist_search_from_to,
62354         gl_sortedlist_indexof_from_to): New functions.
62355         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
62356         function.
62357         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
62358         (gl_array_sortedlist_search_from_to): New function.
62359         (gl_array_list_implementation): Update.
62360         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
62361         function.
62362         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
62363         (gl_carray_sortedlist_search_from_to): New function.
62364         (gl_carray_list_implementation): Update.
62365         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
62366         gl_linked_sortedlist_indexof_from_to): New functions.
62367         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
62368         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
62369         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
62370         gl_tree_sortedlist_indexof_from_to): New functions.
62371         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
62372         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
62373         Update.
62374         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
62375         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
62376         Update.
62377
62378 2006-10-05  Bruno Haible  <bruno@clisp.org>
62379
62380         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
62381         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
62382         (struct gl_list_implementation): Add fields search_from_to,
62383         indexof_from_to. Remove fields search, indexof.
62384         (gl_list_search): Use the search_from_to method.
62385         (gl_list_search_from, gl_list_search_from_to): New functions.
62386         (gl_list_indexof): Use the indexof_from_to method.
62387         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
62388         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
62389         (gl_list_search_from, gl_list_search_from_to): New functions.
62390         (gl_list_indexof): Use the indexof_from_to method.
62391         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
62392         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
62393         gl_array_indexof. Add start_index, end_index arguments.
62394         (gl_array_search_from_to): Renamed from gl_array_search. Add
62395         start_index, end_index arguments.
62396         (gl_array_remove, gl_array_list_implementation): Update.
62397         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
62398         gl_carray_indexof. Add start_index, end_index arguments.
62399         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
62400         start_index, end_index arguments.
62401         (gl_carray_remove, gl_carray_list_implementation): Update.
62402         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
62403         gl_linked_search. Add start_index, end_index arguments.
62404         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
62405         start_index, end_index arguments.
62406         (gl_linked_remove): Update.
62407         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
62408         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
62409         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
62410         field to 'size_t'.
62411         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
62412         gl_tree_search. Add start_index, end_index arguments.
62413         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
62414         start_index, end_index arguments.
62415         (gl_tree_remove): Update.
62416         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
62417         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
62418         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
62419         function.
62420         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
62421         gl_tree_search. Add start_index, end_index arguments.
62422         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
62423         start_index, end_index arguments.
62424         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
62425         Update.
62426         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
62427
62428 2006-10-05  Bruno Haible  <bruno@clisp.org>
62429
62430         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
62431
62432         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
62433         fwriteerror_temp): New declarations.
62434         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
62435         (descriptors): New variable.
62436         (cleanup): First, close the descriptors.
62437         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
62438         fclose_temp, fwriteerror_temp): New functions.
62439
62440 2006-10-04  Jim Meyering  <jim@meyering.net>
62441
62442         * lib/fts.c (fts_open): Tiny comment change.
62443
62444 2006-10-04  Bruno Haible  <bruno@clisp.org>
62445
62446         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
62447         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
62448         gl_LOCK_BODY.
62449         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
62450         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
62451         gl_LOCK_EARLY_BODY.
62452         (gl_LOCK): Require gl_LOCK_BODY.
62453
62454 2006-10-04  Bruno Haible  <bruno@clisp.org>
62455
62456         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
62457         (gl_oset_search_atleast): New declaration.
62458         (struct gl_oset_implementation): Add field 'search_atleast'.
62459         (gl_oset_search_atleast): New inline function.
62460         * lib/gl_oset.c (gl_oset_search_atleast): New function.
62461         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
62462         (gl_array_oset_implementation): Update.
62463         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
62464         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
62465         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
62466
62467 2006-10-04  Bruno Haible  <bruno@clisp.org>
62468
62469         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
62470
62471 2006-10-03  Bruno Haible  <bruno@clisp.org>
62472
62473         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
62474         from gl_avltreehash_list_implementation.
62475
62476 2006-10-03  Bruno Haible  <bruno@clisp.org>
62477
62478         * lib/gl_oset.c (gl_oset_add): Fix return type.
62479
62480 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
62481
62482         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
62483
62484 2006-10-02  Eric Blake  <ebb9@byu.net>
62485
62486         * modules/strnlen (Depends-on): Add extensions.
62487
62488 2006-10-02  Eric Blake  <ebb9@byu.net>
62489
62490         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
62491         definition in 2.60+.
62492
62493 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
62494
62495         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
62496         checks.
62497
62498 2006-10-02  Bruno Haible  <bruno@clisp.org>
62499
62500         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
62501         to the AUTOMAKE_OPTIONS.
62502         Reported by Jim Meyering.
62503
62504 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
62505
62506         Work around bug in Solaris 10 /proc file system:
62507         /proc/self/fd/NNN/.. isn't the parent directory of
62508         the directory whose file descriptor is NNN.  This needs to
62509         be worked around at run time, not compile time, since a
62510         program might be built on Solaris 8, where things work, and
62511         run on Solaris 10.
62512         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
62513         to use the following interface instead:
62514         (OPENAT_BUFFER_SIZE): New macro.
62515         (openat_proc_name): New function.
62516         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
62517         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
62518         Likewise.
62519         * lib/openat-proc.c: New file.
62520         * modules/openat (Files): Add lib/openat-proc.c.
62521         (Depends-on): Add same-inode, stdbool.
62522         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
62523
62524 2006-09-29  Bruno Haible  <bruno@clisp.org>
62525
62526         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
62527         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
62528         argument. Set stdout_closed before testing for ferror, not after.
62529         (fwriteerror, fwriteerror_no_ebadf): New functions.
62530
62531 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62532
62533         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
62534
62535 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
62536
62537         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
62538         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
62539
62540 2006-09-28  Jim Meyering  <jim@meyering.net>
62541
62542         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
62543         Include <unistd.h>.
62544
62545 2006-09-28  Bruno Haible  <bruno@clisp.org>
62546
62547         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
62548         * modules/linkedhash-list (Depends-on): Likewise.
62549         * modules/rbtreehash-list (Depends-on): Likewise.
62550
62551 2006-09-28  Bruno Haible  <bruno@clisp.org>
62552
62553         * lib/strndup.h: Simplify the redefinition of strndup.
62554         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
62555         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
62556
62557 2006-09-28  Bruno Haible  <bruno@clisp.org>
62558
62559         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
62560         * lib/gl_linkedhash_list.c: Likewise.
62561         * lib/gl_rbtreehash_list.c: Likewise.
62562
62563 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
62564
62565         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
62566         getaddrinfo.
62567
62568         * lib/__fpending.h: Don't include <stdio_ext.h> unless
62569         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
62570         it causes <stdio_ext.h> to cause a compile-time error.
62571         Problem reported by Nelson H. F. Beebe.
62572         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
62573         of HAVE_DECL___PENDING.
62574
62575         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
62576         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
62577         declaration.
62578
62579 2006-09-27  Jim Meyering  <jim@meyering.net>
62580
62581         This file could end up with a definition for a function
62582         named __strndup, rather than rpl_strndup on a system with
62583         incomplete weak_alias support.
62584         * lib/strndup.c (strndup): Rename from __strndup.
62585         Remove #defines that used to map __strndup to strndup.
62586         Don't use K&R prototypes.
62587         Remove LIBC-related code, since this file is not sync'd with glibc.
62588         * lib/strndup.h: Revamp, accordingly.
62589         * m4/strndup.m4: Modernize.
62590
62591 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
62592
62593         * modules/savewd (Depends-on): Add 'raise'.
62594         * lib/savewd.c: Include <signal.h>, for 'raise'.
62595
62596 2006-09-26  Jim Meyering  <jim@meyering.net>
62597
62598         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
62599         when we detect Darwin 8.7.0's acl_get_file bug.
62600         Rearrange to perform the new (below) run-test while $LIBS
62601         contains any acl-related library.  Set USE_ACL at the end.
62602         (gl_ACL_GET_FILE): New function.
62603
62604 2006-09-26  Eric Blake  <ebb9@byu.net>
62605
62606         * lib/verror.c: Include <config.h> unconditionally.
62607
62608 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
62609
62610         * modules/clock-time (Maintainer): Add self.
62611         * modules/getlogin_r (Depends-on): Add extensions.
62612
62613 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62614
62615         * modules/clock-time: New module.
62616         * modules/nanosleep (Depends-on): Add clock-time.
62617         * modules/gethrxtime (Depends-on): Likewise.
62618         * modules/gettime (Depends-on): Likewise.
62619         * modules/settime (Depends-on): Likewise.
62620
62621         * modules/fts-lgpl: Depend on openat.
62622         * modules/mkancesdirs: Depend on savewd.
62623         * modules/mkdir-p: Likewise.
62624
62625 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62626
62627         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
62628
62629         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
62630         `gl_have_arbitrary_file_name_length_limit' to
62631         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
62632         actually works between configure runs.
62633
62634 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62635             Bruno Haible  <bruno@clisp.org>
62636
62637         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
62638
62639 2006-09-25  Jim Meyering  <jim@meyering.net>
62640
62641         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
62642         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
62643
62644 2006-09-25  Eric Blake  <ebb9@byu.net>
62645
62646         * gnulib-tool (func_import, func_create_testdir): Fix typos in
62647         exec's in 2006-09-18 patch when shuffling fds.
62648
62649 2006-09-25  Bruno Haible  <bruno@clisp.org>
62650
62651         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
62652         Reported by Jim Meyering.
62653
62654 2006-09-24  Jim Meyering  <jim@meyering.net>
62655
62656         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
62657         compare a pointer against a literal "0".  That caused failures with
62658         at least HP-UX's hpcc.
62659
62660 2006-09-22  Simon Josefsson  <jas@extundo.com>
62661
62662         * modules/gc-sha1:
62663         * modules/gc-md4:
62664         * modules/gc-hmac-sha1:
62665         * modules/gc-hmac-md5:
62666         * modules/gc-des:
62667         * modules/gc-arcfour: Distribute more files.
62668
62669 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62670
62671         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
62672         (gl_linked_iterator_from_to): Initialize struct completely.
62673         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
62674         (gl_tree_iterator_from_to): Likewise
62675         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
62676         * lib/gl_array_list.c [lint] (gl_array_iterator)
62677         (gl_array_iterator_from_to): Likewise.
62678         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
62679         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
62680         (gl_carray_iterator_from_to): Likewise.
62681
62682         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
62683         * lib/md4.c (md4_process_block): Remove unused variable.
62684         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
62685         parentheses for clarity.
62686
62687 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62688
62689         * modules/bison-i18n (Depends-on): Add gettext.
62690
62691 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62692
62693         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
62694         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
62695         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
62696         also add missing comma that caused broken test.
62697         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
62698         stdlib.h, for `abort'.
62699         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
62700         variables.
62701         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
62702         include unistd.h if present, for `rmdir'.
62703         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
62704         variables.
62705         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
62706         in the process include standard headers for prototypes.
62707         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
62708         gets declared on GNU/Linux.
62709         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
62710         unistd.h, for `rmdir'.
62711         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
62712
62713         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
62714         always true.
62715         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
62716
62717         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
62718
62719 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62720
62721         * gnulib-tool (func_version): Create output all at once.  This
62722         may help avoid triggering unnecessary SIGPIPEs, and at any
62723         rate it doesn't hurt.
62724
62725 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62726             Bruno Haible  <bruno@clisp.org>
62727
62728         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
62729         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
62730         * m4/signed.m4 (bh_C_SIGNED): Likewise.
62731
62732         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
62733         (gl_FUNC_VASPRINTF): Invoke it.
62734
62735 2006-09-22  Bruno Haible  <bruno@clisp.org>
62736
62737         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
62738         getloadavg.c as first argument.
62739
62740 2006-09-22  Bruno Haible  <bruno@clisp.org>
62741
62742         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
62743         at the beginning of the gl_INIT macro.
62744         * modules/getloadavg (configure.ac): Pass $gl_source_base to
62745         gl_GETLOADAVG.
62746
62747 2006-09-22  Bruno Haible  <bruno@clisp.org>
62748
62749         * gnulib-tool (func_create_megatestdir): Don't include the config-h
62750         module.
62751         Suggested by Ralf Wildenhues.
62752
62753 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
62754
62755         Import this patch from libc:
62756
62757         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
62758
62759         * lib/regex_internal.c (re_string_reconstruct): Handle
62760         offset < pstr->valid_raw_len && pstr->offsets_needed case.
62761         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
62762         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
62763         re_string_context_at.
62764
62765         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
62766         now requires it.
62767         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
62768         gl_REGEX now does it for us.
62769         (gl_REGEX): Add test taken from
62770         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
62771
62772         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
62773         Check that large offsets work.  Modernize Autoconf usages.
62774         Prefer "yes" to mean a good thing rather than a bad.
62775         Don't put "#define mkstemp" in config.h, as this might interfere
62776         with standard system headers that "#define mkstemp mkstemp64".
62777
62778         * modules/mkstemp (Depends-on): Add extensions, so that
62779         mkstemp is visible on some platforms.
62780         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
62781         (Include): Change to "mkstemp.h" from <stdlib.h>.
62782         (Files): Add mkstemp.h.
62783
62784         * lib/mkstemp.h: New file, since some standard headers
62785         #define mkstemp.
62786         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
62787         Include "mkstemp.h".
62788         Make the _LIBC code resemble glibc original more,
62789         e.g., use K&R style.
62790         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
62791         (mkstemp): Remove, since mkstemp.h does this for us.
62792         * lib/stdlib--.h: Include mkstemp.h.
62793
62794         Import this patch from libc:
62795
62796         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
62797
62798         * lib/tempname.c (__gen_tempname): Change attempts_min
62799         into a macro.  Use preprocessor to decide how to initialize
62800         attempts [Coverity CID 67].
62801
62802 2006-09-20  Bruno Haible  <bruno@clisp.org>
62803
62804         * lib/mkdtemp.c: Import from libc.
62805         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
62806                 * sysdeps/posix/tempname.c (__gen_tempname): Change
62807                 attempts_min into a macro.  Use preprocessor to decide how to
62808                 initialize attempts [Coverity CID 67].
62809         2001-11-27  Paul Eggert  <eggert@twinsun.com>
62810                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
62811                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
62812
62813 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62814
62815         * gnulib-tool (func_exit): New function, to allow to pass the
62816         exit status portably through the trap.  Use everywhere.
62817         (--help, --version): Signal a write error.
62818         (trap): catch SIGPIPE, for write errors.
62819         Exit at the end of the trap, with the correct exit status.
62820
62821 2006-09-19  Karl Berry  <karl@gnu.org>
62822
62823         * doc/gnulib.texi: note about the license texinfo files.
62824
62825 2006-09-19  Eric Blake  <ebb9@byu.net>
62826
62827         * gnulib-tool: Avoid space-tab.
62828
62829 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
62830
62831         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
62832         that prevented coreutils 6.1 from building.  Problem reported
62833         by Petter Reinholdtsen.
62834
62835 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
62836
62837         * gnulib-tool (avoidlist): Fix typo that broke options like
62838         --avoid=lock that are used by coreutils bootstrap.
62839
62840 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
62841
62842         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
62843         more systematically.
62844
62845 2006-09-18  Jim Meyering  <jim@meyering.net>
62846
62847         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
62848
62849 2006-09-18  Bruno Haible  <bruno@clisp.org>
62850
62851         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
62852
62853 2006-09-18  Bruno Haible  <bruno@clisp.org>
62854
62855         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
62856         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
62857         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
62858         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
62859         * m4/gettext.m4: Require autoconf >= 2.52.
62860         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
62861         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
62862         of gl_cv_header_inttypes_h.
62863
62864 2006-09-18  Bruno Haible  <bruno@clisp.org>
62865
62866         * lib/javaversion.c: Include configmake.h.
62867
62868 2006-09-18  Bruno Haible  <bruno@clisp.org>
62869
62870         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
62871         avoid that the while loops be executed in a subshell.
62872
62873 2006-09-18  Bruno Haible  <bruno@clisp.org>
62874
62875         * MODULES.html.sh (func_module): Break long lines.
62876         Suggested by Bruce Korb <bkorb@gnu.org>.
62877
62878 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62879
62880         Speed up by a factor of 1.12.
62881         * gnulib-tool (nl): New variable.
62882         (func_import): Rewrite include directive extraction to only read each
62883         directive once.
62884
62885 2006-09-17  Bruno Haible  <bruno@clisp.org>
62886
62887         * modules/javaversion (Makefile.am): Remove DEFS setting.
62888         (Depends-on): Add configmake, for PKGDATADIR definition.
62889
62890 2006-09-17  Bruno Haible  <bruno@clisp.org>
62891
62892         * gnulib-tool (func_create_testdir): Rewrite all files at once.
62893
62894 2006-09-17  Bruno Haible  <bruno@clisp.org>
62895
62896         * gnulib-tool (func_append): New function, stolen from libtool.m4.
62897         (func_modules_transitive_closure, func_modules_add_dummy,
62898         func_modules_to_filelist, func_import, func_create_testdir,
62899         func_create_megatestdir, ...): Use it wherever possible.
62900         Suggested by Ralf Wildenhues.
62901
62902 2006-09-16  Karl Berry  <karl@gnu.org>
62903
62904         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
62905         to avoid sectioning errors.
62906         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
62907         [ifinfo]: blank line after @center-ed titles.
62908         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
62909         Spell FSF address consistently with others.
62910         (These changes approved by rms.)
62911
62912 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62913
62914         Speed up by a factor of 1.61.
62915         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
62916         already checked module names again.
62917
62918 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62919
62920         Speed up by a factor of 1.13.
62921         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
62922         for new_files, and the input to func_add_or_update.
62923
62924 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62925
62926         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
62927         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
62928
62929 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
62930
62931         * modules/mkancesdirs (Depends-on): Add fcntl.
62932         * modules/savewd: New file.
62933         * MODULES.html.sh (File system functions): Add savewd.
62934
62935         * modules/configmake (Makefile.am): Add support for the
62936         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
62937
62938 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
62939
62940         * m4/savewd.m4: New file.
62941
62942 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
62943
62944         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
62945         (dirchownmod): New arg FD.  All callers changed.
62946         Use FD rather than opening the directory ourself, as opening is
62947         now the caller's responsibility.
62948         * lib/dirchownmod.h: Likewise.
62949         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
62950         hosts that require <sys/types.h> before <sys/stat.h>.  Include
62951         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
62952         (test_dir): Remove.
62953         (mkancesdirs): Return length of prefix of FILE that has already
62954         been made, or -2 if there is a child doing the work.  Redo
62955         algorithm so that it is O(N) rather than O(N**2).  Optimize away
62956         ".", and treat ".." specially since it might stray back into
62957         already-created areas.  Use a subprocess if necessary.  New arg
62958         WD; all users changed.  MAKE_DIR function should now return 1
62959         if it creates a directory that is not readable.  Return -2 if
62960         a child process is spun off.
62961         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
62962         Adjust signature to match code.
62963         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
62964         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
62965         all users changed.
62966         * lib/savewd.c, lib/savewd.h: New files.
62967
62968 2006-09-15  Jim Meyering  <jim@meyering.net>
62969
62970         * modules/rename-dest-slash: New module.
62971         * MODULES.html.sh (posix_compat): Add it here.
62972
62973         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
62974
62975 2006-09-15  Jim Meyering  <jim@meyering.net>
62976
62977         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
62978         file.
62979
62980         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
62981
62982 2006-09-15  Jim Meyering  <jim@meyering.net>
62983
62984         * lib/rename-dest-slash.c (has_trailing_slash): Use
62985         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
62986         (rpl_rename_dest_slash): Perform the cheaper trailing slash
62987         test before testing whether SRC is a directory.
62988         Suggestions from Bruno Haible.
62989
62990         Avoid a warning about an unused variable.
62991         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
62992         into the #ifdef block where it's used.
62993
62994         * lib/rename-dest-slash.c: New file.
62995
62996 2006-09-14  Bruno Haible  <bruno@clisp.org>
62997
62998         * lib/allocsa.c: Include <config.h> unconditionally.
62999         * lib/asnprintf.c: Likewise.
63000         * lib/asprintf.c: Likewise.
63001         * lib/c-strcasecmp.c: Likewise.
63002         * lib/c-strcasestr.c: Likewise.
63003         * lib/c-strncasecmp.c: Likewise.
63004         * lib/c-strstr.c: Likewise.
63005         * lib/classpath.c: Likewise.
63006         * lib/clean-temp.c: Likewise.
63007         * lib/concatpath.c: Likewise.
63008         * lib/copy-file.c: Likewise.
63009         * lib/csharpcomp.c: Likewise.
63010         * lib/csharpexec.c: Likewise.
63011         * lib/execute.c: Likewise.
63012         * lib/fatal-signal.c: Likewise.
63013         * lib/findprog.c: Likewise.
63014         * lib/fwriteerror.c: Likewise.
63015         * lib/gl_array_list.c: Likewise.
63016         * lib/gl_array_oset.c: Likewise.
63017         * lib/gl_avltree_list.c: Likewise.
63018         * lib/gl_avltree_oset.c: Likewise.
63019         * lib/gl_avltreehash_list.c: Likewise.
63020         * lib/gl_carray_list.c: Likewise.
63021         * lib/gl_linked_list.c: Likewise.
63022         * lib/gl_linkedhash_list.c: Likewise.
63023         * lib/gl_list.c: Likewise.
63024         * lib/gl_oset.c: Likewise.
63025         * lib/gl_rbtree_list.c: Likewise.
63026         * lib/gl_rbtree_oset.c: Likewise.
63027         * lib/gl_rbtreehash_list.c: Likewise.
63028         * lib/imaxabs.c: Likewise.
63029         * lib/imaxdiv.c: Likewise.
63030         * lib/javacomp.c: Likewise.
63031         * lib/javaexec.c: Likewise.
63032         * lib/javaversion.c: Likewise.
63033         * lib/linebreak.c: Likewise.
63034         * lib/localcharset.c: Likewise.
63035         * lib/lock.c: Likewise.
63036         * lib/mbchar.c: Likewise.
63037         * lib/mbswidth.c: Likewise.
63038         * lib/mkdtemp.c: Likewise.
63039         * lib/pipe.c: Likewise.
63040         * lib/printf-args.c: Likewise.
63041         * lib/printf-parse.c: Likewise.
63042         * lib/progname.c: Likewise.
63043         * lib/progreloc.c: Likewise.
63044         * lib/readlink.c: Likewise.
63045         * lib/sh-quote.c: Likewise.
63046         * lib/stpcpy.c: Likewise.
63047         * lib/stpncpy.c: Likewise.
63048         * lib/strcasecmp.c: Likewise.
63049         * lib/strcasestr.c: Likewise.
63050         * lib/strcspn.c: Likewise.
63051         * lib/striconv.c: Likewise.
63052         * lib/strncasecmp.c: Likewise.
63053         * lib/strnlen1.c: Likewise.
63054         * lib/strstr.c: Likewise.
63055         * lib/strtok_r.c: Likewise.
63056         * lib/tls.c: Likewise.
63057         * lib/tmpdir.c: Likewise.
63058         * lib/unicodeio.c: Likewise.
63059         * lib/unsetenv.c: Likewise.
63060         * lib/vasnprintf.c: Likewise.
63061         * lib/vasprintf.c: Likewise.
63062         * lib/wait-process.c: Likewise.
63063         * lib/xallocsa.c: Likewise.
63064         * lib/xsetenv.c: Likewise.
63065         * lib/xstriconv.c: Likewise.
63066
63067 2006-09-13  Simon Josefsson  <jas@extundo.com>
63068
63069         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
63070         that internally, suggested by Ralf Wildenhues
63071         <Ralf.Wildenhues@gmx.de>.
63072
63073 2006-09-13  Simon Josefsson  <jas@extundo.com>
63074
63075         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
63076         @LIBOBJS@.
63077         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
63078
63079 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
63080
63081         * lib/_fpending.c: Include <config.h> unconditionally, since we no
63082         longer worry about uses that don't define HAVE_CONFIG_H.
63083         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
63084         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
63085         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
63086         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
63087         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
63088         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
63089         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
63090         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
63091         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
63092         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
63093         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
63094         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
63095         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
63096         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
63097         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
63098         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
63099         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
63100         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
63101         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
63102         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
63103         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
63104         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
63105         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
63106         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
63107         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
63108         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
63109         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
63110         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
63111         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
63112         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
63113         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
63114         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
63115         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
63116         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
63117         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
63118         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
63119         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
63120         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
63121         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
63122         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
63123         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
63124         Likewise.
63125
63126 2006-09-13  Eric Blake  <ebb9@byu.net>
63127
63128         * lib/getopt.c: Fix typo in last commit.
63129
63130 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
63131
63132         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
63133         dgettext.
63134
63135 2006-09-12  Jim Meyering  <jim@meyering.net>
63136
63137         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
63138         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
63139         Reported by Nelson H. F. Beebe.
63140
63141 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
63142
63143         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
63144         program_invocation_name and program_invocation_short_name are
63145         initialized.
63146         * lib/argp-namefrob.h: Move declarations of program_invocation_name
63147         and program_invocation_short_name to argp.h, so they are visible
63148         to user programs.
63149         * lib/argp.h: Likewise
63150
63151 2006-09-10  Bruno Haible  <bruno@clisp.org>
63152
63153         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
63154         m4/inttypes_h.m4, m4/uintmax_t.m4.
63155
63156 2006-09-10  Bruno Haible  <bruno@clisp.org>
63157
63158         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
63159         gl_AC_TYPE_UINTMAX_T.
63160
63161 2006-09-10  Bruno Haible  <bruno@clisp.org>
63162
63163         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
63164
63165 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
63166
63167         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
63168         convention.  Text proposed by Bruno Haible.
63169         (struct argp_option): Document the use of N_() wrappers.
63170
63171         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
63172         '\v', and translate the two parts separately, instead of feeding
63173         the whole string to gettext.  This allows to exclude
63174         '\v' from the strings visible to the translator by writing doc
63175         strings as N_("..") "\v" N_("..").
63176
63177 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
63178
63179         * config/srclist.txt: Undo latest change; the bug was fixed.
63180
63181 2006-09-09  Bruno Haible  <bruno@clisp.org>
63182
63183         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
63184         assignments if building a library without libtool.
63185         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
63186         in func_emit_lib_Makefile_am.
63187         (func_import): When building a static library libfoo.a, arrange to
63188         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
63189         (func_create_testdir): Likewise.
63190         * modules/gc (configure.ac, Makefile.am): If building statically,
63191         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
63192         * modules/iconvme (configure.ac, Makefile.am): Likewise.
63193         * modules/striconv (configure.ac, Makefile.am): Likewise.
63194         Based on a suggestion by Ralf Wildenhues.
63195
63196 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
63197
63198         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
63199         Check for unistd.h too, since Autoconf doesn't assume POSIX.
63200         Also:
63201
63202         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
63203         Add year_2050_test to catch glibc bug 2821
63204         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
63205
63206         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
63207         Prefer #ifdef to #if.
63208
63209         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
63210         Return from 'main' instead of calling 'exit'.
63211
63212 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
63213
63214         * lib/mktime.c (guess_time_tm): Fix bug where mktime
63215         returned the maximum time_t value rather than (time_t) -1.
63216         Problem originally reported by William Bardwell
63217         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
63218
63219         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
63220         Moved to here ...
63221         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
63222         ... from here.
63223
63224 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
63225
63226         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
63227         2821 is fixed.
63228
63229 2006-09-08  Jim Meyering  <jim@meyering.net>
63230
63231         Don't make generated files read-only.  That would bother too many
63232         people.  However, do retain the ability to work when targets are
63233         read-only: remove the destination and temporary files before writing
63234         them (when generated via sed or echo), or by using the -f option for
63235         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
63236         * modules/alloca-opt, modules/argz, modules/arpa_inet:
63237         * modules/byteswap, modules/configmake, modules/fcntl:
63238         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
63239         * modules/localcharset, modules/netinet_in, modules/poll:
63240         * modules/stdbool, modules/stdint, modules/sys_select:
63241         * modules/sys_socket, modules/sys_stat, modules/sysexits:
63242
63243 2006-09-08  Jim Meyering  <jim@meyering.net>
63244
63245         Avoid new build failure on FreeBSD 6.0.
63246         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
63247         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
63248         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
63249
63250 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63251
63252         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
63253
63254 2006-09-07  Jim Meyering  <jim@meyering.net>
63255
63256         Fix global typo in last change: use chmod u-w, not chmod u-x.
63257         Spotted by Paul Eggert and Bruce Korb.
63258         * modules/alloca-opt, modules/argz, modules/arpa_inet:
63259         * modules/byteswap, modules/configmake, modules/fcntl:
63260         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
63261         * modules/localcharset, modules/netinet_in, modules/poll:
63262         * modules/stdbool, modules/stdint, modules/sys_select:
63263         * modules/sys_socket, modules/sys_stat, modules/sysexits:
63264
63265 2006-09-06  Jim Meyering  <jim@meyering.net>
63266
63267         Make generated files be read-only.
63268         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
63269         Ensure that each generated file is now read-only.
63270         * modules/argz: Likewise.
63271         * modules/arpa_inet: Likewise.
63272         * modules/byteswap: Likewise.
63273         * modules/configmake: Likewise.
63274         * modules/fcntl: Likewise.
63275         * modules/fnmatch: Likewise.
63276         * modules/getopt: Likewise.
63277         * modules/glob: Likewise.
63278         * modules/inttypes: Likewise.
63279         * modules/netinet_in: Likewise.
63280         * modules/poll: Likewise.
63281         * modules/stdbool: Likewise.
63282         * modules/stdint: Likewise.
63283         * modules/sys_select: Likewise.
63284         * modules/sys_socket: Likewise.
63285         * modules/sys_stat: Likewise.
63286         * modules/sysexits: Likewise.
63287         * modules/localcharset: Same as above, but continue using temporary
63288         file named "t-$@" (why different?) rather than the "$@-t" used
63289         everywhere else.
63290
63291         * modules/sysexits (Makefile.am): Replace literal occurrences
63292         of "sysexit.h" more readable, and more consistent, "$@".
63293
63294 2006-09-06  Bruno Haible  <bruno@clisp.org>
63295
63296         * modules/striconv: New file.
63297         * modules/xstriconv: New file.
63298         * MODULES.html.sh (Internationalization functions): Add striconv,
63299         xstriconv.
63300
63301 2006-09-06  Bruno Haible  <bruno@clisp.org>
63302
63303         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
63304         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
63305         not using libtool correctly.
63306
63307 2006-09-06  Bruno Haible  <bruno@clisp.org>
63308
63309         * lib/striconv.h: New file.
63310         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
63311         iconvstring.c.
63312         * lib/xstriconv.h: New file.
63313         * lib/xstriconv.c: New file.
63314
63315 2006-09-06  Bruno Haible  <bruno@clisp.org>
63316
63317         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
63318         lib_..._LDFLAGS.
63319
63320 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63321
63322         * lib/argz_.h: Sync from Libtool.
63323
63324         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
63325                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
63326
63327         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
63328
63329 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
63330
63331         * modules/trim: New file.
63332
63333 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
63334
63335         * lib/trim.h: New file.
63336         * lib/trim.c: New file.
63337
63338 2006-09-05  Bruno Haible  <bruno@clisp.org>
63339
63340         * MODULES.html.sh (String handling): Add trim.
63341
63342 2006-09-04  Karl Berry  <karl@gnu.org>
63343
63344         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
63345         until next release.
63346
63347 2006-09-03  Bruno Haible  <bruno@clisp.org>
63348
63349         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
63350         correctly.
63351
63352 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
63353
63354         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
63355         not gl_GETLOADAVG.  Omit unneeded semicolons.
63356         Problems reported by Ralf Wildenhues in
63357         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
63358         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
63359         at the end, which is the usual gnulib style.
63360
63361         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
63362         of doing all the work ourselves.
63363         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
63364         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
63365
63366 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
63367
63368         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
63369         Problem reported by Ralf Wildenhues in
63370         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
63371
63372         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
63373         HAVE_STRUCT_STATFS_F_FSTYPENAME.
63374
63375 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
63376
63377         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
63378         yesterday's patch by changing test -n to test -z.
63379
63380 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
63381
63382         * modules/getloadavg (Files): Add m4/getloadavg.m4.
63383         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
63384         the former is now obsolescent.
63385
63386         * modules/chdir-long (Depends-on): Add fcntl.
63387
63388 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
63389
63390         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
63391         obsolescent, and programs should use gnulib instead.
63392         * m4/getloadavg.m4: New file, with contents taken from Autoconf
63393         but with prefixes changed.
63394
63395 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
63396
63397         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
63398         or stdbool.h, because they might not exist while configuring.
63399
63400         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
63401         Don't include unistd.h or limits.h; not needed, since chdir-long.h
63402         does that for us.
63403         (O_DIRECTORY): Remove.
63404
63405 2006-08-31  Eric Blake  <ebb9@byu.net>
63406
63407         * gnulib-tool: Don't let emacs change spaces to TAB.
63408
63409 2006-08-31  Bruno Haible  <bruno@clisp.org>
63410
63411         * gnulib-tool: When calling func_import more than once, do it in a
63412         subshell.
63413         Reported by Eric Blake <ebb9@byu.net>.
63414
63415 2006-08-31  Bruno Haible  <bruno@clisp.org>
63416
63417         * gnulib-tool (nl): Remove variable.
63418         (sed_transform_lib_file): Use more robust test for config-h module.
63419         (func_import): Fix typo in 2006-08-25 patch.
63420
63421 2006-08-31  Bruno Haible  <bruno@clisp.org>
63422
63423         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
63424         specified, augment Makefile.am variables instead of assigning them.
63425
63426 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
63427
63428         Work around a bug in both the Linux and SunOS 64-bit kernels:
63429         nanosleep mishandles sleeps for longer than 2**31 seconds.
63430         Problem reported by Frank v Waveren in
63431         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
63432         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
63433         Check for nanosleep bug.
63434         (LIB_NANOSLEEP): Append clock_gettime library if needed.
63435
63436 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
63437
63438         Work around a bug in both the Linux and SunOS 64-bit kernels:
63439         nanosleep mishandles sleeps for longer than 2**31 seconds.
63440         Problem reported by Frank v Waveren in
63441         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
63442         * lib/nanosleep.c (BILLION): New constant.
63443         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
63444         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
63445         implementation.
63446
63447 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
63448
63449         * modules/nanosleep (Depends-on): Add gettime.
63450
63451 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
63452         and Simon Josefsson  <jas@extundo.com>
63453         and Oskar Liljeblad  <oskar@osk.mine.nu>
63454
63455         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
63456         * gnulib-tool (func_import): New license type 'unmodifiable license
63457         text'.
63458         * modules/fdl: Use it.  Longer description.
63459         * module/gpl, module/lgpl: New files.
63460
63461 2006-08-30  Jim Meyering  <jim@meyering.net>
63462
63463         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
63464         shadowing the parameter.
63465
63466 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63467
63468         Sync from Libtool:
63469
63470         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63471
63472         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
63473         sharing with gnulib.  Report by Eric Blake.
63474
63475 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
63476
63477         * modules/isapipe: New file.
63478         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
63479
63480 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
63481
63482         * modules/configmake (Makefile.am): Add a comment, and omit
63483         the CONFIGMAKE_ prefix from generated macro names.  Suggested
63484         by Bruno Haible.
63485
63486 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
63487
63488         * m4/isapipe.m4: New file.
63489
63490 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
63491
63492         * lib/isapipe.c, lib/isapipe.h: New files.
63493
63494 2006-08-29  Jim Meyering  <jim@meyering.net>
63495
63496         * modules/configmake (Makefile.am): Make configmake.h depend on
63497         Makefile.  Otherwise, a stale configmake.h could hang around.
63498
63499 2006-08-29  Eric Blake  <ebb9@byu.net>
63500
63501         * lib/error.c (error_at_line, print_errno_message): Match libc, after
63502         resolution of upstream bug 3044.
63503
63504 2006-08-29  Bruno Haible  <bruno@clisp.org>
63505
63506         * modules/localcharset (Depends-on): Add configmake.
63507         (Makefile.am): Remove setting of LIBDIR through DEFS.
63508
63509 2006-08-29  Bruno Haible  <bruno@clisp.org>
63510
63511         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
63512         defined.
63513
63514 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
63515
63516         * modules/fcntl: New file.
63517         * modules/chdir-safer (Depends-on): Add fcntl.
63518         * modules/fts: Likewise.
63519         * modules/mkdir-p: Likewise.
63520
63521         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
63522         This undoes the most recent change, since we're now addressing the
63523         problem in a different way.
63524
63525         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
63526         into output, since the output might be called Makefile.am even
63527         if $makefile_name is something different.
63528         (func_import): Use $makefile_am rather than
63529         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
63530         empty.
63531
63532         * modules/inttypes (Files): Add m4/inttypes-h.m4.
63533
63534 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
63535
63536         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
63537         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
63538         recent change to stdint.m4, since we're now addressing the problem in a
63539         different way.
63540
63541 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
63542
63543         * m4/fcntl_h.m4: New file.
63544
63545 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
63546
63547         * lib/fcntl_.h: New file.
63548         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
63549         the fcntl module.
63550         * lib/dirchownmod.c: Likewise.
63551         * lib/fts.c: Likewise.
63552
63553         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
63554         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
63555         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
63556         just before including <inttypes.h>, to avoid circular inclusion.
63557
63558 2006-08-28  Jim Meyering  <jim@meyering.net>
63559
63560         * doc/visibility.texi: Actually read and correct the grammar of the
63561         sentence affected by yesterday's change.
63562
63563 2006-08-28  Eric Blake  <ebb9@byu.net>
63564
63565         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
63566         needs wrapper.
63567
63568 2006-08-28  Eric Blake  <ebb9@byu.net>
63569
63570         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
63571
63572 2006-08-28  Eric Blake  <ebb9@byu.net>
63573
63574         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
63575
63576 2006-08-28  Bruno Haible  <bruno@clisp.org>
63577
63578         * modules/c-strstr: New file, from GNU gettext.
63579         * MODULES.html.sh (String handling): Add c-strstr.
63580
63581 2006-08-28  Bruno Haible  <bruno@clisp.org>
63582
63583         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
63584         macros.
63585         Reported by Eric Blake.
63586
63587 2006-08-28  Bruno Haible  <bruno@clisp.org>
63588
63589         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
63590         (VASNPRINTF): Return a string of length > INT_MAX without failing.
63591         * lib/vasprintf.c: Include errno.h, limits.h.
63592         (EOVERFLOW): New fallback definition.
63593         (vasprintf): Test here whether the string length is > INT_MAX.
63594         * lib/vsnprintf.c: Include errno.h, limits.h.
63595         (EOVERFLOW): New fallback definition.
63596         (vsnprintf): Fix bug when generated string was too long for the buffer.
63597         Test here whether the string length is > INT_MAX.
63598
63599 2006-08-28  Bruno Haible  <bruno@clisp.org>
63600
63601         * lib/inttypes_.h (SCNX*): Remove definitions.
63602         Reported by Eric Blake.
63603
63604 2006-08-28  Bruno Haible  <bruno@clisp.org>
63605
63606         * lib/c-strstr.h: New file, from GNU gettext.
63607         * lib/c-strstr.c: New file, from GNU gettext.
63608
63609 2006-08-28  Bruno Haible  <bruno@clisp.org>
63610
63611         * gnulib-tool: Reorder some statements.
63612
63613 2006-08-28  Bruno Haible  <bruno@clisp.org>
63614
63615         * gnulib-tool: New option --makefile-name.
63616         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
63617         $makefile_name.
63618         (func_import): Write $makefile_name to the cache file, and read it from
63619         there unless explicitly specified. Use $makefile_name as file name
63620         instead of Makefile.am. Adjust the recommendations accordingly.
63621
63622 2006-08-28  Bruno Haible  <bruno@clisp.org>
63623
63624         * gnulib-tool (func_verify_module): Check against misapplying patch.
63625
63626 2006-08-28  Bruno Haible  <bruno@clisp.org>
63627
63628         * gnulib-tool (func_relativize, func_relconcat): New functions.
63629         Give an error if --local-dir is given with --update.
63630         Remove trailing slashes from $local_gnulib_dir.
63631         (func_import): Store the relativized $local_gnulib_dir in
63632         gnulib-cache.m4, and read it from there if not specified explicitly.
63633
63634 2006-08-28  Bruno Haible  <bruno@clisp.org>
63635
63636         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
63637         is the current directory. Respect also $local_gnulib_dir.
63638
63639 2006-08-28  Bruno Haible  <bruno@clisp.org>
63640             Simon Josefsson  <jas@extundo.com>
63641
63642         BeOS portability.
63643         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
63644
63645 2006-08-27  Jim Meyering  <jim@meyering.net>
63646
63647         * doc/visibility.texi: Remove duplicate word: "pointer".
63648
63649 2006-08-26  Bruno Haible  <bruno@clisp.org>
63650
63651         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
63652         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
63653         (Makefile.am): Create inttypes.h from inttypes_.h.
63654         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
63655
63656         * modules/imaxabs: New file.
63657
63658         * modules/imaxdiv: New file.
63659
63660 2006-08-26  Bruno Haible  <bruno@clisp.org>
63661
63662         * m4/inttypes.m4: New file.
63663         * m4/_inttypes_h.m4: Remove file.
63664         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
63665         PRI_MACROS_BROKEN.
63666         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
63667
63668         * m4/imaxabs.m4: New file.
63669
63670         * m4/imaxdiv.m4: New file.
63671
63672 2006-08-26  Bruno Haible  <bruno@clisp.org>
63673
63674         * lib/inttypes_.h: New file.
63675         * lib/inttypes.h: Remove file.
63676         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
63677
63678         * lib/imaxabs.c: New file.
63679
63680         * lib/imaxdiv.c: New file.
63681
63682 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
63683
63684         New config-h module, so that "make" output needn't be cluttered
63685         by -DHAVE_CONFIG_H.
63686         * MODULES.html.sh (Support for building libraries and executables):
63687         Add config-h.
63688         * modules/config-h: New file.
63689         * gnulib-tool (nl, sed_transform_lib_file): New vars.
63690         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
63691         the config-h module is used.
63692
63693         New configmake module, so that "make" output needn't be cluttered
63694         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
63695         * MODULES.html.sh (Support for building libraries and executables):
63696         Add configmake.
63697         * modules/configmake: New file.
63698
63699 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
63700
63701         * m4/config-h.m4: New file.
63702
63703 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
63704
63705         * config/srclist.txt: Add elisp-comp.
63706
63707 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
63708
63709         * MODULES.html.sh (Support for building libraries and executables):
63710         Add elisp-comp.
63711         * build-aux/elisp-comp: New file.
63712         * modules/elisp-comp: New file.
63713
63714 2006-08-24  Bruno Haible  <bruno@clisp.org>
63715
63716         * gnulib-tool (func_create_testdir): Use non-default values of
63717         sourcebase and m4base.
63718
63719 2006-08-24  Bruno Haible  <bruno@clisp.org>
63720
63721         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
63722         HTML structure.
63723
63724 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
63725
63726         * modules/openat (Depends-on): Add lchown.
63727
63728 2006-08-23  Bruno Haible  <bruno@clisp.org>
63729
63730         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
63731         of gl_LOCK_EARLY instead of gl_LOCK.
63732
63733 2006-08-23  Bruno Haible  <bruno@clisp.org>
63734
63735         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
63736         on OSF/1 to no.
63737         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
63738
63739 2006-08-23  Bruno Haible  <bruno@clisp.org>
63740
63741         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
63742         as unusable.
63743
63744         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
63745         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
63746         (gl_LOCK): New macro.
63747
63748 2006-08-22  Simon Josefsson  <jas@extundo.com>
63749
63750         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
63751         to md5 module.
63752
63753 2006-08-22  Simon Josefsson  <jas@extundo.com>
63754
63755         * MODULES.html.sh: Add "Support for maintaining and release
63756         projects".
63757
63758         * build-aux/gnupload: New file, from coreutils.
63759
63760 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
63761
63762         Avoid the need for AC_LIBSOURCES in m4 macros.
63763         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
63764         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
63765         * modules/check-version (EXTRA_DIST): Add check-version.h.
63766         * modules/crc (EXTRA_DIST): Add crc.h.
63767         * modules/des (EXTRA_DIST): Add des.h.
63768         * modules/gc (EXTRA_DIST): Add gc.h.
63769         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
63770         * modules/getline (EXTRA_DIST): Add getline.h.
63771         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
63772         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
63773         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
63774         * modules/md2 (EXTRA_DIST): Add md2.h.
63775         * modules/md4 (EXTRA_DIST): Add md4.h.
63776         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
63777         * modules/read-file (EXTRA_DIST): Add read-file.h.
63778         * modules/readline (EXTRA_DIST): Add readline.h.
63779         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
63780         rijndael-api-fst.h.
63781
63782 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
63783
63784         * m4/rijndael.m4 (gl_ARCFOUR):
63785         * m4/arctwo.m4 (gl_ARCTWO):
63786         * m4/check-version.m4 (gl_CHECK_VERSION):
63787         * m4/crc.m4 (gl_CRC):
63788         * m4/des.m4 (gl_DES):
63789         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
63790         * m4/gc.m4 (gl_GC):
63791         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
63792         * m4/getline.m4 (gl_FUNC_GETLINE):
63793         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
63794         * m4/hmac-md5.m4 (gl_HMAC_MD5):
63795         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
63796         * m4/md2.m4 (gl_MD2):
63797         * m4/md4.m4 (gl_MD4):
63798         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
63799         * m4/read-file.m4 (gl_FUNC_READ_FILE):
63800         * m4/readline.m4 (gl_FUNC_READLINE):
63801         * m4/rijndael.m4 (gl_RIJNDAEL):
63802         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
63803         to get the necessary .h files and whatnot.
63804
63805 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
63806
63807         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
63808         gnulib rather than the other way around.
63809         * config/srclistvars.sh (COREUTILS): Remove.
63810
63811 2006-08-22  Jim Meyering  <jim@meyering.net>
63812
63813         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
63814
63815         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
63816
63817 2006-08-22  Eric Blake  <ebb9@byu.net>
63818
63819         * modules/regexprops-generic: New file.
63820         * MODULES.html.sh (Support for building documentation): List it.
63821
63822 2006-08-22  Eric Blake  <ebb9@byu.net>
63823
63824         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
63825         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
63826         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
63827         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
63828
63829 2006-08-22  Bruno Haible  <bruno@clisp.org>
63830
63831         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
63832         and lib_LTLIBRARIES like the other lib_* variables.
63833
63834 2006-08-22  Bruno Haible  <bruno@clisp.org>
63835
63836         * build-aux/x-to-1.in: New file, from GNU gettext.
63837
63838 2006-08-22  Bruno Haible  <bruno@clisp.org>
63839
63840         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
63841         <utmpx.h> exists.
63842
63843 2006-08-22  Bruno Haible  <bruno@clisp.org>
63844
63845         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
63846         <utmpx.h> exists.
63847
63848 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
63849
63850         BeOS portability.
63851         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
63852         exist.
63853         Problem reported by Bruno Haible.
63854
63855 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
63856
63857         Avoid the need for AC_LIBSOURCES in m4 macros.
63858         * modules/acl (EXTRA_DIST): Add acl.h.
63859         * modules/argmatch (Files): Add m4/argmatch.m4.
63860         (configure.ac): Add gl_ARGMATCH.
63861         (EXTRA_DIST): Renamed from lib_SOURCES, for
63862         consistency with the other modules.  Remove argmatch.c.
63863         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
63864         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
63865         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
63866         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
63867         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
63868         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
63869         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
63870         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
63871         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
63872         * modules/closeout (EXTRA_DIST): Add closeout.h.
63873         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
63874         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
63875         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
63876         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
63877         dirname.h; remove basename.c and stripslash.c.
63878         * modules/exclude (EXTRA_DIST): Add exclude.h.
63879         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
63880         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
63881         * modules/file-type (EXTRA_DIST): Add file-type.h.
63882         * modules/filemode (EXTRA_DIST): Add filemode.h.
63883         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
63884         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
63885         * modules/fpending (EXTRA_DIST): Add __fpending.h.
63886         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
63887         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
63888         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
63889         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
63890         * modules/getdate (EXTRA_DIST): Add getdate.c.
63891         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
63892         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
63893         * modules/getpass (EXTRA_DIST): Add getpass.h.
63894         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
63895         * modules/group-member (EXTRA_DIST): Add group-member.h.
63896         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
63897         * modules/hash (EXTRA_DIST): Add hash.h.
63898         * modules/human (EXTRA_DIST): Add human.h.
63899         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
63900         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
63901         * modules/lchown (EXTRA_DIST): Add lchown.h.
63902         * modules/long-options (EXTRA_DIST): Add long-options.h.
63903         * modules/lstat (EXTRA_DIST): Add lstat.h.
63904         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
63905         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
63906         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
63907         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
63908         * modules/memxor (EXTRA_DIST): Add memxor.h.
63909         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
63910         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
63911         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
63912         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
63913         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
63914         * modules/physmem (EXTRA_DIST): Add physmem.h.
63915         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
63916         * modules/posixver (EXTRA_DIST): Add posixver.h.
63917         * modules/quote (EXTRA_DIST): Add quote.h.
63918         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
63919         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
63920         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
63921         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
63922         regex_internal.h regexec.c.
63923         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
63924         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
63925         * modules/same (EXTRA_DIST): Add same.h.
63926         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
63927         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
63928         * modules/savedir (EXTRA_DIST): Add savedir.h.
63929         * modules/sha1 (EXTRA_DIST): Add sha1.h.
63930         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
63931         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
63932         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
63933         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
63934         * modules/strdup (EXTRA_DIST): Add strdup.h.
63935         * modules/strftime (EXTRA_DIST): Add strftime.h.
63936         * modules/strndup (EXTRA_DIST): Add strndup.h.
63937         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
63938         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
63939         * modules/time_r (EXTRA_DIST): Add time_r.h.
63940         * modules/timespec (EXTRA_DIST): Add timespec.h.
63941         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
63942         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
63943         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
63944         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
63945         * modules/userspec (EXTRA_DIST): Add userspec.h.
63946         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
63947         * modules/utimens (EXTRA_DIST): Add utimens.h.
63948         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
63949         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
63950         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
63951         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
63952         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
63953         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
63954         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
63955         * modules/yesno (EXTRA_DIST): Add yesno.h.
63956
63957 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
63958
63959         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
63960
63961         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
63962         * m4/dev-ino.m4, same-inode.m4: Remove.
63963
63964         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
63965         * m4/acl.m4 (AC_FUNC_ACL):
63966         * m4/backupfile.m4 (gl_BACKUPFILE):
63967         * m4/c-strtod.m4 (gl_C99_STRTOLD):
63968         * m4/canon-host.m4 (gl_CANON_HOST):
63969         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
63970         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
63971         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
63972         * m4/cloexec.m4 (gl_CLOEXEC):
63973         * m4/close-stream.m4 (gl_CLOSE_STREAM):
63974         * m4/closeout.m4 (gl_CLOSEOUT):
63975         * m4/dirfd.m4 (gl_FUNC_DIRFD):
63976         * m4/dirname.m4 (gl_DIRNAME):
63977         * m4/exclude.m4 (gl_EXCLUDE):
63978         * m4/exitfail.m4 (gl_EXITFAIL):
63979         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
63980         * m4/file-type.m4 (gl_FILE_TYPE):
63981         * m4/filemode.m4 (gl_FILEMODE):
63982         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
63983         * m4/fpending.m4 (gl_FUNC_FPENDING):
63984         * m4/fprintftime.m4 (gl_FPRINTFTIME):
63985         * m4/fts.m4 (gl_FUNC_FTS):
63986         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
63987         * m4/getdate.m4 (gl_GETDATE):
63988         * m4/gethrxtime.m4 (gl_GETHRXTIME):
63989         * m4/getpagesize.m4 (gl_GETPAGESIZE):
63990         * m4/getpass.m4 (gl_FUNC_GETPASS):
63991         * m4/gettime.m4 (gl_GETTIME):
63992         * m4/getugroups.m4 (gl_GETUGROUPS):
63993         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
63994         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
63995         * m4/hard-locale.m4 (gl_HARD_LOCALE):
63996         * m4/hash.m4 (gl_HASH):
63997         * m4/idcache.m4 (gl_IDCACHE):
63998         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
63999         * m4/lchown.m4 (gl_FUNC_LCHOWN):
64000         * m4/long-options.m4 (gl_LONG_OPTIONS):
64001         * m4/lstat.m4 (gl_FUNC_LSTAT):
64002         * m4/md5.m4 (gl_MD5):
64003         * m4/memcasecmp.m4 (gl_MEMCASECMP):
64004         * m4/memcoll.m4 (gl_MEMCOLL):
64005         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
64006         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
64007         * m4/memxor.m4 (gl_MEMXOR):
64008         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
64009         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
64010         * m4/modechange.m4 (gl_MODECHANGE):
64011         * m4/mountlist.m4 (gl_MOUNTLIST):
64012         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
64013         * m4/openat.m4 (gl_FUNC_OPENAT):
64014         * m4/pathmax.m4 (gl_PATHMAX):
64015         * m4/physmem.m4 (gl_PHYSMEM):
64016         * m4/posixtm.m4 (gl_POSIXTM):
64017         * m4/posixver.m4 (gl_POSIXVER):
64018         * m4/quote.m4 (gl_QUOTE):
64019         * m4/quotearg.m4 (gl_QUOTEARG):
64020         * m4/readtokens.m4 (gl_READTOKENS):
64021         * m4/readutmp.m4 (gl_READUTMP):
64022         * m4/regex.m4 (gl_REGEX):
64023         * m4/safe-read.m4 (gl_SAFE_READ):
64024         * m4/safe-write.m4 (gl_SAFE_WRITE):
64025         * m4/same.m4 (gl_SAME):
64026         * m4/save-cwd.m4 (gl_SAVE_CWD):
64027         * m4/savedir.m4 (gl_SAVEDIR):
64028         * m4/settime.m4 (gl_SETTIME):
64029         * m4/sha1.m4 (gl_SHA1):
64030         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
64031         * m4/stat-macros.m4 (gl_STAT_MACROS):
64032         * m4/stat-time.m4 (gl_STAT_TIME):
64033         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
64034         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
64035         * m4/strdup.m4 (gl_FUNC_STRDUP):
64036         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
64037         * m4/strndup.m4 (gl_FUNC_STRNDUP):
64038         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
64039         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
64040         * m4/time_r.m4 (gl_TIME_R):
64041         * m4/timespec.m4 (gl_TIMESPEC):
64042         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
64043         * m4/unlinkdir.m4 (gl_UNLINKDIR):
64044         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
64045         * m4/userspec.m4 (gl_USERSPEC):
64046         * m4/utimecmp.m4 (gl_UTIMECMP):
64047         * m4/utimens.m4 (gl_UTIMENS):
64048         * m4/xalloc.m4 (gl_XALLOC):
64049         * m4/xgetcwd.m4 (gl_XGETCWD):
64050         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
64051         * m4/xreadlink.m4 (gl_XREADLINK):
64052         * m4/xstrtod.m4 (gl_XSTRTOD):
64053         * m4/yesno.m4 (gl_YESNO):
64054         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
64055         to get the necessary .h files and whatnot.
64056
64057 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
64058             Bruno Haible  <bruno@clisp.org>
64059
64060         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
64061         /bin/sh understanding of '!' conditional negation.
64062
64063 2006-08-21  Jim Meyering  <jim@meyering.net>
64064
64065         * modules/openat (Depends-on): Really alphabetize.
64066
64067         * modules/acl (Depends-on): Add error and quote.
64068
64069         * check-module (find_included_lib_files): Add at-func.c to the
64070         ok-to-include-more-than-once white list.
64071
64072         * modules/openat (Depends-on): Add lstat.  Alphabetize.
64073
64074 2006-08-21  Bruno Haible  <bruno@clisp.org>
64075
64076         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
64077         Emit a pkgdata_DATA variable only if some snippets add contents to it.
64078         Reported by Martin Lambers <marlam@marlam.de>.
64079
64080 2006-08-21  Bruno Haible  <bruno@clisp.org>
64081
64082         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
64083         specify an installation location, don't emit a noinst_LIBRARIES or
64084         noinst_LTLIBRARIES assignment.
64085
64086 2006-08-21  Bruno Haible  <bruno@clisp.org>
64087
64088         BeOS portability.
64089         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
64090         BeOS has mbrtowc() but no <wctype.h>.
64091
64092 2006-08-21  Bruno Haible  <bruno@clisp.org>
64093
64094         BeOS portability.
64095         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
64096         exist.
64097
64098 2006-08-21  Bruno Haible  <bruno@clisp.org>
64099
64100         BeOS portability.
64101         * lib/mbchar.h: Include <wctype.h> only if it exists.
64102
64103 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
64104
64105         Remove files that are no longer needed by their respective modules.
64106         * m4/obstack.m4: Remove.
64107         * m4/strerror_r.m4: Remove.
64108         * m4/uint32_t.m4: Remove.
64109         * m4/uintptr_t.m4: Remove.
64110         * m4/ullong_max.m4: Remove.
64111         * m4/xstrtoimax.m4: Remove.
64112         * m4/xstrtoumax.m4: Remove.
64113
64114         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
64115         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
64116         dependencies now capture this.
64117
64118         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
64119         Do not use AC_LIBSOURCES, since gnulib modules now do this.
64120         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
64121         * m4/human.m4 (gl_HUMAN): Likewise.
64122         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
64123         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
64124
64125         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
64126
64127         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
64128         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
64129         stdint.
64130         * m4/human.m4 (gl_HUMAN): Likewise.
64131         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
64132         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
64133         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
64134         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
64135         * m4/xstrtol (gl_XSTRTOL): Likewise.
64136
64137         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
64138         AC_TYPE_LONG_LONG_INT.
64139         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
64140         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
64141         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
64142         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
64143
64144         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
64145         on stdbool.
64146
64147         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
64148         (gl_PREREQ_XSTRTOUL): Remove.
64149
64150         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
64151
64152         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
64153         mode.
64154
64155 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
64156
64157         Add and change modules to make it easier for coreutils to use
64158         gnulib-tool.
64159         * modules/backupfile (Files): Remove m4/d-ino.m4.
64160         (Depends-on): Add d-ino.
64161         * modules/cycle-check (Depends-on): Add stdint.
64162         (lib_SOURCES): Add cycle-check.h.
64163         * modules/d-ino: New module.
64164         * modules/d-type: New module.
64165         * modules/error (Files): Remove m4/strerror_r.m4.
64166         * modules/filemode (Files): Add m4/st_dm_mode.m4.
64167         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
64168         m4/inttypes_h.m4, m4/uintmax_t.m4.
64169         (Depends-on): Add stdint.
64170         (lib_SOURCES): Add fsusage.h.
64171         * modules/getcwd (Files): Remove d-ino.m4.
64172         (Depends-on): Add d-ino.
64173         * modules/getndelim2 (Depends-on): Add stdint.
64174         * modules/glob (Files): Remove m4/d-type.m4.
64175         (Depends-on): Add d-type.
64176         * modules/host-os: New module.
64177         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
64178         m4/inttypes_h.m4, m4/uintmax_t.m4.
64179         * Depends-on: Add stdint.
64180         (lib_SOURCES): Add human.h.
64181         * modules/inttostr (Files): Remove m4/intmax_t.m4,
64182         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
64183         m4/uintmax_t.m4, m4/ulonglong.m4.
64184         (Depends-on): Add stdint.
64185         (EXTRA_DIST): Add inttostr.h.
64186         * modules/lchmod: New module.
64187         * modules/link-follow: New module.
64188         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
64189         (Depends-on): Add lchmod.
64190         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
64191         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
64192         (Depends-on): Add stdint.
64193         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
64194         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
64195         (Depends-on): Add stdint.
64196         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
64197         * modules/perl: New module.
64198         * modules/regex (Depends-on): Add stdint.
64199         * modules/rmdir-errno: New module.
64200         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
64201         m4/intmax_t.m4.
64202         (Depends-on): Add stdint.
64203         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
64204         m4/uintmax_t.m4.
64205         (Depends-on): Add stdint.
64206         * modules/unlink-busy: New module.
64207         * modules/utimecmp (Depends-on): Add stdint.
64208         * modules/uptime: New module.
64209         * modules/winsz-ioctl: New module.
64210         * modules/winsz-termios: New module.
64211         * modules/xnanosleep (Depends-on): Add nanosleep.
64212         * modules/ullong_max: Remove.
64213         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
64214         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
64215         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
64216         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
64217         (Depends-on): Add inttypes.
64218         (lib_SOURCES): Add xstrtol.h.
64219         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
64220         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
64221         * MODULES.html.sh: Move 'assert' into the assert section.
64222         Move 'dummy' into the linking section.
64223         Remove ullong_max.
64224         Add section for compatibility checks for POSIX:2001 functions,
64225         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
64226         winsz-ioctl, and winsz-termios into it.
64227         Add lchmod.
64228         Add top-level Misc section and put host-os, perl, and uptime
64229         into it.
64230
64231 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
64232
64233         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
64234         now assume the stdint module.  Do not include inttypes.h.
64235         * lib/fsusage.h: Likewise.
64236         * lib/getndelim2.c: Likewise.
64237         * lib/human.h: Likewise.
64238         * lib/inttostr.h: Likewise.
64239         * lib/obstack.c: Likewise.
64240         * lib/regex_internal.h: Likewise.
64241         * lib/tempname.c: Likewise.
64242         * lib/utimecmp.c: Likewise.
64243         * lib/xstrtol.h: Likewise.
64244
64245         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
64246
64247         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
64248         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
64249         * lib/xtime.h: Likewise.
64250
64251 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
64252
64253         * modules/openat (Files): Add lib/fchmodat.c.
64254         Fixes problem reported by Jay Youngman.
64255
64256 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
64257
64258         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
64259         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
64260
64261 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
64262             Bruno Haible  <bruno@clisp.org>
64263
64264         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
64265         and is a script that invokes bison. Tighten the code. Add comments.
64266
64267 2006-08-18  Jim Meyering  <jim@meyering.net>
64268
64269         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
64270         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
64271         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
64272         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
64273
64274 2006-08-18  Bruno Haible  <bruno@clisp.org>
64275
64276         * modules/bison-i18n: New file.
64277         * MODULES.html.sh (Internationalization functions): Add it.
64278
64279 2006-08-18  Bruno Haible  <bruno@clisp.org>
64280
64281         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
64282         sys/statvfs.h. When getmntinfo was found, check its declaration and
64283         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
64284
64285 2006-08-18  Bruno Haible  <bruno@clisp.org>
64286
64287         * m4/bison-i18n.m4: New file, from bison.
64288
64289 2006-08-18  Bruno Haible  <bruno@clisp.org>
64290
64291         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
64292         (ME_DUMMY): Treat "kernfs" as a dummy.
64293         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
64294
64295 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
64296
64297         Update from coreutils.
64298
64299         2006-08-15  Jim Meyering  <jim@meyering.net>
64300
64301         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
64302
64303         2006-01-17  Jim Meyering  <jim@meyering.net>
64304
64305         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
64306
64307         2006-01-11  Jim Meyering  <jim@meyering.net>
64308
64309         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
64310         Check for the lchmod function.
64311
64312 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
64313
64314         Update from coreutils.
64315
64316         * lib/__fpending.h: Add copyright notice.
64317         * lib/fprintftime.h: Likewise.
64318         * lib/savedir.c: Use (C) in copyright notice.
64319         * lib/savedir.h: Likewise.
64320
64321         2006-08-15  Jim Meyering  <jim@meyering.net>
64322
64323         * lib/at-func.c: New file, with the logic of all emulated at-functions.
64324         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
64325         in support of the EXPECTED_ERRNO macro.
64326         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
64327         definitions.  Instead, define the appropriate symbols and include
64328         "at-func.c".
64329         * lib/mkdirat.c (mkdirat): Likewise.
64330         * lib/fchmodat.c (fchmodat): Likewise.
64331         (ENOSYS): Remove definition.
64332         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
64333         it.  Don't include "unistd--.h" -- it wasn't ever used.
64334
64335         2006-01-17  Jim Meyering  <jim@meyering.net>
64336
64337         Rewrite fts.c not to change the current working directory,
64338         by using openat, fstatat, fdopendir, etc..
64339
64340         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
64341         (HAVE_OPENAT_SUPPORT): Define.
64342         [_LIBC] (fchdir): Don't undef or define; no longer used.
64343         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
64344         Now, this `function' always succeeds, and consumes its file descriptor
64345         parameter -- so callers must not close such FDs.  Update callers.
64346         (diropen_fd, opendirat, cwd_advance_fd): New functions.
64347         (diropen): Add parameter, SP.  Adjust all callers.
64348         Implement using diropen_fd, rather than open.
64349         (fts_open): Initialize new member, fts_cwd_fd.
64350         Remove fts_rft-setting code.
64351         (fts_close): Close fts_cwd_fd, if necessary.
64352         (__opendir2): Define in terms of opendir or opendirat,
64353         depending on whether the FST_NOCHDIR flag is set.
64354         (fts_build): Since fts_safe_changedir consumes its FD, and since
64355         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
64356         and close the dup'd file descriptor upon failure.
64357         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
64358         (fts_safe_changedir): Tweak semantics to reflect that this function
64359         now calls cwd_advance_fd and hence consumes its FD argument.
64360         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
64361         [struct FTS] (fts_rft): Remove now-unused member.
64362         [struct FTS] (fts_cycle.state): Improve comment.
64363
64364         * lib/openat.c (openat_needs_fchdir): New function.
64365         * lib/openat.h (openat_needs_fchdir): Declare it.
64366
64367 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
64368
64369         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
64370         Problem and fix reported by Pádraig Brady in
64371         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
64372
64373 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
64374
64375         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
64376
64377 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
64378
64379         * lib/memcoll.c (memcoll): Optimize for the common case where the
64380         arguments are bytewise equal.
64381
64382 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
64383
64384         * doc/regexprops-generic.texi: Add a copyright notice.
64385
64386 2006-08-15  Bruno Haible  <bruno@clisp.org>
64387
64388         * modules/tmpdir (License): Change to LGPL.
64389
64390 2006-08-15  Bruno Haible  <bruno@clisp.org>
64391
64392         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
64393         module.
64394
64395 2006-08-14  Simon Josefsson  <jas@extundo.com>
64396
64397         * config/srclist.txt: Add gnupload.
64398
64399 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
64400
64401         Change copyright notice from LGPL 2 to GPL 2, since that's the
64402         standard form used in the gnulib repository.
64403         * tests/test-lock.c: Likewise.
64404         * tests/test-stdint.c: Likewise.
64405         * tests/test-tls.c: Likewise.
64406
64407         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
64408         prelude-manager.  User shorter URLs for GNU projects, without '?'.
64409         Add copyright notice.
64410
64411         * check-module: Add copyright notice.  Output a copyright
64412         notice if "--version" is specified.
64413         * modules/COPYING: New file.
64414         * tests/test-getaddrinfo.c: Add copyright notice.
64415         * tests/test-verify.c: Likewise.
64416
64417 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
64418
64419         Change copyright notice from LGPL 2 to GPL 2, since that's the
64420         standard form used in the gnulib repository.
64421         * lib/lock.c: LGPL -> GPL.
64422         * lib/lock.h: Likewise.
64423         * lib/strnlen1.c: Likewise.
64424         * lib/strnlen1.h: Likewise.
64425         * lib/tls.c: Likewise.
64426         * lib/tls.h: Likewise.
64427         * lib/tmpdir.c: Likewise.
64428
64429         * lib/TODO: Remove; this belongs only in coreutils.
64430
64431 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
64432
64433         Add copyright notices to long-enough files that lack them, since
64434         otherwise the files aren't clearly free.  Use the same notice that
64435         getdate.texi already uses.
64436         * doc/alloca-opt.texi: Add copyright notice.
64437         * doc/alloca.texi: Likewise.
64438         * doc/ctime.texi: Likewise.
64439         * doc/functions.texi: Likewise.
64440         * doc/gcd.texi: Likewise.
64441         * doc/gnulib-tool.texi: Likewise.
64442         * doc/inet_ntoa.texi: Likewise.
64443         * doc/visibility.texi: Likewise.
64444
64445         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
64446         * doc/quote.texi: Add copyright notice.
64447
64448         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
64449         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
64450         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
64451         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
64452         is now obsolete, and give a pointer to the Sun list.
64453         Add copyright notice.
64454
64455 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
64456
64457         * config/srclistvars.sh: Add copyright notice.
64458
64459 2006-08-14  Eric Blake  <ebb9@byu.net>
64460
64461         Import the following change from libc:
64462
64463         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
64464
64465         Upstream bug 2997.
64466         * lib/misc/error.c: Add space between program name and message if file
64467         name is missing.
64468
64469 2006-08-12  Karl Berry  <karl@gnu.org>
64470
64471         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
64472         remove, these originate in gnulib now.
64473
64474 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64475
64476         * doc/Makefile (standards.info standards.html standards.dvi):
64477         Also depend on make-stds.texi.
64478
64479 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
64480
64481         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
64482         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
64483
64484         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
64485         in wchar_t.  Problem reported by Eric Blake.
64486
64487         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
64488         LEN is smaller than SIZE.  Suggested by Bruno Haible.
64489         Also, help the compiler to keep LEN in a register.
64490
64491 2006-08-11  Eric Blake  <ebb9@byu.net>
64492
64493         * users.txt: Sort.  Add tar.
64494
64495 2006-08-11  Bruno Haible  <bruno@clisp.org>
64496
64497         * users.txt: New file.
64498
64499 2006-08-11  Bruno Haible  <bruno@clisp.org>
64500
64501         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
64502         before <wchar.h>. Needed for OSF/1 and BSD/OS.
64503
64504 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
64505
64506         * modules/snprintf (Depends-on): Remove minmax.
64507         (Maintainer): Add self and Bruno.
64508
64509 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
64510
64511         * lib/.cppi-disable: Add snprintf.h, socket_.h.
64512         * lib/snprintf.c: Include <errno.h> and <limits.h>.
64513         (EOVERFLOW): Define if the system does not.
64514         Do not include "minmax.h"; it wasn't used.
64515         (snprintf): Don't assume size_t promotes to an unsigned type.
64516         Fix bug when generated string was too long for the buffer: the
64517         buffer's contents are supposed to be the initial prefix of the
64518         output.  Don't assume vasnprintf returns EOVERFLOW if the size
64519         exceeds INT_MAX; do the check ourselves.
64520
64521         Import the following changes from libc:
64522
64523         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
64524
64525         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
64526         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
64527         set wc to the byte which couldn't be converted.
64528         (re_string_reconstruct): Don't clear valid_raw_len before calling
64529         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
64530         tip_context using re_string_context_at.
64531
64532         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
64533
64534         * lib/posix/regex.h: g++ still cannot handled [restrict].
64535
64536         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
64537
64538         * lib/posix/regex.h: Remove special handling for VMS.
64539
64540 2006-08-10  Jim Meyering  <jim@meyering.net>
64541
64542         * modules/same-inode: New module.
64543         * modules/dev-ino: New module.
64544         * modules/cycle-check: Depend on these modules, rather than simply
64545         including their .h files.
64546         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
64547         required via m4/cycle-check.m4.
64548         * modules/same: Depend on new same-inode module, rather than
64549         including same-inode.h.
64550         * modules/chdir-safer: New file.
64551
64552         * modules/chown (Depends-on): Add stat-macros.
64553
64554 2006-08-10  Jim Meyering  <jim@meyering.net>
64555
64556         * m4/cycle-check.m4: New file.
64557         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
64558         * m4/dev-ino.m4, m4/same-inode.m4: New files.
64559
64560 2006-08-10  Eric Blake  <ebb9@byu.net>
64561
64562         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
64563         in from original proposal.
64564
64565 2006-08-10  Eric Blake  <ebb9@byu.net>
64566         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
64567
64568         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
64569         namespace.
64570
64571 2006-08-10  Bruno Haible  <bruno@clisp.org>
64572
64573         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
64574         as well.
64575
64576 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
64577
64578         Sync from coreutils.
64579
64580         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
64581
64582         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
64583         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
64584
64585 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
64586
64587         * modules/restrict: Remove; no longer needed now that we assume
64588         Autoconf 2.59 or later.
64589         * MODULES.html.sh: Remove 'restrict'.
64590         * modules/argp (Depends-on): Remove 'restrict'.
64591         * modules/base64 (Depends-on): Likewise.
64592         * modules/gc (Depends-on): Likewise.
64593         * modules/getaddrinfo (Depends-on): Likewise.
64594         * modules/glob (Depends-on): Likewise.
64595         * modules/inet_ntop (Depends-on): Likewise.
64596         * modules/inet_pton (Depends-on): Likewise.
64597         * modules/memxor (Depends-on): Likewise.
64598         * modules/regex (Depends-on): Likewise.
64599         * modules/strtok_r (Depends-on): Likewise.
64600         * modules/time_r (Depends-on): Likewise.
64601
64602 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
64603
64604         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
64605         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
64606         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
64607         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
64608         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
64609         * m4/memxor.m4 (gl_MEMXOR): Likewise.
64610         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
64611         gl_C_RESTRICT replaced by AC_C_RESTRICT.
64612
64613         Merge from coreutils.
64614         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
64615         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
64616         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
64617         * m4/time_r.m4 (gl_TIME_R): Likewise.
64618
64619 2006-08-09  Karl Berry  <karl@gnu.org>
64620
64621         * config/srclist.txt: no more gettext-tools, per Bruno.
64622
64623 2006-08-08  Eric Blake  <ebb9@byu.net>
64624
64625         * modules/verror: New module.
64626         * MODULES.html.sh: Document it.
64627
64628 2006-08-08  Eric Blake  <ebb9@byu.net>
64629
64630         * lib/verror.h, lib/verror.c: New files.
64631
64632 2006-08-08  Eric Blake  <ebb9@byu.net>
64633
64634         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
64635         verror_at_line output complies with GNU Coding Standards even when
64636         file is NULL.
64637
64638 2006-08-07  Bruno Haible  <bruno@clisp.org>
64639
64640         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
64641         versions of AIX.
64642         Reported by Ralf Wildenhues.
64643
64644 2006-08-07  Bruno Haible  <bruno@clisp.org>
64645
64646         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
64647         in an AC_DEFUN. Needed so that the autoconf snippets can use
64648         AC_REQUIRE.
64649
64650 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64651
64652         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
64653         Initialize pkgdata_DATA.
64654         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
64655         overriding it.
64656
64657 2006-08-06  Eric Blake  <ebb9@byu.net>
64658
64659         * lib/error.h: Fold in some upstream changes from glibc.
64660         * lib/error.c: Likewise.
64661
64662 2006-08-04  Bruno Haible  <bruno@clisp.org>
64663
64664         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
64665         Make the mostlyclean-local rule depend on mostlyclean-generic.
64666         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
64667
64668 2006-07-31  Bruno Haible  <bruno@clisp.org>
64669
64670         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
64671         <stdlib.h>, <string.h>.
64672
64673 2006-07-30  Bruno Haible  <bruno@clisp.org>
64674
64675         * modules/readlink (License): Change to LGPL.
64676
64677 2006-07-30  Bruno Haible  <bruno@clisp.org>
64678
64679         * modules/javaversion (Makefile.am): Distribute javaversion.java and
64680         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
64681         set PKGDATADIR to point to it.
64682
64683 2006-07-30  Bruno Haible  <bruno@clisp.org>
64684
64685         * modules/csharpexec (configure.ac): Comment out macro invocation.
64686         * modules/javaexec (configure.ac): Likewise.
64687         * modules/javacomp-script (configure.ac): Likewise.
64688
64689         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
64690
64691 2006-07-30  Bruno Haible  <bruno@clisp.org>
64692
64693         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
64694         linked-list.
64695
64696 2006-07-30  Bruno Haible  <bruno@clisp.org>
64697
64698         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
64699
64700 2006-07-30  Bruno Haible  <bruno@clisp.org>
64701
64702         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
64703         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
64704         get removed.
64705
64706 2006-07-29  Bruno Haible  <bruno@clisp.org>
64707
64708         Make it possible for gnulib-tool to work with locally modified or
64709         augmented gnulib repositories.
64710         * gnulib-tool (func_usage): Document --local-dir option.
64711         (local_gnulib_dir): New variable.
64712         Handle --local-dir option.
64713         (func_lookup_file): New function.
64714         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
64715         (func_get_description, func_get_filelist, func_get_description,
64716         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
64717         func_get_automake_snippet, func_get_include_directive,
64718         func_get_license, func_get_maintainer): Use func_lookup_file.
64719         (func_import, func_create_testdir): Use func_lookup_file.
64720
64721 2006-07-29  Bruno Haible  <bruno@clisp.org>
64722
64723         * modules/setenv (Depends-on): Add unistd.
64724
64725 2006-07-29  Bruno Haible  <bruno@clisp.org>
64726
64727         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
64728
64729 2006-07-29  Bruno Haible  <bruno@clisp.org>
64730
64731         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
64732
64733 2006-07-29  Bruno Haible  <bruno@clisp.org>
64734
64735         * gnulib-tool (import, update): If there is no Makefile.am, look at
64736         aclocal.m4, instead of bailing out.
64737
64738 2006-07-29  Bruno Haible  <bruno@clisp.org>
64739
64740         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
64741         Categorize the options by when they are useful.
64742
64743 2006-07-29  Bruno Haible  <bruno@clisp.org>
64744
64745         * gnulib-tool (func_usage): Document option --no-libtool.
64746         Handle option --no-libtool.
64747         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
64748         for changed semantics of $libtool variable.
64749         (func_import): Likewise. If libtool is not used, show this through
64750         an option --no-libtool.
64751         (func_create_testdir): Update.
64752
64753 2006-07-29  Bruno Haible  <bruno@clisp.org>
64754
64755         * gnulib-tool (func_import): Extend error message about missing
64756         --doc-base.
64757
64758 2006-07-29  Bruno Haible  <bruno@clisp.org>
64759
64760         * gnulib-tool (func_import): Don't create the $docbase directory if
64761         there is no file to store there.
64762
64763 2006-07-29  Bruno Haible  <bruno@clisp.org>
64764
64765         * gnulib-tool (autoconf_minversion): If a --dir option is given and
64766         relevant, look for configure.ac there, not in the current directory.
64767         Also use a simple search for AC_PREREQ, not "autoconf --trace".
64768
64769 2006-07-29  Bruno Haible  <bruno@clisp.org>
64770
64771         * gnulib-tool (SORT): New variable.
64772         (func_usage): Undocument --assume-autoconf option.
64773         Remove --assume-autoconf option handling.
64774         (autoconf_minversion): Determine from the contents of configure.ac.
64775         (func_import): Remove autoconf_minversion handling.
64776         Suggested by Eric Blake.
64777
64778 2006-07-29  Bruno Haible  <bruno@clisp.org>
64779
64780         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
64781
64782 2006-07-29  Bruno Haible  <bruno@clisp.org>
64783
64784         * config/srclist.txt (*setenv.[ch]): Remove rules.
64785
64786 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
64787
64788         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
64789
64790 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
64791
64792         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
64793         arpa/inet.h.
64794
64795 2006-07-28  Simon Josefsson  <jas@extundo.com>
64796
64797         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
64798         * modules/inet_pton (Depends-on): Likewise.
64799
64800 2006-07-28  Simon Josefsson  <jas@extundo.com>
64801
64802         * m4/netinet_in_h.m4: New file.
64803
64804 2006-07-28  Simon Josefsson  <jas@extundo.com>
64805
64806         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
64807         #include's.
64808
64809 2006-07-28  Simon Josefsson  <jas@extundo.com>
64810
64811         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
64812         #include's.
64813
64814 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
64815
64816         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
64817         setgid on directories only if they set these bits.
64818         * lib/modechange.h: Remove obsolete comment about masks.
64819
64820 2006-07-28  Eric Blake  <ebb9@byu.net>
64821
64822         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
64823         macro expansion.
64824
64825 2006-07-28  Bruno Haible  <bruno@clisp.org>
64826
64827         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
64828
64829 2006-07-28  Bruno Haible  <bruno@clisp.org>
64830
64831         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
64832
64833 2006-07-28  Bruno Haible  <bruno@clisp.org>
64834
64835         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
64836         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
64837         Define fallbacks.
64838         Avoids link error on FreeBSD 4.x.
64839         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
64840
64841         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
64842         encoding.
64843         * lib/mbswidth.c (iswcntrl): Likewise.
64844
64845 2006-07-27  Bruno Haible  <bruno@clisp.org>
64846
64847         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
64848         test.
64849
64850 2006-07-27  Bruno Haible  <bruno@clisp.org>
64851
64852         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
64853         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
64854         defined.
64855
64856 2006-07-26  Eric Blake  <ebb9@byu.net>
64857
64858         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
64859
64860 2006-07-26  Eric Blake  <ebb9@byu.net>
64861
64862         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
64863         like mingw that lack mkstemp.
64864         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
64865         avoid compilation warning on mingw.
64866
64867 2006-07-26  Bruno Haible  <bruno@clisp.org>
64868
64869         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
64870         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
64871         INT_FAST*_MIN, INTPTR_MIN.
64872
64873 2006-07-25  Bruno Haible  <bruno@clisp.org>
64874
64875         * modules/version-etc (Depends-on): Add stdarg.
64876
64877 2006-07-25  Bruno Haible  <bruno@clisp.org>
64878
64879         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
64880         complex commands.
64881
64882 2006-07-25  Bruno Haible  <bruno@clisp.org>
64883
64884         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
64885         defined in <stdarg.h> or config.h.
64886
64887 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
64888
64889         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
64890         (gl_STDIO_SAFER): Remove.
64891
64892 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
64893
64894         * MODULES.html.sh (File stream based Input/Output):
64895         Add fopen-safer, tmpfile-safer; remove stdio-safer.
64896         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
64897         * modules/fopen-safer, modules/tmpfile-safer: New files.
64898         * modules/stdio-safer: Remove.
64899
64900 2006-07-24  Bruno Haible  <bruno@clisp.org>
64901
64902         * modules/tmpdir: New file.
64903         * MODULES.html.sh (File system functions): Add it.
64904
64905 2006-07-24  Bruno Haible  <bruno@clisp.org>
64906
64907         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
64908         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
64909
64910 2006-07-24  Bruno Haible  <bruno@clisp.org>
64911
64912         * modules/clean-temp: New file.
64913
64914 2006-07-24  Bruno Haible  <bruno@clisp.org>
64915
64916         * m4/tmpdir.m4: New file, from GNU gettext.
64917
64918 2006-07-24  Bruno Haible  <bruno@clisp.org>
64919
64920         * lib/tmpdir.h: New file, from GNU gettext.
64921         * lib/tmpdir.c: New file, from GNU gettext.
64922
64923 2006-07-24  Bruno Haible  <bruno@clisp.org>
64924
64925         * lib/clean-temp.h: New file, from GNU gettext.
64926         * lib/clean-temp.c: New file, from GNU gettext.
64927
64928 2006-07-23  Eric Blake  <ebb9@byu.net>
64929
64930         * modules/stdio-safer (Files): Add tmpfile-safer.c.
64931         (Depends-on): Add binary-io.
64932
64933 2006-07-23  Eric Blake  <ebb9@byu.net>
64934
64935         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
64936
64937 2006-07-23  Eric Blake  <ebb9@byu.net>
64938
64939         * lib/tmpfile-safer.c: New file.
64940         * lib/stdio-safer.h (fopen_safer): Add prototype.
64941         * lib/stdio--.h (tmpfile): Make safer.
64942
64943 2006-07-23  Bruno Haible  <bruno@clisp.org>
64944
64945         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
64946         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
64947         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
64948         gl_linked_remove_at): Use it.
64949
64950 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
64951         and Simon Josefsson <jas@extundo.com>
64952
64953         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
64954
64955         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
64956
64957 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
64958
64959         * modules/close-stream: New file.
64960         * modules/closeout (Description): Make it clear that it exits
64961         with a diagnostic on error.
64962         (Depends-on): Add close-stream.  Remove fpending, stdbool.
64963         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
64964
64965 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
64966
64967         * m4/close-stream.m4: New file.
64968
64969 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
64970
64971         * lib/close-stream.c, lib/close-stream.h: New files.
64972
64973 2006-07-22  Bruno Haible  <bruno@clisp.org>
64974
64975         Merge from GNU gettext 0.15.
64976
64977         2006-05-01  Bruno Haible  <bruno@clisp.org>
64978
64979                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
64980
64981         2006-07-22  Bruno Haible  <bruno@clisp.org>
64982
64983                 * modules/javaversion: New file.
64984                 * MODULES.html.sh (Java): Add javaversion.
64985
64986         2006-03-12  Bruno Haible  <bruno@clisp.org>
64987
64988                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
64989
64990         2005-12-04  Bruno Haible  <bruno@clisp.org>
64991
64992                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
64993                 (untested).
64994
64995         2006-06-21  Bruno Haible  <bruno@clisp.org>
64996
64997                 Avoid warnings from recent versions of mcs.
64998                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
64999                 -o, -L, -r any more. Use options documented since mcs-1.0
65000                 instead. Similarly for -g.
65001
65002         2005-12-04  Bruno Haible  <bruno@clisp.org>
65003
65004                 * build-aux/csharpcomp.sh.in: Suffix for resources is
65005                 .resources, not .resource.
65006
65007         2005-07-09  Bruno Haible  <bruno@clisp.org>
65008
65009                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
65010                 add a .dll suffix.
65011                 Reported by Mark Junker <mjscod@gmx.de>.
65012
65013         2006-07-22  Bruno Haible  <bruno@clisp.org>
65014
65015                 * modules/gettext: Upgrade to gettext-0.15.
65016                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
65017                 m4/visibility.m4.
65018                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
65019
65020 2006-07-22  Bruno Haible  <bruno@clisp.org>
65021
65022         Merge from GNU gettext 0.15.
65023
65024         2006-03-25  Bruno Haible  <bruno@clisp.org>
65025
65026                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
65027
65028         2006-07-21  Bruno Haible  <bruno@clisp.org>
65029
65030                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
65031                 "1.1".
65032
65033         2006-05-09  Bruno Haible  <bruno@clisp.org>
65034
65035                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
65036                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
65037                 for the conftestver execution.
65038
65039         2006-05-01  Bruno Haible  <bruno@clisp.org>
65040
65041                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
65042                 optional target-version argument. Verify that the compiler
65043                 groks source of the specified source-version, or add -source
65044                 option as necessary. Verify that the compiler produces
65045                 bytecode in the specified target-version, or add -target and
65046                 -source options as necessary. Make the result of the test
65047                 available as variable CONF_JAVAC. Also log error output in
65048                 config.log.
65049
65050         2006-03-11  Bruno Haible  <bruno@clisp.org>
65051
65052                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
65053
65054         2006-05-09  Bruno Haible  <bruno@clisp.org>
65055
65056                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
65057                 CLASSPATH_SEPARATOR to a semicolon.
65058
65059         2006-03-12  Bruno Haible  <bruno@clisp.org>
65060
65061                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
65062                 available as variable CONF_JAVA, for subsequent autoconf
65063                 tests. Also log error output in config.log.
65064
65065         2006-07-19  Bruno Haible  <bruno@clisp.org>
65066
65067                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
65068                 that getline works on glibc2 systems. Needed to avoid trouble
65069                 in relocatable.c.
65070                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
65071
65072         2005-12-04  Bruno Haible  <bruno@clisp.org>
65073
65074                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
65075                 launcher (untested).
65076
65077         2005-12-04  Bruno Haible  <bruno@clisp.org>
65078
65079                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
65080
65081         2006-07-22  Bruno Haible  <bruno@clisp.org>
65082
65083                 * gettext.m4: Update from GNU gettext-0.15.
65084                 * nls.m4: Likewise.
65085                 * po.m4: Likewise.
65086                 * inttypes-pri.m4: Likewise.
65087                 * inttypes-h.m4: Renamed from inttypes.m4.
65088                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
65089
65090 2006-07-22  Bruno Haible  <bruno@clisp.org>
65091
65092         Merge from GNU gettext 0.15.
65093
65094         2005-07-05  Bruno Haible  <bruno@clisp.org>
65095
65096                 * printf-args.c (printf_fetchargs): Work around broken
65097                 definition of wint_t on mingw.
65098
65099         2005-02-12  Bruno Haible  <bruno@clisp.org>
65100
65101                 * xallocsa.h: Add extern "C" for C++.
65102
65103         2006-05-17  Bruno Haible  <bruno@clisp.org>
65104
65105                 Cygwin portability.
65106                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
65107
65108         2006-04-30  Bruno Haible  <bruno@clisp.org>
65109
65110                 * progreloc.c: Include <mach-o/dyld.h> if available.
65111                 (find_executable): Use _NSGetExecutablePath when possible.
65112
65113         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
65114
65115                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
65116                 function.
65117
65118         2005-12-29  Bruno Haible  <bruno@clisp.org>
65119
65120                 * progreloc.c (set_program_name_and_installdir): Fix
65121                 compilation error.
65122
65123         2005-12-04  Bruno Haible  <bruno@clisp.org>
65124
65125                 Cygwin portability.
65126                 * progreloc.c: Include <windows.h> also on Cygwin.
65127                 (find_executable): Add support for Cygwin.
65128                 (set_program_name_and_installdir): Handle also platforms with
65129                 nonempty EXEEXT.
65130
65131         2006-07-11  Bruno Haible  <bruno@clisp.org>
65132
65133                 * javacomp.c: Fix a comment.
65134                 Reported by Jim Meyering.
65135
65136         2006-04-30  Bruno Haible  <bruno@clisp.org>
65137
65138                 * javacomp.h (compile_java_class): Add source_version,
65139                 target_version arguments.
65140                 * javacomp.c: Rewritten to choose only a compiler that
65141                 respects the specified source_version and target_version.
65142
65143         2006-06-27  Bruno Haible  <bruno@clisp.org>
65144
65145                 Assume correct S_ISDIR macro.
65146                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
65147
65148         2006-07-22  Bruno Haible  <bruno@clisp.org>
65149
65150                 * javaversion.h: New file, from GNU gettext.
65151                 * javaversion.c: New file, from GNU gettext.
65152                 * javaversion.java: New file, from GNU gettext.
65153                 * javaversion.class: New file, from GNU gettext.
65154
65155         2006-05-17  Bruno Haible  <bruno@clisp.org>
65156
65157                 Cygwin portability.
65158                 * javaexec.c (execute_java_class): Test for jview program
65159                 also on Cygwin.
65160
65161         2006-04-09  Bruno Haible  <bruno@clisp.org>
65162
65163                 * fatal-signal.c: Don't include string.h.
65164                 (at_fatal_signal): Use a copying loop instead of memcpy.
65165
65166         2005-12-04  Bruno Haible  <bruno@clisp.org>
65167
65168                 * csharpexec.c: Add support for 'clix' launcher (untested).
65169                 (execute_csharp_using_sscli): New function.
65170                 (execute_csharp_program): Call it.
65171
65172         2006-06-21  Bruno Haible  <bruno@clisp.org>
65173
65174                 Avoid warnings from recent versions of mcs.
65175                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
65176                 -o, -L, -r any more. Use options documented since mcs-1.0
65177                 instead. Similarly for -g.
65178
65179         2005-07-09  Bruno Haible  <bruno@clisp.org>
65180
65181                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
65182                 add a .dll suffix.
65183                 Reported by Mark Junker <mjscod@gmx.de>.
65184
65185         2006-06-17  Bruno Haible  <bruno@clisp.org>
65186
65187                 * config.charset: Update for NetBSD 3.0.
65188
65189         2006-05-17  Bruno Haible  <bruno@clisp.org>
65190
65191                 Cygwin portability.
65192                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
65193
65194         2006-05-16  Bruno Haible  <bruno@clisp.org>
65195
65196                 * localcharset.c [CYGWIN]: Include <windows.h>.
65197                 (get_charset_aliases): For Cygwin, return the same CPxxx
65198                 aliases list as under WIN32.
65199                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
65200                 the environment variables. Fall back to GetACP().
65201
65202         2006-04-05  Bruno Haible  <bruno@clisp.org>
65203
65204                 * config.charset: Update Juan Manuel Guerrero's address.
65205
65206         2005-02-12  Bruno Haible  <bruno@clisp.org>
65207
65208                 * allocsa.h: Add extern "C" for C++.
65209
65210         2005-02-10  Bruno Haible  <bruno@clisp.org>
65211
65212                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
65213                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
65214
65215         2006-07-22  Bruno Haible  <bruno@clisp.org>
65216
65217                 * gettext.h: Update to GNU gettext-0.15.
65218
65219 2006-07-22  Bruno Haible  <bruno@clisp.org>
65220
65221         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
65222         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
65223         lib-prefix.m4, longdouble.m4, ssize_t.m4.
65224
65225 2006-07-21  Eric Blake  <ebb9@byu.net>
65226
65227         * modules/stdlib-safer: New file.
65228         * MODULES.html.sh (File stream based Input/Output): Add
65229         stdlib-safer.
65230
65231 2006-07-21  Eric Blake  <ebb9@byu.net>
65232
65233         * lib/stdlib-safer.h: New file from coreutils, required by
65234         stdlib--.h.
65235
65236 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
65237
65238         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
65239
65240 2006-07-20  Bruno Haible  <bruno@clisp.org>
65241
65242         * gnulib-tool: Recognize new option --assume-autoconf.
65243         (autoconf_minversion): New variable.
65244         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
65245
65246 2006-07-20  Bruno Haible  <bruno@clisp.org>
65247
65248         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
65249
65250 2006-07-19  Derek R. Price  <derek@ximbiot.com>
65251
65252         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
65253         Reindent and repaginate.
65254
65255 2006-07-19  Derek Price  <derek@ximbiot.com>
65256
65257         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
65258         Correct grammar.
65259
65260 2006-07-17  Bruno Haible  <bruno@clisp.org>
65261
65262         * modules/list: New file.
65263         * modules/array-list: New file.
65264         * modules/carray-list, modules/carray-list-tests: New files.
65265         * modules/linked-list, modules/linked-list-tests: New files.
65266         * modules/avltree-list, modules/avltree-list-tests: New files.
65267         * modules/rbtree-list, modules/rbtree-list-tests: New files.
65268         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
65269         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
65270         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
65271         * modules/oset: New file.
65272         * modules/array-oset: New file.
65273         * modules/avltree-oset, modules/avltree-oset-tests: New files.
65274         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
65275         * tests/test-carray_list.c: New file.
65276         * tests/test-linked_list.c: New file.
65277         * tests/test-avltree_list.c: New file.
65278         * tests/test-rbtree_list.c: New file.
65279         * tests/test-linkedhash_list.c: New file.
65280         * tests/test-avltreehash_list.c: New file.
65281         * tests/test-rbtreehash_list.c: New file.
65282         * tests/test-avltree_oset.c: New file.
65283         * tests/test-rbtree_oset.c: New file.
65284         * MODULES.html.sh (Container data structures): New section.
65285
65286 2006-07-17  Bruno Haible  <bruno@clisp.org>
65287
65288         * m4/gl_list.m4: New file.
65289
65290 2006-07-17  Bruno Haible  <bruno@clisp.org>
65291
65292         * lib/gl_list.h: New file.
65293         * lib/gl_list.c: New file.
65294         * lib/gl_array_list.h: New file.
65295         * lib/gl_array_list.c: New file.
65296         * lib/gl_carray_list.h: New file.
65297         * lib/gl_carray_list.c: New file.
65298         * lib/gl_linked_list.h: New file.
65299         * lib/gl_linked_list.c: New file.
65300         * lib/gl_anylinked_list1.h: New file.
65301         * lib/gl_anylinked_list2.h: New file.
65302         * lib/gl_avltree_list.h: New file.
65303         * lib/gl_avltree_list.c: New file.
65304         * lib/gl_anyavltree_list1.h: New file.
65305         * lib/gl_anyavltree_list2.h: New file.
65306         * lib/gl_rbtree_list.h: New file.
65307         * lib/gl_rbtree_list.c: New file.
65308         * lib/gl_anyrbtree_list1.h: New file.
65309         * lib/gl_anyrbtree_list2.h: New file.
65310         * lib/gl_anytree_list1.h: New file.
65311         * lib/gl_anytree_list2.h: New file.
65312         * lib/gl_linkedhash_list.h: New file.
65313         * lib/gl_linkedhash_list.c: New file.
65314         * lib/gl_anyhash_list1.h: New file.
65315         * lib/gl_anyhash_list2.h: New file.
65316         * lib/gl_avltreehash_list.h: New file.
65317         * lib/gl_avltreehash_list.c: New file.
65318         * lib/gl_rbtreehash_list.h: New file.
65319         * lib/gl_rbtreehash_list.c: New file.
65320         * lib/gl_anytreehash_list1.h: New file.
65321         * lib/gl_anytreehash_list2.h: New file.
65322
65323         * lib/gl_oset.h: New file.
65324         * lib/gl_oset.c: New file.
65325         * lib/gl_array_oset.h: New file.
65326         * lib/gl_array_oset.c: New file.
65327         * lib/gl_avltree_oset.h: New file.
65328         * lib/gl_avltree_oset.c: New file.
65329         * lib/gl_rbtree_oset.h: New file.
65330         * lib/gl_rbtree_oset.c: New file.
65331         * lib/gl_anytree_oset.h: New file.
65332
65333 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
65334
65335         * m4/mkancesdirs.m4: New file.
65336         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
65337         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
65338         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
65339         it.
65340
65341 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
65342
65343         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
65344         * lib/mkancesdirs.h: New files.
65345         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
65346         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
65347         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
65348         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
65349         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
65350         callers changed.  Revamp internals significantly, by not
65351         attempting to create directories that are temporarily more
65352         permissive than the final results.  Do not attempt to use
65353         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
65354         This removes some race conditions, fixes some bugs, and simplifies
65355         things.  Use new dirchownmod function to do owner and mode changes.
65356         * lib/mkdir-p.h: Likewise.
65357         * lib/modechange.c (octal_to_mode): New function.
65358         (struct mode_change): New member mentioned.
65359         (make_node_op_equals): New arg mentioned.  All callers changed.
65360         (mode_compile): Keep track of which mode bits the user has explicitly
65361         mentioned.
65362         (mode_adjust): New arg DIR, so that we implement the X op correctly.
65363         New arg PMODE_BITS, to keep track of which mode bits the user
65364         mentioned; it treats S_ISUID and S_ISGID speciall.
65365         All callers changed.
65366         * lib/modechange.h: Likewise.
65367
65368 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
65369
65370         * MODULES.html.sh: Add mkancestors.
65371         * modules/mkancesdirs: New module.
65372         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
65373         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
65374         The chdir-safer and afs files are now orphans; I'll remove them
65375         unless someone speaks up.
65376         Add lib/dirchownmod.c, lib/dirchownmod.h.
65377         (Depends-on): Remove alloca, chown, save-cwd, dirname.
65378         Add lchown, mkancesdirs.
65379         (Maintainer): Add self.
65380
65381 2006-07-15  Karl Berry  <karl@gnu.org>
65382
65383         * gnulib-tool: help message wording/arrangement.
65384
65385 2006-07-14  Simon Josefsson  <jas@extundo.com>
65386
65387         * doc/gnulib.texi (Libtool and Windows): New section.
65388
65389 2006-07-12  Simon Josefsson  <jas@extundo.com>
65390
65391         * modules/gendocs (License): Fix license, approved by Karl.
65392
65393 2006-07-12  Eric Blake  <ebb9@byu.net>
65394
65395         * MODULES.html.sh: Add gendocs.
65396
65397 2006-07-11  Eric Blake  <ebb9@byu.net>
65398
65399         * modules/fdl: New module, to install doc/fdl.texi.
65400         * MODULES.html.sh: Add new section for documentation modules.
65401         * gnulib-tool: Avoid space-tab.
65402         (--doc-base): New option, to manage files from doc.
65403
65404 2006-07-11  Eric Blake  <ebb9@byu.net>
65405
65406         * m4/absolute-header.m4: Fix comments to match recent change.
65407
65408 2006-07-11  Eric Blake  <ebb9@byu.net>
65409
65410         * gnulib-tool: List --doc-base before --tests-base.
65411
65412 2006-07-11  Derek R. Price  <derek@ximbiot.com>
65413
65414         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
65415
65416 2006-07-11  Bruno Haible  <bruno@clisp.org>
65417
65418         * README: Mention where to put documentation.
65419
65420 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65421
65422         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
65423
65424 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
65425
65426         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
65427         to stdint.m4.
65428
65429 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
65430
65431         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
65432         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
65433         "no/such/file/stdint.h" when there is no such file, so that
65434         the resulting C code can be parsed by dodgy compilers.
65435         Problems reported by Bob Proulx.
65436
65437 2006-07-10  Derek R. Price  <derek@ximbiot.com>
65438
65439         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
65440         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
65441         macros into the GNU _D_EXACT_NAMLEN.
65442         * lib/savedir.c:  Likewise.
65443         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
65444
65445 2006-07-10  Derek R. Price  <derek@ximbiot.com>
65446         and Paul Eggert  <eggert@cs.ucla.edu>
65447
65448         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
65449         * m4/savedir.m4:
65450         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
65451         macros into the GNU _D_EXACT_NAMLEN.
65452
65453 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
65454
65455         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
65456         around the absolute name, to work around a problem with the HP-UX
65457         11.23 native C compiler, reported by Bob Proulx.
65458
65459 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
65460
65461         * doc/maintain.texi, make-stds.texi: Sync from
65462         <http://savannah.gnu.org/projects/gnustandards>.
65463
65464 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
65465
65466         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
65467
65468 2006-07-09  Jim Meyering  <jim@meyering.net>
65469
65470         * m4/glob.m4: Remove a doubled word in a comment.
65471
65472 2006-07-09  Jim Meyering  <jim@meyering.net>
65473
65474         * lib/argp-pv.c: Remove a doubled word in a comment.
65475         * lib/check-version.c (check_version): Likewise.
65476         * lib/javacomp.c (compile_java_class): Likewise.
65477
65478 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
65479
65480         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
65481         for the benefit of people using Autoconf 2.60.  If you want to
65482         support older Autoconf versions you can copy m4/onceonly_2_57.m4
65483         (or m4/onceonly.m4, if pre-2.57) manually.
65484
65485 2006-07-08  Jim Meyering  <jim@meyering.net>
65486
65487         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
65488         comment.
65489         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
65490         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
65491         comment.
65492
65493 2006-07-08  Jim Meyering  <jim@meyering.net>
65494
65495         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
65496
65497 2006-07-07  Simon Josefsson  <jas@extundo.com>
65498
65499         * tests/test-crc.c: Change expected crc value, the test vector
65500         were probably computed using the old broken crc.c?
65501
65502 2006-07-06  Simon Josefsson  <jas@extundo.com>
65503
65504         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
65505         now the canonical place for the M4 file).
65506
65507         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
65508         from the sys_socket dependency now.
65509
65510         * modules/inet_pton (Files): Ditto.
65511
65512         * modules/inet_ntop (Files): Ditto.
65513
65514 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
65515
65516         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
65517         not gl_PREREQ_GETUSERSHELL.
65518
65519 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65520
65521         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
65522         with only one argument, for Autoconf 2.60.
65523         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
65524         expand to nothing, so add a shell command to avoid syntax error.
65525         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
65526
65527 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65528
65529         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
65530
65531 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
65532
65533         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
65534         no longer needed.  Check for isblank decl.
65535         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
65536         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
65537         of existence.
65538
65539 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
65540
65541         * lib/getloadavg.c: Use __VMS, not VMS.
65542         * lib/getopt.c: Likewise.
65543         * lib/getpagesize.h: Likewise.
65544         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
65545         and probably does not work.
65546
65547 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
65548
65549         * lib/.cppi-disable: Add wcwidth.
65550         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
65551         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
65552         (ISGRAPH): Remove.  All uses changed to isgraph.
65553         (FOLD) [!defined _LIBC]: Remove special case.
65554         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
65555         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
65556         HAVE_ISBLANK.
65557         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
65558         case.
65559
65560 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
65561
65562         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
65563         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
65564         brackets.  Other minor changes to suppress some compiler
65565         warnings.
65566
65567 2006-07-06  Derek R. Price  <derek@ximbiot.com>
65568         and Paul Eggert  <eggert@cs.ucla.edu>
65569
65570         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
65571         of invoking obsolescent AC_HEADER_DIRENT macro.
65572         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
65573         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
65574         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
65575         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
65576         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
65577         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
65578         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
65579         * m4/readdir.m4: Remove; no longer needed.
65580
65581 2006-07-06  Derek R. Price  <derek@ximbiot.com>
65582         and Paul Eggert  <eggert@cs.ucla.edu>
65583
65584         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
65585         Don't worry about this obsolete case any more.
65586         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
65587         directories.
65588         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
65589         worry about this obsolete case any more.
65590         * lib/fts.c: Likewise.
65591         * lib/getcwd.c: Likewise.
65592         * lib/glob.h: Likewise.
65593         * lib/savedir.c: Likewise.
65594
65595 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
65596
65597         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
65598         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
65599         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
65600         needed.
65601         All uses removed.
65602         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
65603         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
65604         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
65605         needed.
65606         * m4/getdate.m4 (gl_GETDATE): Likewise.
65607         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
65608         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
65609         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
65610         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
65611         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
65612         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
65613         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
65614         needed.
65615
65616 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
65617
65618         * lib/memcasecmp.c: Include <limits.h>.
65619         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
65620         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
65621         Don't assume isdigit succeeds only on '0' through '9'.
65622
65623 2006-07-05  Eric Blake  <ebb9@byu.net>
65624
65625         * modules/getaddrinfo (Depends-on): Add snprintf.
65626
65627 2006-07-05  Eric Blake  <ebb9@byu.net>
65628
65629         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
65630         to avoid 'header present but could not be compiled' on cygwin.
65631
65632 2006-07-05  Eric Blake  <ebb9@byu.net>
65633
65634         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
65635         missing from netdb.h.
65636         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
65637
65638 2006-07-05  Derek R. Price  <derek@ximbiot.com>
65639
65640         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
65641         no longer needed.
65642         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
65643         * m4/getdate.m4 (gl_GETDATE): Likewise.
65644         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
65645         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
65646         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
65647         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
65648         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
65649
65650 2006-07-05  Derek R. Price  <derek@ximbiot.com>
65651
65652         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
65653         All uses of is_space replaced by isspace.
65654         * lib/exit.h: Don't talk about STDC_HEADERS.
65655         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
65656         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
65657         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
65658         replaced by isprint etc.
65659         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
65660         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
65661         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
65662         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
65663         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
65664         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
65665
65666 2006-07-05  Bruno Haible  <bruno@clisp.org>
65667
65668         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
65669         the function exists, before testing against AIX.
65670         Reported by Martin Lambers <marlam@marlam.de>.
65671
65672 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
65673
65674         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
65675         From Mark D. Baushke.
65676
65677 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
65678
65679         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
65680         to the absolute name, not just one, to bypass Sun C 5.8's
65681         "warning: #include of /usr/include/... may be non-portable".
65682
65683 2006-07-04  Eric Blake  <ebb9@byu.net>
65684
65685         * modules/dirname-tests: New test module.
65686         * tests/test-dirname.c: New file, replacing dirname.c
65687         TEST_DIRNAME section that was recently deleted.
65688
65689 2006-07-04  Bruno Haible  <bruno@clisp.org>
65690
65691         Assume ANSI C header files and <ctype.h> functions.
65692         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
65693         (mbsnwidth): Use isprint, iscntrl instead.
65694
65695 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
65696
65697         Merge from coreutils.
65698         * MODULES.html.sh: Add xstrtold.
65699         * modules/xstrtold: New file.
65700         * modules/cycle-check (Files): Add lib/same-inode.h.
65701         * modules/dirname (Files): Add m4/double-slash-root.m4.
65702         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
65703         * modules/mkdir-p (Files): Add lib/same-inode.h.
65704         * modules/same (Files): Add lib/same-inode.h.
65705
65706 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
65707
65708         * m4/absolute-header.m4: Renamed from full-header-path.m4.
65709         This is to keep the terminology clean; POSIX talks about
65710         "absolute pathnames", not "full pathnames", but the GNU
65711         Coding Standards say to use "path" for something else;
65712         so use "absolute" to keep both sides happy.
65713         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
65714         Set gl_absolute_header, not gl_full_header_path.
65715         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
65716         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
65717         All uses changed.
65718
65719         Merge from coreutils.
65720
65721         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
65722
65723         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
65724         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
65725         want to require the building of c-strtod.o.
65726         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
65727         needs -lm directly.
65728         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
65729
65730         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
65731
65732         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
65733         --as-needed option if available.  Problem reported by Albert Chin in
65734         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
65735         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
65736         cc merely issues a bunch of annoying warnings for --as-needed
65737         (this problem was reported by Bob Proulx).  Also, try linking with
65738         -lm to detect a bug in binutils 2.16 (this problem was reported
65739         by Ralf Wildenhues).
65740
65741         2006-06-18  Jim Meyering  <jim@meyering.net>
65742
65743         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
65744         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
65745         macro.
65746         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
65747         also check for glibc-2.4's abort-inducing bug.
65748
65749         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
65750         Low-probability clean-up should be to use rmdir to get rid of
65751         the just-created directory, not unlink.
65752
65753         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
65754         configure fail, and request a bug report to inform us about it.
65755         Add a comment that, barring reports to the contrary, in 2007 we'll
65756         assume ftruncate is universally available.
65757
65758         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
65759
65760         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
65761
65762         2006-03-12  Jim Meyering  <jim@meyering.net>
65763
65764         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
65765         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
65766         * m4/same.m4 (gl_SAME): Likewise.
65767         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
65768
65769         2006-03-11  Eric Blake  <ebb9@byu.net>
65770
65771         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
65772         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
65773         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
65774         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
65775
65776 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
65777
65778         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
65779         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
65780         reported by Mark D. Baushke, one in
65781         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
65782
65783         Merge from coreutils.
65784
65785         * lib/.cppi-disable: Add stdint_.h.
65786         * lib/.cvsignore: Add stdint.h.
65787
65788         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
65789
65790         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
65791         both double and long double versions.
65792         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
65793         * lib/xstrtold.c: New file.
65794         * lib/xstrtod.h (xstrtold): New decl.
65795
65796         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
65797
65798         * lib/filemode.c (setst): Remove.
65799         (strmode): Rewrite to avoid setst.  This makes the code shorter,
65800         (arguably) clearer, and the generated code is a bit smaller on my
65801         Debian GNU/Linux stable x86 host.
65802
65803         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
65804
65805         * lib/filemode.c: Include "filemode.h" first, to test the interface.
65806         Assume that filemode.h includes sys/types.h and sys/stat.h.
65807         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
65808         (ftypelet): Reorder to put common cases first, for efficiency.
65809         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
65810         to do 'M'.
65811         (strmode): Renamed from mode_string, and now stores 12 bytes instead
65812         of 10, for compatibility with FreeBSD.  All callers changed.
65813         (filemodestring): Now stores 12 bytes instead of 10, and sets file
65814         types that can't be deduced solely from st_mode.  First arg is now a
65815         const pointer.
65816         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
65817         (strmode): Renamed from mode_string.
65818         (filemodestring): New decl.
65819         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
65820         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
65821         needed.
65822         (S_ISPORT, S_ISWHT): New macros, if not already defined.
65823
65824         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
65825
65826         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
65827         fsusage.h now does that.  Include fsusage.h first, to test interface.
65828         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
65829         at most one method (the old code could have generated decls that
65830         didn't conform to C89, not that this was ever exercised).
65831         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
65832
65833         2006-03-19  Jim Meyering  <jim@meyering.net>
65834
65835         Work even in a chroot where d_ino values for entries in "/"
65836         don't match the stat.st_ino values for the same names.
65837         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
65838         number, iterate through all entries again, using lstat instead.
65839         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
65840         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
65841
65842         * lib/getcwd.c (__getcwd): Clarify a comment.
65843         Use memcpy in place of a call to strcpy.
65844
65845         2006-03-12  Jim Meyering  <jim@meyering.net>
65846
65847         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
65848         matches that of the current directory (which we're about to chdir ".."
65849         out of), then save the dev-ino of the parent, instead.
65850
65851         * lib/same-inode.h (SAME_INODE): New file/macro.
65852         * lib/chdir-safer.c (SAME_INODE): Remove definition.
65853         Include "same-inode.h", instead.
65854         * lib/same.c: Likewise.
65855         * lib/cycle-check.h: Include "same-inode.h".
65856         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
65857         * lib/cycle-check.c (SAME_INODE): Remove definition.
65858         * lib/root-dev-ino.h: Include "same-inode.h".
65859
65860         2006-03-11  Eric Blake  <ebb9@byu.net>
65861
65862         * lib/same.c (same_name): s/base_name/last_component/
65863         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
65864         * lib/filenamecat.c (file_name_concat): Likewise.
65865
65866         2006-03-11  Eric Blake  <ebb9@byu.net>,
65867                     Paul Eggert  <eggert@cs.ucla.edu>
65868
65869         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
65870         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
65871         drive prefix.
65872         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
65873         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
65874         (last_component): New method.
65875         * lib/dirname.c (dir_len): Determine when drive letters need a
65876         subsequent slash.  Preserve // when it is special.
65877         (dir_name): Don't append dot when drive letter is absolute.
65878         [TEST_DIRNAME]: Move into a full-blown gnulib test.
65879         * lib/basename.c (base_name): New semantics - malloc the result.
65880         Preserve // when it is special.  Preserve relative files that look
65881         like drive letters.
65882         (base_len): Preserve // when it is special.
65883         (last_component): New method, similar to old base_name semantics.
65884         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
65885         base_name.  Strip redundant slashes from ///.
65886
65887 2006-07-03  Jim Meyering  <jim@meyering.net>
65888
65889         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
65890         macro is used before the first cycle_check call.
65891
65892 2006-07-03  Eric Blake  <ebb9@byu.net>
65893
65894         * modules/dirname (Depends-on): Add xstrndup.
65895
65896 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
65897
65898         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
65899         test cases, so that config.log is a bit easier to follow.
65900
65901 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
65902
65903         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
65904         both are 64 bits, since this seems to be the tradition, and this
65905         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
65906         we ever run into a host that prefers long long to long in this
65907         case, we'll need another configure-time test.  Problem reported by
65908         Jim Meyering.
65909
65910 2006-07-02  Eric Blake  <ebb9@byu.net>
65911
65912         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
65913
65914 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
65915
65916         * modules/inttypes (Depends-on): No longer depends on stdint.
65917         * modules/stdint (Description): Say more about assumptions.
65918         Say that the fast types might differ.  Say macros are used.
65919         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
65920         (Makefile.am): Revise list of substituted symbols to match
65921         new stdint.m4.
65922         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
65923         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
65924         * tests/test-stdint.c (verify_same_types)
65925         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
65926         the code conforms to C99/C89.
65927         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
65928         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
65929
65930 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
65931
65932         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
65933         but fix a bug, by requiring at least 64 bits.
65934         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
65935         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
65936         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
65937         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
65938
65939         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
65940         changes.  Make 2.59 a prerequisite.  Check and substitute for
65941         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
65942         inttypes.h.  Do not use special include files; just use the
65943         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
65944         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
65945         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
65946         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
65947         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
65948         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
65949         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
65950         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
65951         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
65952         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
65953         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
65954         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
65955         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
65956         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
65957         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
65958         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
65959         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
65960         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
65961         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
65962         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
65963         WINT_MAX.  Check for C99 conformance more strictly, by detecting
65964         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
65965         not check for things that C99 does not require, e.g., int8_t.  If
65966         a test isn't needed unless <stdint.h> isn't working, and is
65967         unlikely to be needed for any other reason, then don't do it
65968         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
65969         size_t, since we assume C89 freestanding at least.  Do not check
65970         for sig_atomic_t, wchar_t, or wint_t, since the code now does
65971         the right thing even if the types are not defined.  Instead use:
65972         (gl_STDINT_TYPE_PROPERTIES): New macro.
65973         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
65974         testing whether <sys/types.h> clashes, as Autoconf does this for
65975         us now.  All uses removed.
65976         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
65977         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
65978         (gl_CHECK_TYPE_SAME):
65979         Remove; no longer needed.
65980         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
65981         exists, since we'll return 0 anyway in that case.
65982         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
65983
65984 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
65985
65986         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
65987         possible collision with system files.
65988         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
65989         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
65990         WCHAR_MIN and WCHAR_MAX in this case.
65991         (<stddef.h>): Do not include; no longer needed.
65992         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
65993         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
65994         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
65995         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
65996         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
65997         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
65998         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
65999         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
66000         !defined(__c99))]: Include in this case too, since it's harmless
66001         now.
66002         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
66003         dangerous to do so.
66004         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
66005         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
66006         (_STDINT_MIN, _STDINT_MAX): New macros.
66007         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
66008         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
66009         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
66010         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
66011         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
66012         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
66013         macros, not typedefs; this simplifies things quite a bit.
66014         Use long int for all types narrower than int64_t.
66015         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
66016         Define in terms of long long int or int64_t or long int,
66017         not int64_t or int32_t.  This saves some compile-time testing.
66018         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
66019         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
66020         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
66021         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
66022         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
66023         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
66024         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
66025         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
66026         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
66027         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
66028         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
66029         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
66030         undef any previous version and define our own version, for
66031         simplicity and consistency with the new macros for types.
66032         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
66033         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
66034         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
66035         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
66036         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
66037         @WINT_T_SUFFIX@ to keep things simple here.
66038         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
66039         Simplify by assuming typical 8/16/32/64 host, since we're
66040         already doing that elsewhere anyway.
66041         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
66042         and assume long long int is 64 bits if available.  This
66043         speeds up 'configure'.
66044
66045 2006-07-01  Eric Blake  <ebb9@byu.net>
66046
66047         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
66048         Reported by Andreas Buening.
66049
66050 2006-07-01  Eric Blake  <ebb9@byu.net>
66051
66052         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
66053
66054 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
66055
66056         * lib/getaddrinfo.c: fixed typo
66057
66058 2006-06-29  Jim Meyering  <jim@meyering.net>
66059
66060         * modules/strftime (Maintainer): Add my name, since with the
66061         FPRINTFTIME changes strftime.c has forked from glibc.
66062
66063 2006-06-29  Eric Blake  <ebb9@byu.net>
66064
66065         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
66066
66067 2006-06-29  Eric Blake  <ebb9@byu.net>
66068
66069         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
66070
66071 2006-06-29  Eric Blake  <ebb9@byu.net>
66072
66073         * lib/stat_.h: New file.
66074
66075 2006-06-29  Eric Blake  <ebb9@byu.net>
66076
66077         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
66078         unused static function.
66079
66080 2006-06-29  Eric Blake  <ebb9@byu.net>
66081
66082         * doc/functions.texi (Function Portability): Document missing lstat
66083         on mingw.
66084
66085 2006-06-29  Eric Blake  <ebb9@byu.net>
66086
66087         * MODULES.html.sh: Add sys_stat.
66088         * modules/sys_stat: New module.
66089         * modules/mkstemp (Depends-on): Add sys_stat.
66090
66091 2006-06-29  Derek R. Price  <derek@ximbiot.com>
66092
66093         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
66094
66095 2006-06-29  Derek R. Price  <derek@ximbiot.com>
66096
66097         * m4/c-bs-a.m4: Removed.
66098
66099 2006-06-29  Derek R. Price  <derek@ximbiot.com>
66100
66101         * lib/strftime.c: Assume strftime() exists.
66102
66103 2006-06-29  Derek Price  <derek@ximbiot.com>
66104
66105         * modules/c-bs-a: Removed - \a is C89.
66106         * MODULES.html.sh: Remove c-bs-a.
66107
66108 2006-06-29  Bruno Haible  <bruno@clisp.org>
66109
66110         * modules/wcwidth (License): Change to LGPL.
66111
66112 2006-06-28  Simon Josefsson  <jas@extundo.com>
66113
66114         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
66115         on _WIN32.
66116
66117         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
66118         getnameinfo.
66119
66120 2006-06-28  Simon Josefsson  <jas@extundo.com>
66121
66122         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
66123
66124 2006-06-28  Simon Josefsson  <jas@extundo.com>
66125
66126         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
66127         functions there.  It will succeed on Windows XP, but on Windows
66128         2000 and (presumably) earlier, it will fail, and use the internal
66129         re-implementation.
66130         (use_win32_p): New function.
66131         (getaddrinfo): Use strtoul on servname, to support numeric ports.
66132         Support AI_NUMERICSERV to disable getservbyname.
66133         (getnameinfo): New function, only supports
66134         NI_NUMERICHOST|NI_NUMERICSERV for now.
66135
66136         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
66137         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
66138         getnameinfo.
66139
66140 2006-06-28  Eric Blake  <ebb9@byu.net>
66141
66142         * modules/wcwidth: New file.
66143         * modules/mbchar (Depends-on): Add wcwidth.
66144         * modules/mbswidth (Depends-on): Add wcwidth.
66145         * MODULES.html.sh: Add wcwidth.
66146
66147 2006-06-28  Eric Blake  <ebb9@byu.net>
66148
66149         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
66150         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
66151
66152 2006-06-28  Eric Blake  <ebb9@byu.net>
66153
66154         * lib/xvasprintf.h: Fix comments.
66155
66156 2006-06-28  Eric Blake  <ebb9@byu.net>
66157
66158         * lib/mbchar.h (wcwidth): Include wcwidth.h.
66159         * lib/mbswidth.c (wcwidth): Move from here...
66160         * lib/wcwidth.h: ...to this new file.
66161
66162 2006-06-28  Derek R. Price  <derek@ximbiot.com>
66163
66164         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
66165
66166         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
66167         it's obsolete.
66168         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
66169
66170 2006-06-28  Derek R. Price  <derek@ximbiot.com>
66171
66172         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
66173         Autoconf 2.60 says this stuff was obsolete.
66174
66175 2006-06-28  Bruno Haible  <bruno@clisp.org>
66176
66177         * modules/wcwidth (Files): Add m4/wchar_t.m4.
66178
66179 2006-06-28  Bruno Haible  <bruno@clisp.org>
66180
66181         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
66182         gt_TYPE_WCHAR_T.
66183
66184 2006-06-28  Bruno Haible  <bruno@clisp.org>
66185
66186         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
66187         declaration for wcwidth.
66188         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
66189
66190 2006-06-28  Bruno Haible  <bruno@clisp.org>
66191
66192         * lib/mkdtemp.c [MINGW]: Include <io.h>.
66193         (mkdir): Define using _mkdir.
66194
66195 2006-06-28  Bruno Haible  <bruno@clisp.org>
66196
66197         * lib/getaddrinfo.h: Fix POSIX URL.
66198         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
66199         _WIN32.
66200         (use_win32_p): Make static.
66201         (getaddrinfo): Reject service name if it is empty or does not consist
66202         solely of decimal digits, or if its value is > 65535.
66203         (getnameinfo): Remove useless casts.
66204
66205 2006-06-27  Simon Josefsson  <jas@extundo.com>
66206
66207         * modules/sys_select: New file, suggested by Bruno Haible, Paul
66208         Eggert and Martin Lambers.
66209
66210 2006-06-27  Simon Josefsson  <jas@extundo.com>
66211
66212         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
66213         Eggert and Martin Lambers.
66214
66215 2006-06-27  Bruno Haible  <bruno@clisp.org>
66216
66217         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
66218         result to 0, not to empty.
66219         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
66220
66221 2006-06-27  Bruno Haible  <bruno@clisp.org>
66222
66223         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
66224
66225 2006-06-26  Simon Josefsson  <jas@extundo.com>
66226
66227         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
66228         present.
66229
66230 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
66231
66232         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
66233         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
66234         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
66235
66236 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
66237
66238         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
66239
66240 2006-06-26  Bruno Haible  <bruno@clisp.org>
66241
66242         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
66243
66244 2006-06-26  Bruno Haible  <bruno@clisp.org>
66245
66246         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
66247
66248 2006-06-26  Bruno Haible  <bruno@clisp.org>
66249
66250         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
66251         SGI C compiler in pre-C99 mode.
66252         Suggested by Mark D. Baushke and Larry Jones.
66253
66254 2006-06-26  Bruno Haible  <bruno@clisp.org>
66255
66256         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
66257         WCHAR_MAX.
66258         Reported by Mark D. Baushke and Larry Jones.
66259
66260 2006-06-26  Bruno Haible  <bruno@clisp.org>
66261
66262         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
66263         in pre-C99 mode.
66264         Suggested by Mark D. Baushke and Larry Jones.
66265
66266 2006-06-23  Simon Josefsson  <jas@extundo.com>
66267             Bruno Haible  <bruno@clisp.org>
66268
66269         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
66270         Emit mostlyclean-local rule.
66271         (func_emit_tests_Makefile_am): Likewise.
66272         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
66273
66274 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
66275
66276         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
66277
66278 2006-06-23  Bruno Haible  <bruno@clisp.org>
66279
66280         * tests/test-stdint.c: Update to match ISO C 99 Technical
66281         Corrigendum 1.
66282
66283 2006-06-23  Bruno Haible  <bruno@clisp.org>
66284
66285         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
66286
66287 2006-06-23  Bruno Haible  <bruno@clisp.org>
66288
66289         * lib/stdint_.h: Treat IRIX like OpenBSD.
66290
66291 2006-06-23  Bruno Haible  <bruno@clisp.org>
66292
66293         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
66294         ISO C 99 Technical Corrigendum 1.
66295
66296 2006-06-22  Simon Josefsson  <jas@extundo.com>
66297
66298         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
66299         MinGW.
66300
66301 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
66302
66303         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
66304         needed.  Some compiler complained about some of them.  Problem reported
66305         by Larry Jones in
66306         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
66307
66308 2006-06-21  Simon Josefsson  <jas@extundo.com>
66309
66310         * tests/test-getaddrinfo.c: New file.
66311
66312         * modules/getaddrinfo-tests: New file.
66313
66314         * MODULES.html.sh: Add inet_pton.
66315
66316         * modules/inet_pton: New file.
66317
66318 2006-06-21  Simon Josefsson  <jas@extundo.com>
66319
66320         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
66321         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
66322         of using the (limited) gnulib implementation on Windows XP.
66323
66324         * m4/inet_pton.m4: New file.
66325
66326 2006-06-21  Simon Josefsson  <jas@extundo.com>
66327
66328         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
66329         variable.
66330
66331         * lib/socket_.h: Don't define WINVER.
66332
66333         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
66334         slightly modified to work in gnulib.
66335
66336 2006-06-21  Simon Josefsson  <jas@extundo.com>
66337
66338         * doc/gnulib.texi (Windows sockets): Add.
66339
66340 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
66341
66342         * lib/read-file.c (fread_file): Start with buffer allocation of
66343         0 bytes rather than 1 byte; this simplifies the code.
66344         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
66345         code to free buffer and save/restore errno.
66346         (internal_read_file): Remove unused local.
66347
66348 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
66349
66350         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
66351         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
66352         Problem reported by Denis Excoffier in
66353         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
66354
66355 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
66356
66357         * modules/sys_socket, modules/socklen: Include sys/types since
66358         FreeBSD 4.x's sys/socket.h needs it.
66359
66360 2006-06-19  Simon Josefsson  <jas@extundo.com>
66361
66362         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
66363
66364 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
66365
66366         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
66367
66368 2006-06-19  Bruno Haible  <bruno@clisp.org>
66369
66370         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
66371         and FULL_PATH_INTTYPES_H in angle brackets.
66372         Reported by Mark D. Baushke <mdb@gnu.org>.
66373
66374 2006-06-17  Eric Blake  <ebb9@byu.net>
66375
66376         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
66377         errno.
66378
66379 2006-06-17  Bruno Haible  <bruno@clisp.org>
66380
66381         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
66382         <sys/inttypes.h>.
66383
66384 2006-06-17  Bruno Haible  <bruno@clisp.org>
66385
66386         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
66387         whether errno is declared. Assume <errno.h> declares errno.
66388
66389 2006-06-17  Bruno Haible  <bruno@clisp.org>
66390
66391         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
66392
66393 2006-06-17  Bruno Haible  <bruno@clisp.org>
66394
66395         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
66396         problem on Solaris 2.5.1.
66397
66398 2006-06-16  Eric Blake  <ebb9@byu.net>
66399
66400         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
66401         * lib/unicodeio.c [!defined errno]: Likewise.
66402         * lib/strtol.c [!defined errno]: Likewise.
66403         * lib/strtod.c [!defined errno]: Likewise.
66404
66405 2006-06-15  Eric Blake  <ebb9@byu.net>
66406
66407         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
66408
66409 2006-06-15  Eric Blake  <ebb9@byu.net>
66410
66411         * config/srclist.txt (ssize_t.m4): Lose sync.
66412
66413 2006-06-15  Bruno Haible  <bruno@clisp.org>
66414
66415         * modules/stdint (Files): Include m4/full-header-path.m4,
66416         m4/size_max.m4, m4/wchar_t.m4.
66417         (Makefile.am): Many more substitutions.
66418         * modules/stdint-tests: New file.
66419         * tests/test-stdint.c: New file.
66420
66421 2006-06-15  Bruno Haible  <bruno@clisp.org>
66422
66423         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
66424         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
66425         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
66426         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
66427         gl_CHECK_TYPE_SAME): New macros.
66428
66429 2006-06-15  Bruno Haible  <bruno@clisp.org>
66430
66431         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
66432
66433 2006-06-15  Bruno Haible  <bruno@clisp.org>
66434
66435         * lib/stdint_.h: Rewritten to be fully auto-configured.
66436         Fixes bug on HP-UX/IA64.
66437
66438 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
66439
66440         * lib/getdate.y (__attribute__): Don't define if already defined.
66441         Problem reported by Larry Jones.
66442         * lib/utimens.c (__attribute__): Likewise.
66443
66444 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
66445
66446         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
66447         reported by Andreas Schwab.
66448
66449 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66450             Bruno Haible  <bruno@clisp.org>
66451
66452         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
66453         check for the declaration of strnlen and a run test that exposes the
66454         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
66455         rpl_strndup.
66456
66457 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66458             Bruno Haible  <bruno@clisp.org>
66459
66460         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
66461
66462 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66463
66464         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
66465         compile test, for Tru64 4.0D.
66466
66467 2006-05-28  Karl Berry  <karl@gnu.org>
66468
66469         * config/srclist.txt (printf-args.c): lose sync.
66470
66471 2006-05-26  Martin Lambers  <marlam@marlam.de>
66472
66473         * lib/getpass.c: Updates the test for the native W32 API, and adds
66474         missing includes, thus fixing compilation warnings.
66475
66476 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
66477
66478         * lib/exclude.c (exclude_fnmatch): New function.
66479         (excluded_file_name): Call exclude_fnmatch.
66480         * lib/exclude.h (excluded_file_name): New prototype
66481
66482 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
66483
66484         * lib/tempname.c (small_open, large_open): New macros.
66485         (__open, __open64) [!_LIBC]: Remove.
66486         (__gen_tempname): Use small_open and large_open instead of __open
66487         and __open64.  This fixes a portability bug on HP-UX 11.11i
66488         reported by Simon Wing-Tang in
66489         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
66490
66491 2006-05-24  Bruno Haible  <bruno@clisp.org>
66492
66493         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
66494         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
66495         Reported by Thorsten Maerz <torte@netztorte.de> via
66496         Aaron Stone <aaron@serendipity.cx>.
66497
66498 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
66499
66500         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
66501         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
66502         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
66503         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
66504         not really conditional on the cache.
66505         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
66506
66507 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
66508
66509         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
66510         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
66511         (my_usleep): Don't mishandle maximum value.
66512
66513 2006-05-19  Jim Meyering  <jim@meyering.net>
66514
66515         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
66516
66517 2006-05-17  Bruno Haible  <bruno@clisp.org>
66518
66519         Cygwin portability.
66520         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
66521
66522 2006-05-17  Bruno Haible  <bruno@clisp.org>
66523
66524         * lib/stdint_.h: Fix recognition of Cygwin.
66525
66526 2006-05-15  Bruno Haible  <bruno@clisp.org>
66527
66528         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
66529         on libtool patch by Ralf Wildenhues.
66530
66531 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
66532
66533         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
66534         test for C99 conformance; (bool) 0.5 is an integer constant
66535         expression, but (bool) -0.5 is not.  Problem reported by Fedor
66536         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
66537
66538 2006-05-11  Simon Josefsson  <jas@extundo.com>
66539
66540         * m4/xvasprintf.m4: Fix obvious typo.
66541
66542 2006-05-11  Jim Meyering  <jim@meyering.net>
66543
66544         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
66545         James Lemley.
66546
66547 2006-05-10  Simon Josefsson  <jas@extundo.com>
66548
66549         * lib/md4.c: Typo fix, update copyright years.
66550         (K1, K2): Don't use L because it turn computations into 64-bit on
66551         64-bit platforms.
66552
66553 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
66554
66555         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
66556         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
66557         unwanted sign propagation, e.g., on hosts with 64-bit int.
66558         There still are some problems with reeelly weird theoretical hosts
66559         (e.g., 33-bit int) but it's not worth worrying about now.
66560         * lib/sha1.c (rol): Likewise.
66561         (K1, K2, K3, K4): Remove unnecessary L suffix.
66562
66563 2006-05-10  Bruno Haible  <bruno@clisp.org>
66564
66565         * lib/des.c: Cast to avoid warnings.
66566
66567 2006-05-09  Bruno Haible  <bruno@clisp.org>
66568
66569         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
66570         (Depends-on): Depend also on xsize, stdarg.
66571         (configure.ac): Add gl_XVASPRINTF.
66572
66573 2006-05-09  Bruno Haible  <bruno@clisp.org>
66574
66575         * m4/xvasprintf.m4: New file.
66576
66577 2006-05-09  Bruno Haible  <bruno@clisp.org>
66578
66579         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
66580         (EOVERFLOW): Define fallback value.
66581         (xstrcat): New function.
66582         (xvasprintf): Recognize the special case of a string concatenation.
66583
66584 2006-05-08  Eric Blake  <ebb9@byu.net>
66585
66586         * gnulib-tool (func_version): Base copyright year on CVS date.
66587         (func_emit_copyright_notice): New function.
66588         (func_emit_lib_Makefile_am): Use it.
66589         (func_emit_tests_Makefile_am): Likewise.
66590         (func_import): Likewise.
66591
66592 2006-05-08  Bruno Haible  <bruno@clisp.org>
66593
66594         * modules/stdarg: New file.
66595         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
66596
66597 2006-05-08  Bruno Haible  <bruno@clisp.org>
66598
66599         * m4/stdarg.m4: New file, from GNU gettext.
66600
66601 2006-05-08  Bruno Haible  <bruno@clisp.org>
66602
66603         * config/srclist.txt (build-aux/config.rpath): different from latest
66604         release.
66605
66606 2006-05-08  Bruno Haible  <bruno@clisp.org>
66607
66608         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
66609
66610 2006-05-05  Jim Meyering  <jim@meyering.net>
66611
66612         * m4/warning.m4: New file, derived from bison's file by the same name.
66613
66614 2006-05-03  Bruno Haible  <bruno@clisp.org>
66615
66616         * lib/stdint_.h: Shorter URL.
66617         * lib/inttypes.h: Likewise.
66618
66619 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
66620
66621         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
66622
66623 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
66624
66625         * lib/verify.h: Document the internals better.  Most of this change
66626         was written by Bruno Haible.
66627
66628 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
66629
66630         * doc/verify.texi: New file, partly based on a proposal by
66631         Bruno Haible.
66632
66633 2006-05-02  Bruno Haible  <bruno@clisp.org>
66634
66635         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
66636         test from here...
66637         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
66638
66639 2006-04-29  Bruno Haible  <bruno@clisp.org>
66640
66641         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
66642         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
66643
66644 2006-04-29  Bruno Haible  <bruno@clisp.org>
66645
66646         * gnulib-tool: Make --update option actually work.
66647
66648 2006-04-29  Bruno Haible  <bruno@clisp.org>
66649
66650         * doc/gcd.texi: New file.
66651         * doc/gnulib.texi: Include it.
66652
66653 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
66654
66655         * lib/getdate.y (get_date): When adding relative date, start with the
66656         initial time, not with the result of the first mktime call.
66657
66658 2006-04-25  Bruno Haible  <bruno@clisp.org>
66659
66660         * gnulib-tool (func_import): Output the include directives in three
66661         blocks, sorted separately.
66662         Reported by Ben Pfaff <blp@cs.stanford.edu>.
66663
66664 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
66665
66666         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
66667         to define main with arguments, for C++.  Reported by Eric Blake.
66668         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
66669         Prefer 'int main ()' to 'int main (void)', for C++.
66670         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
66671         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
66672         for 'main', for C99 and C++.
66673
66674 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
66675
66676         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
66677         Don't assume that exit status -1 is valid.
66678         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
66679         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
66680         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
66681         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
66682         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
66683         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
66684         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
66685         functions can be used without declaring them, or that you can
66686         exit with status -1.
66687         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
66688
66689 2006-04-24  Karl Berry  <karl@gnu.org>
66690
66691         * config/srclist.txt (longdouble.m4): sync lost.
66692
66693 2006-04-24  Eric Blake  <ebb9@byu.net>
66694
66695         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
66696
66697 2006-04-24  Bruno Haible  <bruno@clisp.org>
66698
66699         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
66700         poll() implementation in AIX.
66701         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
66702
66703 2006-04-24  Bruno Haible  <bruno@clisp.org>
66704
66705         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
66706         assigned exactly once.
66707
66708 2006-04-23  Claudio Fontana  <claudio@gnu.org>
66709             Bruno Haible  <bruno@clisp.org>
66710
66711         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
66712         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
66713         for AM_CPPFLAGS.
66714
66715 2006-04-23  Bruno Haible  <bruno@clisp.org>
66716
66717         * modules/copy-file: Depend on unistd.
66718         * modules/execute: Likewise.
66719         * modules/fatal-signal: Likewise.
66720         * modules/findprog: Likewise.
66721         * modules/mkdtemp : Likewise.
66722         * modules/pipe: Likewise.
66723         * modules/wait-process: Likewise.
66724
66725 2006-04-23  Bruno Haible  <bruno@clisp.org>
66726
66727         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
66728         condition was already detected.
66729         Reported by Ben Pfaff <blp@cs.stanford.edu>.
66730
66731 2006-04-23  Bruno Haible  <bruno@clisp.org>
66732
66733         * lib/copy-file.c: Include <unistd.h> unconditionally.
66734         * lib/execute.c: Likewise.
66735         * lib/fatal-signal.c: Likewise.
66736         * lib/findprog.c: Likewise.
66737         * lib/mkdtemp.c: Likewise.
66738         * lib/pipe.h: Likewise.
66739         * lib/pipe.c: Likewise.
66740         * lib/wait-process.h: Likewise.
66741
66742 2006-04-23  Bruno Haible  <bruno@clisp.org>
66743
66744         * gnulib-tool (func_usage): Fix --import description. Document
66745         --update.
66746         (func_import): Create temporary file in a temporary directory, if
66747         --dry-run is specified. Silence errors from 'grep' when there are no
66748         m4 files in $m4dir.
66749         (func_create_testdir): Silence errors from 'grep' when there are no
66750         m4 files in $m4dir.
66751         Reported by Karl Berry <karl@freefriends.org>.
66752
66753 2006-04-20  Bruno Haible  <bruno@clisp.org>
66754
66755         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
66756         one argument, so that the code will be portable to Autoconf 2.60.
66757         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
66758         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
66759         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
66760
66761 2006-04-19  Derek Price  <derek@ximbiot.com>
66762             Eric Blake  <ebb9@byu.net>
66763
66764         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
66765         rather than "/full/path.h".  Update comment to match.  Shorten &
66766         generalize m4_translit call via AS_TR_CPP.
66767
66768 2006-04-19  Derek Price  <derek@ximbiot.com>
66769             Eric Blake  <ebb9@byu.net>
66770
66771         * lib/inttypes.h: Correct grammar in comment.
66772
66773 2006-04-18  Derek Price  <derek@ximbiot.com>
66774             Paul Eggert  <eggert@cs.ucla.edu>
66775
66776         * modules/inttypes: New file.
66777         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
66778
66779 2006-04-18  Derek Price  <derek@ximbiot.com>
66780             Paul Eggert  <eggert@cs.ucla.edu>
66781
66782         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
66783         New files.
66784
66785 2006-04-18  Derek Price  <derek@ximbiot.com>
66786             Paul Eggert  <eggert@cs.ucla.edu>
66787
66788         * lib/inttypes.h: New file.
66789         * lib/strtoimax.c: Assume <inttypes.h>.
66790
66791 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
66792
66793         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
66794         isn't mounted.  Problem reported by Kir Kolyshkin.
66795
66796 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
66797
66798         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
66799         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
66800         Derek R. Price.
66801         * lib/regex.h (RE_DUP_MAX): Update comment to match current
66802         implementation.
66803
66804 2006-04-12  Eric Blake  <ebb9@byu.net>
66805
66806         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
66807         is now done automatically by the corresponding Autoconf macro.
66808
66809 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
66810
66811         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
66812         time_r.h.
66813
66814 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
66815
66816         Merge regex changes from libc, removing some of our
66817         POSIX-conformance changes that were rejected and redoing them in a
66818         less-intrusive way.
66819
66820         * lib/regcomp.c (re_compile_internal, init_dfa):
66821         Length arg is now size_t, not Idx.  All uses changed.
66822         (peek_token): Forward decl now says internal_function.
66823         (__re_error_msgid, __re_error_msgid_idx):
66824         Now static rather than extern with attribute_hidden.
66825         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
66826         For some reason libc prefers K&R style defns for external functions.
66827         (regerror) [!defined _LIBC]: Likewise.
66828         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
66829         (seek_collating_symbol_entry, lookup_collation_sequence_value):
66830         (build_range_exp, build_collating_symbol):
66831         Use K&R-style defn.
66832         (re_compile_fastmap): Use '\0' to memset, not 0.
66833         (utf8_sb_map): Make the calculations more obvious.
66834         (init_dfa, parse_bracket_exp, build_charclass_op):
66835         Call calloc and cast result, as glibc does.
66836         (init_word_char, fetch_token, peek_token, peek_token_bracket):
66837         (build_range_exp, build_collating_symbol):
66838         Now internal functions.
66839
66840         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
66841
66842         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
66843         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
66844         Don't depend on VMS; depend on __VMS instead, for POSIX
66845         namespace cleanness.
66846         (regoff_t): Define to ssize_t, not long int.
66847
66848         Remove the REG_ macros named below.  Instead, make the old names
66849         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
66850         __USE_GNU_REGEX.
66851         (REG_BACKSLASH_ESCAPE_IN_LISTS):
66852         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
66853         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
66854         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
66855         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
66856         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
66857         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
66858         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
66859         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
66860         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
66861         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
66862         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
66863         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
66864         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
66865         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
66866         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
66867         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
66868         (REG_NREGS):
66869         Remove.  All uses replaced by the old RE_* names.
66870         (RE_BACKSLASH_ESCAPE_IN_LISTS):
66871         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
66872         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
66873         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
66874         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
66875         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
66876         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
66877         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
66878         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
66879         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
66880         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
66881         Don't bother having these macros be independent of each others'
66882         values, since they no longer exist in the POSIX name space.
66883
66884         Rename the following member names back to their old names,
66885         unless !__USE_GNU_REGEX.  All uses changed back.
66886         (buffer): Renamed from re_buffer.
66887         (allocated): Renamed from re_allocated.
66888         (used): Renamed from re_used.
66889         (syntax): Renamed from re_syntax.
66890         (fastmap): Renamed from re_fastmap.
66891         (translate): Renamed from re_translate.
66892         (can_be_null): Renamed from re_can_be_null.
66893         (regs_allocated): Renamed from re_regs_allocated.
66894         (fastmap_accurate): Renamed from re_fastmap_accurate.
66895         (no_sub): Renamed from re_no_sub.
66896         (not_bol): Renamed from re_not_bol.
66897         (not_eol): Renamed from re_not_eol.
66898         (newline_anchor): Renamed from re_newline_anchor.
66899         (num_regs): Renamed from rm_num_regs.
66900         (start): Renamed from rm_start.
66901         (end): Renamed from rm_end.
66902
66903         (free_state): Move up a bit.
66904
66905         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
66906         #define to be empty.
66907         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
66908         when that is what is intended.
66909         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
66910         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
66911         (MAX): New macro.
66912         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
66913         All uses changed back to re_malloc, etc.  It's now the caller's
66914         responsibility to check for overflow; all callers changed.
66915         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
66916         (re_x2nrealloc): Remove.
66917         (free_state): Remove decl.
66918
66919         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
66920         (re_set_registers, re_exec):
66921         Use K&R-style defn.
66922
66923         2006-01-31  Roland McGrath  <roland@redhat.com>
66924
66925         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
66926         Reported by Mike Frysinger <vapier@gentoo.org>.
66927
66928         2006-01-15  Andreas Jaeger  <aj@suse.de>
66929
66930         [BZ #1950]
66931         * lib/regex_internal.c (re_string_reconstruct): Adjust for
66932         build_wcs_upper_buffer change.
66933         (build_wcs_upper_buffer): Change return type.
66934
66935         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
66936
66937         * lib/regex_internal.h: Include <stdint.h> if available.
66938
66939         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
66940
66941         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
66942
66943         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
66944
66945         * lib/regcomp.c: Adjust for changed secondary hash function.
66946
66947         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
66948
66949         * lib/regex.h: Pretty printing.
66950         Clean up namespace a bit.
66951
66952         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
66953
66954         * lib/regexec.c (update_cur_sifted_state, check_arrival,
66955         check_arrival_add_next_nodes): Avoid using uninitialized variable.
66956
66957         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
66958                     Ulrich Drepper  <drepper@redhat.com>
66959
66960         [BZ #1302]
66961         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
66962         changed.
66963         (bitset_word_t): Renamed from bitset_word.  All uses changed.
66964
66965         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
66966
66967         [BZ #281]
66968         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
66969         * lib/regcomp.c: Remove unnecessary uses of
66970         unsigned RE_TRANSLATE_TYPE.
66971         * lib/regex_internal.h: Likewise.
66972         * lib/regex_internal.c: Likewise.
66973         * lib/regexec.c: Likewise.
66974         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
66975
66976         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
66977
66978         * lib/regexec.c (find_recover_state): Remove unnecessary
66979         initialization.
66980         (transit_state_bkref): Make DFA a const pointer.
66981         (get_subexp): Likewise.
66982         (check_arrival): Likewise.
66983         (update_cur_sifted_state): Likewise.
66984         (re_search_internal): Likewise.
66985         (prune_impossible_nodes): Likewise.
66986         (acquire_init_state_context): Likewise.
66987         (proceed_next_node): Likewise.
66988         (set_regs): Likewise.
66989         (free_fail_stack_return): Likewise.
66990         (check_arrival_expand_ecl): Mark DFA parameter as const.
66991         (check_arrival_expand_ecl_sub): Likewise.
66992         (check_subexp_limits): Likewise.
66993         (sub_epsilon_src_nodes):  Likewise.
66994         (add_epsilon_src_nodes):  Likewise.
66995         (merge_state_array): Likewise.
66996         (update_regs): Likewise.
66997         (build_trtable): Likewise.
66998         (sift_states_backward): Mark MCTX parameter as const.
66999         (build_sifted_states): Likewise.
67000         (update_cur_sifted_state): Likewise.
67001         (sift_states_mkref): Likewise.
67002         (check_arrival_expand_ecl): Mark eclosure as const.
67003         (check_dst_limits_calc_pos_1): Likewise.
67004         * lib/regex_internal.h (re_match_context_t): Make dfa a const
67005         pointer.
67006
67007         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
67008
67009         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
67010         (transit_state_sb): Likewise.
67011         (transit_state_mb): Likewise.
67012         (sift_states_iter_mb): Likewise.
67013         (check_arrival_add_next_nodes): Likewise.
67014         (check_node_accept_bytes): Change first parameter to pointer-to-const.
67015         [_LIBC] (re_search_2_stub): Use mempcpy.
67016
67017         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
67018         mbrtowc for very simple UTF-8 case.
67019
67020         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
67021         a pointer-to-const.
67022         (re_acquire_state_context): Likewise.
67023         * lib/regex_internal.h: Adjust prototypes.
67024
67025         * lib/regex.c: Prevent using C++ compilers.
67026
67027         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
67028         (re_acquire_state_context): Likewise.
67029
67030 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
67031
67032         * modules/regex (Depends-on): Add ssize_t.
67033
67034 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
67035
67036         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
67037         translation table.
67038
67039 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
67040
67041         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
67042
67043 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
67044             Bruno Haible  <bruno@clisp.org>
67045
67046         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
67047         <sys/types.h> and <inttypes.h>.
67048
67049 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67050
67051         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
67052         `__error_t_defined', so argp.h will not typedef the former.
67053
67054 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
67055
67056         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
67057         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
67058         glibc names.  Even if glibc is changed to conform to POSIX, the
67059         traditional names will be available anyway, since regex depends on
67060         the extensions module.  Also, fix a longstanding typo in the
67061         implementation of Spencer ERE test #75 from grep 2.3.  Problems
67062         reported by Emanuele Giaquinta.  Also, change sense of cached
67063         variable, so that the message makes sense.
67064
67065 2006-03-24  Simon Josefsson  <jas@extundo.com>
67066
67067         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
67068         including some doc fixes.
67069         (base64_encode_alloc): Fix +1 bug on allocation failures.
67070
67071 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67072
67073         * lib/base64.c (base64_encode): Do not read past end of array with
67074         unsanitized input on systems with CHAR_BIT > 8.
67075
67076 2006-03-24  Eric Blake  <ebb9@byu.net>
67077
67078         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
67079
67080 2006-03-22  Karl Berry  <karl@gnu.org>
67081
67082         * config/srclist.txt (*setenv.[ch]): get from coreutils.
67083         * config/srclistvars.sh (COREUTILS): new var.
67084
67085 2006-03-17  Jim Meyering  <jim@meyering.net>
67086
67087         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
67088         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
67089
67090 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
67091
67092         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
67093         no longer needs it.  Instead, check that regoff_t is as least
67094         as wide as ptrdiff_t.
67095
67096         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
67097         so that our regex.h stays compatible with the installed regex.
67098         This is helpful for installers who configure --without-included-regex.
67099         Problem reported by Emanuele Giaquinta.
67100
67101 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
67102
67103         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
67104         Typedef to long int, not to off_, as POSIX will likely change
67105         in that direction.
67106
67107 2006-03-15  Eric Blake  <ebb9@byu.net>
67108
67109         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
67110
67111 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
67112
67113         * lib/argp-help.c (validate_uparams): Fix typo
67114         * lib/argp-parse.c (argp_default_options): Consistently begin help
67115         messages with a lowercase letter.
67116
67117 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
67118
67119         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
67120         overrun buffers and shouldn't be used (much as gets shouldn't be
67121         used).
67122         * lib/time_r.c (asctime_r, ctime_r): Likewise.
67123
67124 2006-03-08  Simon Josefsson  <jas@extundo.com>
67125
67126         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
67127         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
67128
67129 2006-03-08  Simon Josefsson  <jas@extundo.com>
67130
67131         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
67132         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
67133
67134 2006-03-08  Simon Josefsson  <jas@extundo.com>
67135
67136         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
67137         signal that configure disabled the device.
67138
67139 2006-03-08  Simon Josefsson  <jas@extundo.com>
67140
67141         * build-aux/maint.mk: Fix refresh-po, to handle no translated
67142         languages.
67143
67144 2006-03-07  Simon Josefsson  <jas@extundo.com>
67145
67146         * modules/getopt (Depends-on): Add unistd.
67147
67148         * modules/unistd: New file.
67149
67150 2006-03-07  Simon Josefsson  <jas@extundo.com>
67151
67152         * modules/gc-random: New file.
67153
67154 2006-03-07  Simon Josefsson  <jas@extundo.com>
67155
67156         * m4/unistd_h.m4: New file.
67157
67158 2006-03-07  Simon Josefsson  <jas@extundo.com>
67159
67160         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
67161         test to be side-effect free by storing the result in the cache
67162         variable gl_cv_lib_readline, and moving the assignment of
67163         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
67164         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
67165
67166 2006-03-07  Simon Josefsson  <jas@extundo.com>
67167
67168         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
67169         error on missing devices (the functions will return an error).
67170
67171         * m4/gc.m4: Move random stuff to gc-random.m4
67172
67173 2006-03-07  Simon Josefsson  <jas@extundo.com>
67174
67175         * lib/unistd_.h: New file.
67176
67177 2006-03-07  Simon Josefsson  <jas@extundo.com>
67178
67179         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
67180
67181 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
67182
67183         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
67184         Problem reported by Juan Manuel Guerrero.
67185
67186 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
67187
67188         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
67189         the unistd module.
67190         * lib/getlogin_r.c: Likewise.
67191         * lib/getlogin_r.h: Likewise.
67192         * lib/glob.c: Likewise.
67193         * lib/pagealign_alloc.c: Likewise.
67194         * lib/unistd_.h: Remove; no longer needed.
67195
67196 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
67197
67198         * MODULES.html.sh (Support for systems lacking POSIX:2001):
67199         Add unistd.
67200         * modules/c-stack (Depends-on): Add unistd.
67201         * modules/getlogin_r: Likewise.
67202         * modules/glob: Likewise.
67203         * modules/pagealign_alloc: Likewise.
67204         * modules/unistd (Files): Remove lib/unistd_.h.
67205         (EXTRA_DIST): Remove.
67206         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
67207         need unistd_.h.
67208         (MOSTLYCLEANFILES): Remove unistd.h-t.
67209
67210 2006-03-03  Simon Josefsson  <jas@extundo.com>
67211
67212         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
67213
67214 2006-03-03  Simon Josefsson  <jas@extundo.com>
67215
67216         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
67217         libidn and bison.
67218
67219 2006-03-03  Simon Josefsson  <jas@extundo.com>
67220
67221         * build-aux/maint.mk: Add indent target.
67222
67223 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
67224
67225         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
67226         our replacement poll.h in any case, to avoid a differing
67227         declaration from a system header.  Seen on AIX.
67228
67229 2006-03-01  Simon Josefsson  <jas@extundo.com>
67230
67231         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
67232         <kasal@ucw.cz>.
67233
67234 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
67235
67236         * modules/gettime (Depends-on): Add extensions module.
67237         * modules/nanosleep (Depends-on): Likewise.
67238         * modules/settime (Depends-on): Likewise.
67239
67240 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
67241
67242         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
67243         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
67244         pedantically.
67245         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
67246         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
67247
67248         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
67249         not "==".  Reported by Ralf Wildenhues.
67250
67251 2006-03-01  Karl Berry  <karl@gnu.org>
67252
67253         * doc/Copyright/request-*: new files, synced from gnuorg.
67254
67255 2006-03-01  Karl Berry  <karl@gnu.org>
67256
67257         * config/srclist.txt (Copyright/*): new entries.
67258
67259 2006-02-28  Simon Josefsson  <jas@extundo.com>
67260
67261         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
67262
67263 2006-02-27  Simon Josefsson  <jas@extundo.com>
67264
67265         * lib/base64.h: Indent #define's.  From Jim Meyering
67266         <jim@meyering.net>.
67267
67268 2006-02-27  Jim Meyering  <jim@meyering.net>
67269
67270         Revert the change of 2006-02-24, so these files can continue
67271         to be sync'd from gettext.
67272         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
67273         of `config.h'.
67274
67275 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
67276
67277         * modules/intprops: New file.
67278         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
67279         Add intprops.
67280         * modules/getloadavg (Files): Remove lib/intprops.h.
67281         (Depends-on): Add intprops.
67282         * modules/human: Likewise.
67283         * modules/inttostr: Likewise.
67284         * modules/openat: Likewise.
67285         * modules/sig2str: Likewise.
67286         * modules/userspec: Likewise.
67287         * modules/utimecmp: Likewise.
67288         * modules/xnanosleep: Likewise.
67289         * modules/xstrtol: Likewise.
67290
67291 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
67292
67293         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
67294         * modules/lock-tests (TESTS): Use $(EXEEXT).
67295         * modules/tls-tests: Likewise.
67296         * modules/argp-tests: Likewise.
67297         (check_PROGRAMS): New var, replacing...
67298         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
67299
67300 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67301
67302         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
67303         `config.h'.
67304
67305 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
67306
67307         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
67308
67309 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67310
67311         Sync from coreutils.
67312         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
67313         gl_CHDIR_SAFER.
67314
67315 2006-02-22  Jim Meyering  <jim@meyering.net>
67316
67317         Sync from coreutils.
67318         * m4/chdir-safer.m4: New file.
67319
67320 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
67321
67322         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
67323         AT_FDCWD exceeds INT_MAX.
67324         * lib/openat.h (AT_FDCWD): Likewise.
67325
67326 2006-02-17  Eric Blake  <address@hidden>
67327
67328         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
67329
67330 2006-02-16  Simon Josefsson  <jas@extundo.com>
67331
67332         * modules/getaddrinfo (Depends-on): Add sys_socket.
67333
67334 2006-02-15  Simon Josefsson  <jas@extundo.com>
67335
67336         * build-aux/maint.mk: Add dsyntax-check rule.
67337
67338 2006-02-15  Eric Blake  <ebb9@byu.net>
67339
67340         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
67341         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
67342         'present but cannot compile' warnings on cygwin.
67343         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
67344         use ws2tcpip.h if sys/socket.h works.
67345         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
67346         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
67347
67348 2006-02-14  Simon Josefsson  <jas@extundo.com>
67349
67350         * modules/maintainer-makefile (Files): Rename.
67351
67352         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
67353         and (the local) Makefile.cfg to maint-cfg.mk.
67354
67355         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
67356         to the latter.
67357
67358         * modules/maintainer-makefile: New module.
67359
67360         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
67361         severaly stripped to make it possible to build it up from scratch
67362         with reliable tests.
67363
67364         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
67365         fixes to permit overriding the default actions when configure and
67366         makefile are not available.
67367
67368 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
67369
67370         Sync from coreutils.
67371         * modules/lstat (Depends-on): Don't depend on xalloc.
67372         (License): Change from GPL to LGPL, since this is now simply a
67373         replacement for a libc function.
67374
67375 2006-02-14  Jim Meyering  <jim@meyering.net>
67376
67377         Sync from coreutils.
67378
67379         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
67380         failure on deficient systems, and simplify gnulib lgpl dependencies.
67381         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
67382         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
67383
67384         * lib/xalloc-die.c: Remove unused definition of N_.
67385
67386 2006-02-14  Jim Meyering  <jim@meyering.net>
67387
67388         Sync from coreutils.
67389         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
67390         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
67391         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
67392         double-quote uses of that variable, to accommodate the rare case in
67393         which getmntent is available in none of the libraries checked.  This
67394         happens at least on FreeBSD 5.0.
67395
67396 2006-02-13  Simon Josefsson  <jas@extundo.com>
67397
67398         * gnulib-tool (Usage): Fix --import, from
67399         karl@freefriends.org (Karl Berry).
67400
67401 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
67402
67403         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
67404
67405 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
67406
67407         * lib/argp-namefrob.h: Restore changes accidentally lost during the
67408         "autoupdate" on 2005-12-12.
67409
67410 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
67411
67412         * modules/closeout (Depends-on): Remove atexit.
67413
67414 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
67415
67416         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
67417         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
67418
67419 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
67420
67421         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
67422         __EXTENSIONS__ if this causes compilation to fail.  Problem
67423         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
67424         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
67425
67426 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
67427
67428         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
67429         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
67430         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
67431         All uses changed.
67432
67433 2006-01-26  Simon Josefsson  <jas@extundo.com>
67434
67435         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
67436         prototype is visible on mingw32.
67437
67438         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
67439         for mingw32.
67440
67441         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
67442         mingw32).
67443
67444 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
67445
67446         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
67447         attempt to open for write; this always fails, at least on POSIX
67448         hosts.  This reinstates the 2006-01-09 change, which was
67449         inadvertently removed.
67450
67451 2006-01-26  Bruno Haible  <bruno@clisp.org>
67452
67453         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
67454         Reported by Paul Eggert.
67455
67456 2006-01-26  Bruno Haible  <bruno@clisp.org>
67457             Paul Eggert  <eggert@cs.ucla.edu>
67458
67459         * lib/stdbool_.h (_Bool)
67460         [(! (defined __cplusplus || defined __BEOS__)
67461           && !defined __GNUC__
67462           && !(defined __HP_cc || defined __xlc__
67463                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
67464                || defined __sgi))]:
67465         #define to signed char in these cases too; this simplifies
67466         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
67467         etc., separately) and makes it more conservative.
67468
67469 2006-01-25  Simon Josefsson  <jas@extundo.com>
67470
67471         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
67472         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
67473         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
67474
67475 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
67476
67477         * lib/argp-namefrob.h: Bugfix. Remove stray #
67478
67479 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
67480
67481         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
67482         so that we test the test.
67483         Check for yet another HP-UX cc bug involving *bool |= bool.
67484
67485 2006-01-25  Karl Berry  <karl@gnu.org>
67486
67487         * config/srclist.txt (vasnprintf.c): sync lost.
67488
67489 2006-01-25  Jim Meyering  <jim@meyering.net>
67490
67491         Sync from the stable (b5) branch of coreutils:
67492
67493         * lib/fts.c (fts_children): Don't let close() clobber errno from
67494         failed fchdir().
67495
67496         * lib/fts.c (fts_stat): When following a symlink-to-directory,
67497         don't necessarily interpret stat-fails+lstat-succeeds as indicating
67498         a dangling symlink.  That can also happen at least for ELOOP.
67499         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
67500         FYI, this bug predates the inclusion of fts.c in coreutils.
67501
67502         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
67503         in their own block, so pre-c99 compilers don't object.
67504
67505         Avoid the double-free (first in fts_read, second in fts_close) that
67506         would occur when an `active' directory is made inaccessible (e.g.,
67507         via chmod a-x) during a traversal.
67508         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
67509         before returning.  Reproduce this failure by
67510         mkdir -p a/b; cd a; chmod a-x . b
67511         Reported by Stavros Passas.
67512
67513 2006-01-25  Jim Meyering  <jim@meyering.net>
67514
67515         * lib/fileblocks.c: Remove more useless parentheses.
67516         * lib/readutmp.h: Likewise.
67517
67518 2006-01-25  Bruno Haible  <bruno@clisp.org>
67519
67520         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
67521         warnings.
67522         Reported by Paul Eggert.
67523
67524 2006-01-25  Bruno Haible  <bruno@clisp.org>
67525
67526         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
67527         rid of a trap command. For Solaris sh.
67528         Reported by Mark D. Baushke <mdb@gnu.org>.
67529
67530 2006-01-24  Simon Josefsson  <jas@extundo.com>
67531
67532         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
67533         Bruno.
67534
67535 2006-01-24  Karl Berry  <karl@gnu.org>
67536
67537         * config/srclist.txt (argp-namefrob.h): sync lost.
67538
67539 2006-01-24  Jim Meyering  <jim@meyering.net>
67540
67541         * modules/openat (Files): Add lib/intprops.h.
67542         From Mark D. Baushke.
67543
67544 2006-01-24  Jim Meyering  <jim@meyering.net>
67545
67546         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
67547         Reported by Mark D. Baushke.
67548
67549 2006-01-24  Jim Meyering  <jim@meyering.net>
67550
67551         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
67552
67553 2006-01-24  Bruno Haible  <bruno@clisp.org>
67554
67555         * modules/strnlen (Maintainer): Change from glibc to all.
67556
67557 2006-01-24  Bruno Haible  <bruno@clisp.org>
67558
67559         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
67560         Patch by Paul Eggert.
67561
67562 2006-01-24  Bruno Haible  <bruno@clisp.org>
67563
67564         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
67565         already has it.
67566         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
67567         2005-11-26.
67568
67569         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
67570         'signed char' to avoid problems with the built-in _Bool type.
67571         Reported by Paul Eggert on 2005-11-26.
67572
67573 2006-01-24  Bruno Haible  <bruno@clisp.org>
67574
67575         * gnulib-tool (func_import): Avoid constructing complicated sed
67576         expressions inside backquote.
67577         Report and solution by Mark D. Baushke <mdb@gnu.org>.
67578
67579 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
67580
67581         These changes imported from libc.
67582         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
67583         test and two separate function calls.
67584         * lib/strndup.c (__strndup): Add libc_hidden_def.
67585
67586 2006-01-23  Simon Josefsson  <jas@extundo.com>
67587
67588         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
67589         Remove the test_*_SOURCES variable: automake infers it by default.
67590         * modules/tls-tests: Likewise.
67591
67592 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
67593
67594         Work around porting bugs reported by Dieter in
67595         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
67596         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
67597         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
67598         Include "getopt.h" first, to check interface.
67599         (getenv): Declare only if defined HAVE_DECL_GETENV &&
67600         !HAVE_DECL_GETENV.
67601         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
67602         (__strndup): Revert to K&R-style function dfns, the glibc style.
67603         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
67604         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
67605         Include strnlen.h first, to get prototype properly.
67606         (strnlen): Renamed from __strnlen.
67607         Remove weak alias.
67608
67609 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
67610
67611         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
67612
67613 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
67614
67615         * config/srclist.txt: Adjust to reflect glibc reorganization.
67616         This affects only comments.
67617
67618 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
67619
67620          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
67621          Reported by Bruce Korb <bkorb@gnu.org>.
67622
67623 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
67624
67625         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
67626         to pacify gcc -Wswitch-default.
67627
67628 2006-01-22  Bruno Haible  <bruno@clisp.org>
67629
67630         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
67631         temporary buffer for sprintf, take into account the precision also
67632         for 'd', 'i', 'u', 'o', 'x', 'X'.
67633
67634 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
67635
67636         * modules/argp-tests: New module
67637         * tests/test-argp.c: New file
67638         * tests/test-argp-2.sh: New file
67639
67640 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
67641
67642         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
67643         (__argp_base_name): Removed
67644         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
67645         typo.
67646         (__argp_base_name): Provide macro definition or extern declaration
67647         depending on the configuration
67648
67649 2006-01-20  Simon Josefsson  <jas@extundo.com>
67650
67651         * modules/inet_ntop (Depends-on): Depend on sys_socket.
67652
67653 2006-01-20  Simon Josefsson  <jas@extundo.com>
67654
67655         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
67656
67657 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
67658
67659         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
67660         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
67661         Suggested by Bruno Haible.
67662
67663 2006-01-20  Karl Berry  <karl@gnu.org>
67664
67665         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
67666         until changes propagate, I guess.
67667
67668 2006-01-19  Simon Josefsson  <jas@extundo.com>
67669
67670         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
67671
67672 2006-01-19  Simon Josefsson  <jas@extundo.com>
67673
67674         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
67675
67676 2006-01-19  Simon Josefsson  <jas@extundo.com>
67677
67678         * gnulib-tool: Set check_PROGRAMS.
67679
67680         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
67681         modules/des-tests, modules/gc-arcfour-tests,
67682         modules/gc-arctwo-tests, modules/gc-des-tests,
67683         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
67684         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
67685         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
67686         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
67687         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
67688         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
67689         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
67690         test_*_SOURCES.
67691
67692 2006-01-18  Simon Josefsson  <jas@extundo.com>
67693
67694         * modules/socklen (Depends-on): Depend on sys_socket.
67695
67696 2006-01-18  Simon Josefsson  <jas@extundo.com>
67697
67698         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
67699         modules/des-tests, modules/gc-arcfour-tests,
67700         modules/gc-arctwo-tests, modules/gc-des-tests,
67701         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
67702         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
67703         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
67704         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
67705         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
67706         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
67707         $(EXEEXT) to automake TESTS variable, for mingw32.
67708
67709 2006-01-17  Simon Josefsson  <jas@extundo.com>
67710
67711         * modules/socklen (Include): Need sys/socket.h.
67712
67713 2006-01-17  Bruno Haible  <bruno@clisp.org>
67714
67715         * modules/ssize_t (Include): Add <sys/types.h>.
67716
67717 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
67718
67719         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
67720         it's not portable and it doesn't work with cross-compiles.
67721         Problem reported by Bruno Haible.  Fix missing-$ typo in
67722         'test "gl_cv_ignore_unused_libraries" ...' that prevented
67723         -zignore from being used with Sun's C compiler.
67724
67725 2006-01-12  Simon Josefsson  <jas@extundo.com>
67726
67727         * lib/base64.c: Fix warning, reported by Bruno Haible
67728         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
67729
67730 2006-01-12  Bruno Haible  <bruno@clisp.org>
67731
67732         * modules/ldd: New file.
67733         * build-aux/ldd.sh.in: New file.
67734         * MODULES.html.sh (Support for building libraries and executables): Add
67735         ldd.
67736
67737 2006-01-12  Bruno Haible  <bruno@clisp.org>
67738
67739         * m4/ldd.m4: New file.
67740
67741 2006-01-12  Bruno Haible  <bruno@clisp.org>
67742
67743         * gnulib-tool (func_import, func_create_testdir): Don't go into an
67744         endless loop while replacing $auxdir with build-aux.
67745
67746 2006-01-11  Simon Josefsson  <jas@extundo.com>
67747
67748         * lib/stdint_.h (SIZE_MAX): Add missing (.
67749
67750 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
67751
67752         Sync from coreutils.
67753         * lib/md5.c: Fix commentary typos.
67754         (alignof, UNALIGNED_P): No need for a GCC-specific version.
67755         * lib/md5.h (__attribute__): Remove; unused.
67756         * lib/sha1.c: Fix commentary to match md5 better.
67757         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
67758         so that we don't need to worry about alignment.  All uses changed.
67759         This merges the 2005-10-28 md5 change into sha1.
67760
67761 2006-01-11  Jim Meyering  <jim@meyering.net>
67762
67763         Sync from coreutils.
67764         * lib/md5.c (OP): Fix spacing.
67765
67766 2006-01-11  Bruno Haible  <bruno@clisp.org>
67767
67768         Ensure automatic ordering between gl_LOCK and gl_ARGP.
67769         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
67770         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
67771
67772 2006-01-11  Bruno Haible  <bruno@clisp.org>
67773
67774         Ensure automatic ordering between gl_LOCK and gl_ARGP.
67775         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
67776         the "early" section as well.
67777
67778 2006-01-11  Bruno Haible  <bruno@clisp.org>
67779
67780         Avoid "ar: no archive members specified" error on MacOS X.
67781         * gnulib-tool (func_modules_add_dummy): New function.
67782         (func_import, func_create_testdir): Invoke it.
67783
67784 2006-01-11  Bruno Haible  <bruno@clisp.org>
67785
67786         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
67787         with $auxdir in AC_CONFIG_FILES statements.
67788
67789 2006-01-11  Bruno Haible  <bruno@clisp.org>
67790
67791         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
67792         Initialize also noinst_HEADERS to empty.
67793
67794 2006-01-11  Bruno Haible  <bruno@clisp.org>
67795
67796         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
67797         variables.
67798         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
67799         autoreconf.
67800
67801 2006-01-11  Bruno Haible  <bruno@clisp.org>
67802
67803         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
67804         overridable by the user.
67805         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
67806
67807 2006-01-10  Simon Josefsson  <jas@extundo.com>
67808
67809         * modules/sys_socket: New file.
67810
67811 2006-01-10  Simon Josefsson  <jas@extundo.com>
67812
67813         * m4/sys_socket_h.m4: New file.
67814
67815 2006-01-10  Simon Josefsson  <jas@extundo.com>
67816
67817         * lib/socket_.h: New file.
67818
67819 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
67820
67821         * modules/readutmp (Maintainer): Add myself.
67822
67823 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
67824
67825         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
67826         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
67827         People who are still concerned with buggy memcmp implementations
67828         can invoke gl_FUNC_MEMCMP themselves.
67829
67830 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
67831
67832         * lib/regex_internal.h (BITSET_WORD_BITS):
67833         Work around a bug in 64-bit PGC (before version 6.1-2), where the
67834         preprocessor mishandles large unsigned values as if they were signed.
67835         Problem reported by Claudio Fontana in
67836         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
67837
67838 2006-01-10  Jim Meyering  <jim@meyering.net>
67839
67840         Avoid the double-free (first in fts_read, second in fts_close) that
67841         would occur when an `active' directory is made inaccessible (e.g.,
67842         via chmod a-x) during a traversal.
67843         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
67844         before returning.  Reproduce this failure by
67845         mkdir -p a/b; cd a; chmod a-x . b
67846         Reported by Stavros Passas.
67847
67848         Sync from coreutils.
67849         * lib/sha1.c: Tweak grammar in a comment.
67850
67851 2006-01-10  Jim Meyering  <jim@meyering.net>
67852
67853         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
67854         Patch by Joerg Sonnenberger.
67855
67856 2006-01-10  Bruno Haible  <bruno@clisp.org>
67857
67858         * modules/readutmp: Depend on module free.
67859         * modules/strtok_r: Depend on module restrict.
67860
67861 2006-01-10  Bruno Haible  <bruno@clisp.org>
67862
67863         * modules/gettext (configure.ac): Add an invocation of
67864         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
67865
67866 2006-01-10  Bruno Haible  <bruno@clisp.org>
67867
67868         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
67869         Reported by Werner Lemberg <wl@gnu.org>.
67870
67871 2006-01-10  Bruno Haible  <bruno@clisp.org>
67872
67873         * lib/localcharset.c: Update from GNU gettext.
67874
67875 2006-01-10  Bruno Haible  <bruno@clisp.org>
67876
67877         * lib/argp.h (__const): Remove macro. Use const instead.
67878         * lib/argp-fmtstream.h (__const): Likewise.
67879         * lib/glob_.h (__const): Remove macro.
67880         * lib/glob-libc.h: Use const instead of __const.
67881
67882 2006-01-10  Bruno Haible  <bruno@clisp.org>
67883
67884         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
67885         variable.
67886         Needed to avoid an automake error regarding the 'gettext' module.
67887
67888 2006-01-09  Simon Josefsson  <jas@extundo.com>
67889
67890         * modules/inet_ntop (Depends-on): Add restrict.
67891
67892 2006-01-09  Simon Josefsson  <jas@extundo.com>
67893
67894         * modules/gc-rijndael-tests (License): Put under LGPL.
67895
67896         * modules/gc-des-tests (License): Likewise.
67897
67898         * modules/gc-arcfour-tests (License): Likewise.
67899
67900         * modules/gc-arctwo-tests (License): Likewise.
67901
67902         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
67903
67904         * modules/gc-hmac-sha1-tests (Files): Likewise.
67905
67906         * modules/gc-hmac-md5-tests (License): Likewise.
67907
67908         * modules/gc-sha1-tests (License): Likewise.
67909
67910         * modules/gc-md5-tests (License): Likewise.
67911
67912         * modules/gc-md4-tests (License): Likewise.
67913
67914         * modules/gc-md2-tests (License): Likewise.
67915
67916         * modules/gc-tests (License): Likewise.
67917
67918         * modules/des-tests (License): Likewise.
67919
67920         * modules/md4-tests (License): Likewise.
67921
67922         * modules/md2-tests (License): Likewise.
67923
67924 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
67925
67926         Sync from coreutils:
67927
67928         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
67929         * modules/lib-ignore: New file.
67930         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
67931         chdir-safer.m4, lchmod.m4.
67932         * modules/openat: Add mkdirat.c, openat-priv.h.
67933
67934 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
67935
67936         Sync from coreutils.
67937         * m4/lib-ignore.m4: New file.
67938         * m4/lchmod.m4: New file.
67939
67940 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
67941
67942         Sync from coreutils.
67943         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
67944         for write access: POSIX says that must fail.
67945         * lib/fts.c (diropen): Likewise.
67946         * lib/save-cwd.c (save_cwd): Likewise.
67947         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
67948         well, for minor improvements on hosts that lack O_DIRECTORY.
67949         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
67950         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
67951         Fall back on chown if open failed with EACCES.
67952
67953         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
67954         Report an error at compile-time if only a 1-second nominal clock
67955         resolution is found.
67956
67957         * lib/lchmod.h: New file.
67958         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
67959         (make_dir_parents): Use lchown rather than chown, and
67960         lchmod rather than chmod.
67961
67962         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
67963         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
67964         "proc" reported by n0dalus.
67965
67966         * lib/mountlist.c: Include <limits.h>.
67967         (dev_from_mount_options)
67968         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
67969         New function.  It no longer assumes "dev=" has the System V meaning
67970         on Linux (since it doesn't).  It also parses "dev=" more carefully.
67971         (read_file_system_list)
67972         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
67973         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
67974         dev= in that case.
67975
67976         * lib/posixtm.h (PDS_PRE_2000): New macro.
67977         * lib/posixtm.c (year): Arg is now syntax_bits rather than
67978         allow_century.  All usages changed.  Reject dates outside the range
67979         1969-1999 if PDS_PRE_2000 is used.
67980
67981 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
67982
67983         Sync from coreutils.
67984         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
67985         (Time of day items): Mention the possibility of leap seconds.
67986         Problem reported by Dr. David Alan Gilbert.
67987
67988 2006-01-09  Jim Meyering  <jim@meyering.net>
67989
67990         Sync from coreutils.
67991
67992         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
67993
67994         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
67995
67996         * lib/modechange.c (mode_compile): Reject an invalid mode string
67997         that starts with an octal digit.  From Andreas Gruenbacher.
67998
67999         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
68000         and dup to open_safer and dup_safer, respectively.
68001         (openat_permissive): Fix typo in comment.
68002
68003         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
68004         "gettext.h"; either no longer needed or are guaranteed by openat.h.
68005         (_): Remove; no longer needed.
68006         (openat): Renamed from rpl_openat; no need for rpl_openat
68007         since openat.h renames openat for us.
68008         Replace most of the body with a call to openat_permissive,
68009         to avoid duplicate code.
68010         Port to (probably hypothetical) environments were mode_t is
68011         wider than int.
68012         (openat_permissive): Require mode arg, so that we can check
68013         types better.  Put it just after flags.  Change cwd failure
68014         indicator from pointer-to-bool to pointer-to-errno-value.
68015         All callers changed.
68016         Invoke openat_save_fail and/or openat_restore_fail if
68017         cwd_errno is null, so that openat can call us.
68018         (openat_permissive, fdopendir, fstatat, unlinkat):
68019         Simplify errno handling to avoid some duplicate code,
68020         as it's OK to set errno on success.
68021         * lib/openat.h: Revamp code so that function macros depend on
68022         __OPENAT_PREFIX only, not also on AT_FDCWD.
68023         (openat_ro): Remove.  Caller changed to use openat_permissive.
68024         (openat_permissive): Now a macro, if not a function.
68025         (openat_restore_fail, openat_save_fail): Now always functions,
68026         since mkdirat needs them even if __OPENAT_PREFIX is defined.
68027
68028         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
68029         and openat.c.
68030         * lib/mkdirat.c: Include openat-priv.h.
68031         Remove definitions of macros defined therein.
68032         * lib/openat.c: Likewise.
68033
68034         * lib/mkdirat.c (mkdirat): New file and function.
68035         * lib/openat.h (mkdirat): Declare.
68036
68037         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
68038
68039         * lib/openat.h (openat_permissive): Declare.
68040         (openat_ro): Define.
68041
68042         * lib/openat.c (EXPECTED_ERRNO): New macro.
68043         (openat_permissive): New function -- used in remove.c rewrite.
68044         (all functions): Set errno just before returning, only if there
68045         was an actual failure.
68046         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
68047
68048         Emulate openat-family functions using Linux's procfs, if possible.
68049         Idea and some code based on Ulrich Drepper's glibc changes.
68050
68051         * lib/openat.c: (BUILD_PROC_NAME): New macro.
68052         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
68053         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
68054         before falling back on save_cwd and restore_cwd.
68055         (fdopendir, fstatat, unlinkat): Likewise.
68056
68057         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
68058         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
68059
68060         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
68061         as second argument to va_arg.  Otherwise, some versions of gcc
68062         warn that `if this code is reached, the program will abort'.
68063
68064 2006-01-09  Jim Meyering  <jim@meyering.net>
68065
68066         Sync from coreutils.
68067         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
68068         Require openat-priv.h.
68069
68070 2006-01-09  Bruno Haible  <bruno@clisp.org>
68071
68072         * modules/strnlen (Include): Use strnlen.h.
68073
68074 2006-01-09  Bruno Haible  <bruno@clisp.org>
68075
68076         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
68077
68078 2006-01-09  Bruno Haible  <bruno@clisp.org>
68079
68080         * lib/sysexit_.h (EX_OK): New macro.
68081         Suggested by Martin Lambers <marlam@marlam.de>.
68082
68083 2006-01-09  Bruno Haible  <bruno@clisp.org>
68084
68085         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
68086         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
68087
68088 2006-01-09  Bruno Haible  <bruno@clisp.org>
68089
68090         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
68091         numbers.
68092
68093 2006-01-09  Bruno Haible  <bruno@clisp.org>
68094
68095         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
68096         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
68097         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
68098         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
68099
68100 2006-01-09  Bruno Haible  <bruno@clisp.org>
68101
68102         * build-aux/javacomp.sh.in: New file, moved from lib/.
68103         * modules/javacomp-script (Files): Update.
68104         (configure.ac): Add AC_CONFIG_FILES invocation.
68105         (EXTRA_DIST): Remove variable.
68106
68107         * build-aux/javaexec.sh.in: New file, moved from lib/.
68108         * modules/javaexec (Files): Update.
68109         (configure.ac): Add AC_CONFIG_FILES invocation.
68110         (EXTRA_DIST): Remove javaexec.sh.in.
68111
68112         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
68113         * modules/csharpcomp-script (Files): Update.
68114         (configure.ac): Add AC_CONFIG_FILES invocation.
68115         (EXTRA_DIST): Remove variable.
68116
68117         * build-aux/csharpexec.sh.in: New file, moved from lib/.
68118         * modules/csharpexec (Files): Update.
68119         (configure.ac): Add AC_CONFIG_FILES invocation.
68120         (EXTRA_DIST): Remove csharpexec.sh.in.
68121
68122 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
68123
68124         Sync from coreutils.
68125
68126         Add POSIX ACL support
68127         * lib/acl.h (copy_acl, set_acl): Add declarations.
68128         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
68129         systems other than Linux.
68130         (chmod_or_fchmod): New function: use fchmod when possible,
68131         and chmod otherwise.
68132         (file_has_acl): Add a POSIX ACL implementation, with a
68133         Linux-specific subcase.
68134         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
68135         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
68136         acls are unsupported.
68137         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
68138         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
68139         are unsupported.
68140
68141 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
68142
68143         Sync from coreutils.
68144         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
68145
68146 2006-01-07  Bruno Haible  <bruno@clisp.org>
68147
68148         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
68149         gl_EARLY.
68150
68151 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
68152
68153         * lib/strftime.c (tzname): Don't declare if it is already #defined.
68154         Problem reported for Mingw by Mark Junker.
68155
68156 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
68157
68158         * README: Gnulib normally doesn't generate a tarball.
68159
68160 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
68161
68162         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
68163         long int, not int, for nanosecond counts, so that people who are
68164         used to POSIX struct timespec won't be surprised.  Reported by Jim
68165         Meyering.
68166
68167 2005-12-28  Bruno Haible  <bruno@clisp.org>
68168
68169         * build-aux/config.rpath: Update from GNU gettext.
68170
68171 2005-12-16  Jim Meyering  <jim@meyering.net>
68172
68173         * modules/fprintftime: New module.
68174         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
68175
68176 2005-12-16  Jim Meyering  <jim@meyering.net>
68177
68178         * m4/fprintftime.m4: New file.
68179
68180 2005-12-16  Jim Meyering  <jim@meyering.net>
68181
68182         * lib/fprintftime.c, lib/fprintftime.h: New files.
68183
68184 2005-12-15  Simon Josefsson  <jas@extundo.com>
68185
68186         * modules/socklen (configure.ac): Fix M4 macro name, to align with
68187         new m4/socklen.m4.
68188
68189 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
68190
68191         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
68192         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
68193
68194 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
68195
68196         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
68197         * lib/argp-help.c (fill_in_uparams): Check if the constructed
68198         struct uparams is valid. Fall back to the default values if it is
68199         not.
68200
68201 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
68202
68203         * modules/argp (Files): Add argp-pin.c
68204         (Depends-on): dirname
68205         (lib_SOURCES): Add argp-pin.c
68206
68207 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
68208
68209         * m4/argp.m4:  Check if program_invocation_name and
68210         program_invocation_short_name are declared and define appropriate
68211         macros if they are not.
68212
68213 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
68214
68215         * lib/argp-help.c (__argp_base_name): New function
68216         (__argp_short_program_name): Rewrite using __argp_base_name
68217         * lib/argp-namefrob.h: Define program_invocation_name and
68218         program_invocation_short_name if requested
68219         (__argp_base_name): Add prototype
68220         * lib/argp-parse.c (argp_def): Use gettext wrappers
68221         (argp_default_parser): Use __argp_base_name
68222         * lib/argp-pin.c: New file. Defines program_invocation_name and
68223         program_invocation_short_name on systems that lack them.
68224
68225 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
68226
68227         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
68228         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
68229         porting problem reported by Georg Schwarz in
68230         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
68231
68232 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
68233
68234         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
68235         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
68236         porting problem reported by Georg Schwarz in
68237         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
68238
68239 2005-12-05  Bruno Haible  <bruno@clisp.org>
68240
68241         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
68242         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
68243         Reported by Mark Junker <mjscod@gmx.de>.
68244
68245 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
68246
68247         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
68248         Use implementation from Albert Chin, with some
68249         comments/corrections by Stepan Kasal and myself.
68250
68251 2005-12-02  Bruno Haible  <bruno@clisp.org>
68252
68253         * gnulib-tool (func_import): Accept GPLed build tool modules when
68254         --lgpl is given.
68255         * modules/csharpcomp-script: New file.
68256         * modules/csharpcomp: Depend on it.
68257         * modules/javacomp-script: New file.
68258         * modules/javacomp: Depend on it.
68259         Suggested by Simon Josefsson.
68260
68261 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
68262
68263         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
68264         statement, to work around an HP-UX 10.20 compiler bug reported by
68265         Peter O'Gorman.
68266
68267 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
68268
68269         * modules/savedir (Depends-on): Add openat.
68270
68271 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
68272
68273         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
68274         (uintmax_t) [defined uintmax_t]: Do not declare.
68275         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
68276         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
68277         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
68278         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
68279         sake of portability to weird hosts that C allows (though we don't
68280         know of any practical examples).
68281
68282         * lib/savedir.h (fdsavedir): New decl.
68283         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
68284         contains most of the former guts of savedir.
68285         (savedir): Use savedirstream.
68286         Include "openat.h".
68287
68288 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
68289
68290         * modules/obstack (Files): Add m4/ulonglong.m4.
68291         Problem reported by Davide Angelocola.
68292
68293 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
68294
68295         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
68296         coreutils no longer futzes with rounding modes.
68297
68298 2005-11-14  Jim Meyering  <jim@meyering.net>
68299
68300         * lib/mkstemp-safer.c: Include <config.h>, required for possible
68301         replacement of mkstemp.
68302
68303 2005-11-10  Simon Josefsson  <jas@extundo.com>
68304
68305         * lib/readline.c: Remove EOL.
68306
68307 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
68308
68309         * modules/gethrxtime (Depends-on): Add gettime.
68310
68311 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
68312
68313         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
68314         or gettimeofday; no longer needed.
68315
68316 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
68317
68318         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
68319         time business.
68320         (gethrxtime) [! (HAVE_NANOUPTIME
68321         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
68322         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
68323         our own approximation.
68324
68325 2005-11-08  Eric Blake  <ebb9@byu.net>
68326
68327         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
68328
68329 2005-11-08  Eric Blake  <ebb9@byu.net>
68330
68331         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
68332
68333 2005-11-04  Bruno Haible  <bruno@clisp.org>
68334
68335         * gnulib-tool: Implement --update mode.
68336
68337 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
68338
68339         Fix porting problem reported by Theodoros V. Kalamatianos.
68340         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
68341         Don't assume that futimes failing means we must fail.
68342
68343 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
68344
68345         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
68346         variables to suggest the intended function of the PATH_MAX check.
68347
68348 2005-10-30  Kean Johnston  <jkj@sco.com>
68349
68350         Trivial changes to support SCO systems.
68351         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
68352         as PATH_MAX.
68353         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
68354         where __ptr is null when no I/O is pending.
68355
68356 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
68357
68358         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
68359         leave errno alone.  Problem reported by Dmitry V. Levin.
68360
68361 2005-10-28  Simon Josefsson  <jas@extundo.com>
68362
68363         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
68364         Test more.
68365
68366         * tests/test-gc-md2.c, tests/test-md2.c: New files.
68367
68368         * modules/md2, modules/md2-tests: New files.
68369
68370 2005-10-28  Simon Josefsson  <jas@extundo.com>
68371
68372         * m4/inet_ntop.m4: More tests.
68373
68374         * m4/gc-md2.m4, md2.m4: New file.
68375
68376 2005-10-28  Simon Josefsson  <jas@extundo.com>
68377
68378         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
68379         "restrict" keywords, as per POSIX.  Protect the function
68380         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
68381         Don't use K&R prototypes.  Check the sprintf return values.
68382         Re-define EAFNOSUPPORT if not present.  Indent.
68383
68384         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
68385         suggested by Bruno Haible <bruno@clisp.org>.
68386
68387         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
68388
68389         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
68390
68391         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
68392         libgcrypt).
68393
68394         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
68395
68396         * lib/md2.h, lib/md2.c: New files.
68397
68398 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
68399
68400         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
68401         errno alone.  Problem reported by Frederic Jolliton.
68402
68403 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
68404
68405         * modules/verify (License): Change from GPL to LGPL.  This is a
68406         tiny module and there are apparently near-equivalents that are
68407         under the BSD license.
68408
68409 2005-10-24  Simon Josefsson  <jas@extundo.com>
68410
68411         * modules/sha1: Relicense to LGPL.
68412
68413 2005-10-24  Simon Josefsson  <jas@extundo.com>
68414
68415         * lib/md4.h: Shrink buffer size, now that we changed the type.
68416
68417 2005-10-23  Simon Josefsson  <jas@extundo.com>
68418
68419         * gnulib-tool (func_import): Fix --tests-base.
68420
68421 2005-10-22  Simon Josefsson  <jas@extundo.com>
68422
68423         * modules/arcfour (Depends-on): Need stdint.
68424
68425 2005-10-22  Simon Josefsson  <jas@extundo.com>
68426
68427         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
68428         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
68429
68430 2005-10-22  Simon Josefsson  <jas@extundo.com>
68431
68432         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
68433         suggested by Bruno Haible <bruno@clisp.org>.
68434
68435 2005-10-22  Simon Josefsson  <jas@extundo.com>
68436
68437         * lib/crc.h: Include stddef.h, for size_t.
68438
68439 2005-10-22  Simon Josefsson  <jas@extundo.com>
68440
68441         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
68442         arcfour_context struct (simplify test vector testing in GNU
68443         Shishi).
68444
68445 2005-10-21  Simon Josefsson  <jas@extundo.com>
68446
68447         * modules/des, modules/des-tests: New files.
68448
68449         * modules/gc-des, modules/gc-des-tests: New files.
68450
68451         * tests/test-des.c, tests/test-gc-des.c: New file.
68452
68453 2005-10-21  Simon Josefsson  <jas@extundo.com>
68454
68455         * modules/arctwo, modules/arctwo-tests: New files.
68456
68457         * tests/test-arctwo.c: New file.
68458
68459         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
68460
68461         * tests/test-gc-arctwo.c: New file.
68462
68463 2005-10-21  Simon Josefsson  <jas@extundo.com>
68464
68465         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
68466         Bruno Haible <bruno@clisp.org>.
68467
68468         * m4/gc-des.m4: New file.
68469
68470 2005-10-21  Simon Josefsson  <jas@extundo.com>
68471
68472         * m4/arctwo.m4: New file.
68473
68474         * m4/gc-arctwo.m4: New file.
68475
68476 2005-10-21  Simon Josefsson  <jas@extundo.com>
68477
68478         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
68479         block.
68480
68481 2005-10-21  Simon Josefsson  <jas@extundo.com>
68482
68483         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
68484         <bruno@clisp.org>.
68485
68486         * lib/hmac-sha1.c (hmac_sha1): Likewise.
68487
68488         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
68489         Bruno Haible <bruno@clisp.org>.
68490
68491         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
68492         <bruno@clisp.org>.
68493
68494 2005-10-21  Simon Josefsson  <jas@extundo.com>
68495
68496         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
68497
68498 2005-10-21  Simon Josefsson  <jas@extundo.com>
68499
68500         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
68501
68502 2005-10-21  Simon Josefsson  <jas@extundo.com>
68503
68504         * lib/des.h, lib/des.c: New files.
68505
68506         * lib/gc-gnulib.c: Support DES.c
68507
68508 2005-10-21  Simon Josefsson  <jas@extundo.com>
68509
68510         * lib/arctwo.h, lib/arctwo.c: New files.
68511
68512         * lib/gc-gnulib.c: Support ARCTWO.
68513
68514 2005-10-21  Simon Josefsson  <jas@extundo.com>
68515
68516         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
68517         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
68518
68519 2005-10-21  Simon Josefsson  <jas@extundo.com>
68520
68521         * gnulib-tool (func_import, func_create_testdir): Define automake
68522         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
68523         Makefile.am snippet),
68524         suggested by Bruno Haible <bruno@clisp.org>.
68525
68526         * modules/gc (Makefile.am): Use it.
68527
68528 2005-10-21  Bruno Haible  <bruno@clisp.org>
68529
68530         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
68531         patch.
68532
68533 2005-10-19  Simon Josefsson  <jas@extundo.com>
68534
68535         * tests/test-gc-rijndael.c: New file.
68536
68537         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
68538
68539 2005-10-19  Simon Josefsson  <jas@extundo.com>
68540
68541         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
68542         interface too.
68543
68544 2005-10-19  Simon Josefsson  <jas@extundo.com>
68545
68546         * tests/test-gc-arcfour.c: New file.
68547
68548         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
68549
68550 2005-10-19  Simon Josefsson  <jas@extundo.com>
68551
68552         * modules/gc-md4, modules/gc-md4-tests: New file.
68553
68554         * tests/test-gc-md4.c: New file.
68555
68556 2005-10-19  Simon Josefsson  <jas@extundo.com>
68557
68558         * m4/gc-md4.m4: New file.
68559
68560 2005-10-19  Simon Josefsson  <jas@extundo.com>
68561
68562         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
68563         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
68564         <kasal@ucw.cz>.
68565
68566 2005-10-19  Simon Josefsson  <jas@extundo.com>
68567
68568         * m4/gc-arcfour.m4: New file.
68569
68570         * m4/gc-rijndael.m4: New file.
68571
68572 2005-10-19  Simon Josefsson  <jas@extundo.com>
68573
68574         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
68575
68576 2005-10-19  Simon Josefsson  <jas@extundo.com>
68577
68578         * lib/gc-gnulib.c: Support ARCFOUR.
68579
68580 2005-10-19  Simon Josefsson  <jas@extundo.com>
68581
68582         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
68583         support.
68584
68585         * lib/gc.h: Add ECB enum type.
68586
68587         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
68588
68589 2005-10-18  Simon Josefsson  <jas@extundo.com>
68590
68591         * tests/test-md5.c: New file.
68592
68593         * modules/md5-tests: New file.
68594
68595 2005-10-18  Simon Josefsson  <jas@extundo.com>
68596
68597         * tests/test-md4.c: New file.
68598
68599         * modules/md4, modules/md4-tests: New files.
68600
68601 2005-10-18  Simon Josefsson  <jas@extundo.com>
68602
68603         * m4/md4.m4: New file.
68604
68605 2005-10-18  Simon Josefsson  <jas@extundo.com>
68606
68607         * lib/md4.h, lib/md4.c: New files, based on md5.?.
68608
68609 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
68610
68611         * gnulib-tool (func_create_testdir): Omit the second check whether
68612         BUILT_SOURCES in nonempty.
68613
68614 2005-10-17  Simon Josefsson  <jas@extundo.com>
68615
68616         * tests/test-rijndael.c: New file.
68617
68618 2005-10-17  Simon Josefsson  <jas@extundo.com>
68619
68620         * modules/sha1: Depend on stdint instead of md5.
68621
68622         * modules/md5: Depend on stdint, remove uint32_t.
68623
68624 2005-10-17  Simon Josefsson  <jas@extundo.com>
68625
68626         * modules/gc-sha1-tests: New file.
68627
68628         * tests/test-gc-sha1.c: New file.
68629
68630 2005-10-17  Simon Josefsson  <jas@extundo.com>
68631
68632         * m4/md5.m4: Remove call to uint32_t.m4.
68633
68634 2005-10-17  Simon Josefsson  <jas@extundo.com>
68635
68636         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
68637
68638         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
68639         md5.h.
68640
68641         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
68642
68643         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
68644
68645 2005-10-17  Simon Josefsson  <jas@extundo.com>
68646
68647         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
68648
68649 2005-10-17  Simon Josefsson  <jas@extundo.com>
68650
68651         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
68652
68653 2005-10-17  Simon Josefsson  <jas@extundo.com>
68654
68655         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
68656
68657         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
68658
68659 2005-10-17  Bruno Haible  <bruno@clisp.org>
68660
68661         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
68662         that it can also be used in a test.
68663
68664 2005-10-16  Bruno Haible  <bruno@clisp.org>
68665
68666         * gnulib-tool (func_emit_tests_Makefile_am): Also define
68667         TESTS_ENVIRONMENT, so that individual tests can augment it.
68668
68669         * gnulib-tool (func_create_testdir): Use an intermediate target for
68670         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
68671         macros, like $(ALLOCA_H), which cannot be passed through the command
68672         line.
68673
68674 2005-10-15  Simon Josefsson  <jas@extundo.com>
68675
68676         * modules/rijndael-tests: New file.
68677
68678         * modules/rijndael: New file.
68679
68680 2005-10-15  Simon Josefsson  <jas@extundo.com>
68681
68682         * m4/rijndael.m4: New file.
68683
68684 2005-10-15  Simon Josefsson  <jas@extundo.com>
68685
68686         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
68687
68688         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
68689
68690 2005-10-14  Simon Josefsson  <jas@extundo.com>
68691
68692         * tests/test-arcfour.c: New file.
68693
68694         * modules/arcfour, modules/arcfour-tests: New files.
68695
68696 2005-10-14  Simon Josefsson  <jas@extundo.com>
68697
68698         * m4/arcfour.m4: New file.
68699
68700 2005-10-14  Simon Josefsson  <jas@extundo.com>
68701
68702         * lib/arcfour.h, lib/arcfour.c: New files.
68703
68704 2005-10-14  Roland McGrath  <roland@redhat.com>
68705
68706         Import from libc.  [BZ #1331]
68707         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
68708         macro argument.
68709         Reported by Matej Vela <vela@debian.org>.
68710
68711 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
68712
68713         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
68714         include <wchar.h>; no longer needed.
68715
68716 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
68717
68718         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
68719
68720 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
68721         and  Ulrich Drepper  <drepper@redhat.com>
68722
68723         Import from libc.
68724         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
68725         instead of inline stream orientation test and two separate
68726         function calls.  Pay no attention to USE_IN_LIBIO.
68727
68728 2005-10-13  Simon Josefsson  <jas@extundo.com>
68729
68730         * modules/gc-hmac-md5-tests: New file.
68731
68732         * tests/test-gc-hmac-sha1.c: New file.
68733
68734         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
68735
68736         * modules/gc-hmac-md5-tests: New file.
68737
68738         * tests/test-gc-md5.c: New file.
68739
68740         * modules/gc-md5-tests: New file.
68741
68742 2005-10-13  Simon Josefsson  <jas@extundo.com>
68743
68744         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
68745         Move memory allocation outside of loop.
68746
68747 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
68748
68749         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
68750         intermediate directory is in a read-only file system.  Problem
68751         reported by Eric Blake.
68752
68753 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
68754
68755         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
68756
68757 2005-10-12  Simon Josefsson  <jas@extundo.com>
68758
68759         * tests/test-hmac-sha1.c: New file.
68760
68761         * modules/hmac-sha1-tests: New file.
68762
68763         * modules/hmac-sha1: New file.
68764
68765 2005-10-12  Simon Josefsson  <jas@extundo.com>
68766
68767         * modules/gc-sha1: New file.
68768
68769 2005-10-12  Simon Josefsson  <jas@extundo.com>
68770
68771         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
68772
68773         * tests/test-gc-pbkdf2-sha1.c: New file.
68774
68775 2005-10-12  Simon Josefsson  <jas@extundo.com>
68776
68777         * modules/gc-md5, modules/gc-hmac-md5: New files.
68778
68779         * modules/gc (Files): Remove md5, memxor and hmac files.
68780
68781 2005-10-12  Simon Josefsson  <jas@extundo.com>
68782
68783         * m4/gc-pbkdf2-sha1.m4: New file.
68784
68785         * m4/gc-hmac-sha1.m4: New file.
68786
68787         * m4/gc-sha1: New file.
68788
68789         * m4/hmac-sha1.m4: New file.
68790
68791 2005-10-12  Simon Josefsson  <jas@extundo.com>
68792
68793         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
68794
68795         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
68796
68797 2005-10-12  Simon Josefsson  <jas@extundo.com>
68798
68799         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
68800         suggested by Bruno Haible <bruno@clisp.org>.
68801
68802 2005-10-12  Simon Josefsson  <jas@extundo.com>
68803
68804         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
68805
68806 2005-10-12  Simon Josefsson  <jas@extundo.com>
68807
68808         * lib/gc-pbkdf2-sha1.c: New file.
68809
68810         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
68811
68812 2005-10-12  Simon Josefsson  <jas@extundo.com>
68813
68814         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
68815
68816         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
68817
68818 2005-10-12  Simon Josefsson  <jas@extundo.com>
68819
68820         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
68821         GC_USE_HMAC_MD5, respectively.
68822
68823         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
68824         (gc_md5): Fix typo.
68825
68826         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
68827
68828         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
68829
68830         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
68831
68832 2005-10-12  Bruno Haible  <bruno@clisp.org>
68833
68834         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
68835         Reported by Stepan Kasal <kasal@ucw.cz>.
68836
68837 2005-10-11  Simon Josefsson  <jas@extundo.com>
68838
68839         * tests/test-crc.c: New file.
68840
68841         * modules/crc, modules/crc-tests: New files.
68842
68843 2005-10-11  Simon Josefsson  <jas@extundo.com>
68844
68845         * m4/crc.m4: New file.
68846
68847 2005-10-11  Simon Josefsson  <jas@extundo.com>
68848
68849         * lib/gc.h: Add gc_hash and gc_hash_buffer.
68850
68851         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
68852
68853         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
68854
68855 2005-10-11  Simon Josefsson  <jas@extundo.com>
68856
68857         * lib/crc.h, lib/crc.c: New files.
68858
68859         * lib/gc.h (gc_hash_buffer): Add doc.
68860
68861 2005-10-11  Bruno Haible  <bruno@clisp.org>
68862
68863         * modules/c-strcasestr: New file.
68864         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
68865
68866 2005-10-11  Bruno Haible  <bruno@clisp.org>
68867
68868         * modules/c-strcase: New file.
68869         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
68870
68871 2005-10-11  Bruno Haible  <bruno@clisp.org>
68872
68873         * lib/strcasecmp.c: Include limits.h.
68874         (strcasecmp): Avoid integer overflow on exotic platforms.
68875         * lib/strncasecmp.c: Include limits.h.
68876         (strncasecmp): Avoid integer overflow on exotic platforms.
68877         Reported by Paul Eggert.
68878
68879 2005-10-11  Bruno Haible  <bruno@clisp.org>
68880
68881         * lib/c-strcasestr.h: New file, from GNU gettext.
68882         * lib/c-strcasestr.c: New file, from GNU gettext.
68883
68884 2005-10-11  Bruno Haible  <bruno@clisp.org>
68885
68886         * lib/c-strcase.h: New file, from GNU gettext.
68887         * lib/c-strcasecmp.c: New file, from GNU gettext.
68888         * lib/c-strncasecmp.c: New file, from GNU gettext.
68889
68890 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
68891
68892         * modules/mempcpy (License): GPL -> LGPL.
68893         * modules/strchrnul (License): Likewise.
68894         * modules/sysexits (License): Likewise.
68895
68896 2005-10-08  Simon Josefsson  <jas@extundo.com>
68897
68898         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
68899
68900 2005-10-07  Simon Josefsson  <jas@extundo.com>
68901
68902         * m4/memxor.m4: Remove gl_C_RESTRICT call.
68903
68904 2005-10-06  Simon Josefsson  <jas@extundo.com>
68905
68906         * tests/test-hmac-md5.c: New file.
68907
68908         * modules/hmac-md5-tests: New file.
68909
68910         * modules/hmac-md5: New file.
68911
68912 2005-10-06  Simon Josefsson  <jas@extundo.com>
68913
68914         * m4/hmac-md5.m4: New file.
68915
68916         * m4/memxor.m4: Require gl_C_RESTRICT.
68917
68918 2005-10-06  Simon Josefsson  <jas@extundo.com>
68919
68920         * lib/memxor.c (memxor): Avoid casts and warnings.
68921
68922 2005-10-06  Simon Josefsson  <jas@extundo.com>
68923
68924         * lib/hmac-md5.c: New file.
68925
68926         * lib/hmac.h: New file.
68927
68928 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
68929
68930         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
68931         promotes to int, not unsigned int, to catch the AIX 5.3
68932         compiler bug.
68933
68934 2005-10-05  Simon Josefsson  <jas@extundo.com>
68935
68936         * modules/memxor: New file.
68937
68938         * modules/iconv (Files): Move config.rpath to havelib, it is used
68939         there.
68940
68941         * modules/havelib (Files): Add config.rpath.
68942
68943 2005-10-05  Simon Josefsson  <jas@extundo.com>
68944
68945         * m4/memxor.m4: New file.
68946
68947 2005-10-05  Simon Josefsson  <jas@extundo.com>
68948
68949         * lib/memxor.c (memxor): Fix compiler error.
68950
68951         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
68952         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
68953
68954         * lib/memxor.h, lib/memxor.c: New files.
68955
68956         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
68957         we assume all systems have it, suggested by Jim Meyering
68958         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
68959         any systems lack sys/socket.h; mingw32 is known to lack it, but we
68960         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
68961         same reasons.
68962
68963 2005-10-05  Simon Josefsson  <jas@extundo.com>
68964
68965         * config/srclist.txt: Add glibc bug 1423 for md5.h.
68966
68967 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
68968
68969         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
68970         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
68971         needed, since the source code now assumes these .h files.
68972
68973 2005-10-05  Derek Price  <derek@ximbiot.com>
68974
68975         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
68976
68977 2005-10-05  Bruno Haible  <bruno@clisp.org>
68978
68979         * modules/stdint (License): Change to LGPL.
68980
68981 2005-10-04  Simon Josefsson  <jas@extundo.com>
68982
68983         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
68984         D. Baushke" <mdb@gnu.org>.
68985
68986 2005-10-04  Bruno Haible  <bruno@clisp.org>
68987
68988         * lib/verify.h (verify_true): Provide alternative definition for C++.
68989
68990 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
68991
68992         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
68993         (SSIZE_MAX): New macro, if not already defined.
68994         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
68995         than 2 GiB.
68996
68997 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
68998
68999         Sync from coreutils.
69000         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
69001         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
69002         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
69003         ULLONG_MAX doesn't work with 2.7.2.1.
69004
69005 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
69006
69007         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
69008         From Ben Pfaff.
69009
69010         * modules/exclude (Depends-on): Depend on verify.
69011         * modules/strtoimax (Depends-on): Likewise.
69012         * modules/utimecmp (Depends-on): Likewise.
69013
69014 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
69015
69016         * lib/exclude.c: Include verify.h.
69017         (verify): Remove.  All callers changed to use verify.h's version.
69018         * lib/strtoimax.c: Likewise.
69019         * lib/utimecmp.c: Likewis.e
69020
69021         Sync from coreutils.
69022         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
69023         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
69024         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
69025         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
69026         bother returning ENOSYS if settimeofday or stime fails; just let
69027         them return whatever errno they want to return.
69028         * lib/utimens.c: Include unistd.h, for dup2.
69029         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
69030         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
69031
69032 2005-10-02  Jim Meyering  <jim@meyering.net>
69033
69034         Sync from coreutils.
69035         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
69036         from glibc-2.2.5 that fails for read-only files.
69037
69038 2005-10-02  Jim Meyering  <jim@meyering.net>
69039
69040         Sync from coreutils.
69041         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
69042         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
69043         `#if HAVE_CONFIG_H'.
69044         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
69045         Remove AT_FDCWD test.
69046         Do not consume the fd unless successful.
69047         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
69048         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
69049         block, so that we don't even try to compile it if settimeofday is
69050         available.  This works around a compilation failure on OSF1 V5.1,
69051         due to stime requiring a `long int*' while tv_sec is `int'.
69052
69053 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
69054
69055         Sync from coreutils.
69056         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
69057         against `yes', rather than just testing for nonempty.
69058
69059 2005-10-01  Simon Josefsson  <jas@extundo.com>
69060
69061         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
69062         and Darwin.
69063
69064         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
69065         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
69066         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
69067         freeaddrinfo and gai_strerror are declared by the POSIX headers.
69068         Check if struct addrinfo is declared.
69069
69070 2005-10-01  Simon Josefsson  <jas@extundo.com>
69071
69072         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
69073         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
69074         AI_* and EAI_* definitions.  Protect function declarations.
69075
69076 2005-10-01  Jim Meyering  <jim@meyering.net>
69077
69078         Sync from coreutils.
69079
69080         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
69081         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
69082         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
69083         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
69084         in the inet and nsl libraries.  Required on Solaris 5.7.
69085
69086 2005-10-01  Jim Meyering  <jim@meyering.net>
69087
69088         Sync from coreutils.
69089         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
69090         in the inet and nsl libraries.  Required on Solaris 5.7.
69091
69092 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
69093
69094         * lib/getdelim.c (getdelim): Remove unused variables.
69095
69096 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
69097
69098         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
69099         so that the code works even with ancient cpp.  Portability problem
69100         with GCC 2.7.2.1 reported by Thomas M.Ott.
69101
69102 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
69103
69104         * modules/regex (Depends-on): Add strcase.
69105
69106         * modules/gethostname (Licence): Change from GPL to LGPL, since
69107         gethostname.c is a trivial implementation of a standard library
69108         function.
69109         * modules/poll (License): Change from GPL to LGPL, since it's
69110         derived from LGPL code.
69111
69112 2005-09-27  Jim Meyering  <jim@meyering.net>
69113
69114         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
69115         HAVE_CONFIG_H.
69116
69117         * lib/intprops.h (signed_type_or_expr__): Define.
69118         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
69119         for unsigned types.
69120
69121 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
69122
69123         * lib/verify.h (verify_expr): Remove, replacing with:
69124         (verify_true): New macro that returns true instead of void.
69125         (verify_type__): Remove.
69126         (verify): Use verify_true rather than verify_type__.
69127
69128 2005-09-26  Bruno Haible  <bruno@clisp.org>
69129
69130         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
69131         is necessary.
69132         (lib_SOURCES): Remove mbchar.c.
69133         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
69134         (Files): Add m4/mbrtowc.m4.
69135         * modules/mbiter: Likewise.
69136         * modules/mbuiter: Likewise.
69137
69138 2005-09-26  Bruno Haible  <bruno@clisp.org>
69139
69140         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
69141         compile mbchar.c if they are not both present.
69142         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
69143         * m4/mbiter.m4 (gl_MBITER): Likewise.
69144         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
69145         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
69146         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
69147
69148 2005-09-25  Jim Meyering  <jim@meyering.net>
69149
69150         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
69151         also uses socklen_t.
69152
69153 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
69154
69155         * lib/utimens.c (ENOSYS): Define if not already defined.
69156         (futimens): Support having a null PATH if the file descriptor
69157         is nonnegative.
69158
69159         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
69160         Remove.
69161         (__attribute): Define to empty unless GCC 3.1 or later.
69162         This works around a core dump on OpenBSD 3.4, which has GCC
69163         2.95.3, which dumps core when given __attribute__(()).  It also
69164         simplifies other tests, since we really don't want to bother with
69165         worrying about which ancient version of GCC supported what.
69166         Original problem reported by Yoann Vandoorselaere, with part of
69167         the fix suggested by Derek Price.
69168
69169 2005-09-24  Jim Meyering  <jim@meyering.net>
69170
69171         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
69172         so we can once again use a positive bitfield width of 1 -- now we
69173         don't have to explain why we were using a bitfield width of 2.
69174
69175 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
69176
69177         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
69178         and similarly for the other external symbols.  Problem reported
69179         by James Gallager.
69180
69181         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
69182         bug reported by Jim Meyering.
69183
69184         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
69185         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
69186         not needed, since socklen is a prerequisite module.
69187
69188 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
69189
69190         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
69191         Problem reported by Eric Blake.
69192         (getaddrinfo): Initialize se so that it's not garbage.
69193         Redo internal storage allocation so that it doesn't make unportable
69194         assumptions about alignment.
69195         Fix a memory leak.
69196
69197         * lib/utimens.c (futimens): Use futimesat if available.
69198         Prefer it to futimes since it doesn't have the futimes bug.
69199
69200         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
69201         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
69202         Instead, declare a function that returns a pointer to an array,
69203         and use verify_type__ to declare the size of the array.
69204         Problem and germ of a solution reported by Bruno Haible.
69205         (verify_type__): Use 2, not 1, for bitfield size, to avoid
69206         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
69207
69208 2005-09-23  Jim Meyering  <jim@meyering.net>
69209
69210         Sync from coreutils.
69211         Correct build failure (socklen_t not defined) on at least
69212         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
69213         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
69214
69215 2005-09-23  Jim Meyering  <jim@meyering.net>
69216
69217         * modules/getaddrinfo (Depends-on): Add socklen.
69218
69219 2005-09-23  Bruno Haible  <bruno@clisp.org>
69220
69221         * tests/test-verify.c: New file.
69222
69223 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
69224
69225         Sync from coreutils.
69226
69227         * modules/argmatch (Depends-on): Add verify.
69228         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
69229         unistd-safer.
69230         * modules/save-cwd (Depends-on): Likewise.
69231
69232         * modules/openat (Files): Add lib/openat-die.c.
69233         (Depends-on): Remove error, exitfail.
69234         Add dirname.
69235
69236         * modules/verify: New file.
69237         * MODULES.html.sh (Diagnostics <assert.h>): New section,
69238         with "verify" module.
69239
69240 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
69241
69242         Sync from coreutils.
69243
69244         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
69245         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
69246         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
69247         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
69248         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
69249         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
69250         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
69251         Don't bother checking for string.h, stdlib.h, unistd.h.
69252         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
69253         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
69254         module's job.
69255         * m4/jm-macros.m4 (gl_MACROS): Likewise.
69256         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
69257
69258         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
69259         (gl_GETDATE): Use it.
69260
69261         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
69262
69263 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
69264
69265         Sync from coreutils.
69266
69267         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
69268         stat-time.h.
69269         * lib/argmatch.h: Include verify.h
69270         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
69271         (ARGMATCH_ASSERT): Remove; unused.
69272         * lib/canonicalize.c: Assume STDC_HEADERS.
69273         * lib/exclude.c: Include "strcase.h".
69274         * lib/regex_internal.h [!defined _LIBC]: Likewise.
69275         * lib/getusershell.c: Include stdio--.h rather than stdio.h
69276         and stdio-safer.h.
69277         (getusershell): Call fopen, not fopen_safer.
69278         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
69279         Do not include unistd-safer.h.
69280         (save_cwd): Don't call fd_safer; no longer needed
69281         now that we include fcntl--.h.
69282
69283         * lib/getdate.y (relative_time): New type.
69284         (RELATIVE_TIME_0): New constant.
69285         (parser_control): Use relative_time instead of doing it ourselves.
69286         (%union): Add new relative_time rel member.
69287         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
69288         Now typeless.
69289         (relunit, relunit_snumber): Now of type rel.
69290         (zone, rel, relunit, get_date): Adjust to above changes.
69291
69292         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
69293         Do not include unistd-safer.h.
69294         (getloadavg): Don't call fd_safer; no longer needed
69295         now that we include fcntl--.h.
69296
69297         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
69298         (make_dir_parents): Treat ENOSYS like EEXIST.
69299
69300         Improve quality of diagnostics on restore_cwd failure.
69301         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
69302         (make_dir_parents): Last arg is now int * (for errno), not bool *.
69303         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
69304         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
69305         each time through the loop.  Do not diagnose restore_cwd failure;
69306         that is the caller's job (and perhaps the caller does not care).
69307
69308         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
69309         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
69310         If the file already exists but is not a directory, don't bother
69311         to try to make its parents.
69312         Close potential file descriptor leak if we can't chdir("/") (!).
69313         Don't always return true if chdir($PWD) fails; return true only
69314         if the requested action was done successfully (except for the
69315         chdir($PWD)).
69316         Don't log final directory unless we actually made it.
69317         Refactor to avoid duplicate code to fix up permissions.
69318         Don't attempt to fix up parent permissions if chdir($PWD) fails.
69319
69320         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
69321         to make it a bit faster and (I hope) clearer.
69322         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
69323         Fix bug in formats like %2N.
69324
69325         * lib/verify.h: New file.
69326
69327 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
69328
69329         Sync from coreutils.
69330         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
69331
69332 2005-09-22  Jim Meyering  <jim@meyering.net>
69333
69334         Sync from coreutils.
69335
69336         * m4/lstat.m4 (gl_FUNC_LSTAT):
69337         Use AC_LIBSOURCES to require lstat.c and lstat.h.
69338         Remove obsolete comment.
69339         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
69340         * m4/xstrtod.m4: Likewise.
69341
69342         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
69343
69344 2005-09-22  Jim Meyering  <jim@meyering.net>
69345
69346         Sync from coreutils.
69347
69348         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
69349
69350         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
69351         the .tm_year member, since otherwise gcc-4.0 would now warn about
69352         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
69353
69354         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
69355         order to avoid an unsuppressible warning from gcc on 64-bit systems.
69356
69357         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
69358         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
69359         when run in a time zone for which daylight savings time is in effect
69360         for the starting date.
69361
69362         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
69363         stop us from restricting permissions of just-created absolute-named
69364         directories.
69365         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
69366         to restore initial working directory.
69367         * lib/mkdir-p.c (make_dir_parents): New parameter:
69368         different_working_dir, to tell caller if/when we change the working
69369         directory and are unable to return to the initial one.
69370         * lib/mkdir-p.h (make_dir_parents): Update prototype.
69371         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
69372         `return false'.  This fixes a bug introduced on 2004-07-30.
69373
69374         * lib/openat.c (fdopendir): Be sure to close the supplied
69375         file descriptor before returning.  This makes our replacement
69376         implementation a little closer to Solaris's, where fdopendir
69377         ties the file descriptor to the returned DIR* pointer.
69378         * lib/openat.c (unlinkat): New function.
69379         * lib/openat.h (unlinkat): Add prototype.
69380         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
69381         (openat_restore_fail): Rename from openat_restore_die.
69382         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
69383
69384         Provide an alternative to exiting immediately upon save_cwd or
69385         restore_cwd failure.  Now, an application can arrange e.g.,
69386         to perform a longjump in that case.
69387         * lib/openat.c: Include dirname.h.
69388         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
69389         (rpl_openat, fdopendir, fstatat): Call openat_save_die
69390         and openat_restore_die rather than calling error directly.
69391         Don't include "error.h" or "exitfail.h"; they're no longer needed.
69392
69393         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
69394         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
69395         define.
69396
69397         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
69398         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
69399                             int utc, int nanoseconds);
69400         Background:
69401         date should not have to allocate a megabyte of virtual memory to
69402         handle a format argument like +%1048575T.  When implemented with
69403         strftime, it must allocate such a buffer, use strftime to fill it
69404         in, print it, then free it.
69405         With fprintftime, it simply prints everything and exits.
69406         With no need for memory allocation, that's one fewer way to fail.
69407         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
69408         optional field width, not before, so we accept %9:z, not %:9z.
69409         (my_strftime): Be sure to use L_('x') for literals.
69410
69411         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
69412         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
69413         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
69414         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
69415         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
69416         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
69417         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
69418         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
69419         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
69420         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
69421         * lib/xgethostname.c, lib/xreadlink.c:
69422         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
69423
69424         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
69425         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
69426         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
69427         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
69428         and don't include <sys/file.h>).
69429
69430 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
69431
69432         Sync from coreutils.
69433
69434         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
69435         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
69436         [!LDAV_DONE]: Avoid unused variable warning.
69437
69438 2005-09-21  Bruno Haible  <bruno@clisp.org>
69439
69440         * lib/unicodeio.h (unicode_to_mb): New declaration.
69441
69442 2005-09-20  Derek Price  <derek@ximbiot.com>
69443
69444         * lib/getaddrinfo.c: Don't include <netdb.h> included from
69445         getaddrinfo.h.
69446
69447 2005-09-20  Bruno Haible  <bruno@clisp.org>
69448
69449         * gnulib-tool: Remove trailing slashes from the values specified for
69450         --source-base, --m4-base, --tests-base, --aux-dir.
69451         Suggested by Simon Josefsson <jas@extundo.com>.
69452
69453 2005-09-20  Bruno Haible  <bruno@clisp.org>
69454
69455         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
69456         func_modules_to_filelist, func_import, func_create_testdir): Make all
69457         sorting results locale-independent, so that gnulib-cache.m4 doesn't
69458         change when gnulib-tool is invoked in a different locale.
69459
69460 2005-09-19  Simon Josefsson  <jas@extundo.com>
69461
69462         * m4/socklen.m4: Fix typo.
69463
69464 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69465
69466         Use a consistent style for including <config.h>.
69467         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
69468         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
69469         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
69470         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
69471         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
69472         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
69473         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
69474         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
69475         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
69476         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
69477         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
69478         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
69479         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
69480         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
69481         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
69482         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
69483         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
69484         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
69485         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
69486         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
69487         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
69488         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
69489         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
69490         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
69491         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
69492         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
69493         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
69494         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
69495         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
69496         lib/xstrtoumax.c, lib/yesno.c:
69497         Standardize inclusion of config.h.
69498         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
69499         lib/inttostr.h:  Removed inclusion of config.h from header files.
69500         * lib/inttostr.c:  Adjusted in-tree users.
69501         * lib/timespec.h: Remove superfluous warning to include config.h.
69502         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
69503         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
69504         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
69505         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
69506         config.h with HAVE_CONFIG_H.
69507
69508 2005-09-19  Jim Meyering  <jim@meyering.net>
69509
69510         * modules/pathmax (License): Change to LGPL.
69511
69512 2005-09-19  Derek Price  <derek@ximbiot.com>
69513
69514         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
69515
69516 2005-09-19  Bruno Haible  <bruno@clisp.org>
69517
69518         * gnulib-tool (import): Provide default for --tests-base.
69519
69520 2005-09-19  Bruno Haible  <bruno@clisp.org>
69521
69522         * doc/quote.texi: New file, extracted from gnulib.texi.
69523         * doc/ctime.texi: New file, extracted from gnulib.texi.
69524         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
69525         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
69526         * doc/gnulib.texi: Include them.
69527
69528 2005-09-18  Bruno Haible  <bruno@clisp.org>
69529
69530         Portability fix.
69531         * gnulib-tool (func_readlink): New function.
69532         (func_ln_if_changed): Use it.
69533
69534 2005-09-18  Bruno Haible  <bruno@clisp.org>
69535
69536         * gnulib-tool: Support --with-tests also with --import.
69537         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
69538         (func_import): Use variables $testsbase and $inctests. Emit a
69539         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
69540         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
69541         SUBDIRS += $testsdir.
69542         (func_create_testdir): Update.
69543
69544 2005-09-18  Bruno Haible  <bruno@clisp.org>
69545
69546         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
69547         instead of $dry_run.
69548         (func_cp_if_changed, func_mv_if_changed): Remove functions.
69549         (func_ln_if_changed): Don't handle dry-run here.
69550         (func_import): In dry-run mode, detect more precisely which actions
69551         would be performed, and don't use "...ing" verbs.
69552
69553 2005-09-18  Bruno Haible  <bruno@clisp.org>
69554
69555         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
69556         (func_import): Use join on two temporary files instead of three nested
69557         loops, in order to determine which files are new or old.
69558
69559 2005-09-18  Bruno Haible  <bruno@clisp.org>
69560
69561         * gnulib-tool (func_import): Comment out code that spits out the
69562         new files with --dry-run.
69563
69564 2005-09-18  Bruno Haible  <bruno@clisp.org>
69565
69566         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
69567
69568 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
69569
69570         * lib/stat-time.h: New file.
69571         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
69572         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
69573         in a different way.
69574         (timespec_cmp): New function.
69575         * lib/utimecmp.c: Include stat-time.h.
69576         (SYSCALL_RESOLUTION): Depend on whether various struct stat
69577         members exist, not on the obsolescent ST_MTIM_NSEC.
69578         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
69579
69580 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
69581
69582         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
69583
69584 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
69585
69586         * MODULES.html.sh (File system functions): Add stat-time.
69587         * modules/stat-time: New file.
69588         * modules/timespec (Files): Remove m4/st_mtim.m4; this
69589         is now done in a different way, by the stat-time module.
69590         * modules/utimecmp (Depends-on): Add stat-time.
69591
69592 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
69593
69594         * m4/st_mtim.m4: Remove.  Superseded by...
69595         * m4/stat-time.m4: New file.
69596         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
69597         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
69598
69599 2005-09-15  Derek Price  <derek@ximbiot.com>
69600
69601         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
69602
69603 2005-09-15  Derek Price  <derek@ximbiot.com>
69604
69605         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
69606         * lib/regex_internal.c: Ditto, using this...
69607         (__GNUC_PREREQ): ...new macro.
69608         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
69609         using...
69610         (__GNUC_PREREQ): ...this new macro.
69611
69612         * lib/strstr.h: Include string.h. Define strstr as a macro here.
69613
69614 2005-09-15  Derek Price  <derek@ximbiot.com>
69615             Paul Eggert  <eggert@cs.ucla.edu>
69616
69617         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
69618         changes, consolidating in...
69619         * lib/regex_internal.h: ...this file.
69620
69621 2005-09-13  Jim Meyering  <jim@meyering.net>
69622
69623         * lib/canon-host.c: Filter through gnu indent and reword comments
69624         slightly.
69625         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
69626
69627 2005-09-13  Derek Price  <derek@ximbiot.com>
69628
69629         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
69630         failure.
69631         Reported by Jim Meyering  <jim@meyering.net>.
69632
69633 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
69634
69635         * lib/base64.c: Typo.
69636         (base64_encode): Put b64str in initialized data section.
69637
69638 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
69639
69640         Merge glibc and coreutils changes into gnulib, plus a few
69641         extra fixes.
69642         * lib/md5.c: Use #error rather than a string.
69643         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
69644         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
69645         (__attribute__): Define to empty for non recent-GCC.
69646         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
69647         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
69648         Renamed from their non-__ counterparts, with new macros replacing
69649         them if not _LIBC.  Add __THROW attribute.
69650         (rol): Remove.
69651         (struct md5_ctx): Align buffer if using GCC.
69652         * lib/sha1.h (struct sha1_ctx): Likewise.
69653         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
69654         The old name was backwards.
69655         (NOTSWAP): Remove; not used.
69656         (rol): New macro, moved here from md5.h.
69657         (sha1_process_block): Remove a FIXME that doesn't make sense.
69658
69659 2005-09-12  Derek Price  <derek@ximbiot.com>
69660
69661         Return usable errors from canon-host.
69662         * lib/canon-host.h: New file.
69663         * lib/canon-host.c (canon_host): Wrap...
69664         (canon_host_r): ...this new function, which now relies exclusively on
69665         getaddrinfo.
69666         (ch_strerror): New function.
69667         (last_cherror): New global.
69668         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
69669         interface.
69670         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
69671         void *.
69672         (freeaddrinfo): Free ai->ai_canonname when set.
69673
69674 2005-09-12  Derek Price  <derek@ximbiot.com>
69675
69676         Make canon-host require getaddrinfo.
69677         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
69678         AC_LIBSOURCE canon-host.h.  Call...
69679         (gl_PREREQ_CANON_HOST): ...this new function, which requires
69680         gl_GETADDRINFO.
69681         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
69682
69683 2005-09-12  Derek Price  <derek@ximbiot.com>
69684
69685         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
69686         LGPL.
69687         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
69688
69689 2005-09-12  Derek Price  <derek@ximbiot.com>
69690
69691         * lib/gai_strerror.c: Include config.h when available.  Include
69692         getaddrinfo.h before other headers to test interface.
69693         Reported by Larry Jones <lawrence.jones@ugs.com>.
69694
69695 2005-09-12  Derek Price  <derek@ximbiot.com>
69696             Paul Eggert  <eggert@cs.ucla.edu>
69697
69698         * modules/glob (Files): Add glob-libc.h.
69699
69700 2005-09-12  Derek Price  <derek@ximbiot.com>
69701             Paul Eggert  <eggert@cs.ucla.edu>
69702
69703         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
69704         glob_.h, glob-libc.h.
69705         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
69706
69707 2005-09-12  Derek Price  <derek@ximbiot.com>
69708             Paul Eggert  <eggert@cs.ucla.edu>
69709
69710         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
69711         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
69712         protecting things that should be done only in gnulib contexts.
69713         * lib/glob_.h: New file, containing only the glob things needed for
69714         gnulib.
69715         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
69716         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
69717         (glob, globfree, glob_pattern_p): Now defined simply in terms of
69718         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
69719         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
69720         and to respect the namespace rules better.
69721
69722 2005-09-08  Simon Josefsson  <jas@extundo.com>
69723
69724         * modules/socklen: New file.
69725
69726 2005-09-08  Simon Josefsson  <jas@extundo.com>
69727
69728         * m4/socklen.m4: New file.
69729
69730 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
69731
69732         * modules/utimens (Files): Add m4/utimbuf.m4, since
69733         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
69734         Reported by Sergey Poznyakoff.
69735
69736 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
69737
69738         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
69739         definitions, since that's the preferred style in glibc.
69740         Fix a minor spacing issue, and update copyright notice to match
69741         glibc's.
69742
69743 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
69744
69745         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
69746
69747 2005-09-06  Simon Josefsson  <jas@extundo.com>
69748
69749         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
69750         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
69751
69752 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
69753
69754         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
69755         warning.
69756
69757 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
69758
69759         * config/srclist.txt: Add glibc bug 1302.
69760
69761 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
69762
69763         Change bitset word type from unsigned int to unsigned long int,
69764         as this has better performance on typical 64-bit hosts.
69765         Port bitset code to hosts with unusual word sizes.
69766         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
69767         (build_collating_symbol):
69768         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
69769         argument is a bitset.  This is merely a style issue, but it makes
69770         it clearer that an entire array is expected.
69771         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
69772         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
69773         Port to the case where bitset_word is not the same as unsigned int.
69774         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
69775         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
69776         Likewise.
69777         * lib/regexec.c (check_dst_limits_calc_pos_1,
69778         check_subexp_matching_top):
69779         (build_trtable, group_nodes_into_DFAstates):
69780         Likewise.
69781         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
69782         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
69783         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
69784         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
69785         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
69786         * lib/regcomp.c (optimize_subexps, lower_subexp):
69787         Work even if bitset_word has holes in its bitwise representation.
69788         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
69789         * lib/regexec.c (check_dst_limits_calc_pos_1,
69790         check_subexp_matching_top):
69791         Likewise.
69792         * lib/regex_internal.c (re_string_reconstruct):
69793         Don't assume UCHAR_MAX == 255.
69794         * lib/regex_internal.h (bitset_set_all): Likewise.
69795         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
69796         All uses changed.
69797         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
69798         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
69799         All uses changed.
69800         (BITSET_WORD_MAX): New macro.
69801         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
69802         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
69803         (bitset_empty, bitset_copy):
69804         Prefer sizeof (bitset) to multiplying it out ourselves.
69805         (bitset_not_merge): Remove; unused.
69806         (bitset_contain): Return bool, not unsigned int with one bit on.
69807         All callers changed.
69808         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
69809         alignment than re_node_set; do this by defining a new internal
69810         type struct dests_alloc and using it to allocate memory.
69811
69812 2005-09-05  Bruno Haible  <bruno@clisp.org>
69813
69814         * gnulib-tool (func_import): Fix comparison in handling of symbolic
69815         links.
69816
69817 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
69818
69819         * modules/size_max (Makefile.am): Add size_max.h
69820
69821 2005-09-04  Derek Price  <derek@ximbiot.com>
69822
69823         * gnulib-tool (func_import): Fix reversed $symbolic logic.
69824
69825 2005-09-03  Simon Josefsson  <jas@extundo.com>
69826
69827         * gnulib-tool: Fix typo.
69828
69829 2005-09-03  Simon Josefsson  <jas@extundo.com>
69830
69831         * config/srclist.txt: Add glibc bug 1293.
69832
69833 2005-09-03  Derek Price  <derek@ximbiot.com>
69834
69835         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
69836         From Larry Jones <lawrence.jones@ugs.com>.
69837
69838 2005-09-02  Simon Josefsson  <jas@extundo.com>
69839
69840         * modules/socklen: New file.
69841
69842 2005-09-02  Simon Josefsson  <jas@extundo.com>
69843
69844         * modules/havelib: New module.
69845
69846         * modules/gettext, modules/iconv, modules/lock, modules/readline:
69847         Use havelib.
69848
69849 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
69850
69851         Check for arithmetic overflow when calculating sizes, to prevent
69852         some buffer-overflow issues.  These patches are conservative, in the
69853         sense that when I couldn't determine whether an overflow was possible,
69854         I inserted a run-time check.
69855         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
69856         macros.
69857         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
69858         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
69859         (re_xnrealloc, re_x2nrealloc): New inline functions.
69860         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
69861         parse_bracket_exp):
69862         (build_equiv_class, build_charclass): Check for arithmetic overflow
69863         in size expression calculations.
69864         * lib/regex_internal.c (re_string_realloc_buffers):
69865         (build_wcs_upper_buffer, re_node_set_add_intersect):
69866         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
69867         (re_dfa_add_node, register_state): Likewise.
69868         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
69869         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
69870         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
69871         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
69872
69873 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
69874
69875         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
69876         m4/ulonglong.m4.  Problem reported by Martin Lambers.
69877
69878 2005-09-02  Bruno Haible  <bruno@clisp.org>
69879
69880         Support for lib vs. lib64 distinction on biarch platforms.
69881         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
69882         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
69883         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
69884
69885 2005-09-02  Bruno Haible  <bruno@clisp.org>
69886
69887         * gnulib-tool (import): In the other first-use case, provide defaults
69888         as well.
69889
69890 2005-09-02  Bruno Haible  <bruno@clisp.org>
69891
69892         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
69893         patches not yet found in the latest gettext release.
69894
69895 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
69896
69897         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
69898         to avoid a collision with bits/local_lim.h in glibc.
69899         All uses changed.  Problem reported by Dmitry V. Levin in
69900         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
69901
69902         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
69903         bugs in int versus size_t comparisons.
69904         (re_string_context_at): Fix bug where the code assumed that
69905         Idx is signed.
69906
69907         Use bool where appropriate.
69908         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
69909         All callers changed.
69910         (calc_eclosure_iter): Likewise, for ROOT arg.
69911         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
69912         (build_charclass_op): Likewise, for NON_MATCH arg.
69913         * lib/regex_internal.c (re_string_allocate, re_string_construct):
69914         (re_string_construct_common): Likewise, for ICASE arg.
69915         * lib/regexec.c (re_search_2_stub, re_search_stub):
69916         Likewise, for RET_LEN arg.
69917         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
69918         (set_regs): Likewise, for FL_BACKTRACK arg.
69919         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
69920         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
69921         (calc_eclosure_iter, parse_bracket_exp):
69922         Use bool for internal variables that are booleans.
69923         * lib/regexec.c (re_search_internal, check_matching,
69924         proceed_next_node):
69925         (set_regs, build_sifted_states, sift_states_bkref):
69926         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
69927         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
69928         (find_collation_sequence_value):
69929         Likewise.
69930         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
69931         (re_node_set_compare):
69932         Return bool, not int. All callers changed.
69933         * lib/regexec.c (check_halt_node_context, check_dst_limits):
69934         (build_trtable, check_node_accept): Likewise.
69935         * lib/regex_internal.h: Include stdbool.h.
69936
69937         Fix bugs uncovered when converting to bool.
69938         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
69939         failure instead of charging ahead blindly.
69940         * lib/regex_internal.c (register_state): Likewise.
69941         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
69942         for freeing internal storage.
69943         (group_nodes_into_DFA_states): Use unsigned int, not int, for
69944         bitset pieces used as boolean, to avoid undefined behavior
69945         on hosts that do int overflow checking.
69946
69947 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
69948
69949         * config/srclist.txt: Add glibc bugs 1285-1287.
69950
69951 2005-09-01  Jim Meyering  <jim@meyering.net>
69952
69953         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
69954         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
69955         Require gl_STAT_MACROS, too.
69956
69957 2005-09-01  Bruno Haible  <bruno@clisp.org>
69958
69959         * gnulib-tool (import): In the first-use case, provide defaults.
69960
69961 2005-09-01  Bruno Haible  <bruno@clisp.org>
69962
69963         * gnulib-tool (func_import): Remove the .tmp files.
69964
69965 2005-09-01  Bruno Haible  <bruno@clisp.org>
69966
69967         * gnulib-tool (func_import): Fix handling of symbolic links.
69968
69969 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
69970
69971         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
69972         old glibc regex code mishandles strings longer than 2**31 bytes.
69973         This patch fixes this when the regex code is used in gnulib
69974         (i.e., outside glibc).
69975
69976         This patch should not affect the use of the regex code inside
69977         glibc.  No doubt this problem also needs to be handled for glibc
69978         as well, but the result will be an incompatible change to the
69979         glibc ABI, and the old ABI will have to be supported too.  That
69980         can be the the subject for another patch.
69981
69982         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
69983         governing whether the rest of this patch is active.  By default,
69984         the macro is disabled and the patch has no effect.
69985         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
69986         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
69987         (struct re_pattern_buffer, re_search, re_search_2, re_match):
69988         (re_match_2, re_set_registers): Use the new types.
69989         * lib/regex_internal.h (Idx, re_hashval_t): New types.
69990         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
69991         New macros.
69992         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
69993         (re_string_context_at, bin_tree_t, re_dfastate_t):
69994         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
69995         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
69996         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
69997         (re_string_char_size_at, re_string_wchar_at):
69998         (re_string_elem_size_at):
69999         Use the new types and macros to port to 64-bit hosts.
70000         Use unsigned types for internal values, so that the code
70001         mostly works even for arrays larger than SSIZE_MAX.
70002         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
70003         (search_duplicated_node, calc_eclosure_iter, fetch_number):
70004         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
70005         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
70006         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
70007         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
70008         (calc_inveclosure, parse_dup_op, build_range_exp):
70009         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
70010         (fetch_number, create_token_tree, mark_opt_subexp):
70011         Likewise.
70012         * lib/regex_internal.c (re_string_construct_common,
70013         create_ci_newstate):
70014         (create_cd_newstate, re_string_allocate, re_string_construct):
70015         (re_string_realloc_buffers, build_wcs_upper_buffer):
70016         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
70017         (re_string_reconstruct, re_string_peek_byte_case):
70018         (re_string_fetch_byte_case, re_string_context_at):
70019         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
70020         (re_node_set_init_copy, re_node_set_add_intersect):
70021         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
70022         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
70023         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
70024         (re_acquire_state, re_acquire_state_context, register_state):
70025         Likewise.
70026         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
70027         search_cur_bkref_entry):
70028         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
70029         (re_search_internal, re_search_2_stub, re_search_stub)
70030         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
70031         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
70032         (update_cur_sifted_state, check_dst_limits):
70033         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
70034         (check_subexp_limits, sift_states_bkref, merge_state_array):
70035         (check_subexp_matching_top, get_subexp, get_subexp_sub):
70036         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
70037         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
70038         (expand_bkref_cache, check_node_accept_bytes):
70039         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
70040         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
70041         (acquire_init_state_context, check_halt_node_context):
70042         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
70043         (sift_states_backward, clean_state_log_if_needed):
70044         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
70045         (find_recover_state, transit_state_sb, transit_state_mb):
70046         (transit_state_bkref, build_trtable, match_ctx_clean):
70047         Likewise.
70048         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
70049         to work around an assumption that REG_MISSING is negative.
70050
70051         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
70052         (seek_collating_symbol_entry) [defined _LIBC]:
70053         (lookup_collation_sequence_value) [defined _LIBC]:
70054         (build_range_exp, build_collating_symbol) [defined _LIBC]:
70055         Use prototypes rather than old-style function definitions.
70056         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
70057         (transit_state_sb) [0]:
70058         (find_collation_sequence_value) [defined _LIBC]: Likewise.
70059
70060         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
70061         rm_eo.
70062
70063         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
70064         (optimize_subexps, lower_subexp):
70065         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
70066         since the signed shift might overflow.  Use 1u<<31 instead.
70067         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
70068         Likewise.
70069         * lib/regexec.c (check_dst_limits_calc_pos_1,
70070         check_subexp_matching_top): Likewise.
70071
70072         * lib/regcomp.c (optimize_subexps, lower_subexp):
70073         Use CHAR_BIT rather than 8, for clarity.
70074         * lib/regexec.c (check_dst_limits_calc_pos_1):
70075         (check_subexp_matching_top): Likewise.
70076         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
70077         have to worry about portability issues when shifting it left.
70078         Remove no-longer-needed test for table_size > 0.
70079         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
70080         in a word, as the resulting behavior is undefined.
70081         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
70082         in one case, a <= should have been an <, and in another case the
70083         whole test was missing.
70084         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
70085         the standard name CHAR_BIT.
70086         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
70087         this is not true on one's complement and signed-magnitude hosts.
70088
70089         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
70090         next_last_offset.
70091         (struct re_dfa_t): Remove unused member states_alloc.
70092         * lib/regcomp.c (init_dfa): Don't initialize unused members.
70093
70094 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
70095
70096         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
70097         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
70098         and large-file glibc and in 32-bit large-file Solaris.
70099
70100 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
70101
70102         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
70103         lengths fit in regoff_t; this isn't true if regoff_t is the same
70104         width as size_t.
70105         * lib/regex.c (re_search_internal): 5th arg is LAST_START
70106         (= START + RANGE) instead of RANGE.  This avoids overflow
70107         problems when regoff_t is the same width as size_t.
70108         All callers changed.
70109         (re_search_2_stub): Check for overflow when adding the
70110         sizes of the two strings.
70111         (re_search_stub): Check for overflow when adding START
70112         to RANGE; if it occurs, substitute the extreme value.
70113
70114 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
70115
70116         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
70117
70118 2005-08-31  Jim Meyering  <jim@meyering.net>
70119
70120         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
70121         a pointer-to-const.
70122         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
70123         (register_state): Likewise.
70124         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
70125         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
70126         (group_nodes_into_DFAstates): Likewise.
70127
70128 2005-08-31  Jim Meyering  <jim@meyering.net>
70129
70130         * check-module: Add a FIXME comment.
70131
70132 2005-08-31  Eric Blake  <ebb9@byu.net>
70133
70134         * modules/unistd-safer (Files): Add unistd--.h.
70135         * modules/stdio-safer (Files): Add stdio--.h.
70136
70137 2005-08-31  Derek Price  <derek@ximbiot.com>
70138
70139         * lib/getdelim.c (getdelim): Return EOF on EOF.
70140         Reported by Larry Jones <lawrence.jones@ugs.com>.
70141
70142 2005-08-31  Bruno Haible  <bruno@clisp.org>
70143
70144         Avoid unnecessary diffs in the generated lib/Makefile.am.
70145         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
70146         the generated files.
70147         (func_import): Don't set cmd.
70148
70149 2005-08-31  Bruno Haible  <bruno@clisp.org>
70150
70151         * lib/strstr.c: Include <stddef.h>, for NULL.
70152         * lib/strcasestr.c: Likewise.
70153         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
70154
70155 2005-08-31  Bruno Haible  <bruno@clisp.org>
70156
70157         * gnulib-tool: New option --macro-prefix.
70158         (func_import): Use macro_prefix.
70159         (import): Handle option --macro-prefix.
70160
70161 2005-08-31  Bruno Haible  <bruno@clisp.org>
70162
70163         * gnulib-tool (import): Rename most ac_* variables to cached_*.
70164         Also use new variables cached_lgpl, cached_libtool.
70165
70166 2005-08-31  Bruno Haible  <bruno@clisp.org>
70167
70168         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
70169         always instantiating them.
70170
70171 2005-08-31  Bruno Haible  <bruno@clisp.org>
70172
70173         * gnulib-tool (func_import): Read the previous cached settings
70174         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
70175         earlier added by gnulib but are now dropped. Warn when a gnulib file
70176         overwrites a non-gnulib file.
70177
70178 2005-08-31  Bruno Haible  <bruno@clisp.org>
70179
70180         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
70181         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
70182         projects that don't keep autogenerated files in CVS. Put into
70183         actioncmd only the specified modules, not the transitive closure.
70184
70185 2005-08-31  Bruno Haible  <bruno@clisp.org>
70186
70187         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
70188         Create directories that shall be filled.
70189         (import): Don't look for gl_* macros in configure.ac. Recurse across
70190         all directories containing a gnulib-cache.m4 files, if meaningful.
70191
70192 2005-08-31  Bruno Haible  <bruno@clisp.org>
70193
70194         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
70195         (import): Set seen_libtool when we see gl_LIBTOOL.
70196
70197 2005-08-31  Bruno Haible  <bruno@clisp.org>
70198
70199         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
70200         declaration macro definitions from generated gnulib.m4.
70201
70202 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
70203
70204         * lib/iconvme.h: Add prototype for iconv_alloc.
70205
70206 2005-08-29  Simon Josefsson  <jas@extundo.com>
70207
70208         * lib/iconvme.c: Fix errno.
70209
70210 2005-08-29  Bruno Haible  <bruno@clisp.org>
70211
70212         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
70213         that it works when the directory contains spaces.
70214
70215 2005-08-29  Bruno Haible  <bruno@clisp.org>
70216
70217         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
70218
70219 2005-08-29  Bruno Haible  <bruno@clisp.org>
70220
70221         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
70222         Emit more advice.
70223
70224 2005-08-29  Bruno Haible  <bruno@clisp.org>
70225         and Stepan Kasal  <kasal@ucw.cz>
70226
70227         * check-module: If more parameters are given, check each of them
70228         separately; add more exceptions, as noted by Jim Meyering.
70229         (check_module): New procedure.
70230         (%exempt_header): Now contains all exceptions.
70231
70232 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
70233
70234         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
70235
70236 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
70237
70238         * lib/iconvme.c: Split iconv_string into iconv_alloc.
70239
70240 2005-08-28  Bruno Haible  <bruno@clisp.org>
70241
70242         * m4/gnulib-tool.m4: New file.
70243
70244 2005-08-27  Jim Meyering  <jim@meyering.net>
70245
70246         * modules/unistd-safer (Files): Add pipe-safer.c.
70247         * modules/fcntl-safer (Files): Add creat-safer.c.
70248
70249 2005-08-27  Jim Meyering  <jim@meyering.net>
70250
70251         * m4/stdlib-safer.m4: New file.  From coreutils.
70252         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
70253         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
70254         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
70255         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
70256         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
70257
70258 2005-08-27  Jim Meyering  <jim@meyering.net>
70259
70260         * lib/fopen-safer.c: Merge minor changes from coreutils.
70261         * lib/dup-safer.c: Likewise.
70262         * lib/fd-safer.c: Likewise.
70263
70264         Merge from coreutils.
70265         * lib/stdio--.h: New file.
70266         * lib/stdlib--.h: New file.
70267         * lib/mkstemp-safer.c: New file.
70268
70269         GNU tar needs these.
70270         * lib/pipe-safer.c: New file.
70271         * lib/creat-safer.c: New file.
70272         * lib/fcntl--.h (creat): Define to creat_safer.
70273         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
70274         * lib/unistd--.h (pipe): Define to pipe_safer.
70275         * lib/unistd-safer.h: Declare pipe_safer.
70276
70277 2005-08-26  Simon Josefsson  <jas@extundo.com>
70278
70279         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
70280         Haible <bruno@clisp.org>.
70281
70282 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
70283
70284         * lib/regex_internal.h: Remove all references to
70285         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
70286         or better.
70287         (bitset_not, bitset_merge, bitset_not_merge):
70288         (bitset_mask, re_string_allocate, re_string_construct):
70289         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
70290         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
70291         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
70292         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
70293         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
70294         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
70295         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
70296         (re_acquire_state_context):
70297         Remove unnecessary forward decls.
70298         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
70299         Put __attribute at function definition,
70300         now that the function decl has been removed.
70301         * lib/regex_internal.c (re_string_peek_byte_case):
70302         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
70303         Likewise.
70304
70305 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
70306
70307         * m4/regex.m4: Add AC_PREREQ(2.50).
70308         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
70309
70310 2005-08-25  Simon Josefsson  <jas@extundo.com>
70311
70312         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
70313         __fsetlocking.
70314
70315 2005-08-25  Simon Josefsson  <jas@extundo.com>
70316
70317         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
70318         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
70319         GLIBC specific code.
70320
70321 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
70322
70323         Make regex safe for g++.  This fixes one real bug (an "err"
70324         that should have been "*err").  g++ problem reported by
70325         Sam Steingold.
70326         * lib/regex_internal.h (re_calloc): New macro, consistent with
70327         re_malloc etc.  All callers of calloc changed to use re_calloc.
70328         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
70329         not int.  All callers changed.
70330         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
70331         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
70332         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
70333         (find_recover_state): Change "err" to "*err"; this fixes what
70334         appears to be a real bug.
70335         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
70336         versus int.
70337
70338 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
70339
70340         * modules/regex (Depends-on): Add malloc, since the code
70341         assumes that !malloc(0) means failure.
70342
70343 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
70344
70345         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
70346
70347         alloca modernization/simplification for regex.
70348         * lib/regex.c: Remove portability cruft for alloca.  This no longer
70349         needs to be at the start of the file, and can be moved into
70350         regex_internal.h and simplified.
70351         * lib/regex_internal.h: Include <alloca.h>.
70352         (__libc_use_alloca) [!defined _LIBC]: New macro.
70353         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
70354         now works outside glibc.
70355
70356 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
70357
70358         * config/srclist.txt: Add glibc bugs 1241, 1245.
70359
70360 2005-08-25  Jim Meyering  <jim@meyering.net>
70361
70362         * lib/open-safer.c: Include <config.h>.
70363         Otherwise, we'd lose LARGEFILE support in any file using
70364         e.g. "fcntl--.h"
70365
70366 2005-08-25  Bruno Haible  <bruno@clisp.org>
70367
70368         * m4/minmax.m4: Require autoconf 2.52.
70369         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
70370         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
70371         alternatives of translit over the alphabet.
70372         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
70373
70374 2005-08-24  Simon Josefsson  <jas@extundo.com>
70375
70376         * tests/test-getpass.c: New file.
70377
70378 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
70379
70380         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
70381         for GNU regex features.
70382
70383 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
70384
70385         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
70386         * lib/regex.h (regerror): Likewise.
70387
70388         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
70389         requires this.  (The code never needed it.)
70390
70391         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
70392         All uses of recently-renamed identifiers changed to use the new,
70393         POSIX-compliant names.  The code will build and run just fine
70394         without these changes, but it's better to eat our own dog food
70395         and use the standard-conforming names.
70396
70397         * lib/regex.h: Fix a multitude of POSIX name space violations.
70398         These changes have an effect only for programs that define
70399         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
70400         do not change anything for programs compiled in the normal way.
70401         Also, there is no effect on the ABI.
70402
70403         (_REGEX_SOURCE): New macro.
70404         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
70405         defined and _GNU_SOURCE is not; this fixes a name space violation.
70406
70407         Rename the following macros to obey POSIX requirements.
70408         The old names are still visible as macros if _REGEX_SOURCE is defined.
70409         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
70410         RE_BACKSLASH_ESCAPE_IN_LISTS.
70411         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
70412         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
70413         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
70414         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
70415         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
70416         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
70417         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
70418         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
70419         (REG_INTERVALS): renamed from RE_INTERVALS.
70420         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
70421         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
70422         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
70423         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
70424         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
70425         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
70426         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
70427         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
70428         RE_UNMATCHED_RIGHT_PAREN_ORD.
70429         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
70430         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
70431         (REG_DEBUG): renamed from RE_DEBUG.
70432         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
70433         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
70434         unusual, since we can't clash with the POSIX REG_ICASE.
70435         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
70436         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
70437         (REG_NO_SUB): renamed from RE_NO_SUB.
70438         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
70439         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
70440         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
70441         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
70442         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
70443         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
70444         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
70445         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
70446         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
70447         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
70448         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
70449         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
70450         RE_SYNTAX_POSIX_MINIMAL_BASIC.
70451         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
70452         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
70453         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
70454         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
70455         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
70456         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
70457         (REG_FIXED): Renamed from REGS_FIXED.
70458         (REG_NREGS): Renamed from RE_NREGS.
70459
70460         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
70461         of other REG_* macros, since POSIX says the user is allowed to
70462         #undef these macros selectively.
70463
70464         (reg_errcode_t): Update comment stating what other tables need
70465         to be consistent.
70466
70467         Rename the following enum values to obey POSIX requirements.
70468         The old names are still visible as macros.
70469         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
70470         is not defined, since GNU is supposed to be a superset of POSIX as
70471         much as possible, and since we want reg_errcode_t to be a signed
70472         type for implementation consistency.
70473         (_REG_NOERROR): Renamed from REG_NOERROR.
70474         (_REG_NOMATCH): Renamed from REG_NOMATCH.
70475         (_REG_BADPAT): Renamed from REG_BADPAT.
70476         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
70477         (_REG_ECTYPE): Renamed from REG_ECTYPE.
70478         (_REG_EESCAPE): Renamed from REG_EESCAPE.
70479         (_REG_ESUBREG): Renamed from REG_ESUBREG.
70480         (_REG_EBRACK): Renamed from REG_EBRACK.
70481         (_REG_EPAREN): Renamed from REG_EPAREN.
70482         (_REG_EBRACE): Renamed from REG_EBRACE.
70483         (_REG_BADBR): Renamed from REG_BADBR.
70484         (_REG_ERANGE): Renamed from REG_ERANGE.
70485         (_REG_ESPACE): Renamed from REG_ESPACE.
70486         (_REG_BADRPT): Renamed from REG_BADRPT.
70487         (_REG_EEND): Renamed from REG_EEND.
70488         (_REG_ESIZE): Renamed from REG_ESIZE.
70489         (_REG_ERPAREN): Renamed from REG_ERPAREN.
70490         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
70491         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
70492         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
70493         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
70494
70495         (_REG_RE_NAME, _REG_RM_NAME): New macros.
70496         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
70497         changed.  But support the old name if the new one is not defined
70498         and if _REGEX_SOURCE.
70499
70500         Change the following member names in struct re_pattern_buffer.
70501         The old names are still supported if !_REGEX_SOURCE.
70502         The new names are always supported, regardless of _REGEX_SOURCE.
70503         (re_buffer): Renamed from buffer.
70504         (re_allocated): Renamed from allocated.
70505         (re_used): Renamed from used.
70506         (re_syntax): Renamed from syntax.
70507         (re_fastmap): Renamed from fastmap.
70508         (re_translate): Renamed from translate.
70509         (re_can_be_null): Renamed from can_be_null.
70510         (re_regs_allocated): Renamed from regs_allocated.
70511         (re_fastmap_accurate): Renamed from fastmap_accurate.
70512         (re_no_sub): Renamed from no_sub.
70513         (re_not_bol): Renamed from not_bol.
70514         (re_not_eol): Renamed from not_eol.
70515         (re_newline_anchor): Renamed from newline_anchor.
70516
70517         Change the following member names in struct re_registers.
70518         The old names are still supported if !_REGEX_SOURCE.
70519         The new names are always supported, regardless of _REGEX_SOURCE.
70520         (rm_num_regs): Renamed from num_regs.
70521         (rm_start): Renamed from start.
70522         (rm_end): Renamed from end.
70523
70524         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
70525         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
70526         Prepend __ to parameter names.
70527
70528         Undo yesterday's changes.
70529
70530 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
70531
70532         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
70533         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
70534         lib/regex.c.
70535
70536 2005-08-24  Jim Meyering  <jim@meyering.net>
70537
70538         Sync from coreutils.
70539         * m4/fcntl-safer.m4: New file.
70540
70541         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
70542         and object files for this module.
70543
70544 2005-08-24  Jim Meyering  <jim@meyering.net>
70545
70546         Sync from coreutils.
70547         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
70548
70549 2005-08-24  Jim Meyering  <jim@meyering.net>
70550
70551         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
70552         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
70553
70554 2005-08-24  Jim Meyering  <jim@meyering.net>
70555
70556         * modules/fcntl-safer: New module.
70557         * modules/fts (Depends-on): Add fcntl-safer.
70558         * MODULES.html.sh (File descriptor based Input/Output):
70559         Add fcntl-safer.
70560
70561 2005-08-24  Bruno Haible  <bruno@clisp.org>
70562
70563         Support for unit test modules.
70564         * modules/README: Mention tests modules.
70565         * modules/TEMPLATE-TESTS: New file.
70566         * gnulib-tool: New options --extract-tests-module, --with-tests and
70567         --tests-base (unused for the moment).
70568         (testsbase, inctests): New variables.
70569         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
70570         (func_verify_module): Exclude TEMPLATE-TESTS.
70571         (func_verify_nontests_module, func_verify_tests_module): New functions.
70572         (func_get_dependencies): Add implicit dependency for tests modules.
70573         (func_get_tests_module): New function.
70574         (func_modules_transitive_closure): When --with-tests was specified,
70575         include the unit tests as well, unless explicitly avoided.
70576         (func_emit_lib_Makefile_am): Ignore the tests modules here.
70577         (func_emit_tests_Makefile_am): New function.
70578         (func_create_testdir): When --with-tests was specified, emit a
70579         tests/ directory.
70580         * MODULES.html.sh (Future developments): Update.
70581
70582 2005-08-24  Bruno Haible  <bruno@clisp.org>
70583
70584         * modules/tls-tests: New file.
70585         * tests/test-tls.c: New file, from GNU gettext.
70586
70587 2005-08-24  Bruno Haible  <bruno@clisp.org>
70588
70589         * modules/lock-tests: New file.
70590         * tests/test-lock.c: New file, from GNU gettext.
70591
70592 2005-08-24  Bruno Haible  <bruno@clisp.org>
70593
70594         * lib/lock.h: Add multiple inclusion guard.
70595         * lib/tls.h: Add multiple inclusion guard.
70596
70597 2005-08-24  Bruno Haible  <bruno@clisp.org>
70598
70599         * gnulib-tool: Add support for the --aux-dir option to
70600         --create-testdir, --create-megatestdir, --test, --megatest.
70601         (func_create_testdir, func_create_megatestdir): Optionally emit a
70602         AC_CONFIG_AUX_DIR directive.
70603         (create-testdir, create-megatestdir, test, megatest): Provide a
70604         default value for $auxdir.
70605
70606 2005-08-24  Bruno Haible  <bruno@clisp.org>
70607
70608         * gnulib-tool (import): Use compound statement instead of subshell
70609         where possible.
70610
70611 2005-08-24  Bruno Haible  <bruno@clisp.org>
70612
70613         * gnulib-tool (import): Change --aux-dir default to "build-aux".
70614
70615 2005-08-24  Bruno Haible  <bruno@clisp.org>
70616
70617         * gnulib-tool (func_version): Update.
70618
70619 2005-08-24  Bruno Haible  <bruno@clisp.org>
70620
70621         * gnulib-tool (func_import, func_create_testdir,
70622         func_create_megatestdir): Quote all autoconf macro arguments.
70623
70624 2005-08-24  Bruno Haible  <bruno@clisp.org>
70625
70626         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
70627         option --force, because --force causes the aclocal.m4 of each
70628         subdirectory to be newer than the corresponding config.h.in.
70629
70630 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
70631
70632         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
70633         All contents moved to gl_REGEX.
70634         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
70635         assume that it does.
70636
70637 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
70638
70639         * lib/regex.h (REG_NOSYS)
70640         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
70641         Define, since POSIX requires it as of 2001.
70642         (_REG_ENOSYS)
70643         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
70644         New private symbol, used to keep the enum signed in all cases.
70645         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
70646         Youngman in
70647         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
70648
70649         * lib/regex_internal.c (re_string_skip_chars, register_state):
70650         (calc_state_hash):
70651         Remove forward decls; no longer needed now that we use prototypes.
70652         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
70653         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
70654         (clean_state_log_if_needed): Likewise.
70655
70656 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
70657
70658         * config/srclist.txt: Add glibc bugs 1231-1233.
70659
70660 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
70661
70662         Fix problems reported by Sam Steingold in
70663         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
70664         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
70665         assumed that reg_errcode_t is a signed type, which is not
70666         necessarily true if _XOPEN_SOURCE is not defined.
70667         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
70668         since some compilers warn about it otherwise.
70669
70670 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
70671
70672         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
70673         (init_word_char, create_initial_state, duplicate_node_closure):
70674         (fetch_token, peek_token_bracket, build_range_exp):
70675         (build_collating_symbol): Remove forward decls; no longer needed
70676         now that we use prototypes.
70677
70678         * lib/regcomp.c:
70679         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
70680         (re_compile_fastmap_iter, regcomp, regerror, regfree):
70681         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
70682         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
70683         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
70684         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
70685         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
70686         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
70687         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
70688         (build_range_exp, build_collating_symbol, parse_bracket_exp):
70689         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
70690         (build_charclass, build_charclass_op, fetch_number, create_tree):
70691         (create_token_tree, mark_opt_subexp, duplicate_tree):
70692         Use prototypes rather than old-style definitions.
70693
70694         * lib/regex_internal.c:
70695         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
70696         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
70697         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
70698         (re_string_reconstruct, re_string_peek_byte_case):
70699         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
70700         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
70701         (re_node_set_init_copy, re_node_set_add_intersect):
70702         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
70703         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
70704         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
70705         (re_acquire_state, re_acquire_state_context, register_state):
70706         (create_ci_newstate, create_cd_newstate, free_state):
70707         Likewise.
70708         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
70709         re_search_2):
70710         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
70711         (re_search_internal, prune_impossible_nodes):
70712         (acquire_init_state_context, check_matching, static):
70713         (check_halt_node_context, check_halt_state_context, proceed_next_node):
70714         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
70715         (update_regs, sift_states_backward, build_sifted_states):
70716         (clean_state_log_if_needed, merge_state_array):
70717         (update_cur_sifted_state, add_epsilon_src_nodes):
70718         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
70719         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
70720         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
70721         (find_recover_state, check_subexp_matching_top, transit_state_mb):
70722         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
70723         (check_arrival, check_arrival_add_next_nodes):
70724         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
70725         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
70726         (check_node_accept_bytes, check_node_accept, extend_buffers):
70727         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
70728         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
70729         (sift_ctx_init):
70730         Likewise.
70731
70732         * lib/regex_internal.h:
70733         (re_string_allocate, re_string_construct, re_string_reconstruct):
70734         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
70735         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
70736         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
70737         (re_string_context_at, re_string_peek_byte_case):
70738         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
70739         is defined, since we now use prototypes always.
70740
70741         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
70742         C89 or better.  All uses removed.
70743
70744 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
70745
70746         * config/srclist.txt: Add glibc bugs 1220-1227.
70747
70748 2005-08-20  Jim Meyering  <jim@meyering.net>
70749
70750         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
70751         of unused local, dfa.
70752
70753 2005-08-20  Bruno Haible  <bruno@clisp.org>
70754
70755         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
70756
70757 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
70758
70759         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
70760         (re_node_set_insert_last, re_dfa_add_node):
70761         Rename local variables to avoid GCC shadowing warnings.
70762
70763 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
70764
70765         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
70766         [defined lint]: Suppress bogus uninitialized-variable warnings.
70767
70768         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
70769         and let the caller return REG_ESPACE if out of space.  This
70770         removes an uninitialied-variable warning with GCC 4.0.1, and also
70771         avoids taking the address of a local variable.  All callers
70772         changed.
70773
70774 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
70775
70776         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
70777         $LIBCSRC/posix/regexec.c.
70778         Add glibc bug 1217 for regcomp.c.
70779
70780 2005-08-19  Jim Meyering  <jim@meyering.net>
70781
70782         * lib/regexec.c (proceed_next_node): Redo local variables to
70783         avoid GCC shadowing warnings.
70784
70785 2005-08-18  Bruno Haible  <bruno@clisp.org>
70786
70787         * lib/strstr.c (strstr): Fix return value in multibyte case.
70788         * lib/strcasestr.c (strcasestr): Likewise.
70789
70790 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
70791
70792         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
70793
70794 2005-08-17  Jim Meyering  <jim@meyering.net>
70795
70796         Make the %s format (seconds since the epoch) work for a negative
70797         number and when used with a zero-padded field width, e.g. %015s.
70798
70799         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
70800         label so that it precedes the code to set `digits'.  Otherwise,
70801         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
70802         print `00-22'.  Now, it prints `-0022', as it should.
70803
70804 2005-08-17  Bruno Haible  <bruno@clisp.org>
70805
70806         * modules/strstr (Files): Add m4/mbrtowc.m4.
70807         (Depends-on): Add mbuiter.
70808
70809 2005-08-17  Bruno Haible  <bruno@clisp.org>
70810
70811         * modules/strcasestr: New file.
70812         * MODULES.html.sh (String handling, based on ANSI C 89): Add
70813         strcasestr.
70814
70815 2005-08-17  Bruno Haible  <bruno@clisp.org>
70816
70817         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
70818
70819 2005-08-17  Bruno Haible  <bruno@clisp.org>
70820
70821         * modules/mbuiter: New file.
70822         * MODULES.html.sh (Extended multibyte and wide character utilities):
70823         Add mbuiter.
70824
70825 2005-08-17  Bruno Haible  <bruno@clisp.org>
70826
70827         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
70828         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
70829
70830 2005-08-17  Bruno Haible  <bruno@clisp.org>
70831
70832         * m4/strcasestr.m4: New file.
70833
70834 2005-08-17  Bruno Haible  <bruno@clisp.org>
70835
70836         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
70837         * lib/strstr.c: Completely rewritten, with multibyte locale support.
70838
70839 2005-08-17  Bruno Haible  <bruno@clisp.org>
70840
70841         * lib/strcasestr.h: New file.
70842         * lib/strcasestr.c: New file.
70843
70844 2005-08-17  Bruno Haible  <bruno@clisp.org>
70845
70846         * lib/strcasecmp.c: Use mbuiter.h.
70847
70848 2005-08-17  Bruno Haible  <bruno@clisp.org>
70849
70850         * lib/mbuiter.h: New file.
70851
70852 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
70853
70854         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
70855         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
70856         and gl_GETOPT are both invoked via different paths (as happens
70857         with GNU tar CVS because it uses both argp and getopt), the former
70858         wins.
70859
70860 2005-08-16  Bruno Haible  <bruno@clisp.org>
70861
70862         * modules/tls: New file.
70863         * MODULES.html.sh (Multithreading): Add tls.
70864
70865 2005-08-16  Bruno Haible  <bruno@clisp.org>
70866
70867         * modules/strnlen1: New file.
70868         * MODULES.html.sh (String handling): Add strnlen1.
70869
70870 2005-08-16  Bruno Haible  <bruno@clisp.org>
70871
70872         * modules/strcase (Files): Add m4/mbrtowc.m4.
70873         (Depends-on): Add strnlen1, mbchar.
70874
70875 2005-08-16  Bruno Haible  <bruno@clisp.org>
70876
70877         * modules/mbiter: New file.
70878         * MODULES.html.sh (Extended multibyte and wide character utilities):
70879         Add mbiter.
70880
70881 2005-08-16  Bruno Haible  <bruno@clisp.org>
70882
70883         * modules/mbfile: New file.
70884         * MODULES.html.sh (Extended multibyte and wide character utilities):
70885         Add mbfile.
70886
70887 2005-08-16  Bruno Haible  <bruno@clisp.org>
70888
70889         * modules/mbchar: New file.
70890         * MODULES.html.sh (Extended multibyte and wide character utilities):
70891         New section.
70892
70893 2005-08-16  Bruno Haible  <bruno@clisp.org>
70894
70895         * m4/tls.m4: New file, from GNU gettext.
70896
70897 2005-08-16  Bruno Haible  <bruno@clisp.org>
70898
70899         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
70900         always.
70901         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
70902
70903 2005-08-16  Bruno Haible  <bruno@clisp.org>
70904
70905         * m4/mbiter.m4: New file.
70906
70907 2005-08-16  Bruno Haible  <bruno@clisp.org>
70908
70909         * m4/mbfile.m4: New file.
70910
70911 2005-08-16  Bruno Haible  <bruno@clisp.org>
70912
70913         * m4/mbchar.m4: New file.
70914
70915 2005-08-16  Bruno Haible  <bruno@clisp.org>
70916
70917         * lib/tls.h: New file, from GNU gettext.
70918         * lib/tls.c: New file, from GNU gettext.
70919
70920 2005-08-16  Bruno Haible  <bruno@clisp.org>
70921
70922         * lib/strnlen1.h: New file.
70923         * lib/strnlen1.c: New file.
70924
70925 2005-08-16  Bruno Haible  <bruno@clisp.org>
70926
70927         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
70928         (mbi_init): Update.
70929         (mbi_avail, mbi_advance): Let the iteration end before the terminating
70930         NUL byte, not after it.
70931
70932 2005-08-16  Bruno Haible  <bruno@clisp.org>
70933
70934         * lib/strcase.h (strcasecmp): Add note in comments.
70935         * lib/strncasecmp.c: Use code from strcasecmp.c.
70936         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
70937         (strcasecmp): Work correctly in multibyte locales.
70938
70939 2005-08-16  Bruno Haible  <bruno@clisp.org>
70940
70941         * lib/mbiter.h: New file.
70942
70943 2005-08-16  Bruno Haible  <bruno@clisp.org>
70944
70945         * lib/mbfile.h: New file.
70946
70947 2005-08-16  Bruno Haible  <bruno@clisp.org>
70948
70949         * lib/mbchar.h: New file.
70950         * lib/mbchar.c: New file.
70951
70952 2005-08-16  Bruno Haible  <bruno@clisp.org>
70953
70954         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
70955         the valid ones. Makes the comparison operations transitive:
70956         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
70957         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
70958
70959 2005-08-15  Simon Josefsson  <jas@extundo.com>
70960
70961         * modules/ssize_t (License): Change to 'unlimited'.
70962
70963         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
70964
70965 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
70966
70967         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
70968         Add comments for each pending glibc patch.
70969
70970 2005-08-15  Bruno Haible  <bruno@clisp.org>
70971
70972         * lib/regex.h (__restrict_arr): Don't define to __restrict if
70973         __cplusplus is defined.
70974
70975 2005-08-14  Jim Meyering  <jim@meyering.net>
70976
70977         Sync from coreutils.
70978
70979         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
70980         Use the hash-table-based cycle-detection code not just when
70981         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
70982         Reported by James Youngman in
70983         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
70984         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
70985         FTS_TIGHT_CYCLE_CHECK.
70986         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
70987         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
70988         once again.
70989         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
70990         * lib/fts.c (fd_safer): Remove decl.
70991         Include fcntl--.h rather than unistd-safer.h
70992         (fts_safe_changedir): Don't call fd_safer; no longer needed
70993         now that we include fcntl--.h.
70994
70995 2005-08-12  Simon Josefsson  <jas@extundo.com>
70996
70997         * modules/getndelim2: Use ssize_t module.
70998         * modules/getnline: Likewise.
70999         * modules/safe-read: Likewise.
71000         * modules/xreadlink: Likewise.
71001
71002         * modules/ssize_t: New file.
71003
71004 2005-08-12  Simon Josefsson  <jas@extundo.com>
71005
71006         * m4/readline.m4: Look for termcap, curses or ncurses if required.
71007
71008 2005-08-12  Simon Josefsson  <jas@extundo.com>
71009
71010         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
71011         ssize_t.
71012
71013 2005-08-12  Simon Josefsson  <jas@extundo.com>
71014
71015         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
71016         readline, getdelim and check_version.
71017         (Support for systems lacking ISO C 99: Sizes of integer types):
71018         Add size_max.
71019
71020 2005-08-12  Bruno Haible  <bruno@clisp.org>
71021
71022         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
71023
71024 2005-08-11  Simon Josefsson  <jas@extundo.com>
71025
71026         * modules/readline: New file.
71027
71028         * modules/strnlen (Files): Add strnlen.h.
71029
71030 2005-08-11  Simon Josefsson  <jas@extundo.com>
71031
71032         * m4/readline.m4: New file.
71033
71034 2005-08-11  Simon Josefsson  <jas@extundo.com>
71035
71036         * lib/readline.h, readline.c: New file.
71037
71038 2005-08-11  Simon Josefsson  <jas@extundo.com>
71039
71040         * doc/gnulib.texi (Initial import, Finishing touches): Mention
71041         gl_AVOID.
71042
71043 2005-08-11  Bruno Haible  <bruno@clisp.org>
71044
71045         * lib/strnlen.h (strnlen): Change parameter name to match comment.
71046
71047 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
71048
71049         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
71050
71051 2005-08-10  Simon Josefsson  <jas@extundo.com>
71052
71053         * tests/test-iconvme.c: New file.
71054
71055 2005-08-10  Simon Josefsson  <jas@extundo.com>
71056
71057         * m4/strnlen.m4: New file.
71058
71059         * m4/strndup.m4: Don't check for strnlen declaration, done in
71060         strnlen.m4.
71061
71062 2005-08-10  Simon Josefsson  <jas@extundo.com>
71063
71064         * lib/strndup.c: Use strnlen.h.
71065
71066         * lib/strnlen.h: New file.
71067
71068 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
71069
71070         * README: Typos.
71071
71072 2005-08-02  Simon Josefsson  <jas@extundo.com>
71073
71074         * modules/readline: New file.
71075
71076 2005-08-02  Simon Josefsson  <jas@extundo.com>
71077
71078         * modules/getdelim: New file.
71079
71080         * modules/getline: Rewrite, don't use getndelim2.
71081
71082 2005-08-02  Simon Josefsson  <jas@extundo.com>
71083
71084         * m4/getline.m4: Separate out getdelim stuff into separate module.
71085
71086         * m4/getdelim.m4: New file.
71087
71088 2005-08-02  Simon Josefsson  <jas@extundo.com>
71089
71090         * lib/getline.h, getline.c: Rewrite.
71091
71092         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
71093
71094 2005-07-31  Bruno Haible  <bruno@clisp.org>
71095
71096         * lib/lock.h (gl_lock_initializer): New macro.
71097         (gl_lock_define_initialized): Use it.
71098         (gl_rwlock_initializer): New macro.
71099         (gl_rwlock_define_initialized): Use it.
71100         (gl_recursive_lock_initializer): New macro.
71101         (gl_recursive_lock_define_initialized): Use it.
71102
71103 2005-07-30  Karl Berry  <karl@gnu.org>
71104
71105         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
71106         Report from Ben Pfaff, regarding getopt.
71107
71108 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
71109
71110         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
71111         normal way.
71112         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
71113         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
71114         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
71115         (gl_GETOPT): Use the new macros.  Most of the implementation
71116         is moved to the new macros.  This is for programs like Emacs
71117         that don't want all the functionality of gl_GETOPT.
71118
71119 2005-07-26  Bruno Haible  <bruno@clisp.org>
71120
71121         * m4/lock.m4: Update from GNU gettext.
71122
71123 2005-07-26  Bruno Haible  <bruno@clisp.org>
71124
71125         * lib/lock.h: Update from GNU gettext.
71126         * lib/lock.c: Update from GNU gettext.
71127
71128 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
71129
71130         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
71131         obsolescent AC_TRY_RUN.  Include the default includes files, for
71132         'exit'.
71133
71134 2005-07-24  Bruno Haible  <bruno@clisp.org>
71135
71136         * modules/visibility: New file.
71137         * MODULES.html.sh (Misc): Add visibility.
71138
71139 2005-07-24  Bruno Haible  <bruno@clisp.org>
71140
71141         * m4/visibility.m4: New file.
71142
71143 2005-07-24  Bruno Haible  <bruno@clisp.org>
71144
71145         * doc/visibility.texi: New file.
71146
71147 2005-07-22  Bruno Haible  <bruno@clisp.org>
71148
71149         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
71150         $(ALLOCA_H), redundant through BUILT_SOURCES.
71151         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
71152         redundant through BUILT_SOURCES.
71153         * modules/byteswap (Makefile.am): Remove explicit dependency on
71154         $(BYTESWAP_H), redundant through BUILT_SOURCES.
71155         * modules/fnmatch (Makefile.am): Remove explicit dependency on
71156         $(FNMATCH_H), redundant through BUILT_SOURCES.
71157         * modules/getopt (Makefile.am): Remove explicit dependency on
71158         $(GETOPT_H), redundant through BUILT_SOURCES.
71159         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
71160         redundant through BUILT_SOURCES.
71161         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
71162         redundant through BUILT_SOURCES.
71163         * modules/stdbool (Makefile.am): Remove explicit dependency on
71164         $(STDBOOL_H), redundant through BUILT_SOURCES.
71165         * modules/stdint (Makefile.am): Remove explicit dependency on
71166         $(STDINT_H), redundant through BUILT_SOURCES.
71167         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
71168         Remove explicit dependency on $(SYSEXITS_H).
71169         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
71170
71171 2005-07-18  Simon Josefsson  <jas@extundo.com>
71172
71173         * lib/check-version.c (check_version): Accept identical versions too.
71174
71175 2005-07-18  Bruno Haible  <bruno@clisp.org>
71176
71177         * modules/lock: New file.
71178         * MODULES.html.sh (Multithreading): New section.
71179
71180 2005-07-18  Bruno Haible  <bruno@clisp.org>
71181
71182         * m4/lock.m4: New file, from GNU gettext.
71183
71184 2005-07-18  Bruno Haible  <bruno@clisp.org>
71185
71186         * lib/lock.h: New file, from GNU gettext.
71187         * lib/lock.c: New file, from GNU gettext.
71188
71189 2005-07-18  Bruno Haible  <bruno@clisp.org>
71190
71191         * lib/lock.h (gl_once_t): New type.
71192         (gl_once_define, gl_once): New macros.
71193         * lib/lock.c (fresh_once): New variable.
71194         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
71195         functions.
71196
71197 2005-07-16  Simon Josefsson  <jas@extundo.com>
71198
71199         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
71200         workaround, suggested by Bruno.
71201
71202 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
71203
71204         * modules/xalloc (Depends-on): Add xalloc-die.
71205         * modules/xvasprintf (Depends-on): Add xalloc-die.
71206
71207 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
71208
71209         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
71210         with a minor change.
71211
71212 2005-07-15  Bruno Haible  <bruno@clisp.org>
71213
71214         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
71215         When using lib/poll.c, define poll as rpl_poll.
71216
71217 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
71218
71219         * modules/argp (Depends-on): Remove unlocked-io.
71220
71221 2005-07-14  Derek Price  <derek@ximbiot.com>
71222
71223         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
71224         for glob symlink bug.
71225
71226 2005-07-14  Bruno Haible  <bruno@clisp.org>
71227
71228         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
71229         Instead, test for *_unlocked function declarations directly.
71230
71231 2005-07-11  Simon Josefsson  <jas@extundo.com>
71232
71233         * modules/size_max: New file.
71234
71235         * modules/xsize: Depend on size_max module for size_max.m4.
71236
71237 2005-07-11  Simon Josefsson  <jas@extundo.com>
71238
71239         * lib/size_max.h: New file.
71240
71241 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
71242
71243         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
71244         copyright symbol and the year.
71245         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
71246         (version_etc_va): Use parameterized copyright notice.
71247         Reword to conform to the current GNU coding standards.
71248
71249 2005-07-11  Karl Berry  <karl@gnu.org>
71250
71251         * doc/gnulib.texi (Quoting): new node.
71252         (Initial import): more info, from Patrice.
71253
71254 2005-07-11  Bruno Haible  <bruno@clisp.org>
71255
71256         * gnulib-tool (func_usage): Document option --avoid.
71257         (Command line options): Handle --avoid.
71258         (func_acceptable): New function.
71259         (func_modules_transitive_closure): Use it.
71260
71261 2005-07-11  Bruno Haible  <bruno@clisp.org>
71262
71263         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
71264         Reported by Jim Meyering.
71265
71266 2005-07-10  Bruno Haible  <bruno@clisp.org>
71267
71268         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
71269         Needed when size_t is smaller than 'unsigned int'.
71270         Reported by Paul Eggert.
71271
71272 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
71273
71274         * modules/argp (Depends-on): Add unlocked-io
71275
71276 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
71277
71278         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
71279         block of defines.
71280
71281 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
71282
71283         * config/srclist.txt: Comment out regcomp.c, since we have a porting
71284         fix now.
71285
71286 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
71287         and Paul Eggert  <eggert@cs.ucla.edu>
71288
71289         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
71290         in wint_t, not wchar_t.  Remove now-unnecessary cast.
71291
71292 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
71293
71294         * modules/regex (Files): Add lib/regex_internal.c,
71295         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
71296         (Depends-on): Add extensions.
71297         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
71298
71299 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
71300
71301         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
71302         pathconf.
71303         * m4/same.m4 (gl_SAME): Likewise.
71304         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
71305
71306         * m4/regex.m4: Adjust to new libc regex implementation.
71307         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
71308         all the .c and .h parts of (the new) regex.
71309         Quote the m4 stuff better.
71310         Check for RE_ICASE bug of old gnulib.
71311         Check for REG_STARTEND of recent libc.
71312         Rename local variables from jm_* to gl_*.
71313         Quote operand of "test -f".
71314         Say "recent enough" version of libc, not "version 2".
71315         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
71316         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
71317         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
71318         Remove check for btowc, isascii.
71319         Require AM_LANGINFO_CODESET.
71320
71321 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
71322
71323         * lib/regex.c, regex.h: Sync from libc.
71324         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
71325         * lib/regexec.c:
71326         New files, synced from libc, except that regex_internal.h
71327         currently has a small porting fix.
71328
71329 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
71330
71331         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
71332         regex_internal.c, regexec.c.
71333         Add regex_internal.h too, but as a comment, since the libc version
71334         is currently broken in gnulib mode.
71335
71336 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
71337
71338         Support programs like Emacs that use gnulib but not gettext.
71339         * MODULES.html.sh (Internationalization functions): Add gettext-h.
71340         * modules/gettext-h: New file.
71341         * modules/gettext (Files): Remove lib/gettext.h.
71342         (Depends-on): Add gettext-h.
71343         (Makefile.am): Remove lib_SOURCES.
71344         * modules/argmatch, modules/c-stack, modules/closeout:
71345         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
71346         * modules/execute, modules/file-type, modules/getaddrinfo:
71347         * modules/getopt, modules/human, modules/javacomp:
71348         * modules/javaexec, modules/mkdir-p, modules/obstack:
71349         * modules/openat, modules/pagealign_alloc, modules/pipe:
71350         * modules/quotearg, modules/regex, modules/rpmatch:
71351         * modules/unicodeio, modules/userspec, modules/version-etc:
71352         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
71353         * modules/xsetenv:
71354         Depend on gettext-h, not gettext.
71355
71356 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
71357
71358         * gnulib-tool (func_import): Add support for 'public domain' license.
71359         * modules/alloca, modules/atexit, modules/memmove:
71360         Now public domain, not GPL.
71361         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
71362         * modules/realloc, modules/strerror, modules/strtod:
71363         Now LGPL, not GPL.
71364
71365 2005-07-05  Bruno Haible  <bruno@clisp.org>
71366
71367         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
71368         autoconf CVS. Needed for mingw.
71369
71370 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
71371
71372         Remove the dependency of the strftime module on the tzset module.
71373         * modules/strftime (Depends-on): Remove dependency on tzset.
71374
71375 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
71376
71377         Remove the dependency of the strftime module on the tzset module.
71378         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
71379         gl_FUNC_TZSET_CLOBBER.
71380
71381 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
71382
71383         Remove the dependency of the strftime module on the tzset module.
71384         * lib/strftime.c (my_strftime)
71385         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
71386         Copy the input structure, to work around some of the bug with
71387         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
71388         Solaris releases, you should also use the tzset module, but we won't
71389         require it as a dependency any more since we don't want LGPLed code
71390         to depend on GPLed code.
71391
71392 2005-07-02  Jim Meyering  <jim@meyering.net>
71393
71394         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
71395         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
71396         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
71397         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
71398
71399 2005-07-02  Jim Meyering  <jim@meyering.net>
71400
71401         * lib/backupfile.c (backup_args): Change a `0' to NULL.
71402
71403 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
71404
71405         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
71406         declares only 'struct timespec;' (!).
71407
71408 2005-07-01  Jim Meyering  <jim@meyering.net>
71409
71410         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
71411         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
71412         * lib/save-cwd.c, tempname.c:
71413         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
71414         and don't include <sys/file.h>).
71415
71416 2005-06-29  Jim Meyering  <jim@meyering.net>
71417
71418         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
71419         type name.  Use the variable name instead.
71420         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
71421         Likewise.
71422
71423 2005-06-28  Simon Josefsson  <jas@extundo.com>
71424
71425         * modules/check-version (Files): Add check-version.m4.
71426
71427 2005-06-28  Simon Josefsson  <jas@extundo.com>
71428
71429         * m4/check-version.m4: New file, suggested by Jim Meyering
71430         <jim@meyering.net>.
71431
71432 2005-06-28  Simon Josefsson  <jas@extundo.com>
71433
71434         * lib/check-version.h, lib/check-version.c: New files.
71435
71436 2005-06-28  Simon Josefsson  <jas@extundo.com>
71437
71438         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
71439         collision with global variable.  Better indentation.  Don't
71440         increment buffer pointer beyond buffer end.  Based on comments
71441         from Paul Eggert <eggert@cs.ucla.edu>.
71442
71443         * lib/base64.h: Indent.
71444
71445 2005-06-28  Simon Josefsson  <jas@extundo.com>
71446
71447         * doc/gnulib.texi (Library version handling): New section.
71448
71449 2005-06-28  Jim Meyering  <jim@meyering.net>
71450
71451         * check-module (find_included_lib_files): Hard-code another
71452         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
71453         but modules/fts-lgpl (correctly) does not list those files.
71454
71455         * modules/canonicalize (Files): Add lib/pathmax.h.
71456
71457 2005-06-25  Simon Josefsson  <jas@extundo.com>
71458
71459         * modules/check-version: New file.
71460
71461 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
71462
71463         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
71464         initializer of struct addrinfo, as an indication that we don't
71465         care how many members the structure has.
71466
71467 2005-06-24  Derek Price  <derek@ximbiot.com>
71468         and Bruno Haible  <bruno@clisp.org>
71469
71470         Remove stat module & update lstat.
71471         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
71472         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
71473         * m4/stat.m4: Remove this file.
71474
71475 2005-06-24  Derek Price  <derek@ximbiot.com>
71476         and Bruno Haible  <bruno@clisp.org>
71477
71478         Remove stat module & update lstat.
71479         * lib/stat.c: Remove this file...
71480         (slash_aware_lstat): ...moving this content and its support...
71481         * lib/lstat.c (rpl_lstat): ...into here.
71482         * lib/lstat.h: New file.
71483
71484 2005-06-24  Derek Price  <derek@ximbiot.com>
71485         and Bruno Haible  <bruno@clisp.org>
71486
71487         Remove stat module & update lstat.
71488         * config/srclist.txt (libc sources): Remove stat.
71489
71490 2005-06-24  Derek Price  <derek@ximbiot.com>
71491         and Bruno Haible  <bruno@clisp.org>
71492
71493         Remove stat module & update lstat.
71494         * MODULES.html.sh (stat): Remove.
71495         * MODULES.html: Regenerated.
71496         * modules/lstat (Description): Correct function name.
71497         (Files): Add "lstat.h".
71498         (Depends-on): Remove stat, add xalloc, stat-macros.
71499         * modules/stat: Remove this file.
71500         (Include): Add "lstat.h", remove <sys/stat.h>.
71501
71502 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
71503
71504         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
71505         (ranged_convert): Don't save conversion in a temporary struct.
71506         This causes a warning with GCC 4.0.0, and anyway in the typical
71507         case it's not worth the extra 100 bytes or so of code.
71508         (ranged_convert, __mktime_internal): When calling a function via a
71509         pointer P, use P () rather than (*P) (), as we now assume C89 or
71510         better.
71511
71512 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
71513
71514         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
71515         "who -r" failed to give output.  Problem reported by Tim Waugh.
71516
71517         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
71518         (xcalloc): Use it to avoid needless tests.
71519         Problem reported by Jim Meyering.
71520
71521 2005-06-20  Derek Price  <derek@ximbiot.com>
71522
71523         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
71524         unnecessary for Autoconfs > 2.59c.
71525
71526 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
71527
71528         * lib/argp.h (__option_is_short): Check upper limit of
71529         __key. Isprint() requires its argument to have the value
71530         of an unsigned char or EOF.
71531
71532 2005-06-16  Jim Meyering  <jim@meyering.net>
71533
71534         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
71535         when either N or S is zero.
71536
71537 2005-06-16  Derek Price  <derek@ximbiot.com>
71538
71539         * m4/bison.m4: Declare YACC & YFLAGS precious.
71540
71541 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
71542
71543         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
71544         multibyte string or pattern, fall back on unibyte matching.
71545         Problem reported by James Youngman.
71546
71547 2005-06-08  Bruno Haible  <bruno@clisp.org>
71548
71549         * modules/csharpcomp: New file.
71550         * MODULES.html.sh (C#): Add csharpcomp.
71551
71552 2005-06-08  Bruno Haible  <bruno@clisp.org>
71553
71554         * m4/csharpcomp.m4: New file, from GNU gettext.
71555
71556 2005-06-08  Bruno Haible  <bruno@clisp.org>
71557
71558         * lib/csharpcomp.h: New file, from GNU gettext.
71559         * lib/csharpcomp.c: New file, from GNU gettext.
71560         * lib/csharpcomp.sh.in: New file, from GNU gettext.
71561
71562 2005-06-08  Bruno Haible  <bruno@clisp.org>
71563
71564         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
71565         warning on mingw.
71566
71567 2005-06-07  Derek Price  <derek@ximbiot.com>
71568
71569         Sync from CVS.
71570         * lib/glob_.h: Indent nested #ifdef.
71571
71572 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
71573
71574         Sync from coreutils.
71575         Use "file name" when talking about file names, instead of "filename"
71576         or "path", as per the GNU coding standards.
71577         * lib/mkdir-p.c: Renamed from makepath.c.
71578         (make_dir_parents): Renamed from make_path.  All callers changed.
71579         * lib/mkdir-p.h: Likewise.  All includers changed.
71580         * lib/filenamecat.c: Renamed from path-concat.c.
71581         (file_name_concat): Renamed from path_concat.  All callers changed.
71582         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
71583         * lib/filenamecat.h: Likewise.  All includers changed.
71584         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
71585         in comments or local variable names.
71586         * lib/basename.c: Likewise.
71587         * lib/canonicalize.c, canonicalize.h: Likewise.
71588         * lib/dirname.c, dirname.h: Likewise.
71589         * lib/euidaccess.c: Likewise.
71590         * lib/exclude.c: Likewise
71591         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
71592         * lib/fsusage.c, fsuage.h: Likewise.
71593         * lib/fts.c, fts_.h: Likewise.
71594         * lib/getcwd.c: Likewise.
71595         * lib/getloadavg.c: Likewise.
71596         * lib/mkstemp.c: Likewise.
71597         * lib/mountlist.c, mountlist.h: Likewise.
71598         * lib/openat.c, openat.h: Likewise.
71599         * lib/readlink-stub.c: Likewise.
71600         * lib/readutmp.c, readutmp.h: Likewise.
71601         * lib/rename.c: Likewise.
71602         * lib/rmdir.c: Likewise.
71603         * lib/same.c: Likewise.
71604         * lib/savedir.c: Likewise.
71605         * lib/stripslash.c: Likewise.
71606         * lib/tempname.c: Likewise.
71607         * lib/xreadlink.c: Likewise.
71608         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
71609         All uses changed.
71610         * lib/exclude.h: Likewise.
71611
71612         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
71613         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
71614         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
71615         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
71616         * lib/pathmax.h: Include <limits.h> unconditionally, since other
71617         files have been getting away with it for years (MORE/BSD 4.3
71618         is extinct now).
71619         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
71620         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
71621
71622         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
71623         Define to 256, not 255, as per modern POSIX.
71624
71625 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
71626
71627         Sync from coreutils.
71628         Use "file name" when talking about file names, instead of "filename"
71629         or "path", as per the GNU coding standards.
71630         * MODULES.html.sh: mkdir-p renamed from makepath.
71631         filenamecat renamed from path-concat.
71632         * modules/filenamecat: Renamed from modules/path-concat.
71633         (Files): filenamecat.h and filenamecat.c renamed from
71634         path-concat.h and path-concat.c.
71635         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
71636         (Include): filenamecat.h, not path-concat.h.
71637         * modules/mkdir-p: Renamed from modules/makepath.
71638         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
71639         makepath.c.
71640         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
71641         (Include): mkdir-p.h, not makepath.h.
71642
71643 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
71644
71645         Sync from coreutils.
71646         * m4/mkdir-p.m4: Renamed from makepath.m4.
71647         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
71648         Rename files from makepath.c to mkdir-p.c, and from
71649         makepath.h to mkdir-p.h.
71650         * m4/filenamecat.m4: Renamed from path-concat.m4.
71651         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
71652         Rename files from path-concat.c to filenamecat.c,
71653         and from path-concat.h to filenamecat.h.
71654         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
71655         "file name" in local variables or comments.
71656         * m4/rename.m4: Likewise.
71657
71658 2005-06-01  Bruno Haible  <bruno@clisp.org>
71659
71660         * modules/csharpexec: New file.
71661         * MODULES.html.sh (C#): New section.
71662
71663 2005-06-01  Bruno Haible  <bruno@clisp.org>
71664
71665         * m4/csharp.m4: New file, from GNU gettext.
71666         * m4/csharpexec.m4: New file, from GNU gettext.
71667
71668 2005-06-01  Bruno Haible  <bruno@clisp.org>
71669
71670         * lib/csharpexec.h: New file, from GNU gettext.
71671         * lib/csharpexec.c: New file, from GNU gettext.
71672         * lib/csharpexec.sh.in: New file, from GNU gettext.
71673
71674 2005-05-31  Derek Price  <derek@ximbiot.com>
71675             Paul Eggert  <eggert@cs.ucla.edu>
71676
71677         Sync from cvs.
71678         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
71679
71680 2005-05-31  Derek Price  <derek@ximbiot.com>
71681             Paul Eggert  <eggert@cs.ucla.edu>
71682
71683         Sync from cvs.
71684         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
71685
71686 2005-05-29  Derek Price  <derek@ximbiot.com>
71687
71688         * config/srclist.txt (glob_.h, glob.c): Add these files.
71689
71690 2005-05-29  Derek Price  <derek@ximbiot.com>
71691
71692         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
71693         * modules/glob: New file.
71694         * modules/getlogin_r: Add link to POSIX spec in description.
71695
71696 2005-05-29  Derek Price  <derek@ximbiot.com>
71697             Paul Eggert  <eggert@cs.ucla.edu>
71698
71699         * m4/glob.m4: New file.
71700
71701 2005-05-29  Derek Price  <derek@ximbiot.com>
71702             Paul Eggert  <eggert@cs.ucla.edu>
71703
71704         * lib/glob_.h, lib/glob.c: New files.
71705
71706 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
71707
71708         * modules/fts (Files): Remove m4/inttypes-pri.m4.
71709         * modules/fts-lgpl (Depends-on): Remove gettext.
71710
71711 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
71712
71713         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
71714         and don't require gt_INTTYPES_PRI.
71715
71716 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
71717
71718         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
71719
71720         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
71721         the configuration hassle isn't worth it.
71722         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
71723         (LONGEST_MODIFIER, PRIuMAX): Remove.
71724
71725 2005-05-27  Bruno Haible  <bruno@clisp.org>
71726
71727         * lib/getlogin_r.h: Remove second include of <stddef.h>.
71728
71729 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
71730
71731         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
71732         _POSIX_PTHREAD_SEMANTICS for Solaris.
71733
71734 2005-05-25  Derek Price  <derek@ximbiot.com>
71735
71736         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
71737
71738 2005-05-25  Derek Price  <derek@ximbiot.com>
71739             Paul Eggert  <eggert@cs.ucla.edu>
71740
71741         * modules/getlogin_r, m4/getlogin_r.m4: New files.
71742         * lib/getlogin_r.c, getlogin_r.h: New files.
71743
71744 2005-05-25  Bruno Haible  <bruno@clisp.org>
71745             Derek Price  <derek@ximbiot.com>
71746
71747         * lib/getlogin_r.h: Simplify API documentation.
71748
71749 2005-05-23  Derek Price  <derek@ximbiot.com>
71750
71751         * modules/minmax (Files): Add m4/minmax.m4.
71752         (configure.ac): Add gl_MINMAX.
71753
71754 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
71755
71756         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
71757         so that unistd-safer.h (GPL'ed code) need not be included.
71758
71759 2005-05-22  Bruno Haible  <bruno@clisp.org>
71760
71761         * m4/minmax.m4: New file.
71762         Based on a patch by Derek Price <derek@ximbiot.com>.
71763
71764 2005-05-22  Bruno Haible  <bruno@clisp.org>
71765
71766         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
71767         (INT64_MIN): Fix definition.
71768         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
71769
71770         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
71771         NEED_SIGNED_INT_TYPES.
71772
71773         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
71774         HAVE_SYSTEM_INTTYPES.
71775
71776 2005-05-22  Bruno Haible  <bruno@clisp.org>
71777
71778         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
71779         Also include <sys/param.h> if it defines MIN, MAX.
71780         Based on a patch by Derek Price <derek@ximbiot.com>.
71781
71782 2005-05-21  Jim Meyering  <jim@meyering.net>
71783
71784         * modules/fts (Files): Add m4/inttypes-pri.m4.
71785         (Depends-on): Add lstat and remove gettext.  Alphabetize.
71786
71787 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
71788
71789         New fts module.
71790         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
71791         (setup_dir, free_dir): New functions.
71792         (enter_dir, leave_dir): Define trivial
71793         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
71794         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
71795         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
71796         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
71797         Move to fts-cycle.c.
71798         (fts_open): Use setup_dir.
71799         (fts_close): Use free_dir.
71800         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
71801         This adds a label and some gotos, but the alternatives were messier.
71802         Check for memory allocation failure when entering a dir.
71803         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
71804         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
71805         (FTS): New member fts_cycle, that is a union that contains the
71806         old active_dir_ht and cycle_state.  All uses changed to mention
71807         fts_cycle.ht and fts_cycle.state.
71808         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
71809         fts.c, with the following changes:
71810         (setup_dir, free_dir): New functions.
71811         (enter_dir): Now returns bool.  Return true if successful, false
71812         if memory exhausted.  All callers changed.
71813         Do not bother partly cleaning up on
71814         memory allocation failure; that is free_dir's job.
71815         However, free ad if hash_insert fails, to avoid memory leak.
71816         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
71817         fts->fts_options to see which union member to use.
71818
71819 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
71820
71821         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
71822         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
71823
71824 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
71825
71826         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
71827
71828 2005-05-20  Jim Meyering  <jim@meyering.net>
71829
71830         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
71831         Now a macro, to pacify GCC.
71832
71833 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
71834
71835         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
71836         of -1.
71837
71838 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
71839
71840         * lib/chown.c (rpl_chown): Return -1 on failure.
71841
71842 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
71843
71844         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
71845         Don't check for stddef.h.
71846         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
71847         don't use its results.
71848         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
71849         since we include them unconditionally.  Don't require
71850         AM_STDBOOL_H, since stdbool is a prerequisite.
71851         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
71852         since we assume C89 or better.
71853         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
71854         as we don't use their results.
71855         Don't check for fchdir, memmove, memset, strrchr, as we use
71856         them unconditionally.
71857         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
71858         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
71859
71860 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
71861
71862         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
71863         Include <stddef.h> unconditionally, since we assume C89 now.
71864         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
71865         * lib/fts.c: Include fts_.h first, to check interface.
71866         Do not include intprops.h; no longer needed.
71867         Include cycle-check.h and hash.h, since fts_.h no longer does.
71868         Remove unnecessary casts of closedir to void.
71869         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
71870         decide whether to decrement nlinks.
71871         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
71872         (FTS): Use struct hash_table * instead of Hash_table, so that
71873         we no longer need to include hash.h here.
71874
71875 2005-05-18  Jim Meyering  <jim@meyering.net>
71876
71877         * modules/dirfd (License): Change to LGPL.  Most of the code
71878         is already in the public domain.
71879
71880 2005-05-18  Jim Meyering  <jim@meyering.net>
71881
71882         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
71883         Reported by Yoann Vandoorselaere.
71884
71885 2005-05-17  Jim Meyering  <jim@meyering.net>
71886
71887         * m4/fts.m4: New file, from coreutils.
71888
71889 2005-05-17  Jim Meyering  <jim@meyering.net>
71890
71891         * lib/fts.c, lib/fts_.h: New files, from coreutils.
71892
71893 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
71894
71895         Sync from coreutils.
71896         * m4/unlinkdir.m4: New file.
71897
71898 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
71899
71900         Sync from coreutils.
71901         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
71902         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
71903         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
71904         White space changes only.
71905         * lib/makepath.c (make_path): Port to hosts where leading "//" is
71906         special.
71907         * lib/yesno.c: Include getline.h, not ctype.h.
71908         (yesno): Don't remove leading white space; POSIX doesn't allow it.
71909         Use getline to remove arbitrary restriction on response length.
71910
71911 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
71912
71913         * config/srclist-update: Spell out "Street" in FSF postal
71914         mail address; this is the style the FSF seems to prefer.
71915
71916         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
71917         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
71918         this updates FSF postal mail address.
71919
71920         Sync from coreutils.
71921         * modules/unlinkdir: New file.
71922         * modules/yesno (Depends-on): Add getline.
71923         * MODULES.html.sh (File system functions): Add unlinkdir.
71924
71925 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
71926
71927         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
71928         lib/strsep.h:
71929         Change the initial comment to refer to GPL, not LGPL.
71930         gnulib-tool will change it to LGPL as needed.
71931
71932         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
71933         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
71934         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
71935         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
71936         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
71937         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
71938         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
71939         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
71940         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
71941         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
71942         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
71943         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
71944         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
71945         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
71946         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
71947         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
71948         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
71949         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
71950         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
71951         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
71952         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
71953         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
71954         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
71955         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
71956         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
71957         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
71958         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
71959         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
71960         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
71961         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
71962         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
71963         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
71964         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
71965         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
71966         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
71967         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
71968         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
71969         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
71970         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
71971         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
71972         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
71973         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
71974         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
71975         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
71976         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
71977         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
71978         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
71979         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
71980         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
71981         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
71982         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
71983         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
71984         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
71985         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
71986         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
71987         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
71988         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
71989         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
71990         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
71991         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
71992         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
71993         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
71994         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
71995         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
71996         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
71997         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
71998         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
71999         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
72000         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
72001         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
72002         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
72003         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
72004         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
72005         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
72006         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
72007         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
72008         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
72009         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
72010         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
72011         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
72012         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
72013         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
72014         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
72015         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
72016         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
72017         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
72018         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
72019         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
72020         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
72021         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
72022         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
72023         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
72024         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
72025         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
72026         lib/yesno.c, lib/yesno.h:
72027         Update FSF postal mail address.
72028
72029 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
72030
72031         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
72032         tests/test-memmem.c, tests/test-stpncpy.c:
72033         Update FSF postal mail address.
72034
72035 2005-05-13  Bruno Haible  <bruno@clisp.org>
72036
72037         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
72038         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
72039         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
72040         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
72041         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
72042         Add support for 64-bit integers in the MSVC compiler.
72043
72044 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
72045
72046         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
72047
72048 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
72049
72050         * gnulib-tool (func_import): Sort and uniquify recommended includes.
72051
72052 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
72053
72054         * doc/getdate.texi (General date syntax): Don't say that date
72055         date --iso-8601=ns generates acceptable dates; it doesn't yet.
72056         Problem reported by Nic Ferrier.
72057
72058 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
72059
72060         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
72061         specified in ai_socktype. Fix invalid ai_protocol
72062         check. ai_protocol is usually set to 0 or depending on
72063         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
72064         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
72065         ai_socktype / ai_protocol in the returned addrinfo structure.
72066
72067 2005-05-10  Simon Josefsson  <jas@extundo.com>
72068
72069         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
72070         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
72071
72072 2005-05-10  Karl Berry  <karl@gnu.org>
72073
72074         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
72075         (from http://www.gnu.org/licenses).
72076         * doc/COPYING.LIB: also rename to COPYING.LESSER.
72077         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
72078         fdl.texi suffices.
72079
72080 2005-05-10  Karl Berry  <karl@gnu.org>
72081
72082         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
72083         (COPYING.DOC): remove.
72084
72085         * config/srclist-update: new FSF address.
72086
72087 2005-05-10  Derek Price  <derek@ximbiot.com>
72088
72089         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
72090         possible.
72091
72092 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
72093             Bruno Haible  <bruno@clisp.org>
72094
72095         * modules/inet_ntop: New file.
72096         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
72097         inet_ntop.
72098
72099 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
72100             Bruno Haible  <bruno@clisp.org>
72101
72102         * m4/inet_ntop.m4: New file.
72103
72104 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
72105             Bruno Haible  <bruno@clisp.org>
72106
72107         * lib/inet_ntop.h: New file.
72108         * lib/inet_ntop.c: New file, from glibc with modifications.
72109
72110 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
72111
72112         * modules/time_r (License): Change to LGPL.
72113         * modules/extensions (License): Change to LGPL.  Actually,
72114         the license is more permissive than that, but currently gnulib-tool
72115         doesn't know how to handle more-permissive licenses.
72116
72117         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
72118         Problem reported by Dave Love.
72119
72120 2005-05-08  Jim Meyering  <jim@meyering.net>
72121
72122         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
72123         blank.
72124
72125 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
72126
72127         * modules/argmatch (Depends-on): Add stdbool.
72128         * modules/backupfile (Depends-on): Likewise.
72129         * modules/chdir-long (Depends-on): Likewise.
72130         * modules/closeout (Depends-on): Likewise.
72131         * modules/cycle-check (Depends-on): Likewise.
72132         * modules/dirname (Depends-on): Likewise.
72133         * modules/fnmatch (Depends-on): Likewise.
72134         * modules/fsusage (Depends-on): Likewise.
72135         * modules/fwriteerror (Depends-on): Likewise.
72136         * modules/getcwd (Depends-on): Likewise.
72137         * modules/getloadavg (Depends-on): Likewise.
72138         * modules/hard-locale (Depends-on): Likewise.
72139         * modules/makepath (Depends-on): Likewise.
72140         * modules/mountlist (Depends-on): Likewise.
72141         * modules/nanosleep (Depends-on): Likewise.
72142         * modules/posixtm (Depends-on): Likewise.
72143         * modules/quotearg (Depends-on): Likewise.
72144         * modules/readtokens (Depends-on): Likewise.
72145         * modules/readtokens0 (Depends-on): Likewise.
72146         * modules/readutmp (Depends-on): Likewise.
72147         * modules/save-cwd (Depends-on): Likewise.
72148         * modules/strftime (Depends-on): Likewise.
72149         * modules/userspec (Depends-on): Likewise.
72150         * modules/utimecmp (Depends-on): Likewise.
72151         * modules/xgetcwd (Depends-on): Likewise.
72152         * modules/xnanosleep (Depends-on): Likewise.
72153         * modules/xstrtod (Depends-on): Likewise.
72154         * modules/yesno (Depends-on): Likewise.
72155
72156 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
72157
72158         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
72159         needless checks.
72160
72161 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
72162
72163         Merge from coreutils.  Among other things,
72164         add bulletproofing for cases where stdin, stdout, or stderr are closed.
72165         * lib/fd-safer.c: New file.
72166         * lib/fcntl-safer.h, open-safer.c: Remove.
72167         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
72168         * lib/dup-safer.c: Include unistd-safer.h first.
72169         Don't include errno.h.
72170         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
72171         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
72172         * lib/file-type.c: Rely on file-type.h change.
72173         * lib/getloadavg.c: Include unistd-safer.h.
72174         (getloadavg): Use safer open.
72175         * lib/getusershell.c: Include "stdio-safer.h".
72176         (getusershell): Use safer fopen.
72177         * lib/long-options.c (long_options): Use NULL rather than 0.
72178         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
72179         'free'.
72180         * lib/modechange.c: Likewise.
72181         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
72182         (MODE_DONE): New constant.
72183         (struct mode_change): Remove 'next' member.
72184         (make_node_op_equals): New function; like the old one of the
72185         same name, except it allocates an array.
72186         (mode_compile, mode_create_from_ref): Use it.
72187         (mode_compile): Allocate result as an array, not a linked list.
72188         Parse octal string ourself, so that we catch mistakes like "+0".
72189         (mode_adjust): Arg is an array, not a linked list.
72190         * lib/modechange.c: Include stat-macros.h, xalloc.h.
72191         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
72192         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
72193         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
72194         Remove.  This is now stat-macros.h's job.
72195         (talloc): Remove.  All callers replaced by xalloc, so that
72196         our invokers don't have to worry about reporting memory failures.
72197         (make_node_op_equals): Remove.
72198         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
72199         New constants.
72200         (struct mode_change): Moved here from modechange.h.
72201         (mode_append_entry): Remove.
72202         (mode_compile): Remove MASKED_OPS arg, since it encouraged
72203         apps to have incorrect behavior.  Use simpler algorithm for head
72204         and tail.  Don't futz with umask; that's now the job of mode_adjust.
72205         Detect more invalid usages rather than having somewhat-random behavior.
72206         Don't insert an "a=" action, as that leads to incorrect behavior.
72207         (mode_compile, mode_create_from_ref): Return NULL on error instead
72208         of an enum, since now there's only one way to have an error.  All
72209         callers changed.
72210         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
72211         at the correct time.  Simplify calculation of "+u" and its ilk.
72212         Don't mishandle "+X".
72213         (mode_free): Remove "register" and localize decls.
72214         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
72215         (struct mode_change): Move to modechange.c; callers don't
72216         need to see this stuff.
72217         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
72218         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
72219         (mode_change, mode_adjust): Reflect the new signatures noted above.
72220         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
72221         that might redefine system include files.
72222         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
72223         (my_usleep): Use NULL rather than (void *) 0.
72224         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
72225         Use siginterrupt to specify that system calls should be interrupted.
72226         (rpl_nanosleep): Move initialization of suspended closer to call of
72227         my_usleep.
72228         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
72229         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
72230         (desirable_utmp_entry): New function.
72231         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
72232         using x2nrealloc, to simplify logic.
72233         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
72234         size calculation.  Do not assume utmp file is a regular file.
72235         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
72236         (READ_UTMP_CHECK_PIDS): New constant.
72237         * lib/save-cwd.c: Include unistd-safer.h.
72238         (save_cwd): Use fd_safer.
72239         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
72240         [!_LIBC] Include "stat-macros.h" instead.
72241         * lib/unistd-safer.h (fd_safer): New decl.
72242
72243 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
72244
72245         * modules/getloadavg (Depends-on): Add unistd-safer.
72246         * modules/getusershell (Depends-on): Add stdio-safer.
72247         * modules/lstat (Depends-on): Remove xalloc.
72248         * modules/mkstemp (Depends-on): Add stat-macros.
72249         * modules/modechange (Depends-on): Remove xstrtol.
72250         Add stat-macros, xalloc.
72251         * modules/save-cwd (Depends-on): Add unistd-safer.
72252         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
72253         * modules/unistd-safer (Files): Add lib/fd-safer.c
72254         (Makefile.am): Remove lib_SOURCES.
72255
72256         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
72257         Remove fcntl-safer; unistd-safer supersedes it.
72258
72259 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
72260
72261         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
72262         AC_HEADER_STAT.
72263         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
72264         (gl_PREREQ_CHOWN): Remove.
72265         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
72266         it.  Don't require AC_HEADER_STAT.
72267         (gl_PREREQ_LSTAT): Remove.
72268         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
72269         Don't require AC_HEADER_STAT.
72270         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
72271         (gl_PREREQ_RMDIR): Remove.
72272         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
72273         mention stat-macros.h or AC_HEADER_STAT, since we'll make
72274         the stat-macros module a prerequisite.
72275         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
72276         * m4/filemode.m4 (gl_FILEMODE): Likewise.
72277         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
72278         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
72279         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
72280         variable names.
72281         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
72282         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
72283         variable prefixes.
72284         * m4/fcntl-safer.m4: Remove.
72285         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
72286         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
72287         Invoke gl_PREREQ_FD_SAFER.
72288         (gl_PREREQ_FD_SAFER): New macro.
72289         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
72290         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
72291         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
72292         Remove duplicate call to AC_LIBOBJ(readutmp).
72293         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
72294
72295         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
72296         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
72297
72298 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
72299
72300         * MODULES.html.sh (Misc): Add byteswap.
72301
72302 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
72303
72304         * modules/getcwd (Depends-on): Add extensions.
72305         * modules/openat (Depends-on): Likewise.
72306
72307 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
72308
72309         * modules/byteswap: New file.
72310
72311 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
72312
72313         * m4/byteswap.m4: New file.
72314
72315 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
72316
72317         * lib/byteswap_.h: New file.
72318
72319 2005-04-25  Karl Berry  <karl@gnu.org>
72320
72321         * m4/gettext.m4: Update from GNU gettext 0.14.4.
72322
72323 2005-04-25  Albert Chin  <china@thewrittenword.com>
72324
72325         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
72326         Toolkit C bug.
72327
72328 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
72329
72330         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
72331         (func_ln_if_changed): Remove forcibly for no error message
72332         in case file does not exist.
72333
72334 2005-04-19  Simon Josefsson  <jas@extundo.com>
72335
72336         * gnulib-tool (Options): Make --symlink mean --symbolic.
72337
72338 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
72339
72340         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
72341
72342 2005-04-16  Simon Josefsson  <jas@extundo.com>
72343
72344         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
72345
72346 2005-04-15  Simon Josefsson  <jas@extundo.com>
72347
72348         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
72349
72350 2005-04-15  Simon Josefsson  <jas@extundo.com>
72351
72352         * gnulib-tool: Rename --symlink to --symbolic.
72353
72354 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
72355
72356         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
72357         symbolic links to files instead of copying/moving.  Add --aux-dir,
72358         specifying directory relative --dir where auxiliary build tools
72359         are placed.
72360
72361 2005-04-14  Bruno Haible  <bruno@clisp.org>
72362
72363         * modules/allocsa (License): Change to LGPL.
72364         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
72365
72366 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
72367
72368         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
72369         that "UTC +1 second" continues to work.  Problem reported
72370         by Dmitry V. Levin.
72371         (relunit_snumber): New rule.
72372         (relunit): Use it.
72373
72374 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
72375
72376         * lib/getdate.y (universal_time_zone_table): New constant.
72377         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
72378         universal_time_zone_table.
72379         (lookup_zone): Prefer universal_time_zone_table to
72380         local_time_zone_table, so that "GMT" time stamps are allowed in
72381         London during the summer.  Problem reported by Ian Abbott.
72382
72383 2005-04-12  Jim Meyering  <jim@meyering.net>
72384
72385         * lib/human.c (humblock): Set *options even when returning due to
72386         xstrtoumax conversion failure.  Thanks to a used-uninitialized
72387         warning from gcc-4.
72388
72389 2005-04-09  Jim Meyering  <jim@meyering.net>
72390
72391         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
72392         -Wuninitialized: initialize tm0.tm_year.
72393
72394 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
72395
72396         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
72397         count, since there's no maximum.  All uses changed.
72398         Add member dsts_seen.
72399         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
72400         not being INT_MAX.
72401         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
72402         Use pc_rels_seen to decide whther a date is absolute.
72403
72404         * lib/getdate.y (number): Don't overwrite year.
72405         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
72406         check.
72407
72408 2005-04-02  Simon Josefsson  <jas@extundo.com>
72409
72410         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
72411         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
72412
72413 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
72414
72415         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
72416         where no absolute path name can be longer than PATH_MAX.
72417
72418 2005-03-27  Jim Meyering  <jim@meyering.net>
72419
72420         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
72421
72422 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
72423
72424         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
72425         "one's complement" -> "ones' complement" in comment, as per Knuth.
72426         "value of type" -> "type or expression" in comment.
72427         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
72428
72429 2005-03-26  Jim Meyering  <jim@meyering.net>
72430
72431         Comment nits.
72432         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
72433         Correct typos: s/or/of/.
72434
72435 2005-03-26  Jim Meyering  <jim@meyering.net>
72436
72437         * modules/check-include-files: Move to ../ and rename to...
72438         * check-module: ...this.
72439
72440 2005-03-25  Jim Meyering  <jim@meyering.net>
72441
72442         * modules/xvasprintf (Files): Add xalloc.h.
72443
72444 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
72445
72446         * modules/gettext (Files): config/config.rpath ->
72447         build-aux/config.rpath
72448         * modules/iconv (Files): Likewise.
72449         Problem reported by Oskar Liljeblad.
72450
72451 2005-03-23  Jim Meyering  <jim@meyering.net>
72452
72453         * modules/check-include-files: New script to check for
72454         missing dependencies, multiple includes, etc.
72455
72456         * modules/c-strtold (Depends-on): Add xalloc.
72457         * modules/c-strtod (Depends-on): Add xalloc.
72458         * modules/hash (Depends-on): Add xalloc.
72459         (Files): Remove lib/xalloc.h.
72460
72461         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
72462         * modules/userspec (Files): Add lib/inttostr.h.
72463
72464 2005-03-23  Jim Meyering  <jim@meyering.net>
72465
72466         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
72467
72468 2005-03-22  Jim Meyering  <jim@meyering.net>
72469
72470         * modules/stat-macros: New module.
72471         * modules/canonicalize, modules/euidaccess, modules/file-type,
72472         * modules/filemode, modules/lchown, modules/makepath,
72473         * modules/rmdir, modules/stat: Depend on new stat-macros module
72474         rather than listing lib/stat-macros.h manually.
72475         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
72476
72477 2005-03-22  Jim Meyering  <jim@meyering.net>
72478
72479         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
72480
72481 2005-03-22  Bruno Haible  <bruno@clisp.org>
72482
72483         * config/srclist.txt: Replace target directory 'config' with
72484         'build-aux'.
72485         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
72486         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
72487         ../build-aux/.
72488
72489 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
72490
72491         * modules/chdir-long (Depends-on): Add mempcpy.
72492
72493         * modules/acl, modules/backupfile, modules/c-strtod,
72494         modules/c-strtold, modules/canon-host, modules/canonicalize,
72495         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
72496         modules/exclude, modules/exitfail, modules/file-type,
72497         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
72498         modules/getdate, modules/getline, modules/getpagesize,
72499         modules/getpass, modules/getugroups, modules/group-member,
72500         modules/hard-locale, modules/hash, modules/human, modules/idcache,
72501         modules/inttostr, modules/long-options, modules/makepath,
72502         modules/md5, modules/memcasecmp, modules/memcoll,
72503         modules/modechange, modules/mountlist, modules/path-concat,
72504         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
72505         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
72506         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
72507         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
72508         modules/strftime, modules/strndup, modules/strverscmp,
72509         modules/timespec, modules/unlocked-io, modules/userspec,
72510         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
72511         modules/yesno:
72512         Remove lib_SOURCES line from Makefile.am section, as this is now
72513         done automatically by the corresponding Autoconf macro.
72514
72515 2005-03-21  Jim Meyering  <jim@meyering.net>
72516
72517         Changes imported from coreutils.
72518
72519         * lib/cycle-check.c: Don't include xalloc.h.
72520
72521         * lib/path-concat.c: Don't include assert.h.
72522         (path_concat): Remove assertion that would have triggered
72523         for ABASE starting with more than one slash.
72524         Reported by Andreas Schwab.
72525
72526         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
72527         properly when ABASE is an absolute file name.
72528         Correct the description of this function.
72529         Include <assert.h>.
72530         Add an assertion and a test driver.
72531         This fixes a bug introduced on 2004-07-02.
72532         Andreas Schwab reported the resulting failure of cp --parents:
72533         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
72534
72535 2005-03-21  Jim Meyering  <jim@meyering.net>
72536
72537         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
72538         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
72539
72540 2005-03-21  Jim Meyering  <jim@meyering.net>
72541         and  Paul Eggert  <eggert@cs.ucla.edu>
72542
72543         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
72544         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
72545         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
72546         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
72547         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
72548         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
72549         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
72550         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
72551         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
72552         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
72553         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
72554         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
72555         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
72556         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
72557         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
72558         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
72559         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
72560         for these modules.
72561
72562 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
72563
72564         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
72565         (which shouldn't happen), generate nothing instead of returning 0
72566         immediately, so that nstrftime (NULL, ...) doesn't return 0.
72567
72568 2005-03-16  Bruno Haible  <bruno@clisp.org>
72569
72570         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
72571         HAVE_LONGLONG_64BIT.
72572
72573 2005-03-16  Bruno Haible  <bruno@clisp.org>
72574
72575         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
72576         HAVE_LONGLONG_64BIT.
72577
72578 2005-03-16  Bruno Haible  <bruno@clisp.org>
72579
72580         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
72581         HAVE_LONGLONG_64BIT.
72582
72583 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
72584
72585         * lib/strftime.c (my_strftime): Prepend space to format so that we can
72586         reliably distinguish strftime failure from empty output on POSIX
72587         hosts.
72588
72589 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
72590
72591         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
72592         (iconv_string): Don't guess a size-zero buffer, as that might cause
72593         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
72594         result would be 'too large', where 'too large' is (heuristically)
72595         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
72596         overflow concerns.  This will prevent some unwanted malloc failures
72597         when the inputs are very large.
72598
72599 2005-03-15  Karl Berry  <karl@gnu.org>
72600
72601         * config/srclist.txt (config.rpath): from gettext.
72602         * config/config.rpath: update.
72603
72604 2005-03-15  Bruno Haible  <bruno@clisp.org>
72605
72606         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
72607         to 'negate'.
72608
72609         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
72610         variable.
72611
72612         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
72613         results.
72614
72615 2005-03-14  Simon Josefsson  <jas@extundo.com>
72616
72617         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
72618         <fx@gnu.org>.
72619
72620 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
72621
72622         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
72623         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
72624         intprops.h.
72625         * lib/strtol.c: Likewise.
72626
72627 2005-03-14  Jim Meyering  <jim@meyering.net>
72628
72629         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
72630         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
72631         to be nonzero so that we (and caller) can detect the difference
72632         between a valid zero-length expansion and an error return, even
72633         when the underlying strftime fails before writing anything into
72634         that location.
72635
72636 2005-03-14  Bruno Haible  <bruno@clisp.org>
72637
72638         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
72639         Update from GNU gettext 0.14.3.
72640
72641 2005-03-10  Jim Meyering  <jim@meyering.net>
72642
72643         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
72644
72645 2005-03-10  Jim Meyering  <jim@meyering.net>
72646
72647         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
72648         so that this module works on systems without fchdir.
72649
72650 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
72651
72652         Factor int-properties macros into a single file, except for
72653         glibc-related files.
72654         * lib/intprops.h: New file.
72655         * lib/getloadavg.c: Include it instead of limits.h.
72656         (INT_STRLEN_BOUND): Remove.
72657         * lib/human.c: Include intprops.h.
72658         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
72659         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
72660         302/1000.
72661         * lib/inttostr.h: Include intprops.h instead of limits.h.
72662         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
72663         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
72664         for consistency with intprops.h.
72665         (time_t_is_integer, twos_complement_arithmetic): Use them.
72666         * lib/sig2str.h: Include <signal.h>, intprops.h.
72667         (INT_STRLEN_BOUND): Remove.
72668         * lib/strftime.c (TYPE_SIGNED): Remove.
72669         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
72670         * lib/strtol.c: Adjust comments to match intprops.h.
72671         * lib/userspec.c: Include intprops.h.
72672         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
72673         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
72674         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
72675         instead of rolling our own expressions.
72676         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
72677
72678         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
72679         instead of int.
72680         (my_strftime): Do not mishandle years close to INT_MAX, by doing
72681         the right thing even if adding 1900 would overflow.  Similarly
72682         for tm_mon + 1 and tm_yday + 1.
72683         Make %Y always equivalent to %C%y, and similarly for %G and %g.
72684         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
72685         (DO_SIGNED_NUMBER): New macro.
72686         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
72687
72688 2005-03-07  Bruno Haible  <bruno@clisp.org>
72689
72690         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
72691
72692 2005-03-07  Bruno Haible  <bruno@clisp.org>
72693
72694         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
72695
72696 2005-03-04  Derek R. Price  <derek@ximbiot.com>
72697
72698         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
72699         (func_import): Only replace files via --import when they have actually
72700         changed.
72701
72702 2005-03-03  Derek R. Price  <derek@ximbiot.com>
72703
72704         * m4/mmap-anon.m4: New file.
72705         * m4/pagealign_alloc.m4: New file.
72706
72707 2005-03-03  Derek R. Price  <derek@ximbiot.com>
72708             Bruno Haible  <bruno@clisp.org>
72709
72710         * modules/pagealign_alloc: New file.
72711         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
72712
72713 2005-03-03  Derek R. Price  <derek@ximbiot.com>
72714             Bruno Haible  <bruno@clisp.org>
72715
72716         * lib/pagealign_alloc.h: New file.
72717         * lib/pagealign_alloc.c: New file.
72718
72719 2005-03-03  Bruno Haible  <bruno@clisp.org>
72720
72721         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
72722         Use an all-permissive copyright notice, recommended by RMS.
72723
72724 2005-03-02  Bruno Haible  <bruno@clisp.org>
72725
72726         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
72727         of AIX, the replacement has to be done only after <string.h> is
72728         included, therefore not in config.h. stpncpy.h does the replacement,
72729         and stpncpy.c uses it.
72730
72731 2005-03-02  Bruno Haible  <bruno@clisp.org>
72732
72733         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
72734         stpncpy.c uses it.
72735
72736 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
72737
72738         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
72739         The workaround isn't strictly needed for POSIX conformance, and
72740         it's too much of a pain to configure and maintain.  We'll ask
72741         people to fix their kernels instead.
72742         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
72743         (NANOSLEEP_BUG_WORKAROUND): Remove.
72744         (xnanosleep): Remove the workaround.
72745
72746 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
72747
72748         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
72749         Reported by Derek Price.
72750         (Include): Add "timespec.h".
72751
72752         * modules/xnanosleep (Depends-on): Remove gethrxtime.
72753
72754 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
72755
72756         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
72757         to detect nanosleep bug.
72758
72759 2005-03-01  Bruno Haible  <bruno@clisp.org>
72760
72761         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
72762
72763 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
72764
72765         * modules/gethrxtime: New file.
72766         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
72767         (Depends-on): Add gethrxtime.
72768         (configure.ac): Add gl_XNANOSLEEP.
72769         (Makefile.am): Remove lib_SOURCES line.
72770
72771 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
72772
72773         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
72774         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
72775
72776 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
72777
72778         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
72779         * lib/timespec.h (gettime): Return void, since it always
72780         succeeds now.  All uses changed.
72781         * lib/gettime.c (gettime): Likewise.
72782         [HAVE_NANOTIME]: Prefer nanotime.
72783         Assume gettimeofday succeeds, as POSIX requires.
72784         Assime time () succeeds, since other code already does.
72785         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
72786         (timespec_subtract): Remove.
72787         (NANOSLEEP_BUG_WORKAROUND): New constant.
72788         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
72789         things considerably.  Use it only on GNU/Linux hosts, since the
72790         workaround shouldn't be needed elsewhere.
72791
72792 2005-02-24  Bruno Haible  <bruno@clisp.org>
72793
72794         * modules/gettext (Files): Add m4/glibc2.m4.
72795
72796 2005-02-24  Bruno Haible  <bruno@clisp.org>
72797
72798         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
72799         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
72800         * m4/progtest.m4:
72801         Update from GNU gettext 0.14.2.
72802         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
72803
72804 2005-02-24  Bruno Haible  <bruno@clisp.org>
72805
72806         * lib/localcharset.c: Update from GNU gettext 0.14.2.
72807         * lib/config.charset: Update from GNU gettext 0.14.2.
72808
72809 2005-02-24  Bruno Haible  <bruno@clisp.org>
72810
72811         * lib/gettext.h: Update from GNU gettext 0.14.2.
72812
72813 2005-02-23  Simon Josefsson  <jas@extundo.com>
72814
72815         * m4/iconvme.m4: New file.
72816
72817 2005-02-23  Jim Meyering  <jim@meyering.net>
72818
72819         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
72820         change.
72821         Thanks to Bruno Haible for catching it.
72822
72823 2005-02-22  Simon Josefsson  <jas@extundo.com>
72824
72825         * modules/iconvme: New file.
72826
72827         * MODULES.html.sh: Add iconvme.
72828
72829 2005-02-22  Simon Josefsson  <jas@extundo.com>
72830
72831         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
72832
72833 2005-02-22  Simon Josefsson  <jas@extundo.com>
72834
72835         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
72836
72837 2005-02-22  Jim Meyering  <jim@meyering.net>
72838
72839         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
72840         s/ifndef/ifdef/.
72841
72842 2005-02-20  Neil Conway  <neilc@samurai.com>
72843
72844         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
72845         returned by OSX/Darwin if the specified buffer is not large
72846         enough for the hostname.
72847
72848 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
72849
72850         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
72851         pass it to _help, otherwise the latter coredumps trying to
72852         dereference state.root_argp.
72853
72854 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
72855
72856         * modules/chdir-long (Depends-on): Add memrchr.
72857         * modules/memrchr (Files): Add lib/memrchr.h.
72858         (Include): "memrchr.h".
72859
72860 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
72861
72862         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
72863
72864 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
72865
72866         * lib/memrchr.h: New file.
72867         * lib/chdir-long.c: Include it.
72868         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
72869         Don't bother including stddef.h.
72870
72871 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
72872
72873         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
72874         inclusion.
72875         Include <sys/types.h>, for dev_t.
72876         (ME_DUMMY, ME_REMOTE): Move from here....
72877         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
72878         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
72879         Dmitry V. Levin.
72880         Include mountlist.h first, to test the interface.
72881
72882 2005-01-29  Bruno Haible  <bruno@clisp.org>
72883
72884         * lib/progname.c (program_name): Initialize.
72885         Needed when linking statically on MacOS X.
72886
72887 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
72888
72889         Sync from coreutils.
72890         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
72891         (Depends-on): Add c-strtod.
72892         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
72893
72894 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
72895
72896         Sync from coreutils.
72897         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
72898
72899         Remove files that are specific to coreutils.
72900         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
72901
72902 2005-01-28  Bruno Haible  <bruno@clisp.org>
72903
72904         * modules/javacomp: New file.
72905         * MODULES.html.sh (Java): Add javacomp.
72906
72907 2005-01-28  Bruno Haible  <bruno@clisp.org>
72908
72909         * m4/javacomp.m4: New file, from GNU gettext.
72910
72911 2005-01-28  Bruno Haible  <bruno@clisp.org>
72912
72913         * lib/javacomp.sh.in: New file, from GNU gettext.
72914         * lib/javacomp.h: New file, from GNU gettext.
72915         * lib/javacomp.c: New file, from GNU gettext.
72916
72917 2005-01-26  Simon Josefsson  <jas@extundo.com>
72918
72919         * lib/gai_strerror.c: Use GPL in header.
72920
72921 2005-01-26  Bruno Haible  <bruno@clisp.org>
72922
72923         * modules/javaexec: New file.
72924         * MODULES.html.sh (Java): Add javaexec.
72925
72926 2005-01-26  Bruno Haible  <bruno@clisp.org>
72927
72928         * m4/javaexec.m4: New file, from GNU gettext.
72929
72930 2005-01-26  Bruno Haible  <bruno@clisp.org>
72931
72932         * lib/javaexec.sh.in: New file, from GNU gettext.
72933         * lib/javaexec.h: New file, from GNU gettext.
72934         * lib/javaexec.c: New file, from GNU gettext.
72935
72936 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
72937
72938         * modules/lchown (Depends-on): Remove lchown.h
72939
72940 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
72941
72942         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
72943         must be defined if the header file was not found, in order
72944         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
72945
72946 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
72947
72948         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
72949         initializers for struct pentry_state.
72950         (__argp_error): Check return value of __asprintf
72951         (__argp_failure): Translate error message
72952
72953         * lib/argp-parse.c: Removed braces around the expansion of N_()
72954
72955 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
72956
72957         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
72958         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
72959         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
72960         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
72961         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
72962         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
72963         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
72964         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
72965         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
72966         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
72967         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
72968         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
72969         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
72970         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
72971         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
72972         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
72973         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
72974         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
72975         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
72976         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
72977         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
72978         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
72979         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
72980         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
72981         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
72982         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
72983         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
72984         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
72985         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
72986         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
72987         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
72988         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
72989         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
72990         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
72991         xstrtol.m4, xstrtoumax.m4, yesno.m4:
72992         Use an all-permissive copyright notice, recommended by RMS.
72993
72994 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
72995
72996         * modules/chdir-long (Depends-on): Remove mempcpy.
72997
72998 2005-01-21  Jim Meyering  <jim@meyering.net>
72999
73000         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
73001         same value as for Solaris 9.
73002
73003         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
73004         component length.  This included changing the parameter to be
73005         of type `char *' rather than `char const *'.
73006         * lib/chdir-long.h (chdir_long): Update prototype.
73007
73008         * lib/openat.c (fdopendir, fstatat): New functions.
73009         * lib/openat.h: Include headers required for use of DIR and struct
73010         stat.
73011         [AT_SYMLINK_NOFOLLOW]: Define.
73012         (fdopendir, fstatat): Add prototypes.
73013
73014 2005-01-21  Bruno Haible  <bruno@clisp.org>
73015
73016         * modules/classpath: New file.
73017         * MODULES.html.sh (Java): Add classpath.
73018
73019 2005-01-21  Bruno Haible  <bruno@clisp.org>
73020
73021         * lib/classpath.h: New file, from GNU gettext.
73022         * lib/classpath.c: New file, from GNU gettext.
73023
73024 2005-01-20  Simon Josefsson  <jas@extundo.com>
73025
73026         * modules/version-etc-fsf: New file.
73027
73028 2005-01-20  Simon Josefsson  <jas@extundo.com>
73029
73030         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
73031         * lib/version-etc.c: Remove version_etc_copyright.
73032         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
73033         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
73034
73035 2005-01-20  Simon Josefsson  <jas@extundo.com>
73036
73037         * lib/base64.h (isbase64): Add.
73038
73039         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
73040         using a unsigned prototype, don't inline.
73041         (base64_decode): Use it.
73042
73043 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
73044
73045         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
73046         it.
73047
73048 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
73049
73050         * lib/save-cwd.c (save_cwd): Remove code to support the case
73051         where fchdir is missing or flaky.
73052
73053 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
73054
73055         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
73056
73057 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
73058
73059         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
73060         AC_LIBSOURCES now does this.
73061         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
73062         with new ullong_max module.
73063
73064 2005-01-19  Bruno Haible  <bruno@clisp.org>
73065
73066         * modules/sh-quote: New file.
73067         * MODULES.html.sh (Executing programs): Add sh-quote.
73068
73069 2005-01-19  Bruno Haible  <bruno@clisp.org>
73070
73071         * lib/sh-quote.h: New file, from GNU gettext.
73072         * lib/sh-quote.c: New file, from GNU gettext.
73073
73074 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
73075
73076         Merge from coreutils.
73077         * m4/ullong_max.m4: New file.
73078         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
73079         (gl_MACROS): Assume localeconv exists.
73080
73081 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
73082
73083         Merge changes from coreutils, as described below in several
73084         changelogs dated today.
73085
73086         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
73087         (O_DIRECTORY): Remove; not needed here, since "." must be
73088         a directory.  All uses removed.
73089         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
73090         universal on Suns, and we also need to test for IRIX.
73091         Revamp code to use 'if' rather than '#if'.
73092         Avoid unnecessary comparison of cwd->desc to 0.
73093
73094         * lib/utimens.c (futimens): Robustify the previous patch, by checking
73095         for known valid error numbers rather than observed invalid ones.
73096
73097 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
73098
73099         * modules/ullong_max: New file.
73100
73101         * modules/chdir-long, modules/openat: New files.
73102         * modules/save-cwd (Depends-on): Depend on chdir-long.
73103         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
73104
73105 2005-01-18  Jim Meyering  <jim@meyering.net>
73106
73107         Merge from coreutils.
73108         * m4/chdir-long.m4, m4/openat.m4: New files.
73109         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
73110         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
73111         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
73112         is sane and DOES follow symlinks.  Besides, testing 20 different
73113         systems found no broken chown implementations.
73114         Prompted by a change in rsync's copy of this macro.
73115         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
73116
73117         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
73118
73119         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
73120         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
73121         NULL-means-set-to-current-time semantics.
73122         Remove temporary file immediately, rather than waiting
73123         for configure's at-exit trap code to do it.
73124
73125 2005-01-18  Jim Meyering  <jim@meyering.net>
73126
73127         * lib/version-etc.c (version_etc_copyright): Update copyright date.
73128
73129         * lib/utimens.c (futimens): Account for the fact that futimes
73130         can also fail with errno == ENOSYS or errno == ENOENT.
73131         Patch from Dmitry V. Levin.
73132
73133         Change the name of the robust chdir function from chdir to chdir_long.
73134         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
73135         (restore_cwd): Use chdir_long, not chdir.
73136         * lib/chdir-long.c: Renamed from chdir.c.
73137         * lib/chdir-long.h: Renamed from chdir.h.
73138         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
73139         Hurd.
73140
73141 2005-01-18  Bruno Haible  <bruno@clisp.org>
73142
73143         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
73144         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
73145         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
73146         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
73147         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
73148         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
73149         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
73150         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
73151         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
73152         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
73153         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
73154         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
73155         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
73156         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
73157         Use an all-permissive copyright notice, recommended by RMS.
73158
73159 2005-01-18  Bob Proulx  <bob@proulx.com>
73160
73161         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
73162         simplify offsetof() macro construct to avoid compile failure with
73163         native HP-UX 11.0 ANSI C compiler.
73164
73165 2005-01-17  Bruno Haible  <bruno@clisp.org>
73166
73167         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
73168         redundant because stpncpy.m4 takes care of it.
73169
73170 2005-01-17  Bruno Haible  <bruno@clisp.org>
73171
73172         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
73173
73174 2005-01-17  Bruno Haible  <bruno@clisp.org>
73175
73176         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
73177         used.
73178
73179 2005-01-17  Bruno Haible  <bruno@clisp.org>
73180
73181         * lib/fwriteerror.h (fwriteerror): Change specification to include
73182         fclose.
73183         * lib/fwriteerror.c: Include <stdbool.h>.
73184         (fwriteerror): At the end, close the file stream. Record whether
73185         stdout was already closed.
73186
73187 2005-01-17  Bruno Haible  <bruno@clisp.org>
73188
73189         * lib/execute.c (environ): Declare if needed.
73190         * lib/pipe.c (environ): Likewise.
73191         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
73192
73193 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
73194
73195         * modules/argp: Depend on vsnprintf
73196
73197 2005-01-10  Jim Meyering  <jim@meyering.net>
73198
73199         * modules/closeout (Depends-on): Add atexit.
73200
73201 2005-01-06  Bruno Haible  <bruno@clisp.org>
73202
73203         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
73204
73205 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
73206
73207         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
73208         definitions to be after all include files, to avoid collisions.
73209         Problem reported by Bob Proulx.
73210
73211 2005-01-04  Jim Meyering  <jim@meyering.net>
73212
73213         Changes imported from coreutils.
73214         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
73215         as the mkstemp template, use a temporary directory and an
73216         8.3-friendly template to avoid trouble on systems like DJGPP.
73217         Reported by Juan M. Guerrero via Stepan Kasal.
73218         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
73219         close. Remove the temporary directory right away, rather than waiting
73220         for configure's at-exit trap code to do it.
73221         Suggestion from Stepan Kasal.
73222
73223 2005-01-01  Simon Josefsson  <jas@extundo.com>
73224
73225         * gnulib-tool: Print #include directives when --import'ing.
73226
73227 2004-12-28  Simon Josefsson  <jas@extundo.com>
73228
73229         * tests/test-base64.c: Include required header files.  Remove
73230         unused variables.
73231
73232 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
73233
73234         * modules/error (Depends-on): Remove gettext.
73235
73236 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
73237
73238         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
73239         not needed.  This removes a dependency on the gettext module.
73240         [defined _LIBC]: Do not include <libintl.h>; not needed.
73241
73242 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
73243
73244         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
73245         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
73246
73247 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
73248
73249         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
73250         HAVE_DECL_STRTOLD.
73251
73252 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
73253
73254         * modules/getdate (Depends-on): Remove alloca-opt.
73255
73256 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
73257
73258         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
73259
73260 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
73261
73262         * lib/argp-parse.c: Include <stddef.h>.
73263         (alignof, alignto): New macros.
73264         (parser_init): Don't assume that void * is aligned sufficiently
73265         for struct option.
73266
73267         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
73268         need to extend the stack.
73269         (YYINITDEPTH): New macro, so that the initial stack isn't overly
73270         large.
73271
73272 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
73273
73274         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
73275
73276 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
73277
73278         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
73279         (2004-10-24) change.  Apparently this was a false alarm.
73280
73281         * modules/getdate: Depend on alloca-opt, not alloca.
73282
73283 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
73284
73285         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
73286         Remove now-obsolete comment about AIX.
73287         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
73288         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
73289         (YYMAXDEPTH): New macro.
73290
73291 2004-12-18  Simon Josefsson  <jas@extundo.com>
73292
73293         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
73294
73295 2004-12-18  Bruno Haible  <bruno@clisp.org>
73296
73297         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
73298
73299 2004-12-18  Bruno Haible  <bruno@clisp.org>
73300
73301         * lib/fatal-signal.c (fatal_signals): Make non-const.
73302         (init_fatal_signals): New function.
73303         (uninstall_handlers, install_handlers): Ignore signals that were set to
73304         SIG_IGN.
73305         (at_fatal_signal): Call init_fatal_signals.
73306         (init_fatal_signal_set): Likewise. Ignore signals that were set to
73307         SIG_IGN.
73308         Reported by Paul Eggert.
73309
73310 2004-12-18  Bruno Haible  <bruno@clisp.org>
73311
73312         * doc/alloca.texi: New file.
73313         * doc/alloca-opt.texi: New file.
73314
73315 2004-12-17  Jim Meyering  <jim@meyering.net>
73316
73317         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
73318         Otherwise, install-sh could exit with improper exit status when
73319         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
73320
73321 2004-12-16  Simon Josefsson  <jas@extundo.com>
73322
73323         * tests/test-base64.c: Add license.
73324
73325 2004-12-15  Stepan Kasal  <address@hidden>
73326
73327         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
73328
73329 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
73330
73331         * modules/getcwd (Files): Add m4/d-ino.m4.
73332         Suggested by Mark D. Baushke.
73333
73334 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
73335
73336         * lib/getdate.y (textint): New member "negative".
73337         (time_zone_hhmm): New function.
73338         Expect 14 shift-reduce conflicts, not 13.
73339         (o_colon_minutes): New rule.
73340         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
73341         (yylex): Set the "negative" member of signed numbers.
73342
73343 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
73344
73345         * doc/getdate.texi (Time of day items, Time zone items):
73346         Describe new formats +00:00, UTC+00:00.
73347
73348 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
73349
73350         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
73351         spurious "-l"s.  Problem reported by Stepan Kasal.
73352
73353 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
73354
73355         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
73356         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
73357
73358 2004-12-04  Simon Josefsson  <jas@extundo.com>
73359
73360         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
73361         Vandoorselaere <yoann@prelude-ids.org>.
73362
73363 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
73364
73365         Changes imported from coreutils.
73366         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
73367         exist.
73368         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
73369
73370 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
73371
73372         Changes imported from coreutils.
73373         * lib/hard-locale.c: Assume <locale.h> exists.
73374         Include "strdup.h".
73375         (GLIBC_VERSION): New macro.
73376         (hard_locale): Assume setlocale exists.
73377         Rewrite to avoid #ifdef.
73378         Use strdup rather than malloc + strcpy.
73379         * lib/human.c: Assume <locale.h> exists.
73380         (human_readable): Assume localeconv exists.
73381
73382 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
73383
73384         * modules/hard-locale (Depends-on): Add strdup.
73385
73386 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
73387
73388         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
73389         convert T2, not T.  (Imported from libc.)
73390
73391 2004-11-30  Simon Josefsson  <jas@extundo.com>
73392
73393         * modules/restrict (License): Change to LGPL.
73394
73395 2004-11-30  Simon Josefsson  <jas@extundo.com>
73396
73397         * m4/restrict.m4: Add copyright and copying conditions.
73398
73399 2004-11-30  Simon Josefsson  <jas@extundo.com>
73400
73401         * m4/base64.m4: New file.
73402
73403 2004-11-30  Simon Josefsson  <jas@extundo.com>
73404
73405         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
73406         base64.
73407
73408         * tests/test-base64.c: New file.
73409
73410         * modules/base64: New file.
73411
73412 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
73413
73414         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
73415         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
73416
73417         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
73418
73419 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
73420
73421         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
73422         (__getcwd.c): Don't restore errno; glibc doesn't.
73423         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
73424         first, falling back to our code only if its results look suspicious.
73425         Ensure that the resulting buffer is only as large as necessary.
73426
73427         * lib/readutmp.c: Include readutmp.h first.
73428         Include <errno.h>, since readutmp.h no longer does that.
73429         * lib/readutmp.h: Don't include <errno.h>,
73430         <sys/param.h>, <time.h>; not needed to establish interface.
73431         (errno): Remove decl.
73432         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
73433         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
73434         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
73435
73436 2004-11-28  Simon Josefsson  <jas@extundo.com>
73437
73438         * lib/base64.h, base64.c: New file.
73439
73440 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
73441
73442         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
73443
73444 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
73445
73446         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
73447         (Depends-on): Remove pathmax, same.  Add mempcpy.
73448         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
73449         (Makefile.am): Append getcwd.h to lib_SOURCES.
73450         (Include): Add getcwd.h.
73451         (Maintainer): Change from Jim Meyering to "all, glibc",
73452         since getdate now uses intended-for-glibc code.
73453         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
73454         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
73455
73456 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
73457
73458         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
73459         HP's ANSI C compiler.
73460         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
73461         Declaring int functions causes warnings on some modern systems and
73462         shouldn't be needed to compile on ancient ones.
73463         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
73464         defined.
73465
73466         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
73467         with the following changes.
73468         (__set_errno): Parenthesize properly.
73469         Include <stdbool.h>.
73470         (MIN, MAX, MATCHING_INO): New macros.
73471         (__getcwd): Define with prototype, not K&R form.
73472         Use heuristics to allocate default buffer on stack if possible.
73473         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
73474         behavior, and to avoid the PATH_MAX limit when computing
73475         ../../../../...
73476         Use MATCHING_INO to compare inode number to file.
73477         Check for arithmetic overflow in size calculations.
73478         Fix bug in reallocation of dot array that caused getcwd to fail
73479         on directories nested deeper than 75.
73480         Be more careful about saving errno on error.
73481         Do not use realloc; use only free+malloc, as this is a bit
73482         more flexible and avoids a needless copy operation.
73483         Do not inspect st_dev and st_ino for symbolic links; POSIX
73484         doesn't specify the latter.
73485         Check for closedir errors.
73486         Avoid needless casts.
73487         Use "#ifdef weak_alias" around weak_alias, to be like other
73488         glibc code.
73489         The following changes to getcwd.c have effect only when used in
73490         gnulib; they have no effect inside glibc proper.
73491         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
73492         as alloca isn't used.
73493         (alloca, __alloca): Likewise.
73494         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
73495         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
73496         unconditionally, as gnulib assumes C89 or better.
73497         Do not include <sys/param.h>.
73498         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
73499         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
73500         better.
73501         (NULL) [!defined NULL]: Remove; we assume C89 or better.
73502         Include <dirent.h> in a way that is compatible with modern Autoconf.
73503         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
73504         New macros, if not already defined.
73505         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
73506         Use "_LIBC", not "defined _LIBC", for consistency.
73507         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
73508         a mempcpy module.
73509         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
73510         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
73511         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
73512         credit only to Jim Meyering and adjust the copyright dates.
73513         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
73514         <stdlib.h>, <unistd.h>, "pathmax.h".
73515         Instead, include "xgetcwd.h" (first) and "getcwd.h".
73516         (INITIAL_BUFFER_SIZE): Remove.
73517         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
73518
73519 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
73520
73521         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
73522         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
73523         Use the _ONCE methods, for efficiency.
73524         Check for fcntl.h.  In test program, include <errno.h>
73525         and <fcntl.h> if available.  Remove old K&R cruft from
73526         test program.  Check for common errors in GNU/Linux,
73527         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
73528         don't do AC_LIBOBJ, as that's getcwd.m4's job.
73529         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
73530         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
73531         name accordingly.
73532         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
73533         accommodate new getcwd.c.
73534         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
73535         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
73536         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
73537         that's all we need now.
73538
73539 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
73540
73541         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
73542         argp-parse.c depends on getopt internals, that means we should
73543         always use our getopt, to be on the safe side.
73544         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
73545         order not to spoil the result of an eventual previous invocation
73546         of gl_GETOPT_SUBSTITUTE.
73547
73548 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
73549
73550         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
73551         redefinition warnings. To avoid them, include the defines
73552         in `#if !defined __need_getopt ... #endif'. The only place
73553         where __getopt_argv_const is used is in definitions
73554         of getopt_long and getopt_long_only below, which are as well
73555         protected by `#ifndef __need_getopt'.
73556         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
73557         __need_getopt after including <stdio.h> and <unistd.h> These
73558         headers might have defined it.
73559
73560 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
73561
73562         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
73563
73564 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
73565
73566         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
73567         (futimens): New function, which uses futimes if available.
73568         (futimens, utimens): Support timespec==NULL, with same semantics
73569         as utime and utimens.
73570         * lib/utimens.h (futimens): New decl.
73571
73572 2004-11-23  Jim Meyering  <jim@meyering.net>
73573
73574         * lib/getopt_.h: Remove trailing blanks.
73575
73576 2004-11-23  Jim Meyering  <jim@meyering.net>
73577
73578         * lib/__fpending.c: Add comment.
73579
73580 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
73581
73582         * modules/canonicalize (Depends-on): Add xreadlink.
73583         Problem reported by James Youngman.
73584
73585 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
73586
73587         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
73588         New macros.
73589         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
73590         optopt): Use them instead of invoking ## directly; otherwise, the
73591         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
73592
73593 2004-11-19  Bruno Haible  <bruno@clisp.org>
73594
73595         * lib/strtok_r.c: Move comments from here...
73596         * lib/strtok_r.h: ... to here.
73597
73598 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
73599
73600         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
73601         implementations that mishandle size_t overflow.
73602
73603 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
73604
73605         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
73606         might fail.  Problem reported by Yoann Vandoorselaere.
73607         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
73608         implementations that mishandle size_t overflow.
73609
73610 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
73611
73612         * modules/canon-host (Depends-on): Add strdup.
73613
73614 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
73615
73616         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
73617
73618 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
73619
73620         * lib/canon-host.c: Include "strdup.h".
73621         (canon_host): Use getaddrinfo if available, so that IPv6 works.
73622         Use strdup instead of malloc/strcpy to duplicate strings.
73623
73624         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
73625         (human_space_before_unit): New constant.
73626         * lib/human.c (human_readable): Support it.
73627
73628         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
73629         (xgetcwd): Set errno correctly when failing.
73630         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
73631         the failure is actually due to a PATH_MAX problem.
73632
73633         Further getopt changes to make it more likely that glibc will
73634         buy the changes back.
73635         * lib/getopt.c (POSIXLY_CORRECT): New constant.
73636         (getopt): Use it, so to preserve glibc semantic
73637         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
73638         when compiling for libc.
73639         * lib/getopt_.h (__getopt_argv_const): Bring it back.
73640         (getopt_long, getopt_long_only): Use it.
73641
73642         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
73643         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
73644         (getopt): Argv is now char * const *, as per standard.
73645         (_getopt_internal_r, _getopt_internal): Argv is now char **,
73646         not char *__getopt_argv_const *.
73647         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
73648         _getopt_long_only_r): Likewise.
73649         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
73650         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
73651         _getopt_long_r, _getopt_long_only_r): Likewise.
73652         * lib/getopt_.h (__getopt_argv_const): Remove.
73653         (getopt): Argv is now char * const *, as per standard.
73654
73655         * lib/getdate.y (tORDINAL): New token.
73656         (day, relunit): Allow it for relative times.
73657         (relative_time_table): Use tORDINAL for ordinals.
73658
73659 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
73660
73661         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
73662         Document that "second" isn't allowed as an ordinal number.
73663
73664 2004-11-16  Jim Meyering  <jim@meyering.net>
73665
73666         * modules/closeout (Depends-on): Add fpending.
73667
73668 2004-11-15  Jim Meyering  <jim@meyering.net>
73669
73670         * lib/closeout.c: Include "__fpending.h" once again.
73671         Include <stdbool.h>.
73672         (close_stdout): Don't fail just because stdout was closed initially,
73673         since some programs don't write to stdout in the normal course of
73674         operation (other than --version and --help), and we don't want this
73675         function to make e.g. `touch file >&-' fail.
73676         But do fail if it was closed and someone has tried to write to it.
73677         E.g., `printf foo >&-' must fail.
73678
73679 2004-11-13  Jim Meyering  <jim@meyering.net>
73680
73681         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
73682
73683 2004-11-12  Simon Josefsson  <jas@extundo.com>
73684
73685         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
73686         small doc fix is still pending.
73687
73688 2004-11-11  Simon Josefsson  <jas@extundo.com>
73689
73690         * modules/strtok_r: New file.
73691
73692         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
73693         strtok_r.
73694
73695 2004-11-11  Simon Josefsson  <jas@extundo.com>
73696
73697         * m4/strtok_r.m4: New file.
73698
73699         * m4/getopt.m4: Replace opterr.
73700
73701 2004-11-11  Simon Josefsson  <jas@extundo.com>
73702
73703         * lib/strtok_r.h, strtok_r.c: New file.
73704
73705 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
73706
73707         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
73708         of replacing opterr, getopt, etc.  This should handle the
73709         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
73710
73711 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
73712
73713         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
73714         we can stop lying to compilers about the constness of argv when we
73715         are compiled outside glibc.
73716         (getopt, getopt_long, getopt_long_only): Use it.
73717         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
73718         _getopt_internal, getopt): Likewise.
73719         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
73720         _getopt_long_only_r): Likewise.
73721         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
73722         _getopt_long_r, _getopt_long_only_r): Likewise.
73723
73724         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
73725         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
73726         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
73727         the other external symbols.
73728         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
73729         declaration, since the above renaming now works around collisions.
73730
73731 2004-11-11  Jim Meyering  <jim@meyering.net>
73732
73733         * lib/linebreak.c: Remove trailing blanks.
73734         * lib/alloca_.h: Likewise.
73735         * lib/acosl.c: Likewise.
73736         * lib/euidaccess.c: Likewise.
73737         * lib/allocsa.h: Likewise.
73738
73739 2004-11-10  Simon Josefsson  <jas@extundo.com>
73740
73741         * m4/getaddrinfo.m4: New file.
73742
73743 2004-11-10  Simon Josefsson  <jas@extundo.com>
73744
73745         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
73746
73747 2004-11-10  Simon Josefsson  <jas@extundo.com>
73748
73749         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
73750         getaddrinfo.
73751
73752         * modules/getaddrinfo: New file.
73753
73754 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
73755
73756         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
73757
73758 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
73759
73760         * lib/mktime.c (SHR): New macro, which is a portable
73761         substitute for >> that should work even on Crays.
73762         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
73763         Problem reported by Mark D. Baushke in
73764         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
73765         * lib/getdate.y (SHR): Likewise.
73766         (tm_diff): Use it.
73767         * lib/strftime.c (SHR): Likewise.
73768         (tm_diff): Use it.
73769         * lib/quotearg.c (struct quoting_options): Use unsigned int for
73770         quote_these_too, so that right shifts are well defined.  All uses
73771         changed.
73772
73773 2004-11-10  Jim Meyering  <jim@meyering.net>
73774
73775         Ensure that no close failure goes unreported.
73776         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
73777         return early when it seems there's nothing to flush.
73778         Don't include __fpending.h.
73779
73780 2004-11-10  Jim Meyering  <jim@meyering.net>
73781
73782         * modules/closeout (Depends-on): Remove fpending.
73783
73784 2004-11-10  Jim Meyering  <jim@meyering.net>
73785
73786         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
73787
73788 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
73789
73790         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
73791         gl_FUNC_STRFTIME.
73792         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
73793         and AC_REQUIRE when possible, to avoid duplicate checks.
73794         Check for <wchar.h>.
73795
73796 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
73797
73798         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
73799
73800 2004-11-09  Bruno Haible  <bruno@clisp.org>
73801
73802         * m4/sockpfaf.m4: New file.
73803
73804 2004-11-05  Bruno Haible  <bruno@clisp.org>
73805
73806         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
73807         Reported by Mark D. Baushke <mdb@cvshome.org>.
73808
73809 2004-11-04  Bruno Haible  <bruno@clisp.org>
73810
73811         2004-09-11  Bruno Haible  <bruno@clisp.org>
73812                 * allocsa.valgrind: New file.
73813         2004-02-06  Bruno Haible  <bruno@clisp.org>
73814                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
73815                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
73816                 Reported by Christopher Seip <chris.seip@hp.com>.
73817
73818 2004-11-04  Bruno Haible  <bruno@clisp.org>
73819
73820         * modules/allocsa (Files): Add lib/allocsa.valgrind.
73821         (Makefile.am): Distribute it.
73822
73823 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
73824
73825         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
73826         with errno == ERANGE if the buffer is too small.
73827         Problem reported by Mark D. Baushke.
73828
73829 2004-11-03  Albert Chin  <china@thewrittenword.com>
73830             Paul Eggert  <eggert@cs.ucla.edu>
73831
73832         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
73833         equivalent, substitute $ac_type for equivalent type rather than
73834         blindly using uint32_t *always* which won't work if uint32_t is not
73835         available.  Define _UINT32_T to work around typedef of uint32_t if
73836         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
73837         2.5.1.
73838
73839 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
73840
73841         * m4/jm-macros.m4: Sync from coreutils.
73842         (gl_MACROS): Check for mbrlen, for pathchk.
73843         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
73844
73845 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
73846
73847         * lib/xreadlink.c (MAXSIZE): New macro.
73848         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
73849         size does not exceed MAXSIZE.  Avoid cast.
73850         As suggested by Mark D. Baushke in
73851         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
73852         if readlink fails with buffer size just under MAXSIZE, try again
73853         with MAXSIZE.
73854
73855 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
73856
73857         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
73858
73859 2004-11-02  Derek R. Price  <derek@ximbiot.com>
73860         and  Paul Eggert  <eggert@cs.ucla.edu>
73861
73862         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
73863         (get_date): Overparenthesize to avoid GCC warning.
73864
73865 2004-11-02  Bruno Haible  <bruno@clisp.org>
73866
73867         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
73868         returns void.
73869
73870 2004-11-02  Bruno Haible  <bruno@clisp.org>
73871
73872         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
73873         function returns void.
73874
73875 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
73876
73877         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
73878         fflush_unlocked, flockfile, funlockfile, funlockfile,
73879         fputs_unlocked, putc_unlocked.
73880
73881 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
73882
73883         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
73884         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
73885         already declared.
73886
73887 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
73888
73889         * modules/getdate (Files): Add doc/getdate.texi.
73890         (Depends-on): Add setenv, xalloc.
73891
73892 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
73893
73894         * lib/getdate.y: Add support for TZ="foo" within a date string.
73895         Fix some bugs near time_t boundaries.  Reject dates with
73896         out-of-range components, e.g., "Sept 31".
73897         Include <stdlib.h>, "setenv.h", "xalloc.h".
73898         (ISDIGIT_LOCALE): Remove; unused.
73899         Note that the TZ and time functions used here are not reentrant.
73900         (mktime_ok, get_tz): New functions.
73901         (TZBUFSIZE): New constant.
73902         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
73903         This requires that we sometimes generate our own TZ="XXX..." setting.
73904
73905 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
73906
73907         * doc/getdate.texi: New file, from coreutils with modifications for
73908         the new TZ parsing.
73909
73910 2004-10-27  Derek R. Price  <derek@ximbiot.com>
73911
73912         * lib/mktime.c (not_equal_tm): Remove redundant check.
73913
73914 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
73915
73916         * modules/regex (lib_SOURCES): Add regex.c.
73917         Reported by James Youngman in
73918         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
73919
73920 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
73921
73922         * lib/getdate.y: Use Bison 1.875 features, and some minor
73923         code cleanups.  This change does not affect semantics.
73924         Don't include <stdlib.h>; no longer needed.
73925         Don't include unlocked-io.h; only the "#if TEST" code uses
73926         stdio, and performance isn't crucial there.
73927         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
73928         Bison 1.875 features as described below.
73929         All uses of "PC." replaced by "pc->".
73930         (YYSTYPE): Add a forward declaration.
73931         (yylex, yyerror): Use full prototypes in forward decls.
73932         Use "%pure-parser" rather than obsolescent "%pure_parser".
73933         Use %parse-param and %lex-param instead of obsolescent
73934         YYPARSE_PARAM and YYLEX_PARAM.
73935         (meridian_table, month_and_day_table, time_units_table,
73936         relative_time_table, time_zone_table, military_table,
73937         lookup_zone, lookup_word, get_date):
73938         Use NULL instead of 0 where appropriate.
73939         (to_hour): Avoid abort (), to avoid a dependency on
73940         stdlib.h.
73941         (yyerror, yylex): Now accepts parser_control * arg.
73942         (main) [TEST]: Use '\0' rather than 0 for char.
73943
73944 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
73945
73946         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
73947
73948 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
73949
73950         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
73951         It's now the caller's responsibility to handle the case where
73952         !HAVE_GETPAGESIZE && !defined getpagesize.
73953
73954         * lib/mktime.c (leapyear): Arg is long int, not int.
73955
73956 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
73957
73958         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
73959
73960 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
73961
73962         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
73963         missing.  Problem reported by James Youngman.
73964
73965 2004-10-16  Simon Josefsson  <jas@extundo.com>
73966
73967         * gnulib-tool: Fix comments.  Fix parse problem.
73968         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
73969
73970 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
73971
73972         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
73973         implementation of getopt_long.  Problem reported by Alexander Taler in:
73974         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
73975
73976 2004-10-15  Bruno Haible  <bruno@clisp.org>
73977
73978         * gnulib-tool: Untabify. Initialize supplied_libname.
73979         (func_usage): More homogenous output.
73980         (func_modules_transitive_closure, func_modules_to_filelist,
73981         func_emit_lib_Makefile_am): New functions.
73982         (func_import): New function, extracted from big case statement. Use
73983         func_get_license, func_modules_transitive_closure,
73984         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
73985         opt_lgpl. Don't use test -a, as it's not portable.
73986         (func_create_testdir): Use func_modules_transitive_closure,
73987         func_modules_to_filelist, func_emit_lib_Makefile_am.
73988
73989 2004-10-15  Bruno Haible  <bruno@clisp.org>
73990
73991         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
73992
73993 2004-10-15  Bruno Haible  <bruno@clisp.org>
73994
73995         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
73996         the portions belonging to each module.
73997         Suggested by Derek Robert Price <derek@ximbiot.com>.
73998
73999 2004-10-12  Simon Josefsson  <jas@extundo.com>
74000
74001         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
74002         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
74003         to real functions.
74004
74005 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
74006
74007         * modules/vsnprintf: New file.
74008
74009 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
74010
74011         * m4/vsnprintf.m4: New file.
74012
74013 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
74014
74015         * lib/vsnprintf.h: New file.
74016         * lib/vsnprintf.c: New file.
74017
74018 2004-10-11  Bruno Haible  <bruno@clisp.org>
74019
74020         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
74021         vsnprintf.
74022
74023 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
74024
74025         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
74026
74027 2004-10-07  Bruno Haible  <bruno@clisp.org>
74028
74029         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
74030         fits into the provided buffer.
74031
74032 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
74033
74034         * lib/diacrit.c, diacrit.h: Add GPL notice.
74035
74036         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
74037         notice.
74038         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
74039         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
74040         This avoids a potential constant-folding bug.
74041
74042 2004-10-05  Bruno Haible  <bruno@clisp.org>
74043
74044         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
74045         for the declaration of strsep.
74046
74047 2004-10-05  Bruno Haible  <bruno@clisp.org>
74048
74049         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
74050
74051 2004-10-04  Simon Josefsson  <jas@extundo.com>
74052
74053         * modules/memmem: New file.
74054         * tests/test-memmem.c: New file.
74055         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
74056
74057 2004-10-04  Simon Josefsson  <jas@extundo.com>
74058
74059         * m4/memmem.m4: New file.
74060
74061 2004-10-04  Simon Josefsson  <jas@extundo.com>
74062
74063         * lib/memmem.h: New file.
74064         * lib/memmem.c: New file, taken from glibc.
74065
74066 2004-10-04  Simon Josefsson  <jas@extundo.com>
74067
74068         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
74069         '#ifdef USE_UNLOCKED_IO'.
74070
74071 2004-10-04  Simon Josefsson  <jas@extundo.com>
74072
74073         * config/srclist.txt: Add memmem from glibc.
74074
74075 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
74076
74077         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
74078
74079         * modules/argmatch, modules/argp, modules/closeout, modules/error,
74080         modules/exclude, modules/getdate, modules/getline,
74081         modules/getndelim2, modules/getpass, modules/getpass-gnu,
74082         modules/getusershell, modules/linebuffer, modules/md5,
74083         modules/mountlist, modules/posixtm, modules/readtokens,
74084         modules/readutmp, modules/regex, modules/sha1,
74085         modules/version-etc, modules/yesno:
74086         Remove dependency on unlocked-io.
74087
74088 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
74089
74090         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
74091
74092         * m4/unlocked-io.m4: Add copyright notice.
74093         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
74094
74095 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
74096
74097         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
74098         * lib/xmalloc.c (xmemdup): Likewise.
74099         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
74100         XFREE): Remove these long-obsolescent macros.
74101         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
74102         * lib/xstrdup.c: Remove.
74103
74104         * lib/regex.c (re_comp): Cast gettext return value to char *,
74105         Problem reported by Martin Neitzel via Mark D. Baushke.
74106
74107 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
74108
74109         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
74110         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
74111         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
74112         regex.c, sha1.c, version-etc.c, yesno.c:
74113         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
74114         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
74115         the includer's responsibility.
74116
74117         Sync from coreutils.
74118
74119         * lib/modechange.c (mode_compile): Don't decrement a pointer that
74120         points to the start of a string, as the C Standard says the
74121         resulting behavior is undefined.
74122
74123         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
74124         simple -> simple_backups, numbered_existing ->
74125         numbered_existing_backups, numbered -> numbered_backups
74126         to avoid shadowing problems.  All uses changed.
74127         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
74128         * lib/backupfile.c (check_extension, numbered_backup):
74129         Rename locals to avoid shadowing 'basename'.
74130         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
74131         once.
74132
74133         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
74134         * lib/.cvsignore: Add getopt.h.
74135
74136 2004-10-04  Bruno Haible  <bruno@clisp.org>
74137
74138         * modules/README: New file.
74139         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
74140         not a module.
74141
74142 2004-10-02  Jim Meyering  <jim@meyering.net>
74143
74144         * lib/dirfd.h, getpagesize.h: Add copyright notice.
74145
74146 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
74147
74148         * modules/strsep: New file.
74149
74150 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
74151
74152         * m4/strsep.m4: New file.
74153
74154 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
74155
74156         * lib/strsep.h: New file.
74157         * lib/strsep.c: New file.
74158
74159 2004-10-01  Simon Josefsson  <jas@extundo.com>
74160
74161         * lib/snprintf.c (snprintf): Handle size==0.
74162
74163 2004-10-01  Simon Josefsson  <jas@extundo.com>
74164             Bruno Haible  <bruno@clisp.org>
74165
74166         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
74167         (snprintf): Declare 'args'.
74168
74169 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
74170
74171         * lib/snprintf.c: Remove comments as to why each header is needed.
74172
74173 2004-10-01  Bruno Haible  <bruno@clisp.org>
74174
74175         * MODULES.html.sh: Add strsep.
74176
74177 2004-09-30  Simon Josefsson  <jas@extundo.com>
74178
74179         * modules/snprintf: New file.
74180
74181 2004-09-30  Simon Josefsson  <jas@extundo.com>
74182
74183         * m4/snprintf.m4: New file.
74184
74185 2004-09-30  Simon Josefsson  <jas@extundo.com>
74186
74187         * lib/snprintf.h, lib/snprintf.c: New files.
74188
74189 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
74190
74191         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
74192         (hol_entry_help): Never translate an empty string.
74193         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
74194         * lib/argp.h (OPTION_NO_TRANS): New option.
74195
74196 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
74197
74198         * modules/argp (Maintainer): Replace Simon Josefsson
74199         by Sergey Poznyakoff.
74200
74201 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
74202
74203         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
74204         changes merged back into glibc.
74205
74206 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
74207
74208         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
74209
74210 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
74211
74212         * lib/xvasprintf.c: Include xalloc.h.
74213         (xvasprintf): Use xalloc_die, not xmalloc_die.
74214
74215 2004-09-29  Bruno Haible  <bruno@clisp.org>
74216
74217         * modules/alloca-opt: New file, derived from modules/alloca.
74218         * modules/allocsa: Depend on alloca-opt instead of alloca.
74219         * modules/setenv: Likewise.
74220         * modules/vasnprintf: Likewise.
74221         * MODULES.html.sh: Add alloca-opt.
74222
74223 2004-09-28  Simon Josefsson  <jas@extundo.com>
74224
74225         * gnulib-tool: New parameter --lgpl, to asseert that modules are
74226         LGPL, and to replace license template from GPL to LGPL.
74227
74228 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
74229
74230         * modules/dummy: Change license to LGPL.
74231
74232 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
74233
74234         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
74235
74236 2004-09-24  Simon Josefsson  <jas@extundo.com>
74237
74238         * modules/minmax (License): Change from GPL to LGPL.
74239
74240 2004-09-23  Simon Josefsson  <jas@extundo.com>
74241
74242         * gnulib-tool (--import): Typo.
74243
74244 2004-09-23  Simon Josefsson  <jas@extundo.com>
74245
74246         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
74247
74248 2004-09-22  Bruno Haible  <bruno@clisp.org>
74249
74250         * modules/*: Add 'License' field.
74251         * gnulib-tool: Accept --extract-license option.
74252         (func_get_license): New function.
74253
74254 2004-09-21  Bruno Haible  <bruno@clisp.org>
74255
74256         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
74257         Reported by Simon Josefsson.
74258
74259 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
74260
74261         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
74262         gl_AC_TYPE_LONG_LONG.
74263
74264 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
74265
74266         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
74267
74268 2004-09-18  Simon Josefsson  <jas@extundo.com>
74269         and  Paul Eggert  <eggert@cs.ucla.edu>
74270
74271         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
74272         calls with autoreconf.  Define GL_LIB.
74273
74274 2004-09-14  Karl Berry  <karl@gnu.org>
74275
74276         * config/srclist.txt: unsync setenv.c, sigh.
74277
74278 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
74279
74280         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
74281         Problem reported by Bruno Haible in:
74282         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
74283
74284 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
74285
74286         * config/srclist.txt: Comment out argp-pvh.c.
74287
74288 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
74289
74290         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
74291         in case some system header has #define'd it.  Problem reported by
74292         Soeren D. Schulze in
74293         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
74294
74295 2004-09-09  Karl Berry  <karl@gnu.org>
74296
74297         * regex.[ch]: delete from the root.  These were supposed to be
74298                 synced with emacs cvs, but this has not happened for about
74299                 a year, and anyway nothing else uses emacs regex.[ch].
74300                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
74301                 lib/regex[.ch] is untouched.
74302
74303 2004-09-09  Bruno Haible  <bruno@clisp.org>
74304
74305         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
74306
74307 2004-09-09  Bruno Haible  <bruno@clisp.org>
74308
74309         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
74310         modifications.
74311         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
74312
74313 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
74314
74315         * modules/xvasprintf: New file.
74316         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
74317
74318 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
74319
74320         * lib/xvasprintf.h: New file.
74321         * lib/xvasprintf.c: New file.
74322         * lib/xasprintf.c: New file.
74323
74324 2004-09-08  Bruno Haible  <bruno@clisp.org>
74325
74326         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
74327
74328 2004-09-08  Bruno Haible  <bruno@clisp.org>
74329
74330         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
74331         length is > INT_MAX.
74332         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
74333         more.
74334
74335 2004-09-08  Bruno Haible  <bruno@clisp.org>
74336
74337         * lib/stdint_.h: New file, taken from GNU clisp.
74338
74339 2004-09-08  Bruno Haible  <bruno@clisp.org>
74340             Oskar Liljeblad  <oskar@osk.mine.nu>
74341
74342         * modules/stdint: New file.
74343         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
74344
74345 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
74346
74347         Import from coreutils.
74348         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
74349         strings on unbounded length.  alloca's performance benefits aren't
74350         that important here.
74351         (V_STRDUP): Remove.
74352         (parse_with_separator): New function, with most of the internals
74353         of the old parse_user_spec.  Allow user to omit both user and group,
74354         for compatibility with FreeBSD.
74355         Clone only the user name, not the entire spec.
74356         Do not set *uid, *gid unless entirely successful.
74357         Avoid memory leak in some failing cases.
74358         Fix regression for USER.GROUP reported by Dmitry V. Levin in
74359         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
74360         (parse_user_spec): Rewrite to use parse_with_separator.
74361
74362 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
74363
74364         * modules/userspec: Don't depend on alloca.
74365
74366 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
74367
74368         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
74369
74370 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
74371
74372         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
74373         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
74374         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
74375
74376 2004-08-16  Simon Josefsson  <jas@extundo.com>
74377
74378         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
74379         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
74380         Add --dry-run for --import.
74381         Let user provided command line parameters override configure.ac
74382         settings.
74383
74384 2004-08-12  Simon Josefsson  <jas@extundo.com>
74385
74386         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
74387         as discussed with Paul Eggert in threads rooted at
74388         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
74389         and
74390         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
74391         Before, the test was empty, and relied on ELIDE_CODE in source
74392         code.)
74393         (gl_PREREQ_GETOPT): New macro.
74394         (gl_GETOPT): Use them.
74395
74396 2004-08-12  Simon Josefsson  <jas@extundo.com>
74397
74398         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
74399         * lib/getopt_.h: Renamed from getopt.h.
74400
74401 2004-08-12  Simon Josefsson  <jas@extundo.com>
74402
74403         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
74404         Change default library name from libfoo to libgnu.
74405         Now, if you have a configure.ac that says:
74406                 gl_SOURCE_BASE(gl)
74407                 gl_M4_BASE(gl/m4)
74408                 gl_MODULES(error getopt etcetera)
74409                 gl_INIT
74410         you can import all you need by running:
74411                 ../gnulib/gnulib-tool --import
74412
74413         * modules/getopt (Files): Rename getopt.h to getopt_.h.
74414         (Makefile.am): Rewrite, use logic from argz.
74415         (Include): Use <getopt.h> instead of "getopt.h".
74416
74417 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
74418
74419         * modules/argp (Files): Add m4/unlocked-io.m4.
74420         (Depends-on): Add extensions.
74421
74422 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
74423
74424         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
74425         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
74426         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
74427         Check for program_invocation_name, program_invocation_short_name,
74428         flockfile, funlockfile, features.h, _getopt_long_only_r.
74429
74430 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
74431
74432         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
74433         its complicated substitute.
74434         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
74435         and program_invocation_name.
74436         (__argp_basename) [!_LIBC]: Remove; the only use was
74437         replaced by its body.
74438         (__argp_short_program_name): Change condition from
74439         !defined __argp_short_program_name to
74440         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
74441         to match argp-namefrob.h.
74442         (__argp_failure): Don't assume strerror_r returns char *.
74443         * lib/argp-parse.c (N_): Define unconditionally.
74444         (argp_default_options): Fill out initializers with 0 to avoid
74445         gcc warnings.
74446
74447 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
74448
74449         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
74450         getopt1.c.
74451
74452 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
74453
74454         Merge from coreutils.
74455
74456         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
74457
74458         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
74459         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
74460
74461 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
74462
74463         Merge from coreutils.
74464
74465         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
74466         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
74467         for Reliant Unix 5.43.
74468
74469         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
74470         (union fooround): Use uintmax_t, not long int.
74471         The rest is a merge from libc:
74472         [defined _LIBC]: Include <shlib-compat.h>.
74473         (_obstack) [defined _LIBC]: Remove after 2.3.4.
74474
74475         * lib/settime.c (settime): Recode to avoid warning with
74476         Sun Forte C 6U2.
74477
74478         * lib/strverscmp.c: Convert to UTF-8.
74479
74480 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
74481
74482         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
74483         m4/uintmax_t.m4.
74484
74485 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
74486
74487         * modules/xalloc-die: New file.
74488         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
74489
74490         * modules/md5 (Files): Add m4/uint32_t.m4.
74491         * modules/sha1: Renamed from modules/sha.
74492         (Files):
74493         Rename lib/sha.h to lib/sha1.h.
74494         Rename lib/sha.c to lib/sha1.c.
74495         Rename m4/sha.m4 to m4/sha1.m4.
74496         (lib_SOURCES): Likewise.
74497         (configure.ac): Rename gl_SHA to gl_SHA1.
74498         (Include): sha.h -> sha1.h.
74499
74500 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
74501
74502         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
74503         * m4/sha1.m4: Renamed from sha.m4.
74504         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
74505
74506 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
74507
74508         * lib/obstack.h (obstack_empty_p):
74509         Don't assume that chunk->contents is suitably aligned.
74510         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
74511         Likewise. Problem reported by Benno in
74512         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
74513
74514         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
74515         readable.  This could be improved further but it'd take some work.
74516
74517 2004-08-08  Simon Josefsson  <jas@extundo.com>
74518
74519         * modules/xgethostname (Depends-on): Remove exit and error (not
74520         used).
74521
74522         * modules/getpass-gnu: Add getpass.h.
74523         (Depends-on): Add stdbool.
74524         * modules/getpass: Add getpass.h.
74525
74526 2004-08-08  Simon Josefsson  <jas@extundo.com>
74527
74528         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
74529         Check getpass declaration.
74530
74531 2004-08-08  Simon Josefsson  <jas@extundo.com>
74532
74533         * lib/xgethostname.c: Don't include error.h (not used).
74534
74535         * lib/getpass.h: Add.
74536         * lib/getpass.c: Include getpass.h first.
74537
74538 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
74539
74540         * lib/xalloc-die.c: New file.
74541         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
74542         All uses removed.
74543         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
74544         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
74545         xalloc-die.c.
74546         (_, N_, xalloc_die): Move to xalloc-die.c.
74547         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
74548         so that we needn't mess with xalloc_msg_memory_exhausted.
74549
74550         * lib/sha1.h: Renamed from sha.h.
74551         (SHA1_H): Renamed from _SHA_H.
74552         (sha1_ctx): Renamed from sha_ctx.
74553         (sha1_init_ctx): Renamed from sha_init_ctx.
74554         (sha1_process_block): Renamed from sha_process_block.
74555         (sha1_process_bytes): Renamed from sha_process_bytes.
74556         (sha1_finish_ctx): Renamed from sha_finish_ctx.
74557         (sha1_read_ctx): Renamed from sha_read_ctx.
74558         (sha1_stream): Renamed from sha_stream.
74559         (sha1_buffer): Renamed from sha_buffer.
74560         * lib/sha1.c: Likewise; renamed from sha.c.
74561         Do not include <sys/types.h>.
74562         Include <stddef.h> rather than <stdlib.h>.
74563
74564 2004-08-08  Bruno Haible  <bruno@clisp.org>
74565
74566         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
74567         FILESYSTEM_PREFIX_LEN.
74568         * lib/progreloc.c: Likewise.
74569         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
74570
74571 2004-08-06  Simon Josefsson  <jas@extundo.com>
74572
74573         * modules/progname (Depends-on): Don't depend on stdbool.
74574
74575 2004-08-06  Simon Josefsson  <jas@extundo.com>
74576
74577         * modules/getsubopt: New file.
74578         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
74579         getsubopt.
74580
74581 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
74582
74583         More merge from coreutils.
74584
74585         * m4/utimens.m4, m4/utimecmp.m4: New files.
74586         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
74587         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
74588         prereq.m4, sha.m4: Import changes from coreutils.
74589
74590 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
74591
74592         More merge from coreutils.
74593         * modules/raise, modules/readtokens0, modules/utimens:
74594         * modules/utimecmp, module/xnanosleep: New files.
74595         * modules/strftime: Add lib/strftime.h.
74596         Change include from <time.h> to "strftime.h".
74597         * modules/yesno: Add lib/yesno.h.
74598         * modules/backupfile: Remove lib/addext.c.
74599         * modules/euidaccess: Add stat-macros.h.
74600         * modules/canonicalize, modules/euidaccess,
74601         modules/filemode, modules/lchown, modules/makepath,
74602         modules/rmdir, modules/stat: Likewise.
74603
74604 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
74605
74606         Merge from tar.
74607         * lib/argp-help.c (make_hol, hol_append): Don't assume that
74608         SIZE_MAX is a valid preprocessor constant.
74609         (__argp_basename): Change from "#ifndef _LIBC"
74610         to "#ifndef __argp_short_program_name", so that
74611         we don't compile these functions for tar.
74612
74613         More merges from coreutils.
74614         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
74615         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
74616         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
74617         * lib/addext.c: Remove; no longer needed.
74618         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
74619         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
74620         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
74621         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
74622         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
74623         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
74624         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
74625         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
74626         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
74627         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
74628         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
74629         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
74630         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
74631         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
74632         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
74633         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
74634         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
74635         Import changes from coreutils.
74636
74637 2004-08-05  Simon Josefsson  <jas@extundo.com>
74638
74639         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
74640
74641 2004-08-05  Simon Josefsson  <jas@extundo.com>
74642
74643         * m4/getsubopt.m4: New file.
74644
74645 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
74646
74647         Merge from coreutils.
74648
74649         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
74650         * m4/getcwd-path-max.m4: New files.
74651
74652         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
74653         FILESYSTEM_PREFIX_LEN ->
74654         FILE_SYSTEM_PREFIX_LEN.
74655         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
74656         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
74657         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
74658         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
74659
74660         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
74661         prerequisite modules now handle the DOS stuff.
74662         Don't check for unistd.h.
74663
74664 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
74665
74666         Merge from coreutils.
74667
74668         * lib/.gdb-history: Remove; this doesn't belong here.
74669
74670         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
74671         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
74672         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
74673         * lib/getcwd.c: New files.
74674
74675         * lib/dirname.h: Include <stdbool.h>.
74676         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
74677         for consistency with POSIX terminology.  All uses changed.
74678         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
74679         (strip_trailing_slashes): Use bool for booleans.
74680         * lib/stripslash.c (strip_trailing_slashes): Likewise.
74681
74682         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
74683         sometimes returns a positive errno value even when it succeeds.
74684         (print_errno_message) [!LIBC]: Fall back on strerror if
74685         __strerror_r fails.
74686
74687         * lib/path-concat.c (mempcpy): Don't define if a system header defines
74688         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
74689         (longest_relative_suffix): New function.
74690         (path_concat): Use it.  Assume first argument is not NULL.
74691         Port to DOS.  Omit redundant separators.
74692         Report an error instead of returning NULL.
74693         Use mempcpy instead of memcpy.
74694         (xpath_concat): Remove: not declared or used.
74695
74696         * lib/same.h: Include <stdbool.h>
74697         (same_name): Return bool, not int.
74698         * lib/same.c (same_name): Likewise.
74699         (errno): Don't declare; we assume C89 or better now.
74700
74701         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
74702         if not already defined.
74703
74704         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
74705         * lib/dup-safer.c (errno): Likewise.
74706
74707 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
74708
74709         Merge from coreutils.
74710         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
74711         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
74712         * modules/path-concat: Don't depend on strdup.
74713
74714 2004-08-03  Simon Josefsson  <jas@extundo.com>
74715
74716         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
74717         * lib/progname.h: Don't include stdbool.h.
74718
74719 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
74720
74721         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
74722         * MODULES.html.sh (func_all_modules): Remove fatal.
74723
74724 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
74725
74726         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
74727
74728 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
74729
74730         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
74731         working.
74732
74733 2004-08-02  Simon Josefsson  <jas@extundo.com>
74734
74735         * lib/getsubopt.h: New file, with comments from Bruno Haible.
74736         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
74737         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
74738
74739 2004-08-01  Simon Josefsson  <jas@extundo.com>
74740
74741         * lib/xgetdomainname.c: Include stdlib.h, for free().
74742
74743 2004-07-19  Bruno Haible  <bruno@clisp.org>
74744
74745         * MODULES.html.sh (func_all_modules): Add dummy.
74746
74747 2004-07-16  Simon Josefsson  <jas@extundo.com>
74748
74749         * modules/dummy: New file.
74750
74751 2004-07-16  Simon Josefsson  <jas@extundo.com>
74752
74753         * lib/dummy.c: New file.
74754
74755 2004-07-16  Bruno Haible  <bruno@clisp.org>
74756
74757         * lib/backupfile.h: Add extern "C" for C++.
74758         * lib/closeout.h: Likewise.
74759         * lib/copy-file.h: Likewise.
74760         * lib/findprog.h: Likewise.
74761         * lib/full-write.h: Likewise.
74762         * lib/pathname.h: Likewise.
74763         * lib/progname.h: Likewise.
74764         * lib/stpcpy.h: Likewise.
74765         * lib/stpncpy.h: Likewise.
74766         * lib/strcase.h: Likewise.
74767         * lib/strstr.h: Likewise.
74768         * lib/xalloc.h: Likewise.
74769
74770         * lib/mbswidth.h: Add extern "C" for C++.
74771         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
74772
74773 2004-07-13  Robert Millan  <robertmh@gnu.org>
74774
74775         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
74776
74777 2004-07-09  Simon Josefsson  <jas@extundo.com>
74778
74779         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
74780         failed without this.)
74781
74782 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
74783
74784         * modules/chown (Files): Add lib/fchown-stub.c, since
74785         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
74786
74787 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
74788
74789         * lib/fchown-stub.c: New file.
74790
74791 2004-06-24  Jim Meyering  <jim@meyering.net>
74792
74793         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
74794
74795 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
74796
74797         * modules/argz: Omit "#include".
74798
74799         * MODULES.html.sh (func_all_modules): Add calloc, to match
74800         2004-06-01 addition of calloc module.
74801
74802 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
74803
74804         * m4/argz.m4: New file, which is autoupdated from libtool.
74805
74806 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
74807
74808         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
74809         libtool.
74810
74811 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
74812
74813         * config/srclist-update: Don't insist on "USA." before the
74814         close-comment, as libtool omits the period and puts the */ on a
74815         separate line.
74816         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
74817         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
74818
74819 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
74820
74821         * modules/argz: New file.
74822         * MODULES.html.sh (func_all_modules): Add argz.
74823
74824 2004-06-12  Jim Meyering  <jim@meyering.net>
74825         and  Paul Eggert  <eggert@cs.ucla.edu>
74826
74827         * modules/hash (Files): Add lib/xalloc.h.
74828         * modules/pipe (Depends-on): Add wait-process.
74829         * modules/stat (Depends-on): Add xalloc.
74830         * modules/userspec (Files): Add lib/userspec.h.
74831         * modules/xstrto
74832
74833         Upgrade from gettext-0.13.
74834         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
74835         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
74836         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
74837
74838 2004-06-10  Jim Meyering  <jim@meyering.net>
74839
74840         * lib/calloc.c: New file.
74841
74842 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
74843
74844         * lib/getdate.y (yylex): Allow space between sign and number.
74845         Problem reported by Dan Jacobson.
74846
74847 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
74848
74849         Merge from coreutils CVS.
74850
74851         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
74852         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
74853         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
74854         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
74855         xstrtol.m4: Fix copyright date and/or serial number.
74856
74857         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
74858         See if we need an fchown replacement.
74859         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
74860         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
74861         and use the replacement function if we detect either defect.
74862
74863         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
74864         gl_UTIMECMP.
74865
74866 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
74867         and  Jim Meyering  <jim@meyering.net>
74868
74869         Merge from coreutils CVS.
74870
74871         * lib/stat-macros.h: New file, with contents from file-type.h
74872         and coreutils' system.h.
74873         * lib/file-type.c: Include "stat-macros.h".
74874         * lib/file-type.h (file_type): Move all macro definitions to new file,
74875         stat-macros.h.
74876
74877         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
74878         Wrap old code with this conditional.
74879         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
74880         function that does not dereference symlinks.
74881         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
74882
74883         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
74884         dependency problems.
74885         (xreadlink): Accept new arg SIZE, for efficiency.
74886         All decls and uses changed.
74887         * lib/xreadlink.h: Include <stddef.h>, for size_t.
74888
74889         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
74890         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
74891
74892         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
74893         sysexits.h.
74894
74895 2004-06-01  Jim Meyering  <jim@meyering.net>
74896
74897         * m4/calloc.m4: New file.
74898
74899 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
74900
74901         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
74902         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
74903         Also, fix a typo in a diagnostic.
74904
74905 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
74906
74907         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
74908         or AC_FUNC_REALLOC.
74909
74910 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
74911
74912         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
74913         macros to be defined.
74914         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
74915         the allocator returns NULL because the requested size is zero.
74916
74917 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
74918
74919         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
74920         var.  Add comment explaining why libc still defines it.  This
74921         merges the following patch from glibc:
74922         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
74923
74924 2004-05-20  Andreas Schwab  <schwab@suse.de>
74925
74926         * m4/free.m4: Replace free if it not known to work, not the other
74927         way round.
74928
74929 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
74930
74931         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
74932         present in glibc since revision 1.1 of this file.
74933         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
74934         obstack_alignment_mask, obstack_alloc, obstack_base,
74935         obstack_blank, obstack_blank_fast, obstack_chunk_size,
74936         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
74937         obstack_grow0, obstack_init, obstack_int_grow,
74938         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
74939         obstack_next_free, obstack_object_size, obstack_ptr_grow,
74940         obstack_ptr_grow_fast, obstack_room): Remove declarations of
74941         nonexistent functions.
74942
74943 2004-05-18  Karl Berry  <karl@gnu.org>
74944
74945         * config/srclist.txt: break link for vasnprintf.c.
74946
74947 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
74948
74949         Port obstack to the AS/400, where pointers are 16 bytes wide and
74950         you cannot cast an integer to a valid pointer.  This patch is
74951         currently waiting to be integrated into glibc; see
74952         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
74953
74954         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
74955         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
74956         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
74957         (struct obstack): temp member is now a union of a pointer and
74958         an integer, instead of an integer.  All integer uses changed.
74959         This does not affect the physical layout of struct obstack,
74960         except on hosts (like the AS/400) where the size or alignment of
74961         void * is greater than that of ptrdiff_t.
74962         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
74963         __STDC__)]: Store temporary in pointer member of union, not
74964         integer member.
74965         * lib/obstack.c: Include <stddef.h>, for offsetof.
74966         (struct fooalign): Remove; it doesn't need a name.
74967         (union fooround): Change double to long double, and add void *.
74968         (DEFAULT_ALIGNMENT): Use offsetof to compute.
74969         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
74970         not a macro.  Hence the values are always int; so remove all
74971         casts-to-int in uses.
74972
74973 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
74974
74975         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
74976         we can get this patch merged into glibc.
74977
74978 2004-05-17  Derek R. Price  <derek@ximbiot.com>
74979             Paul Eggert  <eggert@cs.ucla.edu>
74980
74981         * m4/argp: Depend on alloca.
74982
74983 2004-05-17  Derek R. Price  <derek@ximbiot.com>
74984             Paul Eggert  <eggert@cs.ucla.edu>
74985
74986         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
74987         freecoding.
74988
74989 2004-05-17  Bruno Haible  <bruno@clisp.org>
74990
74991         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
74992         precision that consists of a '.' followed by an empty digit string.
74993         Patch by Tor Lillqvist <tml@iki.fi>.
74994
74995 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
74996
74997         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
74998         for backward compatibility with older code.  We need our own
74999         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
75000         it under some other name, and our alloca.h will define it.
75001
75002 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
75003             Derek Price  <derek@ximbiot.com>
75004
75005         * lib/alloca.c: Include <alloca.h>, to get our interface.
75006         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
75007         include <alloca.h> first.  Use C89 prototype for alloca; this
75008         requires including <stddef.h> for size_t.  Use extern "C" if C++.
75009         Use #elif for simplicity, since we can assume C89 now.
75010         Don't try to source the system alloca.h since it will not be found
75011         and to prevent recursively including its replacement.
75012         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
75013         * lib/regex.c: Likewise.
75014
75015 2004-05-16  Derek Price  <derek@ximbiot.com>
75016             Paul Eggert  <eggert@cs.ucla.edu>
75017
75018         getline cleanup.  This changes the getndelim2 API: both order of
75019         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
75020         no delimiter).
75021
75022         * lib/getline.c: Don't include stddef.h or stdio.h, since our
75023         interface does that.
75024         (getline): Always use getdelim, so that we don't have two
75025         copies of this code.
75026         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
75027         if available.
75028         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
75029         (GETNDELIM2_MAXIMUM): New macro.
75030         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
75031         instead of the old practice of delim2==0.  All callers changed.
75032         Return -1 on overflow, instead of returning junk.
75033         Do not set *linesize unless allocation succeeds.
75034         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
75035         that we include sys/types.h.
75036         * lib/getnline.h: Likewise.
75037         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
75038         (getndelim2): Reorder arguments.
75039         * lib/getnline.c (getnline, getndelim):
75040         Don't discard the NMAX argument.
75041         (getnline): Invoke getndelim, to avoid code duplication.
75042         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
75043         of (size_t) -1 by callers of the getnline family.
75044
75045 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
75046
75047         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
75048         Check for gettimeofday.
75049         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
75050         Check for settimeofday, stime.
75051
75052 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
75053
75054         * lib/nanosleep.c (suspended): Change its type from int to
75055         sig_atomic_t volatile.
75056         (first_call): Make it private to rpl_nanosleep, and have it
75057         be zero initially as that's a bit faster.
75058         (my_usleep): Round up fractional times instead of truncating them,
75059         as this is the usual meaning for 'sleep'.
75060
75061         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
75062         doesn't work.
75063         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
75064         (ENOSYS): Define if not defined.
75065         (settime): Fall back on stime if it exists and settimeofday fails.
75066         But don't bother with fallbacks if a method fails with errno == EPERM.
75067
75068 2004-05-11  Jim Meyering  <jim@meyering.net>
75069
75070         Prior to this change, the save_cwd caller required read access to the
75071         current directory on most systems (ones with the fchdir function).
75072
75073         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
75074         fails, try write-only, and finally, resort to using xgetcwd.
75075
75076 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
75077
75078         * lib/obstack.c, obstack.h: Import changes from libc.
75079
75080 2004-04-28  Bruno Haible  <bruno@clisp.org>
75081
75082         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
75083         also implicitly appends .exe to executables.
75084         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
75085         accepts Windows pathnames.
75086         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
75087         Treat Cygwin like Windows, since it now accepts Windows pathnames.
75088         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
75089         Treat Cygwin like Windows, since it now accepts Windows pathnames.
75090         Reported by Derek Robert Price <derek@ximbiot.com>.
75091
75092 2004-04-21  Karl Berry  <karl@gnu.org>
75093
75094         * config/srclist.txt (localcharset.c): break sync.
75095
75096 2004-04-20  Paul Eggert  <eggert@twinsun.com>
75097
75098         * m4/host-os.m4: Add a copyright notice.
75099
75100 2004-04-20  Jim Meyering  <jim@meyering.net>
75101
75102         Change UTILS_ to gl_ in AC_DEFINE'd names.
75103         Change utils_- and jm_-prefixed variables, too.
75104         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
75105         UTILS_FUNC_MKDIR_TRAILING_SLASH.
75106         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
75107
75108         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
75109         Don't emit trailing blanks.
75110         Also rename jm_-prefixed variables to have gl_ prefix.
75111
75112         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
75113         Also rename jm_-prefixed variables to have gl_ prefix.
75114
75115         * m4/jm-macros.m4: Reflect the renamings.
75116         * m4/prereq.m4: Likewise.
75117
75118 2004-04-20  Jim Meyering  <jim@meyering.net>
75119
75120         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
75121         memory.
75122
75123 2004-04-20  Jim Meyering  <jim@meyering.net>
75124             Bruno Haible  <bruno@clisp.org>
75125
75126         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
75127         memory when realloc fails.
75128
75129 2004-04-19  Jim Meyering  <jim@meyering.net>
75130
75131         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
75132         now that readutmp.c may call `free (0)'.
75133
75134 2004-04-19  Bruno Haible  <bruno@clisp.org>
75135
75136         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
75137         * m4/inttypes_h.m4: Likewise.
75138         * m4/stdint_h.m4: Likewise.
75139         * m4/intmax_t.m4: Likewise.
75140         * m4/uintmax_t.m4: Likewise.
75141
75142 2004-04-18  Jim Meyering  <jim@meyering.net>
75143
75144         * m4/prereq.m4: Don't forbid jm_ prefix.
75145
75146         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
75147         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
75148         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
75149         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
75150         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
75151         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
75152         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
75153         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
75154         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
75155         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
75156         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
75157         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
75158         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
75159         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
75160         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
75161         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
75162         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
75163         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
75164         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
75165
75166 2004-04-18  Jim Meyering  <jim@meyering.net>
75167
75168         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
75169         failure, don't leak memory and do call END_UTMP_ENT.
75170
75171 2004-04-16  Jim Meyering  <jim@meyering.net>
75172
75173         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
75174         coreutils' stat program.
75175         (gl_PREREQ): Don't require jm_PREREQ_STAT.
75176
75177 2004-04-11  Paul Eggert  <eggert@twinsun.com>
75178
75179         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
75180         C89.
75181         (CHAR_BIT): Remove, since we assume C89.
75182         Include <stdint.h> if available, as per current Autoconf CVS advice.
75183
75184 2004-03-31  Jim Meyering  <jim@meyering.net>
75185
75186         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
75187         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
75188         * m4/xalloc.m4: Likewise.
75189
75190 2004-03-30  Paul Eggert  <eggert@twinsun.com>
75191
75192         Merge from coreutils.
75193
75194         * m4/inttostr.m4: New file.
75195         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
75196         Require AM_STDBOOL_H and gl_TIMESPEC instead.
75197         Require gl_CLOCK_TIME.
75198         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
75199
75200 2004-03-30  Paul Eggert  <eggert@twinsun.com>
75201
75202         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
75203         not bool, to be more consistent with Unix conventions.
75204         Suggested by Bruno Haible.
75205
75206         Merge from coreutils.
75207
75208         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
75209         * lib/umaxtostr.c: New files.
75210
75211         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
75212         the usual <time.h> dance.
75213         (get_date): Change signature to support fractional time stamps.
75214         All callers changed.
75215         * lib/getdate.y: Include "getdate.h" first, as we can now
75216         assume C89 and don't need to worry about 'const'.
75217         Similarly, include "unlocked-io.h" near start, not in middle.
75218         Include <limits.h>.
75219         (textint.value): Use long int rather than int.
75220         (textint.digits): Use size_t rather than int.
75221         (BILLION, LOG10_BILLION): New constants.
75222         (parser_control): New member rel_ns.  Members day_ordinal,
75223         time_zone, month, day, hour, minutes, rel_year, rel_month,
75224         rel_day, rel_hour, rel_minutes, rel_seconds
75225         are now long int, not int.  Member seconds is now struct timespec,
75226         not int.  New member timespec_seen.  Members dates_seen, days_seen,
75227         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
75228         not int.
75229         (%union.intval): Now long int, not int.
75230         New member timespec.
75231         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
75232         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
75233         (spec): Now is a timespec or an item list.
75234         (timespec, items): New nonterminals.
75235         (time, rel, relunit, number, get_date):
75236         Add support for fractional seconds.
75237         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
75238         (gmtime, localtime, mktime): Remove decls; not needed with C89.
75239         (to_hour): First arg is now long int, not int.
75240         (to_year): Returns long int, not int.
75241         Don't treat year -70 like 70.
75242         (tm_diff): Returns long int, not int.
75243         (lookup_word): Use bool instead of int when appropriate.
75244         (yylex): Use size_t for count, not int.
75245         Detect overflow when parsing large integer constants.
75246         Add support for fractions.
75247         (get_date): Make pointers 'const' if possible.
75248         Use more-portable code to detect integer overflow.
75249         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
75250         Don't use ctime; it's not reliable if the year has >4 digits.
75251
75252         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
75253         This is for compatibility with BSD.
75254
75255         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
75256         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
75257         From coreutils' system.h.
75258
75259         * lib/userspec.c: Don't include "posixver.h".
75260         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
75261         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
75262         compatible extension.  Simplify code by removing a boolean int
75263         that was always nonzero if a string was nonnull.
75264
75265 2004-03-30  Jim Meyering  <jim@meyering.net>
75266
75267         Merge from coreutils.
75268
75269         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
75270         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
75271         on some systems one must include <grp.h> before it.
75272         Reported by Christian Krackowizer.
75273
75274 2004-03-30  Jim Meyering  <jim@meyering.net>
75275
75276         Merge from coreutils.
75277
75278         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
75279
75280         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
75281         an empty input stream.
75282
75283         * lib/readtokens.c: Include <stdbool.h>.
75284         (readtoken): Use `size_t' rather than int/long.
75285         All callers adjusted.
75286         Use `bool' rather than `int' where appropriate.
75287         Use memset rather than an explicit loop.
75288         Use x2nrealloc rather than xrealloc.
75289         Allow the use of `\0' as a delimiter.
75290         (readtokens): Likewise.
75291         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
75292
75293 2004-03-30  Jim Meyering  <jim@meyering.net>
75294
75295         * m4/realloc.m4: Remove file, since now it does no more than
75296         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
75297         the `configure.ac' section of module/realloc.
75298         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
75299
75300 2004-03-30  Bruno Haible  <bruno@clisp.org>
75301
75302         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
75303         nonnull.
75304
75305 2004-03-29  Paul Eggert  <eggert@twinsun.com>
75306
75307         Merge changes to getloadavg.c from coreutils and Emacs.
75308
75309         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
75310         Define to an expression, not to the empty string.
75311         Include cloexec.h and xalloc.h.
75312         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
75313         Use set_cloexec_flag rather than rolling our own.
75314         * lib/cloexec.c, lib/cloexec.h: New files.
75315
75316 2004-03-29  Paul Eggert  <eggert@twinsun.com>
75317
75318         * m4/cloexec.m4: New file.
75319
75320 2004-03-18  Paul Eggert  <eggert@twinsun.com>
75321
75322         * lib/getopt.h: Sync with libc CVS.
75323
75324 2004-03-18  Paul Eggert  <eggert@twinsun.com>
75325             Bruno Haible  <bruno@clisp.org>
75326
75327         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
75328         mbswidth.
75329
75330 2004-03-18  Paul Eggert  <eggert@twinsun.com>
75331             Bruno Haible  <bruno@clisp.org>
75332
75333         * lib/mbswidth.h: Include <wchar.h> only if
75334         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
75335         <wchar.h>.
75336         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
75337
75338 2004-03-09  Paul Eggert  <eggert@twinsun.com>
75339
75340         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
75341         Sync with libc CVS.
75342         * lib/getopt_int.h: New file, also synced from libc.
75343
75344 2004-03-09  Paul Eggert  <eggert@twinsun.com>
75345
75346         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
75347         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
75348         Bring back getopt.c, getopt.h, getopt1.c.
75349
75350 2004-03-07  Paul Eggert  <eggert@twinsun.com>
75351
75352         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
75353         All uses changed.  Check for sa_sigaction member; this fixes
75354         a bug first reported by Jason Andrade in
75355         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
75356
75357 2004-03-07  Paul Eggert  <eggert@twinsun.com>
75358
75359         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
75360         '#if' expressions.  Unlike the code it replaces, it does not
75361         depend on (defined _SC_PAGESIZE).  However, it does depend on
75362         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
75363         first reported by Jason Andrade in
75364         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
75365
75366 2004-02-25  Simon Josefsson  <jas@extundo.com>
75367
75368         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
75369
75370 2004-02-25  Simon Josefsson  <jas@extundo.com>
75371
75372         * lib/strdup.h: New file.
75373         * lib/strdup.c: Include it.
75374         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
75375         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
75376
75377 2004-02-23  Karl Berry  <karl@gnu.org>
75378
75379         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
75380         (from fencepost.gnu.org:/gd/gnuorg).
75381
75382 2004-02-23  Karl Berry  <karl@gnu.org>
75383
75384         * config/srclistvars.sh (GNUORG) [karl]: redefine.
75385         * config/srclist.txt: add maintain/standards documents.
75386
75387 2004-02-18  Bruno Haible  <bruno@clisp.org>
75388
75389         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
75390         Reported by Derek Robert Price <derek@ximbiot.com>.
75391
75392 2004-02-16  Karl Berry  <karl@gnu.org>
75393
75394         * config/mkinstalldirs, install-sh: update from automake.
75395
75396 2004-02-06  Karl Berry  <karl@gnu.org>
75397
75398         * m4/po.m4: update from gettext 0.14.1.
75399
75400 2004-02-06  Karl Berry  <karl@gnu.org>
75401
75402         * lib/config.charset: update from gettext 0.14.1.
75403
75404 2004-02-05  Paul Eggert  <eggert@twinsun.com>
75405
75406         Add comments and code, prompted by suggestions from Bruno Haible
75407         for sh-quote.
75408         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
75409         describing the enum quoting_style values.
75410         * lib/quotearg.c (quotearg_alloc): New function.
75411         (quotearg_buffer_restyled): Treat lone { and } as special.
75412         Treat = as special.  Work around bug with older shells
75413         that "see" a '\' that is really the 2nd byte of a multibyte char.
75414         Quote empty string with shell_quoting_style.
75415
75416 2004-02-03  Bruno Haible  <bruno@clisp.org>
75417
75418         * m4/pipe.m4: New file, from GNU gettext.
75419
75420 2004-02-03  Bruno Haible  <bruno@clisp.org>
75421
75422         * lib/pipe.h: New file, from GNU gettext.
75423         * lib/pipe.c: New file, from GNU gettext.
75424
75425 2004-01-27  Bruno Haible  <bruno@clisp.org>
75426
75427         * m4/execute.m4: New file, from GNU gettext.
75428
75429 2004-01-27  Bruno Haible  <bruno@clisp.org>
75430
75431         * lib/execute.h: New file, from GNU gettext.
75432         * lib/execute.c: New file, from GNU gettext.
75433         * lib/w32spawn.h: New file, from GNU gettext.
75434
75435 2004-01-24  Paul Eggert  <eggert@twinsun.com>
75436
75437         Merge from diffutils.
75438
75439         * lib/file-type.c (file_type): Add typed memory objects.
75440         * lib/file-type.h (S_TYPEISTMO): New macro.
75441
75442         * lib/c-stack.h (c_stack_action): Remove argv argument.
75443         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
75444         (die): Don't calculate message unless segv_action returns.
75445         (get_stack_location, min_address_from_argv, max_address_from_argv,
75446         volatile stack_base, volatile_stack_size): Remove.
75447         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
75448         that every segmentation violation is a stack overflow.  (Ouch!)
75449         See Debian bug 136249 (still outstanding) for more info about why
75450         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
75451
75452 2004-01-24  Paul Eggert  <eggert@twinsun.com>
75453
75454         Exit-status fix from coreutils.
75455
75456         Use exit_failure consistently in place of EXIT_FAILURE,
75457         so that program exit statuses are consistent on failure.
75458
75459         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
75460         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
75461         * lib/argmatch.h: Comment fix to match the above.
75462         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
75463         Now a macro referring to exit_failure, instead of a separate
75464         variable.  Include "exitfail.h" to get it.
75465         * lib/xstrtol.h: Include "exitfail.h".
75466         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
75467
75468         * lib/long-options.c (parse_long_options): Use prototype
75469         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
75470         for clarity.
75471
75472 2004-01-21  Jim Meyering  <jim@meyering.net>
75473
75474         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
75475         so as not to conflict with a different-sized __mktime_internal
75476         function in GNU libc.
75477         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
75478         Problem building statically-linked `ls' reported by Michael Brunnbauer.
75479
75480 2004-01-20  Karl Berry  <karl@gnu.org>
75481
75482         * config/config.guess: update from config.
75483
75484         * config/srclistvars.sh: GNUWWWLICENSES for karl.
75485
75486 2004-01-20  Bruno Haible  <bruno@clisp.org>
75487
75488         Safer stack allocation.
75489         * lib/setenv.c: Include allocsa.h.
75490         (alloca): Remove fallback definition.
75491         (freea): Remove macro.
75492         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
75493         instead of freea.
75494
75495 2004-01-20  Bruno Haible  <bruno@clisp.org>
75496
75497         * m4/eealloc.m4: New file, from GNU gettext.
75498
75499 2004-01-20  Bruno Haible  <bruno@clisp.org>
75500
75501         * m4/allocsa.m4: New file, from GNU gettext.
75502
75503 2004-01-20  Bruno Haible  <bruno@clisp.org>
75504
75505         * lib/xallocsa.h: New file, from GNU gettext.
75506         * lib/xallocsa.c: New file, from GNU gettext.
75507
75508 2004-01-20  Bruno Haible  <bruno@clisp.org>
75509
75510         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
75511
75512 2004-01-20  Bruno Haible  <bruno@clisp.org>
75513
75514         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
75515         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
75516         specially.
75517
75518 2004-01-20  Bruno Haible  <bruno@clisp.org>
75519
75520         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
75521         patch.
75522
75523 2004-01-20  Bruno Haible  <bruno@clisp.org>
75524
75525         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
75526
75527 2004-01-20  Bruno Haible  <bruno@clisp.org>
75528
75529         * lib/eealloc.h: New file.
75530
75531 2004-01-20  Bruno Haible  <bruno@clisp.org>
75532
75533         * lib/binary-io.h: Avoid warnings on Cygwin.
75534
75535 2004-01-20  Bruno Haible  <bruno@clisp.org>
75536
75537         * lib/allocsa.h: New file, from GNU gettext.
75538         * lib/allocsa.c: New file, from GNU gettext.
75539
75540 2004-01-18  Karl Berry  <karl@gnu.org>
75541
75542         * doc/gpl.texi, doc/lgpl.texi: new files.
75543
75544 2004-01-18  Karl Berry  <karl@gnu.org>
75545
75546         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
75547         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
75548
75549 2004-01-15  Paul Eggert  <eggert@twinsun.com>
75550
75551         Merge from coreutils.
75552
75553         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
75554         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
75555         (gl_DEFAULT_POSIX2_VERSION): Move
75556         the documentation from 'configure' into 'config.hin',
75557         so that 'configure --help' isn't burdened by it and
75558         we don't have to worry about its formatting there.
75559         Reword the documentation so that it's more succinct
75560         and can be run together into a single paragraph.
75561         * m4/same.m4 (gl_SAME): Check for pathconf.
75562
75563 2004-01-15  Paul Eggert  <eggert@twinsun.com>
75564
75565         Merge from coreutils.
75566
75567         * lib/posixver.c: Include posixver.h.
75568
75569         * lib/same.c: Include <stdbool.h>, <limits.h>.
75570         (_POSIX_NAME_MAX): Define if not defined.
75571         (MIN): New macro.
75572         (same_name): If file names are silently truncated, report
75573         that the file names are the same if they are the same after
75574         the silent truncation.
75575
75576         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
75577         conversion function.
75578         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
75579         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
75580         longer needed.
75581
75582 2004-01-15  Jim Meyering  <jim@meyering.net>
75583
75584         Merge from coreutils.
75585
75586         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
75587         if no library is required.
75588         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
75589         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
75590         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
75591         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
75592         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
75593         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
75594         value, $ac_cv_search_crypt, if it's "none required".
75595         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
75596         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
75597         not gl_FUNC_GETLOADAVG.
75598         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
75599         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
75600
75601 2004-01-15  Jim Meyering  <jim@meyering.net>
75602
75603         Merge from coreutils.
75604
75605         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
75606         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
75607         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
75608
75609         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
75610         optional configure-time default.
75611
75612         * lib/version-etc.c (version_etc_copyright): Update copyright date.
75613
75614         * lib/xreadlink.c (xreadlink): Correct outdated comment.
75615
75616 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
75617
75618         Merge from coreutils.
75619
75620         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
75621         value, $ac_cv_search_nanosleep, if it's "none required".
75622
75623 2004-01-14  Paul Eggert  <eggert@twinsun.com>
75624
75625         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
75626         with like-named macro in fnmatch.c.
75627         (EXT): Use an internal constant instead.
75628
75629         Merge fnmatch patches from glibc.
75630         * lib/fnmatch.c (mbsinit): Remove define.
75631         Add libc_hidden_ver (__fnmatch, fnmatch).
75632         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
75633         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
75634
75635 2004-01-14  Karl Berry  <karl@gnu.org>
75636
75637         * config/install-sh: update from automake.
75638
75639 2004-01-13  Karl Berry  <karl@gnu.org>
75640
75641         * config/install-sh: update from automake.
75642
75643 2004-01-09  Karl Berry  <karl@gnu.org>
75644
75645         * config/install-sh: update from automake.
75646
75647 2004-01-05  Karl Berry  <karl@gnu.org>
75648
75649         * config/config.{sub,guess}: update from config.
75650
75651 2003-12-31  Karl Berry  <karl@gnu.org>
75652
75653         * config/depcomp: update from automake.
75654
75655 2003-12-14  Karl Berry  <karl@gnu.org>
75656
75657         * lib/config.charset: update from gettext-runtime.
75658
75659 2003-12-03  Paul Eggert  <eggert@twinsun.com>
75660
75661         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
75662         Bug reported by Alfred M. Szmidt.
75663
75664 2003-12-03  Bruno Haible  <bruno@clisp.org>
75665
75666         * m4/gettext.m4: Upgrade from gettext-0.13.
75667         * m4/po.m4: Upgrade from gettext-0.13.
75668         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
75669         * m4/intmax.m4: New file, from gettext-0.13.
75670         * m4/printf-posix.m4: New file, from gettext-0.13.
75671
75672 2003-11-29  Karl Berry  <karl@gnu.org>
75673
75674         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
75675
75676 2003-11-25  Paul Eggert  <eggert@twinsun.com>
75677             Bruno Haible  <bruno@clisp.org>
75678
75679         * lib/printf-parse.h: Don't include sys/types.h.
75680         (ARG_NONE): New macro.
75681         (char_directive): Change type of *arg_index fields to size_t.
75682         * lib/printf-parse.c: Don't include sys/types.h.
75683         (SSIZE_MAX): Remove macro.
75684         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
75685         Remove unnecessary overflow check.
75686         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
75687         fields.
75688
75689 2003-11-25  Bruno Haible  <bruno@clisp.org>
75690
75691         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
75692
75693 2003-11-25  Bruno Haible  <bruno@clisp.org>
75694
75695         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
75696         gt_TYPE_SSIZE_T.
75697
75698 2003-11-24  Paul Eggert  <eggert@twinsun.com>
75699
75700         * modules/alloca: Remove dependency on xalloc.
75701
75702 2003-11-24  Paul Eggert  <eggert@twinsun.com>
75703
75704         * lib/alloca.c: Remove dependency on xalloc module.
75705         (xalloc_die): Remove.
75706         (memory_full) [!defined emacs]: New macro.
75707         [!defined emacs]: Don't include xalloc.h.
75708         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
75709         address arithmetic overflows.  Change datatypes a bit to avoid
75710         unnecessary casts.
75711
75712 2003-11-22  Jim Meyering  <jim@meyering.net>
75713
75714         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
75715         s/size/size_t/.
75716
75717 2003-11-21  Karl Berry  <karl@gnu.org>
75718
75719         * config/config.{sub,guess}: update from config.
75720
75721 2003-11-18  Karl Berry  <karl@gnu.org>
75722
75723         * config/config.{sub,guess}: update from config.
75724
75725         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
75726
75727 2003-11-17  Paul Eggert  <eggert@twinsun.com>
75728
75729         * README: Mention that S+T cannot overflow if S is the size of
75730         an existing object and T is sufficiently small.
75731
75732 2003-11-17  Jim Meyering  <jim@meyering.net>
75733
75734         On systems without utime and without a utimes function capable of
75735         dealing with a NULL struct utimbuf* argument, this utime replacement
75736         could -- in unusual circumstances -- leak a file descriptor.
75737         * lib/utime.c: Include <unistd.h> and <errno.h>.
75738         (utime_null): Be sure to close `fd' and to preserve errno.
75739         Reported by Geoff Collyer via Arnold Robbins.
75740
75741 2003-11-17  Bruno Haible  <bruno@clisp.org>
75742
75743         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
75744         (Depends-on): Add xsize.
75745
75746 2003-11-17  Bruno Haible  <bruno@clisp.org>
75747
75748         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
75749
75750 2003-11-17  Bruno Haible  <bruno@clisp.org>
75751
75752         * lib/vasnprintf.c (alloca): Remove fallback definition.
75753         (freea): Remove definition.
75754         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
75755         Reported by Paul Eggert.
75756
75757 2003-11-16  Paul Eggert  <eggert@twinsun.com>
75758             Bruno Haible  <bruno@clisp.org>
75759
75760         Protect against address arithmetic overflow.
75761         * lib/printf-args.h: Include stddef.h.
75762         (arguments): Change type of field 'count' to size_t.
75763         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
75764         'unsigned int' where appropriate.
75765         * lib/printf-parse.h: Include sys/types.h.
75766         (char_directive): Change type of *arg_index fields to ssize_t.
75767         (char_directives): Change type of fields 'count', max_*_length to
75768         size_t.
75769         * lib/printf-parse.c: Include sys/types.h and xsize.h.
75770         (SSIZE_MAX): Define fallback value.
75771         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
75772         instead of 'int' where appropriate. Check a_allocated, d_allocated
75773         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
75774         * lib/vasnprintf.c: Include xsize.h.
75775         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
75776         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
75777         overflow. Avoid wraparound when converting a width or precision from
75778         decimal to binary.
75779
75780 2003-11-16  Bruno Haible  <bruno@clisp.org>
75781
75782         Update from GNU gettext.
75783         * lib/printf-parse.c: Generalize to it can be compiled for wide
75784         strings.
75785         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
75786         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
75787         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
75788         SNPRINTF): New macros.
75789         Don't include <alloca.h> if the file is used inside libintl.
75790         (local_wcslen): New function, for Solaris 2.5.1.
75791         (VASNPRINTF): Use it instead of wcslen.
75792
75793 2003-11-16  Bruno Haible  <bruno@clisp.org>
75794
75795         * lib/xsize.h (xmax): New function.
75796         (xsum, xsum3, xsum4): Declare as "pure" functions.
75797
75798 2003-11-12  Paul Eggert  <eggert@twinsun.com>
75799
75800         * modules/xalloc (Files): Undo latest change, since xalloc.h
75801         no longer needs SIZE_MAX or PTRDIFF_MAX.
75802
75803 2003-11-12  Paul Eggert  <eggert@twinsun.com>
75804
75805         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
75806         gl_PTRDIFF_MAX.
75807
75808 2003-11-12  Paul Eggert  <eggert@twinsun.com>
75809
75810         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
75811         "return", to pacify some unknown compiler.  Problem reported
75812         by Joerg Schilling.
75813
75814 2003-11-12  Paul Eggert  <eggert@twinsun.com>
75815
75816         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
75817         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
75818         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
75819         heuristic is just as accurate as far as we know, and it removes a
75820         dependency on size_max.m4 and ptrdiff_max.m4.
75821
75822 2003-11-11  Bruno Haible  <bruno@clisp.org>
75823
75824         * modules/xsize (Files): Add m4/size_max.m4.
75825         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
75826
75827 2003-11-11  Bruno Haible  <bruno@clisp.org>
75828
75829         * m4/size_max.m4: New file.
75830         * m4/ptrdiff_max.m4: New file.
75831         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
75832         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
75833         (gl_XALLOC): Invoke it.
75834
75835 2003-11-11  Bruno Haible  <bruno@clisp.org>
75836
75837         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
75838         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
75839         defined.
75840
75841 2003-11-10  Paul Eggert  <eggert@twinsun.com>
75842
75843         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
75844         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
75845         rejected some allocations of exactly SIZE_MAX - 2 bytes.
75846         From Bruno Haible.
75847         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
75848         not (size_t) -1, since it's defined here.
75849
75850 2003-11-09  Karl Berry  <karl@gnu.org>
75851
75852         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
75853
75854 2003-11-06  Paul Eggert  <eggert@twinsun.com>
75855
75856         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
75857         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
75858         Reject sizes of exactly SIZE_MAX bytes.
75859         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
75860         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
75861
75862 2003-11-05  Bruno Haible  <bruno@clisp.org>
75863
75864         * lib/xsize.h: Include limits.h, to avoid a possible collision with
75865         SIZE_MAX defined in <limits.h> on Solaris.
75866
75867 2003-11-04  Jim Meyering  <jim@meyering.net>
75868
75869         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
75870         variable names, rather than @VAR@.
75871         * modules/poll: Likewise.
75872
75873 2003-11-04  Bruno Haible  <bruno@clisp.org>
75874
75875         * modules/xsize: New file.
75876         * modules/linebreak: Depend on xsize.
75877         * MODULES.html.sh (func_all_modules): Add xsize.
75878
75879 2003-11-04  Bruno Haible  <bruno@clisp.org>
75880
75881         * m4/xsize.m4: New file.
75882
75883 2003-11-04  Bruno Haible  <bruno@clisp.org>
75884
75885         * lib/xsize.h: New file.
75886         * lib/linebreak.c: Include xsize.h.
75887         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
75888         argument for overflow.
75889         Suggested by Paul Eggert.
75890
75891 2003-11-03  Karl Berry  <karl@gnu.org>
75892
75893         * config/config.{guess,sub}: update from config.
75894
75895 2003-11-03  Jim Meyering  <jim@meyering.net>
75896
75897         * modules/userspec (lib_SOURCES): Add userspec.h.
75898         (Include): Add "userspec.h".
75899         Improve description.
75900
75901 2003-11-03  Jim Meyering  <jim@meyering.net>
75902
75903         * lib/userspec.c: Include "userspec.h".
75904         * lib/userspec.h: New file.
75905
75906 2003-11-03  Bruno Haible  <bruno@clisp.org>
75907
75908         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
75909
75910 2003-11-03  Bruno Haible  <bruno@clisp.org>
75911
75912         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
75913         available, to avoid (extremely rare) race condition.
75914         Suggested by Paul Eggert.
75915
75916 2003-11-02  Karl Berry  <karl@gnu.org>
75917
75918         * config/srclist.txt (vasprintf.c): sync broken, sigh.
75919
75920 2003-10-31  Paul Eggert  <eggert@twinsun.com>
75921
75922         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
75923         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
75924         (read_filesystem_list): Set and use me_type_malloced.
75925         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
75926         whatever the type happens to be), for brevity and consistency.
75927         Check for size calculation overflow on Alphas running OSF/1.
75928
75929 2003-10-31  Jim Meyering  <jim@meyering.net>
75930
75931         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
75932
75933         * lib/linebuffer.c: Include <string.h> for declaration of memset.
75934
75935 2003-10-30  Paul Eggert  <eggert@twinsun.com>
75936             Bruno Haible  <bruno@clisp.org>
75937
75938         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
75939         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
75940
75941 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
75942
75943         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
75944         netbsd*-gnu*.  Suggested by Robert Millan.
75945
75946 2003-10-29  Paul Eggert  <eggert@twinsun.com>
75947
75948         * modules/group-member: Depend on stdbool.
75949
75950 2003-10-29  Paul Eggert  <eggert@twinsun.com>
75951
75952         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
75953
75954 2003-10-29  Paul Eggert  <eggert@twinsun.com>
75955
75956         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
75957         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
75958         after the 'gnu' in these cases.  This fixes some bugs in the
75959         previous change, and is based on suggestions by Robert Millan.
75960
75961 2003-10-29  Paul Eggert  <eggert@twinsun.com>
75962
75963         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
75964         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
75965         no longer needed.
75966         * lib/quotearg.c (quotearg_n_options): Use it.
75967         * lib/group-member.c: Include <stdbool.h>.
75968         (free_group_info): Arg is now const *; don't free arg.
75969         (get_group_info): Now returns bool and accepts struct group_info *,
75970         rather than returning a malloc'ed struct group_info *.
75971         All uses changed.  Check for overflow in internal size calculation.
75972
75973         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
75974         rather than xmalloc/xrealloc.
75975         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
75976         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
75977         conformance bug: the old code used a pointer after freeing the
75978         storage that it addressed.
75979         * lib/hash.c (hash_initialize): Simplify the code by using
75980         xalloc_oversized rather than doing it by hand.
75981         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
75982         the buffer preserved.  Use free and xmalloc instead.
75983         * lib/quotearg.c (quotearg_n_options): Likewise.
75984         Use a simpler test for size overflow.  Don't use xalloc_oversized
75985         because unsigned int might be wider than size_t (!); this suggests
75986         that we should switch from unsigned int to size_t for slot numbers.
75987
75988 2003-10-28  Paul Eggert  <eggert@twinsun.com>
75989
75990         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
75991         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
75992         NetBSD kernels.  Requested by Richard Stallman.
75993
75994 2003-10-27  Paul Eggert  <eggert@twinsun.com>
75995
75996         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
75997         to allocate the returned structure.  Do not allocate a subarray,
75998         as x2nrealloc will do that.
75999         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
76000         instead of xnrealloc.
76001         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
76002
76003 2003-10-27  Bruno Haible  <bruno@clisp.org>
76004
76005         * lib/stdbool_.h: Better support for BeOS.
76006
76007 2003-10-26  Paul Eggert  <eggert@twinsun.com>
76008
76009         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
76010         now uses inline.
76011
76012 2003-10-26  Paul Eggert  <eggert@twinsun.com>
76013
76014         * lib/xalloc.h (xalloc_oversized): New static inline function, for
76015         callers that want to do their own size-overflow checking.  Include
76016         <stdbool.h>, since xalloc_oversized returns bool.
76017         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
76018         to use xalloc_oversized.
76019
76020         Add two functions x2realloc, x2nrealloc, for programs that grow
76021         arrays dynamically by doubling their sizes.
76022         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
76023         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
76024         New functions.
76025
76026         Port to C99 semantics for 'inline' of external functions.
76027         Bug reported by Bruno Haible.
76028         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
76029         with the old contents of xnmalloc.
76030         (xnmalloc, xmalloc): Use it.
76031         (xnrealloc_inline): New static inline function,
76032         with the old contents of xnrealloc.
76033         (xnrealloc, xrealloc): Use it.
76034
76035         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
76036         that.
76037
76038 2003-10-26  Karl Berry  <karl@gnu.org>
76039
76040         * config/srclist.txt (COPYING.DOC): no longer available from
76041         /gd/gnuorg; don't know where the ultimate source is.
76042
76043 2003-10-25  Paul Eggert  <eggert@twinsun.com>
76044
76045         Fix several address-calculation bugs in the hash modules,
76046         plus some minor code cleanup.
76047
76048         * lib/hash.h: Include <stdbool.h>, for bool.
76049         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
76050         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
76051         hash_get_n_entries, hash_get_max_bucket_length,
76052         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
76053         hash_rehash): Use size_t rather than unsigned.
76054         * lib/hash.c (struct hash_table, hash_get_n_buckets,
76055         hash_get_n_buckets_used, hash_get_n_entries,
76056         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
76057         hash_get_entries, hash_do_for_each, hash_string, is_prime,
76058         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
76059         Likewise.
76060         (SIZE_MAX): Define if not defined.
76061         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
76062         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
76063         hash_print):
76064         Use const * when possible.
76065         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
76066         (check_tuning): Fix bug: if tuning parameters were very close to
76067         0 or 1, rounding errors could have caused subscript violations.
76068         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
76069         (hash_initialize): Add 'fail:' label
76070         to free table and return NULL, and use it to simplify code.
76071         Use calloc rather than clearing the storage ourself.
76072         (hash_initialize, hash_rehash): Check for arithmetic overflow in
76073         buffer size calculations.
76074         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
76075         Include <stddef.h>, for size_t.
76076         * lib/hash-pjw.c (hash_pjw): Likewise.
76077         Switch to method described by Bruno Haible.
76078         Include <limits.h>, for CHAR_BIT.
76079         (SIZE_BITS): New macro.
76080
76081 2003-10-23  Paul Eggert  <eggert@twinsun.com>
76082
76083         * m4/getline.m4 (AM_FUNC_GETLINE):
76084         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
76085         hosts.  Problem reported by Derek Robert Price in
76086         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
76087         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
76088         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
76089
76090 2003-10-21  Paul Eggert  <eggert@twinsun.com>
76091
76092         * lib/getndelim2.c (getndelim2): When size calculation overflows,
76093         ceiling the allocation at NMAX bytes rather than silently
76094         discarding input bytes before NMAX is reached.  This makes
76095         a difference only if NMAX exceeds SIZE_MAX / 2.
76096
76097         * lib/obstack.c: Merge from glibc.
76098         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
76099         Add libc_hidden_def (_obstack_newchunk).
76100         (_obstack_free) [! defined _LIBC]: Remove.
76101         [defined _LIBC]: Make a strong alias from obstack_free, rather than
76102         a clone of the function body.
76103         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
76104         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
76105
76106         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
76107         glibc.
76108         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
76109         arg to memcpy.
76110
76111         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
76112         (obstack_ptr_grow_fast, obstack_int_grow_fast):
76113         Don't use lvalue casts, as GCC plans to remove support for them
76114         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
76115         was also present in the non-GCC version, indicating that this
76116         code had always been buggy and had never been widely used.
76117         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
76118         Use the fast variant of each macro, rather than copying the
76119         definiens of the fast variant; that way, we'll be more likely to
76120         catch future bugs in the fast variants.
76121
76122 2003-10-20  Bruno Haible  <bruno@clisp.org>
76123
76124         * modules/wait-process: New file.
76125         * MODULES.html.sh (func_all_modules): Add wait-process.
76126
76127 2003-10-20  Bruno Haible  <bruno@clisp.org>
76128
76129         * m4/wait-process.m4: New file.
76130
76131 2003-10-20  Bruno Haible  <bruno@clisp.org>
76132
76133         * lib/wait-process.h: New file, from GNU gettext.
76134         * lib/wait-process.c: New file, from GNU gettext.
76135
76136 2003-10-19  Jim Meyering  <jim@meyering.net>
76137
76138         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
76139         HPUX 10.20.
76140
76141 2003-10-18  Karl Berry  <karl@gnu.org>
76142
76143         * config/config.guess: update from config.
76144
76145 2003-10-16  Paul Eggert  <eggert@twinsun.com>
76146
76147         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
76148         (getgroups): First arg is int, not size_t.
76149         Don't let 'free' mangle errno.
76150
76151 2003-10-16  Paul Eggert  <eggert@twinsun.com>
76152
76153         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
76154
76155 2003-10-16  Karl Berry  <karl@gnu.org>
76156
76157         * config/config.{guess,sub}: update from config.
76158
76159 2003-10-16  Jim Meyering  <jim@meyering.net>
76160
76161         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
76162         memcpy.
76163
76164 2003-10-15  Paul Eggert  <eggert@twinsun.com>
76165
76166         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
76167         (SIZE_MAX): Remove.
76168         (new_exclude, add_exclude_file): Initial size no longer needs to
76169         be a power of 2.
76170         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
76171         our own address arithmetic overflow checking.
76172
76173         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
76174         (fnmatch): Do not alloca more than 2000 wide characters;
76175         instead, use malloc for large buffers.
76176         Check for address arithmetic overflow, and return -1
76177         with errno set to ENOMEM in that case.
76178         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
76179         (NEW_PATTERN): Do not alloca more than 8000 bytes;
76180         instead, return -1.  Check for address arithmetic overflow.
76181
76182 2003-10-14  Paul Eggert  <eggert@twinsun.com>
76183
76184         Handle invalid suffixes and overflow independently, so that
76185         callers can treat them independently as needed.  Fix some bugs in
76186         suffix handling, e.g., "100k@" was not diagnosed as an invalid
76187         suffix for a human-readable blocksize.  The major caller-visible
76188         change is the addition of a new
76189         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
76190         that both overflow and suffix chars were found.
76191
76192         * lib/human.c (humblock): Don't check separately for invalid suffix
76193         char; that is xstrtoumax's job (now that its bug is fixed).
76194         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
76195         INTMAX_MAX]: New macros.
76196         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
76197         TYPE_MAXIMUM): New macros.
76198         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
76199         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
76200         if overflow occurs, as it's what __strtol does and it's more useful
76201         in practice.
76202         (__xstrtol): If __strtol reports some error other than ERANGE,
76203         reflect it to the caller as LONGINT_INVALID.  If it reports
76204         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
76205         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
76206         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
76207         value.
76208         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
76209         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
76210         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
76211         [defined UINTMAX_MAX]: New macros.
76212
76213 2003-10-14  Bruno Haible  <bruno@clisp.org>
76214
76215         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
76216
76217 2003-10-14  Bruno Haible  <bruno@clisp.org>
76218
76219         * m4/sig_atomic_t: New file, from GNU gettext.
76220         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
76221
76222 2003-10-14  Bruno Haible  <bruno@clisp.org>
76223
76224         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
76225         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
76226         Also use volatile where needed.
76227
76228 2003-10-12  Paul Eggert  <eggert@twinsun.com>
76229
76230         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
76231         Change maintainer from Bruno Haible to 'all'.
76232
76233 2003-10-12  Paul Eggert  <eggert@twinsun.com>
76234
76235         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
76236
76237 2003-10-12  Paul Eggert  <eggert@twinsun.com>
76238
76239         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
76240         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
76241         and define in terms of the other primitives.
76242         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
76243         (SIZE_MAX): Define if not already defined.
76244         (array_size_overflow): New function.
76245         (xalloc_die): Abort instead of exiting if 'error' returns.
76246         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
76247         (xmalloc, xrealloc): Use them.
76248         (xcalloc): Check for address arithmetic overflow.
76249         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
76250         a bit faster than strcpy.
76251
76252 2003-10-10  Simon Josefsson  <jas@extundo.com>
76253
76254         * modules/argp (Depends-on): Add restrict and strcase.
76255
76256 2003-10-10  Simon Josefsson  <jas@extundo.com>
76257
76258         * m4/argp.m4: Add AC_C_INLINE.
76259
76260 2003-10-08  Paul Eggert  <eggert@twinsun.com>
76261
76262         Merge getpass from libc, plus a few fixes.
76263
76264         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
76265         Include <stdbool.h>.
76266         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
76267         __fsetlocking to empty.
76268         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
76269         do include <bits/libc-lock.h>.
76270         Do not include <fcntl.h>; not needed.
76271         [_LIBC]: Include <wchar.h>.
76272         (NOTCANCEL_MODE): New macro.
76273         (flockfile, funlockfile) [_LIBC]: New macros.
76274         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
76275         [!_LIBC]: New macros.
76276         (call_fclose): New function.
76277         (getpass): Use it.  Save tty stream separately; this simplifies the
76278         code and makes it more reliable if stdin happens to equal stdout.
76279         Invoke __fsetlocking on tty.
76280         Handle thread cancellation if needed.
76281         Namespace cleanup (use __tcgetattr, __getline).
76282         Use bool for Booleans.
76283         [USE_IN_LIBIO]: Handle wide streams.
76284         [!_LIBC]: Unconditionally do the fseek, since we don't know what
76285         stream might go where.
76286
76287         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
76288         doesn't have to include <stdio.h> before us.
76289         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
76290         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
76291         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
76292         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
76293         if not declared, so that we can use getpass.c code from libc without
76294         rewriting it.
76295         (flockfile, ftrylockfile, funlockfile): New macros.
76296
76297 2003-10-08  Paul Eggert  <eggert@twinsun.com>
76298
76299         * modules/getpass: Depend on stdbool.
76300
76301 2003-10-08  Paul Eggert  <eggert@twinsun.com>
76302
76303         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
76304
76305 2003-10-07  Karl Berry  <karl@gnu.org>
76306
76307         * config/config.{guess,sub}: update from config.
76308
76309 2003-10-06  Jim Meyering  <jim@meyering.net>
76310             Bruno Haible  <bruno@clisp.org>
76311
76312         This lets translators provide better translations for the
76313         "Written by ..." part of --version output.
76314         * lib/version-etc.h: Include stdarg.h.
76315         (version_etc_copyright): Declare as readonly.
76316         (version_etc): Make this function variadic with a NULL-terminated list
76317         of author name strings.
76318         (version_etc_va): New declaration.
76319         * lib/version-etc.c: Include stdarg.h, stdlib.h.
76320         (version_etc_copyright): Declare as readonly.
76321         (version_etc_va): New function. Provide a different translatable string
76322         for each possible number of authors < 10. Abbreviate when there are 10
76323         authors or more.
76324         (version_etc): Make this function variadic. Call version_etc_va.
76325         Suggestion from Gary V. Vaughan.
76326
76327         * lib/long-options.h (parse_long_options): Change prototype: the
76328         authors string is moved to the end and becomes variadic.
76329         * lib/long-options.c: Include stdarg.h.
76330         (parse_long_options): Make this function variadic, too.
76331         Call version_etc_va, not version_etc.
76332
76333 2003-10-06  Bruno Haible  <bruno@clisp.org>
76334
76335         * modules/version-etc-2: Remove file.
76336         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
76337
76338 2003-10-06  Bruno Haible  <bruno@clisp.org>
76339
76340         * modules/fatal-signal: New file.
76341         * MODULES.html.sh (func_all_modules): Add fatal-signal.
76342
76343 2003-10-06  Bruno Haible  <bruno@clisp.org>
76344
76345         * m4/fatal-signal.m4: New file.
76346         * m4/signalblocking.m4: New file, from GNU gettext.
76347
76348 2003-10-06  Bruno Haible  <bruno@clisp.org>
76349
76350         * lib/version-etc-2.h: Remove file.
76351         * lib/version-etc-2.c: Remove file.
76352
76353 2003-10-06  Bruno Haible  <bruno@clisp.org>
76354
76355         * lib/fatal-signal.h: New file, from GNU gettext.
76356         * lib/fatal-signal.c: New file, from GNU gettext.
76357
76358 2003-10-05  Paul Eggert  <eggert@twinsun.com>
76359
76360         * README: Rework advice for preventing empty .o files.
76361         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
76362         not <sys/types.h>.
76363
76364 2003-10-04  Karl Berry  <karl@gnu.org>
76365
76366         * lib/argp*: update from libc.
76367
76368 2003-10-04  Karl Berry  <karl@gnu.org>
76369
76370         * config/config.{guess,sub}: update from config.
76371
76372 2003-10-02  Bruno Haible  <bruno@clisp.org>
76373
76374         * modules/lchown (Include): Add lchown.h.
76375         * modules/time_r (Include): Use "..." syntax.
76376         * modules/xgetdomainname (Include): Add xgetdomainname.h.
76377
76378 2003-10-01  Simon Josefsson  <jas@extundo.com>
76379
76380         * MODULES.html.sh (func_all_modules): Move gethostname from section
76381         'based on' to section 'lacking' POSIX:2001.
76382
76383 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
76384
76385         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
76386         to output mode on the same stream.
76387
76388 2003-09-29  Paul Eggert  <eggert@twinsun.com>
76389
76390         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
76391         Fix arg typo in previous patch.
76392
76393 2003-09-28  Jim Meyering  <jim@meyering.net>
76394
76395         * lib/error.c: Correct cpp indentation.
76396
76397 2003-09-27  Paul Eggert  <eggert@twinsun.com>
76398
76399         * modules/free: New file.
76400
76401 2003-09-27  Paul Eggert  <eggert@twinsun.com>
76402
76403         * m4/free.m4: New file.
76404
76405 2003-09-27  Paul Eggert  <eggert@twinsun.com>
76406
76407         * lib/minmax.h (MIN, MAX)
76408         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
76409         Omit the special code that used __typeof__, since we worry that
76410         it could be more trouble than it's worth.  See:
76411         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
76412         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
76413
76414         * lib/free.c: New file.
76415
76416 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
76417
76418         Trivial fixes to Makefile.am parts of module listings.
76419         * modules/strstr: Append strstr.h to lib_SOURCES.
76420         * modules/strcase: Likewise, for strcase.h.
76421
76422 2003-09-27  Karl Berry  <karl@gnu.org>
76423
76424         * config/mkinstalldirs: update from automake.
76425
76426 2003-09-26  Paul Eggert  <eggert@twinsun.com>
76427
76428         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
76429         (error_tail): Do not loop, reallocating temporary buffer, since
76430         the output cannot contain more wide characters than the input
76431         contains bytes, the size must be big enough already.  This avoids
76432         one potential size overflow calculation.  Check for size overflow
76433         when calculating temporary buffer size.  Free temporary buffer
76434         when done, if it was allocated with malloc; this plugs a memory
76435         leak.  Remove casts from void * to pointers, that are no longer
76436         needed now that we're assuming C89 or better.
76437
76438         Merge error changes from glibc.
76439
76440         * lib/error.c, error.h: Update copyright notice header to match glibc.
76441         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
76442         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
76443         Disable cancellation while printing error.
76444         * lib/error.h: Prepend __ to parameter names.
76445
76446 2003-09-26  Jim Meyering  <jim@meyering.net>
76447
76448         * lib/error.c (error_tail): Move some declarations
76449         into inner scope where the local variables are used.
76450
76451 2003-09-26  Bruno Haible  <bruno@clisp.org>
76452
76453         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
76454         stpncpy().
76455         Don't define stpncpy through config.h; it's now done through stpncpy.h.
76456
76457 2003-09-26  Bruno Haible  <bruno@clisp.org>
76458
76459         * lib/stpncpy.h (gnu_stpncpy): New declaration.
76460         (stpncpy): Define as alias for gnu_stpncpy.
76461         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
76462
76463 2003-09-25  Simon Josefsson  <jas@extundo.com>
76464
76465         * lib/xgetdomainname.h: New file.
76466         * lib/xgetdomainname.c: New file.
76467
76468 2003-09-25  Simon Josefsson  <jas@extundo.com>
76469             Bruno Haible  <bruno@clisp.org>
76470
76471         * modules/getdomainname: New file.
76472         * modules/xgetdomainname: New file.
76473         * MODULES.html.sh (func_all_modules): Add getdomainname,
76474         xgetdomainname.
76475
76476 2003-09-25  Simon Josefsson  <jas@extundo.com>
76477             Bruno Haible  <bruno@clisp.org>
76478
76479         * m4/getdomainname.m4: New file.
76480
76481 2003-09-25  Simon Josefsson  <jas@extundo.com>
76482             Bruno Haible  <bruno@clisp.org>
76483
76484         * lib/getdomainname.h: New file.
76485         * lib/getdomainname.c: New file.
76486
76487 2003-09-25  Karl Berry  <karl@gnu.org>
76488
76489         * lib/argp-fmtstream.c, argp-help.c: update from libc.
76490
76491 2003-09-25  Karl Berry  <karl@gnu.org>
76492
76493         * config/install-sh: update from automake.
76494
76495 2003-09-25  Bruno Haible  <bruno@clisp.org>
76496
76497         * modules/version-etc-2: New file, from modules/version-etc with
76498         modifications.
76499         * MODULES.html.sh (func_all_modules): Add version-etc-2.
76500
76501 2003-09-25  Bruno Haible  <bruno@clisp.org>
76502
76503         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
76504         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
76505
76506 2003-09-24  Simon Josefsson  <jas@extundo.com>
76507
76508         * modules/xgethostname: Add xgethostname.h.
76509
76510 2003-09-24  Paul Eggert  <eggert@twinsun.com>
76511
76512         * lib/linebuffer.c (freebuffer): Don't free the argument, just
76513         the buffer associated with the argument.  Bug reported by
76514         Simon Josefsson.
76515
76516 2003-09-24  Paul Eggert  <eggert@twinsun.com>
76517
76518         * README: Document assumptions that 'int' is at least 32 bits
76519         wide, that integer arithmetic is 2's complement without overflow,
76520         that there are no holes in integer values, that adding sizes of
76521         two nonoverlapping objects can't overflow, and that all-bits-zero
76522         yields scalar zero.  Fix spelling and capitalization typos.
76523
76524 2003-09-19  Karl Berry  <karl@gnu.org>
76525
76526         * lib/argp.h: update from libc.
76527
76528 2003-09-17  Paul Eggert  <eggert@twinsun.com>
76529
76530         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
76531         to avoid spurious warnings like "AC_RUN_IFELSE was called before
76532         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
76533
76534 2003-09-17  Paul Eggert  <eggert@twinsun.com>
76535
76536         * gnulib-tool: Use "test -h", not "test -L", for portability
76537         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
76538         (tags_regexp): Remove, since \| doesn't conform to POSIX.
76539         (sed_extract_prog): Issue s commands one-by-one, rather than
76540         using \| in one s command.
76541
76542 2003-09-16  Paul Eggert  <eggert@twinsun.com>
76543
76544         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
76545         input error, instead of returning NULL the next time we are called
76546         (and therefore losing track of errno).
76547
76548 2003-09-16  Bruno Haible  <bruno@clisp.org>
76549
76550         * gnulib-tool (func_create_testdir): Warn about duplicated
76551         dependencies.
76552
76553 2003-09-15  Paul Eggert  <eggert@twinsun.com>
76554
76555         * modules/argmatch, modules/fatal, modules/obstack,
76556         modules/xalloc, modules/xgethostname: Sort dependencies by
76557         importance, not alphabetically.
76558
76559 2003-09-15  Paul Eggert  <eggert@twinsun.com>
76560
76561         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
76562         fails, so that the caller gets the proper errno.
76563
76564         * lib/readutmp.c (read_utmp): Likewise.
76565         Check for fstat error.  Close stream and free storage
76566         when failing.
76567
76568 2003-09-14  Karl Berry  <karl@gnu.org>
76569
76570         * config/srclist.txt (strdup.c): disable for c89 changes.
76571
76572 2003-09-14  Jim Meyering  <jim@meyering.net>
76573
76574         * lib/getloadavg.c: Correct cpp indentation.
76575         * lib/strdup.c: Likewise.
76576         * lib/vasnprintf.c: Likewise.
76577
76578 2003-09-14  Bruno Haible  <bruno@clisp.org>
76579
76580         * modules/fwriteerror: New file.
76581         * MODULES.html.sh (func_all_modules): Add fwriteerror.
76582
76583 2003-09-14  Bruno Haible  <bruno@clisp.org>
76584
76585         * lib/fwriteerror.h: New file.
76586         * lib/fwriteerror.c: New file.
76587
76588 2003-09-12  Paul Eggert  <eggert@twinsun.com>
76589
76590         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
76591         modules/xgethostname, modules/xalloc: Depend on exit.
76592
76593 2003-09-12  Paul Eggert  <eggert@twinsun.com>
76594
76595         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
76596
76597         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
76598         and AC_MINIX, too, so that their extensions are available.
76599
76600         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
76601         This macro has been superseded by gl_BACKUPFILE.
76602
76603         More patches to assume C89 or better.
76604
76605         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
76606
76607         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
76608         unconditionally.
76609         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
76610         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
76611         Include <string.h>, <stdlib.h> unconditionally.
76612         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
76613         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
76614         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
76615         headers or for string.h.
76616         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
76617         or strtoul.
76618
76619         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
76620         headers.
76621         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
76622         * m4/userspec.m4 (gl_USERSPEC): Likewise.
76623         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
76624         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
76625         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
76626         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
76627         memcpy, memset.
76628         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
76629         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
76630         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
76631         strtol.
76632         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
76633         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
76634         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
76635         strtoul.
76636
76637 2003-09-12  Paul Eggert  <eggert@twinsun.com>
76638
76639         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
76640         * lib/obstack.c [!defined _LIBC]: Likewise.
76641         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
76642         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
76643         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
76644
76645         More changes to assume C89 or better.
76646
76647         * lib/error.c (error_tail): Assume vprintf.
76648
76649         * lib/argmatch.c (getenv): Remove decl.
76650         * lib/progreloc.c (get_full_program_name): Define via prototype.
76651         * lib/setenv.c (clearenv): Likewise.
76652         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
76653         needed.
76654         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
76655         (malloc, memcpy): Remove decls.
76656         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
76657         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
76658         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
76659         (memcpy): Remove macro.
76660         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
76661         (__P): Remove.  All uses removed.
76662         (PTR): Remove.  All uses changed to void *.
76663         (CHAR_BIT, NULL): Remove.
76664         (spaces, zeros, memset_space, memset_zero)
76665         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
76666         Remove.
76667         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
76668         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
76669         Define with prototype.
76670         Remove now-unnecessary prototype decl.
76671         (extra_args_spec): Assume ANSI C.  All uses changed.
76672         (extra_args_spec_iso): Remove.
76673         (my_strftime, emacs_strftimeu): Define via prototype.
76674         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
76675         unconditionally.
76676         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
76677         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
76678         (strtoul, strtol): Remove decls.
76679         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
76680         LONG_MAX): Remove.
76681         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
76682         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
76683         (LOCALE_PARAM_PROTO): New macro.
76684         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
76685         (INTERNAL (strtol), strtol): Define with a prototype.
76686         (PARAMS): Remove.  All uses removed.
76687         * lib/tempname.c: Include <string.h> unconditionally.
76688         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
76689         * lib/xgethostname.c (main): Define with a prototype.
76690         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
76691         Include <stdlib.h> unconditionally.
76692         (calloc, malloc, realloc, free): Remove decls.
76693         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
76694         Include <stdlib.h> unconditionally.  Sort include file names.
76695         (strtod): Remove.
76696         (xstrtod): Define with a prototype.
76697         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
76698         (strtol, strtoul): Remove decls.
76699
76700 2003-09-11  Paul Eggert  <eggert@twinsun.com>
76701
76702         More patches to assume C89 or better.
76703         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
76704         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
76705         string.h, memchr, STDC_HEADERS.
76706
76707 2003-09-11  Paul Eggert  <eggert@twinsun.com>
76708
76709         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
76710         Include <stdlib.h>, <string.h> unconditionally.
76711         Remove now-unnecessary cast to char *.
76712         * lib/strnlen.c: Include <string.h> unconditionally.
76713         * lib/yesno.c (yesno): Define with a prototype.
76714
76715 2003-09-11  Bruno Haible  <bruno@clisp.org>
76716
76717         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
76718
76719 2003-09-10  Jim Meyering  <jim@meyering.net>
76720
76721         * lib/error.c: Correct indentation of cpp directives.
76722
76723 2003-09-10  Bruno Haible  <bruno@clisp.org>
76724
76725         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
76726         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
76727         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
76728         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
76729         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
76730         <stdlib.h> and <string.h> checks.
76731         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
76732         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
76733
76734 2003-09-10  Bruno Haible  <bruno@clisp.org>
76735
76736         * lib/strcspn.c: Include <string.h> unconditionally.
76737         * lib/strpbrk.c: Include <string.h> unconditionally.
76738         * lib/strstr.c: Include <string.h> unconditionally.
76739         * lib/unicodeio.c: Include <string.h> unconditionally.
76740         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
76741         * lib/unsetenv.c: Likewise.
76742         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
76743         * lib/yesno.c: Include <stdlib.h> unconditionally.
76744         (rpmatch): Add prototype.
76745
76746 2003-09-09  Paul Eggert  <eggert@twinsun.com>
76747
76748         More patches to assume C89 or better.
76749         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
76750         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
76751         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
76752         or for string.h.
76753         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
76754         stdlib.h.
76755         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
76756         C headers.
76757         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
76758         string.h.
76759         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
76760         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
76761         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
76762         or for string.h.
76763         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
76764         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
76765         C headers.
76766         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
76767         memcpy.
76768         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
76769         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
76770         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
76771         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
76772         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
76773         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
76774         string.h, free.
76775         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
76776         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
76777         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
76778         C headers, or for string.h.
76779         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
76780         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
76781         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
76782         headers, memory.h, stdlib.h, string.h, strings.h.
76783         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
76784         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
76785         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
76786         strchr.
76787         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
76788         headers, memory.h, string.h.
76789         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
76790         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
76791         free.
76792         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
76793         headers.
76794         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
76795         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
76796         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
76797         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
76798         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
76799
76800 2003-09-09  Paul Eggert  <eggert@twinsun.com>
76801
76802         More K&R removal.
76803
76804         * lib/acosl.c (main): Use a prototype.
76805         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
76806         tanl.c: Likewise.
76807
76808         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
76809
76810         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
76811         (getopt, etopt_long, getopt_long_only, _getopt_internal)
76812         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
76813         with a prototype.
76814         * lib/getopt.c (const): Remove macro.
76815         Include <string.h> unconditionally.
76816         (my_index): Remove; all uses changed to strchr.
76817         (strlen): Remove decl.
76818         (exchange): Remove forward decl; no longer needed.
76819         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
76820         Define with prototype.
76821         * lib/getopt1.c (const): Remove macro.
76822         (getopt_long, getopt_long_only, main): Define with prototype.
76823
76824         * lib/getugroups.c: Include <string.h> unconditionally.
76825
76826         * lib/getusershell.c: Include <stdlib.h> unconditionally.
76827         (getusershell, setusershell, endusershell, readname, main):
76828         Define with prototypes.
76829
76830         * lib/group-member.c: Include group-member.h first.
76831         Include <stdlib.h> unconditionally.
76832
76833         * lib/hard-locale.c: Include hard-locale.h first.
76834         Include <stdlib.h>, <string.h> unconditionally.
76835
76836         * lib/hash.c (free, malloc): Remove decls.
76837         Include <stdlib.h> unconditionally.
76838
76839         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
76840         (getenv): Do not declare.
76841
76842         * lib/idcache.c: Include <string.h> unconditionally.
76843
76844         * lib/long-options.c: Include long-options.h first, to test interface.
76845         Include <stdlib.h> unconditionally.
76846
76847         * lib/makepath.c: Include makepath.h first, to test interface.
76848         Include <stdlib.h> and <string.h> unconditionally.
76849
76850         * lib/linebuffer.c: Include <stdlib.h>.
76851         (free): Remove decl.
76852
76853         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
76854         stddef.h. rpl_malloc returns void *, not char *.
76855         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
76856         prototype.
76857
76858         * lib/md5.h: Include <limits.h> unconditionally.
76859         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
76860         (__P): Remove; all uses removed.
76861         * lib/md5.c: Include "md5.h" first.
76862         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
76863         md5_buffer, md5_process_bytes, md5_process_block):
76864         Define with prototypes.
76865         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
76866         * lib/sha.c: Include "sha.h" first.
76867         Include <stdlib.h>, <string.h> unconditionally.
76868
76869         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
76870         * lib/memcmp.c (__ptr_t): Likewise.
76871         * lib/memrchr.c (__ptr_t): Likewise.
76872         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
76873         Include <string.h> unconditionally.
76874         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
76875         * lib/memchr.c: Include <stdlib.h> unconditionally.
76876         * lib/memchr.c (LONG_MAX): Remove.
76877         * lib/memrchr.c (LONG_MAX): Likewise.
76878         * lib/memchr.c (__memchr): Define via a prototype.
76879         * lib/memrchr.c (__memrchr): Likewise.
76880         * lib/memcmp.c (__P): Remove, and remove all uses.
76881         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
76882         Remove forward decls; no longer needed.
76883         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
76884         Use types required by C89 in prototype.
76885
76886         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
76887         * lib/savedir.c: Likewise.
76888         * lib/mkdir.c (free): Remove decl.
76889         * lib/rmdir.c (rmdir): Define with a prototype.
76890         * lib/savedir.c: Include savedir.h first, to test interface.
76891
76892         * lib/mktime.c (STDC_HEADERS): Remove.
76893         Include <stdlib.h>, <string.h> unconditionally.
76894
76895         * lib/modechange.c: Include <stdlib.h> unconditionally.
76896         (malloc): Remove decl.
76897
76898         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
76899         (free): Remove decl.
76900
76901         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
76902         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
76903         (This type really should be intptr_t, but that's a C99ism.)
76904         (_obstack_memcpy): Remove: all uses changed to memcpy.
76905         Include <string.h> unconditionally.
76906         (struct obstack): Assume __STDC__ for types of members
76907         chunkfun, freefun, extra_arg.
76908         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
76909         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
76910         obstack_begin, obstack_specify_allocation,
76911         obstack_specify_allocation_with_arg, obstack_chunkfun,
76912         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
76913         Remove unprototyped decls and the macros that use them.
76914         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
76915         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
76916         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
76917         (defined __STDC__ && __STDC__)]:
76918         Remove nonprototyped code.
76919         Include <stdlib.h> unconditionally.
76920         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
76921         _obstack_allocated_p, _obstack_free, obstack_free,
76922         _obstack_memory_used, print_and_abort):
76923         Define using prototypes.
76924         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
76925         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
76926         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
76927         obstack_next_free, obstack_object_size, obstack_room) [0]:
76928         Remove unused, unprototyped code.
76929
76930         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
76931
76932         * lib/physmem.c (physmem_total, physmem_available, main): Define
76933         with prototypes.
76934
76935         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
76936         (main): Define with a prototype.
76937
76938         * lib/posixver.c (getenv): Remove decl.
76939
76940         * lib/putenv.c (malloc): Returns void *, not char *.
76941         Include <string.h> unconditionally.
76942         (strchr, memcpy, NULL): Do not define.
76943
76944         * lib/readtokens.c: Include readtokens.h first, to test interface.
76945         Include <stdlib.h>, <string.h> unconditionally.
76946         (init_tokenbuffer): Define with a prototype.
76947
76948         * lib/regex.c (PARAMS): Remove.  All uses removed.
76949         All uses of _RE_ARGS removed, too.
76950         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
76951         unconditionally.
76952         (bzero): Assume memset exists.
76953         (memcmp, memcpy, NULL): Remove.
76954         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
76955         char, or assignments to local vars of type signed char.
76956         (init_syntax_once, PREFIX(extract_number_and_incr),
76957         PREFIX(print_partial_compiled_pattern),
76958         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
76959         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
76960         PREFIX(regex_grow_registers), PREFIX(regex_compile),
76961         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
76962         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
76963         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
76964         wcs_compile_range, byte_compile_range, truncate_wchar,
76965         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
76966         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
76967         count_mbs_length, wcs_re_match_2_internal,
76968         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
76969         PREFIX(alt_match_null_string_p),
76970         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
76971         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
76972         regfree, PREFIX(extract_number)): Define with prototype.  Remove
76973         now-unnecessary declaration, if any.
76974         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
76975         regcomp, regexec):
76976         Remove now-unnecessary casts among pointer types.
76977         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
76978
76979         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
76980         (free): Remove decl.
76981
76982         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
76983
76984         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
76985         (free): Remove decl.
76986
76987         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
76988         * lib/xgetcwd.c: Likewise.
76989
76990         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
76991         (free): Remove decl.
76992
76993         * lib/strchrnul.c (strchrnul): Define with a prototype.
76994         Fix bug: c_in was not converted to char before searching.
76995
76996         The following changes are not K&R related:
76997
76998         * lib/group-member.h: Include <sys/types.h>, so that this file is
76999         self-contained.
77000         * lib/makepath.h: Likewise.
77001
77002         * lib/getusershell.c (readname, default_index, line_size, readname):
77003         Use size_t, not int, for sizes.
77004         (readname): If the size overflows, report an error instead of
77005         looping forever.
77006
77007 2003-09-09  Paul Eggert  <eggert@twinsun.com>
77008
77009         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
77010         libc.
77011
77012 2003-09-09  Paul Eggert  <eggert@twinsun.com>
77013
77014         * README: New section: portability guidelines.
77015
77016 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
77017
77018         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
77019         C89 spec.
77020
77021 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
77022
77023         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
77024
77025 2003-09-08  Paul Eggert  <eggert@twinsun.com>
77026
77027         Assume C89 or better; remove K&R cruft.
77028         A few of these changes were first proposed by Derek Robert Price
77029         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
77030
77031         * lib/addext.c: Include <string.h> unconditionally.
77032         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
77033         Don't declare getenv or malloc.
77034
77035         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
77036         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
77037         (NULL): Remove.
77038         (find_stack_direction, alloca): Use prototypes.
77039
77040         * lib/atexit.c (atexit): Define using a prototype.
77041
77042         * lib/basename.c, dirname.c, stripslash.c:
77043         Include <string.h> unconditionally.
77044
77045         * lib/bcopy.c: Include <stddef.h>.
77046         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
77047
77048         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
77049
77050         * lib/error.h (error, error_at_line, error_print_progname)
77051         [! (defined (__STDC__) && __STDC__)]: Remove decls.
77052         * lib/error.c: Include error.h first, to check interface.
77053         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
77054         (VA_START): Remove; all uses changeed to va_start.
77055         (exit, strerror): Remove decls.
77056         (error_print_progname): Prototype uncondionally.
77057         Don't include <errno.h>; no longer needed.
77058         (private_strerror): Remove.
77059         (error_tail): Always define.
77060         (error, error_at_line): Assume C89 or better; always use prototypes.
77061         * lib/fatal.c: Include "fatal.h" first, to test interface.
77062         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
77063         (VA_START): Remove; all uses changed to va_start.
77064         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
77065         this case.
77066         (exit): Remove decl.
77067         (fatal): Prototype unconditionally.  Assume va_start works.
77068         Abort at end, to pacify gcc.
77069
77070         * lib/euidaccess.c (main): Define with a prototype.
77071
77072         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
77073
77074         * lib/exitfail.c: Include <stdlib.h> unconditionally.
77075
77076         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
77077         prototypes.
77078         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
77079         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
77080         (getenv): Remove decl.
77081         (fnmatch): Define using a prototype.
77082         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
77083         (FCT): Define using a prototype.
77084
77085         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
77086
77087         * lib/gethostname.c: Include <stddef.h>.
77088         (gethostname): Define with prototype.  Length is size_t, not int.
77089
77090 2003-09-08  Paul Eggert  <eggert@twinsun.com>
77091
77092         Assume C89 or better; remove K&R cruft.
77093         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
77094         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
77095         string.h, getenv, malloc.
77096         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
77097         headers.
77098         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
77099         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
77100         do not check for strerror.
77101         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
77102         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
77103         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
77104         do not check for doprnt or vprintf.
77105         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
77106         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
77107
77108 2003-09-08  Paul Eggert  <eggert@twinsun.com>
77109
77110         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
77111         getversion.c should have been removed then, but was accidentally
77112         preserved.
77113
77114         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
77115         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
77116
77117 2003-09-08  Karl Berry  <karl@gnu.org>
77118
77119         * config/config.sub, config.guess, srclistvars.sh: update from savannah
77120                 config, forget about prep.
77121
77122         * config/depcomp, missing: update from automake.
77123
77124 2003-09-07  Paul Eggert  <eggert@twinsun.com>
77125
77126         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
77127         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
77128
77129 2003-09-07  Paul Eggert  <eggert@twinsun.com>
77130
77131         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
77132         copy_tm_result.  Bug reported by Simon Josefsson in
77133         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
77134
77135 2003-09-06  Paul Eggert  <eggert@twinsun.com>
77136
77137         * m4/time_r.m4: New file.
77138         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
77139         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
77140         is. Check for timegm declaration.
77141         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
77142         Do not check for gmtime_r.
77143         Replace mktime if __mktime_internal does not exist and if mktime
77144         hasn't been replaced already.
77145
77146 2003-09-06  Paul Eggert  <eggert@twinsun.com>
77147
77148         * lib/time_r.c, lib/time_r.h: New files.
77149
77150         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
77151         __localtime_r.
77152         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
77153         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
77154
77155         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
77156         __gmtime_r.
77157         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
77158         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
77159         Include <time_r.h>.
77160
77161         * lib/timegm.c: Switch to glibc implementation, with the following
77162         changes:
77163         [defined HAVE_CONFIG_H]: Include <config.h>.
77164         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
77165         (__mktime_internal) [!defined _LIBC]: New decl.
77166         (__gmtime_r) [!defined _LIBC]: New macro and function.
77167         (timegm): Use a prototype, since gnulib assumes C89.
77168         Do not bother declaring tmp to be const, as it's not really usefu.
77169         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
77170         (timegm): Declare only if HAVE_DECL_TIMEGM.
77171
77172 2003-09-06  Paul Eggert  <eggert@twinsun.com>
77173
77174         * MODULES.html.sh (func_all_modules): Add time_r.
77175         * modules/time_r: New file.
77176         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
77177         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
77178
77179 2003-09-03  Paul Eggert  <eggert@twinsun.com>
77180
77181         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
77182         Bug reported by Lute Kamstra in
77183         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
77184
77185         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
77186         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
77187         course with correspondingly smaller numbers for tomorrow and
77188         yesterday.  From Tadayoshi Funaba.  Originally installed into
77189         sh-utils on 1999-08-07, but the patch got lost (I guess during the
77190         coreutils merge?).
77191
77192 2003-08-31  Simon Josefsson  <jas@extundo.com>
77193
77194         * modules/timegm: New file.
77195         * MODULES.html.sh (func_all_modules): Add timegm.
77196
77197 2003-08-31  Simon Josefsson  <jas@extundo.com>
77198
77199         * m4/timegm.m4: New file.
77200
77201 2003-08-31  Simon Josefsson  <jas@extundo.com>
77202
77203         * lib/timegm.h: New file.
77204         * lib/timegm.c: New file.  Based on
77205         wget-1.8.2/src/http.c:mktime_from_utc.
77206
77207 2003-08-31  Karl Berry  <karl@gnu.org>
77208
77209         * lib/argp.h: update from libc.
77210
77211 2003-08-28  Bruno Haible  <bruno@clisp.org>
77212
77213         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
77214         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
77215         followed by '#define fnmatch fnmatch_posix' gives an error.
77216
77217 2003-08-28  Bruno Haible  <bruno@clisp.org>
77218
77219         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
77220         warning on QNX, which defines O_BINARY to 000000.
77221
77222 2003-08-27  Jim Meyering  <jim@meyering.net>
77223
77224         * m4/mkstemp.m4: Require that the system mkstemp be able to create
77225         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
77226         would fail after 32.  Reported by Danny Levinson.  Details here:
77227         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
77228
77229 2003-08-24  Bruno Haible  <bruno@clisp.org>
77230
77231         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
77232         MSVC7 <stdio.h> is included later.
77233
77234 2003-08-22  Simon Josefsson  <jas@extundo.com>
77235
77236         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
77237
77238 2003-08-20  Karl Berry  <karl@gnu.org>
77239
77240         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
77241
77242 2003-08-20  Bruno Haible  <bruno@clisp.org>
77243
77244         * modules/progname: New file.
77245         * MODULES.html.sh (func_all_modules): Add progname.
77246
77247 2003-08-20  Bruno Haible  <bruno@clisp.org>
77248
77249         * lib/progname.h: New file, from GNU gettext.
77250         * lib/progname.c: New file, from GNU gettext.
77251         * lib/progreloc.c: New file, from GNU gettext.
77252
77253 2003-08-19  Jim Meyering  <jim@meyering.net>
77254
77255         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
77256         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
77257
77258 2003-08-19  Bruno Haible  <bruno@clisp.org>
77259
77260         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
77261         more.
77262
77263 2003-08-19  Bruno Haible  <bruno@clisp.org>
77264
77265         * lib/xstrdup.c: Assume <string.h> exists.
77266
77267 2003-08-18  Paul Eggert  <eggert@twinsun.com>
77268
77269         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
77270         in makefile rules.
77271
77272 2003-08-18  Jim Meyering  <jim@meyering.net>
77273
77274         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
77275         * m4/lib-ld.m4: Likewise.
77276
77277 2003-08-18  Jim Meyering  <jim@meyering.net>
77278
77279         * lib/setenv.h: Indent nested cpp directive.
77280         * lib/vasnprintf.c: Remove trailing blanks.
77281
77282 2003-08-17  Simon Josefsson  <jas@extundo.com>
77283
77284         * modules/xstrndup: New file.
77285         * MODULES.html.sh (func_all_modules): Add xstrndup.
77286
77287 2003-08-17  Simon Josefsson  <jas@extundo.com>
77288
77289         * modules/argp: Fix autoconf macro name. Add more dependencies.
77290
77291 2003-08-17  Simon Josefsson  <jas@extundo.com>
77292
77293         * m4/xstrndup.m4: New file.
77294
77295 2003-08-17  Simon Josefsson  <jas@extundo.com>
77296
77297         * m4/argp.m4: New file.
77298
77299 2003-08-17  Simon Josefsson  <jas@extundo.com>
77300             Bruno Haible  <bruno@clisp.org>
77301
77302         * lib/xstrndup.h: New file.
77303         * lib/xstrndup.c: New file.
77304
77305 2003-08-17  Bruno Haible  <bruno@clisp.org>
77306
77307         * modules/strndup (Files, Include): Add lib/strndup.h.
77308
77309 2003-08-17  Bruno Haible  <bruno@clisp.org>
77310
77311         * modules/euidaccess (Files): Add lib/euidaccess.h.
77312
77313 2003-08-17  Bruno Haible  <bruno@clisp.org>
77314
77315         * lib/strndup.h: New file.
77316
77317 2003-08-17  Bruno Haible  <bruno@clisp.org>
77318
77319         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
77320         like AC_GNU_SOURCE.
77321         * modules/extensions (configure.ac): Comment out the invocation of
77322         gl_USE_SYSTEM_EXTENSIONS.
77323
77324 2003-08-16  Paul Eggert  <eggert@twinsun.com>
77325
77326         Merges from coreutils, etc.
77327         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
77328         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
77329         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
77330         fixing a typo.
77331         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
77332         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
77333
77334 2003-08-16  Paul Eggert  <eggert@twinsun.com>
77335
77336         Document merge from coreutils.
77337         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
77338         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
77339         * modules/utime: Add m4/utimes-null.m4.
77340
77341 2003-08-16  Paul Eggert  <eggert@twinsun.com>
77342
77343         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
77344         space, undoing this 2003-08-12 change:
77345         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
77346
77347 2003-08-16  Paul Eggert  <eggert@twinsun.com>
77348
77349         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
77350         strtoul.c from libc, undoing this 2003-08-12 change:
77351         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
77352
77353 2003-08-16  Jim Meyering  <jim@meyering.net>
77354
77355         Merges from coreutils.
77356         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
77357         prefix.  Adjust cache variables similarly.  Create 500 rather than
77358         just 300 files, to exercise bug on Darwin6.5, too.
77359         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
77360         $missing_dir.
77361         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
77362         AM_SYS_POSIX_TERMIOS.
77363         Reported by mkc@mathdogs.com.
77364         Also change use of $am_cv_sys_posix_termios
77365         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
77366         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
77367         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
77368         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
77369         in /proc/mounts until it finds one with matching device number.  This
77370         is unnecessary when the FILE argument *is* a mount point.  No stat call
77371         is necessary in that case.  So, disable the statvfs-testing code on
77372         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
77373         as RedHat bug# 84846.
77374         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
77375         to 1MB, so as not to render systems with no stack size limit (e.g.,
77376         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
77377         Include <unistd.h>.  On some systems,
77378         it is required for the definition of _SC_PAGESIZE.
77379
77380 2003-08-16  Jim Meyering  <jim@meyering.net>
77381
77382         Merge from coreutils.
77383         * lib/xstrtoimax.c: #else #if -> #elif.
77384         * lib/xstrtoumax.c: Likewise.
77385
77386 2003-08-16  Jim Meyering  <jim@meyering.net>
77387
77388         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
77389         * m4/utimes.m4: Removed.
77390         * m4/utimes-null.m4: Renamed from utimes.m4.
77391
77392         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
77393         to 1MB, so as not to render systems with no stack size limit (e.g.,
77394         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
77395         Include <unistd.h>.  On some systems,
77396         it is required for the definition of _SC_PAGESIZE.
77397
77398 2003-08-16  Jim Meyering  <jim@meyering.net>
77399         and Paul Eggert  <eggert@cs.ucla.edu>
77400
77401         Merges from coreutils, etc.
77402
77403         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
77404         using the latest version from cvs.  This avoids problems with #line
77405         directives using a vendor (Sun) compiler.
77406         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
77407         Don't set GETGROUPS_LIB here; now it's
77408         done via getgroups.m4's wrapper function.
77409         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
77410         rather than just in sh-util/configure.in, so that the
77411         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
77412         same.
77413         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
77414         AC_FUNC_GETLOADAVG where to find getloadavg.c.
77415         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
77416         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
77417         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
77418         Remove code that is now done by the newly-required macros.
77419         Append $(EXEEXT) to DF_PROG.
77420         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
77421         Do not invoke or require the following here,
77422         since prereq.m4 or some gnulib .m4 now does this for us:
77423         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
77424         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
77425         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
77426         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
77427         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
77428         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
77429         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
77430         AC_FUNC_OBSTACK.
77431         Do not replace the following functions, as this is now the job
77432         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
77433         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
77434         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
77435         atexit getpass, strdup, getpagesize.
77436         Replace 'raise'.
77437         Do not check for the following functions, as this is now the job
77438         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
77439         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
77440         setregid.
77441         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
77442         Check for sys/sysctl.h.
77443         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
77444         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
77445         of checking for ssize_t ourselves.
77446
77447         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
77448         Require every macro that gnulib/modules/* suggests for us.
77449         (jm_PREREQ_ADDEXT): New macro.
77450         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
77451         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
77452
77453         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
77454         (gl_PHYSMEM): Use it.
77455         Also check for `table' function.
77456         Check for new headers and functions.
77457         Add check for sys/sysmp.h.
77458         With suggestions from Kaveh Ghazi.
77459         Ignore headers that are present but cannot be compiled.  This
77460         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
77461         C 5.4.
77462
77463 2003-08-15  Paul Eggert  <eggert@twinsun.com>
77464
77465         Document merge from coreutils.
77466         * modules/userspec: Depend on posixver.
77467         * modules/strftime: Depend on tzset.
77468
77469 2003-08-15  Paul Eggert  <eggert@twinsun.com>
77470
77471         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
77472         rather than tab, after '#' in shell-script copyright notices.
77473         Suggested by Bruno Haible.
77474
77475 2003-08-15  Paul Eggert  <eggert@twinsun.com>
77476
77477         * config/srclist-update: Use three spaces, rather than tab, after '#'
77478         in shell-script copyright notices.  Suggested by Bruno Haible.
77479         Remove unnecessary parenthesization in regular expression.
77480
77481 2003-08-15  Jim Meyering  <jim@meyering.net>
77482
77483         Merge from coreutils.
77484         * lib/xgethostname.c: Include <stdlib.h>.
77485         (xghostname): Don't exit for anything other than memory-related
77486         failure; just return NULL.
77487         * lib/userspec.c: Include "posixver.h".
77488         (parse_user_spec): Accept `.' as a separator only
77489         in pre-POSIX-200112 mode.
77490         * lib/strtoimax.c: Use #elif rather than #else #if.
77491         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
77492         Remove function, now that we can rely on a working tzset function.
77493         [!_LIBC]: Ensure that the required autoconf test has been run.
77494         [!defined _NL_CURRENT && HAVE_STRFTIME]:
77495         Use underlying_strftime for %r.
77496         * lib/sha.c: Merge in some clean-up and optimization changes from
77497         glibc.
77498         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
77499         Ensure that it is a multiple of 64.
77500         Rearrange loop exit tests so as to avoid performing an
77501         additional fread after encountering an error or EOF.
77502         * lib/realloc.c: Update copyright date.
77503
77504 2003-08-15  Jim Meyering  <jim@meyering.net>
77505         and Paul Eggert  <eggert@twinsun.com>
77506
77507         Merge from coreutils.
77508         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
77509         member but strut utmpx does not.  Needed for AIX 4.3.3.
77510         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
77511
77512 2003-08-15  Jim Meyering  <jim@meyering.net>
77513         and Paul Eggert  <eggert@cs.ucla.edu>
77514
77515         Merges from coreutils, etc.
77516         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
77517         Require gl_FUNC_TZSET_CLOBBER.
77518         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
77519         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
77520         members.
77521
77522 2003-08-14  Paul Eggert  <eggert@twinsun.com>
77523
77524         Help the merge from coreutils.
77525         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
77526         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
77527         * m4/tzset.m4: Use it too.
77528
77529 2003-08-14  Paul Eggert  <eggert@twinsun.com>
77530
77531         * modules/tzset: New file.
77532
77533 2003-08-14  Jim Meyering  <jim@meyering.net>
77534
77535         Merges from coreutils.
77536         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
77537         variable names, rather than @FNMATCH_H@.
77538         * modules/alloca: Likewise for $(ALLOCA_H).
77539
77540         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
77541         the three copies of the literal target, `fnmatch.h'.
77542         * modules/alloca (alloca.h): Likewise.
77543
77544 2003-08-14  Jim Meyering  <jim@meyering.net>
77545
77546         Merge from coreutils.
77547         * m4/tzset.m4: New file.
77548         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
77549         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
77550         otherwise, AIX 5.1 systems would end up using the latter.
77551         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
77552         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
77553         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
77554         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
77555
77556 2003-08-14  Jim Meyering  <jim@meyering.net>
77557
77558         Merge from coreutils.
77559         * lib/obstack.h: Whitespace changes.
77560         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
77561         and xcalloc return values.
77562         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
77563         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
77564         hang on OSF/1 5.1 for DIR on both local and remote file systems.
77565         Reported by (and fix confirmed by) Nelson H. F. Beebe.
77566         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
77567         error from mntctl.
77568         Use mntctl's return value to drive the entry-processing loop, since
77569         we can't rely on the value of the vmt_length member in the last
77570         entry.  On some systems doing so could result in exhausting
77571         virtual memory.  Based in part on a patch from Mike Jetzer.
77572
77573 2003-08-14  Jim Meyering  <jim@meyering.net>
77574         and Paul Eggert  <eggert@twinsun.com>
77575
77576         Merges from coreutils, plus other fixes.
77577         * lib/physmem.c: Merge in portability changes from gcc/libiberty
77578         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
77579         for credits and details.  Thanks to Kaveh Ghazi for helping
77580         to keep these files in sync.
77581         (ARRAY_SIZE): Define it.
77582         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
77583         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
77584         (memcasecmp): Don't assume size_t fits in unsigned int.
77585         Remove casts and duplicate code.
77586         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
77587         (memcpy): Remove definition.
77588         Merge in some clean-up and optimization changes from glibc.
77589         [BLOCKSIZE]: Move definition to top of file.
77590         Ensure that it is a multiple of 64.
77591         Rearrange loop exit tests so as to avoid performing an
77592         additional fread after encountering an error or EOF.
77593         * lib/md5.h (md5_uintptr): Define.
77594         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
77595         return to the initial working directory.  Preserve errno
77596         for caller.
77597         * lib/idcache.c: Include "xalloc.h".
77598         (xmalloc, xrealloc): Remove decls.
77599         (getuser): Remove casts no longer required in C89.
77600         * lib/human.c: Include stdio.h, for sprintf.
77601         * lib/group-member.c: Include "xalloc.h".
77602         (xmalloc, xrealloc): Remove decls.
77603         (get_group_info): Remove casts no longer required in C89.
77604         * lib/getusershell.c (readname): Remove casts no longer required in
77605         C89.
77606         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
77607         * lib/getline.c: Whitespace fix, from coreutils.
77608
77609 2003-08-13  Paul Eggert  <eggert@twinsun.com>
77610
77611         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
77612         Check for isascii.
77613
77614         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
77615         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
77616         Undo previous (whitespace-only) change.
77617
77618 2003-08-13  Paul Eggert  <eggert@twinsun.com>
77619
77620         * lib/exclude.c: Include <ctype.h>
77621         (IN_CTYPE_DOMAIN): New macro.
77622         (is_space): New fn.
77623         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
77624         and empty lines.
77625
77626         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
77627         Undo previous (whitespace-only) change.
77628
77629 2003-08-13  Paul Eggert  <eggert@twinsun.com>
77630
77631         * config/srclist-update: Change update back to the old behavior,
77632         leaving whitespace alone.  Use one 'sed' command rather than a
77633         pipeline.
77634         (fixlicense): Now a variable, not a function.
77635         (remove_trailing_blanks): Remove.
77636         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
77637         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
77638         Undo previous (whitespace-only) change.
77639
77640 2003-08-12  Paul Eggert  <eggert@twinsun.com>
77641
77642         Merge from coreutils.
77643         * modules/euidaccess: Add lib_SOURCES, include for new
77644         file euidaccess.h
77645
77646 2003-08-12  Paul Eggert  <eggert@twinsun.com>
77647
77648         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
77649         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
77650         Normalize leading white space and remove trailing white space.
77651
77652         Merge from coreutils
77653         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
77654
77655         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
77656         0.12.1.  These files are now being upgraded automatically by
77657         ../config/srclist-update.
77658
77659 2003-08-12  Paul Eggert  <eggert@twinsun.com>
77660
77661         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
77662         Normalize leading white space and remove trailing white space.
77663         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
77664         notice, as per ../config/srclist-update.
77665
77666         Merge from coreutils.
77667         * lib/euidaccess.h: New file.
77668         * lib/euidaccess.c: Include it.
77669         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
77670         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
77671         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
77672
77673 2003-08-12  Paul Eggert  <eggert@twinsun.com>
77674
77675         * config/srclist-update: Add copyright notice.
77676         (remove_id_lines, remove_trailing_blanks): New constants.
77677         (fixfile): Use them to normalize spacing a bit in copied files.
77678         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
77679         Normalize leading white space and remove trailing white space.
77680
77681         * config/texinfo.tex: Sync with texinfo.
77682
77683         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
77684         strtoul.c from libc, to merge coreutils whitespace changes.
77685
77686         * config/srclist.txt: Get the following m4 files from gettext:
77687         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
77688         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
77689         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
77690         wint_t.m4.
77691
77692 2003-08-12  Karl Berry  <karl@gnu.org>
77693
77694         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
77695         been made.
77696
77697 2003-08-11  Paul Eggert  <eggert@twinsun.com>
77698
77699         * modules/gnu-source, m4/gnu-source.m4:
77700         Remove; we're assuming Autoconf 2.54 or later now.
77701         Suggested by Bruno Haible.
77702         * MODULES.html.sh (func_all_modules): Remove gnu-source.
77703
77704 2003-08-11  Bruno Haible  <bruno@clisp.org>
77705
77706         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
77707
77708 2003-08-11  Bruno Haible  <bruno@clisp.org>
77709
77710         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
77711         (vasnprintf): Use it instead of wcslen.
77712
77713 2003-08-11  Bruno Haible  <bruno@clisp.org>
77714
77715         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
77716         value to ensure that _Bool promotes to int. Use #define for _Bool when
77717         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
77718
77719 2003-08-10  Karl Berry  <karl@gnu.org>
77720
77721         * lib/regex.h: update from libc (whitespace fix).
77722
77723 2003-08-09  Paul Eggert  <eggert@twinsun.com>
77724
77725         Merge some files from coreutils.  These changes were
77726         originally made by Jim Meyering.
77727         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
77728         many older Unixes require this.
77729         * lib/alloca.c (alloca): Remove cast to argument of free;
77730         no longer needed in C89.
77731         * lib/alloca_.h, regex.h: Fix white space to match
77732         what GNU indent does.
77733
77734 2003-08-09  Paul Eggert  <eggert@twinsun.com>
77735
77736         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
77737         apparently Emacs's Unicode mode got confused before my 2003-08-05
77738         checkin.
77739
77740 2003-08-08  Paul Eggert  <eggert@twinsun.com>
77741
77742         * m4/extensions.m4: New file.
77743         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
77744         Require gl_USE_SYSTEM_EXTENSIONS.
77745         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
77746         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
77747
77748 2003-08-08  Paul Eggert  <eggert@twinsun.com>
77749
77750         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
77751         * modules/extensions, modules/gnu-source: New files.
77752         * modules/timespec, modules/unlocked-io: Depend on extensions.
77753
77754 2003-08-07  Paul Eggert  <eggert@twinsun.com>
77755
77756         * modules/restrict: New file.
77757         * MODULES.html.sh (func_all_modules): Add restrict.
77758         * modules/regex: Depend on restrict.
77759
77760 2003-08-07  Paul Eggert  <eggert@twinsun.com>
77761
77762         * m4/restrict.m4: New file.
77763         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
77764
77765 2003-08-07  Bruno Haible  <bruno@clisp.org>
77766
77767         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
77768         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
77769
77770 2003-08-07  Bruno Haible  <bruno@clisp.org>
77771
77772         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
77773         makes the module 'getndelim2' compatible with the module 'getline'.
77774
77775 2003-08-05  Paul Eggert  <eggert@twinsun.com>
77776
77777         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
77778         byte with "\201" to avoid glitches when editing that source file
77779         with multi-gnome-terminal.
77780
77781 2003-08-05  Paul Eggert  <eggert@twinsun.com>
77782
77783         * lib/bumpalloc.h: Remove.
77784
77785 2003-08-05  Paul Eggert  <eggert@twinsun.com>
77786
77787         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
77788         * modules/bumpalloc: Remove.
77789
77790 2003-08-04  Paul Eggert  <eggert@twinsun.com>
77791
77792         * lib/getloadavg.c: Change copyright notice and spacing to conform to
77793         GNU coding style.
77794
77795         Merge from coreutils.
77796         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
77797         1. From glibc.
77798         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
77799         from Karl Berry, implemented by Jim Meyering.
77800         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
77801         from Dmitry V. Levin.
77802         Remove anachronistic cast of xrealloc.
77803         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
77804         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
77805         type. Otherwise, it wouldn't compile with at least /bin/cc on
77806         ymp-cray-unicos9.0.2.X.
77807         Combine two mostly-identical uses of alloca into one.
77808         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
77809
77810 2003-08-04  Dave Love  <d.love@dl.ac.uk>
77811
77812         [From Emacs.]
77813
77814         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
77815         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
77816         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
77817         obsolete NLIST_NAME_UNION.
77818         [__GNU__]: Undef BSD and FSCALE.
77819         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
77820
77821 2003-08-03  Paul Eggert  <eggert@twinsun.com>
77822
77823         * lib/stdbool_.h (_Bool): Make it signed char, instead of
77824         an enum type, so that it's guaranteed to promote to int.  See:
77825         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
77826
77827 2003-08-03  Karl Berry  <karl@gnu.org>
77828
77829         * config/depcomp: update from automake.
77830
77831 2003-07-31  Paul Eggert  <eggert@twinsun.com>
77832
77833         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
77834         (strerror): Don't assume that a printable int fits in 14 bytes.
77835
77836 2003-07-31  Bruno Haible  <bruno@clisp.org>
77837
77838         * modules/getpass-gnu: New file.
77839         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
77840
77841 2003-07-31  Bruno Haible  <bruno@clisp.org>
77842
77843         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
77844
77845 2003-07-24  Karl Berry  <karl@gnu.org>
77846
77847         * config/missing: update from automake.
77848
77849 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
77850             Bruno Haible  <bruno@clisp.org>
77851
77852         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
77853         * lib/getline.c (getline, getdelim): Likewise.
77854         Remove _GNU_SOURCE define; now it's defined in config.h through
77855         m4/getline.m4.
77856
77857 2003-07-23  Karl Berry  <karl@gnu.org>
77858
77859         * config/config.sub: update from prep.
77860
77861 2003-07-22  Paul Eggert  <eggert@twinsun.com>
77862
77863         * modules/xalloc (Depends-on): Add exitfail.
77864         * modules/xmemcoll: Likewise.
77865
77866 2003-07-22  Paul Eggert  <eggert@twinsun.com>
77867
77868         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
77869         over-parenthesization in macros.
77870
77871         Sync with coreutils.
77872
77873         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
77874         required by C99.
77875
77876         Use `exit_failure' for xalloc and xmemcoll instead of their own
77877         private exit-failure variables.
77878         * lib/xalloc.h (xalloc_exit_failure): Remove.
77879         * lib/xmalloc.c: Likewise.  Include exitfail.h.
77880         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
77881         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
77882         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
77883         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
77884
77885 2003-07-20  Jim Meyering  <jim@meyering.net>
77886
77887         * modules/closeout (Depends-on): Add exitfail.
77888         Suggestion from Bruno Haible.
77889
77890 2003-07-19  Karl Berry  <karl@gnu.org>
77891
77892         * config/config.sub: update from prep.
77893
77894 2003-07-18  Paul Eggert  <eggert@twinsun.com>
77895
77896         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
77897         Remove.
77898         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
77899         to test that it can stand by itself.  Include "exitfail.h".
77900         Clients should set exit_failure instead.
77901         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
77902
77903 2003-07-18  Bruno Haible  <bruno@clisp.org>
77904
77905         * modules/getndelim2: New file.
77906         * modules/getline: Share files with module getndelim2.
77907         * modules/getnline: Depend on getndelim2 instead of sharing files with
77908         it. Add getnline.c to lib_SOURCES.
77909         * MODULES.html.sh (func_all_modules): Add getndelim2.
77910
77911 2003-07-18  Bruno Haible  <bruno@clisp.org>
77912
77913         * m4/getndelim2.m4: New file.
77914         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
77915         invoke gl_PREREQ_GETNDELIM2.
77916         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
77917         gl_PREREQ_GETNDELIM2.
77918         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
77919         gl_GETNDELIM2.
77920
77921 2003-07-18  Bruno Haible  <bruno@clisp.org>
77922
77923         * lib/getndelim2.h: New file.
77924         * lib/getndelim2.c: Make into a module of its own. Include config.h,
77925         getndelim2.h.
77926         (getndelim2): Make non-static. Change return type to ssize_t.
77927         * lib/getline.h: Change argument names.
77928         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
77929         * lib/getnline.c: Include getndelim2.h.
77930
77931 2003-07-18  Andreas Schwab  <schwab@suse.de>
77932
77933         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
77934
77935 2003-07-17  Karl Berry  <karl@gnu.org>
77936
77937         * config/config.sub: update from prep.
77938
77939 2003-07-17  Bruno Haible  <bruno@clisp.org>
77940
77941         * modules/getnline: New file.
77942         * modules/getline: Add lib/getndelim2.c to source file list.
77943         * MODULES.html.sh (func_all_modules): Add getnline.
77944
77945 2003-07-17  Bruno Haible  <bruno@clisp.org>
77946
77947         * m4/getnline.m4: New file.
77948
77949 2003-07-17  Bruno Haible  <bruno@clisp.org>
77950
77951         * m4/Makefile.am.in: Remove file.
77952         * m4/Makefile.am: Remove file.
77953         * m4/Makefile.in: Remove file.
77954
77955 2003-07-17  Bruno Haible  <bruno@clisp.org>
77956
77957         * lib/getnline.h: New file.
77958         * lib/getnline.c: New file.
77959         * lib/getndelim2.c: New file, extracted from getline.c.
77960         (getndelim2): Renamed from getdelim2, with added nmax argument.
77961         * lib/getline.c: Include getndelim2.c.
77962         (getdelim2): Moved out to getndelim2.c.
77963         (getline, getdelim): Update.
77964
77965 2003-07-17  Bruno Haible  <bruno@clisp.org>
77966
77967         * lib/Makefile.am: Remove file.
77968         * lib/Makefile.in: Remove file.
77969
77970 2003-07-17  Bruno Haible  <bruno@clisp.org>
77971
77972         * configure.in: Remove file.
77973         * Makefile.in: Remove file.
77974
77975 2003-07-17  Bruno Haible  <bruno@clisp.org>
77976
77977         * MODULES.html.sh: Put the </BODY> right before </HTML>.
77978
77979 2003-07-16  Karl Berry  <karl@gnu.org>
77980
77981         * config/srclist-update: was running fixlicense twice, which caused
77982                 texinfo.tex to be nullified for some reason.  Simplify,
77983                 $gplsrc is no longer needed as far as I can see?
77984
77985 2003-07-16  Jim Meyering  <jim@meyering.net>
77986
77987         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
77988
77989 2003-07-15  Paul Eggert  <eggert@twinsun.com>
77990
77991         * config/srclist.txt: Get the following files from gettext-runtime/intl
77992         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
77993         ref-del.sin.  From Bruno Haible.
77994         * config/srclist-update (fixfile): Change grep pattern again, since the
77995         previous fix didn't work (there was another trailing $).  Use
77996         '[$]' to escape the $s.
77997
77998 2003-07-15  Karl Berry  <karl@gnu.org>
77999
78000         * lib/vasnprintf.c: update from gettext.
78001
78002 2003-07-15  Karl Berry  <karl@gnu.org>
78003
78004         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
78005         gets expanded when surrounded by '$'.
78006
78007 2003-07-15  Jim Meyering  <jim@meyering.net>
78008
78009         * modules/save-cwd: Don't depend on error.  From Derek Price.
78010
78011 2003-07-15  Jim Meyering  <jim@meyering.net>
78012
78013         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
78014
78015 2003-07-14  Simon Josefsson  <jas@extundo.com>
78016
78017         * modules/mempcpy: New file.
78018         * MODULES.html.sh (func_all_modules): Add mempcpy.
78019
78020 2003-07-14  Simon Josefsson  <jas@extundo.com>
78021
78022         * m4/mempcpy.m4: New file.
78023
78024 2003-07-14  Simon Josefsson  <jas@extundo.com>
78025
78026         * lib/mempcpy.h: New file.
78027         * lib/mempcpy.c: New file.
78028
78029 2003-07-14  Paul Eggert  <eggert@twinsun.com>
78030
78031         * modules/getdate, modules/posixtm: Depend on mktime.
78032
78033 2003-07-14  Paul Eggert  <eggert@twinsun.com>
78034
78035         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
78036         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
78037         unicodeio.c, unicodeio.h, unlocked-io.h:
78038         Switch from LGPL to GPL.
78039
78040 2003-07-14  Paul Eggert  <eggert@twinsun.com>
78041
78042         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
78043         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
78044         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
78045         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
78046         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
78047         updated automatically by ../config/srclist-update.  This changes
78048         their license from LPGL to GPL.
78049
78050 2003-07-14  Paul Eggert  <eggert@twinsun.com>
78051
78052         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
78053         assumed to refer to the root of the most recent stable gettext version.
78054         * config/srclistvars.sh: Add defaults for eggert.
78055         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
78056         Match "This program" as well as "The program".  This is needed
78057         for gettext.
78058
78059 2003-07-14  Jim Meyering  <jim@meyering.net>
78060
78061         Don't emit diagnostics.  Let callers do that.
78062         * lib/save-cwd.c: Don't include "error.h".
78063         (save_cwd): Don't call error.  Ensure that errno is valid
78064         when returning nonzero.
78065
78066         * lib/save-cwd.h (restore_cwd): Update prototype.
78067         * lib/save-cwd.c (restore_cwd): Remove two parameters.
78068         Simplify.  Don't call error upon failure.  Let callers do that.
78069         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
78070         when auditing is enabled.  But don't bother updating the #if.
78071
78072 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
78073
78074         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
78075         it breaks C++ compilation.
78076         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
78077
78078 2003-07-10  Simon Josefsson  <jas@extundo.com>
78079
78080         * modules/strchrnul (Makefile.am): Add strchrnul.h.
78081
78082 2003-07-10  Jim Meyering  <jim@meyering.net>
78083
78084         * m4/clock_time.m4: Remove trailing blank.
78085         * m4/intmax_t.m4: Likewise.
78086
78087 2003-07-10  Jim Meyering  <jim@meyering.net>
78088
78089         * lib/vasnprintf.c: Remove trailing blanks.
78090         Make cpp indentation consistent.
78091
78092 2003-07-09  Paul Eggert  <eggert@twinsun.com>
78093
78094         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
78095         posixver.c, strftime.c, strnlen.c, strverscmp.c:
78096         Switch from LGPL to GPL.
78097
78098 2003-07-09  Paul Eggert  <eggert@twinsun.com>
78099
78100         * config/srclist.txt: Sort sublists.  Add
78101         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
78102         that differ from gnulib for one reason or another; we'd like this list
78103         to be smaller but for now let's document what we have.
78104
78105 2003-07-08  Paul Eggert  <eggert@twinsun.com>
78106
78107         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
78108         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
78109         and sweeter "eval x=$x".
78110         * config/srclist.txt: Get lib/argp* from glibc.
78111
78112 2003-07-07  Paul Eggert  <eggert@twinsun.com>
78113
78114         * lib/mktime.c: Fix some boundary cases and remove need for floating
78115         point.
78116
78117         Issue a compile-time diagnostic if time_t is floating point, or if
78118         two's complement arithmetic is not in effect, or if arithmetic
78119         right shift does not propagate the sign.  These assumptions were
78120         all in the original code but they weren't checked.
78121
78122         (TIME_T_MIDPOINT, verify): New macros.
78123         (__isleap): Remove; it has integer overflow problems.
78124         (leapyear): New function, without those problems.
78125         (ydhms_tm_diff): Remove; splitting into two parts.
78126         (ydhms_diff): New function, containing the arithmetic part of
78127         the old ydhms_tm_diff function.  Issue a compile-time
78128         diagnostic if we are not using C99 integer division.
78129         Avoid casts when possible.
78130         (guess_time_tm): New function, containing the checking part of
78131         the old ydhms_tm_diff function.  Return the new value, rather than
78132         the difference between it and the old.  Accept a new argument T
78133         so that *T specifies the old value.  Check for overflow in the result.
78134
78135         (__mktime_internal): Use a time_t offset, not a long int offset.
78136         This undoes the 2003-06-04 change, which is no longer needed now
78137         that we have better overflow checking.
78138         (localtime_offset): Likewise.
78139
78140         (__mktime_internal): Avoid harmful overflow on hosts where time_t
78141         and long are 64-bit but int is only 32-bit.
78142         (ydhms_diff): Use long int to store year1 and yday1.
78143         Issue a compile-time diagnostic if long int is not wide enough.
78144
78145         (__mktime_internal): Use long int to store adjusted year and yday.
78146         Use plain C rather than preprocessor commands, if that doesn't
78147         affect efficiency.
78148         Check for overflow (and try to repair) after each probe
78149         rather than checking only at the very end.  This avoids some bugs
78150         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
78151         does not equal GMT offset at maximum time).
78152         Use integer to check for overflow rather than floating point; this
78153         is more portable to non-IEEE hosts, and is a tad faster.
78154         When we detect that we are oscillating between two values,
78155         don't check whether tm_isdst has the requested value, since
78156         we already know the answer.  When tm_isdst has the wrong value,
78157         use a different heuristic to find the right one, based on the
78158         extreme values actually observed in practice in tz2003a,
78159         rather than the (overly optimistic) "previous 3 calendar quarters".
78160
78161         (not_equal_tm, print_tm, check_result): Use "const T" rather than
78162         "T const" to accommodate glibc style.
78163         (check_result): Use less-confusing report format.  "long" -> "long int.
78164         (main): Likewise.
78165         Don't loop if the iteration overflows time_t.
78166         Allow a negative step in the iteration.
78167
78168 2003-07-06  Karl Berry  <karl@gnu.org>
78169
78170         * config/depcomp: update from automake.
78171         * config/config.sub: update from prep.
78172
78173 2003-07-03  Karl Berry  <karl@gnu.org>
78174
78175         * config/config.guess: update from prep.
78176
78177 2003-07-01  Paul Eggert  <eggert@twinsun.com>
78178
78179         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
78180         xreadlink.c now includes it unconditionally.
78181
78182 2003-07-01  Paul Eggert  <eggert@twinsun.com>
78183
78184         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
78185         having it depend on HAVE_SYS_TYPES_H.
78186
78187 2003-07-01  Bruno Haible  <bruno@clisp.org>
78188
78189         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
78190         <sys/types.h> should be sufficient.
78191         Reported by Paul Eggert.
78192
78193 2003-06-26  Karl Berry  <karl@gnu.org>
78194
78195         * config/depcomp: update from automake.
78196
78197 2003-06-26  Bruno Haible  <bruno@clisp.org>
78198
78199         * modules/human: Depend on module stdbool.
78200
78201 2003-06-25  Bruno Haible  <bruno@clisp.org>
78202
78203         * modules/readlink: New file.
78204         * modules/xreadlink: Depend on it.
78205         * MODULES.html.sh (func_all_modules): Add readlink.
78206
78207 2003-06-25  Bruno Haible  <bruno@clisp.org>
78208
78209         * m4/readlink.m4: New file.
78210
78211 2003-06-25  Bruno Haible  <bruno@clisp.org>
78212
78213         * lib/readlink.c: New file.
78214
78215 2003-06-22  Karl Berry  <karl@gnu.org>
78216
78217         * config/srclist.txt: update mkinstalldirs from automake.
78218         * config/mkinstalldirs: update.
78219
78220 2003-06-22  Bruno Haible  <bruno@clisp.org>
78221
78222         Portability to mingw32.
78223         * m4/ssize_t.m4: New file, from GNU gettext.
78224         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
78225         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
78226
78227 2003-06-22  Bruno Haible  <bruno@clisp.org>
78228
78229         * modules/safe-read: Add m4/ssize_t.m4.
78230         * modules/xreadlink: Add m4/ssize_t.m4.
78231
78232 2003-06-20  Bruno Haible  <bruno@clisp.org>
78233
78234         Assume C89, so PARAMS isn't needed.
78235         * lib/unicodeio.h (PARAMS): Remove.
78236         * lib/unicodeio.c: Don't use PARAMS.
78237
78238 2003-06-18  Karl Berry  <karl@gnu.org>
78239
78240         * config/config.{guess,sub}: update from prep.
78241
78242 2003-06-18  Jim Meyering  <jim@meyering.net>
78243
78244         Merge changes from coreutils.
78245         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
78246         Remove explicit declarations of xmalloc and realloc.
78247         Include xalloc.h.
78248         (read_utmp): Remove anachronistic cast of xmalloc.
78249
78250 2003-06-17  Paul Eggert  <eggert@twinsun.com>
78251
78252         Assume C89, so PARAMS isn't needed.
78253         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
78254         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
78255         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
78256         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
78257         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
78258         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
78259         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
78260         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
78261         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
78262         lib/xstrtod.h, lib/xstrtol.h: Likewise.
78263         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
78264         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
78265         no longer needed. Anyway, config.h should always be included before any
78266         other file.
78267
78268 2003-06-11  Simon Josefsson  <jas@extundo.com>
78269
78270         * modules/sysexits: New file.
78271         * MODULES.html.sh (func_all_modules): Add sysexits.
78272
78273 2003-06-11  Simon Josefsson  <jas@extundo.com>
78274
78275         * lib/sysexit_.h: New file.
78276
78277 2003-06-11  Derek Price  <derek@ximbiot.com>
78278
78279         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
78280         necessary.
78281
78282 2003-06-11  Bruno Haible  <bruno@clisp.org>
78283
78284         * m4/sysexits.m4: New file.
78285
78286 2003-06-10  Simon Josefsson  <jas@extundo.com>
78287
78288         * lib/argp.h: New file, from glibc.
78289         * lib/argp-ba.c: New file, from glibc.
78290         * lib/argp-eexst.c: New file, from glibc.
78291         * lib/argp-fmtstream.c: New file, from glibc.
78292         * lib/argp-fmtstream.h: New file, from glibc.
78293         * lib/argp-fs-xinl.c: New file, from glibc.
78294         * lib/argp-help.c: New file, from glibc.
78295         * lib/argp-namefrob.h: New file, from glibc.
78296         * lib/argp-parse.c: New file, from glibc.
78297         * lib/argp-pv.c: New file, from glibc.
78298         * lib/argp-pvh.c: New file, from glibc.
78299         * lib/argp-xinl.c: New file, from glibc.
78300
78301 2003-06-10  Simon Josefsson  <jas@extundo.com>
78302
78303         * modules/strchrnul: New file.
78304
78305 2003-06-10  Simon Josefsson  <jas@extundo.com>
78306
78307         * modules/argp: New file.
78308
78309 2003-06-10  Simon Josefsson  <jas@extundo.com>
78310
78311         * m4/strchrnul.m4: New file.
78312
78313 2003-06-10  Simon Josefsson  <jas@extundo.com>
78314
78315         * lib/strchrnul.h: New file.
78316         * lib/strchrnul.c: New file.
78317
78318 2003-06-10  Bruno Haible  <bruno@clisp.org>
78319
78320         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
78321
78322 2003-06-07  Karl Berry  <karl@gnu.org>
78323
78324         * config/config.{guess,sub}: update from prep.
78325
78326 2003-06-07  Jim Meyering  <jim@meyering.net>
78327
78328         * modules/strtod: Use $(...) notation, not @...@ for
78329         AC_REPLACE'd variables.
78330         * modules/localcharset: Likewise.
78331
78332 2003-06-07  Jim Meyering  <jim@meyering.net>
78333
78334         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
78335         in place of my name in the copyright comment.
78336         Remove definition and uses of __P.
78337
78338         From coreutils.
78339         * lib/stat.c: Don't declare xmalloc explicitly.
78340         Instead, include "xalloc.h".
78341         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
78342         xrealloc, and xcalloc return values.
78343         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
78344         Improve comment.
78345         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
78346
78347 2003-06-07  Bruno Haible  <bruno@clisp.org>
78348
78349         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
78350         avoid AC_CONFIG_LINKS.
78351         * modules/fnmatch (Makefile.am): Use explicit creation rule for
78352         fnmatch.h, to avoid AC_CONFIG_LINKS.
78353         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
78354
78355 2003-06-07  Bruno Haible  <bruno@clisp.org>
78356
78357         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
78358         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
78359         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
78360         directory.
78361         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
78362         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
78363         directory.
78364
78365 2003-06-06  Jim Meyering  <jim@meyering.net>
78366
78367         Merge from coreutils.
78368         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
78369         Consolidate declarations and initializations of *_base* locals.
78370
78371         Merge from coreutils.
78372         This avoids a core dump on systems without GNU putenv,
78373         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
78374         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
78375         (unsetenv): New static function, from GNU libc.
78376         (rpl_putenv): Use it.
78377
78378         * lib/modechange.c: Remove trailing blanks.
78379
78380         Merge from coreutils.
78381         * lib/fsusage.c: Remove declaration of statfs.
78382         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
78383
78384         * lib/posixtm.c: Include <stdbool.h> unconditionally.
78385
78386 2003-06-06  Jim Meyering  <jim@meyering.net>
78387
78388         * lib/stdbool_.h: Renamed from stdbool.h.in.
78389
78390 2003-06-06  Jim Meyering  <jim@meyering.net>
78391             Bruno Haible  <bruno@clisp.org>
78392
78393         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
78394         Adjust Makefile.am snippet not to redirect directly to target.
78395         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
78396
78397 2003-06-05  Paul Eggert  <eggert@twinsun.com>
78398
78399         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
78400         mismatch, look in future quarters as well as past.  This fixes a
78401         bug when processing fall-backwards gaps immediately after a long
78402         period of daylight-saving time.
78403
78404         * lib/mktime.c: Assume freestanding C89 or better.
78405         (HAVE_LIMITS_H): Remove.  Assume it's 1.
78406         (__P): Remove; not used.
78407         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
78408         (mktime, not_equal_tm, print_tm, check_result,
78409         main): Use prototypes.  Use const * where appropriate.
78410         (main): Fix typo in testing code that uncovered by above changes.
78411         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
78412
78413 2003-06-04  Paul Eggert  <eggert@twinsun.com>
78414
78415         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
78416         locale.h, localeconv.  This merges changes from coreutils.
78417
78418         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
78419         It can be removed after the next Autoconf is released.
78420         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
78421         needed.
78422
78423 2003-06-04  Paul Eggert  <eggert@twinsun.com>
78424
78425         * lib/mktime.c: Fix Debian bug 177940
78426         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
78427         (localtime_offset): Now long int, not time_t, because we want it
78428         to be guaranteed to be signed.  All uses changed.
78429         (__mktime_internal): If overflow would occur when adding offset,
78430         don't add it.
78431
78432         Merge 'human' changes from coreutils.  Rewrite to support
78433         locale-specific notations like thousands separators.
78434         * lib/human.c: Simplify authorship notice.
78435         Include human.h immediately after config.h.
78436         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
78437         <limits.h>: Do not include, since human.h does.
78438         (SIZE_MAX, UINTMAX_MAX): New macros.
78439         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
78440         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
78441         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
78442         (power_letter): Renamed from suffixes.
78443         (generate_suffix_backwards): Remove.
78444         (adjust_value): Now takes int style (because of human.h changes)
78445         and long double value (for greater precision on some platforms).
78446         (group_number): New function.
78447         (human_readable): Use it.  Use integer options, not enum.
78448         Put the options before the sizes in the arg list.
78449         Support all the new options.
78450         The old human_readable function has been removed;
78451         use inttostr.h instead.
78452         (human_readable, default_block_size, humblock):
78453         Use uintmax_t, not int, for block sizes.
78454         (human_readable_inexact, block_size_types): Remove.
78455         (block_size_opts): New constant.
78456         (human_options): Renamed from human_block_size, with new signature
78457         that allows block sizes up to UINTMAX_MAX.  All callers changed.
78458         * lib/human.h: Add copyright and authorship notice.
78459         Include <limits.h> and <stdbool.h> unconditionally.
78460         (PARAMS): Remove.  All uses removed.
78461         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
78462         (enum human_inexact_style): Remove tag; now a nameless enum.
78463         (human_floor, human_ceiling, human_round_to_even): Now have
78464         values 2, 0, 1 rather than -1, 1, 0.
78465         (human_group_digits, human_suppress_point_zero, human_autoscale,
78466         human_base_1024, human_SI, human_B): New constants.
78467         (human_readable_inexact, human_block_size): Remove.
78468         (human_readable): Size args are now uintmax_t, not int.
78469         (human_options): New decl.
78470
78471         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
78472         unnecessary now that we assume C89 or better.  This change
78473         imported from coreutils.
78474
78475         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
78476         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
78477         in the 2003-05-30 sync from glibc.
78478
78479         .h files should stand alone, but we shouldn't include <sys/types.h>
78480         if we can get away with just <stddef.h>.
78481
78482         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
78483         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
78484         rather than <sys/types.h>, as we merely need size_t.
78485         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
78486         to get size_t.
78487         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
78488         Include <stdio.h>, to get FILE.
78489         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
78490         memcasecmp.h has included <stddef.h> and all we need is size_t.
78491         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
78492         our interface, instead of including <sys/types.h>
78493
78494 2003-06-04  Paul Eggert  <eggert@twinsun.com>
78495
78496         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
78497         now, as glibc mktime is buggy on non-glibc systems.
78498
78499 2003-06-03  Karl Berry  <karl@gnu.org>
78500
78501         * config/config.sub: update from prep.
78502
78503 2003-06-02  Paul Eggert  <eggert@twinsun.com>
78504
78505         [from coreutils]
78506         Fix some minor time-related bugs with POSIX time arguments.
78507         Some valid time stamps were being rejected (notably -1, and
78508         time stamps before 1900 on 64-bit hosts).  And some invalid
78509         time stamps were being accepted, e.g. September 31.
78510
78511         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
78512         that we can return (time_t) -1 successfully.
78513         * lib/posixtm.c: Likewise.
78514         [HAVE_STDBOOL_H]: Include <stdbool.h>.
78515         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
78516         (t): Remove static var.
78517         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
78518         of static var.  All uses changed.
78519         (year): Do not reject years before 1900; they can occur with
78520         64-bit time_t.
78521         (posix_time_parse): Do not check for out-of-range components;
78522         that is now the caller's responsibility, since our checks were
78523         only approximations.
78524         (posixtime): Use mktime to check for out-of-range components,
78525         since it knows them exactly.
78526         If mktime returns (time_t) -1, check whether an error actually occurred
78527         by invoking localtime on -1.
78528         (main) [TEST_POSIXTIME]: Check for input data errors, and report
78529         posixtime failures better.
78530         Improve the test data (in comments only).
78531
78532 2003-06-02  Karl Berry  <karl@gnu.org>
78533
78534         * config/mkinstalldirs (version): new variable.
78535         (--version): new option.
78536         (usage): improve message.
78537
78538 2003-05-30  Karl Berry  <karl@gnu.org>
78539
78540         * lib/mktime.c: update from libc.
78541
78542 2003-05-30  Bruno Haible  <bruno@clisp.org>
78543
78544         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
78545         * config/config.rpath: Upgrade to gettext-0.12.1.
78546
78547 2003-05-30  Bruno Haible  <bruno@clisp.org>
78548
78549         * m4/gettext.m4: Upgrade to gettext-0.12.1.
78550         * m4/nls.m4: New file, from gettext-0.12.1.
78551         * m4/po.m4: New file, from gettext-0.12.1.
78552         * m4/progtest.m4: Upgrade to gettext-0.12.1.
78553
78554 2003-05-30  Bruno Haible  <bruno@clisp.org>
78555
78556         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
78557         * lib/localcharset.h: Likewise.
78558         * lib/localcharset.c: Likewise.
78559
78560 2003-05-29  Karl Berry  <karl@gnu.org>
78561
78562         * config/config.rpath: update from gettext.
78563
78564 2003-05-28  Paul Eggert  <eggert@twinsun.com>
78565
78566         Assume the headers required for C89 freestanding compilers.
78567         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
78568         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
78569         * m4/human.m4 (gl_HUMAN): Likewise.
78570         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
78571         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
78572         * m4/userspec.m4 (gl_USERSPEC): Likewise.
78573         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
78574         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
78575         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
78576
78577 2003-05-28  Paul Eggert  <eggert@twinsun.com>
78578
78579         Assume the headers required for C89 freestanding compilers.
78580         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
78581         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
78582         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
78583         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
78584         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
78585         define, since <limits.h> is guaranteed to do that.
78586         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
78587         * lib/exclude.c: Include <stdbool.h> unconditionally.
78588         * lib/tempname.c: Include <stddef.h> unconditionally.
78589         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
78590         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
78591         <stddef.h> does that.
78592         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
78593         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
78594         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
78595         needed.
78596         * lib/xstrtol.c: Likewise.
78597         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
78598         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
78599
78600         * lib/addext.c (addext): Use assignment rather than cast, to avoid
78601         warnings on some platforms.
78602
78603         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
78604         arbitrarily.
78605
78606 2003-05-26  Jim Meyering  <jim@meyering.net>
78607
78608         Merge in a change from coreutils:
78609         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
78610         that is guaranteed to be `no'.  Use `no_such_member' to indicate
78611         that condition, rather than `-1' which is slightly misleading.
78612         Change the name of the cache variable to have the gl_ prefix.
78613         Prompted by a patch from Richard Dawe for DJGPP.
78614
78615 2003-05-24  Karl Berry  <karl@gnu.org>
78616
78617         * config/config.guess: update from prep.
78618
78619 2003-05-22  Karl Berry  <karl@gnu.org>
78620
78621         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
78622
78623 2003-05-20  Karl Berry  <karl@gnu.org>
78624
78625         * config/config.guess: update from prep.
78626
78627 2003-05-18  Karl Berry  <karl@gnu.org>
78628
78629         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
78630         might actually be set by the user.
78631
78632         * config/depcomp, install-sh, mdate-sh: update from automake.
78633
78634 2003-05-17  Bruno Haible  <bruno@clisp.org>
78635
78636         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
78637         invalid expansion for AC_EGREP_CPP.
78638         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
78639         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
78640         Suggested by Akim Demaille <akim@epita.fr> in
78641         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
78642
78643 2003-05-12  Jim Meyering  <jim@meyering.net>
78644
78645         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
78646         the space-padded-by-default conversion specifiers, %e, %k, %l.
78647
78648 2003-05-12  Bruno Haible  <bruno@clisp.org>
78649
78650         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
78651         the string is longer than 4 KB.
78652
78653 2003-05-11  Karl Berry  <karl@gnu.org>
78654
78655         * config/config.{guess,sub}: update from prep.
78656
78657 2003-05-09  Bruno Haible  <bruno@clisp.org>
78658
78659         * modules/error: Add m4/strerror_r.m4 to file list.
78660
78661 2003-05-03  Bruno Haible  <bruno@clisp.org>
78662
78663         Upgrade to Unicode-4.0.
78664         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
78665         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
78666         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
78667         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
78668         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
78669         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
78670         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
78671         Change width of U+E0100..U+E01EF from 1 to 0.
78672
78673 2003-04-25  Jim Meyering  <jim@meyering.net>
78674
78675         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
78676         of type size_t, not int.
78677
78678 2003-04-25  Bruno Haible  <bruno@clisp.org>
78679
78680         * lib/copy-file.c: Include <stddef.h>, for size_t.
78681
78682 2003-04-21  Paul Eggert  <eggert@twinsun.com>
78683
78684         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
78685         code which expansion is under static control.  Patch imported from
78686         Akim Demaille's patch to Bison; see
78687         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
78688
78689 2003-04-14  Bruno Haible  <bruno@clisp.org>
78690
78691         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
78692
78693 2003-04-11  Jim Meyering  <jim@meyering.net>
78694
78695         Merge changes from Coreutils.
78696
78697         2003-03-22  Jim Meyering  <jim@meyering.net>
78698
78699         * lib/strftime.c (widen): Cast alloca return value to proper type.
78700
78701         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
78702
78703         From GNU libc.
78704         * lib/strftime.c (my_strftime): Handle very large width
78705         specifications for numeric values correctly.  Improve checks for
78706         overflow.
78707
78708         2003-01-19  Jim Meyering  <jim@meyering.net>
78709
78710         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
78711         definitions.
78712         (nl_get_alt_digit) [! defined my_strftime]: Define.
78713         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
78714         _nl_get_alt_digit and _nl_get_walt_digit.
78715
78716         * lib/strftime.c (my_strftime): Merge in locale-related changes from
78717         libc. These changes have no effect outside of _LIBC.
78718
78719 2003-04-10  Bruno Haible  <bruno@clisp.org>
78720
78721         * modules/findprog: New file.
78722         * MODULES.html.sh (func_all_modules): Add it.
78723
78724 2003-04-10  Bruno Haible  <bruno@clisp.org>
78725
78726         * m4/findprog.m4: New file.
78727         * m4/eaccess.m4: New file.
78728
78729 2003-04-10  Bruno Haible  <bruno@clisp.org>
78730
78731         * lib/findprog.h: New file, from GNU gettext.
78732         * lib/findprog.c: New file, from GNU gettext.
78733
78734 2003-04-05  Jim Meyering  <jim@meyering.net>
78735
78736         Merge changes from Coreutils.
78737
78738         * lib/exclude.h (PARAMS): Remove definition and uses.
78739         * lib/exclude.c: Remove uses of `PARAMS'.
78740
78741         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
78742         Add test-cases for DOS filenames. Declare program_name.
78743         (main): Set up program_name.  Patch by Rich Dawe.
78744
78745         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
78746         error from mntctl.
78747         Use mntctl's return value to drive the entry-processing loop, since
78748         we can't rely on the value of the vmt_length member in the last
78749         entry.  On some systems doing so could result in exhausting
78750         virtual memory.  Based in part on a patch from Mike Jetzer.
78751
78752 2003-04-04  Bruno Haible  <bruno@clisp.org>
78753
78754         * modules/linebreak: New file.
78755         * MODULES.html.sh (func_all_modules): Add it.
78756
78757 2003-04-04  Bruno Haible  <bruno@clisp.org>
78758
78759         * m4/linebreak.m4: New file.
78760
78761 2003-04-04  Bruno Haible  <bruno@clisp.org>
78762
78763         * lib/linebreak.h: New file, from GNU gettext.
78764         * lib/linebreak.c: New file, from GNU gettext with slight
78765         modifications.
78766         * lib/lbrkprop.h: New file, from GNU gettext.
78767
78768 2003-04-03  Bruno Haible  <bruno@clisp.org>
78769
78770         * modules/utf8-ucs4: New file.
78771         * modules/utf16-ucs4: New file.
78772         * modules/ucs4-utf8: New file.
78773         * modules/ucs4-utf16: New file.
78774         * MODULES.html.sh (func_all_modules): Add them.
78775
78776 2003-04-03  Bruno Haible  <bruno@clisp.org>
78777
78778         * m4/utf-ucs4.m4: New file.
78779         * m4/ucs4-utf.m4: New file.
78780
78781 2003-04-03  Bruno Haible  <bruno@clisp.org>
78782
78783         * lib/utf8-ucs4.h: New file, from GNU gettext.
78784         * lib/utf16-ucs4.h: New file, from GNU gettext.
78785         * lib/ucs4-utf8.h: New file, from GNU gettext.
78786         * lib/ucs4-utf16.h: New file, from GNU gettext.
78787
78788 2003-04-02  Bruno Haible  <bruno@clisp.org>
78789
78790         * modules/binary-io: New file.
78791         * MODULES.html.sh (func_all_modules): Add it.
78792
78793 2003-04-02  Bruno Haible  <bruno@clisp.org>
78794
78795         * lib/binary-io.h: New file, from GNU gettext.
78796
78797 2003-04-01  Bruno Haible  <bruno@clisp.org>
78798
78799         * modules/pathname: New file.
78800         * MODULES.html.sh (func_all_modules): Add it.
78801
78802 2003-04-01  Bruno Haible  <bruno@clisp.org>
78803
78804         * lib/pathname.h: New file, from GNU gettext.
78805         * lib/concatpath.c: New file, from GNU gettext.
78806
78807 2003-03-30  Bruno Haible  <bruno@clisp.org>
78808
78809         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
78810
78811 2003-03-30  Bruno Haible  <bruno@clisp.org>
78812
78813         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
78814         function chown() doesn't exist.
78815
78816 2003-03-28  Bruno Haible  <bruno@clisp.org>
78817
78818         * modules/copy-file: New file.
78819         * MODULES.html.sh (func_all_modules): Add it.
78820
78821 2003-03-28  Bruno Haible  <bruno@clisp.org>
78822
78823         * m4/copy-file.m4: New file.
78824
78825 2003-03-28  Bruno Haible  <bruno@clisp.org>
78826
78827         * lib/copy-file.h: New file, from GNU gettext.
78828         * lib/copy-file.c: New file, from GNU gettext.
78829
78830 2003-03-18  Jim Meyering  <jim@meyering.net>
78831
78832         * lib/quote.c (quote_n): Fix typo in comment.
78833
78834 2003-03-18  Bruno Haible  <bruno@clisp.org>
78835
78836         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
78837         checking.
78838         * m4/onceonly_2_57.m4: Likewise.
78839
78840 2003-03-17  Bruno Haible  <bruno@clisp.org>
78841
78842         * m4/onceonly.m4: Require autoconf 2.54 or newer.
78843         (m4_quote): Remove macro.
78844         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
78845
78846 2003-03-14  Jim Meyering  <jim@meyering.net>
78847
78848         Merge changes from Coreutils.
78849         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
78850         to be const, in order to avoid warnings.
78851         (obstack_room): Likewise.
78852         (obstack_empty_p): Likewise.
78853
78854 2003-03-14  Bruno Haible  <bruno@clisp.org>
78855
78856         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
78857         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
78858
78859 2003-03-13  Paul Eggert  <eggert@twinsun.com>
78860
78861         Merge changes from Bison.
78862         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
78863         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
78864         when compiling Bison 1.875's `bitset bset = obstack_alloc
78865         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
78866         * lib/hash.c: Include <stdbool.h> unconditionally.
78867
78868 2003-03-13  Paul Eggert  <eggert@twinsun.com>
78869
78870         * m4/onceonly.m4 (m4_quote): New macro.
78871         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
78872         Quote AC_FOREACH variable-expansions properly.
78873
78874 2003-03-13  Paul Eggert  <eggert@twinsun.com>
78875
78876         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
78877
78878 2003-03-09  Paul Eggert  <eggert@twinsun.com>
78879
78880         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
78881         Reported by Bruce Becker; see:
78882         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
78883
78884 2003-03-03  Paul Eggert  <eggert@twinsun.com>
78885             Bruno Haible  <bruno@clisp.org>
78886
78887         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
78888         Reported by John Hughes, see
78889         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
78890
78891 2003-02-20  Bruno Haible  <bruno@clisp.org>
78892
78893         * MODULES.html.sh (func_all_modules): Add poll.
78894
78895 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
78896
78897         * modules/poll: New file.
78898
78899 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
78900
78901         * lib/poll_.h: New file.
78902         * lib/poll.c: New file.
78903
78904 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
78905
78906         * m4/poll.m4: New file.
78907
78908 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
78909
78910         * modules/mathl: New file.
78911
78912 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
78913
78914         * lib/mathl.h: New file.
78915         * lib/acosl.c: New file.
78916         * lib/asinl.c: New file.
78917         * lib/atanl.c: New file.
78918         * lib/ceill.c: New file.
78919         * lib/cosl.c: New file.
78920         * lib/expl.c: New file.
78921         * lib/floorl.c: New file.
78922         * lib/frexpl.c: New file.
78923         * lib/ldexpl.c: New file.
78924         * lib/logl.c: New file.
78925         * lib/sincosl.c: New file.
78926         * lib/sinl.c: New file.
78927         * lib/sqrtl.c: New file.
78928         * lib/tanl.c: New file.
78929         * lib/trigl.c: New file.
78930         * lib/trigl.h: New file.
78931
78932 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
78933
78934         * m4/mathl.m4: New file.
78935
78936 2003-02-18  Bruno Haible  <bruno@clisp.org>
78937
78938         * MODULES.html.sh (func_all_modules): Add mathl.
78939
78940 2003-02-17  Bruno Haible  <bruno@clisp.org>
78941
78942         * modules/mkdtemp: New module.
78943         * MODULES.html.sh (func_all_modules): Add it.
78944
78945 2003-02-17  Bruno Haible  <bruno@clisp.org>
78946
78947         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
78948
78949 2003-02-17  Bruno Haible  <bruno@clisp.org>
78950
78951         * lib/mkdtemp.h: New file, from GNU gettext.
78952         * lib/mkdtemp.c: New file, from GNU gettext.
78953
78954 2003-02-02  Jim Meyering  <jim@meyering.net>
78955
78956         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
78957         e.g. glibc-2.2.93.
78958
78959 2003-01-31  Bruno Haible  <bruno@clisp.org>
78960
78961         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
78962         'rpl_rename'.
78963         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
78964         'rpl_strnlen'.
78965         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
78966         'rpl_strtod'.
78967         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
78968         'rpl_utime'.
78969
78970 2003-01-31  Bruno Haible  <bruno@clisp.org>
78971
78972         * lib/rename.c: #undef rename before defining rpl_rename.
78973         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
78974
78975 2003-01-30  Bruno Haible  <bruno@clisp.org>
78976
78977         * modules/vasnprintf, modules/vasprintf: New modules.
78978         * MODULES.html.sh (func_all_modules): Add them.
78979
78980 2003-01-30  Bruno Haible  <bruno@clisp.org>
78981
78982         * m4/signed.m4: New file, from GNU gettext.
78983         * m4/longdouble.m4: New file, from GNU gettext.
78984         * m4/wchar_t.m4: New file, from GNU gettext.
78985         * m4/wint_t.m4: New file, from GNU gettext.
78986         * m4/vasnprintf.m4: New file.
78987         * m4/vasprintf.m4: New file.
78988
78989 2003-01-30  Bruno Haible  <bruno@clisp.org>
78990
78991         * lib/printf-args.h: New file, from GNU gettext.
78992         * lib/printf-args.c: New file, from GNU gettext.
78993         * lib/printf-parse.h: New file, from GNU gettext.
78994         * lib/printf-parse.c: New file, from GNU gettext.
78995         * lib/vasnprintf.h: New file, from GNU gettext.
78996         * lib/vasnprintf.c: New file, from GNU gettext.
78997         * lib/asnprintf.c: New file, from GNU gettext.
78998         * lib/vasprintf.h: New file, from GNU gettext with modifications.
78999         * lib/vasprintf.c: New file, from GNU gettext.
79000         * lib/asprintf.c: New file, from GNU gettext.
79001
79002 2003-01-29  Bruno Haible  <bruno@clisp.org>
79003
79004         * modules/stpncpy: New module.
79005         * MODULES.html.sh (func_all_modules): Add it.
79006
79007 2003-01-29  Bruno Haible  <bruno@clisp.org>
79008
79009         * m4/stpncpy.m4: New file.
79010
79011 2003-01-29  Bruno Haible  <bruno@clisp.org>
79012
79013         * lib/stpncpy.h: New file, from GNU gettext with modifications.
79014         * lib/stpncpy.c: New file, from GNU gettext with modifications.
79015
79016 2003-01-28  Bruno Haible  <bruno@clisp.org>
79017
79018         * modules/c-ctype: New module.
79019         * MODULES.html.sh (func_all_modules): Add it.
79020
79021 2003-01-28  Bruno Haible  <bruno@clisp.org>
79022
79023         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
79024         Paul Eggert.
79025         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
79026         Paul Eggert.
79027
79028 2003-01-27  Bruno Haible  <bruno@clisp.org>
79029
79030         * modules/xsetenv: New module.
79031         * MODULES.html.sh (func_all_modules): Add it.
79032
79033 2003-01-27  Bruno Haible  <bruno@clisp.org>
79034
79035         * lib/xsetenv.h: New file, from GNU gettext.
79036         * lib/xsetenv.c: New file, from GNU gettext.
79037
79038 2003-01-23  Jim Meyering  <jim@meyering.net>
79039
79040         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
79041         from working on systems without dirfd (at least Irix and OSF1/Tru64).
79042
79043 2003-01-23  Bruno Haible  <bruno@clisp.org>
79044
79045         * modules/minmax: New module.
79046         * MODULES.html.sh (func_all_modules): Add it.
79047
79048 2003-01-23  Bruno Haible  <bruno@clisp.org>
79049
79050         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
79051         Eggert.
79052
79053 2003-01-22  Bruno Haible  <bruno@clisp.org>
79054
79055         * modules/exit: New module.
79056         * MODULES.html.sh (func_all_modules): Add it.
79057
79058 2003-01-22  Bruno Haible  <bruno@clisp.org>
79059
79060         * lib/exit.h: New file, from GNU gettext.
79061
79062 2003-01-19  Bruno Haible  <bruno@clisp.org>
79063
79064         * gnulib-tool: Recognize option --extract-maintainer.
79065         (func_get_maintainer): New function.
79066         * modules/*: Add Maintainer entry.
79067
79068 2003-01-16  Jim Meyering  <jim@meyering.net>
79069
79070         * m4/regex.m4: The `regex' struct is both input and output.
79071         Initialize it before each use.  Patch by Tim Waugh.
79072
79073 2003-01-16  Bruno Haible  <bruno@clisp.org>
79074
79075         * MODULES.html.sh: Add a table of contents. Add the module name as
79076         leftmost column. Add hyperlinks.
79077
79078 2003-01-15  Bruno Haible  <bruno@clisp.org>
79079
79080         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
79081
79082 2003-01-15  Bruno Haible  <bruno@clisp.org>
79083
79084         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
79085         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
79086         suffix.
79087
79088 2003-01-15  Bruno Haible  <bruno@clisp.org>
79089
79090         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
79091
79092 2003-01-15  Bruno Haible  <bruno@clisp.org>
79093
79094         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
79095         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
79096
79097 2003-01-14  Jim Meyering  <jim@meyering.net>
79098
79099         * lib/same.c (same_name): Tweak a comment.
79100
79101 2003-01-14  Bruno Haible  <bruno@clisp.org>
79102
79103         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
79104         when a string comparison is sufficient.
79105
79106 2003-01-14  Bruno Haible  <bruno@clisp.org>
79107
79108         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
79109         'unsigned int'.
79110
79111 2003-01-14  Bruno Haible  <bruno@clisp.org>
79112
79113         * lib/hash-pjw.c: Add comment about low quality of this function.
79114
79115 2003-01-13  Bruno Haible  <bruno@clisp.org>
79116
79117         * modules/stpcpy: Distribute lib/stpcpy.h.
79118         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
79119
79120 2003-01-13  Bruno Haible  <bruno@clisp.org>
79121
79122         * modules/*: Add a description.
79123         * modules/strpbrk: Fix Makefile.am snippet.
79124         * modules/strtoimax: Fix dependencies.
79125         * modules/strtoumax: Likewise.
79126
79127 2003-01-13  Bruno Haible  <bruno@clisp.org>
79128
79129         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
79130         * modules/alloca (Makefile.am): All object files depend on alloca.h.
79131         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
79132
79133 2003-01-13  Bruno Haible  <bruno@clisp.org>
79134
79135         * gnulib-tool (func_create_testdir): Store config/* files in the main
79136         directory.
79137         * config.rpath: Move to ...
79138         * config/config.rpath: ... here.
79139         * modules/gettext: Contains config/config.rpath, not config.rpath.
79140         * modules/iconv: Likewise.
79141
79142 2003-01-12  Paul Eggert  <eggert@twinsun.com>
79143
79144         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
79145         to avoid collisions with libcurses and libreadline.
79146
79147         * m4/getstr.m4: Remove.
79148         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
79149
79150 2003-01-12  Paul Eggert  <eggert@twinsun.com>
79151
79152         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
79153         to avoid collisions with libcurses and libreadline.
79154
79155         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
79156         * lib/getstr.h, getstr.c: Remove.
79157         * lib/getline.c: Include "getline.h", to check interface.
79158         Move body of old getstr.c here: this defines MIN_CHUNK and
79159         declares getdelim2, which is renamed from getstr.
79160         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
79161
79162         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
79163         All uses changed.
79164         * lib/linebuffer.h: Likewise.
79165         (readline): Remove backward-compatibility macro.
79166
79167 2003-01-12  Paul Eggert  <eggert@twinsun.com>
79168
79169         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
79170         to avoid collisions with libcurses and libreadline.
79171         * getstr: Remove.
79172         * MODULES.html.sh: Remove getstr.
79173         * modules/getline: Depend on unlocked-io, not getstr.
79174
79175 2003-01-12  Jim Meyering  <jim@meyering.net>
79176
79177         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
79178
79179 2003-01-10  Bruno Haible  <bruno@clisp.org>
79180
79181         * modules/alloca: Change Makefile.am requirements. Simplify Include
79182         requirements. Add lib/alloca_.h to file list.
79183
79184 2003-01-10  Bruno Haible  <bruno@clisp.org>
79185
79186         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
79187
79188 2003-01-10  Bruno Haible  <bruno@clisp.org>
79189
79190         * lib/alloca_.h: New file.
79191         * lib/getdate.y: Unconditionally include alloca.h.
79192         * lib/makepath.c: Likewise.
79193         * lib/setenv.c: Likewise.
79194         * lib/userspec.c: Likewise.
79195
79196 2003-01-09  Karl Berry  <karl@gnu.org>
79197
79198         * MODULES.html.sh: include `dirname $0` in PATH, to find
79199         gnulib-tool.
79200
79201 2003-01-09  Bruno Haible  <bruno@clisp.org>
79202
79203         * modules/stdbool: Change configure.ac, Makefile.am requirements.
79204         Simplify Include requirements. Add lib/stdbool.h.in to file list.
79205
79206 2003-01-09  Bruno Haible  <bruno@clisp.org>
79207
79208         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
79209
79210 2003-01-09  Bruno Haible  <bruno@clisp.org>
79211
79212         * lib/stdbool.h.in: New file.
79213
79214 2003-01-09  Bruno Haible  <bruno@clisp.org>
79215
79216         * gnulib-tool (func_all_modules): Ignore files ending in ~.
79217         * MODULES.html.sh: Likewise.
79218
79219 2003-01-08  Jim Meyering  <jim@meyering.net>
79220
79221         * lib/full-write.c: Undefine and define-away `const' after inclusion
79222         of errno.h, not before.  Suggestion from Bruno Haible.
79223
79224 2003-01-08  Bruno Haible  <bruno@clisp.org>
79225
79226         * modules/full-read: Depend on full-write.
79227
79228 2003-01-08  Bruno Haible  <bruno@clisp.org>
79229
79230         * lib/safe-read.c: Include specification header first, to ensure its
79231         selfcontainedness.
79232         * lib/full-write.c: Likewise.
79233
79234 2003-01-07  Jim Meyering  <jim@meyering.net>
79235
79236         * lib/full-write.c: Rework so that it may serve to define full_read,
79237         too.
79238         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
79239
79240 2003-01-07  Bruno Haible  <bruno@clisp.org>
79241
79242         * lib/strtoimax.c: Include <stdint.h> as an alternative to
79243         <inttypes.h>.
79244         * lib/xstrtol.h: Likewise.
79245         * lib/xstrtoimax.c: Likewise.
79246         * lib/xstrtoumax.c: Likewise.
79247         * lib/human.h: Likewise.
79248
79249         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
79250         on systems that have <inttypes.h> but not <stdint.h>.
79251
79252 2003-01-07  Bruno Haible  <bruno@clisp.org>
79253
79254         * MODULES.html.sh: Add copyright notice.
79255         (missed_files): Omit CVS directory entries.
79256         (func_module): Make it work with sed-3.02.
79257         * MODULES.txt: Remove file.
79258
79259 2003-01-06  Jim Meyering  <jim@meyering.net>
79260
79261         * lib/version-etc.c: Update year in translatable copyright string.
79262
79263 2003-01-03  Karl Berry  <karl@gnu.org>
79264
79265         * config/config.{guess,sub}: update from prep.
79266
79267 2003-01-02  Karl Berry  <karl@gnu.org>
79268
79269         * doc/COPYING.DOC: belatedly updated to 1.2.
79270
79271 2003-01-01  Karl Berry  <karl@gnu.org>
79272
79273         * gnulib-tool (func_verify_module): report module name $module in
79274         error message, not $1.
79275         * gnulib-tool (create-testdir): don't complain if destdir couldn't
79276         be created, only if it doesn't exist.
79277         * gnulib-tool (last_checkin_date): don't expand the $Date here.
79278
79279 2002-12-31  Paul Eggert  <eggert@twinsun.com>
79280
79281         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
79282
79283 2002-12-31  Paul Eggert  <eggert@twinsun.com>
79284
79285         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
79286         memcmp if strcoll doesn't work.
79287
79288 2002-12-31  Bruno Haible  <bruno@clisp.org>
79289
79290         * lib/utime.c (utime_null): No need to call ftruncate if the file was
79291         nonempty.
79292
79293 2002-12-31  Bruno Haible  <bruno@clisp.org>
79294
79295         * lib/memcoll.c (STRCOLL): New macro.
79296         (memcoll): Use it.
79297
79298 2002-12-31  Bruno Haible  <bruno@clisp.org>
79299
79300         * lib/localcharset.h: New file.
79301         * lib/localcharset.c: Include it.
79302         * lib/unicodeio.c: Likewise.
79303
79304 2002-12-31  Bruno Haible  <bruno@clisp.org>
79305
79306         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
79307         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
79308
79309 2002-12-31  Bruno Haible  <bruno@clisp.org>
79310
79311         * lib/getline.h: Include <stddef.h>, for size_t.
79312
79313         * lib/unicodeio.h: Include <stddef.h>, for size_t.
79314         * lib/unicodeio.c: Don't include <stddef.h>.
79315
79316 2002-12-31  Bruno Haible  <bruno@clisp.org>
79317
79318         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
79319         HAVE_TM_ZONE.
79320
79321 2002-12-24  Karl Berry  <karl@gnu.org>
79322
79323         * config/config.guess: update from prep.
79324
79325 2002-12-24  Bruno Haible  <bruno@clisp.org>
79326
79327         General infrasructure.
79328         * m4/README: Rewritten.
79329         * m4/onceonly.m4: New file.
79330         * m4/onceonly_2_57.m4: New file.
79331
79332         Module atexit.
79333         * m4/atexit.m4: New file.
79334
79335         Module strtod.
79336         * m4/strtod.m4: New file.
79337
79338         Module strtol.
79339         * m4/strtol.m4: New file.
79340
79341         Module strtoul.
79342         * m4/strtoul.m4: New file.
79343
79344         Module memchr.
79345         * m4/memchr.m4: New file.
79346
79347         Module memcmp.
79348         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
79349         (jm_FUNC_MEMCMP): Invoke it.
79350
79351         Module memcpy.
79352         * m4/memcpy.m4: New file.
79353
79354         Module memmove.
79355         * m4/memmove.m4: New file.
79356
79357         Module memset.
79358         * m4/memset.m4: New file.
79359
79360         Module strcspn.
79361         * m4/strcspn.m4: New file.
79362
79363         Module strpbrk.
79364         * m4/strpbrk.m4: New file.
79365
79366         Module strstr.
79367         * m4/strstr.m4: New file.
79368
79369         Module strerror.
79370         * m4/strerror.m4: New file.
79371
79372         Module mktime.
79373         * m4/mktime.m4: Renamed from jm-mktime.m4.
79374         (gl_PREREQ_MKTIME): New macro.
79375         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
79376
79377         Module malloc.
79378         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
79379         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
79380         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
79381
79382         Module realloc.
79383         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
79384         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
79385         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
79386
79387         Module strftime.
79388         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
79389         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
79390         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
79391         gl_TM_GMTOFF.
79392         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
79393
79394         Module xalloc.
79395         * m4/xalloc.m4: New file.
79396
79397         Module alloca.
79398         * m4/alloca.m4: New file.
79399
79400         Module putenv.
79401         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
79402         (jm_FUNC_PUTENV): Invoke it.
79403
79404         Module setenv.
79405         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
79406         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
79407         when invoked twice.
79408         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
79409         gt_FUNC_SETENV.
79410
79411         Module memrchr.
79412         * m4/memrchr.m4: New file.
79413
79414         Module stpcpy.
79415         * m4/stpcpy.m4: New file.
79416
79417         Module strcase.
79418         * m4/strcase.m4: New file.
79419
79420         Module strdup.
79421         * m4/strdup.m4: New file.
79422
79423         Module strnlen.
79424         * m4/strnlen.m4: New file.
79425
79426         Module strndup.
79427         * m4/strndup.m4: New file.
79428
79429         Module xstrtod.
79430         * m4/xstrtod.m4: New file.
79431
79432         Module xstrtol.
79433         * m4/xstrtol.m4: New file.
79434
79435         Module getdate.
79436         * m4/getdate.m4: New file.
79437
79438         Module unlocked-io.
79439         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
79440         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
79441         * m4/jm-glibc-io.m4n: Remove file.
79442
79443         Module long-options.
79444         * m4/long-options.m4: New file.
79445
79446         Module md5.
79447         * m4/md5.m4: New file.
79448
79449         Module sha.
79450         * m4/sha.m4: New file.
79451
79452         Module getstr.
79453         * m4/getstr.m4: New file.
79454
79455         Module getline.
79456         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
79457         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
79458         <sys/types.h>, for size_t. Use the function name gnu_getline, not
79459         simply getline. Infoke gl_PREREQ_GETLINE.
79460
79461         Module obstack.
79462         * m4/obstack.m4: New file.
79463
79464         Module hash.
79465         * m4/hash.m4: New file.
79466
79467         Module readtokens.
79468         * m4/readtokens.m4: New file.
79469
79470         Module strverscmp.
79471         * m4/strverscmp.m4: New file.
79472
79473         Module stdbool.
79474         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
79475         OSF/1.
79476
79477         Module strtoll.
79478         * m4/strtoll.m4: New file.
79479
79480         Module strtoull.
79481         * m4/strtoull.m4: New file.
79482
79483         Module strtoimax.
79484         * m4/strtoimax.m4: New file.
79485
79486         Module strtoumax.
79487         * m4/strtoumax.m4: New file.
79488
79489         Module xstrtoimax.
79490         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
79491         jm_AC_PREREQ_XSTRTOIMAX.
79492         Moved the strtol prerequisites to strtol.m4.
79493         Moved the strtoll prerequisites to strtoll.m4.
79494         Moved the strtoimax prerequisites to strtoimax.m4.
79495
79496         Module xstrtoumax.
79497         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
79498         jm_AC_PREREQ_XSTRTOUMAX.
79499         Moved the strtoul prerequisites to strtoul.m4.
79500         Moved the strtoull prerequisites to strtoull.m4.
79501         Moved the strtoumax prerequisites to strtoumax.m4.
79502
79503         Module chown.
79504         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
79505         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
79506
79507         Module dup2.
79508         * m4/dup2.m4: New file.
79509
79510         Module ftruncate.
79511         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
79512         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
79513
79514         Module getgroups.
79515         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
79516         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
79517
79518         Module gettimeofday.
79519         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
79520         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
79521         gl_PREREQ_GETTIMEOFDAY.
79522
79523         Module mkdir.
79524         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
79525         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
79526
79527         Module mkstemp.
79528         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
79529         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
79530         jm_AC_TYPE_UINTMAX_T.
79531         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
79532
79533         Module stat.
79534         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
79535         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
79536
79537         Module lstat.
79538         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
79539         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
79540
79541         Module timespec.
79542         * m4/timespec.m4 (gl_TIMESPEC): New macro.
79543         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
79544         * m4/st_mtim.m4: Indentation.
79545
79546         Module nanosleep.
79547         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
79548         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
79549         gl_PREREQ_NANOSLEEP.
79550
79551         Module regex.
79552         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
79553         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
79554         (gl_REGEX): New macro.
79555
79556         Module rename.
79557         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
79558         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
79559
79560         Module rmdir.
79561         * m4/rmdir.m4: New file.
79562
79563         Module utime.
79564         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
79565         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
79566         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
79567
79568         Module dirname.
79569         * m4/dirname.m4: New file.
79570
79571         Module getopt.
79572         * m4/getopt.m4: New file.
79573
79574         Module unistd-safer.
79575         * m4/unistd-safer.m4: New file.
79576
79577         Module fnmatch.
79578         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
79579         declaration.
79580         (gl_PREREQ_FNMATCH_EXTRA): New macro.
79581         (gl_FUNC_FNMATCH_POSIX): New macro.
79582         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
79583         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
79584         simply fnmatch.
79585
79586         Module exclude.
79587         * m4/exclude.m4: New file.
79588
79589         Module human.
79590         * m4/human.m4: New file.
79591
79592         Module acl.
79593         * m4/acl.m4: Nop.
79594
79595         Module backupfile.
79596         * m4/backupfile.m4: New file.
79597         * m4/d-ino.m4: Indentation.
79598
79599         Module fsusage.
79600         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
79601         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
79602         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
79603
79604         Module dirfd.
79605         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
79606         requirements.
79607
79608         Module euidaccess.
79609         * m4/euidaccess.m4: New file.
79610
79611         Module file-type.
79612         * m4/file-type.m4: New file.
79613
79614         Module fileblocks.
79615         * m4/fileblocks.m4: New file.
79616
79617         Module filemode.
79618         * m4/filemode.m4: New file.
79619
79620         Module isdir.
79621         * m4/isdir.m4: New file.
79622
79623         Module lchown.
79624         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
79625         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
79626
79627         Module makepath.
79628         * m4/makepath.m4: New file.
79629
79630         Module modechange.
79631         * m4/modechange.m4: New file.
79632
79633         Module mountlist.
79634         * m4/mountlist.m4: New file.
79635         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
79636         Indentation.
79637
79638         Module path-concat.
79639         * m4/path-concat.m4: New file.
79640
79641         Module pathmax.
79642         * m4/pathmax.m4: New file.
79643
79644         Module same.
79645         * m4/same.m4: New file.
79646
79647         Module save-cwd.
79648         * m4/save-cwd.m4: New file.
79649
79650         Module savedir.
79651         * m4/savedir.m4: New file.
79652
79653         Module xgetcwd.
79654         * m4/xgetcwd.m4: New file.
79655         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
79656
79657         Module xreadlink.
79658         * m4/xreadlink.m4: New file.
79659
79660         Module safe-read.
79661         * m4/safe-read.m4: New file.
79662
79663         Module safe-write.
79664         * m4/safe-write.m4: New file.
79665
79666         Module closeout.
79667         * m4/closeout.m4: New file.
79668
79669         Module stdio-safer.
79670         * m4/stdio-safer.m4: New file.
79671
79672         Module getpass.
79673         * m4/getpass.m4: New file.
79674
79675         Module getugroups.
79676         * m4/getugroups.m4: New file.
79677
79678         Module group-member.
79679         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
79680         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
79681
79682         Module idcache.
79683         * m4/idcache.m4: New file.
79684
79685         Module userspec.
79686         * m4/userspec.m4: New file.
79687
79688         Module gettime.
79689         * m4/clock_time.m4: New file.
79690         * m4/gettime.m4: New file.
79691
79692         Module settime.
79693         * m4/settime.m4: New file.
79694
79695         Module posixtm.
79696         * m4/posixtm.m4: New file.
79697
79698         Module gethostname.
79699         * m4/gethostname.m4: New file.
79700
79701         Module canon-host.
79702         * m4/canon-host.m4: New file.
79703
79704         Module gettext.
79705         * m4/codeset.m4: New file, from gettext-0.11.5.
79706         * m4/gettext.m4: New file, from gettext-0.11.5.
79707         * m4/glibc21.m4: New file, from gettext-0.11.5.
79708         * m4/iconv.m4: New file, from gettext-0.11.5.
79709         * m4/intdiv0.m4: New file, from gettext-0.11.5.
79710         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
79711         * m4/inttypes.m4: New file, from gettext-0.11.5.
79712         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
79713         * m4/isc-posix.m4: New file, from gettext-0.11.5.
79714         * m4/lcmessage.m4: New file, from gettext-0.11.5.
79715         * m4/lib-ld.m4: New file, from gettext-0.11.5.
79716         * m4/lib-link.m4: New file, from gettext-0.11.5.
79717         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
79718         * m4/progtest.m4: New file, from gettext-0.11.5.
79719         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
79720         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
79721         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
79722
79723         Module localcharset.
79724         * m4/localcharset.m4: New file.
79725
79726         Module hard-locale.
79727         * m4/hard-locale.m4: New file.
79728
79729         Module mbswidth.
79730         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
79731         onceonly macros.
79732         * m4/mbrtowc.m4: Add comment.
79733
79734         Module memcasecmp.
79735         * m4/memcasecmp.m4: New file.
79736
79737         Module memcoll.
79738         * m4/memcoll.m4: New file.
79739
79740         Module unicodeio.
79741         * m4/unicodeio.m4: New file.
79742
79743         Module rpmatch.
79744         * m4/rpmatch.m4: New file.
79745
79746         Module yesno.
79747         * m4/yesno.m4: New file.
79748
79749         Module exitfail.
79750         * m4/exitfail.m4: New file.
79751
79752         Module c-stack.
79753         * m4/c-stack.m4 (gl_C_STACK): New macro.
79754         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
79755
79756         Module error.
79757         * m4/error.m4 (gl_ERROR): New macro.
79758         (jm_PREREQ_ERROR): Use onceonly macros.
79759
79760         Module fatal.
79761         * m4/fatal.m4: New file.
79762
79763         Module getloadavg.
79764         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
79765         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
79766
79767         Module getpagesize.
79768         * m4/getpagesize.m4: New file.
79769
79770         Module getusershell.
79771         * m4/getusershell.m4: New file.
79772
79773         Module physmem.
79774         * m4/physmem.m4: New file.
79775
79776         Module posixver.
79777         * m4/posixver.m4: New file.
79778
79779         Module quotearg.
79780         * m4/quotearg.m4: New file.
79781
79782         Module quote.
79783         * m4/quote.m4: New file.
79784
79785         Module readutmp.
79786         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
79787
79788         Module sig2str.
79789         * m4/sig2str.m4: New file.
79790
79791         Other.
79792         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
79793         ulonglong.m4.
79794         * m4/intmax_t.m4: New file.
79795         * m4/d-type.m4: Indentation.
79796         * m4/jm-macros.m4: Update.
79797         * m4/prereq.m4 (jm_PREREQ): Update.
79798         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
79799         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
79800         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
79801         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
79802         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
79803         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
79804         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
79805         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
79806         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
79807         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
79808         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
79809         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
79810         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
79811         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
79812         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
79813         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
79814         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
79815         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
79816         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
79817
79818 2002-12-24  Bruno Haible  <bruno@clisp.org>
79819
79820         * MODULES.txt: Update according to m4/ changes.
79821
79822         Module gettext.
79823         * config.rpath: New file, from gettext-0.11.5.
79824
79825         * modules/*: New module descriptions.
79826         * gnulib-tool: New file.
79827         * MODULES.html.sh: New file.
79828
79829 2002-12-21  Karl Berry  <karl@gnu.org>
79830
79831         * doc/fdl.texi: update to version 1.2.
79832
79833 2002-12-19  Karl Berry  <karl@gnu.org>
79834
79835         * config/config.guess: update from prep.
79836
79837 2002-12-18  Bruno Haible  <bruno@clisp.org>
79838
79839         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
79840         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
79841
79842 2002-12-17  Bruno Haible  <bruno@clisp.org>
79843
79844         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
79845         stdlib.h, string.h.
79846
79847 2002-12-17  Bruno Haible  <bruno@clisp.org>
79848
79849         * lib/canon-host.c (strdup): Remove unused declaration.
79850
79851         * lib/fsusage.c: Include full_read.h.
79852         (get_fs_usage): Use full_read instead of safe_read.
79853
79854         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
79855
79856 2002-12-12  Karl Berry  <karl@gnu.org>
79857
79858         * config/config.guess: update from prep.
79859
79860 2002-12-11  Bruno Haible  <bruno@clisp.org>
79861
79862         * m4/setenv.m4: New file, from gettext-0.11.5.
79863
79864 2002-12-11  Bruno Haible  <bruno@clisp.org>
79865
79866         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
79867         not unsetenv().
79868         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
79869         modifications:
79870
79871         2002-12-11  Bruno Haible  <bruno@clisp.org>
79872
79873                 * setenv.c (alloca): Fall back to malloc.
79874                 (freea): New macro.
79875                 (setenv): Use freea() to free memory allocated with alloca().
79876
79877         2002-11-13  Bruno Haible  <bruno@clisp.org>
79878
79879                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
79880                 function declarations.
79881                 * unsetenv.c (unsetenv): Likewise.
79882
79883         2002-03-04  Bruno Haible  <bruno@clisp.org>
79884
79885                 Portability to AIX 4.3.3.
79886                 * unsetenv.c: New file, extracted from setenv.c.
79887                 * setenv.c: Move the unsetenv() function to unsetenv.c.
79888
79889         2001-12-20  Bruno Haible  <bruno@clisp.org>
79890
79891                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
79892                 use malloc instead. For SunOS 4.
79893
79894         2001-12-11  Bruno Haible  <bruno@clisp.org>
79895
79896                 * setenv.c: Declare alloca.
79897                 (compar_fn_t): New typedef.
79898                 (KNOWN_VALUE, STORE_VALUE): Use it.
79899
79900         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
79901         setenv.h.
79902
79903 2002-12-10  Paul Eggert  <eggert@twinsun.com>
79904
79905         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
79906         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
79907         Choose values that are less likely to collide with system fnmatch
79908         options.
79909         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
79910         defined (e.g., a pure POSIX system).
79911         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
79912         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
79913
79914 2002-12-06  Paul Eggert  <eggert@twinsun.com>
79915
79916         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
79917         a pain in practice to deal with generated m4 files.  This change
79918         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
79919
79920         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
79921         and jm-glibc-io.m4, as they are no longer a special case.
79922         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
79923         kludge and the auto-generation stuff.  Check only whether the
79924         functions are declared, not whether they exist, since older hosts
79925         that don't declare the functions can't use the optimization anyway.
79926
79927 2002-12-06  Jim Meyering  <jim@meyering.net>
79928
79929         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
79930
79931         Merge in changes from libc's misc/error.c, in preparation
79932         for the merge of gnulib's changes back into libc.
79933
79934         * lib/error.c (_): Define only if not already defined.
79935         Move definition to follow all #include directives.
79936         Include unlocked-io.h only if !_LIBC.
79937         [_LIBC]: Include <libio/libioP.h>.
79938         [USE_IN_LIBIO]: Include <libio/iolibio.h>
79939         (fflush): Tweak definition to use INTUSE.
79940         (putc): Define.
79941
79942 2002-12-05  Paul Eggert  <eggert@twinsun.com>
79943
79944         * lib/alloca.c [defined emacs]: Include "lisp.h".
79945         (xalloc_die) [defined emacs]: New macro.
79946         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
79947         [! defined emacs]: Include <xalloc.h>.
79948         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
79949         (pointer): Typedef to POINTER_TYPE *.
79950         (malloc): Remove decl; we now always use xmalloc.
79951         (alloca): Use old-style definition, since Emacs needs this.
79952         Check for arithmetic overflow when computing combined size.
79953
79954 2002-12-04  Paul Eggert  <eggert@twinsun.com>
79955
79956         Do not generate unlocked-io.h automatically, since it's easier to
79957         maintain it by hand.
79958
79959         * lib/unlocked-io.h: New file, from GNU diffutils,
79960         but with proper copyright notice and attribution.
79961         * lib/gen-uio: Remove.
79962         * lib/Makefile.am: Add copyright notice.
79963         (libfetish_a_SOURCES): Add unlocked-io.h.
79964         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
79965         (DISTCLEANFILES, io_functions): Remove macros.
79966         (EXTRA_DIST): Remove gen_uio.
79967         (unlocked-io.h): Remove rule.
79968
79969 2002-12-04  Jim Meyering  <jim@meyering.net>
79970
79971         Reflect the fact that stat.c and lstat.c are no longer generated.
79972         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
79973         (DISTCLEANFILES): Likewise.
79974         (EXTRA_DIST): Likewise.
79975         (all_local): Don't depend on stat.c or lstat.c.
79976         (stat.c, lstat.c): Remove rules.
79977         (EXTRA_DIST): Remove xstat.in.
79978
79979         * lib/xstat.in: Remove file.  Contents moved into stat.c.
79980         * lib/stat.c: New file.  Contents mostly from xstat.in.
79981         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
79982         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
79983
79984         * lib/safe-read.c: Rework so that it may serve to define safe_write,
79985         too.
79986         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
79987
79988 2002-12-03  Jim Meyering  <jim@meyering.net>
79989
79990         * lib/safe-read.c, safe-write.c: Change variable names and comments,
79991         but not semantics, to minimize the differences between these two files.
79992         (safe_read): Change comment to mention SAFE_READ_ERROR.
79993
79994         * lib/safe-read.c (IS_EINTR): Define.
79995         (safe_read): Use IS_EINTR in place of in-function cpp directives.
79996
79997 2002-12-02  Jim Meyering  <jim@meyering.net>
79998
79999         * lib/safe-read.c (EINTR): Define.
80000         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
80001         (INT_MAX): Provide fallback.
80002         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
80003
80004         * lib/safe-read.h (SAFE_READ_ERROR): Define.
80005
80006 2002-12-02  Bruno Haible  <bruno@clisp.org>
80007
80008         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
80009         Define, taken from safe-read.c.
80010         (INT_MAX): Provide fallback.
80011         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
80012         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
80013
80014         * lib/safe-read.c (EINTR): Remove definition.
80015         (safe_read): Don't use EINTR if it is absent.
80016
80017 2002-12-01  Jim Meyering  <jim@meyering.net>
80018
80019         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
80020         zero.
80021         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
80022
80023 2002-11-27  Paul Eggert  <eggert@twinsun.com>
80024
80025         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
80026         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
80027         with `if (! (value < limit)) abort ();', for readability.
80028
80029 2002-11-26  Karl Berry  <karl@gnu.org>
80030
80031         * lib/strdup.c: copy from libc again, with jim's ok.
80032         * lib/.cppi-disable: re-add strdup.c
80033
80034 2002-11-25  Karl Berry  <karl@gnu.org>
80035
80036         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
80037         instead of "strtol.c".
80038
80039 2002-11-25  Karl Berry  <karl@gnu.org>
80040
80041         * config/install-sh: update from automake for variable quoting, $0 in
80042         error msgs, etc.
80043
80044         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
80045         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
80046         entry.
80047
80048 2002-11-25  Jim Meyering  <jim@meyering.net>
80049
80050         * lib/mktime.c: Sync from libc, now that it has the latest fix.
80051
80052 2002-11-24  Karl Berry  <karl@gnu.org>
80053
80054         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
80055         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
80056
80057 2002-11-24  Jim Meyering  <jim@meyering.net>
80058
80059         Update from coreutils:
80060
80061         * lib/mktime.c: Merge in changes from libc.
80062
80063         Avoid a link-time failure on some Linux systems.
80064         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
80065         (otherwise).
80066         (__mon_yday): Declare with the STATIC attribute.
80067         (__mktime_internal): Likewise.
80068         Based on a report from Greg Schafer.
80069
80070 2002-11-23  Jim Meyering  <jim@meyering.net>
80071
80072         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
80073         Use `unsigned', not `int', as type of index.
80074
80075         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
80076
80077         * lib/fsusage.c: Remove unneeded parentheses around operands of
80078         `defined'.
80079
80080 2002-11-22  Paul Eggert  <eggert@twinsun.com>
80081
80082         * lib/quotearg.h: Allow multiple inclusion by surrounding with
80083         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
80084         so that we can be included first.
80085         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
80086         * lib/quotearg.c: Include quotearg.h immediately after config.h.
80087         No need to include stddef.h or sys/types.h any more.
80088         Surround local include files with "", not "<>".
80089         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
80090         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
80091         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
80092         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
80093         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
80094         (ISPRINT): Remove; no longer needed now that we assume C89.
80095
80096         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
80097         Preserve errno.
80098
80099         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
80100         quotearg_char): Use SIZE_MAX rather than
80101         (size_t) -1 when we are talking about "infinity".
80102
80103         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
80104
80105 2002-11-22  Paul Eggert  <eggert@twinsun.com>
80106
80107         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
80108         hint that one should use `if (! x) abort ();' rather than `assert
80109         (x);', and anyway it's one less thing to worry about configuring.
80110         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
80111         hash_rehash, hash_insert): Use abort rather than assert.
80112
80113 2002-11-22  Bruno Haible  <bruno@clisp.org>
80114
80115         * lib/safe-read.h: Assume C89. Add comments.
80116         (safe_read): Change return type to size_t.
80117         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
80118         byte counts > SSIZE_MAX correctly.
80119         * lib/safe-write.h: New file.
80120         * lib/safe-write.c: New file.
80121         * lib/full-read.h: New file.
80122         * lib/full-read.c: New file.
80123         * lib/full-write.h: Assume C89. Add comments.
80124         * lib/full-write.c: Include safe-write.h.
80125         (full_write): Rewritten to use safe_write.
80126         Suggested by Jim Meyering and Paul Eggert.
80127
80128 2002-11-21  Jim Meyering  <jim@meyering.net>
80129
80130         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
80131
80132         Merge in changes from the coreutils.
80133
80134         2002-09-25  Paul Eggert  <eggert@twinsun.com>
80135         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
80136         <stdint.h>.
80137         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
80138         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
80139         int.  Work more efficiently if X is the same width as uintmax_t.
80140         Do not compare X to -1, to avoid bogus compiler warning.
80141         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
80142         Don't assume that f_frsize and f_bsize are the same type.
80143
80144         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
80145         warning on FreeBSD.
80146
80147         * lib/makepath.c (make_path): Restore umask *before* creating the final
80148         component.
80149         (make_path): Minor reformatting.
80150
80151         * lib/xmalloc.c: Adjust to work with new autoconf macros,
80152         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
80153         HAVE_MALLOC/HAVE_REALLOC.
80154
80155         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
80156         dummy ones.  At least on GNU/Linux systems, `auto' means something
80157         else.
80158         From Michael Stone.
80159
80160 2002-11-21  Bruno Haible  <bruno@clisp.org>
80161
80162         Remove case insensitive option matching.
80163         * lib/argmatch.h (argcasematch): Remove declaration.
80164         (ARGCASEMATCH): Remove macro.
80165         (__xargmatch_internal): Remove case_sensitive argument.
80166         (XARGMATCH): Update.
80167         (XARGCASEMATCH): Remove macro.
80168         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
80169         case_sensitive argument.
80170         (argcasematch): Remove function.
80171         (__xargmatch_internal): Remove case_sensitive argument.
80172         (main): Use XARGMATCH instead of XARGCASEMATCH.
80173
80174         * lib/xmalloc.c: Change compile-time error message. Add comment about
80175         required autoconf version.
80176
80177 2002-11-20  Paul Eggert  <eggert@twinsun.com>
80178
80179         Merge argmatch cleanups from Bison.  Assume C89.
80180
80181         * lib/argmatch.c: Include config.h here, not in argmatch.h.
80182         Include stdlib.h, for EXIT_FAILURE.
80183         Always include <string.h>, since we assume C89.
80184         (EXIT_FAILURE): Remove pre-C89 bug workaround.
80185         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
80186         Include <stddef.h> instead, since it's all we need for size_t.
80187         (PARAMS): Remove.  All uses removed.
80188         (ARRAY_CARDINALITY): Do not bother to #undef.
80189         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
80190         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
80191         Remove unnecessary parentheses.
80192         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
80193         Insert necessary parentheses.
80194         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
80195         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
80196
80197 2002-11-19  Bruno Haible  <bruno@clisp.org>
80198
80199         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
80200         * lib/mbswidth.h: Include <stddef.h>, for size_t.
80201
80202         * lib/mbswidth.h (PARAMS): Remove macro.
80203         (mbswidth, mbsnwidth): Use ANSI C function declarations.
80204         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
80205
80206         * lib/gcd.h (PARAMS): Remove macro.
80207         (gcd): Use ANSI C function declarations.
80208         * lib/gcd.c (gcd): Likewise.
80209
80210 2002-11-15  Bruno Haible  <bruno@clisp.org>
80211
80212         * lib/strcspn.c: Include <stddef.h>.
80213         (strcspn): Use ANSI C function declaration. Change return type to
80214         size_t. Use NULL.
80215         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
80216         (strpbrk): Use NULL.
80217         * lib/strpbrk.h (PARAMS): Remove macro.
80218         (strpbrk): Use ANSI C function declaration.
80219         * lib/strstr.c: Don't include <sys/types.h>.
80220         * lib/strstr.h (PARAMS): Remove macro.
80221         (strstr): Use ANSI C function declarations.
80222
80223 2002-11-14  Karl Berry  <karl@gnu.org>
80224
80225         * config/mkinstalldirs: `do' on separate line, instead of
80226         `for var; do'.
80227
80228 2002-11-06  Bruno Haible  <bruno@clisp.org>
80229
80230         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
80231         * lib/gcd.c (gcd): Likewise.
80232
80233 2002-11-05  Bruno Haible  <bruno@clisp.org>
80234
80235         * lib/gcd.h: New file, from gettext-0.11.5.
80236         * lib/gcd.c: New file, from gettext-0.11.5.
80237
80238 2002-11-05  Bruno Haible  <bruno@clisp.org>
80239
80240         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
80241         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
80242         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
80243         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
80244
80245         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
80246         <libintl.h>.
80247         * lib/makepath.c: Include gettext.h instead of <locale.h> and
80248         <libintl.h>.
80249
80250         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
80251         * lib/human.c: Include gettext.h instead of <libintl.h>.
80252         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
80253         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
80254         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
80255         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
80256         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
80257         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
80258         (textdomain): Remove definition.
80259         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
80260
80261         * lib/long-options.c: Remove include of <libintl.h> and definition of
80262         _.
80263         * lib/same.c: Remove include of <libintl.h> and definition of _.
80264
80265 2002-11-04  Owen Taylor  <otaylor@redhat.com>
80266
80267         * lib/config.charset: A few additions for Solaris.
80268
80269 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
80270
80271         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
80272         * lib/localcharset.c (locale_charset): Declare as extern "C".
80273
80274 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
80275
80276         * lib/config.charset: msdos in uk_UA uses CP1125.
80277
80278 2002-11-04  Bruno Haible  <bruno@clisp.org>
80279
80280         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
80281         * lib/strcase.h: New file, from GNU gettext-0.11.5.
80282         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
80283         * lib/strstr.h: New file, from GNU gettext-0.11.5.
80284         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
80285
80286 2002-11-04  Bruno Haible  <bruno@clisp.org>
80287
80288         * lib/localcharset.c (locale_charset): Don't return an empty string.
80289
80290 2002-11-04  Bruno Haible  <bruno@clisp.org>
80291
80292         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
80293         aliases.
80294
80295 2002-11-04  Bruno Haible  <bruno@clisp.org>
80296
80297         * lib/config.charset: Update for newest glibc. Add canonical names
80298         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
80299
80300 2002-11-04  Bruno Haible  <bruno@clisp.org>
80301
80302         * lib/config.charset: Add support for NetBSD.
80303
80304 2002-11-04  Bruno Haible  <bruno@clisp.org>
80305
80306         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
80307
80308 2002-11-01  Bruno Haible  <bruno@clisp.org>
80309
80310         * configure.in: Add AC_CONFIG_AUX_DIR call.
80311         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
80312         test/Makefile.
80313         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
80314
80315 2002-09-28  Karl Berry  <karl@gnu.org>
80316
80317         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
80318         installed automake until the next release, since changes have been
80319         made.
80320
80321 2002-09-25  Karl Berry  <karl@gnu.org>
80322
80323         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
80324         * lib/getopt*: copy from libc/posix.
80325         * lib/gettext.h: copy from gettext.
80326         * lib/.cppi-disable: add strdup.c, gettext.h.
80327
80328 2002-09-25  Karl Berry  <karl@gnu.org>
80329
80330         * config/srclist.txt: enable gettext.h check.
80331         * config/config.{guess,sub}: update from prep.
80332         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
80333                 from automake 1.6.3.
80334         See srclist*.
80335
80336 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
80337
80338         * regex.c (PATFETCH): Remove the translating fetch.
80339         (PATFETCH_RAW): Rename to PATFETCH.
80340         (set_image_of_range): New fun.
80341         (SET_RANGE_TABLE_WORK_AREA): Use it.
80342         (regex_compile): Don't translate the pattern chars so eagerly.
80343         Only do it when inserting an `exactn' bytecode or when handling
80344         a char-range.
80345         (mutually_exclusive_p): Avoid empty statement.
80346
80347 2002-07-06  Jim Meyering  <meyering@lucent.com>
80348
80349         * m4/README: Don't mention Makefile.am.in.
80350         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
80351
80352 2002-07-01  Jim Meyering  <meyering@lucent.com>
80353
80354         * lib/c-stack.c: Include sys/time.h.
80355         From Volker Borchert.
80356
80357 2002-06-26  Paul Eggert  <eggert@twinsun.com>
80358
80359         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
80360
80361 2002-06-26  Paul Eggert  <eggert@twinsun.com>
80362
80363         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
80364         New macro.  Use it uniformly instead of
80365         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
80366         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
80367         reported by Vin Shelton.
80368
80369 2002-06-22  Paul Eggert  <eggert@twinsun.com>
80370
80371         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
80372         Do not assume SA_SIGINFO behavior.
80373         Bug reported by Jim Meyering on NetBSD 1.5.2.
80374
80375 2002-06-22  Jim Meyering  <meyering@lucent.com>
80376
80377         * m4/c-stack.m4: New file, from diffutils-2.8.2.
80378         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
80379
80380         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
80381         now that configure.ac uses AC_GNU_SOURCE.
80382         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
80383         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
80384
80385         Update to latest tools.  Suggestions from Paul Eggert.
80386         * m4/stdbool.m4: New file, from diffutils-2.8.2.
80387         * m4/gnu-source.m4: Update from diffutils-2.8.2.
80388         * m4/fnmatch.m4: Likewise.
80389         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
80390         to AC_HEADER_STDBOOL
80391
80392 2002-06-22  Jim Meyering  <meyering@lucent.com>
80393
80394         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
80395         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
80396
80397 2002-06-22  Jim Meyering  <meyering@lucent.com>
80398
80399         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
80400
80401         * lib/exitfail.c, exitfail.h: Likewise.
80402         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
80403
80404         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
80405         of fnmatch.h.
80406         (EXTRA_DIST): Add fnmatch_loop.c.
80407         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
80408
80409         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
80410         * lib/fnmatch.c: Update from diffutils-2.8.2.
80411         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
80412         * lib/fnmatch.h: Remove file.
80413
80414 2002-06-21  Jim Meyering  <meyering@lucent.com>
80415
80416         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
80417         * m4/mbrtowc.m4: Likewise.
80418
80419         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
80420         * m4/mbswidth.m4: Reflect name change:
80421         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
80422         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
80423
80424         * m4/lib-link.m4: Update from gettext-0.11.2.
80425         * m4/gettext.m4: Likewise.
80426
80427         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
80428         From Alfred M. Szmidt.
80429
80430 2002-06-18  Paul Eggert  <eggert@twinsun.com>
80431
80432         * lib/file-type.h: Report an error if neither S_ISREG nor
80433         S_IFREG is defined, instead of using a test specific to glibc
80434         2.2.  This should be safe, since POSIX requires S_ISREG and
80435         Unix Version 7 had S_IFREG.  We don't need to check for
80436         <sys/types.h> since we don't use any symbols that it defines.
80437
80438 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
80439
80440         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
80441         $@-t, so that each temporary file name is unique and valid in the first
80442         8 characters, for operation under DOS.
80443
80444 2002-06-15  Paul Eggert  <eggert@twinsun.com>
80445
80446         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
80447
80448 2002-06-15  Jim Meyering  <meyering@lucent.com>
80449
80450         Work even with DJGPP 2.03, which lacks support for symlinks.
80451         From Richard Dawe.
80452         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
80453         is defined.
80454         * lib/lchown.c (S_ISLNK): Likewise.
80455
80456 2002-06-15  Jim Meyering  <meyering@lucent.com>
80457
80458         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
80459         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
80460         have been included before this file.
80461
80462 2002-06-14  Jim Meyering  <meyering@lucent.com>
80463
80464         * lib/file-type.h: Use the version from diffutils-2.8.2.
80465         * lib/file-type.c: Likewise.
80466
80467 2002-06-07  Jim Meyering  <meyering@lucent.com>
80468
80469         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
80470         They're needed at least for NetBSD 1.5.2.
80471         ($statxfs_includes): Include those same headers.
80472         ($statxfs_includes): Include sys/vfs.h if available.
80473         ($statxfs_includes): Likewise for sys/statvfs.h.
80474         Check for the following members in both structs statfs and statvfs:
80475         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
80476
80477 2002-06-01  Jim Meyering  <meyering@lucent.com>
80478
80479         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
80480         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
80481
80482 2002-05-28  Jim Meyering  <meyering@lucent.com>
80483
80484         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
80485         Reported by Volker Borchert.
80486
80487 2002-05-27  Jim Meyering  <meyering@lucent.com>
80488
80489         Fix a problem seen only on nonconforming systems whereby ls.c's
80490         use of localtime, and then of gettimeofday would cause trouble:
80491         the localtime call used to initialize rpl_gettimeofday's save
80492         mechanism would clobber ls's current local time information so
80493         that in any long listing the first file would always be listed
80494         with date 1970-01-01.  Analysis by Volker Borchert.
80495
80496         * lib/gettimeofday.c (localtime): Undefine.
80497         (rpl_localtime): New function.
80498
80499 2002-05-27  Jim Meyering  <meyering@lucent.com>
80500
80501         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
80502         localtime.
80503
80504         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
80505         use the replacement function; it wouldn't resolve at link time.
80506         Reported by Volker Borchert.
80507
80508 2002-05-22  Jim Meyering  <meyering@lucent.com>
80509
80510         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
80511         file-type.h.
80512         * lib/file-type.h: New file.
80513         * lib/file-type.c (file_type): New file/function.  Extracted from
80514         diffutils.
80515
80516 2002-04-30  Jim Meyering  <meyering@lucent.com>
80517
80518         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
80519
80520 2002-04-29  Paul Eggert  <eggert@twinsun.com>
80521
80522         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
80523
80524 2002-04-29  Paul Eggert  <eggert@twinsun.com>
80525
80526         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
80527         Do not check for alloca.h (no longer used) or stdbool.h (was never
80528         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
80529
80530 2002-04-29  Paul Eggert  <eggert@twinsun.com>
80531
80532         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
80533
80534 2002-04-29  Jim Meyering  <meyering@lucent.com>
80535
80536         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
80537         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
80538         Use AC_FUNC_STRNLEN here instead.
80539
80540         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
80541         With autoconf-2.53a, it's part of AC_PROG_CC.
80542
80543 2002-04-28  Paul Eggert  <eggert@twinsun.com>
80544
80545         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
80546         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
80547
80548 2002-04-28  Paul Eggert  <eggert@twinsun.com>
80549
80550         * lib/sig2str.h, lib/sig2str.c: New files.
80551         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
80552
80553 2002-04-28  Paul Eggert  <eggert@twinsun.com>
80554
80555         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
80556         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
80557         of 127, since 64 is the largest conceivable number for ancient
80558         nonstandard hosts.
80559         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
80560
80561 2002-04-28  Jim Meyering  <meyering@lucent.com>
80562
80563         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
80564
80565 2002-04-24  Jim Meyering  <meyering@lucent.com>
80566
80567         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
80568         (jm_PREREQ): Use it.
80569
80570         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
80571         mach/mach.h fcntl.h.
80572         Check for this function: setlocale.
80573
80574 2002-04-24  Jim Meyering  <meyering@lucent.com>
80575
80576         * lib/gettext.h: New file, from Gettext.
80577         * lib/Makefile.am (INCLUDES): Remove -I../intl.
80578         (libfetish_a_SOURCES): Add gettext.h.
80579
80580 2002-04-16  Jim Meyering  <meyering@lucent.com>
80581
80582         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
80583         ut_pid, ut_id, ut_exit.
80584
80585 2002-04-16  Jim Meyering  <meyering@lucent.com>
80586
80587         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
80588         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
80589         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
80590
80591 2002-04-12  Jim Meyering  <meyering@lucent.com>
80592
80593         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
80594         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
80595         existence of the getmntinfo function.  Needed for Darwin 5.3.
80596
80597         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
80598         This is necessary at least on Darwin 5.3.
80599
80600         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
80601         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
80602         strnlen.o in the library, and that makes some versions of ranlib
80603         object.
80604
80605 2002-04-12  Jim Meyering  <meyering@lucent.com>
80606
80607         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
80608
80609 2002-04-09  Jim Meyering  <meyering@lucent.com>
80610
80611         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
80612         to be more precise.  Rather than saying we're checking whether the
80613         function `works', say what we're testing.
80614         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
80615         Reported by Bruno Haible.
80616
80617 2002-03-10  Jim Meyering  <meyering@lucent.com>
80618
80619         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
80620         Suggestion from Santiago Vila.
80621
80622 2002-03-08  Jim Meyering  <meyering@lucent.com>
80623
80624         * lib/rename.c: Mention that this wrapper is needed also on
80625         mips-dec-ultrix4.4 systems.
80626
80627 2002-03-02  Jim Meyering  <meyering@lucent.com>
80628
80629         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
80630         not HAVE_CLOCK_SETTIME.
80631
80632 2002-02-27  Paul Eggert  <eggert@twinsun.com>
80633
80634         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
80635         Check for clock_settime.
80636
80637 2002-02-27  Paul Eggert  <eggert@twinsun.com>
80638
80639         * lib/nanosleep.h: Rename to....
80640         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
80641
80642         * lib/gettime.c: New file.
80643         * lib/settime.c: New file.
80644         * lib/stime.c: Remove.
80645
80646         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
80647         timespec.h.  Remove nanosleep.h.
80648
80649 2002-02-25  Paul Eggert  <eggert@twinsun.com>
80650
80651         * m4/acl.m4: New file.
80652         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
80653         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
80654
80655 2002-02-25  Paul Eggert  <eggert@twinsun.com>
80656
80657         * lib/acl.c, lib/acl.h: New files.
80658         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
80659
80660 2002-02-24  Jim Meyering  <meyering@lucent.com>
80661
80662         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
80663         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
80664         cause trouble.  Reported by Nelson Beebe.
80665
80666 2002-02-23  Paul Eggert  <eggert@twinsun.com>
80667
80668         * lib/path-concat.c (xpath_concat): Reorder code to pacify
80669         compilers that don't know that xalloc_die never returns.
80670
80671 2002-02-20  Jim Meyering  <meyering@lucent.com>
80672
80673         * lib/getdate.c: Regenerate using bison-1.33.
80674
80675 2002-02-17  Jim Meyering  <meyering@lucent.com>
80676
80677         * config/config.guess (main): Don't use `head -1'; it's no longer
80678         portable. Use `sed 1q' instead.
80679
80680 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
80681
80682         * m4/codeset.m4: Upgrade to gettext-0.11.
80683         * m4/gettext.m4: Upgrade to gettext-0.11.
80684         * m4/glibc21.m4: Upgrade to gettext-0.11.
80685         * m4/iconv.m4: Upgrade to gettext-0.11.
80686         * m4/isc-posix.m4: Upgrade to gettext-0.11.
80687         * m4/lcmessage.m4: Upgrade to gettext-0.11.
80688         * m4/lib-ld.m4: New file, from gettext-0.11.
80689         * m4/lib-link.m4: New file, from gettext-0.11.
80690         * m4/lib-prefix.m4: New file, from gettext-0.11.
80691         * m4/progtest.m4: Upgrade to gettext-0.11.
80692
80693 2002-02-15  Paul Eggert  <eggert@twinsun.com>
80694
80695         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
80696         (jm_PREREQ): Use it.
80697
80698 2002-02-15  Paul Eggert  <eggert@twinsun.com>
80699
80700         * lib/posixver.c, lib/posixver.h: New files.
80701         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
80702
80703 2002-02-02  Paul Eggert  <eggert@twinsun.com>
80704             Bruno Haible  <bruno@clisp.org>
80705
80706         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
80707         (fwrite_success_callback): New declaration.
80708         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
80709         print_unicode_char. Call failure callback instead of error.
80710         (fwrite_success_callback): New function.
80711         (exit_failure_callback): New function.
80712         (fallback_failure_callback): New function.
80713         (print_unicode_char): Call unicode_to_mb.
80714
80715 2002-01-26  Jim Meyering  <meyering@lucent.com>
80716
80717         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
80718         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
80719
80720 2002-01-26  Jim Meyering  <meyering@lucent.com>
80721
80722         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
80723
80724 2002-01-22  Paul Eggert  <eggert@twinsun.com>
80725
80726         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
80727
80728 2002-01-22  Jim Meyering  <meyering@lucent.com>
80729
80730         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
80731         Otherwise, some versions of automake would omit the rule that makes
80732         Makefile from Makefile.in.
80733
80734 2002-01-21  Paul Eggert  <eggert@twinsun.com>
80735
80736         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
80737         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
80738         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
80739         (memcoll): Set errno to zero if there is no error.
80740
80741         * lib/quotearg.c (quotearg_buffer_restyled):
80742         Fix bug with quoting buffers containing NUL when backslashing escapes.
80743         This bug was exposed by the other changes in this patch.
80744         (quotearg_n_options): New arg ARGSIZE.
80745         All callers changed.
80746         (quoting_options_from_style): New function.
80747         (quotearg_n_style): Use it.
80748         (quotearg_n_style_mem): New function.
80749
80750         * lib/quotearg.h (quotearg_n_style_mem): New function.
80751
80752 2002-01-19  Jim Meyering  <meyering@lucent.com>
80753
80754         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
80755         Remove useless quotes: DF_PROG="df".
80756         * m4/strnlen.m4: New file.
80757
80758 2002-01-16  Paul Eggert  <eggert@twinsun.com>
80759
80760         * lib/backupfile.c (ISDIGIT): Comment fix.
80761         * lib/getdate.y (ISDIGIT): Likewise.
80762         * lib/posixtm.c (ISDIGIT, year): Likewise.
80763         * lib/strverscmp.c (ISDIGIT): Likewise.
80764         * lib/userspec.c (ISDIGIT): Likewise.
80765
80766 2002-01-16  Jim Meyering  <meyering@lucent.com>
80767
80768         * lib/getdate.y: Add three semicolons, each just before a closing
80769         brace. Bison (as of version 1.31) no longer papers over that mistake.
80770
80771 2002-01-05  Jim Meyering  <meyering@lucent.com>
80772
80773         * lib/version-etc.c (version_etc_copyright): Update copyright year.
80774
80775 2001-12-19  Paul Eggert  <eggert@twinsun.com>
80776
80777         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
80778         not silently exit merely because the output buffer happens to
80779         have nothing pending.
80780
80781 2001-12-18  Paul Eggert  <eggert@twinsun.com>
80782
80783         See the big note in ../ChangeLog.
80784         * lib/human.c (suffixes): Prefer K to k for 1024.
80785         (generate_suffix_backwards): New function.
80786         (human_readable_inexact): Use it.
80787         * lib/xstrtol.c (__xstrtol): If there is no number but there
80788         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
80789         Accept 'K' as well as 'k'.
80790
80791 2001-12-15  Jim Meyering  <meyering@lucent.com>
80792
80793         * lib/regex.h (__restrict_arr): Update from libc.
80794
80795         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
80796         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
80797         (STREQ): Define.
80798
80799 2001-12-14  Jim Meyering  <meyering@lucent.com>
80800
80801         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
80802         Suggestion from Bruno Haible.
80803
80804 2001-12-10  Jim Meyering  <meyering@lucent.com>
80805
80806         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
80807         xrealloc, Instead, include "xalloc.h".
80808         (initbuffer): Don't cast xmalloc return value to char*.
80809         (readline): Reword comment.
80810         Don't cast xrealloc return value to char*
80811         Return NULL, not 0.
80812
80813 2001-12-09  Jim Meyering  <meyering@lucent.com>
80814
80815         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
80816         about `signed and unsigned type in conditional expression'.
80817         * lib/posixtm.c (posix_time_parse): Likewise.
80818
80819         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
80820
80821         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
80822         to avoid a pedantic warning.
80823
80824         * lib/getstr.c: Don't include assert.h.
80825         (getstr): Remove warning-evoking assertions.
80826         Return -1 if offset parameter is out of bounds.
80827         Change the type of a local from int to size_t.
80828
80829         * lib/strftime.c (my_strftime_localtime_r): Include this function
80830         definition in the `#if ! HAVE_TM_GMTOFF' block.
80831
80832         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
80833         Include xalloc.h instead.
80834
80835 2001-12-02  Jim Meyering  <meyering@lucent.com>
80836
80837         * lib/tempname.c: Don't declare getenv, thus reverting the change of
80838         2001-11-18.  It's no longer necessary, now that stdlib.h is always
80839         included.
80840
80841         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
80842         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
80843
80844 2001-11-30  Akim Demaille  <akim@epita.fr>
80845
80846         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
80847         before being defined.
80848
80849 2001-11-27  Paul Eggert  <eggert@twinsun.com>
80850
80851         * lib/quotearg.h (quotearg_n, quotearg_n_style):
80852         First arg is int, not unsigned.
80853         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
80854         (SIZE_MAX, UINT_MAX): New macros.
80855         (quotearg_n_options): Abort if N is negative.
80856         Avoid overflow check on hosts where size_t is 64 bits and int
80857         is 32 bits, as overflow is impossible there.
80858         Fix off-by-one typo that caused unnecessary reallocation.
80859
80860 2001-11-27  Jim Meyering  <meyering@lucent.com>
80861
80862         * lib/tempname.c: Merge with version from libc.
80863         * lib/regex.c: Likewise.
80864
80865         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
80866         systems for which STDC_HEADERS is 0, it was not included, resulting in
80867         a warning about an integer-to-pointer conversion problem with getenv.
80868         Reported by Volker Borchert.
80869
80870 2001-11-26  Jim Meyering  <meyering@lucent.com>
80871
80872         * lib/gtod.h: Remove file.
80873         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
80874         * lib/gettimeofday.c: Don't include gtod.h.
80875         (GTOD_init): Remove function.
80876         (rpl_gettimeofday): Do its job here instead, rather than aborting.
80877         Suggestion from Volker Borchert.
80878
80879 2001-11-23  Jim Meyering  <meyering@lucent.com>
80880
80881         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
80882         it.
80883         * lib/hash.c (struct hash_table): Define it here instead.
80884
80885 2001-11-22  Jim Meyering  <meyering@lucent.com>
80886
80887         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
80888
80889 2001-11-20  Jim Meyering  <meyering@lucent.com>
80890
80891         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
80892         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
80893
80894 2001-11-19  Jim Meyering  <meyering@lucent.com>
80895
80896         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
80897         directory.  Use "conftestXXXXXX" as the template.
80898         Suggestion from Paul Eggert.
80899
80900         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
80901         immediately, so the test doesn't mistakenly hit the max-open-files
80902         limit.
80903
80904 2001-11-18  Paul Eggert  <eggert@twinsun.com>
80905
80906         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
80907         (TEMPORARIES): New macro.
80908         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
80909         removes an artificial limitation (e.g. HP-UX 10.20, where
80910         TMP_MAX is 17576).
80911
80912 2001-11-18  Jim Meyering  <meyering@lucent.com>
80913
80914         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
80915
80916 2001-11-18  Jim Meyering  <meyering@lucent.com>
80917
80918         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
80919         on SunOS 4.
80920
80921         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
80922         files will be created before anything else.
80923
80924 2001-11-17  Paul Eggert  <eggert@twinsun.com>
80925
80926         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
80927         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
80928
80929 2001-11-17  Jim Meyering  <meyering@lucent.com>
80930
80931         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
80932         Prompted by a report from Bob Proulx.
80933
80934         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
80935         Instead, require UTILS_FUNC_MKSTEMP.
80936
80937 2001-11-17  Jim Meyering  <meyering@lucent.com>
80938
80939         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
80940         Now, that's done as part of AC_FUNC_STRTOD.
80941
80942 2001-11-17  Jim Meyering  <meyering@lucent.com>
80943
80944         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
80945         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
80946         rather than group writable.  Patch by Juan F. Codagnone.
80947
80948         * lib/readtokens.c: Remove explicit declarations of xmalloc and
80949         xrealloc, Instead, include "xalloc.h".
80950
80951         * lib/mountlist.c: Include unlocked-io.h after all system headers.
80952         Remove explicit declarations of xmalloc, xrealloc,
80953         and xstrdup.  Instead, include "xalloc.h".
80954
80955         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
80956         unlocked-io.h.
80957         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
80958         Likewise.
80959         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
80960
80961         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
80962         Reported by Padraig Brady.
80963
80964         * lib/mkstemp.c: #undef mkstemp.
80965         Include config.h.
80966         (rpl_mkstemp): Rename from mkstemp.
80967         Protoize.
80968
80969 2001-11-16  Jim Meyering  <meyering@lucent.com>
80970
80971         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
80972         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
80973         determine the amount of total physical memory, use pstat_getstatic.
80974         HPUX-11 doesn't define _SC_PHYS_PAGES.
80975         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
80976         If sysconf couldn't be used to determine the amount of available
80977         physical memory, use both pstat_getstatic and pstat_getdynamic.
80978         Based on a patch from Bob Proulx.
80979
80980 2001-11-10  Jim Meyering  <meyering@lucent.com>
80981
80982         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
80983         (jm_PREREQ): Use it.
80984
80985 2001-11-09  Jim Meyering  <meyering@lucent.com>
80986
80987         * m4/jm-macros.m4: Require autoconf-2.52f.
80988         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
80989         Use these AC_-prefixed names, not the AM_-prefixed ones.
80990
80991         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
80992
80993 2001-11-05  Jim Meyering  <meyering@lucent.com>
80994
80995         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
80996
80997 2001-11-04  Jim Meyering  <meyering@lucent.com>
80998
80999         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
81000         $DEFS.
81001
81002 2001-11-03  Jim Meyering  <meyering@lucent.com>
81003
81004         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
81005         of AC_DEFUN.
81006
81007         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
81008         know the name of the variable in the macro definition.
81009
81010 2001-11-03  Jim Meyering  <meyering@lucent.com>
81011
81012         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
81013         in argmatch_to_argument call.
81014
81015         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
81016         argument.
81017
81018         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
81019         e.g., a fault due to an attempt to free a NULL pointer.
81020
81021 2001-11-01  Jim Meyering  <meyering@lucent.com>
81022
81023         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
81024         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
81025
81026 2001-11-01  Jim Meyering  <meyering@lucent.com>
81027
81028         * lib/dirfd.c, lib/dirfd.h: New files.
81029         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
81030
81031         * lib/hash.c (hash_print) [TESTING]: Clean up.
81032
81033 2001-10-22  Paul Eggert  <eggert@twinsun.com>
81034
81035         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
81036         to avoid a warning if -Wall.
81037
81038 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
81039
81040         * README: New file
81041         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
81042         (per RMS's instructions, this is now the canonical source)
81043         * lgpl/, gpl/: New directories.
81044
81045 2001-10-21  Paul Eggert  <eggert@twinsun.com>
81046
81047         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
81048
81049 2001-10-21  Jim Meyering  <meyering@lucent.com>
81050
81051         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
81052         this code would end up calling gettext even in packages built
81053         with --disable-nls.
81054         * lib/getopt.c (_): Likewise.
81055         * lib/regex.c (_): Likewise.
81056
81057 2001-10-20  Paul Eggert  <eggert@twinsun.com>
81058
81059         * m4/error.m4 (jm_PREREQ_ERROR):
81060         Do not invoke AC_CHECK_FUNCS with strerror_r, as
81061         AC_FUNC_STRERROR_R does that.
81062         Check for strerror declaration.
81063
81064         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
81065         are supposed to have them these days.
81066         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
81067         Merge changes from latest Autoconf CVS.
81068         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
81069         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
81070         POSIX decided to standardize on the int flavor of strerror_r.
81071
81072 2001-10-20  Paul Eggert  <eggert@twinsun.com>
81073
81074         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
81075         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
81076         Use strerror_r that is only a macro, even if it is not a function.
81077         (strerror): Check for HAVE_DECL_STRERROR before declaring.
81078         (private_strerror): Use prototypes, not old-style function definition.
81079         (print_errno_message): New function.
81080         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
81081         char*-flavored one.
81082         (error_tail, error, error_at_line): Use it.
81083
81084 2001-10-11  Jim Meyering  <meyering@lucent.com>
81085
81086         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
81087         and quote_n (1, ... to avoid clobbering a buffer.
81088
81089 2001-10-05  Jim Meyering  <meyering@lucent.com>
81090
81091         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
81092         hash-pjw.h.
81093         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
81094         * lib/hash-pjw.h: New file.
81095
81096 2001-09-30  Jim Meyering  <meyering@lucent.com>
81097
81098         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
81099         `struct fsstat' has the `f_fstypename' member.
81100         Use that to define FS_TYPE, which is now used to make
81101         the getfsstat link test tighter.
81102
81103 2001-09-30  Jim Meyering  <meyering@lucent.com>
81104
81105         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
81106         Include <sys/ucred.h>, for Apple Darwin.
81107         Include sys/mount.h and sys/fs_types.h only if available.
81108         (FS_TYPE): Define.
81109         (read_filesystem_list): Use FS_TYPE.
81110
81111 2001-09-29  Paul Eggert  <eggert@twinsun.com>
81112
81113         * lib/exclude.c (excluded_filename): 0 -> false, since it's
81114         a boolean context.
81115
81116 2001-09-29  Jim Meyering  <meyering@lucent.com>
81117
81118         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
81119         [one-argument getmntent function]): Include stdio.h before mntent.h.
81120         SunOS 4.1.x needs it for the declaration of `FILE'.
81121         Patch by Volker Borchert.
81122
81123         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
81124         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
81125         sys/fs_types.h, and make the link-test for getfsstat guard #include
81126         directives with appropriate #if HAVE_*_H tests so that we can
81127         detect getfsstat on Apple Darwin1.3.7 systems.
81128         Reported by Nelson Beebe.
81129         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
81130
81131 2001-09-28  Paul Eggert  <eggert@twinsun.com>
81132
81133         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
81134         #defines strtoimax.  Also treat the other strto* functions
81135         like strtoimax.
81136
81137         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
81138         Check for strtoul and strtoumax,
81139         as those declarations are made even in the signed case.
81140         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
81141         Likewise, for strtol and strtoimax.
81142
81143 2001-09-28  Paul Eggert  <eggert@twinsun.com>
81144
81145         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
81146         #defines strtoimax.  Also treat the other strto* functions
81147         like strtoimax.
81148
81149         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
81150         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
81151         (strtoimax, strtoumax): Do not declare if already defined as a macro.
81152
81153 2001-09-26  Jim Meyering  <meyering@lucent.com>
81154
81155         Most macros in unlocked-io.h had the wrong number of arguments.
81156         * lib/gen-uio: New script.
81157         (USE_UNLOCKED_IO): Define to 1 if not already defined.
81158         * lib/unlocked-io.hin: Remove file.
81159         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
81160         rather than trying to embed it here.
81161         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
81162         Reported by Padraig Brady.
81163
81164 2001-09-25  Volker Borchert  <bt@teknon.de>
81165
81166         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
81167         `result'.
81168
81169 2001-09-24  Jim Meyering  <meyering@lucent.com>
81170
81171         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
81172
81173 2001-09-23  Jim Meyering  <meyering@lucent.com>
81174
81175         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
81176         instead of the mere test for existence of mntent.h.  The latter
81177         would get a false-positive on AIX 3.4 systems.
81178         In the outer getmntent if-block, don't die if neither of the getmntent
81179         tests succeeds.  Instead, just fall through and continue with the
81180         remaining tests.
81181
81182 2001-09-23  Jim Meyering  <meyering@lucent.com>
81183
81184         * lib/mountlist.c: Remove useless parentheses in #if directives.
81185         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
81186         the deprecated MOUNTED symbol is no longer defined in mntent.h.
81187
81188 2001-09-22  Jim Meyering  <meyering@lucent.com>
81189
81190         * m4/gettext.m4: New file.  From gettext.
81191         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
81192         * m4/progtest.m4: Likewise
81193         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
81194         * m4/glibc21.m4: Likewise.
81195
81196         * m4/libintl.m4: Remove.  No longer used.
81197
81198 2001-09-22  Jim Meyering  <meyering@lucent.com>
81199
81200         * lib/localcharset.c: Update from latest gettext.
81201         * lib/config.charset: Likewise.
81202
81203 2001-09-20  Jim Meyering  <meyering@lucent.com>
81204
81205         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
81206         strtoimax.
81207         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
81208         strtoumax.
81209
81210 2001-09-20  Jim Meyering  <meyering@lucent.com>
81211
81212         * lib/xstrtol.c (strtoimax): Guard declaration with
81213         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
81214         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
81215         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
81216         (strtoumax): Likewise, for completeness (it wasn't necessary).
81217
81218 2001-09-17  Paul Eggert  <eggert@twinsun.com>
81219
81220         * lib/strtoimax.c (HAVE_LONG_LONG):
81221         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
81222         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
81223         to work around bug in IBM C compiler.
81224
81225 2001-09-17  Jim Meyering  <meyering@lucent.com>
81226
81227         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
81228         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
81229         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
81230         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
81231         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
81232         whenever the right hand side need not be expanded by the shell.
81233
81234 2001-09-16  Paul Eggert  <eggert@twinsun.com>
81235
81236         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
81237         library.  It's not correct, as some older glibcs are buggy.
81238         fnmatch wasn't fixed until glibc 2.2.
81239
81240         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
81241         special shell magic here.
81242
81243 2001-09-16  Jim Meyering  <meyering@lucent.com>
81244
81245         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
81246         * m4/jm-macros.m4: Require it.
81247
81248 2001-09-16  Jim Meyering  <meyering@lucent.com>
81249
81250         * lib/mkdir.c: New file.
81251
81252 2001-09-15  Jim Meyering  <meyering@lucent.com>
81253
81254         * m4/jm-macros.m4: Check for help2man.
81255
81256 2001-09-11  Jim Meyering  <meyering@lucent.com>
81257
81258         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
81259         The body, by Paul Eggert, was moved here from configure.in.
81260         * m4/jm-macros.m4: Require UTILS_HOST_OS.
81261
81262 2001-09-04  Paul Eggert  <eggert@twinsun.com>
81263
81264         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
81265         (jm_PREREQ): Use it.
81266
81267 2001-09-04  Paul Eggert  <eggert@twinsun.com>
81268
81269         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
81270         Use ssize_t, not int, to store result of readlink.
81271         Check for ssize_t overflow as well as size_t overflow,
81272         as POSIX says the result of readlink is implementation-defined
81273         when ssize_t overflows.
81274         Remove unnecessary cast to char*.
81275         Use free+malloc instead of realloc, as the storage doesn't need
81276         to be preserved and it's clearer and can be more efficient that way.
81277         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
81278         * lib/xreadlink.h (xreadlink): Update prototype.
81279
81280 2001-09-04  Paul Eggert  <eggert@twinsun.com>
81281
81282         * lib/xgetcwd.c: Revert some of the previous change; intead,
81283         fix the HAVE_GETCWD_NULL code to behave more like the
81284         !HAVE_GETCWD_NULL code used to.
81285
81286         Include "xalloc.h".
81287         (xgetcwd): Do not return NULL when memory is exhausted; instead,
81288         invoke xalloc_die.
81289
81290 2001-09-03  Paul Eggert  <eggert@twinsun.com>
81291
81292         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
81293         sys/param.h, as pathmax.h includes them.
81294
81295 2001-09-03  Paul Eggert  <eggert@twinsun.com>
81296
81297         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
81298         (jm_PREREQ_XGETCWD): New macro.
81299
81300         * m4/getcwd.m4: New file.
81301
81302 2001-09-03  Paul Eggert  <eggert@twinsun.com>
81303
81304         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
81305         like the HAVE_GETCWD_NULL code.
81306         Include pathmax.h if not HAVE_GETCWD.
81307         Do not include xalloc.h.
81308         (INITIAL_BUFFER_SIZE): New symbol.
81309         Do not use xmalloc / xrealloc, since the caller is responsible for
81310         handling errors.  Preserve errno around `free' during failure.
81311         Do not overrun buffer when using getwd.
81312
81313 2001-09-03  Paul Eggert  <eggert@twinsun.com>
81314
81315         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
81316         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
81317         getcwd (NULL, 0).
81318
81319 2001-09-03  Paul Eggert  <eggert@twinsun.com>
81320
81321         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
81322         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
81323         spotted by Jim Meyering.
81324
81325 2001-09-03  Jim Meyering  <meyering@lucent.com>
81326
81327         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
81328         failure.
81329
81330 2001-09-02  Jim Meyering  <meyering@lucent.com>
81331
81332         * lib/error.c: Update from GNU libc.
81333
81334 2001-09-01  Jim Meyering  <meyering@lucent.com>
81335
81336         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
81337         Used by df.
81338
81339 2001-09-01  Jim Meyering  <meyering@lucent.com>
81340
81341         * lib/xreadlink.c: New file.
81342         * lib/xreadlink.h: New file.
81343         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
81344         xreadlink.h.
81345
81346         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
81347         doesn't conflict with sparc Solaris 7's definition in
81348         /usr/include/sys/int_types.h.
81349
81350         * lib/exclude.c: Use `""', not `<>' to #include non-system header
81351         files.
81352         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
81353         and strncasecmp as r-values.  Unixware didn't have declarations.
81354
81355 2001-08-31  Paul Eggert  <eggert@twinsun.com>
81356
81357         * lib/xstrtol.h: Add copyright notice.
81358         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
81359         LONGINT_INVALID_SUFFIX_CHAR.
81360
81361 2001-08-31  Paul Eggert  <eggert@twinsun.com>
81362
81363         * lib/xstrtol.c (strtoimax): New decl.
81364
81365 2001-08-31  Paul Eggert  <eggert@twinsun.com>
81366
81367         * lib/xgetcwd.c: Don't include pathmax.h.
81368         Include stdlib.h and unistd.h if available.
81369         Include xalloc.h.
81370         (xmalloc, xstrdup, free): Remove decls.
81371         (xgetcwd): Don't assume sizes fit in unsigned.
81372         Check for overflow when computing sizes.
81373         Simplify reallocation code.
81374
81375 2001-08-31  Paul Eggert  <eggert@twinsun.com>
81376
81377         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
81378         a directory's st_size can have an arbitrary value, so the old
81379         usage could waste an arbitrary amount of memory.  All uses
81380         changed.
81381         * lib/savedir.h: Update prototype.
81382
81383 2001-08-31  Paul Eggert  <eggert@twinsun.com>
81384
81385         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
81386
81387         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
81388         old strtoimax.c.
81389
81390         Also, make the following further changes to make this file's
81391         configuration more similar to that of strtol.c:
81392         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
81393         (strtoumax, uintmax_t, strtoull, strtol): Remove.
81394         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
81395         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
81396         changed to signed values.
81397
81398         And make the following changes as well:
81399         Fix copyright notice, as 1999 was missing.
81400         (verify): New macro.
81401         (strtoimax): Check sizes at compile-time, not run-time.
81402         Prefer strtol to strtoll if both work.
81403         (main): Remove; it was not that useful and was a pain to maintain.
81404
81405         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
81406
81407 2001-08-31  Jim Meyering  <meyering@lucent.com>
81408
81409         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
81410         Use an initial, malloc'd, buffer of length 128 rather than
81411         a statically allocated one of length 1024.
81412
81413 2001-08-30  Paul Eggert  <eggert@twinsun.com>
81414
81415         Simplify code, partly by assuming autoconf 2.52 semantics.
81416
81417         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
81418
81419         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
81420         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
81421         All uses removed.
81422         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
81423         Move AC_REQUIRE to next-to-top level, to avoid confusion.
81424         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
81425         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
81426         jm_AC_HEADER_INTTYPES_H.
81427         * m4/jm-macros.m4 (jm_MACROS): Likewise.
81428
81429         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
81430
81431         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
81432         Quote first arg of AC_DEFUN.
81433         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
81434         since they are needed to parse the include file even if we need
81435         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
81436         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
81437         but with opposite signedness.
81438
81439 2001-08-30  Paul Eggert  <eggert@twinsun.com>
81440
81441         Merge 'exclude' changes from tar 1.13.22.
81442         This fixes one or two unlikely storage allocation overflow bugs,
81443         but doesn't change user-visible behavior otherwise.
81444
81445 2001-08-30  Paul Eggert  <eggert@twinsun.com>
81446
81447         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
81448         (jm_PREREQ_EXCLUDE): New macro.
81449
81450 2001-08-30  Paul Eggert  <eggert@twinsun.com>
81451
81452         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
81453         tm to be declared.
81454
81455 2001-08-30  Paul Eggert  <eggert@twinsun.com>
81456
81457         * lib/hash.c: Remove '2001' from copyright notice.
81458
81459 2001-08-30  Paul Eggert  <eggert@twinsun.com>
81460
81461         * lib/full-write.h: New file.
81462         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
81463         * lib/full-write.c: Correct credits, as cccp.c no longer
81464         exists and anyway it was so heavily changed from the old cccp
81465         code as to be unrecognizable.  Include full-write.h.
81466         (full_write): Return size_t, with short writes meaning failure.
81467         All callers changed.  This fixes a bug with large buffers
81468         on 64-bit hosts.
81469         * lib/utime.c: Include full-write.h.
81470
81471 2001-08-30  Paul Eggert  <eggert@twinsun.com>
81472
81473         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
81474         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
81475         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
81476         Include if available.
81477         (<xalloc.h>): Include
81478         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
81479         (verify): New macro.  Use it to verify that EXCLUDE macros do not
81480         collide with FNM macros.
81481         (struct patopts): New struct.
81482         (struct exclude): Use it, as exclude patterns now come with options.
81483         (new_exclude): Support above changes.
81484         (new_exclude, add_exclude_file):
81485         Initial size must now be a power of two to simplify overflow checking.
81486         (free_exclude, fnmatch_no_wildcards): New function.
81487         (excluded_filename): No longer requires options arg, as the options
81488         are determined by add_exclude.  Now returns bool, not int.
81489         (excluded_filename, add_exclude):
81490         Add support for the fancy new exclusion options.
81491         (add_exclude, add_exclude_file): Now takes int options arg.
81492         Check for arithmetic overflow when computing sizes.
81493         (add_exclude_file): xrealloc might modify errno, so don't
81494         realloc until after errno might be used.
81495
81496         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
81497         New macros.
81498         (free_exclude): New decl.
81499         (add_exclude, add_exclude_file): Now takes int options arg.
81500         (excluded_filename): No longer requires options arg, as the options
81501         are determined by add_exclude.  Now returns bool, not int.
81502
81503 2001-08-30  Paul Eggert  <eggert@twinsun.com>
81504
81505         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
81506
81507 2001-08-27  Jim Meyering  <meyering@lucent.com>
81508
81509         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
81510
81511         * lib/version-etc.c (N_): Remove definition.
81512         Revert most of last change.
81513         Instead, simply don't mark the `Copyright...' string for translation.
81514         Based on advice from Paul Eggert.
81515
81516         * lib/strtoxmax.c: Tweak comment.
81517
81518 2001-08-26  Jim Meyering  <meyering@lucent.com>
81519
81520         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
81521
81522         * m4/xstrtoimax.m4: New file.
81523         * m4/xstrtoumax.m4: Add comments explaining why we
81524         AC_REPLACE_FUNCS(strtol).
81525
81526 2001-08-26  Jim Meyering  <meyering@lucent.com>
81527
81528         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
81529         of copyright with `%s' so translators don't get an untranslated
81530         message in 2002.
81531         (COPYRIGHT_YEAR): Define.
81532         (version_etc): Use fprintf rather than fputs.
81533         Suggestion from Ulrich Drepper.
81534
81535         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
81536
81537         * lib/strtoll.c: New file, from GNU libc.
81538         * lib/xstrtoimax.c: New file.
81539
81540         * lib/xstrtol.h: Add xstrtoimax.
81541         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
81542         * lib/strtoimax.c: New file.  Likewise, but first define
81543         STRTOUXMAX_SIGNED.
81544
81545         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
81546         ...
81547         * lib/strtoxmax.c: ... then renamed to this.
81548
81549 2001-08-18  Paul Eggert  <eggert@twinsun.com>
81550
81551         * m4/inttypes.m4: Add AC_PREREQ(2.13).
81552         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
81553         (jm_AC_TYPE_INTMAX_T): New macro.
81554         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
81555
81556         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
81557
81558         * m4/longlong.m4: Renamed from ulonglong.m4.
81559         * m4/inttypes.m4: Renamed from inttypes_h.m4.
81560         * m4/uintmax_t.m4: Removed.
81561
81562 2001-08-13  Paul Eggert  <eggert@twinsun.com>
81563
81564         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
81565         Port to Solaris 8, where 'sed' requires a space after the 'r'
81566         command, and where sh dislikes "$/".  Clean up the spacing a bit.
81567         Redirect output to $tmp just once.
81568
81569 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
81570
81571         * lib/addext.c (<errno.h>): Include.
81572         (errno): Declare if not defined.
81573         (addext): Work correctly when pathconf returns -1 and leaves
81574         errno alone because there is no limit.  Also, work even if
81575         pathconf returns a value greater than SIZE_MAX.
81576
81577 2001-08-12  Jim Meyering  <meyering@lucent.com>
81578
81579         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
81580         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
81581         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
81582         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
81583         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
81584         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
81585         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
81586         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
81587         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
81588         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
81589         utime.m4, utimes.m4, xstrtoumax.m4:
81590         Quote the first argument in each use of AC_DEFUN.
81591
81592 2001-08-12  Jim Meyering  <meyering@lucent.com>
81593
81594         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
81595         Simply `return getcwd (NULL, 0);'.
81596         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
81597         Use 1300 as initial value for length, not PATH_MAX.
81598
81599         * lib/pathmax.h: Clean up cpp syntax.
81600
81601 2001-08-12  Jim Meyering  <meyering@lucent.com>
81602
81603         * lib/gettimeofday.c: New file.
81604         * lib/gtod.h: New file.
81605         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
81606
81607 2001-08-05  Jim Meyering  <meyering@lucent.com>
81608
81609         * m4/jm-macros.m4: Require autoconf-2.52.
81610
81611 2001-08-04  Jim Meyering  <meyering@lucent.com>
81612
81613         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
81614         stmt, to get in sync with glibc.
81615
81616 2001-08-03  Paul Eggert  <eggert@twinsun.com>
81617
81618         The following changes are from gettext 0.10.39 as maintained by
81619         Bruno Haible.
81620
81621         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
81622         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
81623         with inverted sense.  All uses changed.
81624
81625         * lib/mbswidth.c: Don't include <limits.h>.
81626         Include <stdlib.h> and <string.h> unconditionally.
81627         (iswcntrl, mbsinit, ISCNTRL): New macros.
81628         (mbsnwidth): Use K&R style function declarations.
81629         Don't bother checking for MB_LEN_MAX == 1, since the compiler
81630         can optimize it when MB_CUR_MAX == 1.
81631         The width of control characters is zero, not 1.
81632
81633 2001-08-03  Paul Eggert  <eggert@twinsun.com>
81634
81635         The following changes are from gettext 0.10.39 as maintained by
81636         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
81637
81638         * m4/codeset.m4: Upgrade to serial AM1.
81639         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
81640         all uses changed.  Quote first arg of AC_DEFUN.
81641         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
81642
81643         * m4/iconv.m4: Upgrade to serial AM2.
81644         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
81645         Add --with-libconv-prefix.
81646         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
81647         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
81648         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
81649         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
81650         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
81651
81652         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
81653         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
81654         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
81655         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
81656         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
81657         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
81658         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
81659         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
81660         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
81661
81662         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
81663         string.h any more.
81664
81665         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
81666         not the default value.
81667
81668         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
81669         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
81670         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
81671         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
81672         Also check for iswcntrl, used for wcwidth fallback.
81673         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
81674         to Autoconf 2.13.
81675
81676 2001-08-03  Jim Meyering  <meyering@lucent.com>
81677
81678         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
81679         as it was in the original.  Reported by Paul Eggert.
81680
81681 2001-07-16  Jim Meyering  <meyering@lucent.com>
81682
81683         * m4/gettimeofday.m4: New file.
81684         Prompted by a report from Bernhard Baehr.
81685
81686 2001-07-15  Jim Meyering  <meyering@lucent.com>
81687
81688         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
81689         stuff. Now it's in ../Makefile.cfg.
81690
81691 2001-07-15  Jim Meyering  <meyering@lucent.com>
81692
81693         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
81694         (BUILT_SOURCES): Add unlocked-io.h.
81695         (io_functions): Define.
81696         (unlocked-io.h): New rule.
81697         (DISTCLEANFILES): Add unlocked-io.h.
81698         (all-local): Depend on unlocked-io.h, to ensure it is created.
81699
81700         * lib/unlocked-io.hin: New file
81701
81702         * lib/regex.c: Update from glibc.
81703
81704 2001-07-05  Jim Meyering  <meyering@lucent.com>
81705
81706         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
81707         recommendation.
81708         (libfetish_a_SOURCES): Put all .h files here instead.
81709         Remove a thus-exposed (better checks in automake) duplicate and
81710         two unnecessary .h files.
81711
81712 2001-07-04  Jim Meyering  <meyering@lucent.com>
81713
81714         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
81715         that generates jm-glibc-io.m4 so that it doesn't trigger any make
81716         distcheck failure.
81717
81718 2001-07-02  Jim Meyering  <meyering@lucent.com>
81719
81720         The following changes were prompted by suggestions from Bruno Haible.
81721
81722         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
81723         is now generated.
81724         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
81725         definition of EXTRA_DIST.
81726         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
81727         ensure that the generated file is created/updated whenever the list
81728         of $(unlocked_functions) is changed.
81729         (jm-glibc-io.m4): New rule.
81730         (unlocked-io.h): New rule -- currently unused.
81731
81732 2001-06-24  Jim Meyering  <meyering@lucent.com>
81733
81734         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
81735         unmatched right bracket, rather than kludging it with an extra,
81736         falsely-matching quote in a comment.  Patch by Akim Demaille.
81737
81738 2001-06-11  Jim Meyering  <meyering@lucent.com>
81739
81740         * lib/regex.c: Update from GNU libc.
81741
81742 2001-05-27  Jim Meyering  <meyering@lucent.com>
81743
81744         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
81745         Check for ut_type in struct utmp.
81746
81747 2001-05-27  Jim Meyering  <meyering@lucent.com>
81748
81749         * lib/readutmp.h (UT_TYPE): Define.
81750
81751 2001-05-24  Jim Meyering  <meyering@lucent.com>
81752
81753         * lib/argmatch.c: Include "quote.h".
81754         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
81755         quote function.  Reported by Göran Uddeborg.
81756
81757 2001-05-22  Jim Meyering  <meyering@lucent.com>
81758
81759         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
81760         now that we use the package-supplied version unconditionally.
81761         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
81762
81763 2001-05-21  Jim Meyering  <meyering@lucent.com>
81764
81765         * m4/regex.m4: Change a couple backticks to single quotes to avoid
81766         shell syntax errors.
81767
81768 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
81769
81770         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
81771
81772 2001-05-20  Paul Eggert  <eggert@twinsun.com>
81773
81774         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
81775         Don't bother to check library strftime, since
81776         we'll be using our own my_strftime function anyway.
81777         Define my_strftime instead of strftime.
81778
81779 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
81780
81781         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
81782         which is not yet declared.
81783
81784 2001-05-15  Jim Meyering  <meyering@lucent.com>
81785
81786         * m4/regex.m4: Use proper quoting so brackets appear in the test
81787         program.
81788         Reported by, and with help from, Bruno Haible.
81789
81790 2001-05-13  Jim Meyering  <meyering@lucent.com>
81791
81792         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
81793         undefined.
81794
81795 2001-05-11  Paul Eggert  <eggert@twinsun.com>
81796
81797         dirname code cleanup.  base_name now behaves more compatibly
81798         with POSIX basename when given file names that have trailing
81799         slashes, and similarly for dir_name.  Add new primitives
81800         base_len and dir_len.  Put the directory-name-related decls
81801         into dirname.h.
81802
81803         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
81804         * lib/backupfile.c (base_name): Likewise.
81805         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
81806         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
81807         * lib/makepath.c (strip_trailing_slashes): Likewise.
81808         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
81809         ISSLASH): Likewise.
81810         * lib/rename.c (strip_trailing_slashes): Likewise.
81811         * lib/same.c (base_name): Likewise.
81812         * lib/stripslash.c (ISSLASH): Likewise.
81813
81814         * lib/addext.c: Include <dirname.h> after size_t is defined.
81815         * lib/backupfile.c: Likewise.
81816
81817         * lib/addext.c (addext): Use base_len to trim redundant
81818         trailing slashes instead of doing it ourselves.
81819         But do not trim the last slash if it is not redundant.
81820
81821         * lib/backupfile.c (find_backup_file_name,
81822         max_backup_version): Use base_len instead of rolling it ourselves.
81823         Handle the case of "" and (on DOS) "C:" correctly.
81824
81825         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
81826         needed. Include <string.h>, <dirname.h>.
81827         (base_name): Allow file names ending in slashes, other than names
81828         that are all slashes.  In this case, return the basename followed
81829         by the slashes.  This is more general, and can be used in places
81830         where the original base_name purposely had an assertion failure.
81831         (base_len): New function.
81832
81833         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
81834         Do not include <assert.h>; no longer needed.
81835         Include xalloc.h.
81836         (memrchr): Remove decl.
81837         (dir_name_r): Remove.
81838         (dir_len): Renamed from dirlen.  All callers changed.
81839         Rewrite in terms of base_name, for simplicity and consistency.
81840         (dir_name): Never return NULL.  All callers changed.
81841         Do not include <stdlib.h> in test program; no longer needed.
81842         return 0; is fine for test program.
81843
81844         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
81845         New macros.
81846         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
81847
81848         * lib/path-concat.c (path_concat): Use base_len to compute
81849         base length, not strlen; this means we cannot rely on memcpy
81850         to null-terminate.
81851
81852         * lib/same.c (STREQ): Remove.
81853         (same_name): Handle the case where the basename ends in trailing '/'.
81854
81855         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
81856         a slash was stripped.  Do not strip the last slash after a
81857         file system prefix.
81858
81859 2001-05-11  Paul Eggert  <eggert@twinsun.com>
81860
81861         * lib/Makefile.am (libfetish_a_SOURCES):
81862         Add strftime.c, since we now compile it on all hosts.
81863
81864         * lib/strftime.c (my_strftime):
81865         Define to nstrftime if emacs, but only if my_strftime is not defined.
81866         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
81867         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
81868         Add one more extra argument: a nanoseconds value.
81869         All uses changed.
81870         (ns): New macro.
81871         (my_strftime function): Add %N format.
81872         (emacs_strftimeu): Renamed from emacs_strftime,
81873         with extra ut argument.
81874
81875 2001-05-09  Paul Eggert  <eggert@twinsun.com>
81876
81877         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
81878
81879 2001-04-21  Jim Meyering  <meyering@lucent.com>
81880
81881         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
81882         doesn't interfere.
81883
81884 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
81885
81886         * m4/ftruncate.m4: Check for chsize.
81887         Link with ftruncate.o unconditionally if ftruncate is missing.
81888         This was required when cross-compiling to i586-mingw32msvc.
81889
81890 2001-04-08  Jim Meyering  <meyering@lucent.com>
81891
81892         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
81893         recomputed; that's necessary when the offset spans a DST transition.
81894         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
81895
81896 2001-04-02  Jim Meyering  <meyering@lucent.com>
81897
81898         * lib/regex.h, regex.c: Update from GNU libc.
81899
81900 2001-03-24  Jim Meyering  <meyering@lucent.com>
81901
81902         * m4/jm-macros.m4: Require autoconf-2.49d.
81903
81904 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
81905
81906         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
81907
81908 2001-03-19  Paul Eggert  <eggert@twinsun.com>
81909
81910         * lib/version-etc.c (version_etc_copyright): Update to 2001.
81911
81912 2001-03-17  Jim Meyering  <meyering@lucent.com>
81913
81914         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
81915         now that the version in autoconf is equivalent.
81916         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
81917
81918         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
81919         Suggestion from Akim Demaille.
81920
81921         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
81922         (jm_PREREQ_TEMPNAME): New function.
81923
81924 2001-03-16  Paul Eggert  <eggert@twinsun.com>
81925
81926         * lib/tempname.c (uint64_t): Define to uintmax_t if
81927         not defined, and if UINT64_MAX is not defined.
81928         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
81929         Reported by John David Anglin.
81930
81931 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
81932
81933         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
81934         resolve alias if codeset is empty.
81935         * lib/config.charset (BeOS): Use wildcard syntax.
81936
81937 2001-03-13  Jim Meyering  <meyering@lucent.com>
81938
81939         * lib/path-concat.c (path_concat)
81940         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
81941         concatenating e.g., `C:' and `foo'.
81942         From Bruno Haible.
81943
81944 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
81945
81946         * lib/localcharset.c (locale_charset): Don't use
81947         setlocale(LC_CTYPE,NULL). Don't return NULL.
81948         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
81949
81950 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
81951
81952         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
81953         support for DOS/DJGPP.
81954
81955 2001-03-01  Paul Eggert  <eggert@twinsun.com>
81956
81957         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
81958         lacks mkstemp.  Compile our own tempname.c if we compile our own
81959         mkstemp.c, as mkstemp relies on tempname.
81960
81961 2001-03-01  Jim Meyering  <meyering@lucent.com>
81962
81963         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
81964         AH_VERBATIM really does output its argument verbatim.
81965
81966 2001-02-28  Paul Eggert  <eggert@twinsun.com>
81967
81968         * lib/Makefile.am (libfetish_a_SOURCES):
81969         Add dup-safer.c, fopen-safer.c.
81970         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
81971
81972         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
81973         * lib/unistd-safer.h: New files.
81974
81975 2001-02-25  Paul Eggert  <eggert@twinsun.com>
81976
81977         The mkstemp replacement is taken from glibc 2.2.2, with some
81978         portability fixes for use outside glibc, as follows:
81979
81980         * lib/tempname.c (struct_stat64): New macro.
81981         (direxists, __gen_tempname): Use it.
81982         This avoids a portability problem with Solaris 8.
81983
81984         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
81985         (<stddef.h>, <stdint.h>, <string.h>):
81986         Include only if STDC_HEADERS || _LIBC.
81987         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
81988         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
81989         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
81990         (__set_errno): Define this macro if <errno.h> doesn't.
81991         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
81992         Define these macros if <stdio.h> doesn't.
81993         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
81994         Define these macros if <sys/stat.h>
81995         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
81996         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
81997         __xstat64): Define if not _LIBC.
81998         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
81999         (__gen_tempname): Invoke gettimeofday only if
82000         HAVE_GETTIMEOFDAY || _LIBC;
82001         otherwise, fall back on plain "time".
82002         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
82003
82004         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
82005
82006         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
82007
82008 2001-02-18  Paul Eggert  <eggert@twinsun.com>
82009
82010         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
82011
82012 2001-02-17  Paul Eggert  <eggert@twinsun.com>
82013
82014         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
82015         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
82016         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
82017         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
82018
82019 2001-02-17  Paul Eggert  <eggert@twinsun.com>
82020
82021         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
82022         Remove workaround macros for hosts that have mbrtowc but not
82023         mbstate_t, as we now insist on proper declarations for both
82024         before using mbrtowc.
82025
82026 2001-02-17  Jim Meyering  <meyering@lucent.com>
82027
82028         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
82029         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
82030         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
82031         UnixWare 7.1.1.
82032
82033         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
82034         rather than AC_CACHE_VAL.
82035
82036 2001-02-17  Jim Meyering  <meyering@lucent.com>
82037
82038         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
82039         around included file name.
82040
82041         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
82042
82043         * lib/strftime.c: Update from GNU libc (the only changes were to
82044         comments).
82045
82046 2001-02-17  Jim Meyering  <meyering@lucent.com>
82047
82048         * lib/regex.c: Update from libc.
82049
82050 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
82051
82052         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
82053         clash.
82054
82055 2001-02-16  Paul Eggert  <eggert@twinsun.com>
82056
82057         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
82058         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
82059         Reported by Mark Hounschell via Paul Eggert.
82060
82061 2001-02-07  Jim Meyering  <meyering@lucent.com>
82062
82063         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
82064
82065 2001-02-05  Jim Meyering  <meyering@lucent.com>
82066
82067         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
82068         it includes the patch required for `large file' support with at least
82069         HP-UX's 10.20 /bin/cc.
82070
82071 2001-02-03  Jim Meyering  <meyering@lucent.com>
82072
82073         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
82074         AS_IF, now that it works once again (mysteriously).
82075         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
82076
82077 2001-01-30  Jim Meyering  <meyering@lucent.com>
82078
82079         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
82080         * m4/chown.m4: Rename conftestchown to conftest.chown.
82081         * m4/rename.m4: s/conftestdir/conftest.d1/ and
82082         s/conftestdir2/conftest.d2/.
82083         * m4/utimes.m4: s/conftestdata/conftest.data/
82084         Inspired by Pavel Roskin's change in autoconf.
82085
82086 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
82087
82088         * lib/config.charset: Update for FreeBSD 4.2.
82089
82090 2001-01-27  Jim Meyering  <meyering@lucent.com>
82091
82092         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
82093         a use of AS_IF.
82094         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
82095
82096 2001-01-26  Jim Meyering  <meyering@lucent.com>
82097
82098         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
82099         quotearg.c includes it.
82100
82101 2001-01-26  Jim Meyering  <meyering@lucent.com>
82102
82103         * lib/quotearg.c: Include stddef.h.
82104         * lib/quote.c: Include stddef.h.
82105         Reported by Axel Kittenberger.
82106
82107         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
82108         line in double quotes so that it evokes a better diagnostic.
82109         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
82110         Reported by Axel Kittenberger.
82111
82112 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
82113
82114         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
82115         as if it was a `charset'.
82116
82117 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
82118
82119         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
82120         has const.
82121
82122 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
82123
82124         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
82125         to avoid a warning.  Add back 'const' to inptr.
82126
82127 2001-01-20  Jim Meyering  <meyering@lucent.com>
82128
82129         Be sure that headers are checked before used in code compiled
82130         for the type checks.
82131         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
82132         In place of that, invoke jm_CHECK_ALL_TYPES.
82133         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
82134         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
82135         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
82136         The check for ssize_t was mistakenly run before the test for unistd.h.
82137
82138         The configure-time check for stdbool.h was missing.
82139         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
82140         (jm_PREREQ_HASH): New function.
82141
82142 2001-01-17  Jim Meyering  <meyering@lucent.com>
82143
82144         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
82145         for autoconf-2.49c.
82146         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
82147
82148 2001-01-16  Jim Meyering  <meyering@lucent.com>
82149
82150         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
82151         From Bruno Haible.
82152
82153 2001-01-14  Jim Meyering  <meyering@lucent.com>
82154
82155         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
82156         foo and bar.  Create conftestdir/ in the script, not in the C code.
82157         Remove directories in the script, not in the C code.
82158         Remove conftestdir{,2} before trying to create the directory.
82159         Make the entire configure script fail if the mkdir fails.
82160
82161 2001-01-14  Jim Meyering  <meyering@lucent.com>
82162
82163         * lib/rename.c: New file.  From Volker Borchert.
82164         Include stdlib.h, string.h or strings.h, and xalloc.h.
82165         Use strip_trailing_slashes rather than open-coding it.
82166
82167 2001-01-03  Paul Eggert  <eggert@twinsun.com>
82168
82169         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
82170
82171 2001-01-03  Jim Meyering  <meyering@lucent.com>
82172
82173         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
82174         of local `inptr' to avoid warning with some system declarations of
82175         iconv.
82176
82177 2001-01-02  Volker Borchert  <bt@teknon.de>
82178
82179         * m4/rename.m4: New file.
82180         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
82181
82182 2001-01-01  Jim Meyering  <meyering@lucent.com>
82183
82184         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
82185         even on systems with utmpx.h.  It's necessary for the declaration of
82186         utmp's ut_user member.  Reported by Andreas Jaeger.
82187
82188         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
82189         available. They are required for the declarations of getgrgid and
82190         getpwuid resp.
82191         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
82192         Reported by Andreas Jaeger.
82193
82194 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
82195
82196         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
82197         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
82198         so `make install' also works in VPATH builds.
82199
82200 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
82201
82202         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
82203         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
82204         can be used in subdirectories.
82205
82206 2000-12-29  Paul Eggert  <eggert@twinsun.com>
82207
82208         * lib/modechange.c: Do not assume that mode_t uses the
82209         traditional octal encoding.  E.g. "chmod 1 FOO" should set
82210         the other-execute bit of FOO even if S_IXOTH != 1.
82211
82212         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
82213         WOTH, XOTH, ALLM): New macros.
82214         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
82215          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
82216         Use them.
82217         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
82218         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
82219         (mode_compile):
82220         No need to use uintmax_t; unsigned long is long enough.
82221         Don't bother to get suffix since we don't use it.
82222
82223 2000-12-26  Jim Meyering  <meyering@lucent.com>
82224
82225         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
82226         better with autoheader.
82227
82228 2000-12-24  Jim Meyering  <meyering@lucent.com>
82229
82230         * lib/hash.c (is_prime): Return explicit boolean values.
82231         (hash_get_first): Return NULL to appease Irix5.6's 89.
82232         Reported by Nelson Beebe.
82233
82234 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
82235
82236         * lib/localcharset.c (locale_charset): Add support for Win32.
82237
82238 2000-12-18  Paul Eggert  <eggert@twinsun.com>
82239
82240         * lib/physmem.h, lib/physmem.c: New files.
82241
82242         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
82243         (noinst_HEADERS): Add physmem.h.
82244
82245         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
82246         't' for compatibility with Solaris 8 sort.
82247
82248 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
82249
82250         * lib/config.charset: Add support for BeOS.
82251
82252 2000-12-17  Jim Meyering  <meyering@lucent.com>
82253
82254         * m4/dos.m4 (jm_AC_DOS): New file and macro.
82255         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
82256
82257 2000-12-16  Jim Meyering  <meyering@lucent.com>
82258
82259         This bug had a serious impact on chown: `chown N:M FILE' (for integer
82260         N and M) would have treated it like `chown N:N FILE'.
82261
82262         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
82263
82264 2000-12-16  Jim Meyering  <meyering@lucent.com>
82265
82266         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
82267         SHELLS_FILE to a file name that's useful on djgpp systems.
82268         Include stdlib.h.
82269         (ADDITIONAL_DEFAULT_SHELLS): Define.
82270         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
82271         Based mostly on a patch from Prashant TR.
82272
82273 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
82274
82275         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
82276         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
82277         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
82278
82279 2000-12-08  Andreas Schwab  <schwab@suse.de>
82280
82281         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
82282         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
82283
82284 2000-12-07  Jim Meyering  <meyering@lucent.com>
82285
82286         * lib/stripslash.c (ISSLASH): Define.
82287         (strip_trailing_slashes): Use ISSLASH rather than comparing against
82288         `/'.
82289         From Prashant TR.
82290
82291         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
82292         (dir_name_r): Declare this function as static.
82293         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
82294         manifest itself on a name containing a mix of slashes and
82295         backslashes.
82296         Make this function work with names starting with a DOS-style
82297         drive letter and colon prefix.
82298         (dir_name): Append `.' if necessary.
82299         Based mostly on patches from Prashant TR and Eli Zaretskii.
82300
82301         * lib/dirname.h (dir_name_r): Remove prototype.
82302
82303 2000-12-06  Paul Eggert  <eggert@twinsun.com>
82304
82305         * m4/off_t-format.m4: Remove this file.
82306         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
82307
82308 2000-12-06  Jim Meyering  <meyering@lucent.com>
82309
82310         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
82311         replacement strtoull, we may well need the replacement strtoul, too.
82312         Check for declarations of strtoul and strtoull.
82313         Check for strtol.  Mainly as a cue to cause automake to include
82314         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
82315         Check for limits.h -- strtol.c needs it.
82316
82317 2000-12-05  Jim Meyering  <meyering@lucent.com>
82318
82319         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
82320
82321 2000-12-04  Jim Meyering  <meyering@lucent.com>
82322
82323         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
82324         Also include memory.h, stdlib.h, unistd.h if appropriate.
82325         Reported by Andreas Jaeger (conflicting declaration of malloc).
82326
82327 2000-12-02  Jim Meyering  <meyering@lucent.com>
82328
82329         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
82330         * m4/jm-macros.m4 (jm_MACROS): require it.
82331
82332 2000-12-02  Jim Meyering  <meyering@lucent.com>
82333
82334         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
82335
82336 2000-12-01  Paul Eggert  <eggert@twinsun.com>
82337
82338         * lib/memrchr.c: Include <config.h> before any system include file.
82339
82340 2000-11-30  Jim Meyering  <meyering@lucent.com>
82341
82342         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
82343
82344 2000-11-30  Jim Meyering  <meyering@lucent.com>
82345
82346         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
82347
82348 2000-11-29  Paul Eggert  <eggert@twinsun.com>
82349
82350         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
82351
82352 2000-11-26  Jim Meyering  <meyering@lucent.com>
82353
82354         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
82355
82356 2000-11-22  Paul Eggert  <eggert@twinsun.com>
82357
82358         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
82359         size of (size_t) -1; it's not portable.
82360
82361 2000-11-17  Jim Meyering  <meyering@lucent.com>
82362
82363         * lib/strstr.c: Update from GNU libc.
82364
82365 2000-11-17  Akim Demaille  <akim@epita.fr>
82366
82367         * lib/obstack.h: Formatting changes.
82368         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
82369         prevent type checking.
82370         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
82371         cast the value to (void *): assigning a `foo *' to a `void *'
82372         variable is valid.
82373         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
82374
82375 2000-11-16  Jim Meyering  <meyering@lucent.com>
82376
82377         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
82378
82379 2000-11-11  Jim Meyering  <meyering@lucent.com>
82380
82381         * lib/error.c: Add a couple #includes, merging from GNU libc version.
82382
82383 2000-11-10  Jim Meyering  <meyering@lucent.com>
82384
82385         * lib/obstack.h: Update from GNU libc.
82386         * lib/obstack.c: Likewise.
82387
82388 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
82389
82390         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
82391
82392 2000-11-06  Paul Eggert  <eggert@twinsun.com>
82393
82394         * lib/getusershell.c (setusershell): Use rewind rather than
82395         fseek/fseeko, to avoid configuration hassles with fseeko.
82396         Don't bother opening SHELLS_FILE if shellstream is NULL;
82397         it's not necessary.
82398
82399 2000-11-05  Jim Meyering  <meyering@lucent.com>
82400
82401         * lib/makepath.h (make_dir): Declare.
82402         * lib/makepath.c (make_dir): Remove `static' attribute.
82403         Tweak a comment.
82404
82405 2000-11-04  Jim Meyering  <meyering@lucent.com>
82406
82407         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
82408
82409 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
82410
82411         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
82412         last one in a bucket, advance to the next bucket.
82413
82414 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
82415
82416         * lib/fnmatch.c: Do not comment out all the code if we are using
82417         the GNU C library, because in some cases we are replacing buggy
82418         code in the GNU C library itself.
82419
82420 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
82421
82422         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
82423         (regex_compile): Catch bogus \(\1\).
82424
82425 2000-10-30  Paul Eggert  <eggert@twinsun.com>
82426
82427         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
82428         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
82429         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
82430
82431 2000-10-30  Paul Eggert  <eggert@twinsun.com>
82432
82433         * lib/error.h, getline.h, modechange.h:
82434         Remove "2000" from Copyright line, as the file hasn't been
82435         changed this year other than in the copyright notice.
82436
82437         * lib/xalloc.h: Add "2000" to Copyright line, as this file
82438         was changed this year.
82439
82440 2000-10-29  Jim Meyering  <meyering@lucent.com>
82441
82442         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
82443         renaming.
82444         * m4/ls-mntd-fs.m4: Likewise
82445
82446 2000-10-29  Jim Meyering  <meyering@lucent.com>
82447
82448         * lib/xstat.in: Fix grammar in comment.
82449
82450 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
82451
82452         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
82453         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
82454         doesn't define __restrict_arr.
82455
82456 2000-10-28  Jim Meyering  <meyering@lucent.com>
82457
82458         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
82459         (jm_PREREQ_MEMCHR): New function.
82460
82461 2000-10-28  Jim Meyering  <meyering@lucent.com>
82462
82463         * lib/memchr.c: Update from libc.
82464         Adjust for portability:
82465         [HAVE_STDLIB_H]: Include stdlib.h.
82466         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
82467         Undef __memchr, too.
82468         [!weak_alias]: Define __memchr to memchr.
82469
82470         * lib/regex.c: Update from libc.
82471         * lib/regex.h: Likewise.
82472         * lib/getopt1.c: Likewise.
82473         * lib/memcmp.c: Likewise.
82474
82475         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
82476         Avoid using fseek, when possible -- it's broken by design.
82477         Patch by Ulrich Drepper.
82478
82479 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
82480
82481         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
82482         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
82483         Giving in to popular pressure to shut up the compiler with casts.
82484
82485 2000-10-26  Jim Meyering  <meyering@lucent.com>
82486
82487         * lib/strftime.c: Update from libc.
82488
82489 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
82490
82491         * regex.c: More `unsigned char' -> `re_char' changes.
82492         Also change several `int' into `re_wchar_t'.
82493         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
82494         (PUSH_FAILURE_POINTER): Don't cast any more.
82495         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
82496         We want GCC to complain, since this piece of code makes
82497         re_match non-reentrant, which *should* be fixed.
82498         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
82499         (EXTEND_BUFFER): Use RETALLOC.
82500         (SET_LIST_BIT): Don't cast.
82501         (re_wchar_t): New type.
82502         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
82503         that those two functions will always properly return.
82504         (IMMEDIATE_QUIT_CHECK): Cast to void.
82505         (analyse_first): Use recursion rather than an explicit stack.
82506         (re_compile_fastmap): Can't fail anymore.
82507         (re_search_2): Don't check re_compile_fastmap for failure.
82508         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
82509         Now also sets the new value (passed in a new argument).
82510         (re_match_2_internal): Use it.
82511         Also, use a new var `reg' of type size_t when looping through regs
82512         rather than reuse the inappropriate `mcnt'.
82513
82514 2000-10-25  Jim Meyering  <meyering@lucent.com>
82515
82516         * lib/obstack.c: Update from libc.
82517
82518 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
82519
82520         * regex.c (regex_compile): Change the way of handling a range from
82521         a char less than 256 to a char not less than 256.
82522
82523 2000-10-24  Andrew Innes  <andrewi@gnu.org>
82524
82525         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
82526         NT-Emacs only.
82527         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
82528         so that re_search functions only quit when callers expect them to.
82529
82530 2000-10-23  Jim Meyering  <meyering@lucent.com>
82531
82532         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
82533         wrong.  That set_locale call must not have any side effects.
82534         From Paul Eggert.
82535
82536 2000-10-22  Jim Meyering  <meyering@lucent.com>
82537
82538         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
82539         [CYCLIC]: Remove now-unused definition.
82540
82541         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
82542         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
82543         Suggestion from Ulrich Drepper.
82544
82545 2000-10-21  Jim Meyering  <meyering@lucent.com>
82546
82547         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
82548         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
82549         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
82550
82551 2000-10-21  Jim Meyering  <meyering@lucent.com>
82552
82553         * lib/dirname.c (memrchr): Declare if necessary.
82554         (dir_name): Remove the restriction that there be no
82555         trailing slashes.  Now, this code skips past them, effectively
82556         ignoring them.
82557         [TEST_DIRNAME] (main): New unit tests.
82558
82559         * lib/memrchr.c: New file from GNU libc.
82560         Undef __memrchr, too.
82561         [!weak_alias]: Define __memrchr to memrchr.
82562         Guard weak_alias use with `#ifdef weak_alias'.
82563
82564 2000-10-21  Jim Meyering  <meyering@lucent.com>
82565
82566         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
82567         (dir_name): Use dir_name_r.
82568         * lib/dirname.h (dir_name_r): Declare it.
82569
82570 2000-10-17  Jim Meyering  <meyering@lucent.com>
82571
82572         * lib/quote.h (PARAMS): Define and use.
82573         Reported by Akim Demaille.
82574
82575         * lib/getopt.c: Update from libc.
82576
82577 2000-10-16  Jim Meyering  <meyering@lucent.com>
82578
82579         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
82580         setlocale.
82581         From Jan Fedak.
82582
82583 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
82584
82585         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
82586
82587 2000-09-25  Jim Meyering  <meyering@lucent.com>
82588
82589         * lib/md5.h (rol): Define (from GnuPG).
82590
82591         * lib/sha.c: Give credit (GnuPG) where due.
82592         (M): Use rol rather than open-coding it.
82593         Add a FIXME comment.
82594
82595 2000-09-21  Jim Meyering  <meyering@lucent.com>
82596
82597         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
82598         Reported by Michael Stone.
82599
82600 2000-09-20  Jim Meyering  <meyering@lucent.com>
82601
82602         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
82603         (noinst_HEADERS): Add sha.h.
82604         Based on code from Scott G. Miller and from GnuPG.
82605
82606 2000-09-18  Jim Meyering  <meyering@lucent.com>
82607
82608         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
82609         LIBS. Otherwise, everyone ends up linking with -lelf for some
82610         configurations.
82611         Reported by Mike Stone.
82612
82613 2000-09-15  Jim Meyering  <meyering@lucent.com>
82614
82615         * lib/regex.c: Update from libc.
82616
82617 2000-09-10  Jim Meyering  <meyering@lucent.com>
82618
82619         * lib/getopt.c (_getopt_internal): Update from glibc.
82620
82621 2000-09-09  Jim Meyering  <meyering@lucent.com>
82622
82623         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
82624         think it should be used as a general replacement for isascii.
82625         * lib/fnmatch.c: Likewise.
82626         * lib/mbswidth.c: Likewise
82627         * lib/regex.c: Likewise.
82628
82629         Don't use atoi.
82630         * lib/userspec.c: Include sys/param.h and limits.h.
82631         Include xstrtol.h.
82632         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
82633         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
82634         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
82635         UID, GID.  Check range.
82636
82637 2000-09-06  Jim Meyering  <meyering@lucent.com>
82638
82639         * lib/getopt.c (_getopt_internal): Update from glibc.
82640
82641 2000-08-30  Jim Meyering  <meyering@lucent.com>
82642
82643         * lib/strftime.c: Merge in changes from GNU libc.
82644
82645 2000-08-26  Jim Meyering  <meyering@lucent.com>
82646
82647         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
82648         * m4/fpending.m4: New file.
82649
82650 2000-08-26  Jim Meyering  <meyering@lucent.com>
82651
82652         * lib/closeout.c: Include "__fpending.h".
82653         (close_stdout_status): Return right away if there's nothing to flush.
82654
82655         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
82656         * lib/__fpending.c: New file.
82657         * lib/__fpending.h: New file.
82658
82659 2000-08-20  Jim Meyering  <meyering@lucent.com>
82660
82661         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
82662         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
82663         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
82664
82665 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
82666
82667         Improve fileutils installation on systems where running
82668         programs (like install) can't be unlinked.
82669         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
82670         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
82671
82672 2000-08-07  Paul Eggert  <eggert@twinsun.com>
82673
82674         Standardize on "memory exhausted" instead of "Memory exhausted"
82675         or "virtual memory exhausted".
82676         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
82677         "virtual memory exhausted".
82678         * lib/same.c (same_name): Invoke xalloc_die instead of printing
82679         our own message.
82680         * lib/userspec.c (parse_user_spec): Likewise.
82681         * lib/bumpalloc.h: comment fix
82682         * lib/same.c, userspec.c: Include xalloc.h.
82683
82684         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
82685         not char *const and pointing to a constant array.
82686         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
82687         (xrealloc): Comment fix.
82688
82689         * lib/userspec.c (parse_user_spec):
82690         Don't translate a message until just before returning,
82691         to avoid unnecessary translation.
82692
82693 2000-08-07  Jim Meyering  <meyering@lucent.com>
82694
82695         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
82696         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
82697         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
82698         getgroups.c, gethostname.c, getopt.h, group-member.c,
82699         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
82700         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
82701         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
82702         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
82703         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
82704         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
82705         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
82706         yesno.c: Back out Copyright date changes for each file with no change
82707         this year.  This eases coordination with other programs using the same
82708         source code modules.  From Paul Eggert.
82709
82710 2000-08-06  Paul Eggert  <eggert@twinsun.com>
82711
82712         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
82713         not char, for compatibility with glibc 2.1.3 strftime.c.
82714
82715 2000-08-03  Greg McGary  <greg@mcgary.org>
82716
82717         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
82718         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
82719         (EXTEND_BUFFER): Use them.
82720
82721 2000-08-01  Jim Meyering  <meyering@lucent.com>
82722
82723         * lib/dirname.c (ISSLASH): Define.
82724         (BACKSLASH_IS_PATH_SEPARATOR): Define.
82725         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
82726         both `\' and `/' may be use as path separators.
82727         Based on a patch from Prashant TR.
82728
82729 2000-07-31  Paul Eggert  <eggert@twinsun.com>
82730
82731         * lib/quotearg.c (quotearg_n_options): Don't make the initial
82732         slot vector a constant, since it might get modified.
82733
82734 2000-07-31  Jim Meyering  <meyering@lucent.com>
82735
82736         * lib/xmalloc.c: Use `virtual memory exhausted', not
82737         `Memory exhausted'.
82738         * lib/obstack.c (print_and_abort): Likewise.
82739
82740 2000-07-30  Paul Eggert  <eggert@twinsun.com>
82741
82742         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
82743         buffer, so that the caller can always quote one small
82744         component of a "memory exhausted" message in slot 0.
82745         From a suggestion by Jim Meyering.
82746
82747 2000-07-30  Jim Meyering  <meyering@lucent.com>
82748
82749         * lib/makepath.c (make_path): Quote the other instance, too.
82750
82751         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
82752         (STATIC_BUF_SIZE): Define.
82753         (quotearg_n_options): Use only statically allocated storage when
82754         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
82755         than STATIC_BUF_SIZE.
82756
82757 2000-07-29  Jim Meyering  <meyering@lucent.com>
82758
82759         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
82760         * lib/dirname.c (dir_name): Likewise.
82761
82762         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
82763         `/'.
82764
82765         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
82766         (dir_name): Assert that there are no trailing slashes.
82767
82768 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
82769
82770         * lib/mbswidth.h (mbswidth): Add a flags argument.
82771         (mbswidth): New declaration.
82772         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
82773         * lib/mbswidth.c (mbswidth): Add a flags argument.
82774         (mbsnwidth): New function.
82775
82776 2000-07-24  Jim Meyering  <meyering@lucent.com>
82777
82778         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
82779
82780 2000-07-23  Paul Eggert  <eggert@twinsun.com>
82781
82782         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
82783
82784 2000-07-23  Paul Eggert  <eggert@twinsun.com>
82785
82786         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
82787         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
82788         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
82789         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
82790         invoke multibyte primitives.
82791
82792 2000-07-23  Paul Eggert  <eggert@twinsun.com>
82793
82794         * lib/quotearg.c:
82795         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
82796         so that mbstate_t is always defined.
82797
82798         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
82799         be 1 in at least one GCC installation, and this configuration
82800         error is likely to be common.  Ignoring MB_LEN_MAX hurts
82801         performance on hosts that have mbrtowc but have only unibyte
82802         locales, but I assume these hosts are rare.
82803
82804 2000-07-23  Paul Eggert  <eggert@twinsun.com>
82805
82806         * lib/mbswidth.c (_XOPEN_SOURCE):
82807         Don't define; this causes problems on Solaris 7.
82808         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
82809
82810 2000-07-23  Jim Meyering  <meyering@lucent.com>
82811
82812         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
82813         too: getgrgid, getpwuid, getuid.
82814
82815 2000-07-23  Jim Meyering  <meyering@lucent.com>
82816
82817         * lib/basename.c (base_name): Add an assertion.
82818
82819 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
82820
82821         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
82822         shadow its mbsinit function.
82823
82824 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
82825
82826         * lib/mbswidth.h: New file.
82827         * lib/mbswidth.c: New file.
82828         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
82829         (noinst_HEADERS): Add mbswidth.h.
82830
82831 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
82832
82833         * lib/config.charset: Add support for FreeBSD. Improve support for
82834         HP-UX and IRIX 6.
82835
82836 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
82837
82838         * m4/mbswidth.m4: New file.
82839         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
82840
82841 2000-07-15  Jim Meyering  <meyering@lucent.com>
82842
82843         * lib/makepath.c: Include quote.h.
82844         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
82845         corresponding argument in a `quote (...)' call.
82846         Give better diagnostics.
82847
82848         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
82849         (noinst_HEADERS): Add quote.h.
82850
82851         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
82852         from tar's src/misc.c.
82853         * lib/quote.h: New file.  Prototypes for same.
82854
82855 2000-07-14  Paul Eggert  <eggert@twinsun.com>
82856
82857         From a suggestion by Bruno Haible.
82858         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
82859         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
82860         to decide whether to define the BeOS workaround macro;
82861         this adjusts to the change to AC_MBSTATE_T.
82862
82863 2000-07-14  Jim Meyering  <meyering@lucent.com>
82864
82865         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
82866         jm_AC_TYPE_UINTMAX_T.
82867
82868 2000-07-13  Paul Eggert  <eggert@twinsun.com>
82869
82870         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
82871
82872         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
82873         quotearg_buffer_restyled): Add support for
82874         clocale_quoting_style.  Undo previous change to
82875         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
82876         and "{RIGHT QUOTATION MARK}" msgids.
82877
82878 2000-07-10  Paul Eggert  <eggert@twinsun.com>
82879
82880         From a suggestion by Bruno Haible.
82881         * m4/mbstate_t.m4 (AC_MBSTATE_T):
82882         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
82883         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
82884         and mbstate_t, to a single-part test that simply defines mbstate_t.
82885         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
82886         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
82887
82888 2000-07-10  Jim Meyering  <meyering@lucent.com>
82889
82890         * m4/strerror_r.m4: Mirror the correction made in autoconf.
82891
82892         * m4/gnu-source.m4: Output to confdefs.h directly.
82893         Suggestion from Akim Demaille.
82894
82895 2000-07-09  Paul Eggert  <eggert@twinsun.com>
82896
82897         The old behavior of quoting `like this' doesn't look good with
82898         newer, ISO-style fonts.  See:
82899         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
82900
82901         Instead, quote "like this" by default.  Let the translator
82902         tailor the locale-specific quoting behavior by providing
82903         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
82904
82905         * lib/quotearg.c (N_): New macro.
82906         (gettext_default): New function.
82907         (quotearg_buffer_restyled): Use
82908         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
82909         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
82910
82911 2000-07-09  Jim Meyering  <meyering@lucent.com>
82912
82913         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
82914         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
82915
82916         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
82917         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
82918
82919 2000-07-09  Jim Meyering  <meyering@lucent.com>
82920
82921         * lib/Most files: Update copyright dates to include 2000.
82922
82923 2000-07-08  Jim Meyering  <meyering@lucent.com>
82924
82925         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
82926         if not defined.
82927         (xgethostname): Remove now-unnecessary #ifdef.
82928         Move declaration of `err' into loop where it's used.
82929
82930 2000-07-05  Paul Eggert  <eggert@twinsun.com>
82931         and Bruno Haible  <haible@clisp.cons.org>
82932
82933         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
82934         only if the test for an object-type mbstate_t fails.  This
82935         prevents us from mistakenly reporting that mbstate_t is a
82936         system object type after we "#define mbstate_t int" to work
82937         around its lack.
82938
82939 2000-07-05  Paul Eggert  <eggert@twinsun.com>
82940         and Bruno Haible  <haible@clisp.cons.org>
82941
82942         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
82943
82944 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
82945
82946         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
82947         to strerror_r.
82948         Include <ctype.h> for use of isalpha.
82949
82950 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
82951
82952         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
82953         by allocating a larger buffer. Test the gethostname return value for
82954         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
82955         returns an error and ENAMETOOLONG isn't defined.
82956
82957 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
82958
82959         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
82960         dimension.
82961
82962 2000-07-04  Jim Meyering  <meyering@lucent.com>
82963
82964         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
82965         of the deprecated AC_CHECKING.
82966
82967 2000-07-04  Jim Meyering  <meyering@lucent.com>
82968
82969         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
82970         Reported by Bruno Haible.
82971
82972 2000-07-04  Jim Meyering  <meyering@lucent.com>
82973
82974         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
82975         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
82976         lacks mbrtowc.
82977
82978 2000-07-03  Paul Eggert  <eggert@twinsun.com>
82979
82980         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
82981         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
82982
82983 2000-07-03  Paul Eggert  <eggert@twinsun.com>
82984         and Bruno Haible  <haible@clisp.cons.org>
82985
82986         * lib/quotearg.c (mbrtowc):
82987         Assign to *pwc, and return 1 only if result is nonzero.
82988         (iswprint): Use ISPRINT when substituting our own mbrtowc.
82989
82990 2000-07-03  Jim Meyering  <meyering@lucent.com>
82991
82992         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
82993
82994 2000-07-03  Jim Meyering  <meyering@lucent.com>
82995
82996         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
82997         This is necessary to get a definition of e.g., UTMP_FILE on
82998         HP-UX 10.20.
82999         From Bob Proulx.
83000
83001 2000-07-02  Jim Meyering  <meyering@lucent.com>
83002
83003         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
83004
83005         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
83006         AC_LIBOBJ(function_name).
83007         * m4/chown.m4: Likewise.
83008         * m4/fnmatch.m4: Likewise.
83009         * m4/ftruncate.m4: Likewise.
83010         * m4/getgroups.m4: Likewise.
83011         * m4/getline.m4: Likewise.
83012         * m4/group-member.m4: Likewise.
83013         * m4/jm-macros.m4: Likewise.
83014         * m4/lstat.m4: Likewise.
83015         * m4/malloc.m4: Likewise.
83016         * m4/memcmp.m4: Likewise.
83017         * m4/nanosleep.m4: Likewise.
83018         * m4/putenv.m4: Likewise.
83019         * m4/realloc.m4: Likewise.
83020         * m4/regex.m4: Likewise.
83021         * m4/stat.m4: Likewise.
83022         * m4/strftime.m4: Likewise.
83023
83024 2000-07-02  Jim Meyering  <meyering@lucent.com>
83025
83026         * lib/quotearg.c (mbstate_t): Don't define here.
83027
83028 2000-07-02  Jim Meyering  <meyering@lucent.com>
83029
83030         * lib/nanosleep.c (SIGCONT): Define if not already defined.
83031
83032 2000-07-01  Jim Meyering  <meyering@lucent.com>
83033
83034         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
83035
83036 2000-07-01  Jim Meyering  <meyering@lucent.com>
83037
83038         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
83039         problem.
83040
83041 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
83042
83043         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
83044         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
83045
83046 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
83047
83048         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
83049         per change in ../m4/ls-mntd-fs.m4.
83050         (read_filesystem_list): Ignore symbolic links.
83051
83052 2000-06-29  Jim Meyering  <meyering@lucent.com>
83053
83054         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
83055         for declaration of strcmp.
83056
83057         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
83058
83059         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
83060         Avoid warning by casting result to `char *' to remove `const'.
83061
83062 2000-06-28  Jim Meyering  <meyering@lucent.com>
83063
83064         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
83065         included by quotearg.c, for which we perform this test.  From
83066         Bruno Haible.
83067
83068 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
83069
83070         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
83071         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
83072         <utmpx.h> exists, put readutmp.o into LIBOBJS.
83073
83074 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
83075
83076         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
83077
83078 2000-06-26  Paul Eggert  <eggert@twinsun.com>
83079
83080         savedir now sets errno on failure and invokes xmalloc to get memory.
83081         Fix a couple of other minor bugs while we're at it.
83082
83083         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
83084         (NAMLEN): Remove macro.
83085         (malloc, realloc): Remove decls.
83086         (stpcpy): Likewise.
83087         ("xalloc.h"): Include.
83088         (NAME_SIZE_DEFAULT): New macro.
83089         (savedir): Use xmalloc / xrealloc to allocate memory.
83090         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
83091         Skip "" directory entries.
83092         Use strlen to calculate directory entry length, since the old method
83093         is rarely used these days and isn't worth supporting.
83094         Don't use a pointer after freeing it.
83095         Check for integer overflow when calculating allocation size.
83096         Use memcpy to copy entries, instead of stpcpy.
83097         Set errno properly when returning NULL.
83098         Check for readdir error.
83099
83100 2000-06-26  Jim Meyering  <meyering@lucent.com>
83101
83102         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
83103
83104 2000-06-25  Jim Meyering  <meyering@lucent.com>
83105
83106         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
83107         Linux header bug when _XOPEN_SOURCE is defined to 500.
83108
83109 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
83110
83111         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
83112         deficiency.
83113
83114 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
83115
83116         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
83117         Include xalloc.h.
83118         Don't include <stdlib.h>.  Don't declare malloc, realloc.
83119
83120 2000-06-24  Jim Meyering  <meyering@lucent.com>
83121
83122         * m4/strerror_r.m4: Revive this file -- to try out an experimental
83123         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
83124         for which strerror does return char*, but which lacks a conveniently
83125         accessible declaration of the function.  If the compile-test says
83126         strerror_r doesn't work, then resort to a `run'-test that works on
83127         BeOS and segfaults on DEC Unix.
83128
83129 2000-06-24  Jim Meyering  <meyering@lucent.com>
83130
83131         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
83132
83133 2000-06-23  Paul Eggert  <eggert@twinsun.com>
83134
83135         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
83136         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
83137
83138 2000-06-23  Paul Eggert  <eggert@twinsun.com>
83139
83140         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
83141         (mbrtowc, mbstate_t): Define substitutes if
83142         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
83143         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
83144         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
83145
83146 2000-06-23  Jim Meyering  <meyering@lucent.com>
83147
83148         * m4/afs.m4: Add missing AC_MSG_RESULT.
83149         Reported by Bruno Haible.
83150
83151         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
83152         Suggestion from Bruno Haible.
83153
83154 2000-06-23  Jim Meyering  <meyering@lucent.com>
83155
83156         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
83157
83158 2000-06-21  Jim Meyering  <meyering@lucent.com>
83159
83160         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
83161
83162 2000-06-21  Jim Meyering  <meyering@lucent.com>
83163
83164         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
83165         (noinst_HEADERS): Add getstr.h.
83166
83167         * lib/getline.c (getstr): Move into a separate file.
83168         * lib/getstr.c (getstr): New file, extracted from getline.c, with
83169         the following changes: new parameter, delim2; both delim[12]
83170         parameters have type `int', not `char'.  The latter would lose
83171         with 8-bit delimiters.
83172         * lib/getstr.h: New file.
83173
83174 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
83175
83176         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
83177         than 1024, return a memory chunk of least possible size, instead
83178         of size PATH_MAX + 2. In the loop, increment the size proportionally.
83179         Use free/xmalloc instead of xrealloc to avoid copying for very long
83180         paths.
83181
83182 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
83183
83184         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
83185         the empty string.
83186
83187 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
83188
83189         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
83190         address, not strdup.  Include <stdlib.h> and don't declare free().
83191
83192 2000-06-19  Jim Meyering  <meyering@lucent.com>
83193
83194         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
83195
83196 2000-06-18  Jim Meyering  <meyering@lucent.com>
83197
83198         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
83199
83200         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
83201         `checking whether...' message to be consistent with that of the
83202         lstat test.
83203
83204 2000-06-18  Jim Meyering  <meyering@lucent.com>
83205
83206         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
83207         Besides, these days every porting target provides a mkdir function.
83208
83209         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
83210         needed. (this snippet comes from src/system.h).
83211
83212 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
83213
83214         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
83215
83216 2000-06-15  Paul Eggert  <eggert@twinsun.com>
83217
83218         * lib/human.c (adjust_value): New function.
83219         (human_readable_inexact): Apply rounding style even when
83220         printing approximate values.
83221
83222 2000-06-14  Paul Eggert  <eggert@twinsun.com>
83223
83224         * lib/human.c (human_readable_inexact): Allow an input block
83225         size that is not a multiple of the output block size, and vice versa.
83226         Reported by Piergiorgio Sartor.
83227
83228 2000-06-14  Paul Eggert  <eggert@twinsun.com>
83229
83230         * lib/getdate.y (get_date): Apply relative times after time
83231         zone indicator, not before.  Reported by Todd A. Jacobs.
83232
83233 2000-06-13  Jim Meyering  <meyering@lucent.com>
83234
83235         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
83236
83237         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
83238
83239 2000-06-12  Paul Eggert  <eggert@twinsun.com>
83240
83241         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
83242
83243 2000-06-12  Jim Meyering  <meyering@lucent.com>
83244
83245         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
83246         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
83247         optional argument.
83248         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
83249         the optional argument, `lib'.
83250
83251 2000-06-08  Jim Meyering  <meyering@lucent.com>
83252
83253         * m4/largefile.m4: Remove file (now that it's part of autoconf).
83254
83255 2000-06-04  Paul Eggert  <eggert@twinsun.com>
83256
83257         Rewrite largefile configuration so that we don't need to run
83258         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
83259         AC_CANONICAL_HOST in configure.in -- jmm]
83260
83261         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
83262         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
83263         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
83264         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
83265         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
83266         All uses changed.
83267         Instead of inspecting the output of getconf, try to compile the
83268         test program without and with the macro definition.
83269         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
83270         for getconf.  Instead, check for the needed flags by compiling
83271         test programs.
83272
83273 2000-06-04  Paul Eggert  <eggert@twinsun.com>
83274
83275         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
83276
83277 2000-06-04  Jim Meyering  <meyering@lucent.com>
83278
83279         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
83280         SunOS 4.1.4 for which gid_t is an unsigned type.
83281
83282 2000-06-03  Jim Meyering  <meyering@lucent.com>
83283
83284         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
83285         now that autoconf requires that.
83286
83287         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
83288         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
83289         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
83290
83291 2000-06-03  Jim Meyering  <meyering@lucent.com>
83292
83293         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
83294
83295 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
83296
83297         * m4/glibc21.m4: New file.
83298         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
83299
83300 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
83301
83302         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
83303         newer, don't install charset.alias.
83304         * lib/config.charset: Change the Linux/glibc rules so they become empty
83305         on glibc-2.1 or newer.
83306
83307 2000-06-02  Jim Meyering  <meyering@lucent.com>
83308
83309         * lib/mountlist.c: Back out last change.  Instead, do this...
83310         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
83311         me_dummy member using the same `ignore'-testing code.
83312         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
83313         fs_type strings.
83314         From Mark D. Roth.
83315
83316 2000-05-29  Jim Meyering  <meyering@lucent.com>
83317
83318         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
83319         mounts with the `ignore' attribute.  Based on a patch from
83320         Mark D. Roth.
83321
83322 2000-05-28  Jim Meyering  <meyering@lucent.com>
83323
83324         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
83325         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
83326         * m4/stat.m4: Likewise.
83327         * m4/lstat.m4: Likewise.
83328         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
83329
83330         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
83331         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
83332
83333 2000-05-26  Jim Meyering  <meyering@lucent.com>
83334
83335         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
83336
83337 2000-05-24  Jim Meyering  <meyering@lucent.com>
83338
83339         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
83340         autoconf requires that.
83341         * m4/lib-check.m4: Likewise.
83342         * m4/jm-macros.m4: Likewise.
83343         * m4/strftime.m4: Likewise.
83344
83345         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
83346         AC_CHECK_DECLS, now that autoconf requires that.
83347
83348 2000-05-22  Jim Meyering  <meyering@lucent.com>
83349
83350         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
83351         * m4/lstat.m4: Likewise.
83352
83353 2000-05-22  Jim Meyering  <meyering@lucent.com>
83354
83355         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
83356
83357 2000-05-20  Jim Meyering  <meyering@lucent.com>
83358
83359         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
83360         (jm_PREREQ): Use it.
83361
83362 2000-05-18  Jim Meyering  <meyering@lucent.com>
83363
83364         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
83365         back, too, since it may have been modified by allocate_entry.
83366         (hash_delete): Rewrite to use neither the assignment operator
83367         nor the comma operator in an if-expression.
83368
83369 2000-05-15  Paul Eggert  <eggert@twinsun.com>
83370
83371         * lib/closeout.c:
83372         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
83373         Remove; no longer needed.
83374         "quotearg.h": Add include.
83375         (file_name): Do not bother to explicitly initialize to NULL; it's less
83376         efficient on some hosts.
83377         (close_stdout_status): Remove test as to whether stdout was already
83378         closed; it breaks for the case "echo x | sort >&-".
83379         Quote file name colons.
83380         Do not assume that _("write error") lacks format strings.
83381
83382 2000-05-15  Jim Meyering  <meyering@lucent.com>
83383
83384         * lib/version-etc.c (version_etc_copyright): Update the copyright
83385         string used in all --version output.
83386
83387 2000-05-14  Jim Meyering  <meyering@lucent.com>
83388
83389         * lib/closeout.c (close_stdout_set_file_name): New function.
83390         (close_stdout_status): Use new file-scoped global.
83391         Return right away if fstat says the stdout file descriptor is invalid.
83392         * lib/closeout.h (close_stdout_set_file_name): Declare.
83393
83394 2000-05-10  Jim Meyering  <meyering@lucent.com>
83395
83396         * lib/closeout.c [default_exit_status]: New file-scoped variable.
83397         (close_stdout_set_status): New function.
83398         * lib/closeout.h (close_stdout_set_status): Declare.
83399
83400 2000-05-09  Jim Meyering  <meyering@lucent.com>
83401
83402         * m4/gettext.m4: Rename this...
83403         * m4/libintl.m4: ...to this.
83404
83405 2000-05-08  Jim Meyering  <meyering@lucent.com>
83406
83407         * lib/long-options.c: Don't include closeout.h.
83408         (parse_long_options): Don't call close_stdout for --version.
83409
83410 2000-05-06  Paul Eggert  <eggert@twinsun.com>
83411
83412         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
83413         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
83414         2.1.3 bug.  This avoids a clash when files like regex.c define
83415         _GNU_SOURCE.
83416
83417 2000-05-06  Jim Meyering  <meyering@lucent.com>
83418
83419         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
83420         (AC_REPLACE_FUNCS): Add strnlen.
83421
83422         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
83423         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
83424
83425         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
83426         AC_SEARCH_LIBS call for nanosleep.
83427         (LIB_NANOSLEEP): Set and AC_SUBST.
83428
83429 2000-05-06  Jim Meyering  <meyering@lucent.com>
83430
83431         * lib/strnlen.c: Undefine __strnlen and strnlen.
83432         [!weak_alias]: Define __strnlen to strnlen.
83433
83434         * lib/atexit.c: New file, from libiberty.
83435
83436 2000-05-06  Jim Meyering  <meyering@lucent.com>
83437
83438         * lib/closeout.c (close_stdout_status): Also check for errors on the
83439         stderr stream.
83440
83441 2000-05-05  Jim Meyering  <meyering@lucent.com>
83442
83443         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
83444         AC_SEARCH_LIBS call for clock_gettime.
83445         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
83446
83447         * m4/search-libs.m4: Update from autoconf.
83448
83449         su doesn't work on Solaris 2.6.
83450         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
83451         <shadow.h>.  Reported by Dragos Harabor.
83452
83453 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
83454
83455         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
83456         memcpy instead of xmalloc, xrealloc, path_concat.
83457         (locale_charset): Treat empty environment variables as absent.
83458         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
83459
83460 2000-05-04  Jim Meyering  <meyering@lucent.com>
83461
83462         * lib/getopt.c: Update from glibc.
83463         * lib/obstack.c: Likewise.
83464         * lib/obstack.h: Likewise.
83465         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
83466         file
83467
83468         * lib/regex.h: Likewise.
83469         * lib/strndup.c: Likewise.
83470         * lib/strnlen.c: New file, from glibc.
83471
83472 2000-05-03  Jim Meyering  <meyering@lucent.com>
83473
83474         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
83475
83476 2000-05-02  Paul Eggert  <eggert@twinsun.com>
83477
83478         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
83479         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
83480         compile-time test, rather than inspecting host and OS, to
83481         decide whether to define _LARGEFILE_SOURCE.
83482
83483 2000-05-01  Jim Meyering  <meyering@lucent.com>
83484
83485         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
83486
83487         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
83488         Based on a patch from Bruno Haible.
83489
83490 2000-05-01  Jim Meyering  <meyering@lucent.com>
83491
83492         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
83493
83494 2000-04-29  Jim Meyering  <meyering@lucent.com>
83495
83496         * lib/path-concat.c: Declare strdup only if it's not defined.
83497         * lib/canon-host.c: Likewise.
83498
83499 2000-04-28  Jim Meyering  <meyering@lucent.com>
83500
83501         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
83502         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
83503         is included first, then limits.h is included by locale.h by libintl.h.
83504         From John David Anglin.
83505
83506 2000-04-25  Jim Meyering  <meyering@lucent.com>
83507
83508         * lib/makepath.c (S_IRWXUGO): Define.
83509         (make_path): Always perform explicit chmod if MODE specifies any
83510         of the `special' permission bits.  Prompted by a bug report against
83511         install from Mate Wierdl and Joost van Baal.
83512
83513 2000-04-18  Jim Meyering  <meyering@lucent.com>
83514
83515         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
83516         (jm_PREREQ): Use it.
83517
83518 2000-04-18  Jim Meyering  <meyering@lucent.com>
83519
83520         * lib/README: New file.
83521
83522         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
83523         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
83524
83525 2000-04-17  Jim Meyering  <meyering@lucent.com>
83526
83527         Get it right :-)
83528         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
83529         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
83530         Suggestion from Akim Demaille.
83531
83532 2000-04-17  Jim Meyering  <meyering@lucent.com>
83533
83534         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
83535         the definition of it to rpl_strftime also defined-away the system's
83536         declaration.
83537
83538 2000-04-15  Jim Meyering  <meyering@lucent.com>
83539
83540         Use `C' to denote so-called `contiguous' files, the same way
83541         that tar does.
83542         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
83543         (ftypelet): Use S_ISCTG.
83544         From Michael Deutschmann.
83545
83546 2000-04-14  Jim Meyering  <meyering@lucent.com>
83547
83548         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
83549         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
83550         clobbered.
83551
83552 2000-04-14  Jim Meyering  <meyering@lucent.com>
83553
83554         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
83555
83556 2000-04-13  Jim Meyering  <meyering@lucent.com>
83557
83558         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
83559         AH_VERBATIM to insert required #ifndef into config.h.in.
83560         Suggestion from Akim Demaille.
83561
83562 2000-04-12  Jim Meyering  <meyering@lucent.com>
83563
83564         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
83565         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
83566         Christian Krackowizer.
83567
83568         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
83569         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
83570         (AC_SYS_LARGEFILE): Require.
83571         (AM_C_PROTOTYPES): Require.
83572
83573 2000-04-08  Jim Meyering  <meyering@lucent.com>
83574
83575         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
83576         names don't conflict.  Reported by Eli Zaretskii.
83577
83578 2000-04-07  Jim Meyering  <meyering@lucent.com>
83579
83580         * lib/putenv.c: Move inclusion of errno.h so it follows that of
83581         sys/types.h, to work around system header problems on AIX 3.2.5.
83582         From Bruno Haible.
83583
83584 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
83585
83586         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
83587         bug.  Deal with the different error behavior of Irix iconv.
83588
83589 2000-04-05  Paul Eggert  <eggert@twinsun.com>
83590
83591         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
83592         IRIX if the installer said otherwise.
83593
83594 2000-04-05  Jim Meyering  <meyering@lucent.com>
83595
83596         Portability tweaks required for ultrix4.3.
83597         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
83598         (jm_CHECK_DECLS): Add getutent to the list of functions.
83599         (_jm_DECL_HEADERS): Add utmpx.h.
83600         From John David Anglin.
83601
83602         * m4/strftime.m4: Back out the 2000-04-02 change.
83603         Instead of that change, simply undefine putenv in the test program.
83604
83605 2000-04-05  Jim Meyering  <meyering@lucent.com>
83606
83607         Portability tweaks required for ultrix4.3.
83608         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
83609         getutent.
83610         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
83611         * lib/canon-host.c: Declare strdup.
83612         * lib/path-concat.c: Likewise.
83613         From John David Anglin.
83614
83615 2000-04-04  Jim Meyering  <meyering@lucent.com>
83616
83617         Be more DOS 8.3-friendly.
83618         * lib/ref-add.sin: Renamed from ref-add.sed.in.
83619         * lib/ref-del.sin: Renamed from ref-del.sed.in.
83620         * lib/Makefile.am: Reflect renaming.
83621         Reported by Eli Zaretskii.
83622
83623         Use a temporary file name that won't clash with `charset.alias'
83624         in the DOS 8.3 name space.
83625         * lib/Makefile.am (charset_tmp): Define.
83626         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
83627         (uninstall-local): Likewise.
83628         Reported by Eli Zaretskii.
83629
83630 2000-04-03  Jim Meyering  <meyering@lucent.com>
83631
83632         * m4/gettext.m4: Fix typo in comment.
83633
83634         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
83635         textutils/configure.in).  Suggestion from Paul Eggert.
83636         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
83637
83638 2000-04-02  Paul Eggert  <eggert@twinsun.com>
83639
83640         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
83641         variable in the shell rather than using putenv, which isn't
83642         portable.  This avoids the configure-time inter-test dependency
83643         on the potentially-renamed putenv function.
83644
83645 2000-03-30  Paul Eggert  <eggert@twinsun.com>
83646
83647         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
83648         before checking struct stat.st_blksize, so that
83649         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
83650
83651 2000-03-29  Paul Eggert  <eggert@twinsun.com>
83652
83653         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
83654         since strftime.c uses HAVE_STRFTIME to decide whether to use
83655         the underlying strftime.
83656
83657 2000-03-29  Paul Eggert  <eggert@twinsun.com>
83658
83659         * lib/time/strftime.c (my_strftime): Make sure we call the system
83660         strftime, not ourselves, when invoking the underlying strftime.
83661
83662 2000-03-24  Jim Meyering  <meyering@lucent.com>
83663
83664         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
83665         (charset_alias): Define.
83666         (install-exec-local): Factor out common code.
83667         (uninstall-local): Split lines longer than 80.
83668         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
83669         (SUFFIXES): Define.
83670         (.sed.in.sed): New rule.  Don't redirect directly to $@.
83671         (CLEANFILES): Add ref-add.sed and ref-del.sed.
83672
83673 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
83674
83675         * lib/config.charset: Output a line containing "Packages using this
83676         file".
83677         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
83678         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
83679         ref-del.sed): New rules.
83680
83681 2000-03-17  Jim Meyering  <meyering@lucent.com>
83682
83683         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
83684         Otherwise, include <strings.h>
83685
83686 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
83687
83688         * lib/unicodeio.c (utf8_wctomb): New function.
83689         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
83690         format instead of in UCS-4 with platform dependent endianness.
83691
83692 2000-03-10  Jim Meyering  <meyering@lucent.com>
83693
83694         * m4/lib-check.m4: Look for getspnam in -lgen, too.
83695         From Marco Franzen.
83696
83697 2000-03-07  Paul Eggert  <eggert@twinsun.com>
83698
83699         * lib/savedir.c (savedir): Work even if directory size is
83700         negative; this can happen with some screwy NFS configurations.
83701
83702 2000-03-06  Jim Meyering  <meyering@lucent.com>
83703
83704         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
83705         if it's NULL (because we ran out of memory).  From Bruno Haible.
83706
83707 2000-03-05  Jim Meyering  <meyering@lucent.com>
83708
83709         * lib/localcharset.c ("path-concat.h"): Include.
83710         (get_charset_aliases): Use path_concat instead of ANSI string
83711         concatenation.
83712
83713         * lib/unicodeio.h (PARAMS): Define.
83714         Use it to guard prototype.
83715
83716 2000-03-04  Jim Meyering  <meyering@lucent.com>
83717
83718         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
83719         for lib/localcharset.c.
83720
83721 2000-03-04  Jim Meyering  <meyering@lucent.com>
83722
83723         * lib/Makefile.am (install-exec-local): Create $(libdir) before
83724         installing into it.
83725         (uninstall-local): Uncomment this rule so `make distcheck' works
83726         once again.
83727
83728         * lib/unicodeio.c (<errno.h>): Include it.
83729         (errno): Declare if not defined.
83730
83731         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
83732
83733         * lib/config.charset: New version, incorporating remarks from a linux
83734         i18n mailing list.  From Bruno Haible.
83735
83736 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
83737
83738         * m4/codeset.m4: New file.
83739         * m4/iconv.m4: New file.
83740         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
83741
83742 2000-03-03  Jim Meyering  <meyering@lucent.com>
83743
83744         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
83745
83746 2000-03-02  Jim Meyering  <meyering@lucent.com>
83747
83748         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
83749         the messages come out on separate lines.
83750
83751         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
83752         rather than jm_CHECK_DECLARATIONS.
83753         * m4/decl.m4: Remove now-unused file.
83754
83755         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
83756         geteuid.
83757
83758 2000-03-02  Jim Meyering  <meyering@lucent.com>
83759
83760         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
83761
83762 2000-03-01  Jim Meyering  <meyering@lucent.com>
83763
83764         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
83765         * lib/unicodeio.c: Likewise.
83766
83767 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
83768
83769         * lib/config.charset: New file.
83770         * lib/localcharset.c: New file.
83771         * lib/unicodeio.h, lib/unicodeio.c: New files.
83772         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
83773         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
83774         (noinst_HEADERS): Add unicodeio.h.
83775         (all-local, install-exec-local, charset.alias): New targets.
83776
83777 2000-02-28  Paul Eggert  <eggert@twinsun.com>
83778
83779         * lib/quotearg.c (ALERT_CHAR): New macro.
83780         (quotearg_buffer_restyled): Use it.
83781
83782 2000-02-27  Jim Meyering  <meyering@lucent.com>
83783
83784         * m4/check-decl.m4: Add getenv to the list.
83785
83786 2000-02-27  Jim Meyering  <meyering@lucent.com>
83787
83788         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
83789         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
83790
83791         * lib/backupfile.c: Guard inclusion of stdlib.h with
83792         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
83793         Declare malloc if needed.
83794
83795         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
83796         `#ifndef HAVE_DECL..'
83797         now that autoconf always defines the HAVE_DECL_ symbols.
83798         * lib/human.c: Likewise.
83799         * lib/same.c: Likewise.
83800         * lib/strtoumax.c: Likewise.
83801
83802         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
83803         declaration check was not run.
83804         * lib/hash.c: Likewise.
83805         * lib/human.c: Likewise.
83806         * lib/same.c: Likewise.
83807         * lib/strtoumax.c: Likewise.
83808
83809         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
83810         `.', then first look up the entire `.'-containing string as a login
83811         name.
83812
83813 2000-02-23  Jim Meyering  <meyering@lucent.com>
83814
83815         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
83816         in place of my hack.
83817
83818 2000-02-18  Paul Eggert  <eggert@twinsun.com>
83819
83820         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
83821         (textint): New typedef.
83822         (parser_control): Member year changed from int to textint.
83823         All uses changed.
83824         (YYSTYPE): Removed; replaced by %union with int and textint members.
83825         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
83826         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
83827         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
83828         (tSNUMBER, tUNUMBER): Now of type <textintval>.
83829         (date, number, to_year): Use width of number in digits, not its value,
83830         to determine whether it's a 2-digit year, or a 2-digit time.
83831         (yylex): Store number of digits of numeric tokens.
83832         Reported by John Kendall.
83833
83834         (parser_control): Changed from struct parser_control to typedef (for
83835         consistency).  All uses changed.
83836
83837         (tID): Removed; not used.
83838         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
83839
83840 2000-02-14  Paul Eggert  <eggert@twinsun.com>
83841
83842         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
83843         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
83844
83845 2000-02-12  Jim Meyering  <meyering@lucent.com>
83846
83847         * lib/userspec.c (ISDIGIT): Define it.
83848         (isdigit): Remove definition.
83849         (is_number): Use ISDIGIT, not isdigit.
83850         <libintl.h>: Include.
83851         (_ and N_): Define.
83852         (parse_user_spec): Mark translatable strings.
83853
83854 2000-02-10  Jim Meyering  <meyering@lucent.com>
83855
83856         With these changes, nanosleep.[ch] are finally enough like the other
83857         lib/* replacement files to compile on a few more losing systems.
83858
83859         * lib/nanosleep.h: Don't include config.h.
83860         Remove prototype from declaration of nanosleep.
83861         (PARAMS): Remove now-unneeded definition.
83862         * lib/nanosleep.c: #undef nanosleep.
83863         (rpl_nanosleep): Rename from nanosleep.
83864
83865 2000-02-10  Jim Meyering  <meyering@lucent.com>
83866
83867         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
83868         gnu_nanosleep to rpl_nanosleep.
83869
83870 2000-02-09  Jim Meyering  <meyering@lucent.com>
83871
83872         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
83873         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
83874
83875 2000-02-08  Akim Demaille  <akim@epita.fr>
83876
83877         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
83878         `[' and `]' and remove uses of `changequote'.
83879         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
83880         (AC_SYS_LARGEFILE): Likewise.
83881         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
83882         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
83883         of changequote.
83884         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
83885         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
83886         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
83887         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
83888
83889 2000-02-05  Jim Meyering  <meyering@lucent.com>
83890
83891         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
83892         Remove explicit use of AC_HEADER_TIME.  It is required by
83893         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
83894         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
83895         in autoconf whereby the expansion of the latter ended up preceding
83896         the expansion of its prerequisite, AC_HEADER_TIME.
83897         Reported by Volker Borchert.
83898
83899 2000-02-03  Jim Meyering  <meyering@lucent.com>
83900
83901         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
83902
83903 2000-02-03  Jim Meyering  <meyering@lucent.com>
83904
83905         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
83906         rather than with `#if HAVE_UTMPNAME'.
83907
83908 2000-02-02  Jim Meyering  <meyering@lucent.com>
83909
83910         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
83911         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
83912         Reported by Eli Zaretskii.
83913
83914 2000-02-01  Jim Meyering  <meyering@lucent.com>
83915
83916         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
83917
83918 2000-01-31  Jim Meyering  <meyering@lucent.com>
83919
83920         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
83921         functions.  Add the time.h and sys/time.h headers along with the
83922         AC_REQUIRE'ment of AC_HEADER_TIME.
83923
83924 2000-01-31  Jim Meyering  <meyering@lucent.com>
83925
83926         * lib/nanosleep.h (nanosleep): Guard declaration with
83927         `#if ! HAVE_DECL_NANOSLEEP'.
83928         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
83929         the declaration in that vendor's sys/timers.h.
83930         Reported by Christian Krackowizer.
83931
83932         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
83933         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
83934         (ISPRINT): Likewise.
83935         Reported by Tom Tromey.
83936
83937 2000-01-30  Jim Meyering  <meyering@lucent.com>
83938
83939         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
83940
83941         * m4/prereq.m4 (utmp_includes): Define.
83942         Check for ut_user and ut_name members in both struct utmpx
83943         and struct utmp.
83944
83945 2000-01-30  Jim Meyering  <meyering@lucent.com>
83946
83947         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
83948         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
83949         header files where only utmpx.ut_user is declared.
83950
83951         * lib/readutmp.h (UT_USER): Define.
83952
83953 2000-01-29  Jim Meyering  <meyering@lucent.com>
83954
83955         * m4/lib-check.m4: New file containing library-related checks from
83956         fileutils and sh-utils (textutils had none).
83957
83958 2000-01-28  Jim Meyering  <meyering@lucent.com>
83959
83960         * m4/perl.m4: Change format of warning message to look more like that
83961         from the missing script.  Suggestion from François Pinard.
83962
83963 2000-01-25  Jim Meyering  <meyering@lucent.com>
83964
83965         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
83966         well as time.h in the compile check.
83967         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
83968         Fix typo in cross-compiling case: s/yes/no/.
83969
83970 2000-01-23  Jim Meyering  <meyering@lucent.com>
83971
83972         * m4/jm-macros.m4: Move df-related tests here from
83973         fileutils/configure.in
83974
83975         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
83976         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
83977
83978         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
83979         s/space/ac_fsusage_space/.
83980         (jm_FILE_SYSTEM_USAGE): Take two parameters.
83981
83982         * m4/ftruncate.m4: New file (derived from part of
83983         fileutils/configure.in).
83984         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
83985         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
83986
83987         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
83988         AC_SUBST these here, rather than just in sh-util/configure.in, so
83989         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
83990         all the same.
83991         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
83992         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
83993         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
83994         (AC_SUBST(POW_LIBM)): Likewise.
83995         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
83996
83997 2000-01-23  Jim Meyering  <meyering@lucent.com>
83998
83999         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
84000         obstack.c.
84001
84002 2000-01-22  Jim Meyering  <meyering@lucent.com>
84003
84004         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
84005
84006         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
84007
84008         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
84009         configure.in
84010         (AC_CHECK_HEADERS): Likewise for sh-utils.
84011         (AC_CHECK_HEADERS): Likewise for textutils.
84012         Merge the three lists of headers.
84013
84014         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
84015         from fileutils' configure.in.
84016
84017         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
84018         code. Moved tests into their own function (_jm_DECL_HEADERS) in
84019         check-decl.m4.
84020
84021         * m4/check-decl.m4: Use #if rather than #ifdef.
84022         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
84023         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
84024         (_jm_DECL_HEADERS): Define new function.
84025         (jm_CHECK_DECLARATIONS): Require it.
84026
84027 2000-01-22  Jim Meyering  <meyering@lucent.com>
84028
84029         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
84030         [! HAVE_DECL_STRTOULL]: Declare strtoull.
84031         Required for some AIX systems.  Reported by Christian Krackowizer.
84032         [TESTING] (main): New function.
84033
84034         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
84035         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
84036         letters.
84037
84038         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
84039         iswprint.
84040
84041         * lib/strverscmp.c (ISDIGIT): Define.
84042         (strverscmp): Use ISDIGIT, not isdigit.
84043
84044 2000-01-19  Jim Meyering  <meyering@lucent.com>
84045
84046         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
84047         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
84048         defines `struct timespec' in <sys/time.h>
84049
84050         * m4/c-bs-a.m4: Remove uses of changequote altogether.
84051         Thanks to Akim for explaining.
84052
84053 2000-01-17  Paul Eggert  <eggert@twinsun.com>
84054
84055         * lib/nanosleep.c (nanosleep):
84056         Don't use SA_INTERRUPT to decide whether to call sigaction, as
84057         POSIX.1 doesn't require SA_INTERRUPT and some systems
84058         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
84059         it's been part of POSIX.1 since day 1 (in 1988).
84060
84061 2000-01-17  Jim Meyering  <meyering@lucent.com>
84062
84063         * lib/interlock: Remove unused file.  Reported by François Pinard.
84064
84065 2000-01-16  Paul Eggert  <eggert@twinsun.com>
84066
84067         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
84068         alert, backslash, formfeed, and vertical tab unnecessarily in
84069         shell quoting style.
84070
84071 2000-01-16  Jim Meyering  <meyering@lucent.com>
84072
84073         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
84074         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
84075         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
84076         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
84077
84078 2000-01-16  Jim Meyering  <meyering@lucent.com>
84079
84080         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
84081         because the latter didn't work.
84082
84083 2000-01-15  Jim Meyering  <meyering@lucent.com>
84084
84085         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
84086         (AC_REPLACE_FUNCS): Add memcpy and memset.
84087         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
84088         Add strpbrk.
84089         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
84090
84091 2000-01-12  Jim Meyering  <meyering@lucent.com>
84092
84093         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
84094         (jm_PREREQ): Use it.
84095         (jm_PREREQ_READUTMP): New macro.
84096         (jm_PREREQ): Use it.
84097
84098 2000-01-11  Paul Eggert  <eggert@twinsun.com>
84099
84100         Quote multibyte characters correctly.
84101         * m4/c-bs-a.m4: New file.
84102         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
84103         (jm_PREREQ): Use it.
84104
84105 2000-01-11  Paul Eggert  <eggert@twinsun.com>
84106
84107         * m4/uintmax_t.m4: Port to autoconf 2.13.
84108
84109 2000-01-08  Jim Meyering  <meyering@ascend.com>
84110
84111         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
84112         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
84113
84114 2000-01-04  Jim Meyering  <meyering@ascend.com>
84115
84116         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
84117         jm_STRUCT_DIRENT_D_TYPE.
84118         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
84119         jm_STRUCT_DIRENT_D_INO.
84120         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
84121         jm_STRUCT_UTIMBUF.
84122         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
84123         renamings.
84124         * m4/utime.m4: Likewise.
84125
84126         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
84127         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
84128
84129 2000-01-03  Paul Eggert  <eggert@twinsun.com>
84130
84131         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
84132         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
84133
84134 2000-01-02  Jim Meyering  <meyering@ascend.com>
84135
84136         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
84137         remember if this is necessary.
84138
84139 1999-12-26  Jim Meyering  <meyering@ascend.com>
84140
84141         * m4/jm-macros.m4: Use it here.
84142         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
84143
84144 1999-12-23  Jim Meyering  <meyering@ascend.com>
84145
84146         * m4/jm-macros.m4: Check for clock_gettime (moved from
84147         fileutils/configure.in)
84148         Check for gettimeofday.
84149
84150 1999-12-20  Jim Meyering  <meyering@ascend.com>
84151
84152         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
84153         autoconf-2.14a-1999-12-20.
84154
84155 1999-12-19  Jim Meyering  <meyering@ascend.com>
84156
84157         * m4/lstat-slash.m4: New file.
84158         * m4/jm-macros.m4: Use the new macro:
84159         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
84160
84161 1999-12-07  Jim Meyering  <meyering@ascend.com>
84162
84163         * m4/perl.m4: Require that File::Compare be available, too.
84164         Too many systems seem to lack it.
84165
84166         * m4/strftime.m4: Add checks for most of the cpp macros tested in
84167         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
84168
84169 1999-11-18  Paul Eggert  <eggert@twinsun.com>
84170
84171         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
84172         problem with the QNX 4.25 shell, which doesn't propagate exit
84173         status of failed commands inside shell assignments.
84174
84175 1999-11-17  Jim Meyering  <meyering@ascend.com>
84176
84177         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
84178
84179 1999-11-07  Jim Meyering  <meyering@ascend.com>
84180
84181         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
84182
84183 1999-11-06  Jim Meyering  <meyering@ascend.com>
84184
84185         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
84186         * m4/jm-macros.m4 (jm_MACROS): Use it here.
84187
84188 1999-11-05  Jim Meyering  <meyering@ascend.com>
84189
84190         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
84191         configure.in of textutils, fileutils, and sh-utils into this one
84192         (shared between those packages) file.
84193         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
84194         AC_STRUCT_ST_BLKSIZE.
84195
84196 1999-11-03  Jim Meyering  <meyering@ascend.com>
84197
84198         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
84199         of AC_CHECK_TYPE checks includes unistd.h.
84200         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
84201         Suggestion from Akim Demaille.
84202
84203 1999-10-30  Jim Meyering  <meyering@ascend.com>
84204
84205         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
84206         m4-quoted string.
84207         * m4/ls-mntd-fs.m4: Likewise.
84208         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
84209         * m4/jm-winsz1.m4: Likewise.
84210
84211         * m4/const.m4: Remove file, since the fix made it into the experimental
84212         version of autoconf.
84213         * m4/mktime.m4: Likewise.
84214
84215         * m4/check-type.m4: Remove file, now that the latest version of
84216         AC_CHECK_TYPE takes a third arg to specify additional #includes.
84217
84218         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
84219         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
84220         AC_CHECK_TYPE.
84221
84222 1999-10-04  Jim Meyering  <meyering@ascend.com>
84223
84224         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
84225
84226 1999-09-22  Paul Eggert  <eggert@twinsun.com>
84227
84228         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
84229         2.95.1 bug with HP-UX 10.20.
84230
84231 1999-09-17  Jim Meyering  <meyering@ascend.com>
84232
84233         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
84234         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
84235         due to missing strdup (against sh-utils-2.0).
84236
84237 1999-08-29  Jim Meyering  <meyering@ascend.com>
84238
84239         * m4/jm-macros.m4: Require jm_BISON.
84240         * m4/bison.m4: New file.
84241
84242 1999-08-17  Paul Eggert  <eggert@twinsun.com>
84243
84244         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
84245         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
84246
84247 1999-08-05  Jim Meyering  <meyering@ascend.com>
84248
84249         * m4/getline.m4: Rename test file from conftestdata to conftest.data
84250         to avoid conflicts with `conftest' on 8+3 filesystems.
84251         Suggestion from Eli Zaretskii.
84252
84253 1999-08-04  Jim Meyering  <meyering@ascend.com>
84254
84255         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
84256         fileutils and sh-utils (textutils's getline test was inadequate).
84257         (AM_FUNC_GETLINE): Run this test.
84258         (AC_CHECK_FUNCS): Check for getdelim.
84259         Reported by Bob Proulx.
84260
84261 1999-08-02  Jim Meyering  <meyering@ascend.com>
84262
84263         * m4/jm-macros.m4: Add a comment.
84264
84265 1999-08-01  Paul Eggert  <eggert@twinsun.com>
84266
84267         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
84268         <inttypes.h> defines strtoumax as a macro (and not as a
84269         function).
84270
84271 1999-08-01  Paul Eggert  <eggert@twinsun.com>
84272
84273         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
84274         that we can shift, multiply and divide unsigned long long
84275         values; Ultrix cc can't do it.
84276
84277 1999-08-01  Paul Eggert  <eggert@twinsun.com>
84278
84279         * m4/mktime.m4: New file, which is a preview of what should appear
84280         in the next public autoconf release.
84281
84282 1999-08-01  Paul Eggert  <eggert@twinsun.com>
84283
84284         * m4/lfs.m4: Remove this file.
84285         * m4/largefile.m4: New file.  It contains the old contents of
84286         lfs.m4, except that all names with prefix AC_LFS have been
84287         changed to use the prefix AC_SYS_LARGEFILE instead, to be
84288         compatible with future autoconf versions.  Also, some minor m4
84289         quoting problems have been fixed.
84290
84291 1999-08-01  Paul Eggert  <eggert@twinsun.com>
84292
84293         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
84294         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
84295         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
84296         and simplify the shell code.
84297
84298 1999-08-01  Jim Meyering  <meyering@ascend.com>
84299
84300         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
84301         m4.
84302
84303 1999-07-20  Jim Meyering  <meyering@ascend.com>
84304
84305         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
84306
84307 1999-07-15  Jim Meyering  <meyering@ascend.com>
84308
84309         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
84310
84311 1999-05-22  Jim Meyering  <meyering@ascend.com>
84312
84313         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
84314
84315 1999-05-20  Jim Meyering  <meyering@ascend.com>
84316
84317         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
84318         Add a colon after each `then' in case $4 is empty.
84319
84320 1999-05-16  Jim Meyering  <meyering@ascend.com>
84321
84322         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
84323
84324 1999-05-10  Jim Meyering  <meyering@ascend.com>
84325
84326         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
84327
84328         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
84329         AC_FUNC_MKTIME.
84330
84331 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
84332
84333         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
84334
84335 1999-05-04  Paul Eggert  <eggert@twinsun.com>
84336
84337         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
84338         not CPPFLAGS, so that linking works correctly in IRIX.
84339
84340 1999-04-30  Paul Eggert  <eggert@twinsun.com>
84341
84342         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
84343
84344 1999-04-20  Paul Eggert  <eggert@twinsun.com>
84345
84346         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
84347         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
84348         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
84349         jm_AC_TYPE_UNSIGNED_LONG_LONG.
84350         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
84351
84352         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
84353
84354 1999-04-20  Jim Meyering  <meyering@ascend.com>
84355
84356         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
84357         AC_REPLACE xstroull if necessary.  From Paul Eggert.
84358         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
84359
84360 1999-04-18  Jim Meyering  <meyering@ascend.com>
84361
84362         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
84363         * m4/jm-macros.m4: Use it.
84364
84365 1999-04-06  Jim Meyering  <meyering@ascend.com>
84366
84367         * m4/strftime.m4: Remove test for %f.
84368
84369 1999-03-29  Jim Meyering  <meyering@ascend.com>
84370
84371         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
84372         superset of the AC_TYPE_* checks in the textutils, fileutils,
84373         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
84374         AC_TYPE_PID_T.
84375
84376 1999-03-28  Jim Meyering  <meyering@ascend.com>
84377
84378         * m4/jm-macros.m4: Define GNU_PACKAGE here.
84379         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
84380         replaced e.g., in the *.sh files of the sh-utils.
84381
84382 1999-03-20  Jim Meyering  <meyering@ascend.com>
84383
84384         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
84385         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
84386         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
84387
84388 1999-03-19  Jim Meyering  <meyering@ascend.com>
84389
84390         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
84391
84392 1999-03-12  Jim Meyering  <meyering@ascend.com>
84393
84394         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
84395
84396 1999-03-07  Jim Meyering  <meyering@ascend.com>
84397
84398         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
84399         declared.
84400
84401 1999-02-17  Jim Meyering  <meyering@ascend.com>
84402
84403         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
84404         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
84405
84406 1999-02-07  Jim Meyering  <meyering@ascend.com>
84407
84408         * m4/group-member.m4: New file -- extracted from sh-utils'
84409         configure.in.
84410
84411         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
84412         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
84413
84414 1999-02-06  Jim Meyering  <meyering@ascend.com>
84415
84416         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
84417         * m4/fnmatch.m4: Likewise.
84418         * m4/getgroups.m4: Likewise.
84419         * m4/lstat.m4: Likewise.
84420         * m4/malloc.m4: Likewise.
84421         * m4/putenv.m4: Likewise.
84422         * m4/realloc.m4: Likewise.
84423         * m4/regex.m4: Likewise.
84424         * m4/stat.m4: Likewise.
84425         * m4/strftime.m4: Likewise.
84426         Suggestion from Alain Magloire.
84427
84428         * m4/chown.m4: Use `.$ac_objext', not `.o'.
84429         * m4/fnmatch.m4: Likewise.
84430         * m4/getgroups.m4: Likewise.
84431         * m4/getline.m4: Likewise.
84432         * m4/lstat.m4: Likewise.
84433         * m4/malloc.m4: Likewise.
84434         * m4/memcmp.m4: Likewise.
84435         * m4/putenv.m4: Likewise.
84436         * m4/realloc.m4: Likewise.
84437         * m4/regex.m4: Likewise.
84438         * m4/stat.m4: Likewise.
84439         * m4/strftime.m4: Likewise.
84440         Suggestion from Alain Magloire.
84441
84442         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
84443         an argument.
84444
84445         * m4/regex.m4: Add a run-time Test for proper operation of
84446         re_compile_pattern.
84447
84448 1999-01-31  Jim Meyering  <meyering@ascend.com>
84449
84450         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
84451
84452 1999-01-30  Jim Meyering  <meyering@ascend.com>
84453
84454         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
84455
84456         * m4/jm-mktime.m4: Make this a wrapper around the official
84457         AM_FUNC_MKTIME rather than my private copy, now that the official one
84458         is up to date.
84459         * m4/mktime.m4: Remove file.
84460
84461         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
84462         * m4/uptime.m4: Likewise.
84463         * m4/uintmax_t.m4: Likewise.
84464
84465 1999-01-28  Jim Meyering  <meyering@ascend.com>
84466
84467         * m4/jm-macros.m4: Use jm_AFS.
84468         * m4/afs.m4: New file (from fileutils' configure.in).
84469
84470         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
84471         * m4/chown.m4: Likewise.
84472         * m4/d-ino.m4: Likewise.
84473         * m4/d-type.m4: Likewise.
84474         * m4/fnmatch.m4: Likewise.
84475         * m4/getgroups.m4: Likewise.
84476         * m4/gettext.m4: Likewise.
84477         * m4/jm-mktime.m4: Likewise.
84478         * m4/jm-winsz2.m4: Likewise.
84479         * m4/lcmessage.m4: Likewise.
84480         * m4/ls-mntd-fs.m4: Likewise.
84481         * m4/malloc.m4: Likewise.
84482         * m4/memcmp.m4: Likewise.
84483         * m4/putenv.m4: Likewise.
84484         * m4/realloc.m4: Likewise.
84485         * m4/st_mtim.m4: Likewise.
84486         * m4/strftime.m4: Likewise.
84487
84488 1999-01-16  Jim Meyering  <meyering@ascend.com>
84489
84490         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
84491         (ARGMATCH_DIE_DECL): Define.
84492
84493 1999-01-12  Jim Meyering  <meyering@ascend.com>
84494
84495         * m4/Makefile.am.in: Rewrite to avoid using fmt.
84496         Reported by Lars Hecking.
84497
84498 1999-01-10  Jim Meyering  <meyering@ascend.com>
84499
84500         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
84501         gross kludge.
84502         * m4/inttypes_h.m4: Likewise.
84503         * m4/lstat.m4: Likewise.
84504         * m4/malloc.m4: Likewise.
84505         * m4/readdir.m4: Likewise.
84506         * m4/realloc.m4: Likewise.
84507         * m4/st_dm_mode.m4: Likewise.
84508         * m4/stat.m4: Likewise.
84509         * m4/utimbuf.m4: Likewise.
84510         * m4/utimes.m4: Likewise.
84511
84512         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
84513         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
84514         comments in config.h.in are meaningful.
84515
84516         * m4/jm-macros.m4: Require autoconf-2.13 here.
84517
84518         * m4/regex.m4: By default, don't use the included regex.c on systems
84519         with glibc 2.  Suggestion from Uli Drepper.
84520
84521 1999-01-02  Jim Meyering  <meyering@ascend.com>
84522
84523         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
84524
84525 1998-12-18  Jim Meyering  <meyering@ascend.com>
84526
84527         * m4/Makefile.am.in (Makefile.am): Simplify rule.
84528         Based on a suggestion from Lars Hecking.
84529
84530 1998-11-16  Paul Eggert  <eggert@twinsun.com>
84531
84532         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
84533
84534 1998-11-16  Jim Meyering  <meyering@ascend.com>
84535
84536         * m4/lfs.m4: Double-quote the `uname...` expression.
84537
84538 1998-11-14  Jim Meyering  <meyering@ascend.com>
84539
84540         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
84541         * m4/stat.m4: Likewise.
84542
84543 1998-11-03  Jim Meyering  <meyering@ascend.com>
84544
84545         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
84546         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
84547
84548 1998-10-18  Jim Meyering  <meyering@ascend.com>
84549
84550         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
84551
84552 1998-10-17  Jim Meyering  <meyering@ascend.com>
84553
84554         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
84555         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
84556         calls for those previously hard-coded headers.  Instead, take a new
84557         parameter.
84558         (jm_CHECK_DECLARATIONS): Reflect interface change.
84559         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
84560         (jm_CHECK_DECL_LOCALTIME_R): New macro.
84561
84562         * m4/mktime.m4: Test for spring-forward gap before long-running test.
84563
84564 1998-10-14  Jim Meyering  <meyering@ascend.com>
84565
84566         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
84567         instead of "TZ=America/Vancouver".  From Paul Eggert.
84568
84569 1998-10-11  Jim Meyering  <meyering@ascend.com>
84570
84571         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
84572         This adds a test for a recently added compatibility fix for mktime.c.
84573         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
84574
84575 1998-09-27  Jim Meyering  <meyering@ascend.com>
84576
84577         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
84578
84579         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
84580         ../configure.in, including a change from Gordon Matzigkeit to allow
84581         cross-compiling for the Hurd.
84582
84583         * m4/glibc.m4: New file/macro to test for the GNU C Library
84584         versions 1 and 2.  From Gordon Matzigkeit.
84585         Indent.
84586
84587 1998-09-21  Jim Meyering  <meyering@ascend.com>
84588
84589         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
84590
84591 1998-08-18  Paul Eggert  <eggert@twinsun.com>
84592
84593         Port nanosecond-resolution times to UnixWare 2.1.2 and
84594         pedantic Solaris 2.6.
84595
84596         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
84597         AC_STRUCT_ST_MTIM.
84598         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
84599         Generate name of ns member, instead of just 1 or undef.
84600         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
84601
84602 1998-08-15  Jim Meyering  <meyering@ascend.com>
84603
84604         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
84605         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
84606         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
84607         instead of jm_TYPE_SSIZE_T.
84608
84609 1998-08-12  Jim Meyering  <meyering@ascend.com>
84610
84611         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
84612
84613 1998-08-02  Jim Meyering  <meyering@ascend.com>
84614
84615         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
84616         in acconfig.h manually.
84617
84618 1998-07-31  Paul Eggert  <eggert@twinsun.com>
84619
84620         * m4/st_mtim.m4: New file.
84621
84622 1998-07-28  Jim Meyering  <meyering@ascend.com>
84623
84624         * m4/utimes.m4: Undef stat.
84625
84626 1998-07-25  Jim Meyering  <meyering@ascend.com>
84627
84628         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
84629         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
84630
84631 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
84632
84633         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
84634         uid and gid actually remain unchanged.
84635
84636 1998-07-07  Jim Meyering  <meyering@ascend.com>
84637
84638         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
84639
84640 1998-07-04  Jim Meyering  <meyering@ascend.com>
84641
84642         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
84643         to prove that this macro can be used in packages without regex.c.
84644
84645 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
84646
84647         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
84648         is to be used.
84649
84650 1998-07-03  Jim Meyering  <meyering@ascend.com>
84651
84652         * m4/gettext.m4: Add -lintl if it's found to be necessary.
84653
84654         * m4/gettext.m4: New file -- from gettext-0.10.35.
84655         * m4/lcmessage.m4: Likewise.
84656         * m4/progtest.m4: Likewise.
84657
84658         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
84659         * m4/jm-macros.m4: Require the new macro.
84660
84661 1998-06-29  Jim Meyering  <meyering@ascend.com>
84662
84663         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
84664         for the definition of NGROUPS (used in a system header included
84665         by sys/mount.h).
84666
84667 1998-06-28  Jim Meyering  <meyering@ascend.com>
84668
84669         * m4/ls-mntd-fs.m4: New file.
84670         * m4/fstypename.m4: New file.
84671
84672         * m4/jm-macros.m4: Require the new macro.
84673         * m4/jm-glibc-io.m4: New file.
84674
84675 1998-05-19  Jim Meyering  <meyering@ascend.com>
84676
84677         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
84678         * m4/lchown.m4: New file.
84679
84680         * m4/Makefile.am.in: New file.
84681         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
84682
84683 1998-05-14  Jim Meyering  <meyering@ascend.com>
84684
84685         * m4/Makefile.am (EXTRA_DIST): Add them.
84686         * m4/jm-macros.m4: New file.
84687         * m4/utimbuf.m4: New file.
84688
84689 1998-05-12  Jim Meyering  <meyering@ascend.com>
84690
84691         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
84692
84693 1998-05-11  Jim Meyering  <meyering@ascend.com>
84694
84695         * m4/isc-posix.m4: New file.
84696
84697 1998-05-10  Jim Meyering  <meyering@ascend.com>
84698
84699         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
84700
84701 1998-05-09  Jim Meyering  <meyering@ascend.com>
84702
84703         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
84704         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
84705         with automake.
84706
84707         * m4/ssize_t.m4: New file.
84708         * m4/mktime.m4: Remove file -- the new automake has this now.
84709
84710 1998-04-26  Jim Meyering  <meyering@ascend.com>
84711
84712         * m4/assert.m4: New file.
84713         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
84714
84715 1998-04-05  Jim Meyering  <meyering@ascend.com>
84716
84717         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
84718         (jm_PREREQ): Use it here.
84719
84720 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
84721
84722         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
84723         in acconfig.h.
84724
84725 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
84726
84727         * m4/prereq.m4: New file.
84728         * m4/error.m4: New file.
84729         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
84730
84731 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
84732
84733         * m4/getline.m4: Don't set am_cv_func_working_getline before the
84734         cache-check for the same variable -- that defeated the purpose of
84735         the test; the test program was never run.  This was a problem only
84736         on systems with losing getline functions -- HP-UX 10.20 is one.
84737         Reported by Bjorn Helgaas.
84738
84739 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
84740
84741         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
84742
84743 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
84744
84745         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
84746
84747         * m4/const.m4: New file.  Use an initializer in this declaration
84748         typedef int charset[2]; const charset x;
84749         Reported by Bob Glickstein.
84750
84751 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
84752
84753         * m4/chown.m4: Fix reversed types on -1 args to chown.
84754         From Kaveh Ghazi.
84755
84756 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
84757
84758         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
84759         Add lseek and memchr.
84760
84761         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
84762         T.E.Dickey <dickey@clark.net> said that some older preprocessors
84763         have a 20-character limit on names.
84764
84765 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
84766
84767         * m4/inttypes_h.m4: New file.
84768         * m4/uintmax_t.m4: New file.
84769         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
84770
84771
84772         -----
84773
84774         Local Variables:
84775         coding: utf-8
84776         End:
84777
84778         Copyright (C) 1997-2011 Free Software Foundation, Inc.
84779
84780         Copying and distribution of this file, with or without
84781         modification, are permitted provided the copyright notice
84782         and this notice are preserved.